@feugene/granularity 0.4.0 → 0.4.2

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 (432) hide show
  1. package/dist/chunks/_plugin-vue_export-helper-BG_EqiDU.js +8 -0
  2. package/dist/chunks/adapter-K6zZTzBi.js +4 -0
  3. package/dist/chunks/adapter-K6zZTzBi.js.map +1 -0
  4. package/dist/chunks/arrow-up-DNXrMoAI.js +23 -0
  5. package/dist/chunks/arrow-up-DNXrMoAI.js.map +1 -0
  6. package/dist/chunks/classTokens-BPeBXNzu.js +6 -0
  7. package/dist/chunks/classTokens-BPeBXNzu.js.map +1 -0
  8. package/dist/chunks/config-1I95Zy4V.js +14 -0
  9. package/dist/chunks/config-1I95Zy4V.js.map +1 -0
  10. package/dist/chunks/config-2wgwWaAB.js +8 -0
  11. package/dist/chunks/config-2wgwWaAB.js.map +1 -0
  12. package/dist/chunks/config-BA0BWYzs.js +8 -0
  13. package/dist/chunks/config-BA0BWYzs.js.map +1 -0
  14. package/dist/chunks/config-BCPyma1I.js +8 -0
  15. package/dist/chunks/config-BCPyma1I.js.map +1 -0
  16. package/dist/chunks/config-BDlh6iNz.js +24 -0
  17. package/dist/chunks/config-BDlh6iNz.js.map +1 -0
  18. package/dist/chunks/config-BKRmlivc.js +8 -0
  19. package/dist/chunks/config-BKRmlivc.js.map +1 -0
  20. package/dist/chunks/config-BN-B2K4r.js +17 -0
  21. package/dist/chunks/config-BN-B2K4r.js.map +1 -0
  22. package/dist/chunks/config-BNOf_qjD.js +40 -0
  23. package/dist/chunks/config-BNOf_qjD.js.map +1 -0
  24. package/dist/chunks/config-BaMO9dQh.js +20 -0
  25. package/dist/chunks/config-BaMO9dQh.js.map +1 -0
  26. package/dist/chunks/config-Bv2G0OU6.js +8 -0
  27. package/dist/chunks/config-Bv2G0OU6.js.map +1 -0
  28. package/dist/chunks/config-BvuQUBtZ.js +21 -0
  29. package/dist/chunks/config-BvuQUBtZ.js.map +1 -0
  30. package/dist/chunks/config-BzZGpWsj.js +9 -0
  31. package/dist/chunks/config-BzZGpWsj.js.map +1 -0
  32. package/dist/chunks/config-C0j836dC.js +8 -0
  33. package/dist/chunks/config-C0j836dC.js.map +1 -0
  34. package/dist/chunks/config-C2iI7_QX.js +9 -0
  35. package/dist/chunks/config-C2iI7_QX.js.map +1 -0
  36. package/dist/chunks/config-C4AlNm912.js +13 -0
  37. package/dist/chunks/config-C4AlNm912.js.map +1 -0
  38. package/dist/chunks/config-C5SJXHQ4.js +9 -0
  39. package/dist/chunks/config-C5SJXHQ4.js.map +1 -0
  40. package/dist/chunks/config-C6SBJxcH.js +8 -0
  41. package/dist/chunks/config-C6SBJxcH.js.map +1 -0
  42. package/dist/chunks/config-CByfsV-z2.js +9 -0
  43. package/dist/chunks/config-CByfsV-z2.js.map +1 -0
  44. package/dist/chunks/config-CM7nbATU2.js +78 -0
  45. package/dist/chunks/config-CM7nbATU2.js.map +1 -0
  46. package/dist/chunks/config-CMZE2fu0.js +9 -0
  47. package/dist/chunks/config-CMZE2fu0.js.map +1 -0
  48. package/dist/chunks/config-CU_CBd0k.js +22 -0
  49. package/dist/chunks/config-CU_CBd0k.js.map +1 -0
  50. package/dist/chunks/config-CUgvsjZx.js +171 -0
  51. package/dist/chunks/config-CUgvsjZx.js.map +1 -0
  52. package/dist/chunks/config-CWvHiaqr2.js +23 -0
  53. package/dist/chunks/config-CWvHiaqr2.js.map +1 -0
  54. package/dist/chunks/config-Cf0J6wCX.js +58 -0
  55. package/dist/chunks/config-Cf0J6wCX.js.map +1 -0
  56. package/dist/chunks/config-CgAY2WP9.js +9 -0
  57. package/dist/chunks/config-CgAY2WP9.js.map +1 -0
  58. package/dist/chunks/config-Cgc-D1K4.js +9 -0
  59. package/dist/chunks/config-Cgc-D1K4.js.map +1 -0
  60. package/dist/chunks/config-D19pyP4D.js +35 -0
  61. package/dist/chunks/config-D19pyP4D.js.map +1 -0
  62. package/dist/chunks/config-DCQO6H6h.js +11 -0
  63. package/dist/chunks/config-DCQO6H6h.js.map +1 -0
  64. package/dist/chunks/config-DEv4m-ZP.js +58 -0
  65. package/dist/chunks/config-DEv4m-ZP.js.map +1 -0
  66. package/dist/chunks/config-DFRYOcrP.js +9 -0
  67. package/dist/chunks/config-DFRYOcrP.js.map +1 -0
  68. package/dist/chunks/config-DTpwUHgF.js +9 -0
  69. package/dist/chunks/config-DTpwUHgF.js.map +1 -0
  70. package/dist/chunks/config-DW_RqmUp.js +8 -0
  71. package/dist/chunks/config-DW_RqmUp.js.map +1 -0
  72. package/dist/chunks/config-Da90XGsi.js +38 -0
  73. package/dist/chunks/config-Da90XGsi.js.map +1 -0
  74. package/dist/chunks/config-DgRJlF00.js +53 -0
  75. package/dist/chunks/config-DgRJlF00.js.map +1 -0
  76. package/dist/chunks/config-Dkq0HeLe.js +9 -0
  77. package/dist/chunks/config-Dkq0HeLe.js.map +1 -0
  78. package/dist/chunks/config-DmI1IQvI2.js +8 -0
  79. package/dist/chunks/config-DmI1IQvI2.js.map +1 -0
  80. package/dist/chunks/config-Dnu4VuO0.js +8 -0
  81. package/dist/chunks/config-Dnu4VuO0.js.map +1 -0
  82. package/dist/chunks/config-DxqpV-KM.js +45 -0
  83. package/dist/chunks/config-DxqpV-KM.js.map +1 -0
  84. package/dist/chunks/config-TyzU6gLf.js +8 -0
  85. package/dist/chunks/config-TyzU6gLf.js.map +1 -0
  86. package/dist/chunks/config-XwI6t8cn.js +39 -0
  87. package/dist/chunks/config-XwI6t8cn.js.map +1 -0
  88. package/dist/chunks/config-bpQYM5O-.js +44 -0
  89. package/dist/chunks/config-bpQYM5O-.js.map +1 -0
  90. package/dist/chunks/config-etXh7Bsr2.js +9 -0
  91. package/dist/chunks/config-etXh7Bsr2.js.map +1 -0
  92. package/dist/chunks/config-fCcRwjIB.js +13 -0
  93. package/dist/chunks/config-fCcRwjIB.js.map +1 -0
  94. package/dist/chunks/config-nfOMJXVs.js +9 -0
  95. package/dist/chunks/config-nfOMJXVs.js.map +1 -0
  96. package/dist/chunks/config-qJXIIY1E.js +8 -0
  97. package/dist/chunks/config-qJXIIY1E.js.map +1 -0
  98. package/dist/chunks/config-r6hzn2Bn2.js +9 -0
  99. package/dist/chunks/config-r6hzn2Bn2.js.map +1 -0
  100. package/dist/chunks/config-rQlbnEKn.js +8 -0
  101. package/dist/chunks/config-rQlbnEKn.js.map +1 -0
  102. package/dist/chunks/dialogShared-BtXUk6Zc.js +32 -0
  103. package/dist/chunks/dialogShared-BtXUk6Zc.js.map +1 -0
  104. package/dist/chunks/en-BeJa78lP.js +48 -0
  105. package/dist/chunks/en-BeJa78lP.js.map +1 -0
  106. package/dist/chunks/es-BPqm7rLm.js +20 -0
  107. package/dist/chunks/es-BPqm7rLm.js.map +1 -0
  108. package/dist/chunks/es-axYOwwWD.js +48 -0
  109. package/dist/chunks/es-axYOwwWD.js.map +1 -0
  110. package/dist/chunks/fileValidation-CwJA8Vmn.js +219 -0
  111. package/dist/chunks/fileValidation-CwJA8Vmn.js.map +1 -0
  112. package/dist/chunks/{grBadgeStyles-Bu4H8bFc.js → grBadgeStyles-pqqbVgLk.js} +18 -13
  113. package/dist/chunks/grBadgeStyles-pqqbVgLk.js.map +1 -0
  114. package/dist/chunks/{grButtonStyles-C5k0bN2e.js → grButtonStyles-BxZW2x0-.js} +60 -52
  115. package/dist/chunks/grButtonStyles-BxZW2x0-.js.map +1 -0
  116. package/dist/chunks/{grDropdownStyles-149X1NeB.js → grDropdownStyles-DMp7RrI9.js} +10 -9
  117. package/dist/chunks/grDropdownStyles-DMp7RrI9.js.map +1 -0
  118. package/dist/chunks/grLoadingStyles-CrxZHFL0.js +17 -0
  119. package/dist/chunks/grLoadingStyles-CrxZHFL0.js.map +1 -0
  120. package/dist/chunks/{grModalStyles-Dmd4havY.js → grModalStyles-Dv2NXBKi.js} +20 -11
  121. package/dist/chunks/grModalStyles-Dv2NXBKi.js.map +1 -0
  122. package/dist/chunks/grSelectStyles-B7doeAQp.js +50 -0
  123. package/dist/chunks/grSelectStyles-B7doeAQp.js.map +1 -0
  124. package/dist/chunks/granularityI18n-GCqUz_lo.js +26 -0
  125. package/dist/chunks/granularityI18n-GCqUz_lo.js.map +1 -0
  126. package/dist/chunks/info-C0bHmdZq.js +26 -0
  127. package/dist/chunks/info-C0bHmdZq.js.map +1 -0
  128. package/dist/chunks/loader-circle-B2rWDk5u.js +23 -0
  129. package/dist/chunks/loader-circle-B2rWDk5u.js.map +1 -0
  130. package/dist/chunks/ru-Dqh-2C00.js +48 -0
  131. package/dist/chunks/ru-Dqh-2C00.js.map +1 -0
  132. package/dist/chunks/safelist-BF822K15.js +13 -0
  133. package/dist/chunks/safelist-BF822K15.js.map +1 -0
  134. package/dist/chunks/safelist-BY7z8fOl.js +24 -0
  135. package/dist/chunks/safelist-BY7z8fOl.js.map +1 -0
  136. package/dist/chunks/{shared-BqUqjuxn.js → shared-Cu5QkNmt.js} +149 -111
  137. package/dist/chunks/shared-Cu5QkNmt.js.map +1 -0
  138. package/dist/chunks/transition-mJ3PZCHH.js +1692 -0
  139. package/dist/chunks/transition-mJ3PZCHH.js.map +1 -0
  140. package/dist/chunks/x-Pa6C2hwi.js +23 -0
  141. package/dist/chunks/x-Pa6C2hwi.js.map +1 -0
  142. package/dist/chunks/x-circle-DQSlBLmX.js +67 -0
  143. package/dist/chunks/x-circle-DQSlBLmX.js.map +1 -0
  144. package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +146 -0
  145. package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js.map +1 -0
  146. package/dist/components/GrAlert/index.js +3 -3
  147. package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js +41 -0
  148. package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js.map +1 -0
  149. package/dist/components/GrAvatar/index.js +3 -3
  150. package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js +32 -0
  151. package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js.map +1 -0
  152. package/dist/components/GrBadge/index.js +3 -3
  153. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js +33 -0
  154. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js.map +1 -0
  155. package/dist/components/GrBadgeWrap/index.js +3 -3
  156. package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js +31 -0
  157. package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js.map +1 -0
  158. package/dist/components/GrBottomNav/index.js +3 -3
  159. package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js +83 -0
  160. package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js.map +1 -0
  161. package/dist/components/GrButton/index.js +5 -5
  162. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js +21 -0
  163. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js.map +1 -0
  164. package/dist/components/GrButtonGroup/index.js +3 -3
  165. package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js +11 -0
  166. package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js.map +1 -0
  167. package/dist/components/GrCard/index.js +3 -3
  168. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js +134 -0
  169. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +1 -0
  170. package/dist/components/GrCheckbox/index.js +3 -3
  171. package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js +205 -0
  172. package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js.map +1 -0
  173. package/dist/components/GrCollapse/index.js +3 -3
  174. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js +131 -0
  175. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js.map +1 -0
  176. package/dist/components/GrConfirmDialog/index.js +3 -3
  177. package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js +179 -0
  178. package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js.map +1 -0
  179. package/dist/components/GrDataTable/index.js +3 -3
  180. package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js +221 -0
  181. package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js.map +1 -0
  182. package/dist/components/GrDialog/index.js +4 -4
  183. package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js +156 -0
  184. package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js.map +1 -0
  185. package/dist/components/GrDrawer/index.js +3 -3
  186. package/dist/components/GrDropdown/chunks/GrDropdown-BkACCXdp.js +151 -0
  187. package/dist/components/GrDropdown/chunks/GrDropdown-BkACCXdp.js.map +1 -0
  188. package/dist/components/GrDropdown/index.js +3 -3
  189. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BEenXrJw.js +309 -0
  190. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BEenXrJw.js.map +1 -0
  191. package/dist/components/GrDropdownMenu/index.js +3 -3
  192. package/dist/components/GrEmptyState/chunks/GrEmptyState-BLbMJFW-.js +62 -0
  193. package/dist/components/GrEmptyState/chunks/GrEmptyState-BLbMJFW-.js.map +1 -0
  194. package/dist/components/GrEmptyState/index.js +3 -3
  195. package/dist/components/GrFileUpload/chunks/GrFileUpload-u01j9S0t.js +368 -0
  196. package/dist/components/GrFileUpload/chunks/GrFileUpload-u01j9S0t.js.map +1 -0
  197. package/dist/components/GrFileUpload/index.js +4 -4
  198. package/dist/components/GrFormField/chunks/GrFormField-C6PfAs4u.js +35 -0
  199. package/dist/components/GrFormField/chunks/GrFormField-C6PfAs4u.js.map +1 -0
  200. package/dist/components/GrFormField/index.js +3 -3
  201. package/dist/components/GrFormFile/chunks/GrFormFile-DdM8Bc2B.js +313 -0
  202. package/dist/components/GrFormFile/chunks/GrFormFile-DdM8Bc2B.js.map +1 -0
  203. package/dist/components/GrFormFile/index.js +3 -3
  204. package/dist/components/GrFormSection/chunks/GrFormSection-5djEaQZQ.js +35 -0
  205. package/dist/components/GrFormSection/chunks/GrFormSection-5djEaQZQ.js.map +1 -0
  206. package/dist/components/GrFormSection/index.js +3 -3
  207. package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +32 -0
  208. package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js.map +1 -0
  209. package/dist/components/GrIcon/index.js +3 -3
  210. package/dist/components/GrImageViewer/chunks/GrImageViewer-CjSnohW7.js +397 -0
  211. package/dist/components/GrImageViewer/chunks/GrImageViewer-CjSnohW7.js.map +1 -0
  212. package/dist/components/GrImageViewer/index.js +3 -3
  213. package/dist/components/GrInput/chunks/GrInput-ghxaTf6d.js +211 -0
  214. package/dist/components/GrInput/chunks/GrInput-ghxaTf6d.js.map +1 -0
  215. package/dist/components/GrInput/index.js +3 -3
  216. package/dist/components/GrInputTag/chunks/GrInputTag-B0x4U0Yk.js +257 -0
  217. package/dist/components/GrInputTag/chunks/GrInputTag-B0x4U0Yk.js.map +1 -0
  218. package/dist/components/GrInputTag/index.js +3 -3
  219. package/dist/components/GrLink/chunks/GrLink-C7-Y1u88.js +80 -0
  220. package/dist/components/GrLink/chunks/GrLink-C7-Y1u88.js.map +1 -0
  221. package/dist/components/GrLink/index.js +3 -3
  222. package/dist/components/GrList/chunks/GrList--Ib4zLNw.js +77 -0
  223. package/dist/components/GrList/chunks/GrList--Ib4zLNw.js.map +1 -0
  224. package/dist/components/GrList/index.js +3 -3
  225. package/dist/components/GrLoading/chunks/GrLoading-C3QZKwE-.js +69 -0
  226. package/dist/components/GrLoading/chunks/GrLoading-C3QZKwE-.js.map +1 -0
  227. package/dist/components/GrLoading/index.js +3 -3
  228. package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +168 -0
  229. package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js.map +1 -0
  230. package/dist/components/GrModal/index.js +4 -4
  231. package/dist/components/GrNavbar/chunks/GrNavbar-nIyuiVj1.js +75 -0
  232. package/dist/components/GrNavbar/chunks/GrNavbar-nIyuiVj1.js.map +1 -0
  233. package/dist/components/GrNavbar/index.js +3 -3
  234. package/dist/components/GrNumberInput/chunks/GrNumberInput-B0mPLjdv.js +397 -0
  235. package/dist/components/GrNumberInput/chunks/GrNumberInput-B0mPLjdv.js.map +1 -0
  236. package/dist/components/GrNumberInput/index.js +3 -3
  237. package/dist/components/GrPagination/chunks/GrPagination-BSTO6flk.js +114 -0
  238. package/dist/components/GrPagination/chunks/GrPagination-BSTO6flk.js.map +1 -0
  239. package/dist/components/GrPagination/index.js +3 -3
  240. package/dist/components/GrProgressBar/chunks/GrProgressBar-MvMnzsJl.js +39 -0
  241. package/dist/components/GrProgressBar/chunks/GrProgressBar-MvMnzsJl.js.map +1 -0
  242. package/dist/components/GrProgressBar/index.js +3 -3
  243. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DKhbN6ji.js +190 -0
  244. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DKhbN6ji.js.map +1 -0
  245. package/dist/components/GrPromptDialog/index.js +3 -3
  246. package/dist/components/GrRadio/chunks/GrRadio-BxBs3WHq.js +184 -0
  247. package/dist/components/GrRadio/chunks/GrRadio-BxBs3WHq.js.map +1 -0
  248. package/dist/components/GrRadio/index.js +3 -3
  249. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CEAfJQ6A.js +80 -0
  250. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CEAfJQ6A.js.map +1 -0
  251. package/dist/components/GrRadioGroup/index.js +3 -3
  252. package/dist/components/GrSegmented/chunks/GrSegmented-Bwn2qOY4.js +323 -0
  253. package/dist/components/GrSegmented/chunks/GrSegmented-Bwn2qOY4.js.map +1 -0
  254. package/dist/components/GrSegmented/index.js +3 -3
  255. package/dist/components/GrSelect/chunks/GrSelect-9wRWAu2R.js +443 -0
  256. package/dist/components/GrSelect/chunks/GrSelect-9wRWAu2R.js.map +1 -0
  257. package/dist/components/GrSelect/index.js +3 -3
  258. package/dist/components/GrSidebar/chunks/GrSidebar-CSZ3RpFB.js +44 -0
  259. package/dist/components/GrSidebar/chunks/GrSidebar-CSZ3RpFB.js.map +1 -0
  260. package/dist/components/GrSidebar/index.js +3 -3
  261. package/dist/components/GrSkeleton/chunks/GrSkeleton-DKXkqWDa.js +33 -0
  262. package/dist/components/GrSkeleton/chunks/GrSkeleton-DKXkqWDa.js.map +1 -0
  263. package/dist/components/GrSkeleton/index.js +3 -3
  264. package/dist/components/GrSwitch/chunks/GrSwitch-CdBxwV3k.js +79 -0
  265. package/dist/components/GrSwitch/chunks/GrSwitch-CdBxwV3k.js.map +1 -0
  266. package/dist/components/GrSwitch/index.js +3 -3
  267. package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +57 -0
  268. package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js.map +1 -0
  269. package/dist/components/GrTable/index.js +3 -3
  270. package/dist/components/GrTabs/chunks/GrTabs-BpF8AAUz.js +118 -0
  271. package/dist/components/GrTabs/chunks/GrTabs-BpF8AAUz.js.map +1 -0
  272. package/dist/components/GrTabs/index.js +3 -3
  273. package/dist/components/GrTextarea/chunks/GrTextarea-DFS9ZkrA.js +71 -0
  274. package/dist/components/GrTextarea/chunks/GrTextarea-DFS9ZkrA.js.map +1 -0
  275. package/dist/components/GrTextarea/index.js +3 -3
  276. package/dist/components/GrToaster/chunks/GrToaster-3Mf0Moxt.js +171 -0
  277. package/dist/components/GrToaster/chunks/GrToaster-3Mf0Moxt.js.map +1 -0
  278. package/dist/components/GrToaster/index.js +3 -3
  279. package/dist/components/GrTooltip/chunks/GrTooltip-BvmsukLW.js +55 -0
  280. package/dist/components/GrTooltip/chunks/GrTooltip-BvmsukLW.js.map +1 -0
  281. package/dist/components/GrTooltip/index.js +3 -3
  282. package/dist/components/GrTree/chunks/GrTree-C2kN-O4Q.js +734 -0
  283. package/dist/components/GrTree/chunks/GrTree-C2kN-O4Q.js.map +1 -0
  284. package/dist/components/GrTree/index.js +3 -3
  285. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-Da-CpRqm.js +454 -0
  286. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-Da-CpRqm.js.map +1 -0
  287. package/dist/components/GrTreeSelect/index.js +3 -3
  288. package/dist/composables/useTheme.js +39 -30
  289. package/dist/composables/useTheme.js.map +1 -0
  290. package/dist/composables/useToast.js +41 -34
  291. package/dist/composables/useToast.js.map +1 -0
  292. package/dist/directives/autofocus.js +55 -0
  293. package/dist/directives/autofocus.js.map +1 -0
  294. package/dist/directives/autosize.js +117 -0
  295. package/dist/directives/autosize.js.map +1 -0
  296. package/dist/directives/clickOutside.js +96 -0
  297. package/dist/directives/clickOutside.js.map +1 -0
  298. package/dist/directives/dropzone.js +164 -0
  299. package/dist/directives/dropzone.js.map +1 -0
  300. package/dist/directives/hotkey.js +138 -0
  301. package/dist/directives/hotkey.js.map +1 -0
  302. package/dist/directives/index.js +7 -2
  303. package/dist/directives/loading.js +163 -0
  304. package/dist/directives/loading.js.map +1 -0
  305. package/dist/fileValidation/index.js +2 -2
  306. package/dist/granular-provider-node.js +23 -14
  307. package/dist/granular-provider-node.js.map +1 -0
  308. package/dist/granular-provider.js +3 -3
  309. package/dist/granular-provider.js.map +1 -0
  310. package/dist/i18n/all.js +6 -6
  311. package/dist/i18n/all.js.map +1 -0
  312. package/dist/i18n/index.js +3 -3
  313. package/dist/index.js +110 -105
  314. package/dist/vue/index.js +64 -26
  315. package/dist/vue/index.js.map +1 -0
  316. package/package.json +25 -1
  317. package/dist/chunks/_plugin-vue_export-helper-CHO2XVys.js +0 -8
  318. package/dist/chunks/adapter-D5uYoOZj.js +0 -4
  319. package/dist/chunks/arrow-up-Dv3dC3hu.js +0 -23
  320. package/dist/chunks/classTokens-CT1tqF2j.js +0 -6
  321. package/dist/chunks/config-B5JCvHys.js +0 -13
  322. package/dist/chunks/config-BDXa5Sna2.js +0 -9
  323. package/dist/chunks/config-BG5_FuZ-.js +0 -34
  324. package/dist/chunks/config-BMYKG1oB.js +0 -10
  325. package/dist/chunks/config-BQREEXFD.js +0 -8
  326. package/dist/chunks/config-BUZtbeTr.js +0 -40
  327. package/dist/chunks/config-BVXycfiO.js +0 -9
  328. package/dist/chunks/config-BZW-RL6E.js +0 -14
  329. package/dist/chunks/config-BhbfV-Is.js +0 -48
  330. package/dist/chunks/config-BmYFupZh.js +0 -8
  331. package/dist/chunks/config-BsZc_QQ-2.js +0 -20
  332. package/dist/chunks/config-C1Sn7mn-.js +0 -27
  333. package/dist/chunks/config-C4_REX-3.js +0 -9
  334. package/dist/chunks/config-CBFllZZ4.js +0 -9
  335. package/dist/chunks/config-CDyD_fCt.js +0 -8
  336. package/dist/chunks/config-CJeG727i.js +0 -149
  337. package/dist/chunks/config-CLawBqde.js +0 -21
  338. package/dist/chunks/config-CMz46RPG.js +0 -8
  339. package/dist/chunks/config-CO-7HRZd2.js +0 -8
  340. package/dist/chunks/config-CS7E7LME.js +0 -9
  341. package/dist/chunks/config-CVy124Xj.js +0 -8
  342. package/dist/chunks/config-CcixQGaN.js +0 -47
  343. package/dist/chunks/config-CiVXZxyQ.js +0 -9
  344. package/dist/chunks/config-CoMQmunP.js +0 -8
  345. package/dist/chunks/config-Cq6ufYtp.js +0 -9
  346. package/dist/chunks/config-D8CIEWcb.js +0 -8
  347. package/dist/chunks/config-D8hKc39m.js +0 -18
  348. package/dist/chunks/config-D9MxGwCJ.js +0 -8
  349. package/dist/chunks/config-DBXTZE36.js +0 -15
  350. package/dist/chunks/config-DK9C8O7L.js +0 -9
  351. package/dist/chunks/config-DTegOmx2.js +0 -8
  352. package/dist/chunks/config-DYI8XADo.js +0 -47
  353. package/dist/chunks/config-DlidGf7P.js +0 -8
  354. package/dist/chunks/config-DtNe7EIX.js +0 -35
  355. package/dist/chunks/config-EdWeK_ge.js +0 -17
  356. package/dist/chunks/config-FGAkxHFh.js +0 -8
  357. package/dist/chunks/config-M76gNxd2.js +0 -37
  358. package/dist/chunks/config-NuqoO_Of.js +0 -33
  359. package/dist/chunks/config-QsovJrku2.js +0 -66
  360. package/dist/chunks/config-R6F6zRJk.js +0 -9
  361. package/dist/chunks/config-SLwkDc4Q2.js +0 -9
  362. package/dist/chunks/config-aJ7sb62Y.js +0 -8
  363. package/dist/chunks/config-b9nc87Oc.js +0 -9
  364. package/dist/chunks/config-dSI8RttH2.js +0 -8
  365. package/dist/chunks/config-im2VHeSM.js +0 -9
  366. package/dist/chunks/config-vKeQ035f.js +0 -9
  367. package/dist/chunks/config-vMcxHlWi.js +0 -14
  368. package/dist/chunks/dialogShared-CONROtU2.js +0 -26
  369. package/dist/chunks/directives-Dr5NPOT8.js +0 -530
  370. package/dist/chunks/en-j3simI0h.js +0 -41
  371. package/dist/chunks/es-CIT9s_vo.js +0 -4
  372. package/dist/chunks/es-CLpJj7KP.js +0 -41
  373. package/dist/chunks/fileValidation-LFD-vwil.js +0 -193
  374. package/dist/chunks/grLoadingStyles-Bjo7ylmq.js +0 -15
  375. package/dist/chunks/grSelectStyles-C3QKIn1J.js +0 -40
  376. package/dist/chunks/granularityI18n-8_v1B11L.js +0 -24
  377. package/dist/chunks/info-CNJnuTYC.js +0 -26
  378. package/dist/chunks/loader-circle-C5vCCMfB.js +0 -23
  379. package/dist/chunks/ru-CiOZPnBu.js +0 -41
  380. package/dist/chunks/safelist-Bq32hAXc.js +0 -13
  381. package/dist/chunks/safelist-CLcTRYB-.js +0 -22
  382. package/dist/chunks/transition-BJXMi52x.js +0 -1617
  383. package/dist/chunks/x--kxrj3ez.js +0 -23
  384. package/dist/chunks/x-circle-ChJ87u1v.js +0 -61
  385. package/dist/components/GrAlert/chunks/GrAlert-DLHkusb-.js +0 -129
  386. package/dist/components/GrAvatar/chunks/GrAvatar-BFYH3HJw.js +0 -32
  387. package/dist/components/GrBadge/chunks/GrBadge-D_AoqGrn.js +0 -27
  388. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C_N0QJfA.js +0 -26
  389. package/dist/components/GrBottomNav/chunks/GrBottomNav-Chpu3SVd.js +0 -21
  390. package/dist/components/GrButton/chunks/GrButton-BXVVt6Od.js +0 -67
  391. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CmnYHVH7.js +0 -16
  392. package/dist/components/GrCard/chunks/GrCard-DEpN6Ptf.js +0 -10
  393. package/dist/components/GrCheckbox/chunks/GrCheckbox-DF3vJApB.js +0 -111
  394. package/dist/components/GrCollapse/chunks/GrCollapse-D7QYRqNa.js +0 -150
  395. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-C7Eh8-Vn.js +0 -111
  396. package/dist/components/GrDataTable/chunks/GrDataTable-Dxsg1NMP.js +0 -142
  397. package/dist/components/GrDialog/chunks/GrDialog-BSd4-uP5.js +0 -169
  398. package/dist/components/GrDrawer/chunks/GrDrawer-DBBSwe1s.js +0 -135
  399. package/dist/components/GrDropdown/chunks/GrDropdown-BELyRP4A.js +0 -110
  400. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-B8fuk7iP.js +0 -233
  401. package/dist/components/GrEmptyState/chunks/GrEmptyState-BPGoafJI.js +0 -49
  402. package/dist/components/GrFileUpload/chunks/GrFileUpload-BPzx3LEM.js +0 -294
  403. package/dist/components/GrFormField/chunks/GrFormField-Cn8g9eFP.js +0 -28
  404. package/dist/components/GrFormFile/chunks/GrFormFile-DfinD5Iv.js +0 -248
  405. package/dist/components/GrFormSection/chunks/GrFormSection-dKpQw-vh.js +0 -27
  406. package/dist/components/GrIcon/chunks/GrIcon-CXIHuG7L.js +0 -25
  407. package/dist/components/GrImageViewer/chunks/GrImageViewer-CQSNx-D7.js +0 -322
  408. package/dist/components/GrInput/chunks/GrInput-CLKX1inm.js +0 -158
  409. package/dist/components/GrInputTag/chunks/GrInputTag-BAtLody2.js +0 -214
  410. package/dist/components/GrLink/chunks/GrLink-BpXnly-Y.js +0 -59
  411. package/dist/components/GrList/chunks/GrList-BrFc7VdS.js +0 -55
  412. package/dist/components/GrLoading/chunks/GrLoading-dFuoryMY.js +0 -53
  413. package/dist/components/GrModal/chunks/GrModal-uaWXH08K.js +0 -136
  414. package/dist/components/GrNavbar/chunks/GrNavbar-KzLHgdjX.js +0 -62
  415. package/dist/components/GrNumberInput/chunks/GrNumberInput-rENn1802.js +0 -315
  416. package/dist/components/GrPagination/chunks/GrPagination-DP0x3rx6.js +0 -93
  417. package/dist/components/GrProgressBar/chunks/GrProgressBar-DpW93sOi.js +0 -29
  418. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-ASfBwyzQ.js +0 -158
  419. package/dist/components/GrRadio/chunks/GrRadio-8BOo97XV.js +0 -147
  420. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BymbUmqI.js +0 -66
  421. package/dist/components/GrSegmented/chunks/GrSegmented-CK5C_lN7.js +0 -250
  422. package/dist/components/GrSelect/chunks/GrSelect-BMfc1-vs.js +0 -314
  423. package/dist/components/GrSidebar/chunks/GrSidebar-C4SXXhfO.js +0 -29
  424. package/dist/components/GrSkeleton/chunks/GrSkeleton-QlieOdpY.js +0 -25
  425. package/dist/components/GrSwitch/chunks/GrSwitch-Cefiutzu.js +0 -64
  426. package/dist/components/GrTable/chunks/GrTable-k_FUiJQk.js +0 -44
  427. package/dist/components/GrTabs/chunks/GrTabs-B46P-lUc.js +0 -98
  428. package/dist/components/GrTextarea/chunks/GrTextarea-BX7L1MJk.js +0 -57
  429. package/dist/components/GrToaster/chunks/GrToaster-C4l_BjOh.js +0 -139
  430. package/dist/components/GrTooltip/chunks/GrTooltip-BqRAzuLT.js +0 -37
  431. package/dist/components/GrTree/chunks/GrTree-C2CXR_vW.js +0 -614
  432. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DAAay-QB.js +0 -353
@@ -1,111 +0,0 @@
1
- import { t as e } from "../../GrButton/chunks/GrButton-BXVVt6Od.js";
2
- import { t } from "../../GrDialog/chunks/GrDialog-BSd4-uP5.js";
3
- import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, renderSlot as d, toDisplayString as f, withCtx as p } from "vue";
4
- //#region src/components/GrConfirmDialog/GrConfirmDialog.vue?vue&type=script&setup=true&lang.ts
5
- var m = {
6
- key: 0,
7
- class: "text-[14px] text-[var(--muted-fg)]"
8
- }, h = { class: "flex items-center justify-end gap-3" }, g = /* @__PURE__ */ l({
9
- __name: "GrConfirmDialog",
10
- props: {
11
- modelValue: { type: Boolean },
12
- title: { default: "Confirm" },
13
- description: { default: void 0 },
14
- closeOnBackdrop: {
15
- type: Boolean,
16
- default: !0
17
- },
18
- closeOnEsc: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- showHeader: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- showCloseButton: {
27
- type: Boolean,
28
- default: !0
29
- },
30
- size: { default: "md" },
31
- headerConfig: { default: void 0 },
32
- footerConfig: { default: void 0 },
33
- bodyConfig: { default: void 0 },
34
- closeLabel: { default: "Close" },
35
- buttonSize: { default: void 0 },
36
- confirmText: { default: "Confirm" },
37
- cancelText: { default: "Cancel" },
38
- confirmVariant: { default: "primary" },
39
- confirmTone: { default: "primary" }
40
- },
41
- emits: [
42
- "update:modelValue",
43
- "confirm",
44
- "cancel"
45
- ],
46
- setup(l, { emit: g }) {
47
- let _ = l, v = g, y = n({
48
- get: () => _.modelValue,
49
- set: (e) => v("update:modelValue", e)
50
- });
51
- function b() {
52
- v("cancel"), v("update:modelValue", !1);
53
- }
54
- function x() {
55
- v("confirm"), v("update:modelValue", !1);
56
- }
57
- return (n, g) => (u(), r(t, {
58
- modelValue: y.value,
59
- "onUpdate:modelValue": g[0] ||= (e) => y.value = e,
60
- title: l.title,
61
- size: l.size,
62
- "close-on-backdrop": l.closeOnBackdrop,
63
- "close-on-esc": l.closeOnEsc,
64
- "show-header": l.showHeader,
65
- "show-close-button": l.showCloseButton,
66
- "header-config": l.headerConfig,
67
- "footer-config": l.footerConfig,
68
- "body-config": l.bodyConfig,
69
- "close-label": l.closeLabel
70
- }, {
71
- footer: p(() => [d(n.$slots, "footer", {}, () => [o("div", h, [c(e, {
72
- "data-testid": "ds-confirm-cancel",
73
- variant: "outline",
74
- size: l.buttonSize,
75
- onClick: b
76
- }, {
77
- default: p(() => [s(f(l.cancelText), 1)]),
78
- _: 1
79
- }, 8, ["size"]), c(e, {
80
- "data-testid": "ds-confirm-confirm",
81
- variant: l.confirmVariant,
82
- tone: l.confirmTone,
83
- size: l.buttonSize,
84
- onClick: x
85
- }, {
86
- default: p(() => [s(f(l.confirmText), 1)]),
87
- _: 1
88
- }, 8, [
89
- "variant",
90
- "tone",
91
- "size"
92
- ])])])]),
93
- default: p(() => [d(n.$slots, "default", {}, () => [l.description ? (u(), a("div", m, f(l.description), 1)) : i("", !0)])]),
94
- _: 3
95
- }, 8, [
96
- "modelValue",
97
- "title",
98
- "size",
99
- "close-on-backdrop",
100
- "close-on-esc",
101
- "show-header",
102
- "show-close-button",
103
- "header-config",
104
- "footer-config",
105
- "body-config",
106
- "close-label"
107
- ]));
108
- }
109
- });
110
- //#endregion
111
- export { g as t };
@@ -1,142 +0,0 @@
1
- import { t as e } from "../../GrIcon/chunks/GrIcon-CXIHuG7L.js";
2
- import { t } from "../../GrTable/chunks/GrTable-k_FUiJQk.js";
3
- import { t as n } from "../../../chunks/arrow-up-Dv3dC3hu.js";
4
- import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, markRaw as p, mergeProps as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
5
- //#region ~icons/lucide/arrow-down
6
- var C = {
7
- viewBox: "0 0 24 24",
8
- width: "1.2em",
9
- height: "1.2em"
10
- };
11
- function w(e, t) {
12
- return g(), s("svg", C, [...t[0] ||= [c("path", {
13
- fill: "none",
14
- stroke: "currentColor",
15
- "stroke-linecap": "round",
16
- "stroke-linejoin": "round",
17
- "stroke-width": "2",
18
- d: "M12 5v14m7-7l-7 7l-7-7"
19
- }, null, -1)]]);
20
- }
21
- var T = p({
22
- name: "lucide-arrow-down",
23
- render: w
24
- }), E = { "data-ds-datatable-header": "" }, D = ["aria-sort"], O = { class: "inline-flex items-center gap-2" }, k = ["aria-label", "onClick"], A = { class: "inline-flex" }, j = {
25
- key: 1,
26
- class: "text-[var(--muted-fg)]"
27
- }, M = {
28
- key: 0,
29
- "data-ds-datatable-empty": ""
30
- }, N = ["colspan"], P = /* @__PURE__ */ f({
31
- __name: "GrDataTable",
32
- props: {
33
- rows: {},
34
- columns: {},
35
- rowKey: {
36
- type: [String, Function],
37
- default: "id"
38
- },
39
- initialSortKey: { default: void 0 },
40
- initialSortDir: { default: "asc" },
41
- density: { default: "regular" },
42
- caption: { default: void 0 },
43
- ariaLabel: { default: void 0 },
44
- ariaLabelledby: { default: void 0 },
45
- regionLabel: { default: void 0 }
46
- },
47
- setup(f) {
48
- let p = f, C = _(p.initialSortKey ?? ""), w = _(p.initialSortDir), P = i(() => {
49
- let e = [...p.rows];
50
- if (!C.value) return e;
51
- let t = C.value, n = w.value;
52
- return e.sort((e, r) => {
53
- let i = e[t], a = r[t], o = typeof i == "number" ? i : Number(i), s = typeof a == "number" ? a : Number(a), c = Number.isFinite(o) && Number.isFinite(s) ? o - s : String(i ?? "").localeCompare(String(a ?? ""), void 0, { sensitivity: "base" });
54
- return n === "asc" ? c : -c;
55
- }), e;
56
- });
57
- function F(e) {
58
- if (e.sortable) {
59
- if (C.value !== e.key) {
60
- C.value = e.key, w.value = "asc";
61
- return;
62
- }
63
- w.value = w.value === "asc" ? "desc" : "asc";
64
- }
65
- }
66
- function I(e) {
67
- return e.align === "right" ? "text-right" : e.align === "center" ? "text-center" : "text-left";
68
- }
69
- function L(e) {
70
- let t = p.rowKey;
71
- if (typeof t == "function") return t(e);
72
- let n = e[t];
73
- return typeof n == "string" || typeof n == "number" ? n : String(n ?? "");
74
- }
75
- function R(e) {
76
- if (e.sortable) return C.value === e.key ? w.value === "asc" ? "ascending" : "descending" : "none";
77
- }
78
- function z(e) {
79
- return C.value === e.key ? w.value === "asc" ? `Sorted by ${e.label} ascending, activate to sort descending` : `Sorted by ${e.label} descending, activate to sort ascending` : `Sort by ${e.label}`;
80
- }
81
- let B = i(() => ({
82
- density: p.density,
83
- caption: p.caption,
84
- ariaLabel: p.ariaLabel,
85
- ariaLabelledby: p.ariaLabelledby,
86
- regionLabel: p.regionLabel
87
- })), V = i(() => P.value.length === 0);
88
- function H(e, t) {
89
- return e[t];
90
- }
91
- return (i, p) => (g(), a(t, m(B.value, { "data-ds-datatable": "" }), l({
92
- head: S(() => [c("tr", E, [(g(!0), s(r, null, v(f.columns, (t) => (g(), s("th", {
93
- key: t.key,
94
- class: h(["font-700 text-xs px-4 py-3", I(t)]),
95
- "aria-sort": R(t),
96
- scope: "col"
97
- }, [c("div", O, [t.sortable ? (g(), s("button", {
98
- key: 0,
99
- type: "button",
100
- class: "inline-flex items-center gap-2 text-[var(--muted-fg)] hover:text-[var(--fg)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] rounded",
101
- "aria-label": z(t),
102
- onClick: (e) => F(t)
103
- }, [c("span", null, b(t.label), 1), c("span", A, [C.value === t.key && w.value === "asc" ? (g(), a(e, {
104
- key: 0,
105
- size: "sm",
106
- "aria-hidden": "true"
107
- }, {
108
- default: S(() => [d(x(n))]),
109
- _: 1
110
- })) : C.value === t.key && w.value === "desc" ? (g(), a(e, {
111
- key: 1,
112
- size: "sm",
113
- "aria-hidden": "true"
114
- }, {
115
- default: S(() => [d(x(T))]),
116
- _: 1
117
- })) : o("", !0)])], 8, k)) : (g(), s("span", j, b(t.label), 1))])], 10, D))), 128))])]),
118
- default: S(() => [V.value ? (g(), s("tr", M, [c("td", {
119
- colspan: f.columns.length,
120
- class: "px-4 py-6 text-center text-[var(--muted-fg)]"
121
- }, [y(i.$slots, "empty", {}, () => [p[0] ||= u(" Нет данных ", -1)])], 8, N)])) : (g(!0), s(r, { key: 1 }, v(P.value, (e) => (g(), s("tr", {
122
- key: L(e),
123
- class: "border-t border-[var(--brd)]",
124
- "data-ds-datatable-row": ""
125
- }, [(g(!0), s(r, null, v(f.columns, (t) => (g(), s("td", {
126
- key: t.key,
127
- class: h(["px-4 py-3", I(t)])
128
- }, [y(i.$slots, `cell-${t.key}`, { row: e }, () => [c("span", null, b(H(e, t.key)), 1)])], 2))), 128))]))), 128))]),
129
- _: 2
130
- }, [i.$slots.caption ? {
131
- name: "caption",
132
- fn: S(() => [y(i.$slots, "caption")]),
133
- key: "0"
134
- } : void 0, i.$slots.foot ? {
135
- name: "foot",
136
- fn: S(() => [y(i.$slots, "foot")]),
137
- key: "1"
138
- } : void 0]), 1040));
139
- }
140
- });
141
- //#endregion
142
- export { P as t };
@@ -1,169 +0,0 @@
1
- import { t as e } from "../../../chunks/x--kxrj3ez.js";
2
- import { t } from "../../GrButton/chunks/GrButton-BXVVt6Od.js";
3
- import { a as n } from "../../../chunks/transition-BJXMi52x.js";
4
- import { t as r } from "../../GrModal/chunks/GrModal-uaWXH08K.js";
5
- import { a as i, i as a, n as o, r as s, t as c } from "../../../chunks/dialogShared-CONROtU2.js";
6
- import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, mergeProps as y, normalizeClass as b, normalizeProps as x, openBlock as S, renderSlot as C, toDisplayString as w, unref as T, useAttrs as E, useSlots as D, withCtx as O } from "vue";
7
- //#endregion
8
- //#region src/components/GrDialog/GrDialogFooter.vue
9
- var k = /* @__PURE__ */ _({
10
- __name: "GrDialogFooter",
11
- props: { config: { default: void 0 } },
12
- setup(e) {
13
- let t = e, n = l(() => a(t.config, o)), r = l(() => [
14
- n.value.paddingX,
15
- n.value.paddingY,
16
- n.value.bordered ? "border-t border-[var(--brd)]" : ""
17
- ]);
18
- return (e, t) => (S(), f("div", {
19
- "data-ds-dialog-footer": "",
20
- class: b(r.value)
21
- }, [C(e.$slots, "default")], 2));
22
- }
23
- }), A = /* @__PURE__ */ _({
24
- inheritAttrs: !1,
25
- __name: "GrDialogCloseButton",
26
- emits: ["click"],
27
- setup(n) {
28
- let r = E(), i = l(() => r["aria-label"] ?? "Close");
29
- return (n, a) => (S(), u(t, y(T(r), {
30
- "data-ds-dialog-close": "",
31
- variant: "ghost",
32
- size: "sm",
33
- square: "",
34
- "aria-label": i.value,
35
- onClick: a[0] ||= (e) => n.$emit("click")
36
- }), {
37
- default: O(() => [g(T(e), {
38
- class: "h-4 w-4",
39
- "aria-hidden": "true"
40
- })]),
41
- _: 1
42
- }, 16, ["aria-label"]));
43
- }
44
- }), j = {
45
- key: 0,
46
- class: "flex-1 min-w-0 flex items-center"
47
- }, M = {
48
- key: 2,
49
- class: "flex-1 min-w-0"
50
- }, N = /* @__PURE__ */ _({
51
- __name: "GrDialogHeader",
52
- props: {
53
- title: { default: void 0 },
54
- showCloseButton: {
55
- type: Boolean,
56
- default: !0
57
- },
58
- config: { default: void 0 },
59
- closeLabel: { default: "Close" }
60
- },
61
- emits: ["close"],
62
- setup(e) {
63
- let t = e, r = D(), o = l(() => i(t.title)), c = l(() => a(t.config, s)), p = l(() => [
64
- c.value.paddingX,
65
- c.value.paddingY,
66
- c.value.bordered ? "border-b border-[var(--brd)]" : "",
67
- "flex items-center justify-between gap-4"
68
- ]), m = l(() => !r.default && !!o.value);
69
- return (t, i) => (S(), f("div", {
70
- "data-ds-dialog-header": "",
71
- class: b(p.value)
72
- }, [r.default ? (S(), f("div", j, [C(t.$slots, "default", { title: o.value })])) : m.value ? (S(), u(T(n), {
73
- key: 1,
74
- as: "div",
75
- class: "flex-1 min-w-0 text-[14px] font-700"
76
- }, {
77
- default: O(() => [h(w(o.value), 1)]),
78
- _: 1
79
- })) : (S(), f("div", M)), e.showCloseButton ? (S(), u(A, {
80
- key: 3,
81
- "aria-label": e.closeLabel,
82
- onClick: i[0] ||= (e) => t.$emit("close")
83
- }, null, 8, ["aria-label"])) : d("", !0)], 2));
84
- }
85
- }), P = { class: "sr-only" }, F = { class: "overflow-hidden rounded-[inherit]" }, I = /* @__PURE__ */ _({
86
- __name: "GrDialog",
87
- props: {
88
- modelValue: { type: Boolean },
89
- title: { default: void 0 },
90
- closeOnBackdrop: {
91
- type: Boolean,
92
- default: !0
93
- },
94
- closeOnEsc: {
95
- type: Boolean,
96
- default: !0
97
- },
98
- showHeader: {
99
- type: Boolean,
100
- default: !0
101
- },
102
- showCloseButton: {
103
- type: Boolean,
104
- default: !0
105
- },
106
- size: { default: "md" },
107
- headerConfig: { default: void 0 },
108
- footerConfig: { default: void 0 },
109
- bodyConfig: { default: void 0 },
110
- closeLabel: { default: "Close" }
111
- },
112
- emits: ["update:modelValue"],
113
- setup(e, { emit: t }) {
114
- let n = e, o = t, s = D(), f = l(() => i(n.title)), h = l(() => {
115
- let e = a(n.bodyConfig, c);
116
- return [e.paddingX, e.paddingY];
117
- }), g = l(() => !!f.value && (!n.showHeader || !!s.header));
118
- function _() {
119
- o("update:modelValue", !1);
120
- }
121
- return (t, n) => (S(), u(r, {
122
- "model-value": e.modelValue,
123
- size: e.size,
124
- "close-on-backdrop": e.closeOnBackdrop,
125
- "close-on-esc": e.closeOnEsc,
126
- "onUpdate:modelValue": n[0] ||= (e) => o("update:modelValue", e)
127
- }, m({
128
- default: O(() => [p("div", F, [
129
- e.showHeader ? (S(), u(N, {
130
- key: 0,
131
- title: f.value,
132
- "show-close-button": e.showCloseButton,
133
- config: e.headerConfig,
134
- "close-label": e.closeLabel,
135
- onClose: _
136
- }, m({ _: 2 }, [s.header ? {
137
- name: "default",
138
- fn: O((e) => [C(t.$slots, "header", x(v(e)))]),
139
- key: "0"
140
- } : void 0]), 1032, [
141
- "title",
142
- "show-close-button",
143
- "config",
144
- "close-label"
145
- ])) : d("", !0),
146
- p("div", { class: b(h.value) }, [C(t.$slots, "default")], 2),
147
- s.footer ? (S(), u(k, {
148
- key: 1,
149
- config: e.footerConfig
150
- }, {
151
- default: O(() => [C(t.$slots, "footer")]),
152
- _: 3
153
- }, 8, ["config"])) : d("", !0)
154
- ])]),
155
- _: 2
156
- }, [g.value ? {
157
- name: "title",
158
- fn: O(() => [p("span", P, w(f.value), 1)]),
159
- key: "0"
160
- } : void 0]), 1032, [
161
- "model-value",
162
- "size",
163
- "close-on-backdrop",
164
- "close-on-esc"
165
- ]));
166
- }
167
- });
168
- //#endregion
169
- export { k as i, N as n, A as r, I as t };
@@ -1,135 +0,0 @@
1
- import { t as e } from "../../../chunks/x--kxrj3ez.js";
2
- import { t } from "../../GrButton/chunks/GrButton-BXVVt6Od.js";
3
- import { t as n } from "../../GrIcon/chunks/GrIcon-CXIHuG7L.js";
4
- import { a as r, n as i, o as a, r as o, t as s } from "../../../chunks/transition-BJXMi52x.js";
5
- import { i as c, r as l } from "../../../chunks/config-BUZtbeTr.js";
6
- import { Teleport as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, normalizeClass as y, openBlock as b, renderSlot as x, toDisplayString as S, unref as C, useId as w, withCtx as T } from "vue";
7
- //#region src/components/GrDrawer/GrDrawer.vue?vue&type=script&setup=true&lang.ts
8
- var E = { class: "fixed inset-0" }, D = {
9
- "data-ds-drawer-header": "",
10
- class: "px-5 py-4 border-b border-[var(--brd)] flex items-center justify-between gap-4"
11
- }, O = {
12
- "data-ds-drawer-body": "",
13
- class: "flex-1 overflow-y-auto"
14
- }, k = { class: "p-5" }, A = {
15
- key: 0,
16
- "data-ds-drawer-footer": "",
17
- class: "px-5 py-4 border-t border-[var(--brd)]"
18
- }, j = /* @__PURE__ */ v({
19
- __name: "GrDrawer",
20
- props: {
21
- modelValue: { type: Boolean },
22
- title: { default: void 0 },
23
- closeOnBackdrop: {
24
- type: Boolean,
25
- default: !0
26
- },
27
- closeOnEsc: {
28
- type: Boolean,
29
- default: !0
30
- },
31
- side: { default: "right" },
32
- size: { default: "md" },
33
- closeLabel: { default: "Close" }
34
- },
35
- emits: ["update:modelValue"],
36
- setup(v, { emit: j }) {
37
- let M = v, N = j, P = w(), F = d(() => l({
38
- side: M.side,
39
- size: M.size
40
- })), I = d(() => c(M.side));
41
- function L() {
42
- N("update:modelValue", !1);
43
- }
44
- function R() {
45
- M.closeOnBackdrop && L();
46
- }
47
- function z() {
48
- M.closeOnBackdrop && L();
49
- }
50
- function B(e) {
51
- e.key === "Escape" && M.closeOnEsc && (e.stopPropagation(), e.preventDefault(), L());
52
- }
53
- return (c, l) => (b(), f(u, { to: "body" }, [_(C(s), {
54
- show: v.modelValue,
55
- as: "template"
56
- }, {
57
- default: T(() => [_(C(a), {
58
- as: "div",
59
- "data-ds-drawer": "",
60
- class: "fixed inset-0 z-50",
61
- static: !0,
62
- "aria-labelledby": C(P),
63
- onClose: R,
64
- onKeydown: B
65
- }, {
66
- default: T(() => [h("div", E, [_(C(i), {
67
- as: "template",
68
- enter: "duration-200 ease-out",
69
- "enter-from": "opacity-0",
70
- "enter-to": "opacity-100",
71
- leave: "duration-150 ease-in",
72
- "leave-from": "opacity-100",
73
- "leave-to": "opacity-0"
74
- }, {
75
- default: T(() => [h("div", {
76
- "data-ds-drawer-overlay": "",
77
- class: "fixed inset-0 bg-black/40",
78
- "aria-hidden": "true",
79
- onClick: z
80
- })]),
81
- _: 1
82
- }), _(C(i), {
83
- as: "template",
84
- enter: "duration-200 ease-out",
85
- "enter-from": I.value,
86
- "enter-to": "translate-x-0",
87
- leave: "duration-150 ease-in",
88
- "leave-from": "translate-x-0",
89
- "leave-to": I.value
90
- }, {
91
- default: T(() => [_(C(o), {
92
- "data-ds-drawer-panel": "",
93
- tabindex: "-1",
94
- class: y(["fixed inset-y-0 flex flex-col", F.value])
95
- }, {
96
- default: T(() => [
97
- h("div", D, [_(C(r), {
98
- id: C(P),
99
- as: "div",
100
- "data-ds-drawer-title": "",
101
- class: "text-[14px] font-700 min-w-0 truncate"
102
- }, {
103
- default: T(() => [x(c.$slots, "title", {}, () => [g(S(v.title ?? "Drawer"), 1)])]),
104
- _: 3
105
- }, 8, ["id"]), _(t, {
106
- variant: "ghost",
107
- size: "sm",
108
- square: "",
109
- "aria-label": v.closeLabel,
110
- onClick: L
111
- }, {
112
- default: T(() => [_(n, {
113
- size: "sm",
114
- "aria-hidden": "true"
115
- }, {
116
- default: T(() => [_(C(e))]),
117
- _: 1
118
- })]),
119
- _: 1
120
- }, 8, ["aria-label"])]),
121
- h("div", O, [h("div", k, [x(c.$slots, "default")])]),
122
- c.$slots.footer ? (b(), m("div", A, [x(c.$slots, "footer")])) : p("", !0)
123
- ]),
124
- _: 3
125
- }, 8, ["class"])]),
126
- _: 3
127
- }, 8, ["enter-from", "leave-to"])])]),
128
- _: 3
129
- }, 8, ["aria-labelledby"])]),
130
- _: 3
131
- }, 8, ["show"])]));
132
- }
133
- });
134
- //#endregion
135
- export { j as t };
@@ -1,110 +0,0 @@
1
- import { a as e } from "../../../chunks/directives-Dr5NPOT8.js";
2
- import { i as t, n, r } from "../../../chunks/grDropdownStyles-149X1NeB.js";
3
- import { Teleport as i, Transition as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onUnmounted as m, openBlock as h, ref as g, renderSlot as _, unref as v, vShow as y, watch as b, withCtx as x, withDirectives as S } from "vue";
4
- //#region src/components/GrDropdown/GrDropdown.vue?vue&type=script&setup=true&lang.ts
5
- var C = { "data-ds-dropdown": "" }, w = /* @__PURE__ */ d({
6
- __name: "GrDropdown",
7
- props: {
8
- align: { default: "right" },
9
- width: { default: "48" },
10
- closeOnContentClick: {
11
- type: Boolean,
12
- default: !0
13
- },
14
- contentClass: { default: "" },
15
- teleportTo: { default: "body" }
16
- },
17
- setup(d) {
18
- let w = d, T = g(!1), E = g(null), D = g(null), O = [() => D.value], k = g({
19
- left: "0px",
20
- top: "0px",
21
- zIndex: "2147483647"
22
- }), A = 0;
23
- function j() {
24
- typeof window > "u" || (A &&= (window.cancelAnimationFrame(A), 0));
25
- }
26
- function M() {
27
- if (typeof window > "u") return;
28
- let e = E.value;
29
- if (!e) return;
30
- let t = e.getBoundingClientRect();
31
- k.value = {
32
- left: `${w.align === "right" ? t.right : w.align === "center" ? t.left + t.width / 2 : t.left}px`,
33
- top: `${t.bottom + 8}px`,
34
- zIndex: "2147483647"
35
- };
36
- }
37
- function N() {
38
- typeof window > "u" || (A ||= window.requestAnimationFrame(() => {
39
- A = 0, T.value && M();
40
- }));
41
- }
42
- function P() {
43
- typeof window > "u" || (window.addEventListener("resize", N), window.addEventListener("scroll", N, !0));
44
- }
45
- function F() {
46
- typeof window > "u" || (window.removeEventListener("resize", N), window.removeEventListener("scroll", N, !0));
47
- }
48
- function I() {
49
- T.value = !T.value;
50
- }
51
- function L() {
52
- T.value = !1;
53
- }
54
- function R(e) {
55
- e.key === "Escape" && L();
56
- }
57
- b(T, (e) => {
58
- typeof document > "u" || (document.removeEventListener("keydown", R), F(), j(), e && document.addEventListener("keydown", R), e && (P(), M()));
59
- }, { immediate: !0 }), b(() => w.align, () => {
60
- T.value && N();
61
- }), m(() => {
62
- typeof document > "u" || (document.removeEventListener("keydown", R), F(), j());
63
- });
64
- let z = o(() => t(w.width)), B = o(() => r(w.contentClass)), V = o(() => [
65
- "fixed z-50",
66
- z.value,
67
- n(w.align)
68
- ].filter(Boolean));
69
- function H() {
70
- w.closeOnContentClick && L();
71
- }
72
- return (t, n) => (h(), c("div", C, [S((h(), c("div", {
73
- ref_key: "rootEl",
74
- ref: E,
75
- "data-ds-dropdown-trigger": "",
76
- class: "inline-block max-w-full",
77
- onClick: I
78
- }, [_(t.$slots, "trigger", {
79
- open: T.value,
80
- toggle: I,
81
- close: L
82
- })])), [[v(e), {
83
- handler: L,
84
- enabled: T.value,
85
- exclude: O
86
- }]]), (h(), s(i, { to: d.teleportTo }, [u(a, {
87
- "enter-active-class": "transition ease-out duration-150",
88
- "enter-from-class": "transform opacity-0 scale-95",
89
- "enter-to-class": "transform opacity-100 scale-100",
90
- "leave-active-class": "transition ease-in duration-100",
91
- "leave-from-class": "transform opacity-100 scale-100",
92
- "leave-to-class": "transform opacity-0 scale-95"
93
- }, {
94
- default: x(() => [S(l("div", {
95
- ref_key: "panelEl",
96
- ref: D,
97
- "data-ds-dropdown-panel": "",
98
- class: f(V.value),
99
- style: p(k.value),
100
- onClick: H
101
- }, [l("div", {
102
- "data-ds-dropdown-content": "",
103
- class: f(B.value)
104
- }, [_(t.$slots, "content", { close: L })], 2)], 6), [[y, T.value]])]),
105
- _: 3
106
- })], 8, ["to"]))]));
107
- }
108
- });
109
- //#endregion
110
- export { w as t };