@feugene/granularity 0.4.0 → 0.4.1

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 (424) hide show
  1. package/dist/chunks/_plugin-vue_export-helper-BG_EqiDU.js +8 -0
  2. package/dist/chunks/adapter-C7fKeUa4.js +6 -0
  3. package/dist/chunks/adapter-C7fKeUa4.js.map +1 -0
  4. package/dist/chunks/arrow-up-DNXrMoAI.js +25 -0
  5. package/dist/chunks/arrow-up-DNXrMoAI.js.map +1 -0
  6. package/dist/chunks/classTokens-BPeBXNzu.js +8 -0
  7. package/dist/chunks/classTokens-BPeBXNzu.js.map +1 -0
  8. package/dist/chunks/config-2wgwWaAB.js +10 -0
  9. package/dist/chunks/config-2wgwWaAB.js.map +1 -0
  10. package/dist/chunks/config-BKRmlivc.js +10 -0
  11. package/dist/chunks/config-BKRmlivc.js.map +1 -0
  12. package/dist/chunks/config-BRU5PR8_.js +10 -0
  13. package/dist/chunks/config-BRU5PR8_.js.map +1 -0
  14. package/dist/chunks/config-BUGfFjmC.js +16 -0
  15. package/dist/chunks/config-BUGfFjmC.js.map +1 -0
  16. package/dist/chunks/config-BXffa3ta.js +60 -0
  17. package/dist/chunks/config-BXffa3ta.js.map +1 -0
  18. package/dist/chunks/config-BaMO9dQh.js +22 -0
  19. package/dist/chunks/config-BaMO9dQh.js.map +1 -0
  20. package/dist/chunks/config-BbtK511H.js +11 -0
  21. package/dist/chunks/config-BbtK511H.js.map +1 -0
  22. package/dist/chunks/config-BcFOkUhh.js +15 -0
  23. package/dist/chunks/config-BcFOkUhh.js.map +1 -0
  24. package/dist/chunks/config-BcpRsZTe.js +10 -0
  25. package/dist/chunks/config-BcpRsZTe.js.map +1 -0
  26. package/dist/chunks/config-BhubOeci.js +15 -0
  27. package/dist/chunks/config-BhubOeci.js.map +1 -0
  28. package/dist/chunks/config-BhvNm4Pp.js +173 -0
  29. package/dist/chunks/config-BhvNm4Pp.js.map +1 -0
  30. package/dist/chunks/config-Bv2G0OU6.js +10 -0
  31. package/dist/chunks/config-Bv2G0OU6.js.map +1 -0
  32. package/dist/chunks/config-Bv5Dok4j.js +41 -0
  33. package/dist/chunks/config-Bv5Dok4j.js.map +1 -0
  34. package/dist/chunks/config-BzQ4S4Hb.js +11 -0
  35. package/dist/chunks/config-BzQ4S4Hb.js.map +1 -0
  36. package/dist/chunks/config-BzZGpWsj.js +11 -0
  37. package/dist/chunks/config-BzZGpWsj.js.map +1 -0
  38. package/dist/chunks/config-C0b_3LJV.js +42 -0
  39. package/dist/chunks/config-C0b_3LJV.js.map +1 -0
  40. package/dist/chunks/config-C2JKq8-2.js +60 -0
  41. package/dist/chunks/config-C2JKq8-2.js.map +1 -0
  42. package/dist/chunks/config-C6SBJxcH.js +10 -0
  43. package/dist/chunks/config-C6SBJxcH.js.map +1 -0
  44. package/dist/chunks/config-CJbjLC5X.js +55 -0
  45. package/dist/chunks/config-CJbjLC5X.js.map +1 -0
  46. package/dist/chunks/config-CJeyaUTp.js +40 -0
  47. package/dist/chunks/config-CJeyaUTp.js.map +1 -0
  48. package/dist/chunks/config-CMZE2fu0.js +11 -0
  49. package/dist/chunks/config-CMZE2fu0.js.map +1 -0
  50. package/dist/chunks/config-CU_CBd0k.js +24 -0
  51. package/dist/chunks/config-CU_CBd0k.js.map +1 -0
  52. package/dist/chunks/config-CYPU3ztl.js +26 -0
  53. package/dist/chunks/config-CYPU3ztl.js.map +1 -0
  54. package/dist/chunks/config-CcmeMlic.js +19 -0
  55. package/dist/chunks/config-CcmeMlic.js.map +1 -0
  56. package/dist/chunks/config-CdAx6ify2.js +11 -0
  57. package/dist/chunks/config-CdAx6ify2.js.map +1 -0
  58. package/dist/chunks/config-CxCAfXZ1.js +23 -0
  59. package/dist/chunks/config-CxCAfXZ1.js.map +1 -0
  60. package/dist/chunks/config-D1gSaT52.js +11 -0
  61. package/dist/chunks/config-D1gSaT52.js.map +1 -0
  62. package/dist/chunks/config-D7iuXJbl.js +11 -0
  63. package/dist/chunks/config-D7iuXJbl.js.map +1 -0
  64. package/dist/chunks/config-D7tRu8u3.js +11 -0
  65. package/dist/chunks/config-D7tRu8u3.js.map +1 -0
  66. package/dist/chunks/config-DBYCntwl.js +10 -0
  67. package/dist/chunks/config-DBYCntwl.js.map +1 -0
  68. package/dist/chunks/config-DFRYOcrP.js +11 -0
  69. package/dist/chunks/config-DFRYOcrP.js.map +1 -0
  70. package/dist/chunks/config-DW_RqmUp.js +10 -0
  71. package/dist/chunks/config-DW_RqmUp.js.map +1 -0
  72. package/dist/chunks/config-Dkq0HeLe.js +11 -0
  73. package/dist/chunks/config-Dkq0HeLe.js.map +1 -0
  74. package/dist/chunks/config-DlLE49_I.js +11 -0
  75. package/dist/chunks/config-DlLE49_I.js.map +1 -0
  76. package/dist/chunks/config-DvTUDLT1.js +46 -0
  77. package/dist/chunks/config-DvTUDLT1.js.map +1 -0
  78. package/dist/chunks/config-DwB5-qdP2.js +10 -0
  79. package/dist/chunks/config-DwB5-qdP2.js.map +1 -0
  80. package/dist/chunks/config-DxqMXzNV2.js +25 -0
  81. package/dist/chunks/config-DxqMXzNV2.js.map +1 -0
  82. package/dist/chunks/config-DxqpV-KM.js +47 -0
  83. package/dist/chunks/config-DxqpV-KM.js.map +1 -0
  84. package/dist/chunks/config-Dzz9P-GV2.js +11 -0
  85. package/dist/chunks/config-Dzz9P-GV2.js.map +1 -0
  86. package/dist/chunks/config-KGTIAFD92.js +10 -0
  87. package/dist/chunks/config-KGTIAFD92.js.map +1 -0
  88. package/dist/chunks/config-TyzU6gLf.js +10 -0
  89. package/dist/chunks/config-TyzU6gLf.js.map +1 -0
  90. package/dist/chunks/config-cn6knwud.js +37 -0
  91. package/dist/chunks/config-cn6knwud.js.map +1 -0
  92. package/dist/chunks/config-dD6Po-Cq.js +10 -0
  93. package/dist/chunks/config-dD6Po-Cq.js.map +1 -0
  94. package/dist/chunks/config-rFwazRKi.js +11 -0
  95. package/dist/chunks/config-rFwazRKi.js.map +1 -0
  96. package/dist/chunks/config-rQlbnEKn.js +10 -0
  97. package/dist/chunks/config-rQlbnEKn.js.map +1 -0
  98. package/dist/chunks/config-rxFL-6yF2.js +80 -0
  99. package/dist/chunks/config-rxFL-6yF2.js.map +1 -0
  100. package/dist/chunks/config-ug8O8epd.js +13 -0
  101. package/dist/chunks/config-ug8O8epd.js.map +1 -0
  102. package/dist/chunks/dialogShared-BtXUk6Zc.js +34 -0
  103. package/dist/chunks/dialogShared-BtXUk6Zc.js.map +1 -0
  104. package/dist/chunks/directives-Cuib0yOO.js +728 -0
  105. package/dist/chunks/directives-Cuib0yOO.js.map +1 -0
  106. package/dist/chunks/en-BMjJZttK.js +50 -0
  107. package/dist/chunks/en-BMjJZttK.js.map +1 -0
  108. package/dist/chunks/es-Cu_RlgIr.js +22 -0
  109. package/dist/chunks/es-Cu_RlgIr.js.map +1 -0
  110. package/dist/chunks/es-EYCf8G_1.js +50 -0
  111. package/dist/chunks/es-EYCf8G_1.js.map +1 -0
  112. package/dist/chunks/fileValidation-CgjTGoUx.js +221 -0
  113. package/dist/chunks/fileValidation-CgjTGoUx.js.map +1 -0
  114. package/dist/chunks/{grBadgeStyles-Bu4H8bFc.js → grBadgeStyles-pqqbVgLk.js} +20 -13
  115. package/dist/chunks/grBadgeStyles-pqqbVgLk.js.map +1 -0
  116. package/dist/chunks/{grButtonStyles-C5k0bN2e.js → grButtonStyles-BxZW2x0-.js} +62 -52
  117. package/dist/chunks/grButtonStyles-BxZW2x0-.js.map +1 -0
  118. package/dist/chunks/grDropdownStyles-DQfLh-bp.js +34 -0
  119. package/dist/chunks/grDropdownStyles-DQfLh-bp.js.map +1 -0
  120. package/dist/chunks/grLoadingStyles-CERsxyk9.js +19 -0
  121. package/dist/chunks/grLoadingStyles-CERsxyk9.js.map +1 -0
  122. package/dist/chunks/grModalStyles-Dv2NXBKi.js +49 -0
  123. package/dist/chunks/grModalStyles-Dv2NXBKi.js.map +1 -0
  124. package/dist/chunks/grSelectStyles-C1zNEkV7.js +52 -0
  125. package/dist/chunks/grSelectStyles-C1zNEkV7.js.map +1 -0
  126. package/dist/chunks/granularityI18n-BEWP9aJs.js +28 -0
  127. package/dist/chunks/granularityI18n-BEWP9aJs.js.map +1 -0
  128. package/dist/chunks/info-C0bHmdZq.js +28 -0
  129. package/dist/chunks/info-C0bHmdZq.js.map +1 -0
  130. package/dist/chunks/loader-circle-B2rWDk5u.js +25 -0
  131. package/dist/chunks/loader-circle-B2rWDk5u.js.map +1 -0
  132. package/dist/chunks/ru-DKswMSdd.js +50 -0
  133. package/dist/chunks/ru-DKswMSdd.js.map +1 -0
  134. package/dist/chunks/safelist-BF822K15.js +15 -0
  135. package/dist/chunks/safelist-BF822K15.js.map +1 -0
  136. package/dist/chunks/safelist-BY7z8fOl.js +26 -0
  137. package/dist/chunks/safelist-BY7z8fOl.js.map +1 -0
  138. package/dist/chunks/{shared-BqUqjuxn.js → shared-Bvjkhhm2.js} +151 -111
  139. package/dist/chunks/shared-Bvjkhhm2.js.map +1 -0
  140. package/dist/chunks/transition-mJ3PZCHH.js +1694 -0
  141. package/dist/chunks/transition-mJ3PZCHH.js.map +1 -0
  142. package/dist/chunks/x-Pa6C2hwi.js +25 -0
  143. package/dist/chunks/x-Pa6C2hwi.js.map +1 -0
  144. package/dist/chunks/x-circle-DQSlBLmX.js +69 -0
  145. package/dist/chunks/x-circle-DQSlBLmX.js.map +1 -0
  146. package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +148 -0
  147. package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js.map +1 -0
  148. package/dist/components/GrAlert/index.js +3 -3
  149. package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js +43 -0
  150. package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js.map +1 -0
  151. package/dist/components/GrAvatar/index.js +3 -3
  152. package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js +34 -0
  153. package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js.map +1 -0
  154. package/dist/components/GrBadge/index.js +3 -3
  155. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js +35 -0
  156. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js.map +1 -0
  157. package/dist/components/GrBadgeWrap/index.js +3 -3
  158. package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js +33 -0
  159. package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js.map +1 -0
  160. package/dist/components/GrBottomNav/index.js +3 -3
  161. package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js +85 -0
  162. package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js.map +1 -0
  163. package/dist/components/GrButton/index.js +5 -5
  164. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js +23 -0
  165. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js.map +1 -0
  166. package/dist/components/GrButtonGroup/index.js +3 -3
  167. package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js +13 -0
  168. package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js.map +1 -0
  169. package/dist/components/GrCard/index.js +3 -3
  170. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js +136 -0
  171. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +1 -0
  172. package/dist/components/GrCheckbox/index.js +3 -3
  173. package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js +207 -0
  174. package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js.map +1 -0
  175. package/dist/components/GrCollapse/index.js +3 -3
  176. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js +133 -0
  177. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js.map +1 -0
  178. package/dist/components/GrConfirmDialog/index.js +3 -3
  179. package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js +181 -0
  180. package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js.map +1 -0
  181. package/dist/components/GrDataTable/index.js +3 -3
  182. package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js +223 -0
  183. package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js.map +1 -0
  184. package/dist/components/GrDialog/index.js +4 -4
  185. package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js +158 -0
  186. package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js.map +1 -0
  187. package/dist/components/GrDrawer/index.js +3 -3
  188. package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js +153 -0
  189. package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js.map +1 -0
  190. package/dist/components/GrDropdown/index.js +3 -3
  191. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js +311 -0
  192. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js.map +1 -0
  193. package/dist/components/GrDropdownMenu/index.js +3 -3
  194. package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js +64 -0
  195. package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js.map +1 -0
  196. package/dist/components/GrEmptyState/index.js +3 -3
  197. package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js +370 -0
  198. package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js.map +1 -0
  199. package/dist/components/GrFileUpload/index.js +4 -4
  200. package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js +37 -0
  201. package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js.map +1 -0
  202. package/dist/components/GrFormField/index.js +3 -3
  203. package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js +315 -0
  204. package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js.map +1 -0
  205. package/dist/components/GrFormFile/index.js +3 -3
  206. package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js +37 -0
  207. package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js.map +1 -0
  208. package/dist/components/GrFormSection/index.js +3 -3
  209. package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +34 -0
  210. package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js.map +1 -0
  211. package/dist/components/GrIcon/index.js +3 -3
  212. package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js +399 -0
  213. package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js.map +1 -0
  214. package/dist/components/GrImageViewer/index.js +3 -3
  215. package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js +213 -0
  216. package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js.map +1 -0
  217. package/dist/components/GrInput/index.js +3 -3
  218. package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js +259 -0
  219. package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js.map +1 -0
  220. package/dist/components/GrInputTag/index.js +3 -3
  221. package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js +82 -0
  222. package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js.map +1 -0
  223. package/dist/components/GrLink/index.js +3 -3
  224. package/dist/components/GrList/chunks/GrList-CjgeVjhY.js +79 -0
  225. package/dist/components/GrList/chunks/GrList-CjgeVjhY.js.map +1 -0
  226. package/dist/components/GrList/index.js +3 -3
  227. package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js +71 -0
  228. package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js.map +1 -0
  229. package/dist/components/GrLoading/index.js +3 -3
  230. package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +170 -0
  231. package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js.map +1 -0
  232. package/dist/components/GrModal/index.js +4 -4
  233. package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js +77 -0
  234. package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js.map +1 -0
  235. package/dist/components/GrNavbar/index.js +3 -3
  236. package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js +399 -0
  237. package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js.map +1 -0
  238. package/dist/components/GrNumberInput/index.js +3 -3
  239. package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js +116 -0
  240. package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js.map +1 -0
  241. package/dist/components/GrPagination/index.js +3 -3
  242. package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js +41 -0
  243. package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js.map +1 -0
  244. package/dist/components/GrProgressBar/index.js +3 -3
  245. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js +192 -0
  246. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js.map +1 -0
  247. package/dist/components/GrPromptDialog/index.js +3 -3
  248. package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js +186 -0
  249. package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js.map +1 -0
  250. package/dist/components/GrRadio/index.js +3 -3
  251. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js +82 -0
  252. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js.map +1 -0
  253. package/dist/components/GrRadioGroup/index.js +3 -3
  254. package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js +325 -0
  255. package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js.map +1 -0
  256. package/dist/components/GrSegmented/index.js +3 -3
  257. package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js +445 -0
  258. package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js.map +1 -0
  259. package/dist/components/GrSelect/index.js +3 -3
  260. package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js +46 -0
  261. package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js.map +1 -0
  262. package/dist/components/GrSidebar/index.js +3 -3
  263. package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js +35 -0
  264. package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js.map +1 -0
  265. package/dist/components/GrSkeleton/index.js +3 -3
  266. package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js +81 -0
  267. package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js.map +1 -0
  268. package/dist/components/GrSwitch/index.js +3 -3
  269. package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +59 -0
  270. package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js.map +1 -0
  271. package/dist/components/GrTable/index.js +3 -3
  272. package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js +120 -0
  273. package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js.map +1 -0
  274. package/dist/components/GrTabs/index.js +3 -3
  275. package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js +73 -0
  276. package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js.map +1 -0
  277. package/dist/components/GrTextarea/index.js +3 -3
  278. package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js +173 -0
  279. package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js.map +1 -0
  280. package/dist/components/GrToaster/index.js +3 -3
  281. package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js +57 -0
  282. package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js.map +1 -0
  283. package/dist/components/GrTooltip/index.js +3 -3
  284. package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js +736 -0
  285. package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js.map +1 -0
  286. package/dist/components/GrTree/index.js +3 -3
  287. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js +456 -0
  288. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js.map +1 -0
  289. package/dist/components/GrTreeSelect/index.js +3 -3
  290. package/dist/composables/useTheme.js +41 -30
  291. package/dist/composables/useTheme.js.map +1 -0
  292. package/dist/composables/useToast.js +43 -34
  293. package/dist/composables/useToast.js.map +1 -0
  294. package/dist/directives/index.js +2 -2
  295. package/dist/fileValidation/index.js +2 -2
  296. package/dist/granular-provider-node.js +25 -14
  297. package/dist/granular-provider-node.js.map +1 -0
  298. package/dist/granular-provider.js +5 -3
  299. package/dist/granular-provider.js.map +1 -0
  300. package/dist/i18n/all.js +8 -6
  301. package/dist/i18n/all.js.map +1 -0
  302. package/dist/i18n/index.js +3 -3
  303. package/dist/index.js +105 -105
  304. package/dist/vue/index.js +66 -26
  305. package/dist/vue/index.js.map +1 -0
  306. package/package.json +1 -1
  307. package/dist/chunks/_plugin-vue_export-helper-CHO2XVys.js +0 -8
  308. package/dist/chunks/adapter-D5uYoOZj.js +0 -4
  309. package/dist/chunks/arrow-up-Dv3dC3hu.js +0 -23
  310. package/dist/chunks/classTokens-CT1tqF2j.js +0 -6
  311. package/dist/chunks/config-B5JCvHys.js +0 -13
  312. package/dist/chunks/config-BDXa5Sna2.js +0 -9
  313. package/dist/chunks/config-BG5_FuZ-.js +0 -34
  314. package/dist/chunks/config-BMYKG1oB.js +0 -10
  315. package/dist/chunks/config-BQREEXFD.js +0 -8
  316. package/dist/chunks/config-BUZtbeTr.js +0 -40
  317. package/dist/chunks/config-BVXycfiO.js +0 -9
  318. package/dist/chunks/config-BZW-RL6E.js +0 -14
  319. package/dist/chunks/config-BhbfV-Is.js +0 -48
  320. package/dist/chunks/config-BmYFupZh.js +0 -8
  321. package/dist/chunks/config-BsZc_QQ-2.js +0 -20
  322. package/dist/chunks/config-C1Sn7mn-.js +0 -27
  323. package/dist/chunks/config-C4_REX-3.js +0 -9
  324. package/dist/chunks/config-CBFllZZ4.js +0 -9
  325. package/dist/chunks/config-CDyD_fCt.js +0 -8
  326. package/dist/chunks/config-CJeG727i.js +0 -149
  327. package/dist/chunks/config-CLawBqde.js +0 -21
  328. package/dist/chunks/config-CMz46RPG.js +0 -8
  329. package/dist/chunks/config-CO-7HRZd2.js +0 -8
  330. package/dist/chunks/config-CS7E7LME.js +0 -9
  331. package/dist/chunks/config-CVy124Xj.js +0 -8
  332. package/dist/chunks/config-CcixQGaN.js +0 -47
  333. package/dist/chunks/config-CiVXZxyQ.js +0 -9
  334. package/dist/chunks/config-CoMQmunP.js +0 -8
  335. package/dist/chunks/config-Cq6ufYtp.js +0 -9
  336. package/dist/chunks/config-D8CIEWcb.js +0 -8
  337. package/dist/chunks/config-D8hKc39m.js +0 -18
  338. package/dist/chunks/config-D9MxGwCJ.js +0 -8
  339. package/dist/chunks/config-DBXTZE36.js +0 -15
  340. package/dist/chunks/config-DK9C8O7L.js +0 -9
  341. package/dist/chunks/config-DTegOmx2.js +0 -8
  342. package/dist/chunks/config-DYI8XADo.js +0 -47
  343. package/dist/chunks/config-DlidGf7P.js +0 -8
  344. package/dist/chunks/config-DtNe7EIX.js +0 -35
  345. package/dist/chunks/config-EdWeK_ge.js +0 -17
  346. package/dist/chunks/config-FGAkxHFh.js +0 -8
  347. package/dist/chunks/config-M76gNxd2.js +0 -37
  348. package/dist/chunks/config-NuqoO_Of.js +0 -33
  349. package/dist/chunks/config-QsovJrku2.js +0 -66
  350. package/dist/chunks/config-R6F6zRJk.js +0 -9
  351. package/dist/chunks/config-SLwkDc4Q2.js +0 -9
  352. package/dist/chunks/config-aJ7sb62Y.js +0 -8
  353. package/dist/chunks/config-b9nc87Oc.js +0 -9
  354. package/dist/chunks/config-dSI8RttH2.js +0 -8
  355. package/dist/chunks/config-im2VHeSM.js +0 -9
  356. package/dist/chunks/config-vKeQ035f.js +0 -9
  357. package/dist/chunks/config-vMcxHlWi.js +0 -14
  358. package/dist/chunks/dialogShared-CONROtU2.js +0 -26
  359. package/dist/chunks/directives-Dr5NPOT8.js +0 -530
  360. package/dist/chunks/en-j3simI0h.js +0 -41
  361. package/dist/chunks/es-CIT9s_vo.js +0 -4
  362. package/dist/chunks/es-CLpJj7KP.js +0 -41
  363. package/dist/chunks/fileValidation-LFD-vwil.js +0 -193
  364. package/dist/chunks/grDropdownStyles-149X1NeB.js +0 -31
  365. package/dist/chunks/grLoadingStyles-Bjo7ylmq.js +0 -15
  366. package/dist/chunks/grModalStyles-Dmd4havY.js +0 -38
  367. package/dist/chunks/grSelectStyles-C3QKIn1J.js +0 -40
  368. package/dist/chunks/granularityI18n-8_v1B11L.js +0 -24
  369. package/dist/chunks/info-CNJnuTYC.js +0 -26
  370. package/dist/chunks/loader-circle-C5vCCMfB.js +0 -23
  371. package/dist/chunks/ru-CiOZPnBu.js +0 -41
  372. package/dist/chunks/safelist-Bq32hAXc.js +0 -13
  373. package/dist/chunks/safelist-CLcTRYB-.js +0 -22
  374. package/dist/chunks/transition-BJXMi52x.js +0 -1617
  375. package/dist/chunks/x--kxrj3ez.js +0 -23
  376. package/dist/chunks/x-circle-ChJ87u1v.js +0 -61
  377. package/dist/components/GrAlert/chunks/GrAlert-DLHkusb-.js +0 -129
  378. package/dist/components/GrAvatar/chunks/GrAvatar-BFYH3HJw.js +0 -32
  379. package/dist/components/GrBadge/chunks/GrBadge-D_AoqGrn.js +0 -27
  380. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C_N0QJfA.js +0 -26
  381. package/dist/components/GrBottomNav/chunks/GrBottomNav-Chpu3SVd.js +0 -21
  382. package/dist/components/GrButton/chunks/GrButton-BXVVt6Od.js +0 -67
  383. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CmnYHVH7.js +0 -16
  384. package/dist/components/GrCard/chunks/GrCard-DEpN6Ptf.js +0 -10
  385. package/dist/components/GrCheckbox/chunks/GrCheckbox-DF3vJApB.js +0 -111
  386. package/dist/components/GrCollapse/chunks/GrCollapse-D7QYRqNa.js +0 -150
  387. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-C7Eh8-Vn.js +0 -111
  388. package/dist/components/GrDataTable/chunks/GrDataTable-Dxsg1NMP.js +0 -142
  389. package/dist/components/GrDialog/chunks/GrDialog-BSd4-uP5.js +0 -169
  390. package/dist/components/GrDrawer/chunks/GrDrawer-DBBSwe1s.js +0 -135
  391. package/dist/components/GrDropdown/chunks/GrDropdown-BELyRP4A.js +0 -110
  392. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-B8fuk7iP.js +0 -233
  393. package/dist/components/GrEmptyState/chunks/GrEmptyState-BPGoafJI.js +0 -49
  394. package/dist/components/GrFileUpload/chunks/GrFileUpload-BPzx3LEM.js +0 -294
  395. package/dist/components/GrFormField/chunks/GrFormField-Cn8g9eFP.js +0 -28
  396. package/dist/components/GrFormFile/chunks/GrFormFile-DfinD5Iv.js +0 -248
  397. package/dist/components/GrFormSection/chunks/GrFormSection-dKpQw-vh.js +0 -27
  398. package/dist/components/GrIcon/chunks/GrIcon-CXIHuG7L.js +0 -25
  399. package/dist/components/GrImageViewer/chunks/GrImageViewer-CQSNx-D7.js +0 -322
  400. package/dist/components/GrInput/chunks/GrInput-CLKX1inm.js +0 -158
  401. package/dist/components/GrInputTag/chunks/GrInputTag-BAtLody2.js +0 -214
  402. package/dist/components/GrLink/chunks/GrLink-BpXnly-Y.js +0 -59
  403. package/dist/components/GrList/chunks/GrList-BrFc7VdS.js +0 -55
  404. package/dist/components/GrLoading/chunks/GrLoading-dFuoryMY.js +0 -53
  405. package/dist/components/GrModal/chunks/GrModal-uaWXH08K.js +0 -136
  406. package/dist/components/GrNavbar/chunks/GrNavbar-KzLHgdjX.js +0 -62
  407. package/dist/components/GrNumberInput/chunks/GrNumberInput-rENn1802.js +0 -315
  408. package/dist/components/GrPagination/chunks/GrPagination-DP0x3rx6.js +0 -93
  409. package/dist/components/GrProgressBar/chunks/GrProgressBar-DpW93sOi.js +0 -29
  410. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-ASfBwyzQ.js +0 -158
  411. package/dist/components/GrRadio/chunks/GrRadio-8BOo97XV.js +0 -147
  412. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BymbUmqI.js +0 -66
  413. package/dist/components/GrSegmented/chunks/GrSegmented-CK5C_lN7.js +0 -250
  414. package/dist/components/GrSelect/chunks/GrSelect-BMfc1-vs.js +0 -314
  415. package/dist/components/GrSidebar/chunks/GrSidebar-C4SXXhfO.js +0 -29
  416. package/dist/components/GrSkeleton/chunks/GrSkeleton-QlieOdpY.js +0 -25
  417. package/dist/components/GrSwitch/chunks/GrSwitch-Cefiutzu.js +0 -64
  418. package/dist/components/GrTable/chunks/GrTable-k_FUiJQk.js +0 -44
  419. package/dist/components/GrTabs/chunks/GrTabs-B46P-lUc.js +0 -98
  420. package/dist/components/GrTextarea/chunks/GrTextarea-BX7L1MJk.js +0 -57
  421. package/dist/components/GrToaster/chunks/GrToaster-C4l_BjOh.js +0 -139
  422. package/dist/components/GrTooltip/chunks/GrTooltip-BqRAzuLT.js +0 -37
  423. package/dist/components/GrTree/chunks/GrTree-C2CXR_vW.js +0 -614
  424. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DAAay-QB.js +0 -353
package/dist/index.js CHANGED
@@ -1,115 +1,115 @@
1
- import { t as e } from "./components/GrAlert/chunks/GrAlert-DLHkusb-.js";
2
- import { t } from "./chunks/config-aJ7sb62Y.js";
3
- import { n, t as r } from "./chunks/config-D8hKc39m.js";
4
- import { t as i } from "./components/GrAvatar/chunks/GrAvatar-BFYH3HJw.js";
5
- import { t as a } from "./components/GrBadge/chunks/GrBadge-D_AoqGrn.js";
6
- import { n as o, t as s } from "./chunks/config-EdWeK_ge.js";
1
+ import { t as GrAlert_default } from "./components/GrAlert/chunks/GrAlert-BjerGcU8.js";
2
+ import { t as grAlertConfig } from "./chunks/config-C6SBJxcH.js";
3
+ import { n as grAvatarSafelist, t as grAvatarConfig } from "./chunks/config-CU_CBd0k.js";
4
+ import { t as GrAvatar_default } from "./components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js";
5
+ import { t as GrBadge_default } from "./components/GrBadge/chunks/GrBadge-wuIb4_2K.js";
6
+ import { n as grBadgeSafelist, t as grBadgeConfig } from "./chunks/config-BaMO9dQh.js";
7
7
  import "./components/GrBadge/index.js";
8
- import { t as c } from "./components/GrBadgeWrap/chunks/GrBadgeWrap-C_N0QJfA.js";
9
- import { t as l } from "./chunks/config-D9MxGwCJ.js";
10
- import { t as u } from "./components/GrBottomNav/chunks/GrBottomNav-Chpu3SVd.js";
11
- import { t as d } from "./chunks/config-CDyD_fCt.js";
12
- import { r as f } from "./chunks/grButtonStyles-C5k0bN2e.js";
13
- import { t as p } from "./components/GrButton/chunks/GrButton-BXVVt6Od.js";
14
- import { n as m, t as h } from "./chunks/safelist-CLcTRYB-.js";
15
- import { t as g } from "./chunks/config-BVXycfiO.js";
16
- import { t as _ } from "./components/GrButtonGroup/chunks/GrButtonGroup-CmnYHVH7.js";
17
- import { t as v } from "./chunks/config-D8CIEWcb.js";
8
+ import { t as GrBadgeWrap_default } from "./components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js";
9
+ import { t as grBadgeWrapConfig } from "./chunks/config-DW_RqmUp.js";
10
+ import { t as GrBottomNav_default } from "./components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js";
11
+ import { t as grBottomNavConfig } from "./chunks/config-BKRmlivc.js";
12
+ import { r as grButtonClass } from "./chunks/grButtonStyles-BxZW2x0-.js";
13
+ import { t as GrButton_default } from "./components/GrButton/chunks/GrButton-BmGdp8-4.js";
14
+ import { n as grButtonSafelist, t as grButtonClassTokens } from "./chunks/safelist-BY7z8fOl.js";
15
+ import { t as grButtonConfig } from "./chunks/config-Dkq0HeLe.js";
16
+ import { t as GrButtonGroup_default } from "./components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js";
17
+ import { t as grButtonGroupConfig } from "./chunks/config-Bv2G0OU6.js";
18
18
  import "./components/GrButtonGroup/index.js";
19
- import { t as y } from "./components/GrCard/chunks/GrCard-DEpN6Ptf.js";
20
- import { t as b } from "./chunks/config-BQREEXFD.js";
21
- import { t as x } from "./components/GrCheckbox/chunks/GrCheckbox-DF3vJApB.js";
22
- import { t as S } from "./chunks/config-DTegOmx2.js";
23
- import { n as C, r as w, t as T } from "./components/GrCollapse/chunks/GrCollapse-D7QYRqNa.js";
24
- import { t as E } from "./components/GrIcon/chunks/GrIcon-CXIHuG7L.js";
25
- import { t as D } from "./chunks/config-CVy124Xj.js";
26
- import { t as O } from "./chunks/config-CS7E7LME.js";
27
- import { t as k } from "./chunks/grModalStyles-Dmd4havY.js";
28
- import { t as A } from "./components/GrModal/chunks/GrModal-uaWXH08K.js";
29
- import { a as j, i as M, n as N, r as P, t as F } from "./chunks/dialogShared-CONROtU2.js";
30
- import { i as I, n as L, r as R, t as z } from "./components/GrDialog/chunks/GrDialog-BSd4-uP5.js";
31
- import { t as B } from "./components/GrConfirmDialog/chunks/GrConfirmDialog-C7Eh8-Vn.js";
32
- import { t as V } from "./chunks/config-C4_REX-3.js";
33
- import { t as H } from "./components/GrTable/chunks/GrTable-k_FUiJQk.js";
34
- import { t as U } from "./components/GrDataTable/chunks/GrDataTable-Dxsg1NMP.js";
35
- import { t as W } from "./chunks/config-CiVXZxyQ.js";
36
- import { t as G } from "./chunks/safelist-Bq32hAXc.js";
19
+ import { t as GrCard_default } from "./components/GrCard/chunks/GrCard-xtDcXBr7.js";
20
+ import { t as grCardConfig } from "./chunks/config-rQlbnEKn.js";
21
+ import { t as GrCheckbox_default } from "./components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js";
22
+ import { t as grCheckboxConfig } from "./chunks/config-TyzU6gLf.js";
23
+ import { n as GrCollapse_default, r as GR_COLLAPSE_CONTEXT, t as GrCollapseItem_default } from "./components/GrCollapse/chunks/GrCollapse-HU20VTVn.js";
24
+ import { t as GrIcon_default } from "./components/GrIcon/chunks/GrIcon-BV7RBU_0.js";
25
+ import { t as grIconConfig } from "./chunks/config-2wgwWaAB.js";
26
+ import { t as grCollapseConfig } from "./chunks/config-BzZGpWsj.js";
27
+ import { t as getGrModalPanelClass } from "./chunks/grModalStyles-Dv2NXBKi.js";
28
+ import { t as GrModal_default } from "./components/GrModal/chunks/GrModal-gvfvlp7k.js";
29
+ import { a as resolveGrDialogTitle, i as resolveGrDialogSectionConfig, n as DEFAULT_GR_DIALOG_FOOTER_CONFIG, r as DEFAULT_GR_DIALOG_HEADER_CONFIG, t as DEFAULT_GR_DIALOG_BODY_CONFIG } from "./chunks/dialogShared-BtXUk6Zc.js";
30
+ import { i as GrDialogFooter_default, n as GrDialogHeader_default, r as GrDialogCloseButton_default, t as GrDialog_default } from "./components/GrDialog/chunks/GrDialog-gObmaVEl.js";
31
+ import { t as GrConfirmDialog_default } from "./components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js";
32
+ import { t as grConfirmDialogConfig } from "./chunks/config-DFRYOcrP.js";
33
+ import { t as GrTable_default } from "./components/GrTable/chunks/GrTable-CyQ9uw8A.js";
34
+ import { t as GrDataTable_default } from "./components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js";
35
+ import { t as grDataTableConfig } from "./chunks/config-CMZE2fu0.js";
36
+ import { t as grDialogSafelist } from "./chunks/safelist-BF822K15.js";
37
37
  import "./components/GrDialog/index.js";
38
- import { n as K, t as q } from "./chunks/config-BUZtbeTr.js";
39
- import { t as J } from "./components/GrDrawer/chunks/GrDrawer-DBBSwe1s.js";
40
- import { a as Y, i as X, n as Z, o as Q, r as $, s as ee, t as te } from "./chunks/directives-Dr5NPOT8.js";
41
- import { a as ne, c as re, i as ie, l as ae, n as oe, o as se, r as ce, s as le, t as ue, u as de } from "./chunks/fileValidation-LFD-vwil.js";
42
- import { t as fe } from "./components/GrLoading/chunks/GrLoading-dFuoryMY.js";
43
- import { t as pe } from "./components/GrDropdown/chunks/GrDropdown-BELyRP4A.js";
44
- import { n as me, t as he } from "./chunks/config-BMYKG1oB.js";
38
+ import { n as grDrawerSafelist, t as grDrawerConfig } from "./chunks/config-DxqpV-KM.js";
39
+ import { t as GrDrawer_default } from "./components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js";
40
+ import { a as vClickOutside, i as vDropzone, n as vLoading, o as vAutosize, r as vHotkey, s as vAutofocus, t as createLoading } from "./chunks/directives-Cuib0yOO.js";
41
+ import { a as allowedExtensionsValidator, c as normalizeFiles, i as allowedMimeTypesValidator, l as runFileValidators, n as maxSizeMbValidator, o as acceptValidator, r as maxFileSizeBytesValidator, s as matchAccept, t as maxTotalSizeBytesValidator, u as FileValidationError } from "./chunks/fileValidation-CgjTGoUx.js";
42
+ import { t as GrLoading_default } from "./components/GrLoading/chunks/GrLoading-DihGX3ol.js";
43
+ import { t as GrDropdown_default } from "./components/GrDropdown/chunks/GrDropdown-DVTU32T_.js";
44
+ import { n as grDropdownSafelist, t as grDropdownConfig } from "./chunks/config-BcFOkUhh.js";
45
45
  import "./components/GrDropdown/index.js";
46
- import { a as ge, c as _e, i as ve, n as ye, o as be, r as xe, s as Se, t as Ce } from "./components/GrDropdownMenu/chunks/GrDropdownMenu-B8fuk7iP.js";
47
- import { t as we } from "./chunks/config-CBFllZZ4.js";
48
- import { t as Te } from "./components/GrEmptyState/chunks/GrEmptyState-BPGoafJI.js";
49
- import { t as Ee } from "./chunks/config-SLwkDc4Q2.js";
50
- import { t as De } from "./components/GrFileUpload/chunks/GrFileUpload-BPzx3LEM.js";
51
- import { t as Oe } from "./chunks/config-vKeQ035f.js";
52
- import { t as ke } from "./components/GrFormField/chunks/GrFormField-Cn8g9eFP.js";
53
- import { t as Ae } from "./chunks/config-CMz46RPG.js";
46
+ import { a as GrDropdownMenuColumns_default, c as GrDropdownMenuList_default, i as GrDropdownMenuDivider_default, n as GrDropdownMenuGroup_default, o as GrDropdownMenuColumn_default, r as GrDropdownMenuHeader_default, s as GrDropdownMenu_default, t as GrDropdownMenuItem_default } from "./components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js";
47
+ import { t as grDropdownMenuConfig } from "./chunks/config-BbtK511H.js";
48
+ import { t as GrEmptyState_default } from "./components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js";
49
+ import { t as grEmptyStateConfig } from "./chunks/config-CdAx6ify2.js";
50
+ import { t as GrFileUpload_default } from "./components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js";
51
+ import { t as grFileUploadConfig } from "./chunks/config-BzQ4S4Hb.js";
52
+ import { t as GrFormField_default } from "./components/GrFormField/chunks/GrFormField-BzezYcS8.js";
53
+ import { t as grFormFieldConfig } from "./chunks/config-BRU5PR8_.js";
54
54
  import "./components/GrFormField/index.js";
55
- import { t as je } from "./components/GrFormFile/chunks/GrFormFile-DfinD5Iv.js";
56
- import { t as Me } from "./chunks/config-DK9C8O7L.js";
57
- import { t as Ne } from "./components/GrFormSection/chunks/GrFormSection-dKpQw-vh.js";
58
- import { t as Pe } from "./chunks/config-BmYFupZh.js";
59
- import { t as Fe } from "./components/GrImageViewer/chunks/GrImageViewer-CQSNx-D7.js";
60
- import { t as Ie } from "./chunks/config-FGAkxHFh.js";
61
- import { t as Le } from "./components/GrInput/chunks/GrInput-CLKX1inm.js";
62
- import { n as Re, t as ze } from "./chunks/config-C1Sn7mn-.js";
55
+ import { t as GrFormFile_default } from "./components/GrFormFile/chunks/GrFormFile-DtZOypJW.js";
56
+ import { t as grFormFileConfig } from "./chunks/config-rFwazRKi.js";
57
+ import { t as GrFormSection_default } from "./components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js";
58
+ import { t as grFormSectionConfig } from "./chunks/config-dD6Po-Cq.js";
59
+ import { t as GrImageViewer_default } from "./components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js";
60
+ import { t as grImageViewerConfig } from "./chunks/config-DBYCntwl.js";
61
+ import { t as GrInput_default } from "./components/GrInput/chunks/GrInput-DLLRrH1A.js";
62
+ import { n as grInputSafelist, t as grInputConfig } from "./chunks/config-cn6knwud.js";
63
63
  import "./components/GrInput/index.js";
64
- import { n as Be, t as Ve } from "./chunks/config-BhbfV-Is.js";
65
- import { t as He } from "./components/GrInputTag/chunks/GrInputTag-BAtLody2.js";
66
- import { n as Ue, t as We } from "./chunks/config-CcixQGaN.js";
67
- import { t as Ge } from "./components/GrLink/chunks/GrLink-BpXnly-Y.js";
68
- import { n as Ke, t as qe } from "./components/GrList/chunks/GrList-BrFc7VdS.js";
69
- import { t as Je } from "./chunks/config-B5JCvHys.js";
70
- import { n as Ye, t as Xe } from "./chunks/config-BZW-RL6E.js";
64
+ import { n as grInputTagSafelist, t as grInputTagConfig } from "./chunks/config-CJbjLC5X.js";
65
+ import { t as GrInputTag_default } from "./components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js";
66
+ import { n as grLinkSafelist, t as grLinkConfig } from "./chunks/config-C2JKq8-2.js";
67
+ import { t as GrLink_default } from "./components/GrLink/chunks/GrLink-Dhkid3Mp.js";
68
+ import { n as GrList_default, t as GrListItem_default } from "./components/GrList/chunks/GrList-CjgeVjhY.js";
69
+ import { t as grListConfig } from "./chunks/config-BhubOeci.js";
70
+ import { n as grLoadingSafelist, t as grLoadingConfig } from "./chunks/config-CcmeMlic.js";
71
71
  import "./components/GrLoading/index.js";
72
- import { n as Ze, r as Qe, t as $e } from "./chunks/config-DtNe7EIX.js";
72
+ import { n as grModalClassTokens, r as grModalSafelist, t as grModalConfig } from "./chunks/config-Bv5Dok4j.js";
73
73
  import "./components/GrModal/index.js";
74
- import { t as et } from "./components/GrNavbar/chunks/GrNavbar-KzLHgdjX.js";
75
- import { t as tt } from "./chunks/config-R6F6zRJk.js";
76
- import { n as nt, t as rt } from "./chunks/config-M76gNxd2.js";
77
- import { t as it } from "./components/GrNumberInput/chunks/GrNumberInput-rENn1802.js";
78
- import { t as at } from "./components/GrSelect/chunks/GrSelect-BMfc1-vs.js";
79
- import { t as ot } from "./components/GrPagination/chunks/GrPagination-DP0x3rx6.js";
80
- import { t as st } from "./chunks/config-im2VHeSM.js";
81
- import { n as ct, t as lt } from "./chunks/config-BG5_FuZ-.js";
82
- import { t as ut } from "./components/GrProgressBar/chunks/GrProgressBar-DpW93sOi.js";
83
- import { t as dt } from "./components/GrPromptDialog/chunks/GrPromptDialog-ASfBwyzQ.js";
84
- import { t as ft } from "./chunks/config-vMcxHlWi.js";
85
- import { n as pt, t as mt } from "./chunks/config-DYI8XADo.js";
86
- import { n as ht, t as gt } from "./components/GrRadio/chunks/GrRadio-8BOo97XV.js";
87
- import { t as _t } from "./components/GrRadioGroup/chunks/GrRadioGroup-BymbUmqI.js";
88
- import { t as vt } from "./chunks/config-Cq6ufYtp.js";
89
- import { n as yt, t as bt } from "./chunks/config-CJeG727i.js";
90
- import { t as xt } from "./components/GrSegmented/chunks/GrSegmented-CK5C_lN7.js";
91
- import { n as St, t as Ct } from "./chunks/config-CLawBqde.js";
74
+ import { t as GrNavbar_default } from "./components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js";
75
+ import { t as grNavbarConfig } from "./chunks/config-DlLE49_I.js";
76
+ import { n as grNumberInputSafelist, t as grNumberInputConfig } from "./chunks/config-DvTUDLT1.js";
77
+ import { t as GrNumberInput_default } from "./components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js";
78
+ import { t as GrSelect_default } from "./components/GrSelect/chunks/GrSelect-aVqUL-1F.js";
79
+ import { t as GrPagination_default } from "./components/GrPagination/chunks/GrPagination-C5cxRJsF.js";
80
+ import { t as grPaginationConfig } from "./chunks/config-D7iuXJbl.js";
81
+ import { n as grProgressBarSafelist, t as grProgressBarConfig } from "./chunks/config-CJeyaUTp.js";
82
+ import { t as GrProgressBar_default } from "./components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js";
83
+ import { t as GrPromptDialog_default } from "./components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js";
84
+ import { t as grPromptDialogConfig } from "./chunks/config-BUGfFjmC.js";
85
+ import { n as grRadioSafelist, t as grRadioConfig } from "./chunks/config-BXffa3ta.js";
86
+ import { n as GR_RADIO_GROUP_CONTEXT, t as GrRadio_default } from "./components/GrRadio/chunks/GrRadio-B_t_ZNVl.js";
87
+ import { t as GrRadioGroup_default } from "./components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js";
88
+ import { t as grRadioGroupConfig } from "./chunks/config-D7tRu8u3.js";
89
+ import { n as grSegmentedSafelist, t as grSegmentedConfig } from "./chunks/config-BhvNm4Pp.js";
90
+ import { t as GrSegmented_default } from "./components/GrSegmented/chunks/GrSegmented-BPl1koHc.js";
91
+ import { n as grSelectSafelist, t as grSelectConfig } from "./chunks/config-CYPU3ztl.js";
92
92
  import "./components/GrSelect/index.js";
93
- import { t as wt } from "./components/GrSidebar/chunks/GrSidebar-C4SXXhfO.js";
94
- import { t as Tt } from "./chunks/config-DlidGf7P.js";
95
- import { t as Et } from "./components/GrSkeleton/chunks/GrSkeleton-QlieOdpY.js";
96
- import { t as Dt } from "./chunks/config-dSI8RttH2.js";
97
- import { n as Ot, t as kt } from "./chunks/config-QsovJrku2.js";
98
- import { t as At } from "./components/GrSwitch/chunks/GrSwitch-Cefiutzu.js";
99
- import { t as jt } from "./chunks/config-b9nc87Oc.js";
93
+ import { t as GrSidebar_default } from "./components/GrSidebar/chunks/GrSidebar-DVucgcfV.js";
94
+ import { t as grSidebarConfig } from "./chunks/config-BcpRsZTe.js";
95
+ import { t as GrSkeleton_default } from "./components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js";
96
+ import { t as grSkeletonConfig } from "./chunks/config-KGTIAFD92.js";
97
+ import { n as grSwitchSafelist, t as grSwitchConfig } from "./chunks/config-rxFL-6yF2.js";
98
+ import { t as GrSwitch_default } from "./components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js";
99
+ import { t as grTableConfig } from "./chunks/config-D1gSaT52.js";
100
100
  import "./components/GrTable/index.js";
101
- import { t as Mt } from "./components/GrTabs/chunks/GrTabs-B46P-lUc.js";
102
- import { t as Nt } from "./chunks/config-CO-7HRZd2.js";
103
- import { n as Pt, t as Ft } from "./chunks/config-BsZc_QQ-2.js";
104
- import { t as It } from "./components/GrTextarea/chunks/GrTextarea-BX7L1MJk.js";
105
- import { useToast as Lt } from "./composables/useToast.js";
106
- import { n as Rt, t as zt } from "./chunks/config-DBXTZE36.js";
107
- import { t as Bt } from "./components/GrToaster/chunks/GrToaster-C4l_BjOh.js";
108
- import { t as Vt } from "./components/GrTooltip/chunks/GrTooltip-BqRAzuLT.js";
109
- import { t as Ht } from "./chunks/config-BDXa5Sna2.js";
110
- import { t as Ut } from "./components/GrTree/chunks/GrTree-C2CXR_vW.js";
111
- import { n as Wt, t as Gt } from "./chunks/config-CoMQmunP.js";
112
- import { n as Kt, t as qt } from "./chunks/config-NuqoO_Of.js";
113
- import { t as Jt } from "./components/GrTreeSelect/chunks/GrTreeSelect-DAAay-QB.js";
114
- import { initThemeEarly as Yt, useTheme as Xt } from "./composables/useTheme.js";
115
- export { F as DEFAULT_GR_DIALOG_BODY_CONFIG, N as DEFAULT_GR_DIALOG_FOOTER_CONFIG, P as DEFAULT_GR_DIALOG_HEADER_CONFIG, de as FileValidationError, w as GR_COLLAPSE_CONTEXT, ht as GR_RADIO_GROUP_CONTEXT, e as GrAlert, i as GrAvatar, a as GrBadge, c as GrBadgeWrap, u as GrBottomNav, p as GrButton, _ as GrButtonGroup, y as GrCard, x as GrCheckbox, C as GrCollapse, T as GrCollapseItem, B as GrConfirmDialog, U as GrDataTable, z as GrDialog, R as GrDialogCloseButton, I as GrDialogFooter, L as GrDialogHeader, J as GrDrawer, pe as GrDropdown, Se as GrDropdownMenu, be as GrDropdownMenuColumn, ge as GrDropdownMenuColumns, ve as GrDropdownMenuDivider, ye as GrDropdownMenuGroup, xe as GrDropdownMenuHeader, Ce as GrDropdownMenuItem, _e as GrDropdownMenuList, Te as GrEmptyState, De as GrFileUpload, ke as GrFormField, je as GrFormFile, Ne as GrFormSection, E as GrIcon, Fe as GrImageViewer, Le as GrInput, He as GrInputTag, Ge as GrLink, Ke as GrList, qe as GrListItem, fe as GrLoading, A as GrModal, et as GrNavbar, it as GrNumberInput, ot as GrPagination, ut as GrProgressBar, dt as GrPromptDialog, gt as GrRadio, _t as GrRadioGroup, xt as GrSegmented, at as GrSelect, wt as GrSidebar, Et as GrSkeleton, At as GrSwitch, H as GrTable, Mt as GrTabs, It as GrTextarea, Bt as GrToaster, Vt as GrTooltip, Ut as GrTree, Jt as GrTreeSelect, se as acceptValidator, ne as allowedExtensionsValidator, ie as allowedMimeTypesValidator, te as createLoading, k as getGrModalPanelClass, t as grAlertConfig, r as grAvatarConfig, n as grAvatarSafelist, s as grBadgeConfig, o as grBadgeSafelist, l as grBadgeWrapConfig, d as grBottomNavConfig, f as grButtonClass, h as grButtonClassTokens, g as grButtonConfig, v as grButtonGroupConfig, m as grButtonSafelist, b as grCardConfig, S as grCheckboxConfig, O as grCollapseConfig, V as grConfirmDialogConfig, W as grDataTableConfig, G as grDialogSafelist, q as grDrawerConfig, K as grDrawerSafelist, he as grDropdownConfig, we as grDropdownMenuConfig, me as grDropdownSafelist, Ee as grEmptyStateConfig, Oe as grFileUploadConfig, Ae as grFormFieldConfig, Me as grFormFileConfig, Pe as grFormSectionConfig, D as grIconConfig, Ie as grImageViewerConfig, ze as grInputConfig, Re as grInputSafelist, Ve as grInputTagConfig, Be as grInputTagSafelist, We as grLinkConfig, Ue as grLinkSafelist, Je as grListConfig, Xe as grLoadingConfig, Ye as grLoadingSafelist, Ze as grModalClassTokens, $e as grModalConfig, Qe as grModalSafelist, tt as grNavbarConfig, rt as grNumberInputConfig, nt as grNumberInputSafelist, st as grPaginationConfig, lt as grProgressBarConfig, ct as grProgressBarSafelist, ft as grPromptDialogConfig, mt as grRadioConfig, vt as grRadioGroupConfig, pt as grRadioSafelist, bt as grSegmentedConfig, yt as grSegmentedSafelist, Ct as grSelectConfig, St as grSelectSafelist, Tt as grSidebarConfig, Dt as grSkeletonConfig, kt as grSwitchConfig, Ot as grSwitchSafelist, jt as grTableConfig, Nt as grTabsConfig, Ft as grTextareaConfig, Pt as grTextareaSafelist, zt as grToasterConfig, Rt as grToasterSafelist, Ht as grTooltipConfig, Gt as grTreeConfig, Wt as grTreeSafelist, qt as grTreeSelectConfig, Kt as grTreeSelectSafelist, Yt as initThemeEarly, le as matchAccept, ce as maxFileSizeBytesValidator, oe as maxSizeMbValidator, ue as maxTotalSizeBytesValidator, re as normalizeFiles, M as resolveGrDialogSectionConfig, j as resolveGrDialogTitle, ae as runFileValidators, Xt as useTheme, Lt as useToast, ee as vAutofocus, Q as vAutosize, Y as vClickOutside, X as vDropzone, $ as vHotkey, Z as vLoading };
101
+ import { t as GrTabs_default } from "./components/GrTabs/chunks/GrTabs-CiGmcmvm.js";
102
+ import { t as grTabsConfig } from "./chunks/config-DwB5-qdP2.js";
103
+ import { n as grTextareaSafelist, t as grTextareaConfig } from "./chunks/config-DxqMXzNV2.js";
104
+ import { t as GrTextarea_default } from "./components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js";
105
+ import { useToast } from "./composables/useToast.js";
106
+ import { n as grToasterSafelist, t as grToasterConfig } from "./chunks/config-CxCAfXZ1.js";
107
+ import { t as GrToaster_default } from "./components/GrToaster/chunks/GrToaster-I1e-zCpf.js";
108
+ import { t as GrTooltip_default } from "./components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js";
109
+ import { t as grTooltipConfig } from "./chunks/config-Dzz9P-GV2.js";
110
+ import { t as GrTree_default } from "./components/GrTree/chunks/GrTree-Dlev9oBd.js";
111
+ import { n as grTreeSafelist, t as grTreeConfig } from "./chunks/config-ug8O8epd.js";
112
+ import { n as grTreeSelectSafelist, t as grTreeSelectConfig } from "./chunks/config-C0b_3LJV.js";
113
+ import { t as GrTreeSelect_default } from "./components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js";
114
+ import { initThemeEarly, useTheme } from "./composables/useTheme.js";
115
+ export { DEFAULT_GR_DIALOG_BODY_CONFIG, DEFAULT_GR_DIALOG_FOOTER_CONFIG, DEFAULT_GR_DIALOG_HEADER_CONFIG, FileValidationError, GR_COLLAPSE_CONTEXT, GR_RADIO_GROUP_CONTEXT, GrAlert_default as GrAlert, GrAvatar_default as GrAvatar, GrBadge_default as GrBadge, GrBadgeWrap_default as GrBadgeWrap, GrBottomNav_default as GrBottomNav, GrButton_default as GrButton, GrButtonGroup_default as GrButtonGroup, GrCard_default as GrCard, GrCheckbox_default as GrCheckbox, GrCollapse_default as GrCollapse, GrCollapseItem_default as GrCollapseItem, GrConfirmDialog_default as GrConfirmDialog, GrDataTable_default as GrDataTable, GrDialog_default as GrDialog, GrDialogCloseButton_default as GrDialogCloseButton, GrDialogFooter_default as GrDialogFooter, GrDialogHeader_default as GrDialogHeader, GrDrawer_default as GrDrawer, GrDropdown_default as GrDropdown, GrDropdownMenu_default as GrDropdownMenu, GrDropdownMenuColumn_default as GrDropdownMenuColumn, GrDropdownMenuColumns_default as GrDropdownMenuColumns, GrDropdownMenuDivider_default as GrDropdownMenuDivider, GrDropdownMenuGroup_default as GrDropdownMenuGroup, GrDropdownMenuHeader_default as GrDropdownMenuHeader, GrDropdownMenuItem_default as GrDropdownMenuItem, GrDropdownMenuList_default as GrDropdownMenuList, GrEmptyState_default as GrEmptyState, GrFileUpload_default as GrFileUpload, GrFormField_default as GrFormField, GrFormFile_default as GrFormFile, GrFormSection_default as GrFormSection, GrIcon_default as GrIcon, GrImageViewer_default as GrImageViewer, GrInput_default as GrInput, GrInputTag_default as GrInputTag, GrLink_default as GrLink, GrList_default as GrList, GrListItem_default as GrListItem, GrLoading_default as GrLoading, GrModal_default as GrModal, GrNavbar_default as GrNavbar, GrNumberInput_default as GrNumberInput, GrPagination_default as GrPagination, GrProgressBar_default as GrProgressBar, GrPromptDialog_default as GrPromptDialog, GrRadio_default as GrRadio, GrRadioGroup_default as GrRadioGroup, GrSegmented_default as GrSegmented, GrSelect_default as GrSelect, GrSidebar_default as GrSidebar, GrSkeleton_default as GrSkeleton, GrSwitch_default as GrSwitch, GrTable_default as GrTable, GrTabs_default as GrTabs, GrTextarea_default as GrTextarea, GrToaster_default as GrToaster, GrTooltip_default as GrTooltip, GrTree_default as GrTree, GrTreeSelect_default as GrTreeSelect, acceptValidator, allowedExtensionsValidator, allowedMimeTypesValidator, createLoading, getGrModalPanelClass, grAlertConfig, grAvatarConfig, grAvatarSafelist, grBadgeConfig, grBadgeSafelist, grBadgeWrapConfig, grBottomNavConfig, grButtonClass, grButtonClassTokens, grButtonConfig, grButtonGroupConfig, grButtonSafelist, grCardConfig, grCheckboxConfig, grCollapseConfig, grConfirmDialogConfig, grDataTableConfig, grDialogSafelist, grDrawerConfig, grDrawerSafelist, grDropdownConfig, grDropdownMenuConfig, grDropdownSafelist, grEmptyStateConfig, grFileUploadConfig, grFormFieldConfig, grFormFileConfig, grFormSectionConfig, grIconConfig, grImageViewerConfig, grInputConfig, grInputSafelist, grInputTagConfig, grInputTagSafelist, grLinkConfig, grLinkSafelist, grListConfig, grLoadingConfig, grLoadingSafelist, grModalClassTokens, grModalConfig, grModalSafelist, grNavbarConfig, grNumberInputConfig, grNumberInputSafelist, grPaginationConfig, grProgressBarConfig, grProgressBarSafelist, grPromptDialogConfig, grRadioConfig, grRadioGroupConfig, grRadioSafelist, grSegmentedConfig, grSegmentedSafelist, grSelectConfig, grSelectSafelist, grSidebarConfig, grSkeletonConfig, grSwitchConfig, grSwitchSafelist, grTableConfig, grTabsConfig, grTextareaConfig, grTextareaSafelist, grToasterConfig, grToasterSafelist, grTooltipConfig, grTreeConfig, grTreeSafelist, grTreeSelectConfig, grTreeSelectSafelist, initThemeEarly, matchAccept, maxFileSizeBytesValidator, maxSizeMbValidator, maxTotalSizeBytesValidator, normalizeFiles, resolveGrDialogSectionConfig, resolveGrDialogTitle, runFileValidators, useTheme, useToast, vAutofocus, vAutosize, vClickOutside, vDropzone, vHotkey, vLoading };
package/dist/vue/index.js CHANGED
@@ -1,47 +1,87 @@
1
1
  //#region src/vue/plugin.ts
2
- function e(e, t) {
3
- return { install(n) {
4
- n.component(t, e);
2
+ /**
3
+ * Вспомогательная обёртка: превращает произвольный компонент в `GranularityInstallableComponent`
4
+ * с явным именем регистрации.
5
+ *
6
+ * ```ts
7
+ * import { GrButton } from '@feugene/granularity/components/GrButton'
8
+ * import { defineInstallable } from '@feugene/granularity/vue'
9
+ *
10
+ * const installable = defineInstallable(GrButton, 'GrButton')
11
+ * ```
12
+ */
13
+ function defineInstallable(component, name) {
14
+ return { install(app) {
15
+ app.component(name, component);
5
16
  } };
6
17
  }
7
- function t(e, t) {
8
- if (typeof t.install == "function") {
9
- t.install(e);
18
+ function installComponent(app, c) {
19
+ if (typeof c.install === "function") {
20
+ c.install(app);
10
21
  return;
11
22
  }
12
- if (typeof t.name == "string" && t.component && (typeof t.component == "object" || typeof t.component == "function")) {
13
- let { name: n, component: r } = t;
14
- e.component(n, r);
23
+ if (typeof c.name === "string" && c.component && (typeof c.component === "object" || typeof c.component === "function")) {
24
+ const { name, component } = c;
25
+ app.component(name, component);
15
26
  return;
16
27
  }
17
- let n = t.name ?? t.__name;
18
- if (n) {
19
- e.component(n, t);
28
+ const resolvedName = c.name ?? c.__name;
29
+ if (resolvedName) {
30
+ app.component(resolvedName, c);
20
31
  return;
21
32
  }
22
33
  console.warn("[granularity] component passed to createGranularity has no `install`, `name`, or `__name` — skipped.");
23
34
  }
24
- function n(e, t) {
25
- if ("install" in t && typeof t.install == "function") {
26
- t.install(e);
35
+ function installDirective(app, d) {
36
+ if ("install" in d && typeof d.install === "function") {
37
+ d.install(app);
27
38
  return;
28
39
  }
29
- if ("name" in t && "directive" in t) {
30
- e.directive(t.name, t.directive);
40
+ if ("name" in d && "directive" in d) {
41
+ app.directive(d.name, d.directive);
31
42
  return;
32
43
  }
33
44
  console.warn("[granularity] directive passed to createGranularity has no `install` or `{ name, directive }` — skipped.");
34
45
  }
35
- function r(e, r = {}) {
36
- for (let n of r.components ?? []) t(e, n);
37
- for (let t of r.directives ?? []) n(e, t);
38
- for (let { key: t, value: n } of r.provides ?? []) e.provide(t, n);
39
- if (r.globalProperties) for (let [t, n] of Object.entries(r.globalProperties)) e.config.globalProperties[t] = n;
46
+ /**
47
+ * Применяет опции к переданному приложению. Экспортируется отдельно от фабрики —
48
+ * удобно, когда плагин не нужен (например, в тестах).
49
+ */
50
+ function installGranularity(app, options = {}) {
51
+ for (const c of options.components ?? []) installComponent(app, c);
52
+ for (const d of options.directives ?? []) installDirective(app, d);
53
+ for (const { key, value } of options.provides ?? []) app.provide(key, value);
54
+ if (options.globalProperties) for (const [key, value] of Object.entries(options.globalProperties)) app.config.globalProperties[key] = value;
40
55
  }
41
- function i(e = {}) {
42
- return { install(t) {
43
- r(t, e);
56
+ /**
57
+ * Создаёт Vue-плагин `{ install }`, который при `app.use(...)` зарегистрирует переданные
58
+ * компоненты, директивы и provide-значения. Сам модуль НЕ импортирует ни компонентов,
59
+ * ни директив из пакета — всё приходит снаружи. Это сохраняет гранулярность:
60
+ * бандлер увидит только те символы, которые вы реально передали.
61
+ *
62
+ * ```ts
63
+ * import { createApp } from 'vue'
64
+ * import { createGranularity } from '@feugene/granularity/vue'
65
+ * import { GrButton } from '@feugene/granularity/components/GrButton'
66
+ * import { GrInput } from '@feugene/granularity/components/GrInput'
67
+ * import { vHotkey } from '@feugene/granularity/directives/hotkey'
68
+ *
69
+ * createApp(App)
70
+ * .use(createGranularity({
71
+ * // Достаточно передать сами компоненты — имя будет взято из `__name` (Vue SFC)
72
+ * // или из `name`; можно также указать явно через `{ name, component }`.
73
+ * components: [GrButton, GrInput],
74
+ * directives: [{ name: 'hotkey', directive: vHotkey }],
75
+ * }))
76
+ * .mount('#app')
77
+ * ```
78
+ */
79
+ function createGranularity(options = {}) {
80
+ return { install(app) {
81
+ installGranularity(app, options);
44
82
  } };
45
83
  }
46
84
  //#endregion
47
- export { i as createGranularity, e as defineInstallable, r as installGranularity };
85
+ export { createGranularity, defineInstallable, installGranularity };
86
+
87
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/vue/plugin.ts"],"sourcesContent":["import type {App, Component, Directive, Plugin} from 'vue'\n\n/**\n * Лёгкий контейнер, который может быть зарегистрирован в Vue:\n * - SFC-компонент (Vue сам компилирует `__name` из имени файла) — достаточно просто передать сам компонент,\n * - SFC-компонент с опциональным `install` (по аналогии с Element Plus / Naive UI),\n * - объект с собственным `install`,\n * - либо объект `{ name, component }`, если имя нужно задать явно.\n */\nexport type GranularityInstallableComponent =\n | (Component & { name?: string; __name?: string; install?: (app: App) => void })\n | { install: (app: App) => void }\n | { name: string; component: Component }\n\n/**\n * Директива — либо пара `{ name, directive }`, либо объект с `install`.\n */\nexport type GranularityInstallableDirective =\n | { name: string; directive: Directive }\n | { install: (app: App) => void }\n\nexport interface CreateGranularityOptions {\n /**\n * Список компонентов для глобальной регистрации.\n * Пакет сам по себе ничего не импортирует — пользователь передаёт сюда только те компоненты,\n * которые ему действительно нужны. За счёт этого tree-shaking остаётся полным.\n */\n components?: GranularityInstallableComponent[]\n /**\n * Список директив. Передавайте ровно те, что нужны, по аналогии с компонентами.\n */\n directives?: GranularityInstallableDirective[]\n /**\n * Произвольные `provide`-значения. Ключи могут быть `symbol` или строкой.\n * Пакет не навязывает конкретные ключи (например, i18n) — выбор за пользователем.\n */\n provides?: Array<{ key: string | symbol; value: unknown }>\n /**\n * Произвольные `app.config.globalProperties` — по умолчанию ничего не ставим.\n */\n globalProperties?: Record<string, unknown>\n}\n\n/**\n * Вспомогательная обёртка: превращает произвольный компонент в `GranularityInstallableComponent`\n * с явным именем регистрации.\n *\n * ```ts\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { defineInstallable } from '@feugene/granularity/vue'\n *\n * const installable = defineInstallable(GrButton, 'GrButton')\n * ```\n */\nexport function defineInstallable<T extends Component>(component: T, name: string): GranularityInstallableComponent {\n return {\n install(app: App) {\n app.component(name, component)\n },\n }\n}\n\nfunction installComponent(app: App, c: GranularityInstallableComponent): void {\n if (typeof (c as any).install === 'function') {\n ;(c as any).install(app)\n return\n }\n\n // Форма `{ name, component }` — явное указание имени для произвольного компонента.\n // Допускаем как object-компоненты (SFC / options), так и functional-компоненты.\n if (\n typeof (c as any).name === 'string'\n && (c as any).component\n && (typeof (c as any).component === 'object' || typeof (c as any).component === 'function')\n ) {\n const {name, component} = c as { name: string; component: Component }\n app.component(name, component)\n return\n }\n\n // SFC: Vue 3 компилирует имя компонента из имени файла в поле `__name`\n // (например, `GrButton.vue` → `__name: 'GrButton'`). Также поддерживаем явное `name`.\n const resolvedName\n = (c as Component & { name?: string }).name\n ?? (c as { __name?: string }).__name\n if (resolvedName) {\n app.component(resolvedName, c as Component)\n return\n }\n\n // Сознательно без throw — просто сообщаем в dev-режиме.\n \n console.warn('[granularity] component passed to createGranularity has no `install`, `name`, or `__name` — skipped.')\n}\n\nfunction installDirective(app: App, d: GranularityInstallableDirective): void {\n if ('install' in d && typeof d.install === 'function') {\n d.install(app)\n return\n }\n\n if ('name' in d && 'directive' in d) {\n app.directive(d.name, d.directive)\n return\n }\n\n // Сознательно без throw — согласовано с `installComponent`.\n \n console.warn('[granularity] directive passed to createGranularity has no `install` or `{ name, directive }` — skipped.')\n}\n\n/**\n * Применяет опции к переданному приложению. Экспортируется отдельно от фабрики —\n * удобно, когда плагин не нужен (например, в тестах).\n */\nexport function installGranularity(app: App, options: CreateGranularityOptions = {}): void {\n for (const c of options.components ?? [])\n installComponent(app, c)\n\n for (const d of options.directives ?? [])\n installDirective(app, d)\n\n for (const {key, value} of options.provides ?? [])\n app.provide(key as any, value)\n\n if (options.globalProperties) {\n for (const [key, value] of Object.entries(options.globalProperties))\n app.config.globalProperties[key] = value\n }\n}\n\n/**\n * Создаёт Vue-плагин `{ install }`, который при `app.use(...)` зарегистрирует переданные\n * компоненты, директивы и provide-значения. Сам модуль НЕ импортирует ни компонентов,\n * ни директив из пакета — всё приходит снаружи. Это сохраняет гранулярность:\n * бандлер увидит только те символы, которые вы реально передали.\n *\n * ```ts\n * import { createApp } from 'vue'\n * import { createGranularity } from '@feugene/granularity/vue'\n * import { GrButton } from '@feugene/granularity/components/GrButton'\n * import { GrInput } from '@feugene/granularity/components/GrInput'\n * import { vHotkey } from '@feugene/granularity/directives/hotkey'\n *\n * createApp(App)\n * .use(createGranularity({\n * // Достаточно передать сами компоненты — имя будет взято из `__name` (Vue SFC)\n * // или из `name`; можно также указать явно через `{ name, component }`.\n * components: [GrButton, GrInput],\n * directives: [{ name: 'hotkey', directive: vHotkey }],\n * }))\n * .mount('#app')\n * ```\n */\nexport function createGranularity(options: CreateGranularityOptions = {}): Plugin {\n return {\n install(app: App) {\n installGranularity(app, options)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,SAAgB,kBAAuC,WAAc,MAA+C;AAChH,QAAO,EACH,QAAQ,KAAU;AACd,MAAI,UAAU,MAAM,UAAU;IAErC;;AAGL,SAAS,iBAAiB,KAAU,GAA0C;AAC1E,KAAI,OAAQ,EAAU,YAAY,YAAY;AACxC,IAAU,QAAQ,IAAI;AACxB;;AAKJ,KACI,OAAQ,EAAU,SAAS,YACvB,EAAU,cACV,OAAQ,EAAU,cAAc,YAAY,OAAQ,EAAU,cAAc,aAClF;EACE,MAAM,EAAC,MAAM,cAAa;AAC1B,MAAI,UAAU,MAAM,UAAU;AAC9B;;CAKJ,MAAM,eACC,EAAoC,QAC/B,EAA0B;AACtC,KAAI,cAAc;AACd,MAAI,UAAU,cAAc,EAAe;AAC3C;;AAKJ,SAAQ,KAAK,uGAAuG;;AAGxH,SAAS,iBAAiB,KAAU,GAA0C;AAC1E,KAAI,aAAa,KAAK,OAAO,EAAE,YAAY,YAAY;AACnD,IAAE,QAAQ,IAAI;AACd;;AAGJ,KAAI,UAAU,KAAK,eAAe,GAAG;AACjC,MAAI,UAAU,EAAE,MAAM,EAAE,UAAU;AAClC;;AAKJ,SAAQ,KAAK,2GAA2G;;;;;;AAO5H,SAAgB,mBAAmB,KAAU,UAAoC,EAAE,EAAQ;AACvF,MAAK,MAAM,KAAK,QAAQ,cAAc,EAAE,CACpC,kBAAiB,KAAK,EAAE;AAE5B,MAAK,MAAM,KAAK,QAAQ,cAAc,EAAE,CACpC,kBAAiB,KAAK,EAAE;AAE5B,MAAK,MAAM,EAAC,KAAK,WAAU,QAAQ,YAAY,EAAE,CAC7C,KAAI,QAAQ,KAAY,MAAM;AAElC,KAAI,QAAQ,iBACR,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,QAAQ,iBAAiB,CAC/D,KAAI,OAAO,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;AA2B/C,SAAgB,kBAAkB,UAAoC,EAAE,EAAU;AAC9E,QAAO,EACH,QAAQ,KAAU;AACd,qBAAmB,KAAK,QAAQ;IAEvC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@feugene/granularity",
3
3
  "description": "Granularity design system package with Vue 3 components, consumed via the `@feugene/unocss-preset-granular` preset.",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": {
7
7
  "name": "Evgeniy Fureev",
@@ -1,8 +0,0 @@
1
- //#region \0plugin-vue:export-helper
2
- var e = (e, t) => {
3
- let n = e.__vccOpts || e;
4
- for (let [e, r] of t) n[e] = r;
5
- return n;
6
- };
7
- //#endregion
8
- export { e as t };
@@ -1,4 +0,0 @@
1
- //#region src/i18n/adapter.ts
2
- var e = Symbol.for("@feugene/granularity");
3
- //#endregion
4
- export { e as t };
@@ -1,23 +0,0 @@
1
- import { createElementBlock as e, createElementVNode as t, markRaw as n, openBlock as r } from "vue";
2
- //#region ~icons/lucide/arrow-up
3
- var i = {
4
- viewBox: "0 0 24 24",
5
- width: "1.2em",
6
- height: "1.2em"
7
- };
8
- function a(n, a) {
9
- return r(), e("svg", i, [...a[0] ||= [t("path", {
10
- fill: "none",
11
- stroke: "currentColor",
12
- "stroke-linecap": "round",
13
- "stroke-linejoin": "round",
14
- "stroke-width": "2",
15
- d: "m5 12l7-7l7 7m-7 7V5"
16
- }, null, -1)]]);
17
- }
18
- var o = n({
19
- name: "lucide-arrow-up",
20
- render: a
21
- });
22
- //#endregion
23
- export { o as t };
@@ -1,6 +0,0 @@
1
- //#region src/components/shared/classTokens.ts
2
- function e(e) {
3
- return e.split(/\s+/).filter(Boolean);
4
- }
5
- //#endregion
6
- export { e as t };
@@ -1,13 +0,0 @@
1
- import { defineGranularComponent as e } from "@feugene/unocss-preset-granular/contract";
2
- //#region src/components/GrList/config.ts
3
- var t = e(import.meta.url, {
4
- name: "GrList",
5
- safelist: [
6
- "px-4",
7
- "py-2",
8
- "py-3"
9
- ],
10
- dependencies: ["GrCard"]
11
- });
12
- //#endregion
13
- export { t };
@@ -1,9 +0,0 @@
1
- import { defineGranularComponent as e } from "@feugene/unocss-preset-granular/contract";
2
- //#region src/components/GrTooltip/config.ts
3
- var t = e(import.meta.url, {
4
- name: "GrTooltip",
5
- dependencies: ["GrIcon"],
6
- safelist: []
7
- });
8
- //#endregion
9
- export { t };
@@ -1,34 +0,0 @@
1
- import { t as e } from "./classTokens-CT1tqF2j.js";
2
- import { defineGranularComponent as t } from "@feugene/unocss-preset-granular/contract";
3
- //#region src/components/GrProgressBar/grStyle.ts
4
- function n(e) {
5
- return `[${e}]`;
6
- }
7
- var r = {
8
- primary: "var(--pb-bg,var(--primary))",
9
- neutral: "var(--pb-neutral-bg,var(--secondary))",
10
- success: "var(--pb-success-bg,var(--ds-success))",
11
- warning: "var(--pb-warning-bg,var(--ds-warning))",
12
- danger: "var(--pb-danger-bg,var(--ds-danger))",
13
- info: "var(--pb-info-bg,var(--ds-info))",
14
- slate: "var(--pb-slate-bg,var(--ds-slate))",
15
- azure: "var(--pb-azure-bg,var(--ds-azure))"
16
- };
17
- function i(e) {
18
- return `bg-${n(r[e])}`;
19
- }
20
- var a = { fill: [
21
- "primary",
22
- "neutral",
23
- "success",
24
- "warning",
25
- "danger",
26
- "info",
27
- "slate",
28
- "azure"
29
- ].flatMap((t) => e(i(t))) }, o = [...new Set([...a.fill])], s = t(import.meta.url, {
30
- name: "GrProgressBar",
31
- safelist: o
32
- });
33
- //#endregion
34
- export { o as n, i as r, s as t };
@@ -1,10 +0,0 @@
1
- import { t as e } from "./classTokens-CT1tqF2j.js";
2
- import { a as t, t as n } from "./grDropdownStyles-149X1NeB.js";
3
- import { defineGranularComponent as r } from "@feugene/unocss-preset-granular/contract";
4
- //#region src/components/GrDropdown/safelist.ts
5
- var i = [...new Set([...Object.values(t).flatMap(e), ...Object.values(n).flatMap(e)])], a = r(import.meta.url, {
6
- name: "GrDropdown",
7
- safelist: i
8
- });
9
- //#endregion
10
- export { i as n, a as t };
@@ -1,8 +0,0 @@
1
- import { defineGranularComponent as e } from "@feugene/unocss-preset-granular/contract";
2
- //#region src/components/GrCard/config.ts
3
- var t = e(import.meta.url, {
4
- name: "GrCard",
5
- safelist: []
6
- });
7
- //#endregion
8
- export { t };
@@ -1,40 +0,0 @@
1
- import { t as e } from "./classTokens-CT1tqF2j.js";
2
- import { defineGranularComponent as t } from "@feugene/unocss-preset-granular/contract";
3
- //#region src/components/GrDrawer/grDrawerStyles.ts
4
- var n = {
5
- sm: "w-[360px] max-w-[90vw]",
6
- md: "w-[420px] max-w-[92vw]",
7
- lg: "w-[560px] max-w-[94vw]",
8
- full: "w-[100vw]"
9
- }, r = {
10
- left: "left-0 border-r",
11
- right: "right-0 border-l"
12
- }, i = {
13
- left: "-translate-x-full",
14
- right: "translate-x-full"
15
- };
16
- function a(e) {
17
- return [
18
- r[e.side],
19
- n[e.size],
20
- "border-[var(--brd)]",
21
- "bg-[var(--card)] text-[var(--card-fg)]",
22
- "shadow-[var(--ds-shadow-2)] outline-none"
23
- ].join(" ");
24
- }
25
- function o(e) {
26
- return i[e];
27
- }
28
- //#endregion
29
- //#region src/components/GrDrawer/safelist.ts
30
- var s = [...new Set([
31
- ...Object.values(r).flatMap(e),
32
- ...Object.values(n).flatMap(e),
33
- ...Object.values(i).flatMap(e)
34
- ])], c = t(import.meta.url, {
35
- name: "GrDrawer",
36
- dependencies: ["GrButton", "GrIcon"],
37
- safelist: s
38
- });
39
- //#endregion
40
- export { o as i, s as n, a as r, c as t };
@@ -1,9 +0,0 @@
1
- import { n as e } from "./safelist-CLcTRYB-.js";
2
- import { defineGranularComponent as t } from "@feugene/unocss-preset-granular/contract";
3
- //#region src/components/GrButton/config.ts
4
- var n = t(import.meta.url, {
5
- name: "GrButton",
6
- safelist: e
7
- });
8
- //#endregion
9
- export { n as t };
@@ -1,14 +0,0 @@
1
- import { t as e } from "./classTokens-CT1tqF2j.js";
2
- import { i as t, n, r } from "./grLoadingStyles-Bjo7ylmq.js";
3
- import { defineGranularComponent as i } from "@feugene/unocss-preset-granular/contract";
4
- //#region src/components/GrLoading/safelist.ts
5
- var a = [...new Set([
6
- ...Object.values(t).flatMap(e),
7
- ...e(r),
8
- ...e(n)
9
- ])], o = i(import.meta.url, {
10
- name: "GrLoading",
11
- safelist: a
12
- });
13
- //#endregion
14
- export { a as n, o as t };