@caipira/tamandua 0.0.13 → 0.0.14

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/README.md +3 -1
  2. package/dist/Avatar.js +1 -0
  3. package/dist/Avatar.vue_vue_type_script_setup_true_lang-DshMIzMM.js +1 -0
  4. package/dist/Backdrop.js +1 -0
  5. package/dist/Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js +1 -0
  6. package/dist/Button-CBe3UDFT.js +7 -0
  7. package/dist/Button.css +1 -1
  8. package/dist/Button.js +3 -2
  9. package/dist/{Button.vue_vue_type_style_index_0_scoped_8639b950_lang-C9uKZk0F.js → Button.vue_vue_type_style_index_0_scoped_83f5665a_lang-BAjkC8CW.js} +3 -2
  10. package/dist/ButtonCopy.js +3 -2
  11. package/dist/{ButtonCopy.vue_vue_type_script_setup_true_lang-CZsqPE-4.js → ButtonCopy.vue_vue_type_script_setup_true_lang-DKiQiVwp.js} +2 -1
  12. package/dist/ChartLine.js +1 -0
  13. package/dist/ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js +1 -0
  14. package/dist/ChartTreemap.js +3 -2
  15. package/dist/{ChartTreemap.vue_vue_type_script_setup_true_lang-BSKB-UTM.js → ChartTreemap.vue_vue_type_script_setup_true_lang-BQsyn6Wt.js} +2 -1
  16. package/dist/Drawer-omdZnBPG.js +1 -0
  17. package/dist/Drawer.js +1 -0
  18. package/dist/Dropdown.js +3 -2
  19. package/dist/Dropdown.vue_vue_type_script_setup_true_lang-DRsd_7yO.js +154 -0
  20. package/dist/FileDrop.js +1 -0
  21. package/dist/FileDrop.vue_vue_type_script_setup_true_lang-DJ05bRaU.js +1 -0
  22. package/dist/Form.js +1 -0
  23. package/dist/Form.vue_vue_type_script_setup_true_lang-DIh6jDi0.js +1 -0
  24. package/dist/FormItem.js +1 -0
  25. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV5hpJ8B.js +1 -0
  26. package/dist/GraphyEmpty.js +1 -0
  27. package/dist/GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js +1 -0
  28. package/dist/GraphyLabel.js +1 -0
  29. package/dist/GraphyLabel.vue_vue_type_script_setup_true_lang-dEuzASQp.js +1 -0
  30. package/dist/GraphyPrice.js +1 -0
  31. package/dist/GraphyPrice.vue_vue_type_script_setup_true_lang-BxKdnVzF.js +1 -0
  32. package/dist/GraphySubtitle.js +1 -0
  33. package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +1 -0
  34. package/dist/GraphyTitle.js +1 -0
  35. package/dist/GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js +1 -0
  36. package/dist/Icon.js +3 -2
  37. package/dist/{Icon.vue_vue_type_script_setup_true_lang-DiRGfOxc.js → Icon.vue_vue_type_script_setup_true_lang-CSo7rrah.js} +27 -23
  38. package/dist/IconButton.js +3 -2
  39. package/dist/IconButton.vue_vue_type_script_setup_true_lang-Ca3OdiGJ.js +92 -0
  40. package/dist/InputAvatar.js +1 -0
  41. package/dist/InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js +1 -0
  42. package/dist/InputCheckbox.js +1 -0
  43. package/dist/InputCheckbox.vue_vue_type_script_setup_true_lang-B5zoxg5A.js +1 -0
  44. package/dist/InputColor.js +1 -0
  45. package/dist/InputColor.vue_vue_type_script_setup_true_lang-CZ0o-B7I.js +1 -0
  46. package/dist/InputDate.js +1 -0
  47. package/dist/InputDate.vue_vue_type_script_setup_true_lang-D1H0urIZ.js +1 -0
  48. package/dist/InputMultiplier.js +1 -0
  49. package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js +1 -0
  50. package/dist/InputPassword.js +3 -2
  51. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-kknXv5I-.js → InputPassword.vue_vue_type_script_setup_true_lang-DHc92ISX.js} +2 -1
  52. package/dist/InputPhone.js +1 -0
  53. package/dist/InputPhone.vue_vue_type_script_setup_true_lang-uNqXphQY.js +1 -0
  54. package/dist/InputPrice.js +1 -0
  55. package/dist/InputPrice.vue_vue_type_script_setup_true_lang-BBi8qKn8.js +1 -0
  56. package/dist/InputRadio.js +1 -0
  57. package/dist/InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js +1 -0
  58. package/dist/InputSelect.js +3 -2
  59. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-BmupIAdQ.js +228 -0
  60. package/dist/InputSwitch.js +1 -0
  61. package/dist/InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js +1 -0
  62. package/dist/InputText.js +1 -0
  63. package/dist/InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js +1 -0
  64. package/dist/InputTextarea.js +1 -0
  65. package/dist/InputTextarea.vue_vue_type_script_setup_true_lang-IMz1cgV5.js +1 -0
  66. package/dist/Modal.js +1 -0
  67. package/dist/Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js +1 -0
  68. package/dist/ModalForm.js +3 -2
  69. package/dist/{ModalForm.vue_vue_type_script_setup_true_lang-CUk3DI3O.js → ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js} +3 -2
  70. package/dist/Pagination.js +1 -0
  71. package/dist/Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js +1 -0
  72. package/dist/Popconfirm.js +3 -2
  73. package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-BMaHpkCO.js +64 -0
  74. package/dist/Popover.js +3 -2
  75. package/dist/{Popover.vue_vue_type_script_setup_true_lang-Dhcy-iL3.js → Popover.vue_vue_type_script_setup_true_lang-C69m5Nld.js} +320 -321
  76. package/dist/ProgressCircle-BY2eeyGY.js +1 -0
  77. package/dist/ProgressCircle.js +1 -0
  78. package/dist/{ProgressLine-CfZKbUcx.js → ProgressLine-1ZHGvPsm.js} +17 -16
  79. package/dist/ProgressLine.css +1 -1
  80. package/dist/ProgressLine.js +3 -2
  81. package/dist/SensitiveInfo.js +1 -0
  82. package/dist/SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js +1 -0
  83. package/dist/Tab.js +1 -0
  84. package/dist/Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js +1 -0
  85. package/dist/Table-grkQ9tby.js +1 -0
  86. package/dist/Table.js +1 -0
  87. package/dist/Tag.js +3 -2
  88. package/dist/Tag.vue_vue_type_script_setup_true_lang-DTfAH_Sb.js +71 -0
  89. package/dist/Toast.js +1 -0
  90. package/dist/Toast.vue_vue_type_script_setup_true_lang-BAsJNxU_.js +1 -0
  91. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +1 -0
  92. package/dist/account-BJGxzbeL.js +1 -0
  93. package/dist/alert-octagon-D8wznooU.js +1 -0
  94. package/dist/alert-octagon-outline-fM2QVbyq.js +1 -0
  95. package/dist/archive-DDuuzVUo.js +1 -0
  96. package/dist/archive-outline-BT6uCRX5.js +1 -0
  97. package/dist/arrow-left-CVipcGWo.js +1 -0
  98. package/dist/arrow-right-DHFo5L72.js +1 -0
  99. package/dist/bank-lwoR1P6d.js +1 -0
  100. package/dist/bank-outline-wy0O9ni0.js +1 -0
  101. package/dist/camera-BXoPauop.js +1 -0
  102. package/dist/cards-outline-B0no8Z63.js +1 -0
  103. package/dist/cards-variant-CU6V8mdM.js +1 -0
  104. package/dist/cart-outline-C99s8OpS.js +1 -0
  105. package/dist/chart-box-outline-C9ymwfIH.js +1 -0
  106. package/dist/chart-box-tyepg_QH.js +1 -0
  107. package/dist/check-circle-C3Kf7DnE.js +1 -0
  108. package/dist/check-circle-outline-B4zmPfuc.js +1 -0
  109. package/dist/check-iUT-FuWa.js +1 -0
  110. package/dist/checkbox-TojXdFTq.js +1 -0
  111. package/dist/checkbox-dark-D_btgwCX.js +1 -0
  112. package/dist/checkbox-indeterminate-CtbmyFkw.js +1 -0
  113. package/dist/checkbox-indeterminate-dark-CSrkJBRG.js +1 -0
  114. package/dist/chevron-down-CJLshITY.js +1 -0
  115. package/dist/chevron-left-n_sGCmlG.js +1 -0
  116. package/dist/chevron-right-C8uLqjmq.js +1 -0
  117. package/dist/chevron-up-b6VdQM8S.js +1 -0
  118. package/dist/circle-DhoEDuC5.js +1 -0
  119. package/dist/clock-BqMI2OIG.js +1 -0
  120. package/dist/close-DemH4JAO.js +1 -0
  121. package/dist/close-circle-Bvyw4JKW.js +6 -0
  122. package/dist/close-circle-outline-CUXfYV4M.js +1 -0
  123. package/dist/cog-Dd9I6z5D.js +1 -0
  124. package/dist/color-fill-DWx77G0p.js +1 -0
  125. package/dist/components.js +14 -13
  126. package/dist/composables.js +1 -0
  127. package/dist/copy-D-Dqxp8h.js +1 -0
  128. package/dist/credit-card-B3VjoUad.js +1 -0
  129. package/dist/credit-card-plus-TUZq5Zi0.js +1 -0
  130. package/dist/crud-lKm5HfM4.js +1 -0
  131. package/dist/currency-BuSji4qA.js +1 -0
  132. package/dist/database-CNG_l2Or.js +1 -0
  133. package/dist/date.js +1 -0
  134. package/dist/dots-grid-BhRGZg1t.js +1 -0
  135. package/dist/dots-vertical-nYIDxlT1.js +1 -0
  136. package/dist/email-open-outline-NlRAK8vu.js +1 -0
  137. package/dist/email-outline-v-beMKo_.js +1 -0
  138. package/dist/enums.js +1 -0
  139. package/dist/eye-C7_UM0rn.js +1 -0
  140. package/dist/eye-off-Dq2WOPSG.js +1 -0
  141. package/dist/file-document-plus-outline-C_GeG8ak.js +1 -0
  142. package/dist/filmstrip-Dg66xHap.js +1 -0
  143. package/dist/filter-07gM0IrM.js +1 -0
  144. package/dist/form-BkXpIJ0e.js +1 -0
  145. package/dist/form2.js +1 -0
  146. package/dist/fullscreen-daZRwm-1.js +1 -0
  147. package/dist/fullscreen-exit-DvHy2f8E.js +1 -0
  148. package/dist/group-B1HQcmCl.js +1 -0
  149. package/dist/image-C-DY_SfK.js +1 -0
  150. package/dist/image-album-DVl72ioK.js +1 -0
  151. package/dist/image-album-outline-oiPipPnp.js +1 -0
  152. package/dist/image-outline-CLpFyr7w.js +1 -0
  153. package/dist/index-CVD_wAsU.js +1 -0
  154. package/dist/index-CjvqeRf7.js +1 -0
  155. package/dist/index-CuyePt3m.js +1 -0
  156. package/dist/info-outline-Mn6Hjz_K.js +1 -0
  157. package/dist/key-B8iEXxGx.js +1 -0
  158. package/dist/key-chain-D-8-GrU2.js +1 -0
  159. package/dist/key-variant-DViBRFAJ.js +1 -0
  160. package/dist/listbox-outline-BBriTS-r.js +1 -0
  161. package/dist/loading-E4eFmVsP.js +1 -0
  162. package/dist/lock-Nv-e-b24.js +1 -0
  163. package/dist/lock-outline-K2LxC2b6.js +1 -0
  164. package/dist/logout-BHwFpuou.js +1 -0
  165. package/dist/menu-down-B4Fy5IG1.js +1 -0
  166. package/dist/menu-left-D8G3frKt.js +1 -0
  167. package/dist/menu-pq7WWaJu.js +1 -0
  168. package/dist/menu-right-CMt4thJ2.js +1 -0
  169. package/dist/minus-CSCkQnOm.js +1 -0
  170. package/dist/minus-circle-D_N5NZW-.js +1 -0
  171. package/dist/minus-circle-outline-B-x6EXPD.js +1 -0
  172. package/dist/moon-Bhm_ZTV6.js +1 -0
  173. package/dist/open-in-new-C2Btl_1k.js +1 -0
  174. package/dist/pencil-BETebgXX.js +1 -0
  175. package/dist/people-BUW1DRzH.js +1 -0
  176. package/dist/piggy-bank-outline-5cDQNrSU.js +1 -0
  177. package/dist/plugin--F5QK2vy.js +1 -0
  178. package/dist/plugin-2nTovNcx.js +1 -0
  179. package/dist/plugin-3VDgn3kO.js +1 -0
  180. package/dist/plugin-5vn4G57V.js +1 -0
  181. package/dist/plugin-AFgt8nH4.js +1 -0
  182. package/dist/plugin-BCt5Fd1Y.js +1 -0
  183. package/dist/plugin-BLdCHEGS.js +1 -0
  184. package/dist/{plugin-DYnmuOWz.js → plugin-BRY5cGCc.js} +2 -1
  185. package/dist/{plugin-CNoSZVuJ.js → plugin-BUzMTCDs.js} +2 -1
  186. package/dist/plugin-BYkYqIjb.js +1 -0
  187. package/dist/plugin-BZC231Oj.js +1 -0
  188. package/dist/plugin-BrwUi1gG.js +1 -0
  189. package/dist/plugin-Buc7eEox.js +1 -0
  190. package/dist/plugin-C-iGigb_.js +1 -0
  191. package/dist/plugin-C3tFXHbZ.js +1 -0
  192. package/dist/{plugin-Cp-YlP7M.js → plugin-C4ZKihe9.js} +2 -1
  193. package/dist/{plugin-CIK2QwfI.js → plugin-CCH1Q2cN.js} +2 -1
  194. package/dist/plugin-CGg5IOSy.js +1 -0
  195. package/dist/plugin-CHyrn6sC.js +1 -0
  196. package/dist/{plugin-c1rFpmlH.js → plugin-CVGZQLLW.js} +2 -1
  197. package/dist/{plugin-DmkLbCIU.js → plugin-CZBGKZIj.js} +2 -1
  198. package/dist/plugin-Ce0OhiOa.js +1 -0
  199. package/dist/{plugin-7M6YmkX3.js → plugin-CeTGH-uy.js} +2 -1
  200. package/dist/plugin-CqcxTgW6.js +1 -0
  201. package/dist/plugin-CwJMh4ht.js +1 -0
  202. package/dist/{plugin-DAoreRkB.js → plugin-Cy8SNl7v.js} +2 -1
  203. package/dist/{plugin-A7Ru6-Ae.js → plugin-D3RtcfcX.js} +2 -1
  204. package/dist/plugin-DDXOF4cU.js +1 -0
  205. package/dist/plugin-DLUdf4JV.js +1 -0
  206. package/dist/plugin-DN54VuID.js +1 -0
  207. package/dist/plugin-DOeDaXWj.js +1 -0
  208. package/dist/plugin-DRcJuXpS.js +1 -0
  209. package/dist/plugin-DT7LVAli.js +1 -0
  210. package/dist/plugin-DXSsGfRI.js +1 -0
  211. package/dist/plugin-DaibhM02.js +1 -0
  212. package/dist/plugin-DkDbha5K.js +1 -0
  213. package/dist/{plugin-DGx9kLvd.js → plugin-DnCIfRQD.js} +2 -1
  214. package/dist/{plugin-BURDNZOq.js → plugin-Do8SPdPO.js} +2 -1
  215. package/dist/plugin-DppW8rQi.js +1 -0
  216. package/dist/{plugin-Bj5VaUuH.js → plugin-XtlznKJr.js} +2 -1
  217. package/dist/plugin-YUomn9tF.js +1 -0
  218. package/dist/{plugin-D9vhvf_z.js → plugin-_WXCZJnd.js} +2 -1
  219. package/dist/plugin-cvHKUGjm.js +1 -0
  220. package/dist/{plugins-DNNQp3qM.js → plugins-DnctsCLh.js} +22 -21
  221. package/dist/plugins.js +22 -21
  222. package/dist/plus-circle-Cl0YprEp.js +1 -0
  223. package/dist/plus-circle-outline-C-kkX0ke.js +1 -0
  224. package/dist/plus-sbcOm60H.js +1 -0
  225. package/dist/qrcode-scan-CpLrVFw_.js +1 -0
  226. package/dist/radio-DkjVAhsO.js +1 -0
  227. package/dist/radio-dark-Cr5v17AF.js +1 -0
  228. package/dist/refresh-DPlMWd1M.js +1 -0
  229. package/dist/register-component-B-fdqewb.js +1 -0
  230. package/dist/save-BmMH4S8b.js +1 -0
  231. package/dist/search-Co2MwWOK.js +1 -0
  232. package/dist/spotlight-TNyCQzOY.js +1 -0
  233. package/dist/store-outline-B-fuVZzv.js +1 -0
  234. package/dist/sun-BWKjCEHH.js +1 -0
  235. package/dist/swap-CNbqKTl0.js +1 -0
  236. package/dist/swap-horizontal-DociZUG2.js +1 -0
  237. package/dist/swap-left-Bd2DOgf3.js +1 -0
  238. package/dist/swap-right-D0VYxBDb.js +1 -0
  239. package/dist/system-theme-Cez6mSv_.js +1 -0
  240. package/dist/tag-outline-Ce_qOxif.js +1 -0
  241. package/dist/tamandua.js +2 -1
  242. package/dist/transform-DSaNEFMr.js +1 -0
  243. package/dist/trash-can-CKPtMqSf.js +1 -0
  244. package/dist/trash-can-outline-DjtqZHOC.js +1 -0
  245. package/dist/types/components/Avatar/Avatar.story.d.ts +18 -5
  246. package/dist/types/components/Button/Button.story.d.ts +8 -42
  247. package/dist/types/components/ChartLine/ChartLine.story.d.ts +18 -12
  248. package/dist/types/components/ChartTreemap/ChartTreemap.story.d.ts +16 -2
  249. package/dist/types/components/ChartTreemap/types.d.ts +8 -2
  250. package/dist/types/components/Dropdown/types.d.ts +1 -1
  251. package/dist/types/components/GraphyPrice/GraphyPrice.story.d.ts +24 -2
  252. package/dist/types/components/Icon/Icon.story.d.ts +26 -0
  253. package/dist/types/components/Icon/types.d.ts +1 -1
  254. package/dist/types/components/IconButton/IconButton.vue.d.ts +4 -44
  255. package/dist/types/components/IconButton/types.d.ts +1 -7
  256. package/dist/types/components/InputDate/InputDate.story.d.ts +9 -2
  257. package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +8 -3
  258. package/dist/types/components/InputRadio/InputRadioGroup.story.d.ts +6 -2
  259. package/dist/types/components/InputSelect/InputSelect.story.d.ts +37 -4
  260. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +1 -1
  261. package/dist/types/components/InputSelect/types.d.ts +0 -1
  262. package/dist/types/components/InputSwitch/InputSwitch.story.d.ts +10 -18
  263. package/dist/types/components/Pagination/Pagination.story.d.ts +6 -1
  264. package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +1 -3
  265. package/dist/types/components/Popconfirm/types.d.ts +1 -1
  266. package/dist/types/components/Popover/Popover.vue.d.ts +0 -3
  267. package/dist/types/components/Popover/types.d.ts +0 -1
  268. package/dist/types/components/ProgressCircle/ProgressCircle.story.d.ts +13 -3
  269. package/dist/types/components/ProgressLine/ProgressLine.story.d.ts +12 -3
  270. package/dist/types/components/Table/Table.story.d.ts +16 -3
  271. package/dist/types/components/Tag/Tag.story.d.ts +29 -0
  272. package/dist/types/i18n.d.ts +6 -0
  273. package/dist/types/types/form.d.ts +1 -1
  274. package/dist/ui-DtSy-y9T.js +1 -0
  275. package/dist/upload-CKfrBexU.js +1 -0
  276. package/dist/useClipboard-BHFD0Jvv.js +1 -0
  277. package/dist/useDomHelpers-5CFMo6bx.js +1 -0
  278. package/dist/useRender-D8PeooXE.js +1 -0
  279. package/dist/user-circle-D102n1FB.js +1 -0
  280. package/dist/zip-box-C10560VY.js +1 -0
  281. package/package.json +1 -2
  282. package/dist/Button-BVshp51o.js +0 -6
  283. package/dist/Dropdown.vue_vue_type_script_setup_true_lang-BUcFKrav.js +0 -135
  284. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DEL6iIAu.js +0 -106
  285. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-ByRPZrIg.js +0 -216
  286. package/dist/Popconfirm.vue_vue_type_script_setup_true_lang-DWMW-u7V.js +0 -65
  287. package/dist/Tag.vue_vue_type_script_setup_true_lang-vLIykMPS.js +0 -63
  288. package/dist/close-circle-Bsf9_pUR.js +0 -4
@@ -0,0 +1,92 @@
1
+ import { defineComponent as C, getCurrentInstance as D, ref as g, computed as l, resolveComponent as k, openBlock as r, createBlock as E, resolveDynamicComponent as T, normalizeClass as N, unref as u, withCtx as U, createVNode as L, createElementBlock as z, createCommentVNode as w } from "vue";
2
+ import { B as t, b as R, c as s } from "./ui-DtSy-y9T.js";
3
+ import { u as S } from "./useDomHelpers-5CFMo6bx.js";
4
+ const x = ["multiple"], K = /* @__PURE__ */ C({
5
+ name: "TIconButton",
6
+ __name: "IconButton",
7
+ props: {
8
+ to: {},
9
+ icon: {},
10
+ href: { default: "" },
11
+ type: { default: t.BUTTON },
12
+ size: { default: R.DEFAULT },
13
+ label: { default: "" },
14
+ shape: { default: s.ROUNDED },
15
+ target: { default: void 0 },
16
+ multiple: { type: Boolean, default: !1 },
17
+ isDisabled: { type: Boolean, default: !1 }
18
+ },
19
+ emits: ["upload"],
20
+ setup(c, { emit: p }) {
21
+ const e = c, f = p, a = D(), i = g(), { isPopoverActivator: d, onPopoverActivatorClick: m } = S(), h = l(() => e.href ? e.href : void 0), v = l(() => {
22
+ switch (e.type) {
23
+ case t.LINK:
24
+ return;
25
+ case t.FILE:
26
+ return "button";
27
+ default:
28
+ return e.type;
29
+ }
30
+ }), y = l(() => e.type === t.SUBMIT ? e.label : void 0), _ = l(() => {
31
+ switch (e.type) {
32
+ case t.SUBMIT:
33
+ return "input";
34
+ case t.LINK:
35
+ return "a";
36
+ case t.ROUTER_LINK:
37
+ return "router-link";
38
+ default:
39
+ return "button";
40
+ }
41
+ }), I = (n) => {
42
+ a && d(a) && m(n, a), e.type === t.SUBMIT && n.preventDefault(), e.type === t.FILE && i.value?.click();
43
+ }, b = (n) => {
44
+ n.stopPropagation();
45
+ const o = n.target.files;
46
+ !o || !o.length || f("upload", o);
47
+ };
48
+ return (n, B) => {
49
+ const o = k("t-icon");
50
+ return r(), E(T(_.value), {
51
+ type: v.value,
52
+ href: h.value,
53
+ value: y.value,
54
+ to: e.to,
55
+ disabled: e.isDisabled,
56
+ target: e.target,
57
+ class: N([{
58
+ "opacity-50": e.isDisabled,
59
+ // Shape
60
+ "rounded-full": e.shape === u(s).CIRCLE,
61
+ "input-roundness": e.shape === u(s).ROUNDED,
62
+ // Cursor
63
+ "cursor-pointer": !e.isDisabled,
64
+ "cursor-not-allowed": e.isDisabled
65
+ }, "input-outline flex items-center h-full"]),
66
+ role: "button",
67
+ onClick: I
68
+ }, {
69
+ default: U(() => [
70
+ L(o, {
71
+ size: e.size,
72
+ icon: e.icon
73
+ }, null, 8, ["size", "icon"]),
74
+ e.type === "file" ? (r(), z("input", {
75
+ key: 0,
76
+ multiple: e.multiple,
77
+ onChange: b,
78
+ type: "file",
79
+ ref_key: "fileInput",
80
+ ref: i,
81
+ class: "hidden"
82
+ }, null, 40, x)) : w("", !0)
83
+ ]),
84
+ _: 1
85
+ }, 8, ["type", "href", "value", "to", "disabled", "target", "class"]);
86
+ };
87
+ }
88
+ });
89
+ export {
90
+ K as _
91
+ };
92
+ //# sourceMappingURL=IconButton.vue_vue_type_script_setup_true_lang-Ca3OdiGJ.js.map
@@ -4,3 +4,4 @@ export {
4
4
  t as InputAvatar,
5
5
  o as InputAvatarPlugin
6
6
  };
7
+ //# sourceMappingURL=InputAvatar.js.map
@@ -50,3 +50,4 @@ const b = { class: "relative h-40 w-40" }, y = {
50
50
  export {
51
51
  A as _
52
52
  };
53
+ //# sourceMappingURL=InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js.map
@@ -4,3 +4,4 @@ export {
4
4
  e as InputCheckbox,
5
5
  t as InputCheckboxPlugin
6
6
  };
7
+ //# sourceMappingURL=InputCheckbox.js.map
@@ -44,3 +44,4 @@ const I = ["indeterminate", "id", "disabled"], _ = /* @__PURE__ */ m({
44
44
  export {
45
45
  _
46
46
  };
47
+ //# sourceMappingURL=InputCheckbox.vue_vue_type_script_setup_true_lang-B5zoxg5A.js.map
@@ -4,3 +4,4 @@ export {
4
4
  p as InputColor,
5
5
  l as InputColorPlugin
6
6
  };
7
+ //# sourceMappingURL=InputColor.js.map
@@ -33,3 +33,4 @@ const f = ["value", "disabled"], b = /* @__PURE__ */ i({
33
33
  export {
34
34
  b as _
35
35
  };
36
+ //# sourceMappingURL=InputColor.vue_vue_type_script_setup_true_lang-CZ0o-B7I.js.map
package/dist/InputDate.js CHANGED
@@ -4,3 +4,4 @@ export {
4
4
  a as InputDate,
5
5
  o as InputDatePlugin
6
6
  };
7
+ //# sourceMappingURL=InputDate.js.map
@@ -186,3 +186,4 @@ const de = ["value"], ce = {
186
186
  export {
187
187
  Ve as _
188
188
  };
189
+ //# sourceMappingURL=InputDate.vue_vue_type_script_setup_true_lang-D1H0urIZ.js.map
@@ -4,3 +4,4 @@ export {
4
4
  t as InputMultiplier,
5
5
  l as InputMultiplierPlugin
6
6
  };
7
+ //# sourceMappingURL=InputMultiplier.js.map
@@ -81,3 +81,4 @@ const A = { class: "inline-flex w-full items-center my-3" }, D = ["label"], H =
81
81
  export {
82
82
  H as _
83
83
  };
84
+ //# sourceMappingURL=InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js.map
@@ -1,6 +1,7 @@
1
- import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-kknXv5I-.js";
2
- import { p as a } from "./plugin-BURDNZOq.js";
1
+ import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-DHc92ISX.js";
2
+ import { p as a } from "./plugin-Do8SPdPO.js";
3
3
  export {
4
4
  s as InputPassword,
5
5
  a as InputPasswordPlugin
6
6
  };
7
+ //# sourceMappingURL=InputPassword.js.map
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ee, ref as S, inject as te, watch as ne, resolveComponent as O, openBlock as k, createElementBlock as L, normalizeClass as T, unref as U, createElementVNode as P, createVNode as q, createCommentVNode as N, withKeys as le, createBlock as se, toDisplayString as oe } from "vue";
2
- import { _ as ae } from "./ButtonCopy.vue_vue_type_script_setup_true_lang-CZsqPE-4.js";
2
+ import { _ as ae } from "./ButtonCopy.vue_vue_type_script_setup_true_lang-DKiQiVwp.js";
3
3
  import { f as re } from "./index-CjvqeRf7.js";
4
4
  const ie = (s) => {
5
5
  let e = 0, r = 0, l = 0, i = 0, o = 0, u = 0, m = 0, p = 0, f = 0, I = 0, c = 0, x = 0, y = 0, b = 0, M = 0, _ = 0, n = 0, d = 0, A = 2, V = 2, R = 2, g = 2, E = 3, K = 3, D = 3, W = 4, Z = 4, G = 6, B = "", $ = "", j = "", C = "Too Short";
@@ -137,3 +137,4 @@ const ie = (s) => {
137
137
  export {
138
138
  he as _
139
139
  };
140
+ //# sourceMappingURL=InputPassword.vue_vue_type_script_setup_true_lang-DHc92ISX.js.map
@@ -4,3 +4,4 @@ export {
4
4
  p as InputPhone,
5
5
  r as InputPhonePlugin
6
6
  };
7
+ //# sourceMappingURL=InputPhone.js.map
@@ -74,3 +74,4 @@ const P = /* @__PURE__ */ w({
74
74
  export {
75
75
  P as _
76
76
  };
77
+ //# sourceMappingURL=InputPhone.vue_vue_type_script_setup_true_lang-uNqXphQY.js.map
@@ -4,3 +4,4 @@ export {
4
4
  e as InputPrice,
5
5
  t as InputPricePlugin
6
6
  };
7
+ //# sourceMappingURL=InputPrice.js.map
@@ -61,3 +61,4 @@ const $ = /* @__PURE__ */ w({
61
61
  export {
62
62
  $ as _
63
63
  };
64
+ //# sourceMappingURL=InputPrice.vue_vue_type_script_setup_true_lang-BBi8qKn8.js.map
@@ -4,3 +4,4 @@ export {
4
4
  a as InputRadio,
5
5
  t as InputRadioPlugin
6
6
  };
7
+ //# sourceMappingURL=InputRadio.js.map
@@ -32,3 +32,4 @@ const k = /* @__PURE__ */ m({
32
32
  export {
33
33
  k as _
34
34
  };
35
+ //# sourceMappingURL=InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js.map
@@ -1,6 +1,7 @@
1
- import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-ByRPZrIg.js";
2
- import { p as r } from "./plugin-CNoSZVuJ.js";
1
+ import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-BmupIAdQ.js";
2
+ import { p as r } from "./plugin-BUzMTCDs.js";
3
3
  export {
4
4
  p as InputSelect,
5
5
  r as InputSelectPlugin
6
6
  };
7
+ //# sourceMappingURL=InputSelect.js.map
@@ -0,0 +1,228 @@
1
+ import { defineComponent as ue, ref as p, inject as re, computed as $, onBeforeMount as ce, onBeforeUnmount as pe, watch as A, resolveComponent as b, openBlock as i, createElementBlock as c, normalizeClass as V, unref as M, createElementVNode as de, withKeys as fe, renderSlot as h, normalizeProps as k, mergeProps as D, Fragment as _, renderList as U, guardReactiveProps as H, createBlock as I, toDisplayString as me, createCommentVNode as N, withDirectives as ve, vModelText as ye, createVNode as P, withCtx as q, createSlots as be, nextTick as he } from "vue";
2
+ import { u as ke } from "./useDomHelpers-5CFMo6bx.js";
3
+ import { b as we, E as ge } from "./ui-DtSy-y9T.js";
4
+ const Ve = { key: 1 }, _e = ["placeholder", "disabled", "readonly"], Se = {
5
+ key: 0,
6
+ class: "inline-flex w-full justify-between items-center"
7
+ }, xe = {
8
+ key: 1,
9
+ class: "inline-flex items-center"
10
+ };
11
+ let Ce = 0;
12
+ const $e = /* @__PURE__ */ ue({
13
+ name: "TInputSelect",
14
+ __name: "InputSelect",
15
+ props: {
16
+ size: { default: we.DEFAULT },
17
+ options: { default: () => [] },
18
+ mapper: { type: Function, default: (f) => ({ value: f.id ?? f.uuid, label: f }) },
19
+ filter: { type: Function, default: (f, S) => S.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
20
+ tooltip: { default: "" },
21
+ disabled: { type: Boolean },
22
+ resource: {},
23
+ multiple: { type: Boolean, default: !1 },
24
+ modelValue: {},
25
+ placeholder: { default: "" },
26
+ initialValue: {},
27
+ disableStyle: { type: Boolean, default: !1 },
28
+ isSearchable: { type: Boolean, default: !1 },
29
+ dropdownPlacement: { default: ge.BOTTOM }
30
+ },
31
+ emits: ["update:model-value"],
32
+ setup(f, { emit: S }) {
33
+ const l = f;
34
+ let x = !1, w, T = "";
35
+ const G = S, J = `checkbox_${++Ce}`, r = p(""), o = p([]), L = p(null), O = re("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), z = p(null), a = p([]), B = p(!1), { wasClickOutsideOfContainer: Q } = ke(), d = p(null), E = $(() => a.value.length > 0), F = $(() => l.isSearchable && n.value), v = $(() => typeof l.resource == "function"), W = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.value), X = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Y = (e) => {
36
+ G("update:model-value", e);
37
+ }, m = (e = l.modelValue) => {
38
+ if (X(e))
39
+ if (l.multiple)
40
+ Array.isArray(e) && (a.value = e.map(
41
+ (t) => R(t)
42
+ ).filter((t) => t > -1));
43
+ else {
44
+ const t = R(e);
45
+ ~t && (a.value = [t]);
46
+ }
47
+ }, K = (e) => {
48
+ n.value = !n.value, n.value && F.value && he(() => {
49
+ L.value?.focus();
50
+ }), e.stopPropagation();
51
+ }, R = (e) => o.value.findIndex(
52
+ (t) => t.value === e
53
+ ), j = (e) => {
54
+ C.value && Q(e, C.value) && (n.value = !1);
55
+ }, g = async (e = !1) => {
56
+ if (!l.resource)
57
+ return;
58
+ B.value = !0;
59
+ const t = {
60
+ t: r.value,
61
+ r: "option"
62
+ };
63
+ e && d.value && d.value.pages > d.value.page ? t.page = d.value.page + 1 : e = !1, !r.value && l.modelValue && (t.i = l.modelValue);
64
+ const u = await l.resource(t);
65
+ e ? o.value.push(...u.items.map(l.mapper)) : o.value = u.items.map(l.mapper), d.value = u.pagination, !v.value && r.value && m(r.value), B.value = !1;
66
+ }, Z = () => {
67
+ !r.value || T === r.value || (w && (clearTimeout(w), w = null), w = setTimeout(() => {
68
+ T = r.value, v.value ? (n.value || (n.value = !0), g()) : l.isSearchable && (o.value = l.options.filter(
69
+ (e) => l.filter(r.value, e)
70
+ ));
71
+ }, 500));
72
+ }, ee = () => {
73
+ n.value = !1;
74
+ }, le = (e) => {
75
+ n.value = !1, e.stopPropagation();
76
+ }, te = ({
77
+ index: e,
78
+ hold: t
79
+ }) => {
80
+ if (x = !0, l.multiple) {
81
+ const u = a.value.findIndex(
82
+ (y) => y === e
83
+ );
84
+ ~u ? a.value.splice(u, 1) : a.value.push(e);
85
+ } else
86
+ a.value = [e];
87
+ (!l.multiple || !t) && (n.value = !1);
88
+ }, ae = () => {
89
+ v.value && d.value && d.value.pages > d.value.page && g(!0);
90
+ }, oe = async (e) => {
91
+ switch (e.key) {
92
+ case "ArrowDown":
93
+ z.value?.move(e);
94
+ break;
95
+ }
96
+ };
97
+ return ce(async () => {
98
+ v.value ? (await g(), m()) : l.options.length > 0 && (o.value = l.options), !l.modelValue && l.initialValue ? m(l.initialValue) : m(l.modelValue), document.addEventListener("click", j);
99
+ }), pe(() => {
100
+ document.removeEventListener("click", j);
101
+ }), A(
102
+ () => l.modelValue,
103
+ async (e) => {
104
+ e && (R(e) < 0 && v.value && await g(), m(e));
105
+ }
106
+ ), A(
107
+ a,
108
+ (e) => {
109
+ const t = l.multiple ? o.value.filter(
110
+ (u, y) => a.value.includes(y)
111
+ ).map((u) => u.value) : o.value[a.value[0]].value;
112
+ x && (x = !1, Y(t));
113
+ },
114
+ { deep: !0 }
115
+ ), A(
116
+ () => l.options,
117
+ (e) => {
118
+ e.length > 0 && (o.value = e, l.modelValue && a.value.length === 0 && m(l.modelValue));
119
+ }
120
+ ), (e, t) => {
121
+ const u = b("t-tag"), y = b("t-icon-button"), ne = b("t-icon"), se = b("t-dropdown"), ie = b("t-popover");
122
+ return i(), c("div", {
123
+ class: V({ [M(O).input]: !l.disableStyle })
124
+ }, [
125
+ de("div", {
126
+ ref_key: "wrapperRef",
127
+ ref: C,
128
+ class: V([{
129
+ "h-9": !l.disableStyle && !l.multiple,
130
+ "min-h-9": !l.disableStyle && l.multiple,
131
+ "text-left select-none input-bg-color input-text-color border input-border input-roundness": !l.disableStyle,
132
+ [M(O).input]: !l.disableStyle
133
+ }, "inline-flex justify-between items-center w-full text-left"]),
134
+ role: "button",
135
+ onClick: K,
136
+ onBlur: ee,
137
+ onKeyup: fe(le, ["esc"])
138
+ }, [
139
+ F.value ? ve((i(), c("input", {
140
+ key: 1,
141
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
142
+ type: "text",
143
+ ref_key: "inputRef",
144
+ ref: L,
145
+ placeholder: l.placeholder,
146
+ disabled: l.disabled,
147
+ readonly: !l.isSearchable,
148
+ class: V([{ "cursor-pointer": !l.isSearchable }, "w-full h-9 bg-transparent input-padding input-roundness input-outline"]),
149
+ onClick: t[1] || (t[1] = (s) => s.stopPropagation()),
150
+ onInput: Z,
151
+ onKeydown: oe
152
+ }, null, 42, _e)), [
153
+ [ye, r.value]
154
+ ]) : (i(), c("div", {
155
+ key: 0,
156
+ class: V(["flex items-center ml-2", {
157
+ "overflow-hidden whitespace-nowrap": !l.multiple,
158
+ "flex-wrap gap-2 py-1": l.multiple
159
+ }])
160
+ }, [
161
+ e.$slots.selection && E.value ? h(e.$slots, "selection", k(D({ key: 0 }, o.value[a.value[0]].label))) : e.$slots.default && E.value ? (i(), c(_, { key: 1 }, [
162
+ l.multiple ? (i(!0), c(_, { key: 0 }, U(a.value, (s) => h(e.$slots, "default", k(H(o.value[s].label)))), 256)) : h(e.$slots, "default", k(D({ key: 1 }, o.value[a.value[0]].label)))
163
+ ], 64)) : E.value ? (i(), c(_, { key: 2 }, [
164
+ l.multiple ? (i(!0), c(_, { key: 0 }, U(a.value, (s) => (i(), I(u, {
165
+ key: s,
166
+ text: o.value[s].label,
167
+ color: "#6e6e6e"
168
+ }, null, 8, ["text"]))), 128)) : (i(), c("span", Ve, me(o.value[a.value[0]]?.label), 1))
169
+ ], 64)) : N("", !0)
170
+ ], 2)),
171
+ P(y, {
172
+ "disable-style": !0,
173
+ class: "h-9",
174
+ icon: n.value === !0 ? "chevron-up" : "chevron-down",
175
+ onClick: K
176
+ }, null, 8, ["icon"])
177
+ ], 34),
178
+ P(ie, {
179
+ placement: l.dropdownPlacement,
180
+ "is-visible": n.value
181
+ }, {
182
+ content: q(() => [
183
+ P(se, {
184
+ ref_key: "dropdownRef",
185
+ ref: z,
186
+ owner: J,
187
+ items: o.value,
188
+ "is-visible": n.value,
189
+ multiple: l.multiple,
190
+ loading: B.value,
191
+ class: "fixed",
192
+ "aria-describedby": "tooltip",
193
+ onChange: te,
194
+ onEndReached: ae
195
+ }, be({ _: 2 }, [
196
+ e.$slots.default || l.multiple ? {
197
+ name: "default",
198
+ fn: q((s) => [
199
+ l.multiple ? (i(), c("div", Se, [
200
+ e.$slots.default ? h(e.$slots, "default", k(D({ key: 0 }, s.label))) : (i(), I(u, {
201
+ key: 1,
202
+ text: s.label,
203
+ class: "m-1"
204
+ }, null, 8, ["text"])),
205
+ W(s) ? (i(), I(ne, {
206
+ key: 2,
207
+ icon: "check",
208
+ size: "sm",
209
+ class: "float-right ml-2"
210
+ })) : N("", !0)
211
+ ])) : (i(), c("div", xe, [
212
+ h(e.$slots, "default", k(H(s.label)))
213
+ ]))
214
+ ]),
215
+ key: "0"
216
+ } : void 0
217
+ ]), 1032, ["items", "is-visible", "multiple", "loading"])
218
+ ]),
219
+ _: 3
220
+ }, 8, ["placement", "is-visible"])
221
+ ], 2);
222
+ };
223
+ }
224
+ });
225
+ export {
226
+ $e as _
227
+ };
228
+ //# sourceMappingURL=InputSelect.vue_vue_type_script_setup_true_lang-BmupIAdQ.js.map
@@ -4,3 +4,4 @@ export {
4
4
  o as InputSwitch,
5
5
  i as InputSwitchPlugin
6
6
  };
7
+ //# sourceMappingURL=InputSwitch.js.map
@@ -60,3 +60,4 @@ const B = /* @__PURE__ */ b({
60
60
  export {
61
61
  B as _
62
62
  };
63
+ //# sourceMappingURL=InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js.map
package/dist/InputText.js CHANGED
@@ -4,3 +4,4 @@ export {
4
4
  e as InputText,
5
5
  r as InputTextPlugin
6
6
  };
7
+ //# sourceMappingURL=InputText.js.map
@@ -39,3 +39,4 @@ const S = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__P
39
39
  export {
40
40
  B as _
41
41
  };
42
+ //# sourceMappingURL=InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js.map
@@ -4,3 +4,4 @@ export {
4
4
  r as InputTextarea,
5
5
  p as InputTextareaPlugin
6
6
  };
7
+ //# sourceMappingURL=InputTextarea.js.map
@@ -41,3 +41,4 @@ const S = ["value", "type", "placeholder", "disabled"], _ = /* @__PURE__ */ f({
41
41
  export {
42
42
  _
43
43
  };
44
+ //# sourceMappingURL=InputTextarea.vue_vue_type_script_setup_true_lang-IMz1cgV5.js.map
package/dist/Modal.js CHANGED
@@ -4,3 +4,4 @@ export {
4
4
  r as Modal,
5
5
  p as ModalPlugin
6
6
  };
7
+ //# sourceMappingURL=Modal.js.map
@@ -80,3 +80,4 @@ const S = {
80
80
  export {
81
81
  M as _
82
82
  };
83
+ //# sourceMappingURL=Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js.map
package/dist/ModalForm.js CHANGED
@@ -1,6 +1,7 @@
1
- import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-CUk3DI3O.js";
2
- import { p as l } from "./plugin-CIK2QwfI.js";
1
+ import { _ as a } from "./ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js";
2
+ import { p as l } from "./plugin-CCH1Q2cN.js";
3
3
  export {
4
4
  a as ModalForm,
5
5
  l as ModalFormPlugin
6
6
  };
7
+ //# sourceMappingURL=ModalForm.js.map
@@ -59,7 +59,7 @@ const $ = {
59
59
  })
60
60
  ])) : (l(), a(B, {
61
61
  key: 1,
62
- title: `Are you sure you want to delete this ${s.value?.title}?`,
62
+ message: `Are you sure you want to delete this ${s.value?.title}?`,
63
63
  onConfirm: t[2] || (t[2] = () => e.value?.delete())
64
64
  }, {
65
65
  default: n(() => [
@@ -74,7 +74,7 @@ const $ = {
74
74
  }, null, 8, ["is-disabled"])) : d("", !0)
75
75
  ]),
76
76
  _: 1
77
- }, 8, ["title"])),
77
+ }, 8, ["message"])),
78
78
  c(_, {
79
79
  variant: "success",
80
80
  icon: "save",
@@ -106,3 +106,4 @@ const $ = {
106
106
  export {
107
107
  O as _
108
108
  };
109
+ //# sourceMappingURL=ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js.map
@@ -4,3 +4,4 @@ export {
4
4
  i as Pagination,
5
5
  r as PaginationPlugin
6
6
  };
7
+ //# sourceMappingURL=Pagination.js.map
@@ -87,3 +87,4 @@ const B = { class: "flex items-center justify-end w-full flex-wrap" }, I = {
87
87
  export {
88
88
  $ as _
89
89
  };
90
+ //# sourceMappingURL=Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js.map
@@ -1,6 +1,7 @@
1
- import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-DWMW-u7V.js";
2
- import { p as m } from "./plugin-D9vhvf_z.js";
1
+ import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-BMaHpkCO.js";
2
+ import { p as m } from "./plugin-_WXCZJnd.js";
3
3
  export {
4
4
  p as Popconfirm,
5
5
  m as PopconfirmPlugin
6
6
  };
7
+ //# sourceMappingURL=Popconfirm.js.map
@@ -0,0 +1,64 @@
1
+ import { defineComponent as b, ref as g, resolveComponent as t, openBlock as k, createBlock as y, withCtx as r, createElementVNode as o, createVNode as n, toDisplayString as P, renderSlot as w } from "vue";
2
+ import { E as h } from "./ui-DtSy-y9T.js";
3
+ const z = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "color-text" }, E = { class: "flex justify-end gap-2" }, O = /* @__PURE__ */ b({
4
+ name: "TPopconfirm",
5
+ __name: "Popconfirm",
6
+ props: {
7
+ message: { default: "" },
8
+ placement: { default: h.BOTTOM }
9
+ },
10
+ emits: ["confirm"],
11
+ setup(m, { emit: p }) {
12
+ const s = m, f = p, c = g(), _ = (e) => (c.value = e, e), d = () => {
13
+ c.value.visible = !1;
14
+ }, u = (e) => {
15
+ f("confirm"), e(!1);
16
+ };
17
+ return (e, l) => {
18
+ const v = t("t-icon"), i = t("t-button"), C = t("t-popover");
19
+ return k(), y(C, {
20
+ placement: s.placement,
21
+ "slot-wrapper-classes": "rounded",
22
+ ref: _
23
+ }, {
24
+ content: r(({ onTogglePopover: x }) => [
25
+ o("div", {
26
+ class: "mx-2 my-3 select-none",
27
+ onClick: l[0] || (l[0] = (a) => a.stopPropagation())
28
+ }, [
29
+ o("p", z, [
30
+ n(v, {
31
+ icon: "info-outline",
32
+ class: "color-caipira-yellow mr-1",
33
+ size: "sm"
34
+ }),
35
+ o("span", B, P(s.message), 1)
36
+ ]),
37
+ o("div", E, [
38
+ n(i, {
39
+ variant: "warning",
40
+ label: "Cancel",
41
+ size: "sm",
42
+ onClick: d
43
+ }),
44
+ n(i, {
45
+ variant: "primary",
46
+ label: "Confirm",
47
+ size: "sm",
48
+ onClick: (a) => u(x)
49
+ }, null, 8, ["onClick"])
50
+ ])
51
+ ])
52
+ ]),
53
+ default: r(() => [
54
+ w(e.$slots, "default")
55
+ ]),
56
+ _: 3
57
+ }, 8, ["placement"]);
58
+ };
59
+ }
60
+ });
61
+ export {
62
+ O as _
63
+ };
64
+ //# sourceMappingURL=Popconfirm.vue_vue_type_script_setup_true_lang-BMaHpkCO.js.map
package/dist/Popover.js CHANGED
@@ -1,6 +1,7 @@
1
- import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-Dhcy-iL3.js";
2
- import { p as P } from "./plugin-c1rFpmlH.js";
1
+ import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-C69m5Nld.js";
2
+ import { p as P } from "./plugin-CVGZQLLW.js";
3
3
  export {
4
4
  p as Popover,
5
5
  P as PopoverPlugin
6
6
  };
7
+ //# sourceMappingURL=Popover.js.map