@feugene/granularity 0.10.0 → 0.12.0

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 (501) hide show
  1. package/README.md +44 -45
  2. package/dist/GrButtonGroup.css +1 -1
  3. package/dist/GrFormFile.css +1 -1
  4. package/dist/GrIcon.css +1 -1
  5. package/dist/GrLoading.css +1 -1
  6. package/dist/GrSkeleton.css +1 -1
  7. package/dist/GrToaster.css +1 -0
  8. package/dist/GrTree.css +1 -1
  9. package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
  10. package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
  11. package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
  12. package/dist/chunks/{config-A-iei0Ux.js → config-1uSYl98Y2.js} +5 -5
  13. package/dist/chunks/config-1uSYl98Y2.js.map +1 -0
  14. package/dist/chunks/{config-DZrlovR42.js.map → config-8Pcutu1j2.js.map} +1 -1
  15. package/dist/chunks/{config-VJuoznpH.js.map → config-B0qIpo8m.js.map} +1 -1
  16. package/dist/chunks/{config-C8MM2Dg0.js → config-B7IIWGt_2.js} +3 -3
  17. package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
  18. package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
  19. package/dist/chunks/{config-D_Pafsjq2.js → config-BIRO0vDJ.js} +6 -6
  20. package/dist/chunks/config-BIRO0vDJ.js.map +1 -0
  21. package/dist/chunks/{config-BeBsN0c12.js.map → config-BLHqZhy-2.js.map} +1 -1
  22. package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
  23. package/dist/chunks/config-BOlr7qw7.js +106 -0
  24. package/dist/chunks/config-BOlr7qw7.js.map +1 -0
  25. package/dist/chunks/{config-DhQc1TRY.js.map → config-BUHuGBik.js.map} +1 -1
  26. package/dist/chunks/{config-CPSdAjUi.js.map → config-BWGGp7uV.js.map} +1 -1
  27. package/dist/chunks/config-BWiPnygb.js +5 -0
  28. package/dist/chunks/config-BWiPnygb.js.map +1 -0
  29. package/dist/chunks/config-BX1JTrkV2.js +14 -0
  30. package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
  31. package/dist/chunks/config-BXtAmU3s2.js.map +1 -0
  32. package/dist/chunks/{config-CzgNEHKi.js.map → config-Bah4oHwL.js.map} +1 -1
  33. package/dist/chunks/{config-C_egzT_K.js → config-C49QUoJL.js} +3 -3
  34. package/dist/chunks/{config-C_egzT_K.js.map → config-C49QUoJL.js.map} +1 -1
  35. package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
  36. package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
  37. package/dist/chunks/{config-DvDNney3.js → config-C7NpDrfO.js} +5 -5
  38. package/dist/chunks/{config-DvDNney3.js.map → config-C7NpDrfO.js.map} +1 -1
  39. package/dist/chunks/{config-lMDE_8A5.js.map → config-C86UzUYf.js.map} +1 -1
  40. package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
  41. package/dist/chunks/config-CGHLoBlH.js.map +1 -0
  42. package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
  43. package/dist/chunks/{config-DDwBSoc_.js.map → config-Cb2PAlSD.js.map} +1 -1
  44. package/dist/chunks/{config-XspHtPsU.js → config-ClhKPJvg.js} +5 -5
  45. package/dist/chunks/{config-XspHtPsU.js.map → config-ClhKPJvg.js.map} +1 -1
  46. package/dist/chunks/{config-58Mj2rGH.js → config-Cpi9Mh2J.js} +3 -3
  47. package/dist/chunks/{config-58Mj2rGH.js.map → config-Cpi9Mh2J.js.map} +1 -1
  48. package/dist/chunks/{config-nrOj9p6I.js → config-CrG1XiE72.js} +4 -4
  49. package/dist/chunks/config-CrG1XiE72.js.map +1 -0
  50. package/dist/chunks/{config-DRpkoSvq.js → config-CziwTDDL.js} +3 -3
  51. package/dist/chunks/{config-DRpkoSvq.js.map → config-CziwTDDL.js.map} +1 -1
  52. package/dist/chunks/{config-C5-ujXCI.js.map → config-D7GZO-Dx.js.map} +1 -1
  53. package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
  54. package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
  55. package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D682.js} +3 -3
  56. package/dist/chunks/{config-C6zT56Jc2.js.map → config-DUcu1D682.js.map} +1 -1
  57. package/dist/chunks/{config-8f8624RN.js → config-D_R56_gT.js} +5 -5
  58. package/dist/chunks/{config-8f8624RN.js.map → config-D_R56_gT.js.map} +1 -1
  59. package/dist/chunks/{config-RjfJFv1Y.js → config-DezDih8_.js} +4 -4
  60. package/dist/chunks/config-DezDih8_.js.map +1 -0
  61. package/dist/chunks/config-Dlm49Jp5.js +5 -0
  62. package/dist/chunks/config-Dlm49Jp5.js.map +1 -0
  63. package/dist/chunks/{config-B0uUCaJW.js → config-DnvPqu4g2.js} +3 -3
  64. package/dist/chunks/config-DnvPqu4g2.js.map +1 -0
  65. package/dist/chunks/config-DpqOnJiz.js.map +1 -0
  66. package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
  67. package/dist/chunks/{config-Doa_gU40.js.map → config-HZto2PVy.js.map} +1 -1
  68. package/dist/chunks/{config-Dl5aZ5VR.js.map → config-JOtB4mzs.js.map} +1 -1
  69. package/dist/chunks/config-JpHA4Xx02.js.map +1 -0
  70. package/dist/chunks/{config-DkeLkzxj2.js → config-LGrZIdaZ.js} +1 -1
  71. package/dist/chunks/config-LGrZIdaZ.js.map +1 -0
  72. package/dist/chunks/{config-B3dn-gdC.js.map → config-PFg39mYo.js.map} +1 -1
  73. package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
  74. package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
  75. package/dist/chunks/{config-Bh4NWWsQ.js.map → config-QaIc_gRa.js.map} +1 -1
  76. package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
  77. package/dist/chunks/{config-C_q_4FrU.js.map → config-ZiXWIRBX.js.map} +1 -1
  78. package/dist/chunks/config-eXB87DOi2.js +9 -0
  79. package/dist/chunks/config-eXB87DOi2.js.map +1 -0
  80. package/dist/chunks/{config-hSlCXHoG.js → config-eYLZYOUS2.js} +63 -63
  81. package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
  82. package/dist/chunks/{config-DDUPnue12.js.map → config-ipvU0lzP2.js.map} +1 -1
  83. package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
  84. package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
  85. package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
  86. package/dist/chunks/context-DdNIxa1w.js +9 -0
  87. package/dist/chunks/context-DdNIxa1w.js.map +1 -0
  88. package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
  89. package/dist/chunks/en-CfkDa4GX.js +144 -0
  90. package/dist/chunks/en-CfkDa4GX.js.map +1 -0
  91. package/dist/chunks/{es-CISK11Nv.js → es-CgaLnFYx.js} +3 -3
  92. package/dist/chunks/{es-CISK11Nv.js.map → es-CgaLnFYx.js.map} +1 -1
  93. package/dist/chunks/es-FkgECuCm.js +144 -0
  94. package/dist/chunks/es-FkgECuCm.js.map +1 -0
  95. package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
  96. package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
  97. package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
  98. package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
  99. package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
  100. package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
  101. package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js → grDropdownStyles-B_-DKytw.js} +2 -2
  102. package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js.map → grDropdownStyles-B_-DKytw.js.map} +1 -1
  103. package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
  104. package/dist/chunks/grModalEscStack-BXk-9mv7.js +43 -0
  105. package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +1 -0
  106. package/dist/chunks/{grModalStyles-FgaKqx50.js → grModalStyles-DWd3i05Q.js} +6 -6
  107. package/dist/chunks/{grModalStyles-FgaKqx50.js.map → grModalStyles-DWd3i05Q.js.map} +1 -1
  108. package/dist/chunks/{grSelectStyles-AjWWl007.js → grSelectStyles-CLK5hRd3.js} +3 -3
  109. package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
  110. package/dist/chunks/{grStyle-D-gPHdyW.js → grStyle-Blc9otAx.js} +6 -6
  111. package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
  112. package/dist/chunks/{granularityI18n-D_7jowK2.js → granularityI18n-DoV7Ca2m.js} +1 -1
  113. package/dist/chunks/{granularityI18n-D_7jowK2.js.map → granularityI18n-DoV7Ca2m.js.map} +1 -1
  114. package/dist/chunks/info-Be2OccTu.js.map +1 -0
  115. package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
  116. package/dist/chunks/ru-Bl8CxpEa.js +144 -0
  117. package/dist/chunks/ru-Bl8CxpEa.js.map +1 -0
  118. package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
  119. package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
  120. package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
  121. package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
  122. package/dist/chunks/shared-B6Ay2081.js +174 -0
  123. package/dist/chunks/shared-B6Ay2081.js.map +1 -0
  124. package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
  125. package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
  126. package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
  127. package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
  128. package/dist/chunks/{useFloating-CLtbU7eD.js → useFloating-DtM6TyE4.js} +19 -4
  129. package/dist/chunks/{useFloating-CLtbU7eD.js.map → useFloating-DtM6TyE4.js.map} +1 -1
  130. package/dist/chunks/{transition-mJ3PZCHH.js → useScrollLock-K7kaP2Ud.js} +78 -13
  131. package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +1 -0
  132. package/dist/chunks/x-2KXnqxiD.js.map +1 -0
  133. package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
  134. package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
  135. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
  136. package/dist/components/GrAlert/index.js +2 -2
  137. package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
  138. package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
  139. package/dist/components/GrAvatar/index.js +2 -2
  140. package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
  141. package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
  142. package/dist/components/GrBadge/index.js +2 -2
  143. package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
  144. package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
  145. package/dist/components/GrBadgeWrap/index.js +2 -2
  146. package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
  147. package/dist/components/GrBottomNav/index.js +2 -2
  148. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
  149. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
  150. package/dist/components/GrButton/index.js +4 -4
  151. package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
  152. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
  153. package/dist/components/GrButtonGroup/index.js +2 -2
  154. package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
  155. package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
  156. package/dist/components/GrCard/index.js +2 -2
  157. package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
  158. package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
  159. package/dist/components/GrCheckbox/index.js +2 -2
  160. package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
  161. package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
  162. package/dist/components/GrCollapse/index.js +2 -2
  163. package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Bi2KLumL.js → GrConfirmDialog-D8CkOtqv.js} +20 -14
  164. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +1 -0
  165. package/dist/components/GrConfirmDialog/index.js +2 -2
  166. package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-Ds5OeGat.js} +49 -23
  167. package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +1 -0
  168. package/dist/components/GrDataTable/index.js +2 -2
  169. package/dist/components/GrDialog/chunks/{GrDialog-CxK4Lj4F.js → GrDialog-Ctucxju9.js} +14 -12
  170. package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +1 -0
  171. package/dist/components/GrDialog/index.js +3 -3
  172. package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js +425 -0
  173. package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +1 -0
  174. package/dist/components/GrDialogService/index.js +3 -0
  175. package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js +54 -0
  176. package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +1 -0
  177. package/dist/components/GrDivider/index.js +3 -0
  178. package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-SLGKCY2A.js} +54 -26
  179. package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +1 -0
  180. package/dist/components/GrDrawer/index.js +2 -2
  181. package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js +181 -0
  182. package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js.map +1 -0
  183. package/dist/components/GrDropdown/index.js +2 -2
  184. package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js → GrDropdownMenu--g9Vofcq.js} +10 -10
  185. package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js.map → GrDropdownMenu--g9Vofcq.js.map} +1 -1
  186. package/dist/components/GrDropdownMenu/index.js +2 -2
  187. package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js → GrEmptyState-CA3BiTV7.js} +3 -3
  188. package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
  189. package/dist/components/GrEmptyState/index.js +2 -2
  190. package/dist/components/GrFileUpload/chunks/{GrFileUpload-CBKK3dgC.js → GrFileUpload-DvWPpiJS.js} +26 -23
  191. package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
  192. package/dist/components/GrFileUpload/index.js +3 -3
  193. package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js +73 -0
  194. package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +1 -0
  195. package/dist/components/GrFormField/index.js +4 -3
  196. package/dist/components/GrFormFile/chunks/{GrFormFile-CkR6cYqf.js → GrFormFile-CXcqqdvV.js} +38 -31
  197. package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
  198. package/dist/components/GrFormFile/index.js +2 -2
  199. package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js → GrFormSection-Ce21jcgo.js} +1 -1
  200. package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
  201. package/dist/components/GrFormSection/index.js +2 -2
  202. package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
  203. package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
  204. package/dist/components/GrIcon/index.js +2 -2
  205. package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js +650 -0
  206. package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js.map +1 -0
  207. package/dist/components/GrImageViewer/index.js +2 -2
  208. package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js +334 -0
  209. package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +1 -0
  210. package/dist/components/GrInput/index.js +2 -2
  211. package/dist/components/GrInputTag/chunks/{GrInputTag-g-KdUI_Z.js → GrInputTag-zMgFqp2g.js} +27 -24
  212. package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
  213. package/dist/components/GrInputTag/index.js +2 -2
  214. package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js +22 -0
  215. package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +1 -0
  216. package/dist/components/GrKbd/index.js +3 -0
  217. package/dist/components/GrLink/chunks/{GrLink-KSTmk9Yq.js → GrLink-CYUe-Q8k.js} +14 -7
  218. package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
  219. package/dist/components/GrLink/index.js +2 -2
  220. package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js → GrList-Dx772Ns4.js} +1 -1
  221. package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js.map → GrList-Dx772Ns4.js.map} +1 -1
  222. package/dist/components/GrList/index.js +2 -2
  223. package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
  224. package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
  225. package/dist/components/GrLoading/index.js +2 -2
  226. package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js → GrModal-C0GZrHN3.js} +9 -62
  227. package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js.map +1 -0
  228. package/dist/components/GrModal/index.js +3 -3
  229. package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js → GrNavbar-DW3MiIIf.js} +6 -6
  230. package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
  231. package/dist/components/GrNavbar/index.js +2 -2
  232. package/dist/components/GrNumberInput/chunks/{GrNumberInput-ClPBwkxx.js → GrNumberInput-DxCEvL7V.js} +144 -72
  233. package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +1 -0
  234. package/dist/components/GrNumberInput/index.js +2 -2
  235. package/dist/components/GrPagination/chunks/{GrPagination-D2GS0ShQ.js → GrPagination-mlyfLjQY.js} +76 -25
  236. package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +1 -0
  237. package/dist/components/GrPagination/index.js +2 -2
  238. package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js → GrProgressBar-CC3z-Zqp.js} +3 -3
  239. package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
  240. package/dist/components/GrProgressBar/index.js +2 -2
  241. package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-D_TFqKsF.js → GrPromptDialog-C-_BMNuY.js} +31 -23
  242. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +1 -0
  243. package/dist/components/GrPromptDialog/index.js +2 -2
  244. package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js → GrRadio-Dr-pvs_9.js} +6 -6
  245. package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js.map → GrRadio-Dr-pvs_9.js.map} +1 -1
  246. package/dist/components/GrRadio/index.js +2 -2
  247. package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js → GrRadioGroup-nOdvfV_g.js} +3 -3
  248. package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js.map → GrRadioGroup-nOdvfV_g.js.map} +1 -1
  249. package/dist/components/GrRadioGroup/index.js +2 -2
  250. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-K1uZ1mYD.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
  251. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
  252. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
  253. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
  254. package/dist/components/GrResponseErrorBanner/index.js +2 -2
  255. package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js → GrSegmented-C1y0UXpQ.js} +5 -5
  256. package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
  257. package/dist/components/GrSegmented/index.js +2 -2
  258. package/dist/components/GrSelect/chunks/{GrSelect-DSz7jvUb.js → GrSelect-BVCmitqa.js} +227 -87
  259. package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +1 -0
  260. package/dist/components/GrSelect/index.js +2 -2
  261. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
  262. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
  263. package/dist/components/GrSidebar/index.js +3 -3
  264. package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js → GrSkeleton-DsN-_CDZ.js} +1 -1
  265. package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
  266. package/dist/components/GrSkeleton/index.js +2 -2
  267. package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js → GrSwitch-DAioyccZ.js} +10 -10
  268. package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
  269. package/dist/components/GrSwitch/index.js +2 -2
  270. package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js +68 -0
  271. package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js.map +1 -0
  272. package/dist/components/GrTabPanels/index.js +3 -0
  273. package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
  274. package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
  275. package/dist/components/GrTable/index.js +2 -2
  276. package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js → GrTabs-DsLwWoRz.js} +9 -4
  277. package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +1 -0
  278. package/dist/components/GrTabs/index.js +2 -2
  279. package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js → GrTextarea-CKukGlNl.js} +17 -7
  280. package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +1 -0
  281. package/dist/components/GrTextarea/index.js +2 -2
  282. package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js +189 -0
  283. package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +1 -0
  284. package/dist/components/GrToaster/index.js +2 -2
  285. package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js → GrTooltip-BeyZ8ssR.js} +10 -10
  286. package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js.map → GrTooltip-BeyZ8ssR.js.map} +1 -1
  287. package/dist/components/GrTooltip/index.js +2 -2
  288. package/dist/components/GrTree/chunks/{GrTree-uZr5SyQI.js → GrTree-B2_yW6g1.js} +145 -41
  289. package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +1 -0
  290. package/dist/components/GrTree/index.js +2 -2
  291. package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js → GrTreeSelect-0aM62xyu.js} +16 -16
  292. package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js.map → GrTreeSelect-0aM62xyu.js.map} +1 -1
  293. package/dist/components/GrTreeSelect/index.js +2 -2
  294. package/dist/composables/useTheme.js +48 -8
  295. package/dist/composables/useTheme.js.map +1 -1
  296. package/dist/composables/useToast.js +88 -26
  297. package/dist/composables/useToast.js.map +1 -1
  298. package/dist/directives/autofocus.js.map +1 -1
  299. package/dist/directives/autosize.js.map +1 -1
  300. package/dist/directives/clickOutside.js.map +1 -1
  301. package/dist/directives/dropzone.js +6 -5
  302. package/dist/directives/dropzone.js.map +1 -1
  303. package/dist/directives/hotkey.js +24 -7
  304. package/dist/directives/hotkey.js.map +1 -1
  305. package/dist/directives/loading.js +2 -2
  306. package/dist/directives/loading.js.map +1 -1
  307. package/dist/fileValidation/index.js +1 -1
  308. package/dist/granular-provider-node.js +7 -7
  309. package/dist/granular-provider-node.js.map +1 -1
  310. package/dist/granular-provider.js +1 -1
  311. package/dist/granular-provider.js.map +1 -1
  312. package/dist/i18n/all.js +1 -1
  313. package/dist/i18n/all.js.map +1 -1
  314. package/dist/i18n/index.js +2 -2
  315. package/dist/index.js +116 -534
  316. package/dist/index.js.map +1 -1
  317. package/dist/styles/base.css +54 -0
  318. package/dist/styles/index.css +15 -0
  319. package/dist/styles/preflight.css +33 -0
  320. package/dist/styles/themes/dark.css +107 -0
  321. package/dist/styles/themes/light.css +98 -0
  322. package/dist/styles/tokens.css +135 -0
  323. package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
  324. package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
  325. package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
  326. package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +29 -5
  327. package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
  328. package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
  329. package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +58 -0
  330. package/dist/types/src/components/GrDivider/config.d.ts +1 -0
  331. package/dist/types/src/components/GrDivider/index.d.ts +4 -0
  332. package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +6 -6
  333. package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +7 -0
  334. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +6 -0
  335. package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +4 -4
  336. package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +15 -2
  337. package/dist/types/src/components/GrFormField/context.d.ts +20 -0
  338. package/dist/types/src/components/GrFormField/index.d.ts +1 -0
  339. package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
  340. package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +22 -18
  341. package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +20 -0
  342. package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +16 -0
  343. package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +50 -0
  344. package/dist/types/src/components/GrInput/GrInput.vue.d.ts +55 -2
  345. package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
  346. package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
  347. package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +46 -0
  348. package/dist/types/src/components/GrKbd/config.d.ts +1 -0
  349. package/dist/types/src/components/GrKbd/index.d.ts +4 -0
  350. package/dist/types/src/components/GrLink/GrLink.vue.d.ts +12 -6
  351. package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
  352. package/dist/types/src/components/GrLink/index.d.ts +1 -1
  353. package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
  354. package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
  355. package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +33 -4
  356. package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
  357. package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
  358. package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +1 -1
  359. package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
  360. package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +3 -3
  361. package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
  362. package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
  363. package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
  364. package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
  365. package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
  366. package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
  367. package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
  368. package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +46 -0
  369. package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +51 -0
  370. package/dist/types/src/components/GrTabPanels/config.d.ts +5 -0
  371. package/dist/types/src/components/GrTabPanels/context.d.ts +9 -0
  372. package/dist/types/src/components/GrTabPanels/index.d.ts +6 -0
  373. package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +6 -0
  374. package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
  375. package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
  376. package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +2 -0
  377. package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
  378. package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
  379. package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
  380. package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
  381. package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
  382. package/dist/types/src/composables/internal/useScrollLock.d.ts +24 -0
  383. package/dist/types/src/composables/useTheme.d.ts +5 -2
  384. package/dist/types/src/composables/useToast.d.ts +33 -1
  385. package/dist/types/src/directives/hotkey.d.ts +14 -0
  386. package/dist/types/src/granular-provider/shared.d.ts +4 -3
  387. package/dist/types/src/i18n/messages/en.d.ts +130 -0
  388. package/dist/types/src/i18n/messages/es.d.ts +130 -0
  389. package/dist/types/src/i18n/messages/ru.d.ts +130 -0
  390. package/dist/types/src/index.d.ts +5 -2
  391. package/dist/vue/index.js.map +1 -1
  392. package/dist/web-types.json +4922 -0
  393. package/package.json +38 -20
  394. package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
  395. package/dist/chunks/config-A-iei0Ux.js.map +0 -1
  396. package/dist/chunks/config-B0uUCaJW.js.map +0 -1
  397. package/dist/chunks/config-BLa1TEGm2.js.map +0 -1
  398. package/dist/chunks/config-BduXEXjt.js.map +0 -1
  399. package/dist/chunks/config-BuoIngj32.js.map +0 -1
  400. package/dist/chunks/config-C8MM2Dg0.js.map +0 -1
  401. package/dist/chunks/config-CWTfyPNI.js.map +0 -1
  402. package/dist/chunks/config-D_Pafsjq2.js.map +0 -1
  403. package/dist/chunks/config-DkeLkzxj2.js.map +0 -1
  404. package/dist/chunks/config-NkbzVFZo.js +0 -59
  405. package/dist/chunks/config-NkbzVFZo.js.map +0 -1
  406. package/dist/chunks/config-RjfJFv1Y.js.map +0 -1
  407. package/dist/chunks/config-hSlCXHoG.js.map +0 -1
  408. package/dist/chunks/config-nrOj9p6I.js.map +0 -1
  409. package/dist/chunks/en-B_fSdoTi.js +0 -72
  410. package/dist/chunks/en-B_fSdoTi.js.map +0 -1
  411. package/dist/chunks/es-DKP6fLir.js +0 -72
  412. package/dist/chunks/es-DKP6fLir.js.map +0 -1
  413. package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
  414. package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
  415. package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
  416. package/dist/chunks/grSelectStyles-AjWWl007.js.map +0 -1
  417. package/dist/chunks/grStyle-D-gPHdyW.js.map +0 -1
  418. package/dist/chunks/info-C0bHmdZq.js.map +0 -1
  419. package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
  420. package/dist/chunks/ru-S6VlnurJ.js +0 -72
  421. package/dist/chunks/ru-S6VlnurJ.js.map +0 -1
  422. package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
  423. package/dist/chunks/shared-DpjTvFno.js +0 -169
  424. package/dist/chunks/shared-DpjTvFno.js.map +0 -1
  425. package/dist/chunks/transition-mJ3PZCHH.js.map +0 -1
  426. package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
  427. package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
  428. package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
  429. package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
  430. package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
  431. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
  432. package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
  433. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
  434. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Bi2KLumL.js.map +0 -1
  435. package/dist/components/GrDataTable/chunks/GrDataTable-ClcYiyc8.js.map +0 -1
  436. package/dist/components/GrDialog/chunks/GrDialog-CxK4Lj4F.js.map +0 -1
  437. package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
  438. package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js +0 -105
  439. package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js.map +0 -1
  440. package/dist/components/GrFileUpload/chunks/GrFileUpload-CBKK3dgC.js.map +0 -1
  441. package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js +0 -35
  442. package/dist/components/GrFormField/chunks/GrFormField-U7c_aDPJ.js.map +0 -1
  443. package/dist/components/GrFormFile/chunks/GrFormFile-CkR6cYqf.js.map +0 -1
  444. package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js +0 -550
  445. package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js.map +0 -1
  446. package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js +0 -211
  447. package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
  448. package/dist/components/GrInputTag/chunks/GrInputTag-g-KdUI_Z.js.map +0 -1
  449. package/dist/components/GrLink/chunks/GrLink-KSTmk9Yq.js.map +0 -1
  450. package/dist/components/GrModal/chunks/GrModal-CSOL3fHQ.js.map +0 -1
  451. package/dist/components/GrNumberInput/chunks/GrNumberInput-ClPBwkxx.js.map +0 -1
  452. package/dist/components/GrPagination/chunks/GrPagination-D2GS0ShQ.js.map +0 -1
  453. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-D_TFqKsF.js.map +0 -1
  454. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-K1uZ1mYD.js.map +0 -1
  455. package/dist/components/GrSelect/chunks/GrSelect-DSz7jvUb.js.map +0 -1
  456. package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js +0 -44
  457. package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js.map +0 -1
  458. package/dist/components/GrTabs/chunks/GrTabs-BfeVNMFJ.js.map +0 -1
  459. package/dist/components/GrTextarea/chunks/GrTextarea-CBBzpF2S.js.map +0 -1
  460. package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js +0 -172
  461. package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js.map +0 -1
  462. package/dist/components/GrTree/chunks/GrTree-uZr5SyQI.js.map +0 -1
  463. /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
  464. /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
  465. /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
  466. /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
  467. /package/dist/chunks/{config-DZrlovR42.js → config-8Pcutu1j2.js} +0 -0
  468. /package/dist/chunks/{config-VJuoznpH.js → config-B0qIpo8m.js} +0 -0
  469. /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
  470. /package/dist/chunks/{config-BeBsN0c12.js → config-BLHqZhy-2.js} +0 -0
  471. /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
  472. /package/dist/chunks/{config-DhQc1TRY.js → config-BUHuGBik.js} +0 -0
  473. /package/dist/chunks/{config-CPSdAjUi.js → config-BWGGp7uV.js} +0 -0
  474. /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s2.js} +0 -0
  475. /package/dist/chunks/{config-CzgNEHKi.js → config-Bah4oHwL.js} +0 -0
  476. /package/dist/chunks/{config-lMDE_8A5.js → config-C86UzUYf.js} +0 -0
  477. /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
  478. /package/dist/chunks/{config-BuoIngj32.js → config-CGHLoBlH.js} +0 -0
  479. /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
  480. /package/dist/chunks/{config-DDwBSoc_.js → config-Cb2PAlSD.js} +0 -0
  481. /package/dist/chunks/{config-C5-ujXCI.js → config-D7GZO-Dx.js} +0 -0
  482. /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
  483. /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
  484. /package/dist/chunks/{config-BLa1TEGm2.js → config-DpqOnJiz.js} +0 -0
  485. /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
  486. /package/dist/chunks/{config-Doa_gU40.js → config-HZto2PVy.js} +0 -0
  487. /package/dist/chunks/{config-Dl5aZ5VR.js → config-JOtB4mzs.js} +0 -0
  488. /package/dist/chunks/{config-CWTfyPNI.js → config-JpHA4Xx02.js} +0 -0
  489. /package/dist/chunks/{config-B3dn-gdC.js → config-PFg39mYo.js} +0 -0
  490. /package/dist/chunks/{config-Bh4NWWsQ.js → config-QaIc_gRa.js} +0 -0
  491. /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
  492. /package/dist/chunks/{config-C_q_4FrU.js → config-ZiXWIRBX.js} +0 -0
  493. /package/dist/chunks/{config-DDUPnue12.js → config-ipvU0lzP2.js} +0 -0
  494. /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
  495. /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
  496. /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
  497. /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
  498. /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
  499. /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
  500. /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
  501. /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
@@ -0,0 +1,650 @@
1
+ import { t as useGranularityTranslations } from "../../../chunks/granularityI18n-DoV7Ca2m.js";
2
+ import { i as Ge, n as Se, r as he, s as Ye, t as useScrollLock } from "../../../chunks/useScrollLock-K7kaP2Ud.js";
3
+ import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
4
+ //#region src/components/GrImageViewer/composables/useZoomPan.ts
5
+ var TRAILING_ZERO_DECIMAL_RE = /\.0$/;
6
+ function formatPercent(value) {
7
+ if (Number.isInteger(value)) return String(value);
8
+ return value.toFixed(1).replace(TRAILING_ZERO_DECIMAL_RE, "");
9
+ }
10
+ /**
11
+ * useZoomPan — состояние и логика масштаба/поворота/панорамирования картинки,
12
+ * а также метрики (натуральный/вписанный/фактический размер, реальный масштаб).
13
+ * Вынесено из монолитного `GrImageViewer.vue`.
14
+ */
15
+ function useZoomPan(options) {
16
+ const scale = ref(1);
17
+ const rotation = ref(0);
18
+ const offsetX = ref(0);
19
+ const offsetY = ref(0);
20
+ const isDragging = ref(false);
21
+ let dragStartX = 0;
22
+ let dragStartY = 0;
23
+ let dragOffsetStartX = 0;
24
+ let dragOffsetStartY = 0;
25
+ const naturalWidth = ref(0);
26
+ const naturalHeight = ref(0);
27
+ const fittedWidth = ref(0);
28
+ const fittedHeight = ref(0);
29
+ let resizeObserver = null;
30
+ const imageStyle = computed(() => ({ transform: `translate3d(${offsetX.value}px, ${offsetY.value}px, 0) scale(${scale.value}) rotate(${rotation.value}deg)` }));
31
+ const zoomValueText = computed(() => formatPercent(scale.value * 100));
32
+ const renderedWidth = computed(() => Math.round(fittedWidth.value * scale.value));
33
+ const renderedHeight = computed(() => Math.round(fittedHeight.value * scale.value));
34
+ const realScale = computed(() => {
35
+ if (!naturalWidth.value) return 0;
36
+ return fittedWidth.value * scale.value / naturalWidth.value;
37
+ });
38
+ const realScalePercent = computed(() => formatPercent(realScale.value * 100));
39
+ function setScale(value) {
40
+ const clamped = Math.min(options.maxScale(), Math.max(options.minScale(), value));
41
+ scale.value = Number(clamped.toFixed(4));
42
+ }
43
+ function zoomIn() {
44
+ setScale(scale.value * options.zoomRate());
45
+ }
46
+ function zoomOut() {
47
+ setScale(scale.value / options.zoomRate());
48
+ }
49
+ function rotateLeft() {
50
+ rotation.value -= 90;
51
+ options.onRotate(rotation.value);
52
+ }
53
+ function rotateRight() {
54
+ rotation.value += 90;
55
+ options.onRotate(rotation.value);
56
+ }
57
+ function resetTransform() {
58
+ scale.value = 1;
59
+ rotation.value = 0;
60
+ offsetX.value = 0;
61
+ offsetY.value = 0;
62
+ isDragging.value = false;
63
+ }
64
+ function resetImageMetrics() {
65
+ naturalWidth.value = 0;
66
+ naturalHeight.value = 0;
67
+ fittedWidth.value = 0;
68
+ fittedHeight.value = 0;
69
+ }
70
+ function measureFitted() {
71
+ const el = options.imageEl.value;
72
+ if (!el) return;
73
+ fittedWidth.value = el.offsetWidth;
74
+ fittedHeight.value = el.offsetHeight;
75
+ }
76
+ function onImageLoad(event) {
77
+ const el = event.target;
78
+ naturalWidth.value = el.naturalWidth;
79
+ naturalHeight.value = el.naturalHeight;
80
+ measureFitted();
81
+ }
82
+ function startObservingImage() {
83
+ const el = options.imageEl.value;
84
+ if (!el || typeof ResizeObserver === "undefined") return;
85
+ if (!resizeObserver) resizeObserver = new ResizeObserver(() => measureFitted());
86
+ resizeObserver.observe(el);
87
+ if (el.complete && el.naturalWidth) {
88
+ naturalWidth.value = el.naturalWidth;
89
+ naturalHeight.value = el.naturalHeight;
90
+ }
91
+ measureFitted();
92
+ }
93
+ function stopObservingImage() {
94
+ resizeObserver?.disconnect();
95
+ }
96
+ function onPointerDown(event) {
97
+ if (!options.draggable() || event.button !== 0) return;
98
+ event.preventDefault();
99
+ isDragging.value = true;
100
+ dragStartX = event.clientX;
101
+ dragStartY = event.clientY;
102
+ dragOffsetStartX = offsetX.value;
103
+ dragOffsetStartY = offsetY.value;
104
+ event.currentTarget.setPointerCapture?.(event.pointerId);
105
+ }
106
+ function onPointerMove(event) {
107
+ if (!isDragging.value) return;
108
+ offsetX.value = dragOffsetStartX + (event.clientX - dragStartX);
109
+ offsetY.value = dragOffsetStartY + (event.clientY - dragStartY);
110
+ }
111
+ function onPointerUp(event) {
112
+ if (!isDragging.value) return;
113
+ isDragging.value = false;
114
+ event.currentTarget.releasePointerCapture?.(event.pointerId);
115
+ }
116
+ return {
117
+ scale,
118
+ rotation,
119
+ offsetX,
120
+ offsetY,
121
+ isDragging,
122
+ naturalWidth,
123
+ naturalHeight,
124
+ fittedWidth,
125
+ fittedHeight,
126
+ imageStyle,
127
+ zoomValueText,
128
+ renderedWidth,
129
+ renderedHeight,
130
+ realScale,
131
+ realScalePercent,
132
+ setScale,
133
+ zoomIn,
134
+ zoomOut,
135
+ rotateLeft,
136
+ rotateRight,
137
+ resetTransform,
138
+ resetImageMetrics,
139
+ measureFitted,
140
+ onImageLoad,
141
+ startObservingImage,
142
+ stopObservingImage,
143
+ onPointerDown,
144
+ onPointerMove,
145
+ onPointerUp
146
+ };
147
+ }
148
+ //#endregion
149
+ //#region src/components/GrImageViewer/composables/useWheelGesture.ts
150
+ var WHEEL_ZOOM_SENSITIVITY = .0015;
151
+ var WHEEL_IDLE_MS = 120;
152
+ /**
153
+ * useWheelGesture — масштабирование колесом мыши / жестом трекпада с батчингом
154
+ * по `requestAnimationFrame` (рендер не чаще кадра — без «дёрганья»/наслоения) и
155
+ * временным отключением CSS-перехода на время жеста (`isWheelZooming`).
156
+ */
157
+ function useWheelGesture(options) {
158
+ const isWheelZooming = ref(false);
159
+ let pendingWheelDelta = 0;
160
+ let wheelFrameId = null;
161
+ let wheelIdleTimer = null;
162
+ function cancelWheelFrame() {
163
+ if (wheelFrameId !== null) {
164
+ cancelAnimationFrame(wheelFrameId);
165
+ wheelFrameId = null;
166
+ }
167
+ }
168
+ function endWheelZoom() {
169
+ if (wheelIdleTimer !== null) {
170
+ clearTimeout(wheelIdleTimer);
171
+ wheelIdleTimer = null;
172
+ }
173
+ isWheelZooming.value = false;
174
+ pendingWheelDelta = 0;
175
+ cancelWheelFrame();
176
+ }
177
+ function flushWheelZoom() {
178
+ wheelFrameId = null;
179
+ const delta = pendingWheelDelta;
180
+ pendingWheelDelta = 0;
181
+ if (!delta) return;
182
+ const factor = Math.exp(-delta * WHEEL_ZOOM_SENSITIVITY);
183
+ options.applyZoomFactor(factor);
184
+ }
185
+ function onWheel(event) {
186
+ if (!options.enabled()) return;
187
+ event.preventDefault();
188
+ isWheelZooming.value = true;
189
+ pendingWheelDelta += event.deltaY;
190
+ if (wheelFrameId === null) wheelFrameId = requestAnimationFrame(flushWheelZoom);
191
+ if (wheelIdleTimer !== null) clearTimeout(wheelIdleTimer);
192
+ wheelIdleTimer = setTimeout(() => {
193
+ wheelIdleTimer = null;
194
+ isWheelZooming.value = false;
195
+ }, WHEEL_IDLE_MS);
196
+ }
197
+ return {
198
+ isWheelZooming,
199
+ onWheel,
200
+ endWheelZoom
201
+ };
202
+ }
203
+ //#endregion
204
+ //#region src/components/GrImageViewer/composables/useViewerKeyboard.ts
205
+ /**
206
+ * useViewerKeyboard — клавиатурное управление просмотрщиком:
207
+ * Esc — закрыть, стрелки — переключение, `+`/`-`/`0` — зум/сброс.
208
+ */
209
+ function useViewerKeyboard(options) {
210
+ const { actions } = options;
211
+ function onKeydown(event) {
212
+ switch (event.key) {
213
+ case "Escape":
214
+ if (!options.closeOnEscape()) return;
215
+ event.preventDefault();
216
+ actions.close();
217
+ return;
218
+ case "ArrowLeft":
219
+ event.preventDefault();
220
+ actions.prev();
221
+ return;
222
+ case "ArrowRight":
223
+ event.preventDefault();
224
+ actions.next();
225
+ return;
226
+ case "+":
227
+ case "=":
228
+ case "Add":
229
+ event.preventDefault();
230
+ actions.zoomIn();
231
+ return;
232
+ case "-":
233
+ case "_":
234
+ case "Subtract":
235
+ event.preventDefault();
236
+ actions.zoomOut();
237
+ return;
238
+ case "0":
239
+ event.preventDefault();
240
+ actions.reset();
241
+ break;
242
+ default:
243
+ }
244
+ }
245
+ return { onKeydown };
246
+ }
247
+ //#endregion
248
+ //#region src/components/GrImageViewer/GrImageViewer.vue?vue&type=script&setup=true&lang.ts
249
+ var _hoisted_1 = { class: "fixed inset-0 overflow-hidden" };
250
+ var _hoisted_2 = { class: "pointer-events-none absolute inset-x-0 top-0 z-30 px-3 py-3 sm:px-6" };
251
+ var _hoisted_3 = { class: "pointer-events-auto flex items-center justify-between gap-3" };
252
+ var _hoisted_4 = { class: "flex items-center gap-2" };
253
+ var _hoisted_5 = {
254
+ key: 0,
255
+ "data-gr-image-viewer-progress": "",
256
+ class: "rounded-full bg-black/35 px-3 py-1 text-xs font-600 text-white/95 sm:text-sm"
257
+ };
258
+ var _hoisted_6 = {
259
+ key: 1,
260
+ "data-gr-image-viewer-zoom-value": "",
261
+ class: "rounded-full bg-black/35 px-3 py-1 text-xs font-700 text-white/95 sm:text-sm"
262
+ };
263
+ var _hoisted_7 = ["aria-label"];
264
+ var _hoisted_8 = ["aria-label"];
265
+ var _hoisted_9 = ["aria-label"];
266
+ var _hoisted_10 = { class: "h-full w-full flex items-center justify-center" };
267
+ var _hoisted_11 = ["src"];
268
+ var _hoisted_12 = {
269
+ key: 1,
270
+ class: "rounded-[var(--gr-radius-xl)] border border-white/20 bg-black/25 px-4 py-3 text-sm text-white/80"
271
+ };
272
+ var _hoisted_13 = { class: "pointer-events-none absolute inset-x-0 bottom-0 z-30 px-3 pb-3 sm:px-6 sm:pb-6" };
273
+ var _hoisted_14 = { class: "pointer-events-auto mx-auto w-full max-w-max" };
274
+ var _hoisted_15 = { class: "rounded-full border border-white/20 bg-black/35 p-1 backdrop-blur-sm flex items-center gap-1" };
275
+ var _hoisted_16 = ["aria-label"];
276
+ var _hoisted_17 = ["aria-label"];
277
+ var _hoisted_18 = ["aria-label"];
278
+ var _hoisted_19 = {
279
+ key: 1,
280
+ class: "mx-1 h-6 w-px bg-white/25",
281
+ "aria-hidden": "true"
282
+ };
283
+ var _hoisted_20 = ["aria-label"];
284
+ var _hoisted_21 = ["aria-label"];
285
+ var DEFAULT_Z_INDEX = 2e3;
286
+ //#endregion
287
+ //#region src/components/GrImageViewer/GrImageViewer.vue
288
+ var GrImageViewer_default = /* @__PURE__ */ defineComponent({
289
+ __name: "GrImageViewer",
290
+ props: {
291
+ modelValue: { type: Boolean },
292
+ urlList: {},
293
+ initialIndex: { default: 0 },
294
+ zoomRate: { default: 1.2 },
295
+ minScale: { default: .5 },
296
+ maxScale: { default: 5 },
297
+ hideOnClickModal: {
298
+ type: Boolean,
299
+ default: false
300
+ },
301
+ closeOnPressEscape: {
302
+ type: Boolean,
303
+ default: true
304
+ },
305
+ showProgress: {
306
+ type: Boolean,
307
+ default: false
308
+ },
309
+ showZoomValue: {
310
+ type: Boolean,
311
+ default: true
312
+ },
313
+ wheelZoom: {
314
+ type: Boolean,
315
+ default: true
316
+ },
317
+ draggable: {
318
+ type: Boolean,
319
+ default: false
320
+ },
321
+ zIndex: { default: void 0 },
322
+ closeLabel: { default: void 0 },
323
+ prevLabel: { default: void 0 },
324
+ nextLabel: { default: void 0 },
325
+ zoomInLabel: { default: void 0 },
326
+ zoomOutLabel: { default: void 0 },
327
+ resetZoomLabel: { default: void 0 },
328
+ rotateLeftLabel: { default: void 0 },
329
+ rotateRightLabel: { default: void 0 },
330
+ emptyText: { default: void 0 }
331
+ },
332
+ emits: [
333
+ "update:modelValue",
334
+ "close",
335
+ "switch",
336
+ "rotate"
337
+ ],
338
+ setup(__props, { emit: __emit }) {
339
+ const props = __props;
340
+ const { t } = useGranularityTranslations();
341
+ const resolvedCloseLabel = computed(() => props.closeLabel ?? t("gr.imageViewer.close", "Close image viewer"));
342
+ const resolvedPrevLabel = computed(() => props.prevLabel ?? t("gr.imageViewer.prev", "Previous image"));
343
+ const resolvedNextLabel = computed(() => props.nextLabel ?? t("gr.imageViewer.next", "Next image"));
344
+ const resolvedZoomInLabel = computed(() => props.zoomInLabel ?? t("gr.imageViewer.zoomIn", "Zoom in"));
345
+ const resolvedZoomOutLabel = computed(() => props.zoomOutLabel ?? t("gr.imageViewer.zoomOut", "Zoom out"));
346
+ const resolvedResetZoomLabel = computed(() => props.resetZoomLabel ?? t("gr.imageViewer.resetZoom", "Reset zoom"));
347
+ const resolvedRotateLeftLabel = computed(() => props.rotateLeftLabel ?? t("gr.imageViewer.rotateLeft", "Rotate left"));
348
+ const resolvedRotateRightLabel = computed(() => props.rotateRightLabel ?? t("gr.imageViewer.rotateRight", "Rotate right"));
349
+ const resolvedEmptyText = computed(() => props.emptyText ?? t("gr.imageViewer.empty", "No image"));
350
+ const emit = __emit;
351
+ const open = computed(() => props.modelValue);
352
+ const isClient = typeof window !== "undefined";
353
+ const { lock: lockBodyScroll, unlock: unlockBodyScroll } = useScrollLock();
354
+ const total = computed(() => props.urlList.length);
355
+ const hasImages = computed(() => total.value > 0);
356
+ const currentIndex = ref(0);
357
+ const imageEl = ref(null);
358
+ const { scale, rotation, isDragging, naturalWidth, naturalHeight, renderedWidth, renderedHeight, realScale, realScalePercent, imageStyle, zoomValueText, setScale, zoomIn, zoomOut, rotateLeft, rotateRight, resetTransform, resetImageMetrics, onImageLoad, startObservingImage, stopObservingImage, onPointerDown, onPointerMove, onPointerUp } = useZoomPan({
359
+ minScale: () => props.minScale,
360
+ maxScale: () => props.maxScale,
361
+ zoomRate: () => props.zoomRate,
362
+ draggable: () => props.draggable,
363
+ imageEl,
364
+ onRotate: (deg) => emit("rotate", deg)
365
+ });
366
+ const { isWheelZooming, onWheel, endWheelZoom } = useWheelGesture({
367
+ enabled: () => props.wheelZoom && hasImages.value,
368
+ applyZoomFactor: (factor) => setScale(scale.value * factor)
369
+ });
370
+ const currentUrl = computed(() => hasImages.value ? props.urlList[currentIndex.value] : void 0);
371
+ const displayIndex = computed(() => hasImages.value ? currentIndex.value + 1 : 0);
372
+ const viewerStyle = computed(() => ({ zIndex: String(Number.isFinite(props.zIndex) ? props.zIndex : DEFAULT_Z_INDEX) }));
373
+ const imageTransitionClass = computed(() => isWheelZooming.value || isDragging.value ? "" : "transition-transform duration-150 ease-out");
374
+ const imageCursorClass = computed(() => {
375
+ if (!props.draggable) return "";
376
+ return isDragging.value ? "cursor-grabbing" : "cursor-grab";
377
+ });
378
+ function normalizeIndex(value) {
379
+ if (!hasImages.value) return 0;
380
+ return ((Number.isFinite(value) ? Math.trunc(value) : 0) % total.value + total.value) % total.value;
381
+ }
382
+ function setIndex(nextIndex, options) {
383
+ const normalizedIndex = normalizeIndex(nextIndex);
384
+ if (normalizedIndex === currentIndex.value) return;
385
+ currentIndex.value = normalizedIndex;
386
+ resetTransform();
387
+ resetImageMetrics();
388
+ endWheelZoom();
389
+ if (options?.emitSwitch !== false) emit("switch", normalizedIndex);
390
+ }
391
+ function syncIndexFromInitial() {
392
+ if (!hasImages.value) {
393
+ currentIndex.value = 0;
394
+ return;
395
+ }
396
+ currentIndex.value = normalizeIndex(props.initialIndex);
397
+ resetTransform();
398
+ resetImageMetrics();
399
+ endWheelZoom();
400
+ }
401
+ function preloadAt(index) {
402
+ const url = props.urlList[index];
403
+ if (!url) return;
404
+ const image = new Image();
405
+ image.decoding = "async";
406
+ image.src = url;
407
+ }
408
+ function closeViewer() {
409
+ emit("update:modelValue", false);
410
+ emit("close");
411
+ }
412
+ function prev() {
413
+ setIndex(currentIndex.value - 1);
414
+ }
415
+ function next() {
416
+ setIndex(currentIndex.value + 1);
417
+ }
418
+ const toolbarActions = {
419
+ close: closeViewer,
420
+ prev,
421
+ next,
422
+ zoomIn,
423
+ zoomOut,
424
+ reset: resetTransform,
425
+ rotateLeft,
426
+ rotateRight
427
+ };
428
+ const toolbarSlotProps = computed(() => ({
429
+ index: currentIndex.value,
430
+ displayIndex: displayIndex.value,
431
+ total: total.value,
432
+ scale: scale.value,
433
+ rotation: rotation.value,
434
+ naturalWidth: naturalWidth.value,
435
+ naturalHeight: naturalHeight.value,
436
+ renderedWidth: renderedWidth.value,
437
+ renderedHeight: renderedHeight.value,
438
+ realScale: realScale.value,
439
+ realScalePercent: realScalePercent.value,
440
+ actions: toolbarActions
441
+ }));
442
+ function onBackdropClick() {
443
+ if (!props.hideOnClickModal) return;
444
+ closeViewer();
445
+ }
446
+ const { onKeydown } = useViewerKeyboard({
447
+ closeOnEscape: () => props.closeOnPressEscape,
448
+ actions: {
449
+ close: closeViewer,
450
+ prev,
451
+ next,
452
+ zoomIn,
453
+ zoomOut,
454
+ reset: resetTransform
455
+ }
456
+ });
457
+ watch(() => props.modelValue, async (isOpen) => {
458
+ if (!isOpen) {
459
+ unlockBodyScroll();
460
+ stopObservingImage();
461
+ endWheelZoom();
462
+ isDragging.value = false;
463
+ return;
464
+ }
465
+ lockBodyScroll();
466
+ syncIndexFromInitial();
467
+ await nextTick();
468
+ startObservingImage();
469
+ }, { immediate: true });
470
+ watch(() => props.initialIndex, () => {
471
+ if (!props.modelValue) return;
472
+ syncIndexFromInitial();
473
+ });
474
+ watch(() => props.urlList, () => {
475
+ if (!props.modelValue) return;
476
+ syncIndexFromInitial();
477
+ }, { deep: true });
478
+ watch(currentIndex, (index) => {
479
+ if (!hasImages.value || total.value < 2) return;
480
+ preloadAt(normalizeIndex(index - 1));
481
+ preloadAt(normalizeIndex(index + 1));
482
+ }, { immediate: true });
483
+ onBeforeUnmount(() => {
484
+ unlockBodyScroll();
485
+ stopObservingImage();
486
+ endWheelZoom();
487
+ });
488
+ return (_ctx, _cache) => {
489
+ return openBlock(), createBlock(Teleport, {
490
+ to: "body",
491
+ disabled: !isClient
492
+ }, [createVNode(unref(Se), {
493
+ show: open.value,
494
+ as: "template"
495
+ }, {
496
+ default: withCtx(() => [createVNode(unref(Ye), {
497
+ as: "div",
498
+ class: "fixed inset-0",
499
+ style: normalizeStyle(viewerStyle.value),
500
+ role: "dialog",
501
+ "aria-modal": "true",
502
+ static: true,
503
+ onKeydown: unref(onKeydown)
504
+ }, {
505
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(he), {
506
+ as: "template",
507
+ enter: "duration-150 ease-out",
508
+ "enter-from": "opacity-0",
509
+ "enter-to": "opacity-100",
510
+ leave: "duration-120 ease-in",
511
+ "leave-from": "opacity-100",
512
+ "leave-to": "opacity-0"
513
+ }, {
514
+ default: withCtx(() => [createElementVNode("div", {
515
+ "data-gr-image-viewer-overlay": "",
516
+ class: "absolute inset-0 bg-black/60 backdrop-blur-sm",
517
+ "aria-hidden": "true",
518
+ onClick: onBackdropClick
519
+ })]),
520
+ _: 1
521
+ }), createVNode(unref(he), {
522
+ as: "template",
523
+ enter: "duration-180 ease-out",
524
+ "enter-from": "opacity-0 scale-98",
525
+ "enter-to": "opacity-100 scale-100",
526
+ leave: "duration-130 ease-in",
527
+ "leave-from": "opacity-100 scale-100",
528
+ "leave-to": "opacity-0 scale-98"
529
+ }, {
530
+ default: withCtx(() => [createVNode(unref(Ge), {
531
+ "data-gr-image-viewer-panel": "",
532
+ class: "relative z-10 h-full w-full outline-none",
533
+ tabindex: "-1"
534
+ }, {
535
+ default: withCtx(() => [
536
+ createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [__props.showProgress ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(displayIndex.value) + " / " + toDisplayString(total.value), 1)) : createCommentVNode("", true), __props.showZoomValue ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(unref(zoomValueText)) + "% ", 1)) : createCommentVNode("", true)]), createElementVNode("button", {
537
+ type: "button",
538
+ "data-gr-image-viewer-close": "",
539
+ "aria-label": resolvedCloseLabel.value,
540
+ class: "h-11 w-11 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
541
+ onClick: closeViewer
542
+ }, [..._cache[11] || (_cache[11] = [createElementVNode("span", {
543
+ "aria-hidden": "true",
544
+ class: "text-lg leading-none"
545
+ }, "✕", -1)])], 8, _hoisted_7)])]),
546
+ createElementVNode("div", {
547
+ class: "relative z-10 h-full w-full flex items-center justify-center px-16 py-16 sm:px-24 sm:py-20",
548
+ onWheel: _cache[5] || (_cache[5] = (...args) => unref(onWheel) && unref(onWheel)(...args))
549
+ }, [
550
+ total.value > 1 ? (openBlock(), createElementBlock("button", {
551
+ key: 0,
552
+ type: "button",
553
+ "data-gr-image-viewer-prev": "",
554
+ "aria-label": resolvedPrevLabel.value,
555
+ class: "absolute left-3 top-1/2 z-20 h-12 w-12 -translate-y-1/2 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80 sm:left-6",
556
+ onClick: prev
557
+ }, [..._cache[12] || (_cache[12] = [createElementVNode("span", {
558
+ "aria-hidden": "true",
559
+ class: "text-xl leading-none"
560
+ }, "‹", -1)])], 8, _hoisted_8)) : createCommentVNode("", true),
561
+ total.value > 1 ? (openBlock(), createElementBlock("button", {
562
+ key: 1,
563
+ type: "button",
564
+ "data-gr-image-viewer-next": "",
565
+ "aria-label": resolvedNextLabel.value,
566
+ class: "absolute right-3 top-1/2 z-20 h-12 w-12 -translate-y-1/2 flex items-center justify-center rounded-full border border-white/20 bg-black/35 text-white transition-colors hover:bg-black/55 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80 sm:right-6",
567
+ onClick: next
568
+ }, [..._cache[13] || (_cache[13] = [createElementVNode("span", {
569
+ "aria-hidden": "true",
570
+ class: "text-xl leading-none"
571
+ }, "›", -1)])], 8, _hoisted_9)) : createCommentVNode("", true),
572
+ createElementVNode("div", _hoisted_10, [currentUrl.value ? (openBlock(), createElementBlock("img", {
573
+ key: 0,
574
+ ref_key: "imageEl",
575
+ ref: imageEl,
576
+ "data-gr-image-viewer-image": "",
577
+ src: currentUrl.value,
578
+ alt: "",
579
+ draggable: "false",
580
+ class: normalizeClass(["max-h-full max-w-full select-none object-contain will-change-transform", [imageTransitionClass.value, imageCursorClass.value]]),
581
+ style: normalizeStyle(unref(imageStyle)),
582
+ onLoad: _cache[0] || (_cache[0] = (...args) => unref(onImageLoad) && unref(onImageLoad)(...args)),
583
+ onPointerdown: _cache[1] || (_cache[1] = (...args) => unref(onPointerDown) && unref(onPointerDown)(...args)),
584
+ onPointermove: _cache[2] || (_cache[2] = (...args) => unref(onPointerMove) && unref(onPointerMove)(...args)),
585
+ onPointerup: _cache[3] || (_cache[3] = (...args) => unref(onPointerUp) && unref(onPointerUp)(...args)),
586
+ onPointercancel: _cache[4] || (_cache[4] = (...args) => unref(onPointerUp) && unref(onPointerUp)(...args))
587
+ }, null, 46, _hoisted_11)) : (openBlock(), createElementBlock("div", _hoisted_12, toDisplayString(resolvedEmptyText.value), 1))])
588
+ ], 32),
589
+ createElementVNode("div", _hoisted_13, [createElementVNode("div", _hoisted_14, [renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbarSlotProps.value)), () => [createElementVNode("div", _hoisted_15, [
590
+ createElementVNode("button", {
591
+ type: "button",
592
+ "data-gr-image-viewer-zoom-out": "",
593
+ "aria-label": resolvedZoomOutLabel.value,
594
+ class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
595
+ onClick: _cache[6] || (_cache[6] = (...args) => unref(zoomOut) && unref(zoomOut)(...args))
596
+ }, " − ", 8, _hoisted_16),
597
+ createElementVNode("button", {
598
+ type: "button",
599
+ "data-gr-image-viewer-zoom-reset": "",
600
+ "aria-label": resolvedResetZoomLabel.value,
601
+ class: "h-11 min-w-11 px-3 flex items-center justify-center rounded-full text-xs font-700 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
602
+ onClick: _cache[7] || (_cache[7] = (...args) => unref(resetTransform) && unref(resetTransform)(...args))
603
+ }, " 100% ", 8, _hoisted_17),
604
+ createElementVNode("button", {
605
+ type: "button",
606
+ "data-gr-image-viewer-zoom-in": "",
607
+ "aria-label": resolvedZoomInLabel.value,
608
+ class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
609
+ onClick: _cache[8] || (_cache[8] = (...args) => unref(zoomIn) && unref(zoomIn)(...args))
610
+ }, " + ", 8, _hoisted_18),
611
+ _ctx.$slots["toolbar-actions"] ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
612
+ _cache[14] || (_cache[14] = createElementVNode("div", {
613
+ class: "mx-1 h-6 w-px bg-white/25",
614
+ "aria-hidden": "true"
615
+ }, null, -1)),
616
+ renderSlot(_ctx.$slots, "toolbar-actions", normalizeProps(guardReactiveProps(toolbarSlotProps.value))),
617
+ _cache[15] || (_cache[15] = createElementVNode("div", {
618
+ class: "mx-1 h-6 w-px bg-white/25",
619
+ "aria-hidden": "true"
620
+ }, null, -1))
621
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_19)),
622
+ createElementVNode("button", {
623
+ type: "button",
624
+ "data-gr-image-viewer-rotate-left": "",
625
+ "aria-label": resolvedRotateLeftLabel.value,
626
+ class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
627
+ onClick: _cache[9] || (_cache[9] = (...args) => unref(rotateLeft) && unref(rotateLeft)(...args))
628
+ }, " ↺ ", 8, _hoisted_20),
629
+ createElementVNode("button", {
630
+ type: "button",
631
+ "data-gr-image-viewer-rotate-right": "",
632
+ "aria-label": resolvedRotateRightLabel.value,
633
+ class: "h-11 min-w-11 px-2 flex items-center justify-center rounded-full text-sm font-600 text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/80",
634
+ onClick: _cache[10] || (_cache[10] = (...args) => unref(rotateRight) && unref(rotateRight)(...args))
635
+ }, " ↻ ", 8, _hoisted_21)
636
+ ])])])])
637
+ ]),
638
+ _: 3
639
+ })]),
640
+ _: 3
641
+ })])]),
642
+ _: 3
643
+ }, 8, ["style", "onKeydown"])]),
644
+ _: 3
645
+ }, 8, ["show"])], 8, ["disabled"]);
646
+ };
647
+ }
648
+ });
649
+ //#endregion
650
+ export { GrImageViewer_default as t };