@feugene/granularity 0.12.0 → 0.16.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 (1215) hide show
  1. package/README.md +14 -1
  2. package/dist/chunks/adapter-CAOxmn2G.js.map +1 -1
  3. package/dist/chunks/check-BZI24Qs4.js +23 -0
  4. package/dist/chunks/check-BZI24Qs4.js.map +1 -0
  5. package/dist/chunks/chevron-down-CQS2OG_s.js +23 -0
  6. package/dist/chunks/chevron-down-CQS2OG_s.js.map +1 -0
  7. package/dist/chunks/chevron-right-BfqMVpbB.js +44 -0
  8. package/dist/chunks/chevron-right-BfqMVpbB.js.map +1 -0
  9. package/dist/chunks/config-06SQjBx0.js +96 -0
  10. package/dist/chunks/config-06SQjBx0.js.map +1 -0
  11. package/dist/chunks/config-8Pcutu1j.js.map +1 -0
  12. package/dist/chunks/config-A-bBiotF.js +12 -0
  13. package/dist/chunks/config-A-bBiotF.js.map +1 -0
  14. package/dist/chunks/config-B-g6lT19.js +19 -0
  15. package/dist/chunks/config-B-g6lT19.js.map +1 -0
  16. package/dist/chunks/config-B-iNaGdw.js +199 -0
  17. package/dist/chunks/config-B-iNaGdw.js.map +1 -0
  18. package/dist/chunks/config-B7W9VlZ7.js +5 -0
  19. package/dist/chunks/config-B7W9VlZ7.js.map +1 -0
  20. package/dist/chunks/config-B84z1aos.js +19 -0
  21. package/dist/chunks/config-B84z1aos.js.map +1 -0
  22. package/dist/chunks/config-BE6n20np.js +27 -0
  23. package/dist/chunks/config-BE6n20np.js.map +1 -0
  24. package/dist/chunks/config-BKvX0q10.js +89 -0
  25. package/dist/chunks/config-BKvX0q10.js.map +1 -0
  26. package/dist/chunks/config-BN4sXYXn.js +77 -0
  27. package/dist/chunks/config-BN4sXYXn.js.map +1 -0
  28. package/dist/chunks/config-BNfQwyL4.js +97 -0
  29. package/dist/chunks/config-BNfQwyL4.js.map +1 -0
  30. package/dist/chunks/config-BNu8lFQB.js.map +1 -1
  31. package/dist/chunks/config-BSyiFlbi.js +17 -0
  32. package/dist/chunks/config-BSyiFlbi.js.map +1 -0
  33. package/dist/chunks/config-BViooYNv.js +13 -0
  34. package/dist/chunks/config-BViooYNv.js.map +1 -0
  35. package/dist/chunks/config-BbY2SKGE.js +90 -0
  36. package/dist/chunks/config-BbY2SKGE.js.map +1 -0
  37. package/dist/chunks/config-BeZRuonp.js +54 -0
  38. package/dist/chunks/config-BeZRuonp.js.map +1 -0
  39. package/dist/chunks/config-BoNR7_PD.js +140 -0
  40. package/dist/chunks/config-BoNR7_PD.js.map +1 -0
  41. package/dist/chunks/config-Bpt9Xbxm.js +49 -0
  42. package/dist/chunks/config-Bpt9Xbxm.js.map +1 -0
  43. package/dist/chunks/config-BqFjr3tN.js +131 -0
  44. package/dist/chunks/config-BqFjr3tN.js.map +1 -0
  45. package/dist/chunks/config-BsuDM3Hb.js +55 -0
  46. package/dist/chunks/config-BsuDM3Hb.js.map +1 -0
  47. package/dist/chunks/config-BtXRpAtq.js +48 -0
  48. package/dist/chunks/config-BtXRpAtq.js.map +1 -0
  49. package/dist/chunks/config-BuGlNPE9.js +8 -0
  50. package/dist/chunks/config-BuGlNPE9.js.map +1 -0
  51. package/dist/chunks/config-C0Ea9ePP.js +15 -0
  52. package/dist/chunks/config-C0Ea9ePP.js.map +1 -0
  53. package/dist/chunks/config-CN2ULSQL2.js +36 -0
  54. package/dist/chunks/config-CN2ULSQL2.js.map +1 -0
  55. package/dist/chunks/config-CN970ZcJ.js +113 -0
  56. package/dist/chunks/config-CN970ZcJ.js.map +1 -0
  57. package/dist/chunks/config-COvrUfhR.js +83 -0
  58. package/dist/chunks/config-COvrUfhR.js.map +1 -0
  59. package/dist/chunks/config-CQzGyi1C.js +54 -0
  60. package/dist/chunks/config-CQzGyi1C.js.map +1 -0
  61. package/dist/chunks/config-CY0_6cMi.js +51 -0
  62. package/dist/chunks/config-CY0_6cMi.js.map +1 -0
  63. package/dist/chunks/config-CjXjhphs.js +12 -0
  64. package/dist/chunks/config-CjXjhphs.js.map +1 -0
  65. package/dist/chunks/config-CjnbevbD.js +13 -0
  66. package/dist/chunks/config-CjnbevbD.js.map +1 -0
  67. package/dist/chunks/config-Cl4ST6Qd.js +21 -0
  68. package/dist/chunks/config-Cl4ST6Qd.js.map +1 -0
  69. package/dist/chunks/config-Cp0DE0GH.js +12 -0
  70. package/dist/chunks/config-Cp0DE0GH.js.map +1 -0
  71. package/dist/chunks/config-CpwwkFBO.js +72 -0
  72. package/dist/chunks/config-CpwwkFBO.js.map +1 -0
  73. package/dist/chunks/config-CvC0sX8p.js +81 -0
  74. package/dist/chunks/config-CvC0sX8p.js.map +1 -0
  75. package/dist/chunks/config-Cw6TDzWv2.js +72 -0
  76. package/dist/chunks/config-Cw6TDzWv2.js.map +1 -0
  77. package/dist/chunks/config-Cwd3yjRw.js +41 -0
  78. package/dist/chunks/config-Cwd3yjRw.js.map +1 -0
  79. package/dist/chunks/config-D3_g2KIn.js +120 -0
  80. package/dist/chunks/config-D3_g2KIn.js.map +1 -0
  81. package/dist/chunks/config-D6W1rnlp.js +26 -0
  82. package/dist/chunks/config-D6W1rnlp.js.map +1 -0
  83. package/dist/chunks/config-D8tSR2uS.js +103 -0
  84. package/dist/chunks/config-D8tSR2uS.js.map +1 -0
  85. package/dist/chunks/config-D94Z9po52.js +126 -0
  86. package/dist/chunks/config-D94Z9po52.js.map +1 -0
  87. package/dist/chunks/config-DBmdgoVf.js.map +1 -1
  88. package/dist/chunks/config-DCFvmHEv.js +76 -0
  89. package/dist/chunks/config-DCFvmHEv.js.map +1 -0
  90. package/dist/chunks/config-DKdlqXiY.js +109 -0
  91. package/dist/chunks/config-DKdlqXiY.js.map +1 -0
  92. package/dist/chunks/config-DP7eseR1.js +92 -0
  93. package/dist/chunks/config-DP7eseR1.js.map +1 -0
  94. package/dist/chunks/config-DSJY6aEl.js +80 -0
  95. package/dist/chunks/config-DSJY6aEl.js.map +1 -0
  96. package/dist/chunks/config-DU2DNSRx2.js +116 -0
  97. package/dist/chunks/config-DU2DNSRx2.js.map +1 -0
  98. package/dist/chunks/config-DhHbU3zO.js +37 -0
  99. package/dist/chunks/config-DhHbU3zO.js.map +1 -0
  100. package/dist/chunks/config-DpeQchsV.js +21 -0
  101. package/dist/chunks/config-DpeQchsV.js.map +1 -0
  102. package/dist/chunks/config-DpqOnJiz2.js.map +1 -0
  103. package/dist/chunks/config-Droqn55j.js +8 -0
  104. package/dist/chunks/config-Droqn55j.js.map +1 -0
  105. package/dist/chunks/config-DvQIb4kb.js +98 -0
  106. package/dist/chunks/config-DvQIb4kb.js.map +1 -0
  107. package/dist/chunks/config-DxCTVBfx.js +97 -0
  108. package/dist/chunks/config-DxCTVBfx.js.map +1 -0
  109. package/dist/chunks/config-K0C2tcLB.js +84 -0
  110. package/dist/chunks/config-K0C2tcLB.js.map +1 -0
  111. package/dist/chunks/config-Rw9OyW70.js +87 -0
  112. package/dist/chunks/config-Rw9OyW70.js.map +1 -0
  113. package/dist/chunks/config-T3qdQBgU.js +40 -0
  114. package/dist/chunks/config-T3qdQBgU.js.map +1 -0
  115. package/dist/chunks/config-WTNhdh6T2.js +20 -0
  116. package/dist/chunks/config-WTNhdh6T2.js.map +1 -0
  117. package/dist/chunks/config-Zc_bUvZY2.js +23 -0
  118. package/dist/chunks/config-Zc_bUvZY2.js.map +1 -0
  119. package/dist/chunks/config-_qPUfb6-2.js +165 -0
  120. package/dist/chunks/config-_qPUfb6-2.js.map +1 -0
  121. package/dist/chunks/config-esdviAPL.js +41 -0
  122. package/dist/chunks/config-esdviAPL.js.map +1 -0
  123. package/dist/chunks/config-gwro_7yn.js +55 -0
  124. package/dist/chunks/config-gwro_7yn.js.map +1 -0
  125. package/dist/chunks/config-qVg3Zz_A.js +30 -0
  126. package/dist/chunks/config-qVg3Zz_A.js.map +1 -0
  127. package/dist/chunks/config-zjeAJ4ho.js +64 -0
  128. package/dist/chunks/config-zjeAJ4ho.js.map +1 -0
  129. package/dist/chunks/context-BSYR7RZs.js +152 -0
  130. package/dist/chunks/context-BSYR7RZs.js.map +1 -0
  131. package/dist/chunks/context-BfIQv7m1.js +18 -0
  132. package/dist/chunks/context-BfIQv7m1.js.map +1 -0
  133. package/dist/chunks/context-Bfrgsluh.js +9 -0
  134. package/dist/chunks/context-Bfrgsluh.js.map +1 -0
  135. package/dist/chunks/context-DdNIxa1w.js.map +1 -1
  136. package/dist/chunks/dialogShared-CxW62PQE.js.map +1 -1
  137. package/dist/chunks/en-B3xMeswz.js +327 -0
  138. package/dist/chunks/en-B3xMeswz.js.map +1 -0
  139. package/dist/chunks/es-Bv8vvqdT.js +20 -0
  140. package/dist/chunks/es-Bv8vvqdT.js.map +1 -0
  141. package/dist/chunks/es-CA-mkU--.js +329 -0
  142. package/dist/chunks/es-CA-mkU--.js.map +1 -0
  143. package/dist/chunks/fileValidation-D5TFBhbv.js +296 -0
  144. package/dist/chunks/fileValidation-D5TFBhbv.js.map +1 -0
  145. package/dist/chunks/focusables-BkzK42SQ.js +87 -0
  146. package/dist/chunks/focusables-BkzK42SQ.js.map +1 -0
  147. package/dist/chunks/grBadgeStyles-C2wLlkjF.js +61 -0
  148. package/dist/chunks/grBadgeStyles-C2wLlkjF.js.map +1 -0
  149. package/dist/chunks/grButtonStyles-B_-YRE__.js +221 -0
  150. package/dist/chunks/grButtonStyles-B_-YRE__.js.map +1 -0
  151. package/dist/chunks/grCheckboxStyles-hOAgURZG.js +82 -0
  152. package/dist/chunks/grCheckboxStyles-hOAgURZG.js.map +1 -0
  153. package/dist/chunks/grDropdownStyles-V7TRiCXn.js +24 -0
  154. package/dist/chunks/grDropdownStyles-V7TRiCXn.js.map +1 -0
  155. package/dist/chunks/grFormFieldStyles-BkeZHIw0.js +32 -0
  156. package/dist/chunks/grFormFieldStyles-BkeZHIw0.js.map +1 -0
  157. package/dist/chunks/grIconStyles-BwJrml2L.js +44 -0
  158. package/dist/chunks/grIconStyles-BwJrml2L.js.map +1 -0
  159. package/dist/chunks/grInputStyles-CJeMhUe5.js +66 -0
  160. package/dist/chunks/grInputStyles-CJeMhUe5.js.map +1 -0
  161. package/dist/chunks/grKbdStyles-DAoxiytu.js +31 -0
  162. package/dist/chunks/grKbdStyles-DAoxiytu.js.map +1 -0
  163. package/dist/chunks/grLinkStyles-BoL8QYcV.js +84 -0
  164. package/dist/chunks/grLinkStyles-BoL8QYcV.js.map +1 -0
  165. package/dist/chunks/grLoadingStyles-DEmji2wv.js +30 -0
  166. package/dist/chunks/grLoadingStyles-DEmji2wv.js.map +1 -0
  167. package/dist/chunks/grModalStyles-EZfuEiw_.js +77 -0
  168. package/dist/chunks/grModalStyles-EZfuEiw_.js.map +1 -0
  169. package/dist/chunks/grPopoverStyles-Rz_Z5nLW.js +46 -0
  170. package/dist/chunks/grPopoverStyles-Rz_Z5nLW.js.map +1 -0
  171. package/dist/chunks/grSelectStyles-eTz4uPMP.js +147 -0
  172. package/dist/chunks/grSelectStyles-eTz4uPMP.js.map +1 -0
  173. package/dist/chunks/grSliderStyles-B5uNxNJq.js +133 -0
  174. package/dist/chunks/grSliderStyles-B5uNxNJq.js.map +1 -0
  175. package/dist/chunks/grStyle-CrgLQKKf.js +46 -0
  176. package/dist/chunks/grStyle-CrgLQKKf.js.map +1 -0
  177. package/dist/chunks/grTableStyles-C-iaqQUN.js +26 -0
  178. package/dist/chunks/grTableStyles-C-iaqQUN.js.map +1 -0
  179. package/dist/chunks/grTextareaStyles-CWI2SqC8.js +50 -0
  180. package/dist/chunks/grTextareaStyles-CWI2SqC8.js.map +1 -0
  181. package/dist/chunks/granular-provider-CtrXGa7c.js +193 -0
  182. package/dist/chunks/granular-provider-CtrXGa7c.js.map +1 -0
  183. package/dist/chunks/granularityI18n-BC5zsj_d.js +68 -0
  184. package/dist/chunks/granularityI18n-BC5zsj_d.js.map +1 -0
  185. package/dist/chunks/inert-DIHCCn_1.js +78 -0
  186. package/dist/chunks/inert-DIHCCn_1.js.map +1 -0
  187. package/dist/chunks/keyboard-zYvvyHd4.js +61 -0
  188. package/dist/chunks/keyboard-zYvvyHd4.js.map +1 -0
  189. package/dist/chunks/loader-2-B1fdsdWW.js +23 -0
  190. package/dist/chunks/loader-2-B1fdsdWW.js.map +1 -0
  191. package/dist/chunks/minus-oxdbHF33.js +23 -0
  192. package/dist/chunks/minus-oxdbHF33.js.map +1 -0
  193. package/dist/chunks/optionFilter-BVY988pC.js +149 -0
  194. package/dist/chunks/optionFilter-BVY988pC.js.map +1 -0
  195. package/dist/chunks/portalRoot-CWD4zHBm.js +35 -0
  196. package/dist/chunks/portalRoot-CWD4zHBm.js.map +1 -0
  197. package/dist/chunks/ru-COWxgh2A.js +331 -0
  198. package/dist/chunks/ru-COWxgh2A.js.map +1 -0
  199. package/dist/chunks/safelist-CudBLyAD.js +26 -0
  200. package/dist/chunks/safelist-CudBLyAD.js.map +1 -0
  201. package/dist/chunks/slotNodes-DxNXpC7v.js +39 -0
  202. package/dist/chunks/slotNodes-DxNXpC7v.js.map +1 -0
  203. package/dist/chunks/useControlAddons-asUr10Pf.js +128 -0
  204. package/dist/chunks/useControlAddons-asUr10Pf.js.map +1 -0
  205. package/dist/chunks/useControlledOpen-DV3SqLTP.js +27 -0
  206. package/dist/chunks/useControlledOpen-DV3SqLTP.js.map +1 -0
  207. package/dist/chunks/useFilePreviews-DnwgdyBs.js +53 -0
  208. package/dist/chunks/useFilePreviews-DnwgdyBs.js.map +1 -0
  209. package/dist/chunks/useFocusWithin-BwHE0rzm.js +33 -0
  210. package/dist/chunks/useFocusWithin-BwHE0rzm.js.map +1 -0
  211. package/dist/chunks/useModalOverlay-DCM4d3yA.js +212 -0
  212. package/dist/chunks/useModalOverlay-DCM4d3yA.js.map +1 -0
  213. package/dist/chunks/useOverlayLayer-BupuP_hs.js +149 -0
  214. package/dist/chunks/useOverlayLayer-BupuP_hs.js.map +1 -0
  215. package/dist/chunks/usePortalTarget-RyzEgNTb.js +77 -0
  216. package/dist/chunks/usePortalTarget-RyzEgNTb.js.map +1 -0
  217. package/dist/chunks/validation-5HhpanPP.js +178 -0
  218. package/dist/chunks/validation-5HhpanPP.js.map +1 -0
  219. package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js +272 -0
  220. package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js.map +1 -0
  221. package/dist/components/GrAlert/index.js +2 -2
  222. package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js +851 -0
  223. package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js.map +1 -0
  224. package/dist/components/GrAutocomplete/index.js +3 -0
  225. package/dist/components/GrAutocomplete/styles.css +1 -0
  226. package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js +222 -0
  227. package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js.map +1 -0
  228. package/dist/components/GrAvatar/index.js +3 -3
  229. package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js +40 -0
  230. package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js.map +1 -0
  231. package/dist/components/GrBadge/index.js +2 -2
  232. package/dist/components/GrBadge/styles.css +1 -0
  233. package/dist/components/GrBadge/themes/dark.css +19 -0
  234. package/dist/components/GrBadge/themes/light.css +18 -0
  235. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js +97 -0
  236. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js.map +1 -0
  237. package/dist/components/GrBadgeWrap/index.js +3 -3
  238. package/dist/components/GrBadgeWrap/styles.css +1 -0
  239. package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js +117 -0
  240. package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js.map +1 -0
  241. package/dist/components/GrBottomNav/index.js +3 -3
  242. package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-BCNGDS6k.js +266 -0
  243. package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-BCNGDS6k.js.map +1 -0
  244. package/dist/components/GrBreadcrumbs/index.js +3 -0
  245. package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js +153 -0
  246. package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js.map +1 -0
  247. package/dist/components/GrButton/index.js +5 -5
  248. package/dist/components/GrButton/themes/dark.css +46 -0
  249. package/dist/components/GrButton/themes/light.css +82 -0
  250. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CKyiAV8K.js +44 -0
  251. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CKyiAV8K.js.map +1 -0
  252. package/dist/components/GrButtonGroup/index.js +3 -2
  253. package/dist/components/GrButtonGroup/styles.css +1 -0
  254. package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js +89 -0
  255. package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js.map +1 -0
  256. package/dist/components/GrCard/index.js +3 -3
  257. package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js +262 -0
  258. package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js.map +1 -0
  259. package/dist/components/GrCheckbox/index.js +3 -3
  260. package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js +140 -0
  261. package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js.map +1 -0
  262. package/dist/components/GrCheckboxGroup/index.js +3 -0
  263. package/dist/components/GrCollapse/chunks/GrCollapse-B2Fc6A9r.js +308 -0
  264. package/dist/components/GrCollapse/chunks/GrCollapse-B2Fc6A9r.js.map +1 -0
  265. package/dist/components/GrCollapse/index.js +3 -3
  266. package/dist/components/GrColorPicker/chunks/GrColorPicker-bnYBRGk8.js +584 -0
  267. package/dist/components/GrColorPicker/chunks/GrColorPicker-bnYBRGk8.js.map +1 -0
  268. package/dist/components/GrColorPicker/index.js +3 -0
  269. package/dist/components/GrColorPicker/styles.css +1 -0
  270. package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js +566 -0
  271. package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js.map +1 -0
  272. package/dist/components/GrCommandPalette/index.js +3 -0
  273. package/dist/components/GrCommandPalette/styles.css +1 -0
  274. package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js +144 -0
  275. package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js.map +1 -0
  276. package/dist/components/GrConfigProvider/index.js +4 -0
  277. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DaQmlp1_.js +200 -0
  278. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DaQmlp1_.js.map +1 -0
  279. package/dist/components/GrConfirmDialog/index.js +2 -2
  280. package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js +605 -0
  281. package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js.map +1 -0
  282. package/dist/components/GrDataTable/index.js +3 -3
  283. package/dist/components/GrDialog/chunks/GrDialog-AE1gIZuz.js +255 -0
  284. package/dist/components/GrDialog/chunks/GrDialog-AE1gIZuz.js.map +1 -0
  285. package/dist/components/GrDialog/index.js +1 -1
  286. package/dist/components/GrDialogService/chunks/GrDialogService-B4DYWDkA.js +656 -0
  287. package/dist/components/GrDialogService/chunks/GrDialogService-B4DYWDkA.js.map +1 -0
  288. package/dist/components/GrDialogService/index.js +3 -3
  289. package/dist/components/GrDivider/chunks/GrDivider-B2Xwc_QO.js +109 -0
  290. package/dist/components/GrDivider/chunks/GrDivider-B2Xwc_QO.js.map +1 -0
  291. package/dist/components/GrDivider/index.js +3 -3
  292. package/dist/components/GrDrawer/chunks/GrDrawer-DQwi6aRw.js +251 -0
  293. package/dist/components/GrDrawer/chunks/GrDrawer-DQwi6aRw.js.map +1 -0
  294. package/dist/components/GrDrawer/index.js +2 -2
  295. package/dist/components/GrDropdown/chunks/GrDropdown-BLng6V1m.js +300 -0
  296. package/dist/components/GrDropdown/chunks/GrDropdown-BLng6V1m.js.map +1 -0
  297. package/dist/components/GrDropdown/index.js +2 -2
  298. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BImk2Vs7.js +421 -0
  299. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BImk2Vs7.js.map +1 -0
  300. package/dist/components/GrDropdownMenu/index.js +3 -3
  301. package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js +86 -0
  302. package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js.map +1 -0
  303. package/dist/components/GrEmptyState/index.js +3 -3
  304. package/dist/components/GrFileUpload/chunks/GrFileUpload-D0B-BEsd.js +1080 -0
  305. package/dist/components/GrFileUpload/chunks/GrFileUpload-D0B-BEsd.js.map +1 -0
  306. package/dist/components/GrFileUpload/index.js +4 -4
  307. package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js +326 -0
  308. package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js.map +1 -0
  309. package/dist/components/GrForm/index.js +5 -0
  310. package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js +190 -0
  311. package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js.map +1 -0
  312. package/dist/components/GrFormField/index.js +3 -3
  313. package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js +452 -0
  314. package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js.map +1 -0
  315. package/dist/components/GrFormFile/index.js +3 -3
  316. package/dist/components/GrFormFile/styles.css +1 -0
  317. package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js +63 -0
  318. package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js.map +1 -0
  319. package/dist/components/GrFormSection/index.js +3 -3
  320. package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js +57 -0
  321. package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js.map +1 -0
  322. package/dist/components/GrIcon/index.js +3 -3
  323. package/dist/components/GrIcon/styles.css +1 -0
  324. package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js +1103 -0
  325. package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js.map +1 -0
  326. package/dist/components/GrImageViewer/index.js +3 -3
  327. package/dist/components/GrImageViewer/themes/dark.css +17 -0
  328. package/dist/components/GrImageViewer/themes/light.css +16 -0
  329. package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js +348 -0
  330. package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js.map +1 -0
  331. package/dist/components/GrInput/index.js +2 -2
  332. package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js +525 -0
  333. package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js.map +1 -0
  334. package/dist/components/GrInputTag/index.js +2 -2
  335. package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js +192 -0
  336. package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js.map +1 -0
  337. package/dist/components/GrKbd/index.js +3 -3
  338. package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js +163 -0
  339. package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js.map +1 -0
  340. package/dist/components/GrLink/index.js +2 -2
  341. package/dist/components/GrList/chunks/GrList-4YU1NZtM.js +277 -0
  342. package/dist/components/GrList/chunks/GrList-4YU1NZtM.js.map +1 -0
  343. package/dist/components/GrList/index.js +3 -3
  344. package/dist/components/GrList/styles.css +1 -0
  345. package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js +101 -0
  346. package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js.map +1 -0
  347. package/dist/components/GrLoading/index.js +2 -2
  348. package/dist/components/GrModal/chunks/GrModal-B8I78T0N.js +313 -0
  349. package/dist/components/GrModal/chunks/GrModal-B8I78T0N.js.map +1 -0
  350. package/dist/components/GrModal/index.js +3 -4
  351. package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js +104 -0
  352. package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js.map +1 -0
  353. package/dist/components/GrNavbar/index.js +3 -3
  354. package/dist/components/GrNumberInput/chunks/GrNumberInput-CZOyPz4J.js +658 -0
  355. package/dist/components/GrNumberInput/chunks/GrNumberInput-CZOyPz4J.js.map +1 -0
  356. package/dist/components/GrNumberInput/index.js +2 -2
  357. package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js +283 -0
  358. package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js.map +1 -0
  359. package/dist/components/GrPagination/index.js +3 -3
  360. package/dist/components/GrPopover/chunks/GrPopover-B1eRCOoO.js +216 -0
  361. package/dist/components/GrPopover/chunks/GrPopover-B1eRCOoO.js.map +1 -0
  362. package/dist/components/GrPopover/index.js +3 -0
  363. package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js +90 -0
  364. package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js.map +1 -0
  365. package/dist/components/GrProgressBar/index.js +2 -2
  366. package/dist/components/GrProgressBar/styles.css +1 -0
  367. package/dist/components/GrProgressBar/themes/dark.css +13 -0
  368. package/dist/components/GrProgressBar/themes/light.css +12 -0
  369. package/dist/components/GrProgressCircle/chunks/GrProgressCircle-CTogjcHz.js +210 -0
  370. package/dist/components/GrProgressCircle/chunks/GrProgressCircle-CTogjcHz.js.map +1 -0
  371. package/dist/components/GrProgressCircle/index.js +3 -0
  372. package/dist/components/GrProgressCircle/styles.css +1 -0
  373. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Ct174NVD.js +348 -0
  374. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Ct174NVD.js.map +1 -0
  375. package/dist/components/GrPromptDialog/index.js +2 -2
  376. package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js +277 -0
  377. package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js.map +1 -0
  378. package/dist/components/GrRadio/index.js +2 -2
  379. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js +189 -0
  380. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js.map +1 -0
  381. package/dist/components/GrRadioGroup/index.js +1 -1
  382. package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js +315 -0
  383. package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js.map +1 -0
  384. package/dist/components/GrRating/index.js +3 -0
  385. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js +777 -0
  386. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js.map +1 -0
  387. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js +224 -0
  388. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js.map +1 -0
  389. package/dist/components/GrResponseErrorBanner/index.js +2 -2
  390. package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js +406 -0
  391. package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js.map +1 -0
  392. package/dist/components/GrSegmented/index.js +3 -3
  393. package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js +1372 -0
  394. package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js.map +1 -0
  395. package/dist/components/GrSelect/index.js +2 -2
  396. package/dist/components/GrSelect/styles.css +1 -0
  397. package/dist/components/GrSidebar/chunks/GrSidebar-DRGnnViw.js +257 -0
  398. package/dist/components/GrSidebar/chunks/GrSidebar-DRGnnViw.js.map +1 -0
  399. package/dist/components/GrSidebar/index.js +3 -3
  400. package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js +84 -0
  401. package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js.map +1 -0
  402. package/dist/components/GrSkeleton/index.js +3 -3
  403. package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js +392 -0
  404. package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js.map +1 -0
  405. package/dist/components/GrSlider/index.js +3 -0
  406. package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js +288 -0
  407. package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js.map +1 -0
  408. package/dist/components/GrSplitter/index.js +3 -0
  409. package/dist/components/GrSplitter/styles.css +1 -0
  410. package/dist/components/GrStatistic/chunks/GrStatistic-CttyoYPT.js +319 -0
  411. package/dist/components/GrStatistic/chunks/GrStatistic-CttyoYPT.js.map +1 -0
  412. package/dist/components/GrStatistic/index.js +3 -0
  413. package/dist/components/GrSwitch/chunks/GrSwitch-B9TYbiih.js +183 -0
  414. package/dist/components/GrSwitch/chunks/GrSwitch-B9TYbiih.js.map +1 -0
  415. package/dist/components/GrSwitch/index.js +2 -2
  416. package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js +81 -0
  417. package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js.map +1 -0
  418. package/dist/components/GrTabPanels/index.js +1 -1
  419. package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js +163 -0
  420. package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js.map +1 -0
  421. package/dist/components/GrTable/index.js +3 -3
  422. package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js +272 -0
  423. package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js.map +1 -0
  424. package/dist/components/GrTabs/index.js +3 -3
  425. package/dist/components/GrTextarea/chunks/GrTextarea-DUh5Tlo4.js +241 -0
  426. package/dist/components/GrTextarea/chunks/GrTextarea-DUh5Tlo4.js.map +1 -0
  427. package/dist/components/GrTextarea/index.js +2 -2
  428. package/dist/components/GrTimeline/chunks/GrTimeline-CE9b3s18.js +285 -0
  429. package/dist/components/GrTimeline/chunks/GrTimeline-CE9b3s18.js.map +1 -0
  430. package/dist/components/GrTimeline/index.js +3 -0
  431. package/dist/components/GrTimeline/styles.css +1 -0
  432. package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js +272 -0
  433. package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js.map +1 -0
  434. package/dist/components/GrToaster/index.js +1 -1
  435. package/dist/components/GrToaster/styles.css +1 -0
  436. package/dist/components/GrTooltip/chunks/GrTooltip-DEbejfhA.js +185 -0
  437. package/dist/components/GrTooltip/chunks/GrTooltip-DEbejfhA.js.map +1 -0
  438. package/dist/components/GrTooltip/index.js +3 -3
  439. package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js +1339 -0
  440. package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js.map +1 -0
  441. package/dist/components/GrTree/index.js +2 -2
  442. package/dist/components/GrTree/styles.css +1 -0
  443. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-lLWmAMtI.js +623 -0
  444. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-lLWmAMtI.js.map +1 -0
  445. package/dist/components/GrTreeSelect/index.js +2 -2
  446. package/dist/composables/useAnnouncer.js +114 -0
  447. package/dist/composables/useAnnouncer.js.map +1 -0
  448. package/dist/composables/useDismissible.js +31 -0
  449. package/dist/composables/useDismissible.js.map +1 -0
  450. package/dist/composables/useFloating.js +112 -0
  451. package/dist/composables/useFloating.js.map +1 -0
  452. package/dist/composables/useFocusTrap.js +124 -0
  453. package/dist/composables/useFocusTrap.js.map +1 -0
  454. package/dist/composables/useGrFormControl.js +24 -0
  455. package/dist/composables/useGrFormControl.js.map +1 -0
  456. package/dist/composables/useOverlayLayer.js +2 -0
  457. package/dist/composables/usePortalTarget.js +2 -0
  458. package/dist/composables/useTheme.js +106 -36
  459. package/dist/composables/useTheme.js.map +1 -1
  460. package/dist/composables/useToast.js +126 -8
  461. package/dist/composables/useToast.js.map +1 -1
  462. package/dist/composables/useVirtualList.js +244 -0
  463. package/dist/composables/useVirtualList.js.map +1 -0
  464. package/dist/directives/dropzone.js +1 -1
  465. package/dist/directives/hotkey.js +9 -15
  466. package/dist/directives/hotkey.js.map +1 -1
  467. package/dist/directives/loading.js +43 -7
  468. package/dist/directives/loading.js.map +1 -1
  469. package/dist/fileValidation/index.js +2 -2
  470. package/dist/granular-provider-node.js +1 -31
  471. package/dist/granular-provider.js +1 -4
  472. package/dist/i18n/all.js +1 -1
  473. package/dist/i18n/index.js +1 -1
  474. package/dist/index.js +159 -133
  475. package/dist/styles/base.css +34 -2
  476. package/dist/styles/index.css +6 -3
  477. package/dist/styles/preflight.css +36 -3
  478. package/dist/styles/themes/dark.css +125 -58
  479. package/dist/styles/themes/light.css +151 -55
  480. package/dist/styles/tokens.css +81 -22
  481. package/dist/tokens.js +3132 -0
  482. package/dist/tokens.js.map +1 -0
  483. package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +59 -15
  484. package/dist/types/src/components/GrAlert/config.d.ts +1 -1
  485. package/dist/types/src/components/GrAlert/defaults.d.ts +23 -0
  486. package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +48 -0
  487. package/dist/types/src/components/GrAlert/index.d.ts +5 -1
  488. package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +166 -0
  489. package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -0
  490. package/dist/types/src/components/GrAutocomplete/defaults.d.ts +15 -0
  491. package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +63 -0
  492. package/dist/types/src/components/GrAutocomplete/index.d.ts +10 -0
  493. package/dist/types/src/components/GrAutocomplete/safelist.d.ts +1 -0
  494. package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +41 -18
  495. package/dist/types/src/components/GrAvatar/GrAvatarGroup.vue.d.ts +70 -0
  496. package/dist/types/src/components/GrAvatar/avatarContext.d.ts +12 -0
  497. package/dist/types/src/components/GrAvatar/config.d.ts +1 -1
  498. package/dist/types/src/components/GrAvatar/defaults.d.ts +16 -0
  499. package/dist/types/src/components/GrAvatar/grAvatarStyles.d.ts +38 -0
  500. package/dist/types/src/components/GrAvatar/index.d.ts +5 -0
  501. package/dist/types/src/components/GrAvatar/safelist.d.ts +4 -0
  502. package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +11 -11
  503. package/dist/types/src/components/GrBadge/config.d.ts +1 -1
  504. package/dist/types/src/components/GrBadge/defaults.d.ts +15 -0
  505. package/dist/types/src/components/GrBadge/grBadgeStyles.d.ts +13 -1
  506. package/dist/types/src/components/GrBadge/index.d.ts +2 -0
  507. package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +41 -4
  508. package/dist/types/src/components/GrBadgeWrap/config.d.ts +1 -1
  509. package/dist/types/src/components/GrBadgeWrap/grBadgeWrapStyles.d.ts +46 -0
  510. package/dist/types/src/components/GrBadgeWrap/index.d.ts +4 -0
  511. package/dist/types/src/components/GrBadgeWrap/safelist.d.ts +1 -0
  512. package/dist/types/src/components/GrBottomNav/GrBottomNav.vue.d.ts +91 -4
  513. package/dist/types/src/components/GrBottomNav/config.d.ts +1 -1
  514. package/dist/types/src/components/GrBottomNav/defaults.d.ts +16 -0
  515. package/dist/types/src/components/GrBottomNav/grBottomNavStyles.d.ts +56 -0
  516. package/dist/types/src/components/GrBottomNav/index.d.ts +6 -1
  517. package/dist/types/src/components/GrBottomNav/safelist.d.ts +1 -0
  518. package/dist/types/src/components/GrBreadcrumbs/GrBreadcrumbs.vue.d.ts +117 -0
  519. package/dist/types/src/components/GrBreadcrumbs/config.d.ts +1 -0
  520. package/dist/types/src/components/GrBreadcrumbs/defaults.d.ts +15 -0
  521. package/dist/types/src/components/GrBreadcrumbs/grBreadcrumbsStyles.d.ts +86 -0
  522. package/dist/types/src/components/GrBreadcrumbs/index.d.ts +8 -0
  523. package/dist/types/src/components/GrBreadcrumbs/safelist.d.ts +1 -0
  524. package/dist/types/src/components/GrButton/GrButton.vue.d.ts +43 -19
  525. package/dist/types/src/components/GrButton/config.d.ts +1 -1
  526. package/dist/types/src/components/GrButton/defaults.d.ts +25 -0
  527. package/dist/types/src/components/GrButton/grButtonStyles.d.ts +27 -3
  528. package/dist/types/src/components/GrButton/index.d.ts +6 -1
  529. package/dist/types/src/components/GrButton/safelist.d.ts +1 -0
  530. package/dist/types/src/components/GrButtonGroup/GrButtonGroup.vue.d.ts +32 -4
  531. package/dist/types/src/components/GrButtonGroup/config.d.ts +1 -1
  532. package/dist/types/src/components/GrButtonGroup/context.d.ts +20 -0
  533. package/dist/types/src/components/GrButtonGroup/index.d.ts +3 -0
  534. package/dist/types/src/components/GrCard/GrCard.vue.d.ts +80 -3
  535. package/dist/types/src/components/GrCard/config.d.ts +1 -1
  536. package/dist/types/src/components/GrCard/defaults.d.ts +15 -0
  537. package/dist/types/src/components/GrCard/grCardStyles.d.ts +24 -0
  538. package/dist/types/src/components/GrCard/index.d.ts +5 -0
  539. package/dist/types/src/components/GrCard/safelist.d.ts +1 -0
  540. package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +58 -12
  541. package/dist/types/src/components/GrCheckbox/config.d.ts +1 -1
  542. package/dist/types/src/components/GrCheckbox/defaults.d.ts +14 -0
  543. package/dist/types/src/components/GrCheckbox/grCheckboxGroupContext.d.ts +19 -0
  544. package/dist/types/src/components/GrCheckbox/grCheckboxStyles.d.ts +44 -0
  545. package/dist/types/src/components/GrCheckbox/index.d.ts +9 -0
  546. package/dist/types/src/components/GrCheckbox/safelist.d.ts +13 -0
  547. package/dist/types/src/components/GrCheckboxGroup/GrCheckboxGroup.vue.d.ts +105 -0
  548. package/dist/types/src/components/GrCheckboxGroup/config.d.ts +1 -0
  549. package/dist/types/src/components/GrCheckboxGroup/defaults.d.ts +14 -0
  550. package/dist/types/src/components/GrCheckboxGroup/index.d.ts +9 -0
  551. package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +57 -9
  552. package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +14 -4
  553. package/dist/types/src/components/GrCollapse/config.d.ts +1 -1
  554. package/dist/types/src/components/GrCollapse/defaults.d.ts +19 -0
  555. package/dist/types/src/components/GrCollapse/grCollapseContext.d.ts +20 -0
  556. package/dist/types/src/components/GrCollapse/grCollapseStyles.d.ts +42 -0
  557. package/dist/types/src/components/GrCollapse/index.d.ts +3 -0
  558. package/dist/types/src/components/GrCollapse/safelist.d.ts +15 -0
  559. package/dist/types/src/components/GrColorPicker/GrColorPicker.vue.d.ts +104 -0
  560. package/dist/types/src/components/GrColorPicker/color.d.ts +38 -0
  561. package/dist/types/src/components/GrColorPicker/config.d.ts +1 -0
  562. package/dist/types/src/components/GrColorPicker/defaults.d.ts +15 -0
  563. package/dist/types/src/components/GrColorPicker/grColorPickerStyles.d.ts +39 -0
  564. package/dist/types/src/components/GrColorPicker/index.d.ts +11 -0
  565. package/dist/types/src/components/GrColorPicker/safelist.d.ts +1 -0
  566. package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +163 -0
  567. package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -0
  568. package/dist/types/src/components/GrCommandPalette/defaults.d.ts +14 -0
  569. package/dist/types/src/components/GrCommandPalette/filtering.d.ts +59 -0
  570. package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +45 -0
  571. package/dist/types/src/components/GrCommandPalette/index.d.ts +10 -0
  572. package/dist/types/src/components/GrCommandPalette/safelist.d.ts +1 -0
  573. package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +93 -0
  574. package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -0
  575. package/dist/types/src/components/GrConfigProvider/context.d.ts +158 -0
  576. package/dist/types/src/components/GrConfigProvider/index.d.ts +6 -0
  577. package/dist/types/src/components/GrConfigProvider/zIndexScale.d.ts +23 -0
  578. package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +35 -6
  579. package/dist/types/src/components/GrConfirmDialog/config.d.ts +1 -1
  580. package/dist/types/src/components/GrConfirmDialog/defaults.d.ts +14 -0
  581. package/dist/types/src/components/GrConfirmDialog/index.d.ts +2 -1
  582. package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +111 -26
  583. package/dist/types/src/components/GrDataTable/config.d.ts +1 -1
  584. package/dist/types/src/components/GrDataTable/defaults.d.ts +10 -0
  585. package/dist/types/src/components/GrDataTable/grDataTableSort.d.ts +25 -0
  586. package/dist/types/src/components/GrDataTable/grDataTableStyles.d.ts +29 -0
  587. package/dist/types/src/components/GrDataTable/index.d.ts +10 -1
  588. package/dist/types/src/components/GrDataTable/safelist.d.ts +1 -0
  589. package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +52 -5
  590. package/dist/types/src/components/GrDialog/GrDialogCloseButton.vue.d.ts +3 -0
  591. package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +3 -0
  592. package/dist/types/src/components/GrDialog/config.d.ts +1 -1
  593. package/dist/types/src/components/GrDialog/defaults.d.ts +14 -0
  594. package/dist/types/src/components/GrDialog/dialogShared.d.ts +2 -1
  595. package/dist/types/src/components/GrDialog/index.d.ts +5 -0
  596. package/dist/types/src/components/GrDialogService/GrDialogServiceHost.vue.d.ts +18 -1
  597. package/dist/types/src/components/GrDialogService/GrDialogServiceItem.vue.d.ts +15 -0
  598. package/dist/types/src/components/GrDialogService/config.d.ts +1 -1
  599. package/dist/types/src/components/GrDialogService/index.d.ts +3 -1
  600. package/dist/types/src/components/GrDialogService/store.d.ts +94 -5
  601. package/dist/types/src/components/GrDialogService/types.d.ts +22 -1
  602. package/dist/types/src/components/GrDialogService/useDialogService.d.ts +31 -1
  603. package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +44 -9
  604. package/dist/types/src/components/GrDivider/config.d.ts +1 -1
  605. package/dist/types/src/components/GrDivider/defaults.d.ts +15 -0
  606. package/dist/types/src/components/GrDivider/grDividerStyles.d.ts +19 -0
  607. package/dist/types/src/components/GrDivider/index.d.ts +4 -1
  608. package/dist/types/src/components/GrDivider/safelist.d.ts +1 -0
  609. package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +94 -18
  610. package/dist/types/src/components/GrDrawer/config.d.ts +1 -1
  611. package/dist/types/src/components/GrDrawer/defaults.d.ts +19 -0
  612. package/dist/types/src/components/GrDrawer/grDrawerStyles.d.ts +48 -2
  613. package/dist/types/src/components/GrDrawer/index.d.ts +6 -1
  614. package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +66 -13
  615. package/dist/types/src/components/GrDropdown/config.d.ts +1 -1
  616. package/dist/types/src/components/GrDropdown/grDropdownStyles.d.ts +4 -5
  617. package/dist/types/src/components/GrDropdown/index.d.ts +5 -2
  618. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +79 -16
  619. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuColumn.vue.d.ts +2 -1
  620. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuColumns.vue.d.ts +3 -2
  621. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuGroup.vue.d.ts +2 -2
  622. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuHeader.vue.d.ts +3 -2
  623. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +50 -4
  624. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuList.vue.d.ts +5 -0
  625. package/dist/types/src/components/GrDropdownMenu/config.d.ts +1 -1
  626. package/dist/types/src/components/GrDropdownMenu/grDropdownMenuStyles.d.ts +33 -0
  627. package/dist/types/src/components/GrDropdownMenu/index.d.ts +6 -2
  628. package/dist/types/src/components/GrDropdownMenu/menuModel.d.ts +42 -0
  629. package/dist/types/src/components/GrDropdownMenu/safelist.d.ts +7 -0
  630. package/dist/types/src/components/GrEmptyState/GrEmptyState.vue.d.ts +33 -10
  631. package/dist/types/src/components/GrEmptyState/config.d.ts +1 -1
  632. package/dist/types/src/components/GrEmptyState/defaults.d.ts +16 -0
  633. package/dist/types/src/components/GrEmptyState/grEmptyStateStyles.d.ts +32 -0
  634. package/dist/types/src/components/GrEmptyState/index.d.ts +4 -0
  635. package/dist/types/src/components/GrEmptyState/safelist.d.ts +1 -0
  636. package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +158 -148
  637. package/dist/types/src/components/GrFileUpload/config.d.ts +1 -1
  638. package/dist/types/src/components/GrFileUpload/defaults.d.ts +10 -0
  639. package/dist/types/src/components/GrFileUpload/fileEntry.d.ts +26 -0
  640. package/dist/types/src/components/GrFileUpload/grFileUploadStyles.d.ts +45 -0
  641. package/dist/types/src/components/GrFileUpload/index.d.ts +10 -1
  642. package/dist/types/src/components/GrFileUpload/maxFileSize.d.ts +2 -0
  643. package/dist/types/src/components/GrFileUpload/safelist.d.ts +1 -0
  644. package/dist/types/src/components/GrFileUpload/useDropZone.d.ts +24 -0
  645. package/dist/types/src/components/GrFileUpload/usePerFileUpload.d.ts +38 -0
  646. package/dist/types/src/components/GrFileUpload/useUploadState.d.ts +30 -0
  647. package/dist/types/src/components/GrForm/GrForm.vue.d.ts +129 -0
  648. package/dist/types/src/components/GrForm/config.d.ts +1 -0
  649. package/dist/types/src/components/GrForm/context.d.ts +46 -0
  650. package/dist/types/src/components/GrForm/fileRule.d.ts +43 -0
  651. package/dist/types/src/components/GrForm/index.d.ts +10 -0
  652. package/dist/types/src/components/GrForm/modelSnapshot.d.ts +17 -0
  653. package/dist/types/src/components/GrForm/validation.d.ts +67 -0
  654. package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +65 -9
  655. package/dist/types/src/components/GrFormField/config.d.ts +1 -1
  656. package/dist/types/src/components/GrFormField/context.d.ts +19 -0
  657. package/dist/types/src/components/GrFormField/defaults.d.ts +15 -0
  658. package/dist/types/src/components/GrFormField/grFormFieldStyles.d.ts +19 -0
  659. package/dist/types/src/components/GrFormField/index.d.ts +5 -1
  660. package/dist/types/src/components/GrFormField/safelist.d.ts +1 -0
  661. package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +73 -19
  662. package/dist/types/src/components/GrFormFile/config.d.ts +1 -1
  663. package/dist/types/src/components/GrFormFile/defaults.d.ts +10 -0
  664. package/dist/types/src/components/GrFormFile/grFormFileStyles.d.ts +22 -0
  665. package/dist/types/src/components/GrFormFile/index.d.ts +7 -0
  666. package/dist/types/src/components/GrFormFile/safelist.d.ts +1 -0
  667. package/dist/types/src/components/GrFormSection/GrFormSection.vue.d.ts +34 -7
  668. package/dist/types/src/components/GrFormSection/config.d.ts +1 -1
  669. package/dist/types/src/components/GrFormSection/defaults.d.ts +14 -0
  670. package/dist/types/src/components/GrFormSection/grFormSectionStyles.d.ts +12 -0
  671. package/dist/types/src/components/GrFormSection/index.d.ts +4 -0
  672. package/dist/types/src/components/GrFormSection/safelist.d.ts +1 -0
  673. package/dist/types/src/components/GrIcon/GrIcon.vue.d.ts +40 -4
  674. package/dist/types/src/components/GrIcon/config.d.ts +1 -1
  675. package/dist/types/src/components/GrIcon/defaults.d.ts +14 -0
  676. package/dist/types/src/components/GrIcon/grIconStyles.d.ts +25 -0
  677. package/dist/types/src/components/GrIcon/index.d.ts +4 -0
  678. package/dist/types/src/components/GrIcon/safelist.d.ts +1 -0
  679. package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +89 -18
  680. package/dist/types/src/components/GrImageViewer/composables/usePointerGestures.d.ts +36 -0
  681. package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +7 -4
  682. package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +3 -2
  683. package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +17 -3
  684. package/dist/types/src/components/GrImageViewer/config.d.ts +1 -1
  685. package/dist/types/src/components/GrImageViewer/grImageViewerStyles.d.ts +21 -0
  686. package/dist/types/src/components/GrImageViewer/index.d.ts +7 -0
  687. package/dist/types/src/components/GrImageViewer/safelist.d.ts +1 -0
  688. package/dist/types/src/components/GrInput/GrInput.vue.d.ts +75 -30
  689. package/dist/types/src/components/GrInput/config.d.ts +1 -1
  690. package/dist/types/src/components/GrInput/defaults.d.ts +18 -0
  691. package/dist/types/src/components/GrInput/grInputStyles.d.ts +54 -8
  692. package/dist/types/src/components/GrInput/index.d.ts +6 -0
  693. package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +100 -17
  694. package/dist/types/src/components/GrInputTag/config.d.ts +1 -1
  695. package/dist/types/src/components/GrInputTag/defaults.d.ts +17 -0
  696. package/dist/types/src/components/GrInputTag/grInputTagStyles.d.ts +24 -1
  697. package/dist/types/src/components/GrInputTag/index.d.ts +5 -0
  698. package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +31 -10
  699. package/dist/types/src/components/GrKbd/config.d.ts +1 -1
  700. package/dist/types/src/components/GrKbd/defaults.d.ts +14 -0
  701. package/dist/types/src/components/GrKbd/grKbdStyles.d.ts +15 -0
  702. package/dist/types/src/components/GrKbd/index.d.ts +4 -1
  703. package/dist/types/src/components/GrKbd/safelist.d.ts +1 -0
  704. package/dist/types/src/components/GrLink/GrLink.vue.d.ts +26 -13
  705. package/dist/types/src/components/GrLink/config.d.ts +1 -1
  706. package/dist/types/src/components/GrLink/defaults.d.ts +14 -0
  707. package/dist/types/src/components/GrLink/grLinkStyles.d.ts +13 -15
  708. package/dist/types/src/components/GrLink/index.d.ts +2 -0
  709. package/dist/types/src/components/GrList/GrList.vue.d.ts +57 -32
  710. package/dist/types/src/components/GrList/GrListItem.vue.d.ts +42 -9
  711. package/dist/types/src/components/GrList/config.d.ts +1 -1
  712. package/dist/types/src/components/GrList/grListStyles.d.ts +25 -0
  713. package/dist/types/src/components/GrList/index.d.ts +5 -0
  714. package/dist/types/src/components/GrList/safelist.d.ts +1 -0
  715. package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +59 -19
  716. package/dist/types/src/components/GrLoading/config.d.ts +1 -1
  717. package/dist/types/src/components/GrLoading/grLoadingStyles.d.ts +10 -2
  718. package/dist/types/src/components/GrLoading/index.d.ts +1 -0
  719. package/dist/types/src/components/GrModal/GrModal.vue.d.ts +58 -12
  720. package/dist/types/src/components/GrModal/config.d.ts +1 -1
  721. package/dist/types/src/components/GrModal/context.d.ts +37 -0
  722. package/dist/types/src/components/GrModal/defaults.d.ts +14 -0
  723. package/dist/types/src/components/GrModal/grModalStyles.d.ts +25 -10
  724. package/dist/types/src/components/GrModal/index.d.ts +6 -3
  725. package/dist/types/src/components/GrNavbar/GrNavbar.vue.d.ts +28 -9
  726. package/dist/types/src/components/GrNavbar/config.d.ts +1 -1
  727. package/dist/types/src/components/GrNavbar/grNavbarStyles.d.ts +23 -0
  728. package/dist/types/src/components/GrNavbar/index.d.ts +2 -0
  729. package/dist/types/src/components/GrNavbar/safelist.d.ts +1 -0
  730. package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +70 -23
  731. package/dist/types/src/components/GrNumberInput/config.d.ts +1 -1
  732. package/dist/types/src/components/GrNumberInput/defaults.d.ts +15 -0
  733. package/dist/types/src/components/GrNumberInput/grNumberInputStyles.d.ts +20 -4
  734. package/dist/types/src/components/GrNumberInput/index.d.ts +5 -0
  735. package/dist/types/src/components/GrNumberInput/numberInputMath.d.ts +17 -0
  736. package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +65 -1
  737. package/dist/types/src/components/GrPagination/config.d.ts +1 -1
  738. package/dist/types/src/components/GrPagination/defaults.d.ts +10 -0
  739. package/dist/types/src/components/GrPagination/grPaginationStyles.d.ts +19 -0
  740. package/dist/types/src/components/GrPagination/index.d.ts +4 -0
  741. package/dist/types/src/components/GrPagination/safelist.d.ts +1 -0
  742. package/dist/types/src/components/GrPopover/GrPopover.vue.d.ts +161 -0
  743. package/dist/types/src/components/GrPopover/config.d.ts +1 -0
  744. package/dist/types/src/components/GrPopover/defaults.d.ts +15 -0
  745. package/dist/types/src/components/GrPopover/grPopoverStyles.d.ts +28 -0
  746. package/dist/types/src/components/GrPopover/index.d.ts +11 -0
  747. package/dist/types/src/components/GrPopover/safelist.d.ts +1 -0
  748. package/dist/types/src/components/GrProgressBar/GrProgressBar.vue.d.ts +37 -5
  749. package/dist/types/src/components/GrProgressBar/config.d.ts +1 -1
  750. package/dist/types/src/components/GrProgressBar/defaults.d.ts +11 -0
  751. package/dist/types/src/components/GrProgressBar/grStyle.d.ts +14 -0
  752. package/dist/types/src/components/GrProgressBar/index.d.ts +2 -1
  753. package/dist/types/src/components/GrProgressBar/safelist.d.ts +4 -0
  754. package/dist/types/src/components/GrProgressCircle/GrProgressCircle.vue.d.ts +103 -0
  755. package/dist/types/src/components/GrProgressCircle/config.d.ts +1 -0
  756. package/dist/types/src/components/GrProgressCircle/defaults.d.ts +18 -0
  757. package/dist/types/src/components/GrProgressCircle/geometry.d.ts +29 -0
  758. package/dist/types/src/components/GrProgressCircle/grProgressCircleStyles.d.ts +34 -0
  759. package/dist/types/src/components/GrProgressCircle/index.d.ts +11 -0
  760. package/dist/types/src/components/GrProgressCircle/safelist.d.ts +1 -0
  761. package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +81 -13
  762. package/dist/types/src/components/GrPromptDialog/config.d.ts +1 -1
  763. package/dist/types/src/components/GrPromptDialog/defaults.d.ts +14 -0
  764. package/dist/types/src/components/GrPromptDialog/index.d.ts +1 -0
  765. package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +30 -11
  766. package/dist/types/src/components/GrRadio/config.d.ts +1 -1
  767. package/dist/types/src/components/GrRadio/defaults.d.ts +14 -0
  768. package/dist/types/src/components/GrRadio/grRadioGroupContext.d.ts +37 -2
  769. package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +52 -9
  770. package/dist/types/src/components/GrRadio/index.d.ts +2 -0
  771. package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +58 -14
  772. package/dist/types/src/components/GrRadioGroup/config.d.ts +1 -1
  773. package/dist/types/src/components/GrRadioGroup/defaults.d.ts +14 -0
  774. package/dist/types/src/components/GrRadioGroup/index.d.ts +5 -0
  775. package/dist/types/src/components/GrRating/GrRating.vue.d.ts +173 -0
  776. package/dist/types/src/components/GrRating/config.d.ts +1 -0
  777. package/dist/types/src/components/GrRating/defaults.d.ts +14 -0
  778. package/dist/types/src/components/GrRating/grRatingStyles.d.ts +24 -0
  779. package/dist/types/src/components/GrRating/index.d.ts +10 -0
  780. package/dist/types/src/components/GrRating/safelist.d.ts +1 -0
  781. package/dist/types/src/components/GrResponseErrorBanner/GrFormErrorBanner.vue.d.ts +8 -4
  782. package/dist/types/src/components/GrResponseErrorBanner/GrResponseErrorBanner.vue.d.ts +8 -4
  783. package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +12 -5
  784. package/dist/types/src/components/GrResponseErrorBanner/config.d.ts +1 -1
  785. package/dist/types/src/components/GrResponseErrorBanner/index.d.ts +6 -0
  786. package/dist/types/src/components/GrResponseErrorBanner/parsers/httpStatusParser.d.ts +3 -1
  787. package/dist/types/src/components/GrResponseErrorBanner/parsers/plainMessageParser.d.ts +4 -1
  788. package/dist/types/src/components/GrResponseErrorBanner/responseError.types.d.ts +12 -2
  789. package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +55 -16
  790. package/dist/types/src/components/GrSegmented/config.d.ts +1 -1
  791. package/dist/types/src/components/GrSegmented/defaults.d.ts +15 -0
  792. package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +31 -5
  793. package/dist/types/src/components/GrSegmented/index.d.ts +6 -1
  794. package/dist/types/src/components/GrSegmented/safelist.d.ts +3 -1
  795. package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +160 -96
  796. package/dist/types/src/components/GrSelect/composables/useSelectNavigation.d.ts +52 -0
  797. package/dist/types/src/components/GrSelect/composables/useSelectPanelItems.d.ts +67 -0
  798. package/dist/types/src/components/GrSelect/composables/useSelectValues.d.ts +37 -0
  799. package/dist/types/src/components/GrSelect/composables/useSelectVirtualization.d.ts +27 -0
  800. package/dist/types/src/components/GrSelect/config.d.ts +1 -1
  801. package/dist/types/src/components/GrSelect/defaults.d.ts +17 -0
  802. package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +65 -10
  803. package/dist/types/src/components/GrSelect/index.d.ts +6 -1
  804. package/dist/types/src/components/GrSelect/selectValue.d.ts +20 -0
  805. package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +30 -5
  806. package/dist/types/src/components/GrSidebar/GrSidebarGroup.vue.d.ts +43 -0
  807. package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +6 -6
  808. package/dist/types/src/components/GrSidebar/config.d.ts +1 -1
  809. package/dist/types/src/components/GrSidebar/grSidebarStyles.d.ts +48 -0
  810. package/dist/types/src/components/GrSidebar/index.d.ts +6 -0
  811. package/dist/types/src/components/GrSidebar/safelist.d.ts +1 -0
  812. package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +23 -7
  813. package/dist/types/src/components/GrSkeleton/config.d.ts +1 -1
  814. package/dist/types/src/components/GrSkeleton/grSkeletonStyles.d.ts +9 -0
  815. package/dist/types/src/components/GrSkeleton/index.d.ts +1 -0
  816. package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +138 -0
  817. package/dist/types/src/components/GrSlider/config.d.ts +1 -0
  818. package/dist/types/src/components/GrSlider/defaults.d.ts +14 -0
  819. package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +75 -0
  820. package/dist/types/src/components/GrSlider/index.d.ts +10 -0
  821. package/dist/types/src/components/GrSlider/safelist.d.ts +1 -0
  822. package/dist/types/src/components/GrSplitter/GrSplitter.vue.d.ts +121 -0
  823. package/dist/types/src/components/GrSplitter/config.d.ts +1 -0
  824. package/dist/types/src/components/GrSplitter/defaults.d.ts +16 -0
  825. package/dist/types/src/components/GrSplitter/grSplitterStyles.d.ts +9 -0
  826. package/dist/types/src/components/GrSplitter/index.d.ts +11 -0
  827. package/dist/types/src/components/GrSplitter/safelist.d.ts +1 -0
  828. package/dist/types/src/components/GrSplitter/splitterGeometry.d.ts +39 -0
  829. package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +165 -0
  830. package/dist/types/src/components/GrStatistic/config.d.ts +1 -0
  831. package/dist/types/src/components/GrStatistic/countUp.d.ts +17 -0
  832. package/dist/types/src/components/GrStatistic/defaults.d.ts +14 -0
  833. package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +20 -0
  834. package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +37 -0
  835. package/dist/types/src/components/GrStatistic/index.d.ts +7 -0
  836. package/dist/types/src/components/GrStatistic/safelist.d.ts +1 -0
  837. package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +72 -10
  838. package/dist/types/src/components/GrSwitch/config.d.ts +1 -1
  839. package/dist/types/src/components/GrSwitch/defaults.d.ts +14 -0
  840. package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +46 -5
  841. package/dist/types/src/components/GrSwitch/index.d.ts +6 -1
  842. package/dist/types/src/components/GrSwitch/safelist.d.ts +4 -1
  843. package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +12 -9
  844. package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +4 -14
  845. package/dist/types/src/components/GrTabPanels/config.d.ts +1 -1
  846. package/dist/types/src/components/GrTabPanels/context.d.ts +1 -1
  847. package/dist/types/src/components/GrTabPanels/index.d.ts +2 -0
  848. package/dist/types/src/components/GrTable/GrTable.vue.d.ts +101 -15
  849. package/dist/types/src/components/GrTable/config.d.ts +1 -1
  850. package/dist/types/src/components/GrTable/defaults.d.ts +10 -0
  851. package/dist/types/src/components/GrTable/grTableStyles.d.ts +20 -0
  852. package/dist/types/src/components/GrTable/index.d.ts +7 -1
  853. package/dist/types/src/components/GrTable/safelist.d.ts +1 -0
  854. package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +92 -6
  855. package/dist/types/src/components/GrTabs/config.d.ts +1 -1
  856. package/dist/types/src/components/GrTabs/defaults.d.ts +12 -0
  857. package/dist/types/src/components/GrTabs/grTabsStyles.d.ts +71 -0
  858. package/dist/types/src/components/GrTabs/index.d.ts +5 -0
  859. package/dist/types/src/components/GrTabs/safelist.d.ts +1 -0
  860. package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +90 -25
  861. package/dist/types/src/components/GrTextarea/config.d.ts +1 -1
  862. package/dist/types/src/components/GrTextarea/defaults.d.ts +18 -0
  863. package/dist/types/src/components/GrTextarea/grTextareaStyles.d.ts +33 -1
  864. package/dist/types/src/components/GrTextarea/index.d.ts +6 -1
  865. package/dist/types/src/components/GrTimeline/GrTimeline.vue.d.ts +70 -0
  866. package/dist/types/src/components/GrTimeline/GrTimelineItem.vue.d.ts +84 -0
  867. package/dist/types/src/components/GrTimeline/config.d.ts +1 -0
  868. package/dist/types/src/components/GrTimeline/defaults.d.ts +19 -0
  869. package/dist/types/src/components/GrTimeline/grTimelineContext.d.ts +18 -0
  870. package/dist/types/src/components/GrTimeline/grTimelineStyles.d.ts +37 -0
  871. package/dist/types/src/components/GrTimeline/index.d.ts +12 -0
  872. package/dist/types/src/components/GrTimeline/safelist.d.ts +1 -0
  873. package/dist/types/src/components/GrTimeline/timelineGroups.d.ts +23 -0
  874. package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +44 -3
  875. package/dist/types/src/components/GrToaster/config.d.ts +1 -1
  876. package/dist/types/src/components/GrToaster/index.d.ts +4 -1
  877. package/dist/types/src/components/GrTooltip/GrTooltip.vue.d.ts +58 -7
  878. package/dist/types/src/components/GrTooltip/config.d.ts +1 -1
  879. package/dist/types/src/components/GrTooltip/defaults.d.ts +10 -0
  880. package/dist/types/src/components/GrTooltip/grTooltipStyles.d.ts +8 -0
  881. package/dist/types/src/components/GrTooltip/index.d.ts +5 -1
  882. package/dist/types/src/components/GrTooltip/safelist.d.ts +1 -0
  883. package/dist/types/src/components/GrTree/GrTree.vue.d.ts +20 -7
  884. package/dist/types/src/components/GrTree/config.d.ts +1 -1
  885. package/dist/types/src/components/GrTree/defaults.d.ts +10 -0
  886. package/dist/types/src/components/GrTree/grTreeChecking.d.ts +31 -0
  887. package/dist/types/src/components/GrTree/grTreeDataAdapter.d.ts +2 -0
  888. package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +9 -0
  889. package/dist/types/src/components/GrTree/grTreeProps.d.ts +60 -11
  890. package/dist/types/src/components/GrTree/grTreeStore.d.ts +27 -1
  891. package/dist/types/src/components/GrTree/grTreeStyles.d.ts +22 -0
  892. package/dist/types/src/components/GrTree/grTreeTypes.d.ts +15 -0
  893. package/dist/types/src/components/GrTree/index.d.ts +5 -1
  894. package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +31 -10
  895. package/dist/types/src/components/GrTreeSelect/config.d.ts +1 -1
  896. package/dist/types/src/components/GrTreeSelect/defaults.d.ts +10 -0
  897. package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +30 -2
  898. package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +43 -0
  899. package/dist/types/src/components/GrTreeSelect/index.d.ts +5 -0
  900. package/dist/types/src/components/shared/hotkey.d.ts +46 -0
  901. package/dist/types/src/components/shared/instance.d.ts +15 -0
  902. package/dist/types/src/components/shared/optionFilter.d.ts +61 -0
  903. package/dist/types/src/components/shared/sizes.d.ts +30 -0
  904. package/dist/types/src/components/shared/slotNodes.d.ts +19 -0
  905. package/dist/types/src/composables/internal/focusables.d.ts +30 -0
  906. package/dist/types/src/composables/internal/inert.d.ts +35 -0
  907. package/dist/types/src/composables/internal/overlayStack.d.ts +60 -0
  908. package/dist/types/src/composables/internal/portalRoot.d.ts +27 -0
  909. package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +1 -1
  910. package/dist/types/src/composables/internal/useComboboxNavigation.d.ts +51 -0
  911. package/dist/types/src/composables/internal/useControlAddons.d.ts +61 -0
  912. package/dist/types/src/composables/internal/useControlledOpen.d.ts +14 -0
  913. package/dist/types/src/composables/internal/useFilePreviews.d.ts +26 -0
  914. package/dist/types/src/composables/internal/useFocusWithin.d.ts +32 -0
  915. package/dist/types/src/composables/internal/useInertOthers.d.ts +9 -0
  916. package/dist/types/src/composables/internal/useModalOverlay.d.ts +95 -0
  917. package/dist/types/src/composables/internal/useOverlayPresence.d.ts +24 -0
  918. package/dist/types/src/composables/internal/useScrollLock.d.ts +10 -5
  919. package/dist/types/src/composables/internal/useTeleportEnabled.d.ts +35 -0
  920. package/dist/types/src/composables/useAnnouncer.d.ts +44 -0
  921. package/dist/types/src/composables/useDismissible.d.ts +32 -0
  922. package/dist/types/src/composables/useFocusTrap.d.ts +50 -0
  923. package/dist/types/src/composables/useGrFormControl.d.ts +52 -0
  924. package/dist/types/src/composables/useOverlayLayer.d.ts +67 -0
  925. package/dist/types/src/composables/usePortalTarget.d.ts +28 -0
  926. package/dist/types/src/composables/useTheme.d.ts +48 -2
  927. package/dist/types/src/composables/useToast.d.ts +44 -11
  928. package/dist/types/src/composables/useVirtualList.d.ts +119 -0
  929. package/dist/types/src/directives/loading.d.ts +7 -1
  930. package/dist/types/src/fileValidation/i18n.d.ts +24 -0
  931. package/dist/types/src/fileValidation/index.d.ts +4 -2
  932. package/dist/types/src/fileValidation/maxCountValidator.d.ts +9 -0
  933. package/dist/types/src/fileValidation/maxFileSize.d.ts +16 -0
  934. package/dist/types/src/fileValidation/types.d.ts +8 -2
  935. package/dist/types/src/granular-provider/index.d.ts +1 -1
  936. package/dist/types/src/granular-provider/node.d.ts +2 -3
  937. package/dist/types/src/granular-provider/shared.d.ts +20 -18
  938. package/dist/types/src/i18n/adapter.d.ts +24 -0
  939. package/dist/types/src/i18n/messages/en.d.ts +358 -0
  940. package/dist/types/src/i18n/messages/es.d.ts +362 -0
  941. package/dist/types/src/i18n/messages/ru.d.ts +366 -0
  942. package/dist/types/src/index.d.ts +33 -3
  943. package/dist/types/src/internal/granularityFormat.d.ts +19 -0
  944. package/dist/types/src/internal/granularityI18n.d.ts +6 -0
  945. package/dist/types/src/internal/keyboard.d.ts +46 -0
  946. package/dist/types/src/tokens/generated.d.ts +6 -0
  947. package/dist/types/src/tokens/index.d.ts +13 -0
  948. package/dist/types/src/tokens/types.d.ts +54 -0
  949. package/dist/vue/index.js.map +1 -1
  950. package/dist/web-types.json +7038 -1716
  951. package/package.json +118 -17
  952. package/tokens/derived.json +142 -0
  953. package/tokens/foundation.json +558 -0
  954. package/tokens/themes/dark.json +499 -0
  955. package/tokens/themes/light.json +499 -0
  956. package/dist/GrBadge.css +0 -1
  957. package/dist/GrButtonGroup.css +0 -1
  958. package/dist/GrFormFile.css +0 -1
  959. package/dist/GrIcon.css +0 -1
  960. package/dist/GrLoading.css +0 -1
  961. package/dist/GrToaster.css +0 -1
  962. package/dist/GrTree.css +0 -1
  963. package/dist/chunks/config-1uSYl98Y2.js +0 -23
  964. package/dist/chunks/config-1uSYl98Y2.js.map +0 -1
  965. package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
  966. package/dist/chunks/config-B0qIpo8m.js +0 -5
  967. package/dist/chunks/config-B0qIpo8m.js.map +0 -1
  968. package/dist/chunks/config-B7IIWGt_2.js +0 -26
  969. package/dist/chunks/config-B7IIWGt_2.js.map +0 -1
  970. package/dist/chunks/config-BEegFP74.js +0 -5
  971. package/dist/chunks/config-BEegFP74.js.map +0 -1
  972. package/dist/chunks/config-BIRO0vDJ.js +0 -40
  973. package/dist/chunks/config-BIRO0vDJ.js.map +0 -1
  974. package/dist/chunks/config-BLHqZhy-2.js +0 -5
  975. package/dist/chunks/config-BLHqZhy-2.js.map +0 -1
  976. package/dist/chunks/config-BOlr7qw7.js +0 -106
  977. package/dist/chunks/config-BOlr7qw7.js.map +0 -1
  978. package/dist/chunks/config-BUHuGBik.js +0 -13
  979. package/dist/chunks/config-BUHuGBik.js.map +0 -1
  980. package/dist/chunks/config-BWGGp7uV.js +0 -8
  981. package/dist/chunks/config-BWGGp7uV.js.map +0 -1
  982. package/dist/chunks/config-BWiPnygb.js +0 -5
  983. package/dist/chunks/config-BWiPnygb.js.map +0 -1
  984. package/dist/chunks/config-BX1JTrkV2.js +0 -14
  985. package/dist/chunks/config-BX1JTrkV2.js.map +0 -1
  986. package/dist/chunks/config-BXtAmU3s2.js +0 -8
  987. package/dist/chunks/config-BXtAmU3s2.js.map +0 -1
  988. package/dist/chunks/config-Bah4oHwL.js +0 -8
  989. package/dist/chunks/config-Bah4oHwL.js.map +0 -1
  990. package/dist/chunks/config-C49QUoJL.js +0 -13
  991. package/dist/chunks/config-C49QUoJL.js.map +0 -1
  992. package/dist/chunks/config-C4snOIXg.js +0 -9
  993. package/dist/chunks/config-C4snOIXg.js.map +0 -1
  994. package/dist/chunks/config-C7NpDrfO.js +0 -44
  995. package/dist/chunks/config-C7NpDrfO.js.map +0 -1
  996. package/dist/chunks/config-C86UzUYf.js +0 -13
  997. package/dist/chunks/config-C86UzUYf.js.map +0 -1
  998. package/dist/chunks/config-C9AcVDkv.js +0 -5
  999. package/dist/chunks/config-C9AcVDkv.js.map +0 -1
  1000. package/dist/chunks/config-CGHLoBlH.js +0 -5
  1001. package/dist/chunks/config-CGHLoBlH.js.map +0 -1
  1002. package/dist/chunks/config-CThzliFi.js +0 -5
  1003. package/dist/chunks/config-CThzliFi.js.map +0 -1
  1004. package/dist/chunks/config-Cb2PAlSD.js +0 -8
  1005. package/dist/chunks/config-Cb2PAlSD.js.map +0 -1
  1006. package/dist/chunks/config-ClhKPJvg.js +0 -53
  1007. package/dist/chunks/config-ClhKPJvg.js.map +0 -1
  1008. package/dist/chunks/config-Cpi9Mh2J.js +0 -17
  1009. package/dist/chunks/config-Cpi9Mh2J.js.map +0 -1
  1010. package/dist/chunks/config-CrG1XiE72.js +0 -58
  1011. package/dist/chunks/config-CrG1XiE72.js.map +0 -1
  1012. package/dist/chunks/config-CziwTDDL.js +0 -39
  1013. package/dist/chunks/config-CziwTDDL.js.map +0 -1
  1014. package/dist/chunks/config-D7GZO-Dx.js +0 -8
  1015. package/dist/chunks/config-D7GZO-Dx.js.map +0 -1
  1016. package/dist/chunks/config-DICOd-2X.js +0 -5
  1017. package/dist/chunks/config-DICOd-2X.js.map +0 -1
  1018. package/dist/chunks/config-DUcu1D682.js +0 -45
  1019. package/dist/chunks/config-DUcu1D682.js.map +0 -1
  1020. package/dist/chunks/config-D_R56_gT.js +0 -35
  1021. package/dist/chunks/config-D_R56_gT.js.map +0 -1
  1022. package/dist/chunks/config-DezDih8_.js +0 -78
  1023. package/dist/chunks/config-DezDih8_.js.map +0 -1
  1024. package/dist/chunks/config-Dlm49Jp5.js +0 -5
  1025. package/dist/chunks/config-Dlm49Jp5.js.map +0 -1
  1026. package/dist/chunks/config-DnvPqu4g2.js +0 -22
  1027. package/dist/chunks/config-DnvPqu4g2.js.map +0 -1
  1028. package/dist/chunks/config-DpqOnJiz.js.map +0 -1
  1029. package/dist/chunks/config-Dxuwwepq.js +0 -5
  1030. package/dist/chunks/config-Dxuwwepq.js.map +0 -1
  1031. package/dist/chunks/config-HZto2PVy.js +0 -5
  1032. package/dist/chunks/config-HZto2PVy.js.map +0 -1
  1033. package/dist/chunks/config-JOtB4mzs.js +0 -8
  1034. package/dist/chunks/config-JOtB4mzs.js.map +0 -1
  1035. package/dist/chunks/config-JpHA4Xx02.js +0 -8
  1036. package/dist/chunks/config-JpHA4Xx02.js.map +0 -1
  1037. package/dist/chunks/config-PFg39mYo.js +0 -5
  1038. package/dist/chunks/config-PFg39mYo.js.map +0 -1
  1039. package/dist/chunks/config-QYGvEBu5.js +0 -22
  1040. package/dist/chunks/config-QYGvEBu5.js.map +0 -1
  1041. package/dist/chunks/config-U4m9PSql.js +0 -8
  1042. package/dist/chunks/config-U4m9PSql.js.map +0 -1
  1043. package/dist/chunks/config-ZiXWIRBX.js +0 -8
  1044. package/dist/chunks/config-ZiXWIRBX.js.map +0 -1
  1045. package/dist/chunks/config-eYLZYOUS2.js +0 -171
  1046. package/dist/chunks/config-eYLZYOUS2.js.map +0 -1
  1047. package/dist/chunks/config-ipvU0lzP2.js +0 -5
  1048. package/dist/chunks/config-ipvU0lzP2.js.map +0 -1
  1049. package/dist/chunks/config-jBp9wVv-.js +0 -20
  1050. package/dist/chunks/config-jBp9wVv-.js.map +0 -1
  1051. package/dist/chunks/config-xR4XVmcy.js +0 -8
  1052. package/dist/chunks/config-xR4XVmcy.js.map +0 -1
  1053. package/dist/chunks/en-CfkDa4GX.js +0 -144
  1054. package/dist/chunks/en-CfkDa4GX.js.map +0 -1
  1055. package/dist/chunks/es-CgaLnFYx.js +0 -20
  1056. package/dist/chunks/es-CgaLnFYx.js.map +0 -1
  1057. package/dist/chunks/es-FkgECuCm.js +0 -144
  1058. package/dist/chunks/es-FkgECuCm.js.map +0 -1
  1059. package/dist/chunks/fileValidation-C3WFaWU2.js +0 -220
  1060. package/dist/chunks/fileValidation-C3WFaWU2.js.map +0 -1
  1061. package/dist/chunks/grBadgeStyles-DrycBuKT.js +0 -50
  1062. package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +0 -1
  1063. package/dist/chunks/grButtonStyles-C7Yga_Q1.js +0 -191
  1064. package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +0 -1
  1065. package/dist/chunks/grDropdownStyles-B_-DKytw.js +0 -35
  1066. package/dist/chunks/grDropdownStyles-B_-DKytw.js.map +0 -1
  1067. package/dist/chunks/grLoadingStyles-R5sreH__.js +0 -17
  1068. package/dist/chunks/grLoadingStyles-R5sreH__.js.map +0 -1
  1069. package/dist/chunks/grModalEscStack-BXk-9mv7.js +0 -43
  1070. package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +0 -1
  1071. package/dist/chunks/grModalStyles-DWd3i05Q.js +0 -47
  1072. package/dist/chunks/grModalStyles-DWd3i05Q.js.map +0 -1
  1073. package/dist/chunks/grSelectStyles-CLK5hRd3.js +0 -97
  1074. package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +0 -1
  1075. package/dist/chunks/grStyle-Blc9otAx.js +0 -19
  1076. package/dist/chunks/grStyle-Blc9otAx.js.map +0 -1
  1077. package/dist/chunks/granularityI18n-DoV7Ca2m.js +0 -61
  1078. package/dist/chunks/granularityI18n-DoV7Ca2m.js.map +0 -1
  1079. package/dist/chunks/ru-Bl8CxpEa.js +0 -144
  1080. package/dist/chunks/ru-Bl8CxpEa.js.map +0 -1
  1081. package/dist/chunks/safelist-Do2RtzLB.js +0 -24
  1082. package/dist/chunks/safelist-Do2RtzLB.js.map +0 -1
  1083. package/dist/chunks/shared-B6Ay2081.js +0 -174
  1084. package/dist/chunks/shared-B6Ay2081.js.map +0 -1
  1085. package/dist/chunks/useAddonMeasurement-DM0akF4C.js +0 -65
  1086. package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +0 -1
  1087. package/dist/chunks/useEscapeToClose-C2t_S1gh.js +0 -27
  1088. package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +0 -1
  1089. package/dist/chunks/useFloating-DtM6TyE4.js +0 -1249
  1090. package/dist/chunks/useFloating-DtM6TyE4.js.map +0 -1
  1091. package/dist/chunks/useScrollLock-K7kaP2Ud.js +0 -1757
  1092. package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +0 -1
  1093. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js +0 -163
  1094. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +0 -1
  1095. package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js +0 -41
  1096. package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js.map +0 -1
  1097. package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js +0 -36
  1098. package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js.map +0 -1
  1099. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js +0 -33
  1100. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js.map +0 -1
  1101. package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js +0 -31
  1102. package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js.map +0 -1
  1103. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +0 -124
  1104. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +0 -1
  1105. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js +0 -21
  1106. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +0 -1
  1107. package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js +0 -11
  1108. package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +0 -1
  1109. package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js +0 -182
  1110. package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +0 -1
  1111. package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js +0 -205
  1112. package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js.map +0 -1
  1113. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js +0 -160
  1114. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +0 -1
  1115. package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js +0 -205
  1116. package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +0 -1
  1117. package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js +0 -223
  1118. package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +0 -1
  1119. package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js +0 -425
  1120. package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +0 -1
  1121. package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js +0 -54
  1122. package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +0 -1
  1123. package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js +0 -184
  1124. package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +0 -1
  1125. package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js +0 -181
  1126. package/dist/components/GrDropdown/chunks/GrDropdown-BnDMYP8v.js.map +0 -1
  1127. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu--g9Vofcq.js +0 -309
  1128. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu--g9Vofcq.js.map +0 -1
  1129. package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js +0 -62
  1130. package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js.map +0 -1
  1131. package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js +0 -592
  1132. package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +0 -1
  1133. package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js +0 -73
  1134. package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +0 -1
  1135. package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js +0 -320
  1136. package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +0 -1
  1137. package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js +0 -35
  1138. package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js.map +0 -1
  1139. package/dist/components/GrIcon/chunks/GrIcon-D9AWQLk2.js +0 -32
  1140. package/dist/components/GrIcon/chunks/GrIcon-D9AWQLk2.js.map +0 -1
  1141. package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js +0 -650
  1142. package/dist/components/GrImageViewer/chunks/GrImageViewer-Dla9IBkd.js.map +0 -1
  1143. package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js +0 -334
  1144. package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +0 -1
  1145. package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js +0 -260
  1146. package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
  1147. package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js +0 -22
  1148. package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +0 -1
  1149. package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js +0 -100
  1150. package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +0 -1
  1151. package/dist/components/GrList/chunks/GrList-Dx772Ns4.js +0 -77
  1152. package/dist/components/GrList/chunks/GrList-Dx772Ns4.js.map +0 -1
  1153. package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js +0 -69
  1154. package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js.map +0 -1
  1155. package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js +0 -233
  1156. package/dist/components/GrModal/chunks/GrModal-C0GZrHN3.js.map +0 -1
  1157. package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js +0 -75
  1158. package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
  1159. package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js +0 -469
  1160. package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +0 -1
  1161. package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js +0 -165
  1162. package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +0 -1
  1163. package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js +0 -39
  1164. package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
  1165. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js +0 -224
  1166. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +0 -1
  1167. package/dist/components/GrRadio/chunks/GrRadio-Dr-pvs_9.js +0 -184
  1168. package/dist/components/GrRadio/chunks/GrRadio-Dr-pvs_9.js.map +0 -1
  1169. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-nOdvfV_g.js +0 -80
  1170. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-nOdvfV_g.js.map +0 -1
  1171. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js +0 -224
  1172. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +0 -1
  1173. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-Cdu9ekK9.js +0 -782
  1174. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-Cdu9ekK9.js.map +0 -1
  1175. package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js +0 -323
  1176. package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
  1177. package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js +0 -644
  1178. package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +0 -1
  1179. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +0 -238
  1180. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +0 -1
  1181. package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js +0 -33
  1182. package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js.map +0 -1
  1183. package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js +0 -79
  1184. package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js.map +0 -1
  1185. package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js +0 -68
  1186. package/dist/components/GrTabPanels/chunks/GrTabPanels-DbKybwe-.js.map +0 -1
  1187. package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js +0 -57
  1188. package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js.map +0 -1
  1189. package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js +0 -123
  1190. package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +0 -1
  1191. package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js +0 -81
  1192. package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +0 -1
  1193. package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js +0 -189
  1194. package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +0 -1
  1195. package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js +0 -109
  1196. package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
  1197. package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js +0 -838
  1198. package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +0 -1
  1199. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-0aM62xyu.js +0 -426
  1200. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-0aM62xyu.js.map +0 -1
  1201. package/dist/granular-provider-node.js.map +0 -1
  1202. package/dist/granular-provider.js.map +0 -1
  1203. package/dist/index.js.map +0 -1
  1204. package/dist/types/src/components/GrButton/config.node.d.ts +0 -1
  1205. package/dist/types/src/components/GrFileUpload/maxSizeMbValidator.d.ts +0 -1
  1206. package/dist/types/src/components/GrModal/grModalEscStack.d.ts +0 -30
  1207. package/dist/types/src/components/GrModal/grModalTopStack.d.ts +0 -31
  1208. package/dist/types/src/components/GrProgressBar/config.node.d.ts +0 -1
  1209. package/dist/types/src/composables/internal/useEscapeToClose.d.ts +0 -11
  1210. package/dist/types/src/fileValidation/maxFileSizeBytesValidator.d.ts +0 -2
  1211. package/dist/types/src/fileValidation/maxSizeMbValidator.d.ts +0 -2
  1212. /package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
  1213. /package/dist/chunks/{config-DpqOnJiz.js → config-DpqOnJiz2.js} +0 -0
  1214. /package/dist/{GrSkeleton.css → components/GrSkeleton/styles.css} +0 -0
  1215. /package/dist/types/src/composables/{internal/useFloating.d.ts → useFloating.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"GrResponseErrorBanner-Cdu9ekK9.js","names":[],"sources":["../../../../src/components/GrResponseErrorBanner/responseError.defaults.ts","../../../../src/components/GrResponseErrorBanner/parsers/abortErrorParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/fileValidationParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/httpStatusParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/jsonApiErrorParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/laravelValidationParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/networkErrorParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/normalizeError.ts","../../../../src/components/GrResponseErrorBanner/parsers/plainMessageParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/problemDetailsParser.ts","../../../../src/components/GrResponseErrorBanner/parsers/createResponseErrorClassifier.ts","../../../../src/components/GrResponseErrorBanner/GrResponseErrorBanner.vue","../../../../src/components/GrResponseErrorBanner/GrResponseErrorBanner.vue"],"sourcesContent":["import type { ResponseErrorKind, ResponseErrorTexts, ResponseErrorTone } from './responseError.types'\n\n/**\n * Default English texts. Any field can be overridden via the `texts` prop\n * on `GrResponseErrorBanner` or the `texts` option of `useResponseError`.\n */\nexport const DEFAULT_RESPONSE_ERROR_TEXTS: ResponseErrorTexts = {\n networkTitle: 'No connection to the server',\n networkMessage: 'Check your internet connection and try again.',\n abortedTitle: 'Request cancelled',\n abortedMessage: 'The request was cancelled.',\n validationTitle: 'Check the data',\n validationMessage: 'The server returned a validation error. Fix the fields and try again.',\n clientTitle: 'Request error',\n clientMessage: 'The server rejected the request.',\n serverTitle: 'Server error',\n serverMessage: 'A server error occurred. Please try again.',\n unknownTitle: 'Something went wrong',\n unknownMessage: 'The operation could not be completed. Please try again.',\n retryLabel: 'Retry',\n dismissLabel: 'Dismiss',\n}\n\n/**\n * Маппинг `kind` → `tone` по умолчанию. Применяется внутри баннера, если\n * пользователь не передал `tone` или `toneByKind`. Цель — визуально отделить\n * «исправь ввод» (warning) от «упало по сети/серверу» (danger).\n */\nexport const DEFAULT_TONE_BY_KIND: Record<ResponseErrorKind, ResponseErrorTone> = {\n network: 'danger',\n aborted: 'info',\n validation: 'warning',\n client: 'warning',\n server: 'danger',\n unknown: 'danger',\n}\n\n/**\n * `kind`'ы, которые по умолчанию не показываются (баннер скрыт).\n * Семантика: отмена пользователем — не «ошибка», UI обычно тихо проглатывает.\n * Пользователь может переопределить через `autoHideKinds: []`, чтобы показать info-плашку.\n */\nexport const DEFAULT_AUTO_HIDE_KINDS: ResponseErrorKind[] = []\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Распознаёт отмену запроса клиентом.\n *\n * Триггеры:\n * - `ctx.isAbort === true` (выставляется `normalizeError` для `AbortError`,\n * axios `isCancel`/`ERR_CANCELED`, xhr `status === 0 && readyState === 4`).\n *\n * Возвращает `kind: 'aborted'` и `stop: true` — другие парсеры пропускаются,\n * чтобы случайный `status === 0` не интерпретировался как сетевая ошибка.\n *\n * По умолчанию `aborted` показывается info-плашкой; чтобы скрыть совсем —\n * добавьте `'aborted'` в `autoHideKinds`.\n */\nexport const abortErrorParser: ResponseErrorParser = (ctx) => {\n if (!ctx.isAbort) return null\n return {\n kind: 'aborted',\n message: ctx.texts.abortedMessage,\n stop: true,\n }\n}\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Распознаёт `FileValidationError` от `GrFileUpload` (или совместимый по форме\n * объект). Не зависит от жёсткого импорта класса — определяет по `name`.\n *\n * Активируется, если `ctx.raw.name === 'FileValidationError'` и есть массив\n * `issues`/`errors` с полями `{ file?, code?, message }`.\n *\n * Возвращает `kind: 'validation'` и `stop: true` — это локальная клиентская\n * валидация, незачем дальше идти по HTTP-парсерам.\n */\nexport const fileValidationParser: ResponseErrorParser = (ctx) => {\n const raw = ctx.raw as\n | undefined\n | {\n name?: string\n message?: string\n issues?: Array<{ file?: { name?: string }, message?: unknown, code?: string }>\n errors?: Array<{ file?: { name?: string }, message?: unknown, code?: string }>\n }\n if (!raw || typeof raw !== 'object') return null\n if (raw.name !== 'FileValidationError') return null\n\n const list = raw.issues ?? raw.errors ?? []\n const details: string[] = []\n for (const it of list) {\n if (!it || typeof it !== 'object') continue\n const msg = typeof it.message === 'string' ? it.message : ''\n if (!msg) continue\n const fileName = it.file?.name\n details.push(fileName ? `${fileName}: ${msg}` : msg)\n }\n\n return {\n kind: 'validation',\n message: raw.message || ctx.texts.validationMessage,\n details: details.length ? details : undefined,\n stop: true,\n }\n}\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Базовая классификация по HTTP-статусу.\n *\n * Правила:\n * - `400` / `422` ⇒ `kind: 'validation'`,\n * - остальные `4xx` ⇒ `kind: 'client'`,\n * - `>= 500` ⇒ `kind: 'server'`.\n *\n * Не использует `stop` — даёт более специализированным парсерам\n * (Laravel/JSON:API/RFC 7807) уточнить сообщение и `fieldErrors`.\n *\n * `message` берёт из `ctx.texts` как осмысленный фолбэк.\n */\nexport const httpStatusParser: ResponseErrorParser = (ctx) => {\n const status = ctx.status\n if (typeof status !== 'number') return null\n\n if (status >= 500) {\n return { kind: 'server', status, message: ctx.texts.serverMessage }\n }\n if (status === 400 || status === 422) {\n return { kind: 'validation', status, message: ctx.texts.validationMessage }\n }\n if (status >= 400) {\n return { kind: 'client', status, message: ctx.texts.clientMessage }\n }\n return null\n}\n","import type { ResponseErrorFieldError, ResponseErrorParser } from '../responseError.types'\n\n/**\n * Парсер JSON:API-стиля:\n *\n * ```json\n * { \"errors\": [\n * { \"status\": \"422\", \"title\": \"Invalid Attribute\",\n * \"detail\": \"Email is required.\",\n * \"source\": { \"pointer\": \"/data/attributes/email\" } }\n * ] }\n * ```\n *\n * Активируется, когда `ctx.body.errors` — массив объектов с `title`/`detail`.\n * Поле извлекается из последнего сегмента `source.pointer`. Все `detail`\n * собираются в `details`, первый `title` — в `message`.\n */\nexport const jsonApiErrorParser: ResponseErrorParser = (ctx) => {\n const body = ctx.body\n if (!body || typeof body !== 'object') return null\n\n const errors = (body as { errors?: unknown }).errors\n if (!Array.isArray(errors) || errors.length === 0) return null\n\n // Эвристика: первый элемент должен иметь title/detail/source — иначе это не JSON:API\n const first = errors[0]\n if (!first || typeof first !== 'object') return null\n const has = (key: string) => key in (first as object)\n if (!has('title') && !has('detail') && !has('source')) return null\n\n const fieldErrorsMap = new Map<string, string[]>()\n const details: string[] = []\n let message: string | undefined\n\n for (const e of errors) {\n if (!e || typeof e !== 'object') continue\n const eo = e as { title?: unknown, detail?: unknown, source?: { pointer?: unknown } }\n const text = (typeof eo.detail === 'string' && eo.detail) || (typeof eo.title === 'string' && eo.title) || ''\n if (!text) continue\n if (!message && typeof eo.title === 'string') message = eo.title\n\n const pointer = typeof eo.source?.pointer === 'string' ? eo.source.pointer : ''\n const field = pointer ? pointer.split('/').filter(Boolean).pop() : undefined\n\n if (field) {\n const list = fieldErrorsMap.get(field) ?? []\n list.push(text)\n fieldErrorsMap.set(field, list)\n }\n details.push(text)\n }\n\n if (!details.length) return null\n\n const fieldErrors: ResponseErrorFieldError[] = Array.from(fieldErrorsMap, ([field, messages]) => ({ field, messages }))\n\n const kind = fieldErrors.length ? 'validation' : undefined\n\n return {\n kind,\n message: message || (kind === 'validation' ? ctx.texts.validationMessage : ctx.texts.clientMessage),\n details,\n fieldErrors: fieldErrors.length ? fieldErrors : undefined,\n }\n}\n","import type { ResponseErrorFieldError, ResponseErrorParser } from '../responseError.types'\n\n/**\n * Парсит Laravel-формат ответа об ошибке валидации:\n *\n * ```json\n * { \"message\": \"The given data was invalid.\",\n * \"errors\": { \"file\": [\"The file is required.\"], \"amount\": [\"...\"] } }\n * ```\n *\n * Активируется при наличии `ctx.body.errors` как plain-объекта (значения —\n * массив строк или строка). Если есть `fieldErrors`, повышает `kind` до\n * `validation` независимо от статуса (полезно, когда сервер прислал 200/4xx\n * без 422). `message` берётся из `body.message` / `body.error`.\n */\nexport const laravelValidationParser: ResponseErrorParser = (ctx) => {\n const body = ctx.body\n if (!body || typeof body !== 'object' || Array.isArray(body)) return null\n\n const data = body as Record<string, unknown>\n const errors = data.errors\n if (!errors || typeof errors !== 'object' || Array.isArray(errors)) return null\n\n const fieldErrors: ResponseErrorFieldError[] = []\n for (const [field, raw] of Object.entries(errors as Record<string, unknown>)) {\n const messages = Array.isArray(raw)\n ? raw.filter((m): m is string => typeof m === 'string')\n : typeof raw === 'string' ? [raw] : []\n if (messages.length) fieldErrors.push({ field, messages })\n }\n\n if (!fieldErrors.length) return null\n\n const message = (typeof data.message === 'string' && data.message)\n || (typeof data.error === 'string' && data.error)\n || ctx.texts.validationMessage\n\n const details = fieldErrors.flatMap(fe => fe.messages)\n\n return {\n kind: 'validation',\n message,\n details,\n fieldErrors,\n }\n}\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Распознаёт транспортные ошибки **без ответа сервера**: отсутствие интернета,\n * DNS-фейл, CORS-preflight, fetch `TypeError('Failed to fetch')`,\n * axios `ERR_NETWORK`/`ECONNABORTED`.\n *\n * Триггеры:\n * - `ctx.isNetwork === true` (выставлено `normalizeError`),\n * - либо нет ни `status`, ни `body`, ни признака отмены, но есть исходная\n * ошибка с `code === 'ERR_NETWORK'` / `message ~ /network|fetch/i/`.\n *\n * Возвращает `kind: 'network'` и `stop: true`.\n */\nexport const networkErrorParser: ResponseErrorParser = (ctx) => {\n if (ctx.isAbort) return null\n\n if (ctx.isNetwork) {\n return {\n kind: 'network',\n message: ctx.texts.networkMessage,\n stop: true,\n }\n }\n\n // Эвристика для случаев, когда normalizeError не пометил, но статус-кода нет.\n if (typeof ctx.status !== 'number' && ctx.body == null && ctx.raw && typeof ctx.raw === 'object') {\n const r = ctx.raw as { code?: string, message?: string, name?: string }\n if (r.code === 'ERR_NETWORK' || (typeof r.message === 'string' && /network|failed to fetch/i.test(r.message))) {\n return {\n kind: 'network',\n message: ctx.texts.networkMessage,\n stop: true,\n }\n }\n }\n\n return null\n}\n","import type { NormalizedRawError } from '../responseError.types'\n\n/**\n * Универсально приводит «сырой» вход к {@link NormalizedRawError}.\n *\n * Поддерживаемые источники:\n * - **axios** — `AxiosError` с `response.status`/`response.data`/`response.headers`,\n * либо `request` без `response` + `code === 'ERR_NETWORK'`, либо `code === 'ERR_CANCELED'`.\n * - **fetch `Response`** — объект `Response` с `ok=false`. Тело читается через\n * `clone().json()` (с фолбэком на `.text()`); поэтому функция асинхронная.\n * - **fetch `TypeError`** — `TypeError('Failed to fetch')` ⇒ `isNetwork=true`.\n * - **`{ response: Response, body: unknown }`** — если потребитель уже прочитал тело сам.\n * - **`XMLHttpRequest`** / `{ status, responseText, response }` — пара полей.\n * - **`AbortError` / `DOMException`** ⇒ `isAbort=true`.\n * - **`Error`/строка/произвольный объект** — кладётся в `body`/`raw` как есть.\n *\n * Цель — отделить «откуда пришла ошибка» от «как её классифицировать»: парсеры\n * работают только с нормализованным `ResponseErrorContext`, не зная о транспорте.\n */\nexport async function normalizeError(raw: unknown): Promise<NormalizedRawError> {\n // 1) Уже нормализованный вход (потребитель сам подготовил)\n if (isPlainNormalized(raw)) {\n return { ...(raw), raw }\n }\n\n // 2) `{ response: Response, body }` — уже прочитанное тело\n if (isResponseEnvelope(raw)) {\n const res = raw.response\n return {\n raw,\n status: res.status,\n body: raw.body,\n headers: readHeaders(res),\n }\n }\n\n // 3) Голый fetch Response\n if (isFetchResponse(raw)) {\n const body = await readFetchBody(raw)\n return {\n raw,\n status: raw.status,\n body,\n headers: readHeaders(raw),\n }\n }\n\n // 4) XMLHttpRequest\n if (isXhr(raw)) {\n const body = parseMaybeJson(raw.responseText) ?? raw.response\n return {\n raw,\n status: typeof raw.status === 'number' ? raw.status : undefined,\n body,\n isAbort: raw.status === 0 && raw.readyState === 4,\n }\n }\n\n // 5) axios error (есть `isAxiosError` или `response`/`request` + `code`)\n if (isAxiosLike(raw)) {\n const e = raw\n const status = e.response?.status\n const code = e.code\n const isAbort = code === 'ERR_CANCELED' || code === 'CANCELED' || (e as { __CANCEL__?: boolean }).__CANCEL__ === true\n const isNetwork = !e.response && (code === 'ERR_NETWORK' || code === 'ECONNABORTED')\n\n return {\n raw,\n status,\n body: e.response?.data,\n headers: normalizeHeaderRecord(e.response?.headers),\n isAbort,\n isNetwork,\n }\n }\n\n // 6) AbortError / DOMException\n if (isAbortError(raw)) {\n return { raw, isAbort: true }\n }\n\n // 7) Сетевой TypeError от fetch\n if (raw instanceof TypeError && /fetch|network/i.test(raw.message || '')) {\n return { raw, isNetwork: true }\n }\n\n // 8) Произвольный Error / строка / объект\n if (raw instanceof Error) {\n return { raw, body: { message: raw.message } }\n }\n\n if (typeof raw === 'string') {\n return { raw, body: { message: raw } }\n }\n\n if (raw && typeof raw === 'object') {\n return { raw, body: raw }\n }\n\n return { raw }\n}\n\n// ----------------- helpers -----------------\n\ntype AxiosLikeError = Error & {\n isAxiosError?: boolean\n code?: string\n response?: { status?: number, data?: unknown, headers?: unknown }\n request?: unknown\n}\n\nfunction isPlainNormalized(v: unknown): v is NormalizedRawError {\n if (!v || typeof v !== 'object') return false\n const o = v as Record<string, unknown>\n return 'raw' in o && (\n 'status' in o || 'body' in o || 'isAbort' in o || 'isNetwork' in o || 'headers' in o\n )\n}\n\nfunction isResponseEnvelope(v: unknown): v is { response: Response, body: unknown } {\n return !!v && typeof v === 'object'\n && 'response' in (v)\n && isFetchResponse((v).response)\n}\n\nfunction isFetchResponse(v: unknown): v is Response {\n return typeof Response !== 'undefined' && v instanceof Response\n}\n\nfunction isXhr(v: unknown): v is XMLHttpRequest {\n return typeof XMLHttpRequest !== 'undefined' && v instanceof XMLHttpRequest\n}\n\nfunction isAxiosLike(v: unknown): v is AxiosLikeError {\n if (!v || typeof v !== 'object') return false\n const o = v as Record<string, unknown>\n return o.isAxiosError === true\n || ('response' in o && typeof o.response === 'object' && o.response !== null)\n || ('code' in o && typeof o.code === 'string')\n}\n\nfunction isAbortError(v: unknown): boolean {\n if (!v || typeof v !== 'object') return false\n const o = v as { name?: string, code?: string }\n return o.name === 'AbortError' || o.name === 'CanceledError' || o.code === 'ERR_CANCELED'\n}\n\nasync function readFetchBody(res: Response): Promise<unknown> {\n if (res.bodyUsed) return undefined\n try {\n const clone = res.clone()\n const text = await clone.text()\n return parseMaybeJson(text) ?? text\n }\n catch {\n return undefined\n }\n}\n\nfunction readHeaders(res: Response): Record<string, string> {\n const out: Record<string, string> = {}\n res.headers.forEach((value, key) => {\n out[key.toLowerCase()] = value\n })\n return out\n}\n\nfunction normalizeHeaderRecord(h: unknown): Record<string, string> | undefined {\n if (!h || typeof h !== 'object') return undefined\n const out: Record<string, string> = {}\n for (const [k, v] of Object.entries(h as Record<string, unknown>)) {\n if (typeof v === 'string') out[k.toLowerCase()] = v\n }\n return out\n}\n\nfunction parseMaybeJson(text: string | undefined): unknown {\n if (typeof text !== 'string' || !text) return undefined\n try {\n return JSON.parse(text)\n }\n catch {\n return undefined\n }\n}\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Финальный фолбэк-парсер. Достаёт хоть какое-нибудь человекочитаемое\n * сообщение, чтобы баннер не был пустым.\n *\n * Источники (по приоритету):\n * 1. `ctx.body` — если строка ⇒ message,\n * 2. `ctx.body[messageKey]` (default `'message'`),\n * 3. `ctx.body.error` (строка),\n * 4. `ctx.raw.message` (для голых `Error`).\n *\n * Не выставляет `kind` — оставляет на усмотрение классификатора.\n * Использует ключ `messageKey` из `ctx.meta._messageKey`, если задан.\n */\nexport const plainMessageParser: ResponseErrorParser = (ctx) => {\n const messageKey = (ctx.meta._messageKey as string | undefined) || 'message'\n\n if (typeof ctx.body === 'string' && ctx.body.trim()) {\n return { message: ctx.body }\n }\n\n if (ctx.body && typeof ctx.body === 'object') {\n const data = ctx.body as Record<string, unknown>\n const fromKey = data[messageKey]\n if (typeof fromKey === 'string' && fromKey) return { message: fromKey }\n if (typeof data.error === 'string' && data.error) return { message: data.error }\n }\n\n if (ctx.raw instanceof Error && ctx.raw.message) {\n return { message: ctx.raw.message }\n }\n\n return null\n}\n","import type { ResponseErrorParser } from '../responseError.types'\n\n/**\n * Парсер RFC 7807 «Problem Details for HTTP APIs»:\n *\n * ```json\n * { \"type\": \"https://example.com/probs/out-of-credit\",\n * \"title\": \"You do not have enough credit.\",\n * \"status\": 403,\n * \"detail\": \"Your current balance is 30.\",\n * \"errors\": { \"balance\": [\"...\"] } }\n * ```\n *\n * Активируется, если есть `body.type` + `body.title`, либо\n * Content-Type заголовка `application/problem+json`. Берёт `title` как\n * `message`, `detail` — в `details[0]`, status — в `status`.\n */\nexport const problemDetailsParser: ResponseErrorParser = (ctx) => {\n const body = ctx.body\n if (!body || typeof body !== 'object' || Array.isArray(body)) return null\n\n const data = body as { type?: unknown, title?: unknown, detail?: unknown, status?: unknown }\n const isProblemContentType = ctx.headers?.['content-type']?.includes('application/problem+json')\n const hasShape = typeof data.title === 'string' && (typeof data.type === 'string' || typeof data.status === 'number')\n\n if (!isProblemContentType && !hasShape) return null\n\n const message = typeof data.title === 'string' ? data.title : ctx.texts.unknownMessage\n const details: string[] = []\n if (typeof data.detail === 'string' && data.detail) details.push(data.detail)\n\n const status = typeof data.status === 'number' ? data.status : ctx.status\n\n return {\n message,\n details: details.length ? details : undefined,\n status,\n }\n}\n","import { DEFAULT_RESPONSE_ERROR_TEXTS } from '../responseError.defaults'\nimport type {\n ResponseErrorContext,\n ResponseErrorInfo,\n ResponseErrorKind,\n ResponseErrorParser,\n ResponseErrorTexts,\n} from '../responseError.types'\n\nimport { abortErrorParser } from './abortErrorParser'\nimport { fileValidationParser } from './fileValidationParser'\nimport { httpStatusParser } from './httpStatusParser'\nimport { jsonApiErrorParser } from './jsonApiErrorParser'\nimport { laravelValidationParser } from './laravelValidationParser'\nimport { networkErrorParser } from './networkErrorParser'\nimport { normalizeError } from './normalizeError'\nimport { plainMessageParser } from './plainMessageParser'\nimport { problemDetailsParser } from './problemDetailsParser'\n\n/**\n * Дефолтная цепочка парсеров. Порядок важен:\n * `abort → network → fileValidation → laravel → problemDetails → jsonApi → httpStatus → plainMessage`.\n *\n * - Ранние специализированные парсеры могут поставить `stop` (abort/file).\n * - HTTP-парсер даёт fallback-kind/message, чтобы остальное могло уточнить.\n * - `plainMessage` всегда последний — добывает хоть какое-то сообщение.\n */\nexport const defaultResponseErrorParsers: ResponseErrorParser[] = [\n abortErrorParser,\n networkErrorParser,\n fileValidationParser,\n laravelValidationParser,\n problemDetailsParser,\n jsonApiErrorParser,\n httpStatusParser,\n plainMessageParser,\n]\n\n/**\n * Универсальное «ядро» парсеров — транспортно-независимый набор, безопасный\n * для любого бэкенда (Laravel / Symfony / Go / …). Не делает формат-специфичных\n * допущений: разбирает только отмену, сетевые ошибки, HTTP-статус и «плоское»\n * сообщение из тела. Используется как дефолт в `useDialogService`.\n *\n * Порядок: `abort → network → httpStatus → plainMessage`.\n */\nexport const coreResponseErrorParsers: ResponseErrorParser[] = [\n abortErrorParser,\n networkErrorParser,\n httpStatusParser,\n plainMessageParser,\n]\n\n/**\n * Именованные пресеты-строительные блоки для удобной композиции цепочки\n * парсеров без ручного импорта каждого из них.\n *\n * - `core` — универсальное ядро (см. `coreResponseErrorParsers`).\n * - `all` — полная дефолтная цепочка (`defaultResponseErrorParsers`).\n * - остальные — серверо-специфичные парсеры, подключаемые осознанно.\n */\nexport type ResponseErrorParserPresets = {\n core: ResponseErrorParser[]\n all: ResponseErrorParser[]\n laravel: ResponseErrorParser\n problemDetails: ResponseErrorParser\n jsonApi: ResponseErrorParser\n fileValidation: ResponseErrorParser\n}\n\n/** Объект пресетов, передаётся builder-функции `errorParsers`. */\nexport const responseErrorParserPresets: ResponseErrorParserPresets = {\n core: coreResponseErrorParsers,\n all: defaultResponseErrorParsers,\n laravel: laravelValidationParser,\n problemDetails: problemDetailsParser,\n jsonApi: jsonApiErrorParser,\n fileValidation: fileValidationParser,\n}\n\n/** Добавляет пользовательские парсеры в начало дефолтной цепочки. */\nexport function extendDefaultParsers(extra: ResponseErrorParser[]): ResponseErrorParser[] {\n return [...extra, ...defaultResponseErrorParsers]\n}\n\nexport type CreateResponseErrorClassifierOptions = {\n parsers?: ResponseErrorParser[]\n texts?: Partial<ResponseErrorTexts>\n /** Имя поля основного сообщения в body (для `plainMessageParser`). */\n messageKey?: string\n}\n\n/**\n * Фабрика классификатора. Возвращает функцию `(raw, meta?) => Promise<ResponseErrorInfo>`,\n * которая:\n * 1. нормализует вход через `normalizeError`,\n * 2. строит `ResponseErrorContext`,\n * 3. прогоняет цепочку парсеров (с поддержкой `stop`),\n * 4. собирает финальный `ResponseErrorInfo` с фолбэками из `texts`.\n */\nexport function createResponseErrorClassifier(options: CreateResponseErrorClassifierOptions = {}) {\n const parsers = options.parsers ?? defaultResponseErrorParsers\n const texts: ResponseErrorTexts = { ...DEFAULT_RESPONSE_ERROR_TEXTS, ...(options.texts ?? {}) }\n const messageKey = options.messageKey ?? 'message'\n\n return async function classify(raw: unknown, meta: Record<string, unknown> = {}): Promise<ResponseErrorInfo> {\n const normalized = await normalizeError(raw)\n\n const ctx: ResponseErrorContext = {\n ...normalized,\n meta: { ...meta, _messageKey: messageKey },\n texts,\n }\n\n let kind: ResponseErrorKind | undefined\n let status: number | undefined = ctx.status\n let message: string | undefined\n let details: string[] | undefined\n let fieldErrors: ResponseErrorInfo['fieldErrors']\n\n for (const parser of parsers) {\n const result = parser(ctx)\n if (!result) continue\n if (result.kind) kind = result.kind\n if (typeof result.status === 'number') status = result.status\n if (result.message) message = result.message\n if (result.details?.length) details = result.details\n if (result.fieldErrors?.length) fieldErrors = result.fieldErrors\n if (result.stop) break\n }\n\n if (!kind) kind = 'unknown'\n\n if (!message) message = resolveDefaultMessage(kind, texts)\n\n return {\n kind,\n status,\n message,\n details,\n fieldErrors,\n raw,\n meta,\n }\n }\n}\n\nfunction resolveDefaultMessage(kind: ResponseErrorKind, texts: ResponseErrorTexts): string {\n switch (kind) {\n case 'network': return texts.networkMessage\n case 'aborted': return texts.abortedMessage\n case 'validation': return texts.validationMessage\n case 'client': return texts.clientMessage\n case 'server': return texts.serverMessage\n case 'unknown':\n default: return texts.unknownMessage\n }\n}\n\nexport function resolveResponseErrorTitle(kind: ResponseErrorKind, texts: ResponseErrorTexts): string {\n switch (kind) {\n case 'network': return texts.networkTitle\n case 'aborted': return texts.abortedTitle\n case 'validation': return texts.validationTitle\n case 'client': return texts.clientTitle\n case 'server': return texts.serverTitle\n case 'unknown':\n default: return texts.unknownTitle\n }\n}\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\n\nimport { useGranularityTranslations } from '../../internal/granularityI18n'\nimport GrAlert from '../GrAlert/GrAlert.vue'\nimport GrButton from '../GrButton/GrButton.vue'\n\nimport { resolveResponseErrorTitle } from './parsers/createResponseErrorClassifier'\nimport {\n DEFAULT_AUTO_HIDE_KINDS,\n DEFAULT_RESPONSE_ERROR_TEXTS,\n DEFAULT_TONE_BY_KIND,\n} from './responseError.defaults'\nimport type {\n ResponseErrorInfo,\n ResponseErrorKind,\n ResponseErrorTexts,\n ResponseErrorTone,\n} from './responseError.types'\n\nexport type {\n ResponseErrorInfo,\n ResponseErrorKind,\n ResponseErrorTexts,\n ResponseErrorTone,\n} from './responseError.types'\n\nconst props = withDefaults(defineProps<{\n /** Готовая структура ошибки. Если `null` — баннер не рендерится. */\n error: ResponseErrorInfo | null\n /** Частичный override текстов. Мерджится с `DEFAULT_RESPONSE_ERROR_TEXTS`. */\n texts?: Partial<ResponseErrorTexts>\n /** Жёсткий оверрайд тона. Бьёт `toneByKind`. */\n tone?: ResponseErrorTone\n /** Маппинг `kind` → `tone`. Мерджится с `DEFAULT_TONE_BY_KIND`. */\n toneByKind?: Partial<Record<ResponseErrorKind, ResponseErrorTone>>\n /** Показывать ли блок `details`/`fieldErrors` под основным сообщением. */\n showDetails?: boolean\n /** Префиксить ли `field:` перед сообщениями по полям. */\n showFieldLabels?: boolean\n /** Человекочитаемые подписи полей (`{ file: 'Файл' }`). */\n fieldLabels?: Record<string, string>\n /** Удалять дубликаты сообщений между `message` и `details`. */\n dedupeDetails?: boolean\n /** Показывать ли кнопку «Повторить». */\n canRetry?: boolean\n /** Показывать ли кнопку «Скрыть». */\n canDismiss?: boolean\n /** Какие `kind` не рендерить вообще (баннер скрывается). */\n autoHideKinds?: ResponseErrorKind[]\n /** Показывать ли HTTP-status бейдж. */\n showStatus?: boolean\n /** Префикс `data-testid`. */\n testIdPrefix?: string\n}>(), {\n texts: () => ({}),\n tone: undefined,\n toneByKind: () => ({}),\n showDetails: true,\n showFieldLabels: true,\n fieldLabels: () => ({}),\n dedupeDetails: true,\n canRetry: false,\n canDismiss: true,\n autoHideKinds: () => DEFAULT_AUTO_HIDE_KINDS,\n showStatus: true,\n testIdPrefix: 'response-error',\n})\n\nconst emit = defineEmits<{\n (e: 'retry', error: ResponseErrorInfo): void\n (e: 'dismiss'): void\n}>()\n\nconst { t } = useGranularityTranslations()\n\nconst i18nTexts = computed<ResponseErrorTexts>(() => {\n const out = {} as ResponseErrorTexts\n for (const key of Object.keys(DEFAULT_RESPONSE_ERROR_TEXTS) as (keyof ResponseErrorTexts)[]) {\n out[key] = t(`gr.responseError.${key}`, DEFAULT_RESPONSE_ERROR_TEXTS[key])\n }\n return out\n})\n\nconst mergedTexts = computed<ResponseErrorTexts>(() => ({\n ...DEFAULT_RESPONSE_ERROR_TEXTS,\n ...i18nTexts.value,\n ...props.texts,\n}))\n\nconst mergedToneByKind = computed<Record<ResponseErrorKind, ResponseErrorTone>>(() => ({\n ...DEFAULT_TONE_BY_KIND,\n ...props.toneByKind,\n}))\n\nconst isHidden = computed(() => {\n if (!props.error) return true\n return props.autoHideKinds.includes(props.error.kind)\n})\n\nconst tone = computed<ResponseErrorTone>(() => {\n if (props.tone) return props.tone\n if (!props.error) return 'danger'\n return mergedToneByKind.value[props.error.kind] ?? 'danger'\n})\n\nconst title = computed(() => {\n if (!props.error) return ''\n return resolveResponseErrorTitle(props.error.kind, mergedTexts.value)\n})\n\n/**\n * Маппинг `kind` → ключ поля сообщения в `ResponseErrorTexts`.\n * Используется, чтобы подменить «дефолтное английское» fallback-сообщение\n * классификатора на i18n-перевод (или текущий `mergedTexts.<kind>Message`).\n */\nconst KIND_MESSAGE_KEY: Record<ResponseErrorKind, keyof ResponseErrorTexts> = {\n network: 'networkMessage',\n aborted: 'abortedMessage',\n validation: 'validationMessage',\n client: 'clientMessage',\n server: 'serverMessage',\n unknown: 'unknownMessage',\n}\n\nconst DEFAULT_FALLBACK_MESSAGES = new Set<string>([\n DEFAULT_RESPONSE_ERROR_TEXTS.networkMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.abortedMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.validationMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.clientMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.serverMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.unknownMessage,\n])\n\nconst message = computed(() => {\n const raw = props.error?.message ?? ''\n if (!props.error) return raw\n // Если в `ResponseErrorInfo.message` сидит англ. дефолт-фолбэк классификатора,\n // подменяем на i18n-перевод соответствующего kind.\n if (!raw || DEFAULT_FALLBACK_MESSAGES.has(raw)) {\n return mergedTexts.value[KIND_MESSAGE_KEY[props.error.kind]]\n }\n return raw\n})\n\n/**\n * Сводный список «деталей» под основным `message`.\n * Предпочитаем `fieldErrors` (поле → сообщения), затем — плоский `details`.\n * Дедуплицируем и убираем повтор с `message`.\n */\nconst detailEntries = computed<{ field?: string, text: string }[]>(() => {\n if (!props.error || !props.showDetails) return []\n\n const seen = new Set<string>()\n if (props.dedupeDetails) {\n const main = message.value.trim()\n if (main) seen.add(main)\n }\n\n const result: { field?: string, text: string }[] = []\n const fieldErrors = props.error.fieldErrors\n if (fieldErrors?.length) {\n for (const fe of fieldErrors) {\n for (const m of fe.messages) {\n const text = m.trim()\n if (!text || seen.has(text)) continue\n seen.add(text)\n result.push({ field: fe.field, text })\n }\n }\n if (result.length) return result\n }\n\n const details = props.error.details\n if (details?.length) {\n for (const d of details) {\n const text = (d ?? '').trim()\n if (!text || seen.has(text)) continue\n seen.add(text)\n result.push({ text })\n }\n }\n return result\n})\n\nfunction fieldLabel(field?: string): string | undefined {\n if (!field) return undefined\n return props.fieldLabels[field] ?? field\n}\n\nfunction onRetry(): void {\n if (props.error) emit('retry', props.error)\n}\n\nfunction onDismiss(): void {\n emit('dismiss')\n}\n</script>\n\n<template>\n <GrAlert\n v-if=\"!isHidden && props.error\"\n :tone=\"tone\"\n :title=\"title\"\n :closable=\"props.canDismiss\"\n :data-testid=\"`${props.testIdPrefix}-banner`\"\n :data-kind=\"props.error.kind\"\n @close=\"onDismiss\"\n >\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex flex-wrap items-center gap-2\">\n <span\n v-if=\"props.showStatus && typeof props.error.status === 'number'\"\n class=\"inline-flex items-center rounded-[var(--gr-radius-sm)] bg-[color-mix(in_srgb,currentColor_12%,transparent)] px-1.5 py-0.5 text-[11px] font-700 leading-none\"\n :data-testid=\"`${props.testIdPrefix}-status`\"\n >\n HTTP {{ props.error.status }}\n </span>\n <span\n class=\"text-[13px]\"\n :data-testid=\"`${props.testIdPrefix}-message`\"\n >\n {{ message }}\n </span>\n </div>\n\n <ul\n v-if=\"detailEntries.length\"\n class=\"m-0 list-disc pl-5 text-[12px]\"\n :data-testid=\"`${props.testIdPrefix}-details`\"\n >\n <li\n v-for=\"(entry, idx) in detailEntries\"\n :key=\"`${entry.field ?? ''}:${idx}`\"\n >\n <template v-if=\"props.showFieldLabels && entry.field\">\n <strong>{{ fieldLabel(entry.field) }}:</strong>&nbsp;\n </template>{{ entry.text }}\n </li>\n </ul>\n\n <div\n v-if=\"props.canRetry\"\n class=\"mt-1 flex flex-wrap items-center gap-2\"\n >\n <GrButton\n size=\"sm\"\n variant=\"outline\"\n :data-testid=\"`${props.testIdPrefix}-retry`\"\n @click=\"onRetry\"\n >\n {{ mergedTexts.retryLabel }}\n </GrButton>\n </div>\n </div>\n </GrAlert>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue'\n\nimport { useGranularityTranslations } from '../../internal/granularityI18n'\nimport GrAlert from '../GrAlert/GrAlert.vue'\nimport GrButton from '../GrButton/GrButton.vue'\n\nimport { resolveResponseErrorTitle } from './parsers/createResponseErrorClassifier'\nimport {\n DEFAULT_AUTO_HIDE_KINDS,\n DEFAULT_RESPONSE_ERROR_TEXTS,\n DEFAULT_TONE_BY_KIND,\n} from './responseError.defaults'\nimport type {\n ResponseErrorInfo,\n ResponseErrorKind,\n ResponseErrorTexts,\n ResponseErrorTone,\n} from './responseError.types'\n\nexport type {\n ResponseErrorInfo,\n ResponseErrorKind,\n ResponseErrorTexts,\n ResponseErrorTone,\n} from './responseError.types'\n\nconst props = withDefaults(defineProps<{\n /** Готовая структура ошибки. Если `null` — баннер не рендерится. */\n error: ResponseErrorInfo | null\n /** Частичный override текстов. Мерджится с `DEFAULT_RESPONSE_ERROR_TEXTS`. */\n texts?: Partial<ResponseErrorTexts>\n /** Жёсткий оверрайд тона. Бьёт `toneByKind`. */\n tone?: ResponseErrorTone\n /** Маппинг `kind` → `tone`. Мерджится с `DEFAULT_TONE_BY_KIND`. */\n toneByKind?: Partial<Record<ResponseErrorKind, ResponseErrorTone>>\n /** Показывать ли блок `details`/`fieldErrors` под основным сообщением. */\n showDetails?: boolean\n /** Префиксить ли `field:` перед сообщениями по полям. */\n showFieldLabels?: boolean\n /** Человекочитаемые подписи полей (`{ file: 'Файл' }`). */\n fieldLabels?: Record<string, string>\n /** Удалять дубликаты сообщений между `message` и `details`. */\n dedupeDetails?: boolean\n /** Показывать ли кнопку «Повторить». */\n canRetry?: boolean\n /** Показывать ли кнопку «Скрыть». */\n canDismiss?: boolean\n /** Какие `kind` не рендерить вообще (баннер скрывается). */\n autoHideKinds?: ResponseErrorKind[]\n /** Показывать ли HTTP-status бейдж. */\n showStatus?: boolean\n /** Префикс `data-testid`. */\n testIdPrefix?: string\n}>(), {\n texts: () => ({}),\n tone: undefined,\n toneByKind: () => ({}),\n showDetails: true,\n showFieldLabels: true,\n fieldLabels: () => ({}),\n dedupeDetails: true,\n canRetry: false,\n canDismiss: true,\n autoHideKinds: () => DEFAULT_AUTO_HIDE_KINDS,\n showStatus: true,\n testIdPrefix: 'response-error',\n})\n\nconst emit = defineEmits<{\n (e: 'retry', error: ResponseErrorInfo): void\n (e: 'dismiss'): void\n}>()\n\nconst { t } = useGranularityTranslations()\n\nconst i18nTexts = computed<ResponseErrorTexts>(() => {\n const out = {} as ResponseErrorTexts\n for (const key of Object.keys(DEFAULT_RESPONSE_ERROR_TEXTS) as (keyof ResponseErrorTexts)[]) {\n out[key] = t(`gr.responseError.${key}`, DEFAULT_RESPONSE_ERROR_TEXTS[key])\n }\n return out\n})\n\nconst mergedTexts = computed<ResponseErrorTexts>(() => ({\n ...DEFAULT_RESPONSE_ERROR_TEXTS,\n ...i18nTexts.value,\n ...props.texts,\n}))\n\nconst mergedToneByKind = computed<Record<ResponseErrorKind, ResponseErrorTone>>(() => ({\n ...DEFAULT_TONE_BY_KIND,\n ...props.toneByKind,\n}))\n\nconst isHidden = computed(() => {\n if (!props.error) return true\n return props.autoHideKinds.includes(props.error.kind)\n})\n\nconst tone = computed<ResponseErrorTone>(() => {\n if (props.tone) return props.tone\n if (!props.error) return 'danger'\n return mergedToneByKind.value[props.error.kind] ?? 'danger'\n})\n\nconst title = computed(() => {\n if (!props.error) return ''\n return resolveResponseErrorTitle(props.error.kind, mergedTexts.value)\n})\n\n/**\n * Маппинг `kind` → ключ поля сообщения в `ResponseErrorTexts`.\n * Используется, чтобы подменить «дефолтное английское» fallback-сообщение\n * классификатора на i18n-перевод (или текущий `mergedTexts.<kind>Message`).\n */\nconst KIND_MESSAGE_KEY: Record<ResponseErrorKind, keyof ResponseErrorTexts> = {\n network: 'networkMessage',\n aborted: 'abortedMessage',\n validation: 'validationMessage',\n client: 'clientMessage',\n server: 'serverMessage',\n unknown: 'unknownMessage',\n}\n\nconst DEFAULT_FALLBACK_MESSAGES = new Set<string>([\n DEFAULT_RESPONSE_ERROR_TEXTS.networkMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.abortedMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.validationMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.clientMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.serverMessage,\n DEFAULT_RESPONSE_ERROR_TEXTS.unknownMessage,\n])\n\nconst message = computed(() => {\n const raw = props.error?.message ?? ''\n if (!props.error) return raw\n // Если в `ResponseErrorInfo.message` сидит англ. дефолт-фолбэк классификатора,\n // подменяем на i18n-перевод соответствующего kind.\n if (!raw || DEFAULT_FALLBACK_MESSAGES.has(raw)) {\n return mergedTexts.value[KIND_MESSAGE_KEY[props.error.kind]]\n }\n return raw\n})\n\n/**\n * Сводный список «деталей» под основным `message`.\n * Предпочитаем `fieldErrors` (поле → сообщения), затем — плоский `details`.\n * Дедуплицируем и убираем повтор с `message`.\n */\nconst detailEntries = computed<{ field?: string, text: string }[]>(() => {\n if (!props.error || !props.showDetails) return []\n\n const seen = new Set<string>()\n if (props.dedupeDetails) {\n const main = message.value.trim()\n if (main) seen.add(main)\n }\n\n const result: { field?: string, text: string }[] = []\n const fieldErrors = props.error.fieldErrors\n if (fieldErrors?.length) {\n for (const fe of fieldErrors) {\n for (const m of fe.messages) {\n const text = m.trim()\n if (!text || seen.has(text)) continue\n seen.add(text)\n result.push({ field: fe.field, text })\n }\n }\n if (result.length) return result\n }\n\n const details = props.error.details\n if (details?.length) {\n for (const d of details) {\n const text = (d ?? '').trim()\n if (!text || seen.has(text)) continue\n seen.add(text)\n result.push({ text })\n }\n }\n return result\n})\n\nfunction fieldLabel(field?: string): string | undefined {\n if (!field) return undefined\n return props.fieldLabels[field] ?? field\n}\n\nfunction onRetry(): void {\n if (props.error) emit('retry', props.error)\n}\n\nfunction onDismiss(): void {\n emit('dismiss')\n}\n</script>\n\n<template>\n <GrAlert\n v-if=\"!isHidden && props.error\"\n :tone=\"tone\"\n :title=\"title\"\n :closable=\"props.canDismiss\"\n :data-testid=\"`${props.testIdPrefix}-banner`\"\n :data-kind=\"props.error.kind\"\n @close=\"onDismiss\"\n >\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex flex-wrap items-center gap-2\">\n <span\n v-if=\"props.showStatus && typeof props.error.status === 'number'\"\n class=\"inline-flex items-center rounded-[var(--gr-radius-sm)] bg-[color-mix(in_srgb,currentColor_12%,transparent)] px-1.5 py-0.5 text-[11px] font-700 leading-none\"\n :data-testid=\"`${props.testIdPrefix}-status`\"\n >\n HTTP {{ props.error.status }}\n </span>\n <span\n class=\"text-[13px]\"\n :data-testid=\"`${props.testIdPrefix}-message`\"\n >\n {{ message }}\n </span>\n </div>\n\n <ul\n v-if=\"detailEntries.length\"\n class=\"m-0 list-disc pl-5 text-[12px]\"\n :data-testid=\"`${props.testIdPrefix}-details`\"\n >\n <li\n v-for=\"(entry, idx) in detailEntries\"\n :key=\"`${entry.field ?? ''}:${idx}`\"\n >\n <template v-if=\"props.showFieldLabels && entry.field\">\n <strong>{{ fieldLabel(entry.field) }}:</strong>&nbsp;\n </template>{{ entry.text }}\n </li>\n </ul>\n\n <div\n v-if=\"props.canRetry\"\n class=\"mt-1 flex flex-wrap items-center gap-2\"\n >\n <GrButton\n size=\"sm\"\n variant=\"outline\"\n :data-testid=\"`${props.testIdPrefix}-retry`\"\n @click=\"onRetry\"\n >\n {{ mergedTexts.retryLabel }}\n </GrButton>\n </div>\n </div>\n </GrAlert>\n</template>\n"],"mappings":";;;;;;;;;AAMA,IAAa,+BAAmD;CAC9D,cAAc;CACd,gBAAgB;CAChB,cAAc;CACd,gBAAgB;CAChB,iBAAiB;CACjB,mBAAmB;CACnB,aAAa;CACb,eAAe;CACf,aAAa;CACb,eAAe;CACf,cAAc;CACd,gBAAgB;CAChB,YAAY;CACZ,cAAc;AAChB;;;;;;AAOA,IAAa,uBAAqE;CAChF,SAAS;CACT,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,SAAS;AACX;;;;;;AAOA,IAAa,0BAA+C,CAAC;;;;;;;;;;;;;;;;AC3B7D,IAAa,oBAAyC,QAAQ;CAC5D,IAAI,CAAC,IAAI,SAAS,OAAO;CACzB,OAAO;EACL,MAAM;EACN,SAAS,IAAI,MAAM;EACnB,MAAM;CACR;AACF;;;;;;;;;;;;;ACVA,IAAa,wBAA6C,QAAQ;CAChE,MAAM,MAAM,IAAI;CAQhB,IAAI,CAAC,OAAO,OAAO,QAAQ,UAAU,OAAO;CAC5C,IAAI,IAAI,SAAS,uBAAu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A,UAAA,GAA/C,mBAEW,UAAA,EAAA,KAAA,EAAA,GAAA,CADT,mBAA+C,UAAA,MAAA,gBAApC,WAAW,MAAM,KAAK,CAAA,IAAI,KAAC,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,gBAAS,SACjD,EAAA,EAAA,GAAA,EAAA,KAAA,mBAAA,IAAA,IAAA,GAAA,gBAAA,gBAAc,MAAM,IAAI,GAAA,CAAA,CAAA,CAAA;;KAKpB,MAAM,YAAA,UAAA,GADd,mBAYM,OAZN,YAYM,CARJ,YAOW,kBAAA;MANT,MAAK;MACL,SAAQ;MACP,eAAW,GAAK,MAAM,aAAY;MAClC,SAAO;;6BAEoB,CAAA,gBAAA,gBAAzB,YAAA,MAAY,UAAU,GAAA,CAAA,CAAA,CAAA"}
@@ -1,323 +0,0 @@
1
- import { a as grSegmentedItemIconClass, c as grSegmentedRootStyle, i as grSegmentedItemClass, o as grSegmentedItemLabelClass, r as grSegmentedIndicatorClass, s as grSegmentedRootClass } from "../../../chunks/config-eYLZYOUS2.js";
2
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch } from "vue";
3
- //#region src/components/GrSegmented/GrSegmented.vue?vue&type=script&setup=true&lang.ts
4
- var _hoisted_1 = [
5
- "data-variant",
6
- "aria-label",
7
- "aria-disabled"
8
- ];
9
- var _hoisted_2 = [
10
- "data-value",
11
- "aria-checked",
12
- "aria-disabled",
13
- "disabled",
14
- "tabindex",
15
- "onClick",
16
- "onKeydown"
17
- ];
18
- var _hoisted_3 = [
19
- "name",
20
- "value",
21
- "checked",
22
- "disabled"
23
- ];
24
- //#endregion
25
- //#region src/components/GrSegmented/GrSegmented.vue
26
- var GrSegmented_default = /* @__PURE__ */ defineComponent({
27
- __name: "GrSegmented",
28
- props: {
29
- modelValue: {},
30
- options: {},
31
- variant: { default: "pills" },
32
- size: { default: "md" },
33
- indicatorDuration: { default: 300 },
34
- block: {
35
- type: Boolean,
36
- default: false
37
- },
38
- disabled: {
39
- type: Boolean,
40
- default: false
41
- },
42
- name: { default: void 0 },
43
- ariaLabel: { default: void 0 }
44
- },
45
- emits: ["update:modelValue", "change"],
46
- setup(__props, { emit: __emit }) {
47
- const hiddenInputStyle = {
48
- position: "absolute",
49
- opacity: "0",
50
- width: "0",
51
- height: "0",
52
- pointerEvents: "none"
53
- };
54
- const props = __props;
55
- const emit = __emit;
56
- const fallbackName = `gr-segmented-${getCurrentInstance()?.uid ?? Math.random()}`;
57
- const rootRef = ref(null);
58
- const itemRefs = ref(/* @__PURE__ */ new Map());
59
- const indicatorGeometry = ref(null);
60
- const indicatorReady = ref(false);
61
- let resizeObserver = null;
62
- let observedRoot = null;
63
- let observedItem = null;
64
- let scheduled = false;
65
- const selectedIndex = computed(() => props.options.findIndex((option) => option.value === props.modelValue));
66
- const selectedOption = computed(() => props.options[selectedIndex.value] ?? null);
67
- const enabledOptions = computed(() => props.options.filter((option) => !resolveOptionDisabled(option)));
68
- const indicatorDuration = computed(() => Math.max(0, Math.round(props.indicatorDuration)));
69
- const rootClassName = computed(() => grSegmentedRootClass({
70
- variant: props.variant,
71
- block: props.block,
72
- disabled: props.disabled
73
- }));
74
- const rootStyle = computed(() => ({
75
- ...grSegmentedRootStyle({
76
- variant: props.variant,
77
- size: props.size
78
- }),
79
- gridTemplateColumns: props.options.length > 0 ? props.options.map(() => props.block ? "minmax(0,1fr)" : "minmax(0,max-content)").join(" ") : "none"
80
- }));
81
- const indicatorClassName = computed(() => grSegmentedIndicatorClass(props.variant));
82
- const resolvedName = computed(() => props.name ?? fallbackName);
83
- const hasIndicator = computed(() => selectedIndex.value !== -1 && indicatorGeometry.value !== null);
84
- const indicatorStyle = computed(() => {
85
- const geometry = indicatorGeometry.value;
86
- if (!geometry) return {
87
- opacity: "0",
88
- width: "0px",
89
- height: "0px",
90
- transitionDuration: `${indicatorDuration.value}ms`,
91
- transform: "translate3d(0px, 0px, 0px)"
92
- };
93
- return {
94
- opacity: indicatorReady.value ? "1" : "0",
95
- width: `${geometry.width}px`,
96
- height: `${geometry.height}px`,
97
- transitionDuration: `${indicatorDuration.value}ms`,
98
- transform: `translate3d(${geometry.x}px, ${geometry.y}px, 0)`
99
- };
100
- });
101
- function getOptionKey(value) {
102
- return String(value);
103
- }
104
- function resolveOptionDisabled(option) {
105
- return props.disabled || Boolean(option.disabled);
106
- }
107
- function isOptionSelected(option) {
108
- return option.value === props.modelValue;
109
- }
110
- function isIconOnlyOption(option) {
111
- return Boolean(option.icon) && !option.label;
112
- }
113
- function isFocusableOption(option, index) {
114
- if (resolveOptionDisabled(option)) return false;
115
- if (isOptionSelected(option)) return true;
116
- if (selectedIndex.value !== -1) return false;
117
- return enabledOptions.value[0]?.value === props.options[index]?.value;
118
- }
119
- function setItemRef(value, element) {
120
- const key = getOptionKey(value);
121
- if (!(element instanceof HTMLElement)) {
122
- itemRefs.value.delete(key);
123
- return;
124
- }
125
- itemRefs.value.set(key, element);
126
- }
127
- function isSameGeometry(left, right) {
128
- if (left === right) return true;
129
- if (!left || !right) return false;
130
- return left.width === right.width && left.height === right.height && left.x === right.x && left.y === right.y;
131
- }
132
- function measureIndicator() {
133
- const root = rootRef.value;
134
- const option = selectedOption.value;
135
- if (!root || !option) {
136
- if (indicatorGeometry.value !== null) indicatorGeometry.value = null;
137
- if (indicatorReady.value) indicatorReady.value = false;
138
- return;
139
- }
140
- const selectedItem = itemRefs.value.get(getOptionKey(option.value));
141
- if (!selectedItem) return;
142
- const rootRect = root.getBoundingClientRect();
143
- const itemRect = selectedItem.getBoundingClientRect();
144
- const nextGeometry = {
145
- width: Math.max(Math.round(itemRect.width), 0),
146
- height: Math.max(Math.round(itemRect.height), 0),
147
- x: Math.round(itemRect.left - rootRect.left),
148
- y: Math.max(Math.round(itemRect.top - rootRect.top) - 1, 0)
149
- };
150
- if (!isSameGeometry(indicatorGeometry.value, nextGeometry)) indicatorGeometry.value = nextGeometry;
151
- const nextReady = nextGeometry.width > 0 && nextGeometry.height > 0;
152
- if (indicatorReady.value !== nextReady) indicatorReady.value = nextReady;
153
- }
154
- function refreshObserver() {
155
- if (typeof ResizeObserver === "undefined") return;
156
- const root = rootRef.value;
157
- const option = selectedOption.value;
158
- const selectedItem = option ? itemRefs.value.get(getOptionKey(option.value)) ?? null : null;
159
- if (!resizeObserver) resizeObserver = new ResizeObserver(() => scheduleMeasure());
160
- if (!root) {
161
- resizeObserver.disconnect();
162
- observedRoot = null;
163
- observedItem = null;
164
- return;
165
- }
166
- if (observedRoot === root && observedItem === selectedItem) return;
167
- resizeObserver.disconnect();
168
- resizeObserver.observe(root);
169
- if (selectedItem) resizeObserver.observe(selectedItem);
170
- observedRoot = root;
171
- observedItem = selectedItem;
172
- }
173
- function scheduleMeasure() {
174
- if (scheduled) return;
175
- scheduled = true;
176
- nextTick(() => {
177
- scheduled = false;
178
- measureIndicator();
179
- refreshObserver();
180
- });
181
- }
182
- function emitValue(option) {
183
- if (resolveOptionDisabled(option) || option.value === props.modelValue) return;
184
- emit("update:modelValue", option.value);
185
- emit("change", option.value, option);
186
- }
187
- function getNextEnabledIndex(startIndex, direction) {
188
- if (props.options.length === 0) return -1;
189
- let cursor = startIndex;
190
- for (let step = 0; step < props.options.length; step += 1) {
191
- cursor = (cursor + direction + props.options.length) % props.options.length;
192
- const option = props.options[cursor];
193
- if (option && !resolveOptionDisabled(option)) return cursor;
194
- }
195
- return -1;
196
- }
197
- function focusIndex(index) {
198
- const option = props.options[index];
199
- if (!option) return;
200
- itemRefs.value.get(getOptionKey(option.value))?.focus();
201
- }
202
- function onKeydown(event, index) {
203
- if (props.disabled) return;
204
- if (event.key === "ArrowRight" || event.key === "ArrowDown") {
205
- event.preventDefault();
206
- const nextIndex = getNextEnabledIndex(index, 1);
207
- if (nextIndex === -1) return;
208
- const option = props.options[nextIndex];
209
- if (option) {
210
- emitValue(option);
211
- focusIndex(nextIndex);
212
- }
213
- return;
214
- }
215
- if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
216
- event.preventDefault();
217
- const nextIndex = getNextEnabledIndex(index, -1);
218
- if (nextIndex === -1) return;
219
- const option = props.options[nextIndex];
220
- if (option) {
221
- emitValue(option);
222
- focusIndex(nextIndex);
223
- }
224
- return;
225
- }
226
- if (event.key === "Home") {
227
- event.preventDefault();
228
- const firstOption = enabledOptions.value[0];
229
- if (!firstOption) return;
230
- emitValue(firstOption);
231
- focusIndex(props.options.findIndex((option) => option.value === firstOption.value));
232
- return;
233
- }
234
- if (event.key === "End") {
235
- event.preventDefault();
236
- const lastOption = enabledOptions.value.at(-1);
237
- if (!lastOption) return;
238
- emitValue(lastOption);
239
- focusIndex(props.options.findIndex((option) => option.value === lastOption.value));
240
- return;
241
- }
242
- if (event.key === " " || event.key === "Enter") {
243
- event.preventDefault();
244
- const option = props.options[index];
245
- if (option) emitValue(option);
246
- }
247
- }
248
- watch(() => props.modelValue, () => scheduleMeasure());
249
- watch(() => props.options, () => scheduleMeasure(), { deep: true });
250
- watch(() => props.variant, () => scheduleMeasure());
251
- watch(() => props.size, () => scheduleMeasure());
252
- watch(() => props.block, () => scheduleMeasure());
253
- onMounted(() => scheduleMeasure());
254
- onBeforeUnmount(() => {
255
- resizeObserver?.disconnect();
256
- observedRoot = null;
257
- observedItem = null;
258
- });
259
- return (_ctx, _cache) => {
260
- return openBlock(), createElementBlock("div", {
261
- ref_key: "rootRef",
262
- ref: rootRef,
263
- "data-gr-segmented": "",
264
- "data-variant": __props.variant,
265
- role: "radiogroup",
266
- "aria-label": __props.ariaLabel,
267
- "aria-disabled": __props.disabled ? "true" : void 0,
268
- class: normalizeClass(rootClassName.value),
269
- style: normalizeStyle(rootStyle.value)
270
- }, [hasIndicator.value ? (openBlock(), createElementBlock("span", {
271
- key: 0,
272
- "data-gr-segmented-indicator": "",
273
- "aria-hidden": "true",
274
- class: normalizeClass(indicatorClassName.value),
275
- style: normalizeStyle(indicatorStyle.value)
276
- }, null, 6)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
277
- return openBlock(), createElementBlock("button", {
278
- key: option.value,
279
- ref_for: true,
280
- ref: (element) => setItemRef(option.value, element),
281
- "data-gr-segmented-item": "",
282
- "data-value": String(option.value),
283
- type: "button",
284
- role: "radio",
285
- "aria-checked": isOptionSelected(option) ? "true" : "false",
286
- "aria-disabled": resolveOptionDisabled(option) ? "true" : void 0,
287
- disabled: resolveOptionDisabled(option),
288
- tabindex: isFocusableOption(option, index) ? 0 : -1,
289
- class: normalizeClass(unref(grSegmentedItemClass)({
290
- variant: __props.variant,
291
- selected: isOptionSelected(option),
292
- disabled: resolveOptionDisabled(option),
293
- iconOnly: isIconOnlyOption(option)
294
- })),
295
- onClick: ($event) => emitValue(option),
296
- onKeydown: ($event) => onKeydown($event, index)
297
- }, [createElementVNode("input", {
298
- type: "radio",
299
- tabindex: "-1",
300
- "aria-hidden": "true",
301
- name: resolvedName.value,
302
- value: option.value,
303
- checked: isOptionSelected(option),
304
- disabled: resolveOptionDisabled(option),
305
- style: hiddenInputStyle
306
- }, null, 8, _hoisted_3), renderSlot(_ctx.$slots, "default", {
307
- option,
308
- selected: isOptionSelected(option),
309
- disabled: resolveOptionDisabled(option)
310
- }, () => [option.icon ? (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
311
- key: 0,
312
- "aria-hidden": "true",
313
- class: normalizeClass(unref(grSegmentedItemIconClass))
314
- }, null, 8, ["class"])) : createCommentVNode("", true), option.label ? (openBlock(), createElementBlock("span", {
315
- key: 1,
316
- class: normalizeClass(unref(grSegmentedItemLabelClass))
317
- }, toDisplayString(option.label), 3)) : createCommentVNode("", true)])], 42, _hoisted_2);
318
- }), 128))], 14, _hoisted_1);
319
- };
320
- }
321
- });
322
- //#endregion
323
- export { GrSegmented_default as t };
@@ -1 +0,0 @@
1
- {"version":3,"file":"GrSegmented-C1y0UXpQ.js","names":[],"sources":["../../../../src/components/GrSegmented/GrSegmented.vue","../../../../src/components/GrSegmented/GrSegmented.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport type { ComponentPublicInstance } from 'vue'\n\nimport {\n grSegmentedIndicatorClass,\n grSegmentedItemClass,\n grSegmentedItemIconClass,\n grSegmentedItemLabelClass,\n grSegmentedRootClass,\n grSegmentedRootStyle,\n type GrSegmentedOption,\n type GrSegmentedSize,\n type GrSegmentedValue,\n type GrSegmentedVariant,\n} from './grSegmentedStyles'\n\nconst hiddenInputStyle = {\n position: 'absolute',\n opacity: '0',\n width: '0',\n height: '0',\n pointerEvents: 'none',\n} as const\n\ntype IndicatorGeometry = {\n width: number\n height: number\n x: number\n y: number\n}\n\n/**\n * Пропсы публичного GR-примитива «Segmented».\n */\nexport interface GrSegmentedProps {\n modelValue: GrSegmentedValue\n options: GrSegmentedOption[]\n variant?: GrSegmentedVariant\n size?: GrSegmentedSize\n /** Длительность анимации индикатора в мс. */\n indicatorDuration?: number\n /** Растягивать сегмент на всю ширину контейнера. */\n block?: boolean\n disabled?: boolean\n /** Имя скрытых radio-inputs для интеграции с нативной формой. */\n name?: string\n ariaLabel?: string\n}\n\nconst props = withDefaults(\n defineProps<GrSegmentedProps>(),\n {\n variant: 'pills',\n size: 'md',\n indicatorDuration: 300,\n block: false,\n disabled: false,\n name: undefined,\n ariaLabel: undefined,\n },\n)\n\nconst emit = defineEmits<{\n (event: 'update:modelValue', value: GrSegmentedValue): void\n (event: 'change', value: GrSegmentedValue, option: GrSegmentedOption): void\n}>()\n\nconst instance = getCurrentInstance()\nconst fallbackName = `gr-segmented-${instance?.uid ?? Math.random()}`\n\nconst rootRef = ref<HTMLElement | null>(null)\nconst itemRefs = ref(new Map<string, HTMLElement>())\nconst indicatorGeometry = ref<IndicatorGeometry | null>(null)\nconst indicatorReady = ref(false)\n\nlet resizeObserver: ResizeObserver | null = null\nlet observedRoot: HTMLElement | null = null\nlet observedItem: HTMLElement | null = null\nlet scheduled = false\n\nconst selectedIndex = computed(() => props.options.findIndex(option => option.value === props.modelValue))\nconst selectedOption = computed(() => props.options[selectedIndex.value] ?? null)\nconst enabledOptions = computed(() => props.options.filter(option => !resolveOptionDisabled(option)))\nconst indicatorDuration = computed(() => Math.max(0, Math.round(props.indicatorDuration)))\nconst rootClassName = computed(() => grSegmentedRootClass({\n variant: props.variant,\n block: props.block,\n disabled: props.disabled,\n}))\nconst rootStyle = computed<Record<string, string>>(() => ({\n ...grSegmentedRootStyle({\n variant: props.variant,\n size: props.size,\n }),\n gridTemplateColumns: props.options.length > 0\n ? props.options.map(() => props.block ? 'minmax(0,1fr)' : 'minmax(0,max-content)').join(' ')\n : 'none',\n}))\nconst indicatorClassName = computed(() => grSegmentedIndicatorClass(props.variant))\nconst resolvedName = computed(() => props.name ?? fallbackName)\nconst hasIndicator = computed(() => selectedIndex.value !== -1 && indicatorGeometry.value !== null)\n\nconst indicatorStyle = computed<Record<string, string>>(() => {\n const geometry = indicatorGeometry.value\n if (!geometry) {\n return {\n opacity: '0',\n width: '0px',\n height: '0px',\n transitionDuration: `${indicatorDuration.value}ms`,\n transform: 'translate3d(0px, 0px, 0px)',\n }\n }\n\n return {\n opacity: indicatorReady.value ? '1' : '0',\n width: `${geometry.width}px`,\n height: `${geometry.height}px`,\n transitionDuration: `${indicatorDuration.value}ms`,\n transform: `translate3d(${geometry.x}px, ${geometry.y}px, 0)`,\n }\n})\n\nfunction getOptionKey(value: GrSegmentedValue): string {\n return String(value)\n}\n\nfunction resolveOptionDisabled(option: GrSegmentedOption): boolean {\n return props.disabled || Boolean(option.disabled)\n}\n\nfunction isOptionSelected(option: GrSegmentedOption): boolean {\n return option.value === props.modelValue\n}\n\nfunction isIconOnlyOption(option: GrSegmentedOption): boolean {\n return Boolean(option.icon) && !option.label\n}\n\nfunction isFocusableOption(option: GrSegmentedOption, index: number): boolean {\n if (resolveOptionDisabled(option)) {\n return false\n }\n\n if (isOptionSelected(option)) {\n return true\n }\n\n if (selectedIndex.value !== -1) {\n return false\n }\n\n return enabledOptions.value[0]?.value === props.options[index]?.value\n}\n\nfunction setItemRef(value: GrSegmentedValue, element: Element | ComponentPublicInstance | null): void {\n const key = getOptionKey(value)\n\n if (!(element instanceof HTMLElement)) {\n itemRefs.value.delete(key)\n return\n }\n\n itemRefs.value.set(key, element)\n}\n\nfunction isSameGeometry(left: IndicatorGeometry | null, right: IndicatorGeometry | null): boolean {\n if (left === right) {\n return true\n }\n\n if (!left || !right) {\n return false\n }\n\n return left.width === right.width\n && left.height === right.height\n && left.x === right.x\n && left.y === right.y\n}\n\nfunction measureIndicator(): void {\n const root = rootRef.value\n const option = selectedOption.value\n if (!root || !option) {\n if (indicatorGeometry.value !== null)\n indicatorGeometry.value = null\n\n if (indicatorReady.value)\n indicatorReady.value = false\n\n return\n }\n\n const selectedItem = itemRefs.value.get(getOptionKey(option.value))\n if (!selectedItem) {\n return\n }\n\n const rootRect = root.getBoundingClientRect()\n const itemRect = selectedItem.getBoundingClientRect()\n\n const nextGeometry = {\n width: Math.max(Math.round(itemRect.width), 0),\n height: Math.max(Math.round(itemRect.height), 0),\n x: Math.round(itemRect.left - rootRect.left),\n y: Math.max(Math.round(itemRect.top - rootRect.top) - 1, 0),\n } satisfies IndicatorGeometry\n\n if (!isSameGeometry(indicatorGeometry.value, nextGeometry)) {\n indicatorGeometry.value = nextGeometry\n }\n\n const nextReady = nextGeometry.width > 0 && nextGeometry.height > 0\n if (indicatorReady.value !== nextReady) {\n indicatorReady.value = nextReady\n }\n}\n\nfunction refreshObserver(): void {\n if (typeof ResizeObserver === 'undefined') {\n return\n }\n\n const root = rootRef.value\n const option = selectedOption.value\n const selectedItem = option\n ? itemRefs.value.get(getOptionKey(option.value)) ?? null\n : null\n\n if (!resizeObserver) {\n resizeObserver = new ResizeObserver(() => scheduleMeasure())\n }\n\n if (!root) {\n resizeObserver.disconnect()\n observedRoot = null\n observedItem = null\n return\n }\n\n if (observedRoot === root && observedItem === selectedItem) {\n return\n }\n\n resizeObserver.disconnect()\n resizeObserver.observe(root)\n\n if (selectedItem) {\n resizeObserver.observe(selectedItem)\n }\n\n observedRoot = root\n observedItem = selectedItem\n}\n\nfunction scheduleMeasure(): void {\n if (scheduled) {\n return\n }\n\n scheduled = true\n void nextTick(() => {\n scheduled = false\n measureIndicator()\n refreshObserver()\n })\n}\n\nfunction emitValue(option: GrSegmentedOption): void {\n if (resolveOptionDisabled(option) || option.value === props.modelValue) {\n return\n }\n\n emit('update:modelValue', option.value)\n emit('change', option.value, option)\n}\n\nfunction getNextEnabledIndex(startIndex: number, direction: 1 | -1): number {\n if (props.options.length === 0) {\n return -1\n }\n\n let cursor = startIndex\n for (let step = 0; step < props.options.length; step += 1) {\n cursor = (cursor + direction + props.options.length) % props.options.length\n const option = props.options[cursor]\n if (option && !resolveOptionDisabled(option)) {\n return cursor\n }\n }\n\n return -1\n}\n\nfunction focusIndex(index: number): void {\n const option = props.options[index]\n if (!option) {\n return\n }\n\n itemRefs.value.get(getOptionKey(option.value))?.focus()\n}\n\nfunction onKeydown(event: KeyboardEvent, index: number): void {\n if (props.disabled) {\n return\n }\n\n if (event.key === 'ArrowRight' || event.key === 'ArrowDown') {\n event.preventDefault()\n const nextIndex = getNextEnabledIndex(index, 1)\n if (nextIndex === -1) {\n return\n }\n\n const option = props.options[nextIndex]\n if (option) {\n emitValue(option)\n focusIndex(nextIndex)\n }\n return\n }\n\n if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') {\n event.preventDefault()\n const nextIndex = getNextEnabledIndex(index, -1)\n if (nextIndex === -1) {\n return\n }\n\n const option = props.options[nextIndex]\n if (option) {\n emitValue(option)\n focusIndex(nextIndex)\n }\n return\n }\n\n if (event.key === 'Home') {\n event.preventDefault()\n const firstOption = enabledOptions.value[0]\n if (!firstOption) {\n return\n }\n\n emitValue(firstOption)\n focusIndex(props.options.findIndex(option => option.value === firstOption.value))\n return\n }\n\n if (event.key === 'End') {\n event.preventDefault()\n const lastOption = enabledOptions.value.at(-1)\n if (!lastOption) {\n return\n }\n\n emitValue(lastOption)\n focusIndex(props.options.findIndex(option => option.value === lastOption.value))\n return\n }\n\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault()\n const option = props.options[index]\n if (option) {\n emitValue(option)\n }\n }\n}\n\nwatch(() => props.modelValue, () => scheduleMeasure())\nwatch(() => props.options, () => scheduleMeasure(), { deep: true })\nwatch(() => props.variant, () => scheduleMeasure())\nwatch(() => props.size, () => scheduleMeasure())\nwatch(() => props.block, () => scheduleMeasure())\n\nonMounted(() => scheduleMeasure())\nonBeforeUnmount(() => {\n resizeObserver?.disconnect()\n observedRoot = null\n observedItem = null\n})\n</script>\n\n<template>\n <div\n ref=\"rootRef\"\n data-gr-segmented\n :data-variant=\"variant\"\n role=\"radiogroup\"\n :aria-label=\"ariaLabel\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :class=\"rootClassName\"\n :style=\"rootStyle\"\n >\n <span\n v-if=\"hasIndicator\"\n data-gr-segmented-indicator\n aria-hidden=\"true\"\n :class=\"indicatorClassName\"\n :style=\"indicatorStyle\"\n />\n\n <button\n v-for=\"(option, index) in options\"\n :key=\"option.value\"\n :ref=\"element => setItemRef(option.value, element)\"\n data-gr-segmented-item\n :data-value=\"String(option.value)\"\n type=\"button\"\n role=\"radio\"\n :aria-checked=\"isOptionSelected(option) ? 'true' : 'false'\"\n :aria-disabled=\"resolveOptionDisabled(option) ? 'true' : undefined\"\n :disabled=\"resolveOptionDisabled(option)\"\n :tabindex=\"isFocusableOption(option, index) ? 0 : -1\"\n :class=\"grSegmentedItemClass({\n variant,\n selected: isOptionSelected(option),\n disabled: resolveOptionDisabled(option),\n iconOnly: isIconOnlyOption(option),\n })\"\n @click=\"emitValue(option)\"\n @keydown=\"onKeydown($event, index)\"\n >\n <input\n type=\"radio\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n :name=\"resolvedName\"\n :value=\"option.value\"\n :checked=\"isOptionSelected(option)\"\n :disabled=\"resolveOptionDisabled(option)\"\n :style=\"hiddenInputStyle\"\n >\n\n <slot\n :option=\"option\"\n :selected=\"isOptionSelected(option)\"\n :disabled=\"resolveOptionDisabled(option)\"\n >\n <component\n :is=\"option.icon\"\n v-if=\"option.icon\"\n aria-hidden=\"true\"\n :class=\"grSegmentedItemIconClass\"\n />\n <span v-if=\"option.label\" :class=\"grSegmentedItemLabelClass\">\n {{ option.label }}\n </span>\n </slot>\n </button>\n </div>\n</template>","<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport type { ComponentPublicInstance } from 'vue'\n\nimport {\n grSegmentedIndicatorClass,\n grSegmentedItemClass,\n grSegmentedItemIconClass,\n grSegmentedItemLabelClass,\n grSegmentedRootClass,\n grSegmentedRootStyle,\n type GrSegmentedOption,\n type GrSegmentedSize,\n type GrSegmentedValue,\n type GrSegmentedVariant,\n} from './grSegmentedStyles'\n\nconst hiddenInputStyle = {\n position: 'absolute',\n opacity: '0',\n width: '0',\n height: '0',\n pointerEvents: 'none',\n} as const\n\ntype IndicatorGeometry = {\n width: number\n height: number\n x: number\n y: number\n}\n\n/**\n * Пропсы публичного GR-примитива «Segmented».\n */\nexport interface GrSegmentedProps {\n modelValue: GrSegmentedValue\n options: GrSegmentedOption[]\n variant?: GrSegmentedVariant\n size?: GrSegmentedSize\n /** Длительность анимации индикатора в мс. */\n indicatorDuration?: number\n /** Растягивать сегмент на всю ширину контейнера. */\n block?: boolean\n disabled?: boolean\n /** Имя скрытых radio-inputs для интеграции с нативной формой. */\n name?: string\n ariaLabel?: string\n}\n\nconst props = withDefaults(\n defineProps<GrSegmentedProps>(),\n {\n variant: 'pills',\n size: 'md',\n indicatorDuration: 300,\n block: false,\n disabled: false,\n name: undefined,\n ariaLabel: undefined,\n },\n)\n\nconst emit = defineEmits<{\n (event: 'update:modelValue', value: GrSegmentedValue): void\n (event: 'change', value: GrSegmentedValue, option: GrSegmentedOption): void\n}>()\n\nconst instance = getCurrentInstance()\nconst fallbackName = `gr-segmented-${instance?.uid ?? Math.random()}`\n\nconst rootRef = ref<HTMLElement | null>(null)\nconst itemRefs = ref(new Map<string, HTMLElement>())\nconst indicatorGeometry = ref<IndicatorGeometry | null>(null)\nconst indicatorReady = ref(false)\n\nlet resizeObserver: ResizeObserver | null = null\nlet observedRoot: HTMLElement | null = null\nlet observedItem: HTMLElement | null = null\nlet scheduled = false\n\nconst selectedIndex = computed(() => props.options.findIndex(option => option.value === props.modelValue))\nconst selectedOption = computed(() => props.options[selectedIndex.value] ?? null)\nconst enabledOptions = computed(() => props.options.filter(option => !resolveOptionDisabled(option)))\nconst indicatorDuration = computed(() => Math.max(0, Math.round(props.indicatorDuration)))\nconst rootClassName = computed(() => grSegmentedRootClass({\n variant: props.variant,\n block: props.block,\n disabled: props.disabled,\n}))\nconst rootStyle = computed<Record<string, string>>(() => ({\n ...grSegmentedRootStyle({\n variant: props.variant,\n size: props.size,\n }),\n gridTemplateColumns: props.options.length > 0\n ? props.options.map(() => props.block ? 'minmax(0,1fr)' : 'minmax(0,max-content)').join(' ')\n : 'none',\n}))\nconst indicatorClassName = computed(() => grSegmentedIndicatorClass(props.variant))\nconst resolvedName = computed(() => props.name ?? fallbackName)\nconst hasIndicator = computed(() => selectedIndex.value !== -1 && indicatorGeometry.value !== null)\n\nconst indicatorStyle = computed<Record<string, string>>(() => {\n const geometry = indicatorGeometry.value\n if (!geometry) {\n return {\n opacity: '0',\n width: '0px',\n height: '0px',\n transitionDuration: `${indicatorDuration.value}ms`,\n transform: 'translate3d(0px, 0px, 0px)',\n }\n }\n\n return {\n opacity: indicatorReady.value ? '1' : '0',\n width: `${geometry.width}px`,\n height: `${geometry.height}px`,\n transitionDuration: `${indicatorDuration.value}ms`,\n transform: `translate3d(${geometry.x}px, ${geometry.y}px, 0)`,\n }\n})\n\nfunction getOptionKey(value: GrSegmentedValue): string {\n return String(value)\n}\n\nfunction resolveOptionDisabled(option: GrSegmentedOption): boolean {\n return props.disabled || Boolean(option.disabled)\n}\n\nfunction isOptionSelected(option: GrSegmentedOption): boolean {\n return option.value === props.modelValue\n}\n\nfunction isIconOnlyOption(option: GrSegmentedOption): boolean {\n return Boolean(option.icon) && !option.label\n}\n\nfunction isFocusableOption(option: GrSegmentedOption, index: number): boolean {\n if (resolveOptionDisabled(option)) {\n return false\n }\n\n if (isOptionSelected(option)) {\n return true\n }\n\n if (selectedIndex.value !== -1) {\n return false\n }\n\n return enabledOptions.value[0]?.value === props.options[index]?.value\n}\n\nfunction setItemRef(value: GrSegmentedValue, element: Element | ComponentPublicInstance | null): void {\n const key = getOptionKey(value)\n\n if (!(element instanceof HTMLElement)) {\n itemRefs.value.delete(key)\n return\n }\n\n itemRefs.value.set(key, element)\n}\n\nfunction isSameGeometry(left: IndicatorGeometry | null, right: IndicatorGeometry | null): boolean {\n if (left === right) {\n return true\n }\n\n if (!left || !right) {\n return false\n }\n\n return left.width === right.width\n && left.height === right.height\n && left.x === right.x\n && left.y === right.y\n}\n\nfunction measureIndicator(): void {\n const root = rootRef.value\n const option = selectedOption.value\n if (!root || !option) {\n if (indicatorGeometry.value !== null)\n indicatorGeometry.value = null\n\n if (indicatorReady.value)\n indicatorReady.value = false\n\n return\n }\n\n const selectedItem = itemRefs.value.get(getOptionKey(option.value))\n if (!selectedItem) {\n return\n }\n\n const rootRect = root.getBoundingClientRect()\n const itemRect = selectedItem.getBoundingClientRect()\n\n const nextGeometry = {\n width: Math.max(Math.round(itemRect.width), 0),\n height: Math.max(Math.round(itemRect.height), 0),\n x: Math.round(itemRect.left - rootRect.left),\n y: Math.max(Math.round(itemRect.top - rootRect.top) - 1, 0),\n } satisfies IndicatorGeometry\n\n if (!isSameGeometry(indicatorGeometry.value, nextGeometry)) {\n indicatorGeometry.value = nextGeometry\n }\n\n const nextReady = nextGeometry.width > 0 && nextGeometry.height > 0\n if (indicatorReady.value !== nextReady) {\n indicatorReady.value = nextReady\n }\n}\n\nfunction refreshObserver(): void {\n if (typeof ResizeObserver === 'undefined') {\n return\n }\n\n const root = rootRef.value\n const option = selectedOption.value\n const selectedItem = option\n ? itemRefs.value.get(getOptionKey(option.value)) ?? null\n : null\n\n if (!resizeObserver) {\n resizeObserver = new ResizeObserver(() => scheduleMeasure())\n }\n\n if (!root) {\n resizeObserver.disconnect()\n observedRoot = null\n observedItem = null\n return\n }\n\n if (observedRoot === root && observedItem === selectedItem) {\n return\n }\n\n resizeObserver.disconnect()\n resizeObserver.observe(root)\n\n if (selectedItem) {\n resizeObserver.observe(selectedItem)\n }\n\n observedRoot = root\n observedItem = selectedItem\n}\n\nfunction scheduleMeasure(): void {\n if (scheduled) {\n return\n }\n\n scheduled = true\n void nextTick(() => {\n scheduled = false\n measureIndicator()\n refreshObserver()\n })\n}\n\nfunction emitValue(option: GrSegmentedOption): void {\n if (resolveOptionDisabled(option) || option.value === props.modelValue) {\n return\n }\n\n emit('update:modelValue', option.value)\n emit('change', option.value, option)\n}\n\nfunction getNextEnabledIndex(startIndex: number, direction: 1 | -1): number {\n if (props.options.length === 0) {\n return -1\n }\n\n let cursor = startIndex\n for (let step = 0; step < props.options.length; step += 1) {\n cursor = (cursor + direction + props.options.length) % props.options.length\n const option = props.options[cursor]\n if (option && !resolveOptionDisabled(option)) {\n return cursor\n }\n }\n\n return -1\n}\n\nfunction focusIndex(index: number): void {\n const option = props.options[index]\n if (!option) {\n return\n }\n\n itemRefs.value.get(getOptionKey(option.value))?.focus()\n}\n\nfunction onKeydown(event: KeyboardEvent, index: number): void {\n if (props.disabled) {\n return\n }\n\n if (event.key === 'ArrowRight' || event.key === 'ArrowDown') {\n event.preventDefault()\n const nextIndex = getNextEnabledIndex(index, 1)\n if (nextIndex === -1) {\n return\n }\n\n const option = props.options[nextIndex]\n if (option) {\n emitValue(option)\n focusIndex(nextIndex)\n }\n return\n }\n\n if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') {\n event.preventDefault()\n const nextIndex = getNextEnabledIndex(index, -1)\n if (nextIndex === -1) {\n return\n }\n\n const option = props.options[nextIndex]\n if (option) {\n emitValue(option)\n focusIndex(nextIndex)\n }\n return\n }\n\n if (event.key === 'Home') {\n event.preventDefault()\n const firstOption = enabledOptions.value[0]\n if (!firstOption) {\n return\n }\n\n emitValue(firstOption)\n focusIndex(props.options.findIndex(option => option.value === firstOption.value))\n return\n }\n\n if (event.key === 'End') {\n event.preventDefault()\n const lastOption = enabledOptions.value.at(-1)\n if (!lastOption) {\n return\n }\n\n emitValue(lastOption)\n focusIndex(props.options.findIndex(option => option.value === lastOption.value))\n return\n }\n\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault()\n const option = props.options[index]\n if (option) {\n emitValue(option)\n }\n }\n}\n\nwatch(() => props.modelValue, () => scheduleMeasure())\nwatch(() => props.options, () => scheduleMeasure(), { deep: true })\nwatch(() => props.variant, () => scheduleMeasure())\nwatch(() => props.size, () => scheduleMeasure())\nwatch(() => props.block, () => scheduleMeasure())\n\nonMounted(() => scheduleMeasure())\nonBeforeUnmount(() => {\n resizeObserver?.disconnect()\n observedRoot = null\n observedItem = null\n})\n</script>\n\n<template>\n <div\n ref=\"rootRef\"\n data-gr-segmented\n :data-variant=\"variant\"\n role=\"radiogroup\"\n :aria-label=\"ariaLabel\"\n :aria-disabled=\"disabled ? 'true' : undefined\"\n :class=\"rootClassName\"\n :style=\"rootStyle\"\n >\n <span\n v-if=\"hasIndicator\"\n data-gr-segmented-indicator\n aria-hidden=\"true\"\n :class=\"indicatorClassName\"\n :style=\"indicatorStyle\"\n />\n\n <button\n v-for=\"(option, index) in options\"\n :key=\"option.value\"\n :ref=\"element => setItemRef(option.value, element)\"\n data-gr-segmented-item\n :data-value=\"String(option.value)\"\n type=\"button\"\n role=\"radio\"\n :aria-checked=\"isOptionSelected(option) ? 'true' : 'false'\"\n :aria-disabled=\"resolveOptionDisabled(option) ? 'true' : undefined\"\n :disabled=\"resolveOptionDisabled(option)\"\n :tabindex=\"isFocusableOption(option, index) ? 0 : -1\"\n :class=\"grSegmentedItemClass({\n variant,\n selected: isOptionSelected(option),\n disabled: resolveOptionDisabled(option),\n iconOnly: isIconOnlyOption(option),\n })\"\n @click=\"emitValue(option)\"\n @keydown=\"onKeydown($event, index)\"\n >\n <input\n type=\"radio\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n :name=\"resolvedName\"\n :value=\"option.value\"\n :checked=\"isOptionSelected(option)\"\n :disabled=\"resolveOptionDisabled(option)\"\n :style=\"hiddenInputStyle\"\n >\n\n <slot\n :option=\"option\"\n :selected=\"isOptionSelected(option)\"\n :disabled=\"resolveOptionDisabled(option)\"\n >\n <component\n :is=\"option.icon\"\n v-if=\"option.icon\"\n aria-hidden=\"true\"\n :class=\"grSegmentedItemIconClass\"\n />\n <span v-if=\"option.label\" :class=\"grSegmentedItemLabelClass\">\n {{ option.label }}\n </span>\n </slot>\n </button>\n </div>\n</template>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBA,MAAM,mBAAmB;GACvB,UAAU;GACV,SAAS;GACT,OAAO;GACP,QAAQ;GACR,eAAe;EACjB;EA2BA,MAAM,QAAQ;EAad,MAAM,OAAO;EAMb,MAAM,eAAe,gBADJ,mBACoB,CAAA,EAAU,OAAO,KAAK,OAAO;EAElE,MAAM,UAAU,IAAwB,IAAI;EAC5C,MAAM,WAAW,oBAAI,IAAI,IAAyB,CAAC;EACnD,MAAM,oBAAoB,IAA8B,IAAI;EAC5D,MAAM,iBAAiB,IAAI,KAAK;EAEhC,IAAI,iBAAwC;EAC5C,IAAI,eAAmC;EACvC,IAAI,eAAmC;EACvC,IAAI,YAAY;EAEhB,MAAM,gBAAgB,eAAe,MAAM,QAAQ,WAAU,WAAU,OAAO,UAAU,MAAM,UAAU,CAAC;EACzG,MAAM,iBAAiB,eAAe,MAAM,QAAQ,cAAc,UAAU,IAAI;EAChF,MAAM,iBAAiB,eAAe,MAAM,QAAQ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