@feugene/granularity 0.13.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.
- package/README.md +14 -1
- package/dist/chunks/adapter-CAOxmn2G.js.map +1 -1
- package/dist/chunks/check-BZI24Qs4.js +23 -0
- package/dist/chunks/check-BZI24Qs4.js.map +1 -0
- package/dist/chunks/chevron-down-CQS2OG_s.js +23 -0
- package/dist/chunks/chevron-down-CQS2OG_s.js.map +1 -0
- package/dist/chunks/chevron-right-BfqMVpbB.js +44 -0
- package/dist/chunks/chevron-right-BfqMVpbB.js.map +1 -0
- package/dist/chunks/config-06SQjBx0.js +96 -0
- package/dist/chunks/config-06SQjBx0.js.map +1 -0
- package/dist/chunks/config-A-bBiotF.js +12 -0
- package/dist/chunks/config-A-bBiotF.js.map +1 -0
- package/dist/chunks/config-B-g6lT19.js +19 -0
- package/dist/chunks/config-B-g6lT19.js.map +1 -0
- package/dist/chunks/config-B-iNaGdw.js +199 -0
- package/dist/chunks/config-B-iNaGdw.js.map +1 -0
- package/dist/chunks/config-B84z1aos.js +19 -0
- package/dist/chunks/config-B84z1aos.js.map +1 -0
- package/dist/chunks/config-BE6n20np.js +27 -0
- package/dist/chunks/config-BE6n20np.js.map +1 -0
- package/dist/chunks/config-BKvX0q10.js +89 -0
- package/dist/chunks/config-BKvX0q10.js.map +1 -0
- package/dist/chunks/config-BN4sXYXn.js +77 -0
- package/dist/chunks/config-BN4sXYXn.js.map +1 -0
- package/dist/chunks/config-BNfQwyL4.js +97 -0
- package/dist/chunks/config-BNfQwyL4.js.map +1 -0
- package/dist/chunks/config-BNu8lFQB.js.map +1 -1
- package/dist/chunks/config-BSyiFlbi.js +17 -0
- package/dist/chunks/config-BSyiFlbi.js.map +1 -0
- package/dist/chunks/config-BViooYNv.js +13 -0
- package/dist/chunks/config-BViooYNv.js.map +1 -0
- package/dist/chunks/config-BbY2SKGE.js +90 -0
- package/dist/chunks/config-BbY2SKGE.js.map +1 -0
- package/dist/chunks/config-BeZRuonp.js +54 -0
- package/dist/chunks/config-BeZRuonp.js.map +1 -0
- package/dist/chunks/config-BoNR7_PD.js +140 -0
- package/dist/chunks/config-BoNR7_PD.js.map +1 -0
- package/dist/chunks/config-Bpt9Xbxm.js +49 -0
- package/dist/chunks/config-Bpt9Xbxm.js.map +1 -0
- package/dist/chunks/config-BqFjr3tN.js +131 -0
- package/dist/chunks/config-BqFjr3tN.js.map +1 -0
- package/dist/chunks/config-BsuDM3Hb.js +55 -0
- package/dist/chunks/config-BsuDM3Hb.js.map +1 -0
- package/dist/chunks/config-BtXRpAtq.js +48 -0
- package/dist/chunks/config-BtXRpAtq.js.map +1 -0
- package/dist/chunks/config-BuGlNPE9.js +8 -0
- package/dist/chunks/config-BuGlNPE9.js.map +1 -0
- package/dist/chunks/config-C0Ea9ePP.js +15 -0
- package/dist/chunks/config-C0Ea9ePP.js.map +1 -0
- package/dist/chunks/config-CN2ULSQL2.js +36 -0
- package/dist/chunks/config-CN2ULSQL2.js.map +1 -0
- package/dist/chunks/config-CN970ZcJ.js +113 -0
- package/dist/chunks/config-CN970ZcJ.js.map +1 -0
- package/dist/chunks/config-COvrUfhR.js +83 -0
- package/dist/chunks/config-COvrUfhR.js.map +1 -0
- package/dist/chunks/config-CQzGyi1C.js +54 -0
- package/dist/chunks/config-CQzGyi1C.js.map +1 -0
- package/dist/chunks/config-CY0_6cMi.js +51 -0
- package/dist/chunks/config-CY0_6cMi.js.map +1 -0
- package/dist/chunks/config-CjXjhphs.js +12 -0
- package/dist/chunks/config-CjXjhphs.js.map +1 -0
- package/dist/chunks/config-CjnbevbD.js +13 -0
- package/dist/chunks/config-CjnbevbD.js.map +1 -0
- package/dist/chunks/config-Cl4ST6Qd.js +21 -0
- package/dist/chunks/config-Cl4ST6Qd.js.map +1 -0
- package/dist/chunks/config-Cp0DE0GH.js +12 -0
- package/dist/chunks/config-Cp0DE0GH.js.map +1 -0
- package/dist/chunks/config-CpwwkFBO.js +72 -0
- package/dist/chunks/config-CpwwkFBO.js.map +1 -0
- package/dist/chunks/config-CvC0sX8p.js +81 -0
- package/dist/chunks/config-CvC0sX8p.js.map +1 -0
- package/dist/chunks/config-Cw6TDzWv2.js +72 -0
- package/dist/chunks/config-Cw6TDzWv2.js.map +1 -0
- package/dist/chunks/config-Cwd3yjRw.js +41 -0
- package/dist/chunks/config-Cwd3yjRw.js.map +1 -0
- package/dist/chunks/config-D3_g2KIn.js +120 -0
- package/dist/chunks/config-D3_g2KIn.js.map +1 -0
- package/dist/chunks/config-D6W1rnlp.js +26 -0
- package/dist/chunks/config-D6W1rnlp.js.map +1 -0
- package/dist/chunks/config-D8tSR2uS.js +103 -0
- package/dist/chunks/config-D8tSR2uS.js.map +1 -0
- package/dist/chunks/config-D94Z9po52.js +126 -0
- package/dist/chunks/config-D94Z9po52.js.map +1 -0
- package/dist/chunks/config-DBmdgoVf.js.map +1 -1
- package/dist/chunks/config-DCFvmHEv.js +76 -0
- package/dist/chunks/config-DCFvmHEv.js.map +1 -0
- package/dist/chunks/config-DKdlqXiY.js +109 -0
- package/dist/chunks/config-DKdlqXiY.js.map +1 -0
- package/dist/chunks/config-DP7eseR1.js +92 -0
- package/dist/chunks/config-DP7eseR1.js.map +1 -0
- package/dist/chunks/config-DSJY6aEl.js +80 -0
- package/dist/chunks/config-DSJY6aEl.js.map +1 -0
- package/dist/chunks/config-DU2DNSRx2.js +116 -0
- package/dist/chunks/config-DU2DNSRx2.js.map +1 -0
- package/dist/chunks/config-DhHbU3zO.js +37 -0
- package/dist/chunks/config-DhHbU3zO.js.map +1 -0
- package/dist/chunks/config-DpeQchsV.js +21 -0
- package/dist/chunks/config-DpeQchsV.js.map +1 -0
- package/dist/chunks/config-DpqOnJiz2.js.map +1 -0
- package/dist/chunks/config-DvQIb4kb.js +98 -0
- package/dist/chunks/config-DvQIb4kb.js.map +1 -0
- package/dist/chunks/config-DxCTVBfx.js +97 -0
- package/dist/chunks/config-DxCTVBfx.js.map +1 -0
- package/dist/chunks/config-K0C2tcLB.js +84 -0
- package/dist/chunks/config-K0C2tcLB.js.map +1 -0
- package/dist/chunks/config-QaIc_gRa.js.map +1 -0
- package/dist/chunks/config-Rw9OyW70.js +87 -0
- package/dist/chunks/config-Rw9OyW70.js.map +1 -0
- package/dist/chunks/config-T3qdQBgU.js +40 -0
- package/dist/chunks/config-T3qdQBgU.js.map +1 -0
- package/dist/chunks/config-WTNhdh6T2.js +20 -0
- package/dist/chunks/config-WTNhdh6T2.js.map +1 -0
- package/dist/chunks/config-Zc_bUvZY2.js +23 -0
- package/dist/chunks/config-Zc_bUvZY2.js.map +1 -0
- package/dist/chunks/config-_qPUfb6-2.js +165 -0
- package/dist/chunks/config-_qPUfb6-2.js.map +1 -0
- package/dist/chunks/config-eXB87DOi2.js.map +1 -0
- package/dist/chunks/config-esdviAPL.js +41 -0
- package/dist/chunks/config-esdviAPL.js.map +1 -0
- package/dist/chunks/config-gwro_7yn.js +55 -0
- package/dist/chunks/config-gwro_7yn.js.map +1 -0
- package/dist/chunks/config-qVg3Zz_A.js +30 -0
- package/dist/chunks/config-qVg3Zz_A.js.map +1 -0
- package/dist/chunks/config-zjeAJ4ho.js +64 -0
- package/dist/chunks/config-zjeAJ4ho.js.map +1 -0
- package/dist/chunks/context-BSYR7RZs.js +152 -0
- package/dist/chunks/context-BSYR7RZs.js.map +1 -0
- package/dist/chunks/context-BfIQv7m1.js +18 -0
- package/dist/chunks/context-BfIQv7m1.js.map +1 -0
- package/dist/chunks/context-Bfrgsluh.js.map +1 -1
- package/dist/chunks/context-DdNIxa1w.js.map +1 -1
- package/dist/chunks/dialogShared-CxW62PQE.js.map +1 -1
- package/dist/chunks/en-B3xMeswz.js +327 -0
- package/dist/chunks/en-B3xMeswz.js.map +1 -0
- package/dist/chunks/es-Bv8vvqdT.js +20 -0
- package/dist/chunks/es-Bv8vvqdT.js.map +1 -0
- package/dist/chunks/es-CA-mkU--.js +329 -0
- package/dist/chunks/es-CA-mkU--.js.map +1 -0
- package/dist/chunks/fileValidation-D5TFBhbv.js +296 -0
- package/dist/chunks/fileValidation-D5TFBhbv.js.map +1 -0
- package/dist/chunks/focusables-BkzK42SQ.js +87 -0
- package/dist/chunks/focusables-BkzK42SQ.js.map +1 -0
- package/dist/chunks/grBadgeStyles-C2wLlkjF.js +61 -0
- package/dist/chunks/grBadgeStyles-C2wLlkjF.js.map +1 -0
- package/dist/chunks/grButtonStyles-B_-YRE__.js +221 -0
- package/dist/chunks/grButtonStyles-B_-YRE__.js.map +1 -0
- package/dist/chunks/grCheckboxStyles-hOAgURZG.js +82 -0
- package/dist/chunks/grCheckboxStyles-hOAgURZG.js.map +1 -0
- package/dist/chunks/grDropdownStyles-V7TRiCXn.js +24 -0
- package/dist/chunks/grDropdownStyles-V7TRiCXn.js.map +1 -0
- package/dist/chunks/grFormFieldStyles-BkeZHIw0.js +32 -0
- package/dist/chunks/grFormFieldStyles-BkeZHIw0.js.map +1 -0
- package/dist/chunks/grIconStyles-BwJrml2L.js +44 -0
- package/dist/chunks/grIconStyles-BwJrml2L.js.map +1 -0
- package/dist/chunks/grInputStyles-CJeMhUe5.js +66 -0
- package/dist/chunks/grInputStyles-CJeMhUe5.js.map +1 -0
- package/dist/chunks/grKbdStyles-DAoxiytu.js +31 -0
- package/dist/chunks/grKbdStyles-DAoxiytu.js.map +1 -0
- package/dist/chunks/grLinkStyles-BoL8QYcV.js +84 -0
- package/dist/chunks/grLinkStyles-BoL8QYcV.js.map +1 -0
- package/dist/chunks/grLoadingStyles-DEmji2wv.js +30 -0
- package/dist/chunks/grLoadingStyles-DEmji2wv.js.map +1 -0
- package/dist/chunks/grModalStyles-EZfuEiw_.js +77 -0
- package/dist/chunks/grModalStyles-EZfuEiw_.js.map +1 -0
- package/dist/chunks/grPopoverStyles-Rz_Z5nLW.js +46 -0
- package/dist/chunks/grPopoverStyles-Rz_Z5nLW.js.map +1 -0
- package/dist/chunks/grSelectStyles-eTz4uPMP.js +147 -0
- package/dist/chunks/grSelectStyles-eTz4uPMP.js.map +1 -0
- package/dist/chunks/grSliderStyles-B5uNxNJq.js +133 -0
- package/dist/chunks/grSliderStyles-B5uNxNJq.js.map +1 -0
- package/dist/chunks/grStyle-CrgLQKKf.js +46 -0
- package/dist/chunks/grStyle-CrgLQKKf.js.map +1 -0
- package/dist/chunks/grTableStyles-C-iaqQUN.js +26 -0
- package/dist/chunks/grTableStyles-C-iaqQUN.js.map +1 -0
- package/dist/chunks/grTextareaStyles-CWI2SqC8.js +50 -0
- package/dist/chunks/grTextareaStyles-CWI2SqC8.js.map +1 -0
- package/dist/chunks/granular-provider-CtrXGa7c.js +193 -0
- package/dist/chunks/granular-provider-CtrXGa7c.js.map +1 -0
- package/dist/chunks/granularityI18n-BC5zsj_d.js +68 -0
- package/dist/chunks/granularityI18n-BC5zsj_d.js.map +1 -0
- package/dist/chunks/inert-DIHCCn_1.js +78 -0
- package/dist/chunks/inert-DIHCCn_1.js.map +1 -0
- package/dist/chunks/keyboard-zYvvyHd4.js +61 -0
- package/dist/chunks/keyboard-zYvvyHd4.js.map +1 -0
- package/dist/chunks/loader-2-B1fdsdWW.js +23 -0
- package/dist/chunks/loader-2-B1fdsdWW.js.map +1 -0
- package/dist/chunks/minus-oxdbHF33.js +23 -0
- package/dist/chunks/minus-oxdbHF33.js.map +1 -0
- package/dist/chunks/optionFilter-BVY988pC.js +149 -0
- package/dist/chunks/optionFilter-BVY988pC.js.map +1 -0
- package/dist/chunks/portalRoot-CWD4zHBm.js +35 -0
- package/dist/chunks/portalRoot-CWD4zHBm.js.map +1 -0
- package/dist/chunks/ru-COWxgh2A.js +331 -0
- package/dist/chunks/ru-COWxgh2A.js.map +1 -0
- package/dist/chunks/safelist-CudBLyAD.js +26 -0
- package/dist/chunks/safelist-CudBLyAD.js.map +1 -0
- package/dist/chunks/slotNodes-DxNXpC7v.js +39 -0
- package/dist/chunks/slotNodes-DxNXpC7v.js.map +1 -0
- package/dist/chunks/useControlAddons-asUr10Pf.js +128 -0
- package/dist/chunks/useControlAddons-asUr10Pf.js.map +1 -0
- package/dist/chunks/useControlledOpen-DV3SqLTP.js +27 -0
- package/dist/chunks/useControlledOpen-DV3SqLTP.js.map +1 -0
- package/dist/chunks/useFilePreviews-DnwgdyBs.js +53 -0
- package/dist/chunks/useFilePreviews-DnwgdyBs.js.map +1 -0
- package/dist/chunks/useFocusWithin-BwHE0rzm.js +33 -0
- package/dist/chunks/useFocusWithin-BwHE0rzm.js.map +1 -0
- package/dist/chunks/useModalOverlay-DCM4d3yA.js +212 -0
- package/dist/chunks/useModalOverlay-DCM4d3yA.js.map +1 -0
- package/dist/chunks/useOverlayLayer-BupuP_hs.js +149 -0
- package/dist/chunks/useOverlayLayer-BupuP_hs.js.map +1 -0
- package/dist/chunks/usePortalTarget-RyzEgNTb.js +77 -0
- package/dist/chunks/usePortalTarget-RyzEgNTb.js.map +1 -0
- package/dist/chunks/validation-5HhpanPP.js +178 -0
- package/dist/chunks/validation-5HhpanPP.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js +272 -0
- package/dist/components/GrAlert/chunks/GrAlert-BC1lplbY.js.map +1 -0
- package/dist/components/GrAlert/index.js +2 -2
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js +851 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CQ9T7Lly.js.map +1 -0
- package/dist/components/GrAutocomplete/index.js +2 -2
- package/dist/components/GrAutocomplete/styles.css +1 -0
- package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js +222 -0
- package/dist/components/GrAvatar/chunks/GrAvatar-CVUujLmn.js.map +1 -0
- package/dist/components/GrAvatar/index.js +3 -3
- package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js +40 -0
- package/dist/components/GrBadge/chunks/GrBadge-B1tgqfGQ.js.map +1 -0
- package/dist/components/GrBadge/index.js +2 -2
- package/dist/components/GrBadge/styles.css +1 -0
- package/dist/components/GrBadge/themes/dark.css +19 -0
- package/dist/components/GrBadge/themes/light.css +18 -0
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js +97 -0
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C-E9betg.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +3 -3
- package/dist/components/GrBadgeWrap/styles.css +1 -0
- package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js +117 -0
- package/dist/components/GrBottomNav/chunks/GrBottomNav-9GH7Dd9E.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +3 -3
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-BCNGDS6k.js +266 -0
- package/dist/components/GrBreadcrumbs/chunks/GrBreadcrumbs-BCNGDS6k.js.map +1 -0
- package/dist/components/GrBreadcrumbs/index.js +3 -0
- package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js +153 -0
- package/dist/components/GrButton/chunks/GrButton-D0m_z0XW.js.map +1 -0
- package/dist/components/GrButton/index.js +5 -5
- package/dist/components/GrButton/themes/dark.css +46 -0
- package/dist/components/GrButton/themes/light.css +82 -0
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CKyiAV8K.js +44 -0
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CKyiAV8K.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +3 -2
- package/dist/components/GrButtonGroup/styles.css +1 -0
- package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js +89 -0
- package/dist/components/GrCard/chunks/GrCard-DOrGHf2x.js.map +1 -0
- package/dist/components/GrCard/index.js +3 -3
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js +262 -0
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BLOp8452.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +3 -3
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js +140 -0
- package/dist/components/GrCheckboxGroup/chunks/GrCheckboxGroup-CXTx2Z5H.js.map +1 -0
- package/dist/components/GrCheckboxGroup/index.js +3 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-B2Fc6A9r.js +308 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-B2Fc6A9r.js.map +1 -0
- package/dist/components/GrCollapse/index.js +3 -3
- package/dist/components/GrColorPicker/chunks/GrColorPicker-bnYBRGk8.js +584 -0
- package/dist/components/GrColorPicker/chunks/GrColorPicker-bnYBRGk8.js.map +1 -0
- package/dist/components/GrColorPicker/index.js +3 -0
- package/dist/components/GrColorPicker/styles.css +1 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js +566 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-MWDYDPNC.js.map +1 -0
- package/dist/components/GrCommandPalette/index.js +2 -2
- package/dist/components/GrCommandPalette/styles.css +1 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js +144 -0
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BA6JO7V6.js.map +1 -0
- package/dist/components/GrConfigProvider/index.js +2 -2
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DaQmlp1_.js +200 -0
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DaQmlp1_.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js +605 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-DVFho9Cj.js.map +1 -0
- package/dist/components/GrDataTable/index.js +3 -3
- package/dist/components/GrDialog/chunks/GrDialog-AE1gIZuz.js +255 -0
- package/dist/components/GrDialog/chunks/GrDialog-AE1gIZuz.js.map +1 -0
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-B4DYWDkA.js +656 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-B4DYWDkA.js.map +1 -0
- package/dist/components/GrDialogService/index.js +3 -3
- package/dist/components/GrDivider/chunks/GrDivider-B2Xwc_QO.js +109 -0
- package/dist/components/GrDivider/chunks/GrDivider-B2Xwc_QO.js.map +1 -0
- package/dist/components/GrDivider/index.js +3 -3
- package/dist/components/GrDrawer/chunks/GrDrawer-DQwi6aRw.js +251 -0
- package/dist/components/GrDrawer/chunks/GrDrawer-DQwi6aRw.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-BLng6V1m.js +300 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BLng6V1m.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BImk2Vs7.js +421 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BImk2Vs7.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js +86 -0
- package/dist/components/GrEmptyState/chunks/GrEmptyState-W7Irx3vc.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +3 -3
- package/dist/components/GrFileUpload/chunks/GrFileUpload-D0B-BEsd.js +1080 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-D0B-BEsd.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +4 -4
- package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js +326 -0
- package/dist/components/GrForm/chunks/GrForm-BCHCfIMv.js.map +1 -0
- package/dist/components/GrForm/index.js +3 -2
- package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js +190 -0
- package/dist/components/GrFormField/chunks/GrFormField-CL5rcgj6.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -3
- package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js +452 -0
- package/dist/components/GrFormFile/chunks/GrFormFile-BikSD7bg.js.map +1 -0
- package/dist/components/GrFormFile/index.js +3 -3
- package/dist/components/GrFormFile/styles.css +1 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js +63 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-BEh5n4jF.js.map +1 -0
- package/dist/components/GrFormSection/index.js +3 -3
- package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js +57 -0
- package/dist/components/GrIcon/chunks/GrIcon-BvA2ZGXP.js.map +1 -0
- package/dist/components/GrIcon/index.js +3 -3
- package/dist/components/GrIcon/styles.css +1 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js +1103 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-BeCnE8XQ.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +3 -3
- package/dist/components/GrImageViewer/themes/dark.css +17 -0
- package/dist/components/GrImageViewer/themes/light.css +16 -0
- package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js +348 -0
- package/dist/components/GrInput/chunks/GrInput-DD2gYdqS.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js +525 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-DmNunixz.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js +192 -0
- package/dist/components/GrKbd/chunks/GrKbd-DRFPvW3G.js.map +1 -0
- package/dist/components/GrKbd/index.js +3 -3
- package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js +163 -0
- package/dist/components/GrLink/chunks/GrLink-D-cgUMXW.js.map +1 -0
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/GrList-4YU1NZtM.js +277 -0
- package/dist/components/GrList/chunks/GrList-4YU1NZtM.js.map +1 -0
- package/dist/components/GrList/index.js +3 -3
- package/dist/components/GrList/styles.css +1 -0
- package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js +101 -0
- package/dist/components/GrLoading/chunks/GrLoading-CH95CFzS.js.map +1 -0
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/GrModal-B8I78T0N.js +313 -0
- package/dist/components/GrModal/chunks/GrModal-B8I78T0N.js.map +1 -0
- package/dist/components/GrModal/index.js +3 -4
- package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js +104 -0
- package/dist/components/GrNavbar/chunks/GrNavbar-CF0KbM_6.js.map +1 -0
- package/dist/components/GrNavbar/index.js +3 -3
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CZOyPz4J.js +658 -0
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CZOyPz4J.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js +283 -0
- package/dist/components/GrPagination/chunks/GrPagination-B6N0QZBf.js.map +1 -0
- package/dist/components/GrPagination/index.js +3 -3
- package/dist/components/GrPopover/chunks/GrPopover-B1eRCOoO.js +216 -0
- package/dist/components/GrPopover/chunks/GrPopover-B1eRCOoO.js.map +1 -0
- package/dist/components/GrPopover/index.js +3 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js +90 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-BiHnaitu.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrProgressBar/styles.css +1 -0
- package/dist/components/GrProgressBar/themes/dark.css +13 -0
- package/dist/components/GrProgressBar/themes/light.css +12 -0
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-CTogjcHz.js +210 -0
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-CTogjcHz.js.map +1 -0
- package/dist/components/GrProgressCircle/index.js +3 -0
- package/dist/components/GrProgressCircle/styles.css +1 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Ct174NVD.js +348 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Ct174NVD.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js +277 -0
- package/dist/components/GrRadio/chunks/GrRadio-DksDro_U.js.map +1 -0
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js +189 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BOIhejE6.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js +315 -0
- package/dist/components/GrRating/chunks/GrRating-JrHXz0Rv.js.map +1 -0
- package/dist/components/GrRating/index.js +2 -2
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js +777 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C7W9mgYN.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js +224 -0
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-DhX4jjay.js.map +1 -0
- package/dist/components/GrResponseErrorBanner/index.js +2 -2
- package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js +406 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-BQIlH5KI.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js +1372 -0
- package/dist/components/GrSelect/chunks/GrSelect-aqkPCqjd.js.map +1 -0
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSelect/styles.css +1 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DRGnnViw.js +257 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DRGnnViw.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js +84 -0
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DEvNE3bC.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js +392 -0
- package/dist/components/GrSlider/chunks/GrSlider-DkU9IQSX.js.map +1 -0
- package/dist/components/GrSlider/index.js +2 -2
- package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js +288 -0
- package/dist/components/GrSplitter/chunks/GrSplitter-7To8jbJ8.js.map +1 -0
- package/dist/components/GrSplitter/index.js +3 -0
- package/dist/components/GrSplitter/styles.css +1 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-CttyoYPT.js +319 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-CttyoYPT.js.map +1 -0
- package/dist/components/GrStatistic/index.js +2 -2
- package/dist/components/GrSwitch/chunks/GrSwitch-B9TYbiih.js +183 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-B9TYbiih.js.map +1 -0
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js +81 -0
- package/dist/components/GrTabPanels/chunks/GrTabPanels-BVe1CZdJ.js.map +1 -0
- package/dist/components/GrTabPanels/index.js +2 -2
- package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js +163 -0
- package/dist/components/GrTable/chunks/GrTable-BB-mI_NM.js.map +1 -0
- package/dist/components/GrTable/index.js +3 -3
- package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js +272 -0
- package/dist/components/GrTabs/chunks/GrTabs-B8CDq2D9.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-DUh5Tlo4.js +241 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-DUh5Tlo4.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrTimeline/chunks/GrTimeline-CE9b3s18.js +285 -0
- package/dist/components/GrTimeline/chunks/GrTimeline-CE9b3s18.js.map +1 -0
- package/dist/components/GrTimeline/index.js +3 -0
- package/dist/components/GrTimeline/styles.css +1 -0
- package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js +272 -0
- package/dist/components/GrToaster/chunks/GrToaster-BKQy3Srm.js.map +1 -0
- package/dist/components/GrToaster/index.js +1 -1
- package/dist/components/GrToaster/styles.css +1 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-DEbejfhA.js +185 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-DEbejfhA.js.map +1 -0
- package/dist/components/GrTooltip/index.js +3 -3
- package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js +1339 -0
- package/dist/components/GrTree/chunks/GrTree-wfdbvygw.js.map +1 -0
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTree/styles.css +1 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-lLWmAMtI.js +623 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-lLWmAMtI.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useAnnouncer.js +114 -0
- package/dist/composables/useAnnouncer.js.map +1 -0
- package/dist/composables/useDismissible.js +31 -0
- package/dist/composables/useDismissible.js.map +1 -0
- package/dist/composables/useFloating.js +112 -0
- package/dist/composables/useFloating.js.map +1 -0
- package/dist/composables/useFocusTrap.js +124 -0
- package/dist/composables/useFocusTrap.js.map +1 -0
- package/dist/composables/useGrFormControl.js +24 -0
- package/dist/composables/useGrFormControl.js.map +1 -0
- package/dist/composables/useOverlayLayer.js +2 -0
- package/dist/composables/usePortalTarget.js +2 -0
- package/dist/composables/useTheme.js +106 -36
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/composables/useToast.js +123 -7
- package/dist/composables/useToast.js.map +1 -1
- package/dist/composables/useVirtualList.js +244 -0
- package/dist/composables/useVirtualList.js.map +1 -0
- package/dist/directives/dropzone.js +1 -1
- package/dist/directives/hotkey.js +9 -15
- package/dist/directives/hotkey.js.map +1 -1
- package/dist/directives/loading.js +43 -7
- package/dist/directives/loading.js.map +1 -1
- package/dist/fileValidation/index.js +2 -2
- package/dist/granular-provider-node.js +1 -31
- package/dist/granular-provider.js +1 -4
- package/dist/i18n/all.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/index.js +148 -140
- package/dist/styles/base.css +32 -0
- package/dist/styles/preflight.css +33 -0
- package/dist/styles/themes/dark.css +81 -26
- package/dist/styles/themes/light.css +86 -15
- package/dist/styles/tokens.css +63 -4
- package/dist/tokens.js +3132 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +42 -10
- package/dist/types/src/components/GrAlert/config.d.ts +1 -1
- package/dist/types/src/components/GrAlert/defaults.d.ts +9 -3
- package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +0 -7
- package/dist/types/src/components/GrAlert/index.d.ts +3 -2
- package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +112 -99
- package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -1
- package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +43 -7
- package/dist/types/src/components/GrAutocomplete/index.d.ts +4 -0
- package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +40 -17
- package/dist/types/src/components/GrAvatar/GrAvatarGroup.vue.d.ts +70 -0
- package/dist/types/src/components/GrAvatar/avatarContext.d.ts +12 -0
- package/dist/types/src/components/GrAvatar/config.d.ts +1 -1
- package/dist/types/src/components/GrAvatar/defaults.d.ts +16 -0
- package/dist/types/src/components/GrAvatar/grAvatarStyles.d.ts +38 -0
- package/dist/types/src/components/GrAvatar/index.d.ts +5 -0
- package/dist/types/src/components/GrAvatar/safelist.d.ts +4 -0
- package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +4 -4
- package/dist/types/src/components/GrBadge/config.d.ts +1 -1
- package/dist/types/src/components/GrBadge/grBadgeStyles.d.ts +13 -1
- package/dist/types/src/components/GrBadge/index.d.ts +1 -0
- package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +42 -5
- package/dist/types/src/components/GrBadgeWrap/config.d.ts +1 -1
- package/dist/types/src/components/GrBadgeWrap/grBadgeWrapStyles.d.ts +46 -0
- package/dist/types/src/components/GrBadgeWrap/index.d.ts +4 -0
- package/dist/types/src/components/GrBadgeWrap/safelist.d.ts +1 -0
- package/dist/types/src/components/GrBottomNav/GrBottomNav.vue.d.ts +91 -4
- package/dist/types/src/components/GrBottomNav/config.d.ts +1 -1
- package/dist/types/src/components/GrBottomNav/defaults.d.ts +16 -0
- package/dist/types/src/components/GrBottomNav/grBottomNavStyles.d.ts +56 -0
- package/dist/types/src/components/GrBottomNav/index.d.ts +6 -1
- package/dist/types/src/components/GrBottomNav/safelist.d.ts +1 -0
- package/dist/types/src/components/GrBreadcrumbs/GrBreadcrumbs.vue.d.ts +117 -0
- package/dist/types/src/components/GrBreadcrumbs/config.d.ts +1 -0
- package/dist/types/src/components/GrBreadcrumbs/defaults.d.ts +15 -0
- package/dist/types/src/components/GrBreadcrumbs/grBreadcrumbsStyles.d.ts +86 -0
- package/dist/types/src/components/GrBreadcrumbs/index.d.ts +8 -0
- package/dist/types/src/components/GrBreadcrumbs/safelist.d.ts +1 -0
- package/dist/types/src/components/GrButton/GrButton.vue.d.ts +31 -7
- package/dist/types/src/components/GrButton/config.d.ts +1 -1
- package/dist/types/src/components/GrButton/grButtonStyles.d.ts +27 -3
- package/dist/types/src/components/GrButton/index.d.ts +5 -1
- package/dist/types/src/components/GrButton/safelist.d.ts +1 -0
- package/dist/types/src/components/GrButtonGroup/GrButtonGroup.vue.d.ts +32 -4
- package/dist/types/src/components/GrButtonGroup/config.d.ts +1 -1
- package/dist/types/src/components/GrButtonGroup/context.d.ts +20 -0
- package/dist/types/src/components/GrButtonGroup/index.d.ts +3 -0
- package/dist/types/src/components/GrCard/GrCard.vue.d.ts +80 -3
- package/dist/types/src/components/GrCard/config.d.ts +1 -1
- package/dist/types/src/components/GrCard/defaults.d.ts +15 -0
- package/dist/types/src/components/GrCard/grCardStyles.d.ts +24 -0
- package/dist/types/src/components/GrCard/index.d.ts +5 -0
- package/dist/types/src/components/GrCard/safelist.d.ts +1 -0
- package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +56 -10
- package/dist/types/src/components/GrCheckbox/config.d.ts +1 -1
- package/dist/types/src/components/GrCheckbox/defaults.d.ts +14 -0
- package/dist/types/src/components/GrCheckbox/grCheckboxGroupContext.d.ts +19 -0
- package/dist/types/src/components/GrCheckbox/grCheckboxStyles.d.ts +44 -0
- package/dist/types/src/components/GrCheckbox/index.d.ts +9 -0
- package/dist/types/src/components/GrCheckbox/safelist.d.ts +13 -0
- package/dist/types/src/components/GrCheckboxGroup/GrCheckboxGroup.vue.d.ts +105 -0
- package/dist/types/src/components/GrCheckboxGroup/config.d.ts +1 -0
- package/dist/types/src/components/GrCheckboxGroup/defaults.d.ts +14 -0
- package/dist/types/src/components/GrCheckboxGroup/index.d.ts +9 -0
- package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +55 -7
- package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +13 -3
- package/dist/types/src/components/GrCollapse/config.d.ts +1 -1
- package/dist/types/src/components/GrCollapse/defaults.d.ts +19 -0
- package/dist/types/src/components/GrCollapse/grCollapseContext.d.ts +20 -0
- package/dist/types/src/components/GrCollapse/grCollapseStyles.d.ts +42 -0
- package/dist/types/src/components/GrCollapse/index.d.ts +3 -0
- package/dist/types/src/components/GrCollapse/safelist.d.ts +15 -0
- package/dist/types/src/components/GrColorPicker/GrColorPicker.vue.d.ts +104 -0
- package/dist/types/src/components/GrColorPicker/color.d.ts +38 -0
- package/dist/types/src/components/GrColorPicker/config.d.ts +1 -0
- package/dist/types/src/components/GrColorPicker/defaults.d.ts +15 -0
- package/dist/types/src/components/GrColorPicker/grColorPickerStyles.d.ts +39 -0
- package/dist/types/src/components/GrColorPicker/index.d.ts +11 -0
- package/dist/types/src/components/GrColorPicker/safelist.d.ts +1 -0
- package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +45 -10
- package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -1
- package/dist/types/src/components/GrCommandPalette/defaults.d.ts +14 -0
- package/dist/types/src/components/GrCommandPalette/filtering.d.ts +24 -0
- package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +33 -8
- package/dist/types/src/components/GrCommandPalette/index.d.ts +4 -0
- package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +38 -4
- package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -1
- package/dist/types/src/components/GrConfigProvider/context.d.ts +27 -0
- package/dist/types/src/components/GrConfigProvider/index.d.ts +1 -0
- package/dist/types/src/components/GrConfigProvider/zIndexScale.d.ts +23 -0
- package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +33 -4
- package/dist/types/src/components/GrConfirmDialog/config.d.ts +1 -1
- package/dist/types/src/components/GrConfirmDialog/defaults.d.ts +14 -0
- package/dist/types/src/components/GrConfirmDialog/index.d.ts +2 -1
- package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +92 -27
- package/dist/types/src/components/GrDataTable/config.d.ts +1 -1
- package/dist/types/src/components/GrDataTable/defaults.d.ts +10 -0
- package/dist/types/src/components/GrDataTable/grDataTableSort.d.ts +25 -0
- package/dist/types/src/components/GrDataTable/grDataTableStyles.d.ts +29 -0
- package/dist/types/src/components/GrDataTable/index.d.ts +10 -1
- package/dist/types/src/components/GrDataTable/safelist.d.ts +1 -0
- package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +51 -4
- package/dist/types/src/components/GrDialog/GrDialogCloseButton.vue.d.ts +3 -0
- package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +3 -0
- package/dist/types/src/components/GrDialog/config.d.ts +1 -1
- package/dist/types/src/components/GrDialog/defaults.d.ts +14 -0
- package/dist/types/src/components/GrDialog/dialogShared.d.ts +2 -1
- package/dist/types/src/components/GrDialog/index.d.ts +5 -0
- package/dist/types/src/components/GrDialogService/GrDialogServiceHost.vue.d.ts +18 -1
- package/dist/types/src/components/GrDialogService/GrDialogServiceItem.vue.d.ts +15 -0
- package/dist/types/src/components/GrDialogService/config.d.ts +1 -1
- package/dist/types/src/components/GrDialogService/index.d.ts +3 -1
- package/dist/types/src/components/GrDialogService/store.d.ts +78 -7
- package/dist/types/src/components/GrDialogService/types.d.ts +22 -1
- package/dist/types/src/components/GrDialogService/useDialogService.d.ts +31 -1
- package/dist/types/src/components/GrDivider/GrDivider.vue.d.ts +44 -9
- package/dist/types/src/components/GrDivider/config.d.ts +1 -1
- package/dist/types/src/components/GrDivider/defaults.d.ts +15 -0
- package/dist/types/src/components/GrDivider/grDividerStyles.d.ts +19 -0
- package/dist/types/src/components/GrDivider/index.d.ts +4 -1
- package/dist/types/src/components/GrDivider/safelist.d.ts +1 -0
- package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +93 -17
- package/dist/types/src/components/GrDrawer/config.d.ts +1 -1
- package/dist/types/src/components/GrDrawer/defaults.d.ts +19 -0
- package/dist/types/src/components/GrDrawer/grDrawerStyles.d.ts +48 -2
- package/dist/types/src/components/GrDrawer/index.d.ts +6 -1
- package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +66 -13
- package/dist/types/src/components/GrDropdown/config.d.ts +1 -1
- package/dist/types/src/components/GrDropdown/grDropdownStyles.d.ts +4 -5
- package/dist/types/src/components/GrDropdown/index.d.ts +5 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +79 -16
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuColumn.vue.d.ts +2 -1
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuColumns.vue.d.ts +3 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuGroup.vue.d.ts +2 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuHeader.vue.d.ts +3 -2
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +51 -5
- package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuList.vue.d.ts +5 -0
- package/dist/types/src/components/GrDropdownMenu/config.d.ts +1 -1
- package/dist/types/src/components/GrDropdownMenu/grDropdownMenuStyles.d.ts +33 -0
- package/dist/types/src/components/GrDropdownMenu/index.d.ts +6 -2
- package/dist/types/src/components/GrDropdownMenu/menuModel.d.ts +42 -0
- package/dist/types/src/components/GrDropdownMenu/safelist.d.ts +7 -0
- package/dist/types/src/components/GrEmptyState/GrEmptyState.vue.d.ts +33 -10
- package/dist/types/src/components/GrEmptyState/config.d.ts +1 -1
- package/dist/types/src/components/GrEmptyState/defaults.d.ts +16 -0
- package/dist/types/src/components/GrEmptyState/grEmptyStateStyles.d.ts +32 -0
- package/dist/types/src/components/GrEmptyState/index.d.ts +4 -0
- package/dist/types/src/components/GrEmptyState/safelist.d.ts +1 -0
- package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +158 -148
- package/dist/types/src/components/GrFileUpload/config.d.ts +1 -1
- package/dist/types/src/components/GrFileUpload/defaults.d.ts +10 -0
- package/dist/types/src/components/GrFileUpload/fileEntry.d.ts +26 -0
- package/dist/types/src/components/GrFileUpload/grFileUploadStyles.d.ts +45 -0
- package/dist/types/src/components/GrFileUpload/index.d.ts +10 -1
- package/dist/types/src/components/GrFileUpload/maxFileSize.d.ts +2 -0
- package/dist/types/src/components/GrFileUpload/safelist.d.ts +1 -0
- package/dist/types/src/components/GrFileUpload/useDropZone.d.ts +24 -0
- package/dist/types/src/components/GrFileUpload/usePerFileUpload.d.ts +38 -0
- package/dist/types/src/components/GrFileUpload/useUploadState.d.ts +30 -0
- package/dist/types/src/components/GrForm/GrForm.vue.d.ts +38 -2
- package/dist/types/src/components/GrForm/config.d.ts +1 -1
- package/dist/types/src/components/GrForm/context.d.ts +22 -3
- package/dist/types/src/components/GrForm/fileRule.d.ts +43 -0
- package/dist/types/src/components/GrForm/index.d.ts +6 -2
- package/dist/types/src/components/GrForm/modelSnapshot.d.ts +17 -0
- package/dist/types/src/components/GrForm/validation.d.ts +16 -1
- package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +56 -10
- package/dist/types/src/components/GrFormField/config.d.ts +1 -1
- package/dist/types/src/components/GrFormField/context.d.ts +19 -0
- package/dist/types/src/components/GrFormField/defaults.d.ts +15 -0
- package/dist/types/src/components/GrFormField/grFormFieldStyles.d.ts +19 -0
- package/dist/types/src/components/GrFormField/index.d.ts +5 -1
- package/dist/types/src/components/GrFormField/safelist.d.ts +1 -0
- package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +70 -16
- package/dist/types/src/components/GrFormFile/config.d.ts +1 -1
- package/dist/types/src/components/GrFormFile/defaults.d.ts +10 -0
- package/dist/types/src/components/GrFormFile/grFormFileStyles.d.ts +22 -0
- package/dist/types/src/components/GrFormFile/index.d.ts +7 -0
- package/dist/types/src/components/GrFormFile/safelist.d.ts +1 -0
- package/dist/types/src/components/GrFormSection/GrFormSection.vue.d.ts +34 -7
- package/dist/types/src/components/GrFormSection/config.d.ts +1 -1
- package/dist/types/src/components/GrFormSection/defaults.d.ts +14 -0
- package/dist/types/src/components/GrFormSection/grFormSectionStyles.d.ts +12 -0
- package/dist/types/src/components/GrFormSection/index.d.ts +4 -0
- package/dist/types/src/components/GrFormSection/safelist.d.ts +1 -0
- package/dist/types/src/components/GrIcon/GrIcon.vue.d.ts +40 -4
- package/dist/types/src/components/GrIcon/config.d.ts +1 -1
- package/dist/types/src/components/GrIcon/defaults.d.ts +14 -0
- package/dist/types/src/components/GrIcon/grIconStyles.d.ts +25 -0
- package/dist/types/src/components/GrIcon/index.d.ts +4 -0
- package/dist/types/src/components/GrIcon/safelist.d.ts +1 -0
- package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +87 -16
- package/dist/types/src/components/GrImageViewer/composables/usePointerGestures.d.ts +36 -0
- package/dist/types/src/components/GrImageViewer/composables/useViewerKeyboard.d.ts +7 -4
- package/dist/types/src/components/GrImageViewer/composables/useWheelGesture.d.ts +3 -2
- package/dist/types/src/components/GrImageViewer/composables/useZoomPan.d.ts +17 -3
- package/dist/types/src/components/GrImageViewer/config.d.ts +1 -1
- package/dist/types/src/components/GrImageViewer/grImageViewerStyles.d.ts +21 -0
- package/dist/types/src/components/GrImageViewer/index.d.ts +7 -0
- package/dist/types/src/components/GrImageViewer/safelist.d.ts +1 -0
- package/dist/types/src/components/GrInput/GrInput.vue.d.ts +66 -21
- package/dist/types/src/components/GrInput/config.d.ts +1 -1
- package/dist/types/src/components/GrInput/grInputStyles.d.ts +53 -7
- package/dist/types/src/components/GrInput/index.d.ts +5 -0
- package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +97 -14
- package/dist/types/src/components/GrInputTag/config.d.ts +1 -1
- package/dist/types/src/components/GrInputTag/defaults.d.ts +17 -0
- package/dist/types/src/components/GrInputTag/grInputTagStyles.d.ts +24 -1
- package/dist/types/src/components/GrInputTag/index.d.ts +5 -0
- package/dist/types/src/components/GrKbd/GrKbd.vue.d.ts +31 -10
- package/dist/types/src/components/GrKbd/config.d.ts +1 -1
- package/dist/types/src/components/GrKbd/defaults.d.ts +14 -0
- package/dist/types/src/components/GrKbd/grKbdStyles.d.ts +15 -0
- package/dist/types/src/components/GrKbd/index.d.ts +4 -1
- package/dist/types/src/components/GrKbd/safelist.d.ts +1 -0
- package/dist/types/src/components/GrLink/GrLink.vue.d.ts +23 -10
- package/dist/types/src/components/GrLink/config.d.ts +1 -1
- package/dist/types/src/components/GrLink/defaults.d.ts +14 -0
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +11 -13
- package/dist/types/src/components/GrLink/index.d.ts +2 -0
- package/dist/types/src/components/GrList/GrList.vue.d.ts +57 -32
- package/dist/types/src/components/GrList/GrListItem.vue.d.ts +42 -9
- package/dist/types/src/components/GrList/config.d.ts +1 -1
- package/dist/types/src/components/GrList/grListStyles.d.ts +25 -0
- package/dist/types/src/components/GrList/index.d.ts +5 -0
- package/dist/types/src/components/GrList/safelist.d.ts +1 -0
- package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +59 -19
- package/dist/types/src/components/GrLoading/config.d.ts +1 -1
- package/dist/types/src/components/GrLoading/grLoadingStyles.d.ts +10 -2
- package/dist/types/src/components/GrLoading/index.d.ts +1 -0
- package/dist/types/src/components/GrModal/GrModal.vue.d.ts +58 -12
- package/dist/types/src/components/GrModal/config.d.ts +1 -1
- package/dist/types/src/components/GrModal/context.d.ts +37 -0
- package/dist/types/src/components/GrModal/defaults.d.ts +14 -0
- package/dist/types/src/components/GrModal/grModalStyles.d.ts +25 -10
- package/dist/types/src/components/GrModal/index.d.ts +6 -3
- package/dist/types/src/components/GrNavbar/GrNavbar.vue.d.ts +28 -9
- package/dist/types/src/components/GrNavbar/config.d.ts +1 -1
- package/dist/types/src/components/GrNavbar/grNavbarStyles.d.ts +23 -0
- package/dist/types/src/components/GrNavbar/index.d.ts +2 -0
- package/dist/types/src/components/GrNavbar/safelist.d.ts +1 -0
- package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +64 -17
- package/dist/types/src/components/GrNumberInput/config.d.ts +1 -1
- package/dist/types/src/components/GrNumberInput/defaults.d.ts +1 -0
- package/dist/types/src/components/GrNumberInput/grNumberInputStyles.d.ts +20 -4
- package/dist/types/src/components/GrNumberInput/index.d.ts +4 -0
- package/dist/types/src/components/GrNumberInput/numberInputMath.d.ts +17 -0
- package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +47 -1
- package/dist/types/src/components/GrPagination/config.d.ts +1 -1
- package/dist/types/src/components/GrPagination/defaults.d.ts +10 -0
- package/dist/types/src/components/GrPagination/grPaginationStyles.d.ts +19 -0
- package/dist/types/src/components/GrPagination/index.d.ts +4 -0
- package/dist/types/src/components/GrPagination/safelist.d.ts +1 -0
- package/dist/types/src/components/GrPopover/GrPopover.vue.d.ts +161 -0
- package/dist/types/src/components/GrPopover/config.d.ts +1 -0
- package/dist/types/src/components/GrPopover/defaults.d.ts +15 -0
- package/dist/types/src/components/GrPopover/grPopoverStyles.d.ts +28 -0
- package/dist/types/src/components/GrPopover/index.d.ts +11 -0
- package/dist/types/src/components/GrPopover/safelist.d.ts +1 -0
- package/dist/types/src/components/GrProgressBar/GrProgressBar.vue.d.ts +37 -5
- package/dist/types/src/components/GrProgressBar/config.d.ts +1 -1
- package/dist/types/src/components/GrProgressBar/defaults.d.ts +11 -0
- package/dist/types/src/components/GrProgressBar/grStyle.d.ts +14 -0
- package/dist/types/src/components/GrProgressBar/index.d.ts +2 -1
- package/dist/types/src/components/GrProgressBar/safelist.d.ts +4 -0
- package/dist/types/src/components/GrProgressCircle/GrProgressCircle.vue.d.ts +103 -0
- package/dist/types/src/components/GrProgressCircle/config.d.ts +1 -0
- package/dist/types/src/components/GrProgressCircle/defaults.d.ts +18 -0
- package/dist/types/src/components/GrProgressCircle/geometry.d.ts +29 -0
- package/dist/types/src/components/GrProgressCircle/grProgressCircleStyles.d.ts +34 -0
- package/dist/types/src/components/GrProgressCircle/index.d.ts +11 -0
- package/dist/types/src/components/GrProgressCircle/safelist.d.ts +1 -0
- package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +78 -10
- package/dist/types/src/components/GrPromptDialog/config.d.ts +1 -1
- package/dist/types/src/components/GrPromptDialog/defaults.d.ts +14 -0
- package/dist/types/src/components/GrPromptDialog/index.d.ts +1 -0
- package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +28 -9
- package/dist/types/src/components/GrRadio/config.d.ts +1 -1
- package/dist/types/src/components/GrRadio/grRadioGroupContext.d.ts +37 -2
- package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +49 -6
- package/dist/types/src/components/GrRadio/index.d.ts +1 -0
- package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +54 -10
- package/dist/types/src/components/GrRadioGroup/config.d.ts +1 -1
- package/dist/types/src/components/GrRadioGroup/index.d.ts +4 -0
- package/dist/types/src/components/GrRating/GrRating.vue.d.ts +66 -17
- package/dist/types/src/components/GrRating/config.d.ts +1 -1
- package/dist/types/src/components/GrRating/grRatingStyles.d.ts +4 -1
- package/dist/types/src/components/GrRating/index.d.ts +4 -0
- package/dist/types/src/components/GrResponseErrorBanner/GrFormErrorBanner.vue.d.ts +8 -4
- package/dist/types/src/components/GrResponseErrorBanner/GrResponseErrorBanner.vue.d.ts +8 -4
- package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +11 -4
- package/dist/types/src/components/GrResponseErrorBanner/config.d.ts +1 -1
- package/dist/types/src/components/GrResponseErrorBanner/index.d.ts +6 -0
- package/dist/types/src/components/GrResponseErrorBanner/parsers/httpStatusParser.d.ts +3 -1
- package/dist/types/src/components/GrResponseErrorBanner/parsers/plainMessageParser.d.ts +4 -1
- package/dist/types/src/components/GrResponseErrorBanner/responseError.types.d.ts +12 -2
- package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +48 -9
- package/dist/types/src/components/GrSegmented/config.d.ts +1 -1
- package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +31 -5
- package/dist/types/src/components/GrSegmented/index.d.ts +5 -1
- package/dist/types/src/components/GrSegmented/safelist.d.ts +3 -1
- package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +138 -114
- package/dist/types/src/components/GrSelect/composables/useSelectNavigation.d.ts +52 -0
- package/dist/types/src/components/GrSelect/composables/useSelectPanelItems.d.ts +67 -0
- package/dist/types/src/components/GrSelect/composables/useSelectValues.d.ts +37 -0
- package/dist/types/src/components/GrSelect/composables/useSelectVirtualization.d.ts +27 -0
- package/dist/types/src/components/GrSelect/config.d.ts +1 -1
- package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +64 -9
- package/dist/types/src/components/GrSelect/index.d.ts +5 -1
- package/dist/types/src/components/GrSelect/selectValue.d.ts +20 -0
- package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +30 -5
- package/dist/types/src/components/GrSidebar/GrSidebarGroup.vue.d.ts +43 -0
- package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +4 -4
- package/dist/types/src/components/GrSidebar/config.d.ts +1 -1
- package/dist/types/src/components/GrSidebar/grSidebarStyles.d.ts +48 -0
- package/dist/types/src/components/GrSidebar/index.d.ts +6 -0
- package/dist/types/src/components/GrSidebar/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +22 -6
- package/dist/types/src/components/GrSkeleton/config.d.ts +1 -1
- package/dist/types/src/components/GrSkeleton/grSkeletonStyles.d.ts +9 -0
- package/dist/types/src/components/GrSkeleton/index.d.ts +1 -0
- package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +54 -4
- package/dist/types/src/components/GrSlider/config.d.ts +1 -1
- package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +47 -8
- package/dist/types/src/components/GrSlider/index.d.ts +4 -0
- package/dist/types/src/components/GrSplitter/GrSplitter.vue.d.ts +121 -0
- package/dist/types/src/components/GrSplitter/config.d.ts +1 -0
- package/dist/types/src/components/GrSplitter/defaults.d.ts +16 -0
- package/dist/types/src/components/GrSplitter/grSplitterStyles.d.ts +9 -0
- package/dist/types/src/components/GrSplitter/index.d.ts +11 -0
- package/dist/types/src/components/GrSplitter/safelist.d.ts +1 -0
- package/dist/types/src/components/GrSplitter/splitterGeometry.d.ts +39 -0
- package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +65 -16
- package/dist/types/src/components/GrStatistic/config.d.ts +1 -1
- package/dist/types/src/components/GrStatistic/countUp.d.ts +17 -0
- package/dist/types/src/components/GrStatistic/defaults.d.ts +14 -0
- package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +6 -2
- package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +14 -1
- package/dist/types/src/components/GrStatistic/index.d.ts +2 -1
- package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +68 -6
- package/dist/types/src/components/GrSwitch/config.d.ts +1 -1
- package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +45 -4
- package/dist/types/src/components/GrSwitch/index.d.ts +5 -1
- package/dist/types/src/components/GrSwitch/safelist.d.ts +4 -1
- package/dist/types/src/components/GrTabPanels/GrTabPanel.vue.d.ts +12 -9
- package/dist/types/src/components/GrTabPanels/GrTabPanels.vue.d.ts +4 -14
- package/dist/types/src/components/GrTabPanels/config.d.ts +1 -1
- package/dist/types/src/components/GrTabPanels/context.d.ts +1 -1
- package/dist/types/src/components/GrTabPanels/index.d.ts +2 -0
- package/dist/types/src/components/GrTable/GrTable.vue.d.ts +85 -15
- package/dist/types/src/components/GrTable/config.d.ts +1 -1
- package/dist/types/src/components/GrTable/defaults.d.ts +10 -0
- package/dist/types/src/components/GrTable/grTableStyles.d.ts +20 -0
- package/dist/types/src/components/GrTable/index.d.ts +7 -1
- package/dist/types/src/components/GrTable/safelist.d.ts +1 -0
- package/dist/types/src/components/GrTabs/GrTabs.vue.d.ts +92 -6
- package/dist/types/src/components/GrTabs/config.d.ts +1 -1
- package/dist/types/src/components/GrTabs/defaults.d.ts +12 -0
- package/dist/types/src/components/GrTabs/grTabsStyles.d.ts +71 -0
- package/dist/types/src/components/GrTabs/index.d.ts +5 -0
- package/dist/types/src/components/GrTabs/safelist.d.ts +1 -0
- package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +89 -24
- package/dist/types/src/components/GrTextarea/config.d.ts +1 -1
- package/dist/types/src/components/GrTextarea/defaults.d.ts +18 -0
- package/dist/types/src/components/GrTextarea/grTextareaStyles.d.ts +33 -1
- package/dist/types/src/components/GrTextarea/index.d.ts +6 -1
- package/dist/types/src/components/GrTimeline/GrTimeline.vue.d.ts +70 -0
- package/dist/types/src/components/GrTimeline/GrTimelineItem.vue.d.ts +84 -0
- package/dist/types/src/components/GrTimeline/config.d.ts +1 -0
- package/dist/types/src/components/GrTimeline/defaults.d.ts +19 -0
- package/dist/types/src/components/GrTimeline/grTimelineContext.d.ts +18 -0
- package/dist/types/src/components/GrTimeline/grTimelineStyles.d.ts +37 -0
- package/dist/types/src/components/GrTimeline/index.d.ts +12 -0
- package/dist/types/src/components/GrTimeline/safelist.d.ts +1 -0
- package/dist/types/src/components/GrTimeline/timelineGroups.d.ts +23 -0
- package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +25 -1
- package/dist/types/src/components/GrToaster/config.d.ts +1 -1
- package/dist/types/src/components/GrToaster/index.d.ts +3 -0
- package/dist/types/src/components/GrTooltip/GrTooltip.vue.d.ts +57 -6
- package/dist/types/src/components/GrTooltip/config.d.ts +1 -1
- package/dist/types/src/components/GrTooltip/defaults.d.ts +10 -0
- package/dist/types/src/components/GrTooltip/grTooltipStyles.d.ts +8 -0
- package/dist/types/src/components/GrTooltip/index.d.ts +5 -1
- package/dist/types/src/components/GrTooltip/safelist.d.ts +1 -0
- package/dist/types/src/components/GrTree/GrTree.vue.d.ts +20 -7
- package/dist/types/src/components/GrTree/config.d.ts +1 -1
- package/dist/types/src/components/GrTree/defaults.d.ts +10 -0
- package/dist/types/src/components/GrTree/grTreeChecking.d.ts +31 -0
- package/dist/types/src/components/GrTree/grTreeDataAdapter.d.ts +2 -0
- package/dist/types/src/components/GrTree/grTreeInteractionContext.d.ts +9 -0
- package/dist/types/src/components/GrTree/grTreeProps.d.ts +60 -11
- package/dist/types/src/components/GrTree/grTreeStore.d.ts +27 -1
- package/dist/types/src/components/GrTree/grTreeStyles.d.ts +22 -0
- package/dist/types/src/components/GrTree/grTreeTypes.d.ts +15 -0
- package/dist/types/src/components/GrTree/index.d.ts +5 -1
- package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +30 -9
- package/dist/types/src/components/GrTreeSelect/config.d.ts +1 -1
- package/dist/types/src/components/GrTreeSelect/defaults.d.ts +10 -0
- package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +29 -1
- package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +43 -0
- package/dist/types/src/components/GrTreeSelect/index.d.ts +5 -0
- package/dist/types/src/components/shared/hotkey.d.ts +46 -0
- package/dist/types/src/components/shared/instance.d.ts +15 -0
- package/dist/types/src/components/shared/optionFilter.d.ts +61 -0
- package/dist/types/src/components/shared/sizes.d.ts +30 -0
- package/dist/types/src/components/shared/slotNodes.d.ts +19 -0
- package/dist/types/src/composables/internal/focusables.d.ts +30 -0
- package/dist/types/src/composables/internal/inert.d.ts +35 -0
- package/dist/types/src/composables/internal/overlayStack.d.ts +60 -0
- package/dist/types/src/composables/internal/portalRoot.d.ts +27 -0
- package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +1 -1
- package/dist/types/src/composables/internal/useComboboxNavigation.d.ts +51 -0
- package/dist/types/src/composables/internal/useControlAddons.d.ts +61 -0
- package/dist/types/src/composables/internal/useControlledOpen.d.ts +14 -0
- package/dist/types/src/composables/internal/useFilePreviews.d.ts +26 -0
- package/dist/types/src/composables/internal/useFocusWithin.d.ts +32 -0
- package/dist/types/src/composables/internal/useInertOthers.d.ts +9 -0
- package/dist/types/src/composables/internal/useModalOverlay.d.ts +95 -0
- package/dist/types/src/composables/internal/useOverlayPresence.d.ts +24 -0
- package/dist/types/src/composables/internal/useScrollLock.d.ts +10 -5
- package/dist/types/src/composables/internal/useTeleportEnabled.d.ts +35 -0
- package/dist/types/src/composables/useAnnouncer.d.ts +44 -0
- package/dist/types/src/composables/useDismissible.d.ts +32 -0
- package/dist/types/src/composables/useFocusTrap.d.ts +50 -0
- package/dist/types/src/composables/useGrFormControl.d.ts +52 -0
- package/dist/types/src/composables/useOverlayLayer.d.ts +67 -0
- package/dist/types/src/composables/usePortalTarget.d.ts +28 -0
- package/dist/types/src/composables/useTheme.d.ts +48 -2
- package/dist/types/src/composables/useToast.d.ts +20 -11
- package/dist/types/src/composables/useVirtualList.d.ts +119 -0
- package/dist/types/src/directives/loading.d.ts +7 -1
- package/dist/types/src/fileValidation/i18n.d.ts +24 -0
- package/dist/types/src/fileValidation/index.d.ts +4 -2
- package/dist/types/src/fileValidation/maxCountValidator.d.ts +9 -0
- package/dist/types/src/fileValidation/maxFileSize.d.ts +16 -0
- package/dist/types/src/fileValidation/types.d.ts +8 -2
- package/dist/types/src/granular-provider/index.d.ts +1 -1
- package/dist/types/src/granular-provider/node.d.ts +2 -3
- package/dist/types/src/granular-provider/shared.d.ts +13 -18
- package/dist/types/src/i18n/adapter.d.ts +24 -0
- package/dist/types/src/i18n/messages/en.d.ts +286 -2
- package/dist/types/src/i18n/messages/es.d.ts +290 -2
- package/dist/types/src/i18n/messages/ru.d.ts +294 -2
- package/dist/types/src/index.d.ts +26 -3
- package/dist/types/src/internal/granularityFormat.d.ts +19 -0
- package/dist/types/src/internal/granularityI18n.d.ts +6 -0
- package/dist/types/src/internal/keyboard.d.ts +46 -0
- package/dist/types/src/tokens/generated.d.ts +6 -0
- package/dist/types/src/tokens/index.d.ts +13 -0
- package/dist/types/src/tokens/types.d.ts +54 -0
- package/dist/vue/index.js.map +1 -1
- package/dist/web-types.json +6309 -2024
- package/package.json +90 -17
- package/tokens/derived.json +142 -0
- package/tokens/foundation.json +558 -0
- package/tokens/themes/dark.json +499 -0
- package/tokens/themes/light.json +499 -0
- package/dist/GrBadge.css +0 -1
- package/dist/GrButtonGroup.css +0 -1
- package/dist/GrFormFile.css +0 -1
- package/dist/GrIcon.css +0 -1
- package/dist/GrLoading.css +0 -1
- package/dist/GrToaster.css +0 -1
- package/dist/GrTree.css +0 -1
- package/dist/chunks/config-23WtUiAL.js +0 -53
- package/dist/chunks/config-23WtUiAL.js.map +0 -1
- package/dist/chunks/config-B0i5r8kH.js +0 -23
- package/dist/chunks/config-B0i5r8kH.js.map +0 -1
- package/dist/chunks/config-B0qIpo8m.js +0 -5
- package/dist/chunks/config-B0qIpo8m.js.map +0 -1
- package/dist/chunks/config-B5Rknzkd.js +0 -100
- package/dist/chunks/config-B5Rknzkd.js.map +0 -1
- package/dist/chunks/config-BDSHekVC.js +0 -84
- package/dist/chunks/config-BDSHekVC.js.map +0 -1
- package/dist/chunks/config-BEegFP74.js +0 -5
- package/dist/chunks/config-BEegFP74.js.map +0 -1
- package/dist/chunks/config-BLHqZhy-.js +0 -5
- package/dist/chunks/config-BLHqZhy-.js.map +0 -1
- package/dist/chunks/config-BMKNHFMD2.js +0 -171
- package/dist/chunks/config-BMKNHFMD2.js.map +0 -1
- package/dist/chunks/config-BUHuGBik2.js +0 -13
- package/dist/chunks/config-BUHuGBik2.js.map +0 -1
- package/dist/chunks/config-BWGGp7uV.js +0 -8
- package/dist/chunks/config-BWGGp7uV.js.map +0 -1
- package/dist/chunks/config-BWiPnygb.js +0 -5
- package/dist/chunks/config-BWiPnygb.js.map +0 -1
- package/dist/chunks/config-BX1JTrkV.js +0 -14
- package/dist/chunks/config-BX1JTrkV.js.map +0 -1
- package/dist/chunks/config-BXtAmU3s.js +0 -8
- package/dist/chunks/config-BXtAmU3s.js.map +0 -1
- package/dist/chunks/config-BZFUM3Ky.js +0 -75
- package/dist/chunks/config-BZFUM3Ky.js.map +0 -1
- package/dist/chunks/config-Bah4oHwL.js +0 -8
- package/dist/chunks/config-Bah4oHwL.js.map +0 -1
- package/dist/chunks/config-BmNT0Fmx.js +0 -45
- package/dist/chunks/config-BmNT0Fmx.js.map +0 -1
- package/dist/chunks/config-BvVq2gbd.js +0 -13
- package/dist/chunks/config-BvVq2gbd.js.map +0 -1
- package/dist/chunks/config-C4hJxXDa.js +0 -58
- package/dist/chunks/config-C4hJxXDa.js.map +0 -1
- package/dist/chunks/config-C86UzUYf.js +0 -13
- package/dist/chunks/config-C86UzUYf.js.map +0 -1
- package/dist/chunks/config-C9AcVDkv.js +0 -5
- package/dist/chunks/config-C9AcVDkv.js.map +0 -1
- package/dist/chunks/config-CB4RVt9M.js +0 -66
- package/dist/chunks/config-CB4RVt9M.js.map +0 -1
- package/dist/chunks/config-CGHLoBlH2.js +0 -5
- package/dist/chunks/config-CGHLoBlH2.js.map +0 -1
- package/dist/chunks/config-COE_vZ-l.js +0 -52
- package/dist/chunks/config-COE_vZ-l.js.map +0 -1
- package/dist/chunks/config-CPdmr7tC.js +0 -39
- package/dist/chunks/config-CPdmr7tC.js.map +0 -1
- package/dist/chunks/config-CThzliFi.js +0 -5
- package/dist/chunks/config-CThzliFi.js.map +0 -1
- package/dist/chunks/config-Cb2PAlSD.js +0 -8
- package/dist/chunks/config-Cb2PAlSD.js.map +0 -1
- package/dist/chunks/config-D7GZO-Dx.js +0 -8
- package/dist/chunks/config-D7GZO-Dx.js.map +0 -1
- package/dist/chunks/config-DICOd-2X.js +0 -5
- package/dist/chunks/config-DICOd-2X.js.map +0 -1
- package/dist/chunks/config-DPDFYzIa.js +0 -40
- package/dist/chunks/config-DPDFYzIa.js.map +0 -1
- package/dist/chunks/config-DRKXJ9PW2.js +0 -22
- package/dist/chunks/config-DRKXJ9PW2.js.map +0 -1
- package/dist/chunks/config-DToHb81g.js +0 -45
- package/dist/chunks/config-DToHb81g.js.map +0 -1
- package/dist/chunks/config-D_myOZbA.js +0 -20
- package/dist/chunks/config-D_myOZbA.js.map +0 -1
- package/dist/chunks/config-Dg_6FTvJ.js +0 -35
- package/dist/chunks/config-Dg_6FTvJ.js.map +0 -1
- package/dist/chunks/config-Dlm49Jp5.js +0 -5
- package/dist/chunks/config-Dlm49Jp5.js.map +0 -1
- package/dist/chunks/config-DpqOnJiz.js.map +0 -1
- package/dist/chunks/config-Dqy0rPPO2.js +0 -17
- package/dist/chunks/config-Dqy0rPPO2.js.map +0 -1
- package/dist/chunks/config-Dxuwwepq.js +0 -5
- package/dist/chunks/config-Dxuwwepq.js.map +0 -1
- package/dist/chunks/config-HZto2PVy.js +0 -5
- package/dist/chunks/config-HZto2PVy.js.map +0 -1
- package/dist/chunks/config-JOtB4mzs.js +0 -8
- package/dist/chunks/config-JOtB4mzs.js.map +0 -1
- package/dist/chunks/config-JpHA4Xx0.js +0 -8
- package/dist/chunks/config-JpHA4Xx0.js.map +0 -1
- package/dist/chunks/config-KXuionN3.js +0 -9
- package/dist/chunks/config-KXuionN3.js.map +0 -1
- package/dist/chunks/config-LqDC_rvp.js +0 -78
- package/dist/chunks/config-LqDC_rvp.js.map +0 -1
- package/dist/chunks/config-PFg39mYo.js +0 -5
- package/dist/chunks/config-PFg39mYo.js.map +0 -1
- package/dist/chunks/config-QYGvEBu5.js +0 -22
- package/dist/chunks/config-QYGvEBu5.js.map +0 -1
- package/dist/chunks/config-QaIc_gRa2.js.map +0 -1
- package/dist/chunks/config-U4m9PSql2.js +0 -8
- package/dist/chunks/config-U4m9PSql2.js.map +0 -1
- package/dist/chunks/config-XmTv4pnI.js +0 -26
- package/dist/chunks/config-XmTv4pnI.js.map +0 -1
- package/dist/chunks/config-ZiXWIRBX.js +0 -8
- package/dist/chunks/config-ZiXWIRBX.js.map +0 -1
- package/dist/chunks/config-eXB87DOi.js.map +0 -1
- package/dist/chunks/config-gZWR75Bh2.js +0 -44
- package/dist/chunks/config-gZWR75Bh2.js.map +0 -1
- package/dist/chunks/config-ipvU0lzP.js +0 -5
- package/dist/chunks/config-ipvU0lzP.js.map +0 -1
- package/dist/chunks/config-xR4XVmcy2.js +0 -8
- package/dist/chunks/config-xR4XVmcy2.js.map +0 -1
- package/dist/chunks/context-DfWYCBB-.js +0 -129
- package/dist/chunks/context-DfWYCBB-.js.map +0 -1
- package/dist/chunks/en-Cr6EkG8c.js +0 -186
- package/dist/chunks/en-Cr6EkG8c.js.map +0 -1
- package/dist/chunks/es-DuYb1Qju.js +0 -20
- package/dist/chunks/es-DuYb1Qju.js.map +0 -1
- package/dist/chunks/es-i08e9Sdo.js +0 -186
- package/dist/chunks/es-i08e9Sdo.js.map +0 -1
- package/dist/chunks/fileValidation-C3WFaWU2.js +0 -220
- package/dist/chunks/fileValidation-C3WFaWU2.js.map +0 -1
- package/dist/chunks/grBadgeStyles-D3dFjr_N.js +0 -50
- package/dist/chunks/grBadgeStyles-D3dFjr_N.js.map +0 -1
- package/dist/chunks/grButtonStyles-DRBgDmOp.js +0 -191
- package/dist/chunks/grButtonStyles-DRBgDmOp.js.map +0 -1
- package/dist/chunks/grDropdownStyles-HBPkghVr.js +0 -35
- package/dist/chunks/grDropdownStyles-HBPkghVr.js.map +0 -1
- package/dist/chunks/grLoadingStyles-R5sreH__.js +0 -17
- package/dist/chunks/grLoadingStyles-R5sreH__.js.map +0 -1
- package/dist/chunks/grModalEscStack-BXk-9mv7.js +0 -43
- package/dist/chunks/grModalEscStack-BXk-9mv7.js.map +0 -1
- package/dist/chunks/grModalStyles-D8-shx9A.js +0 -47
- package/dist/chunks/grModalStyles-D8-shx9A.js.map +0 -1
- package/dist/chunks/grSelectStyles-CwMUQrBZ.js +0 -97
- package/dist/chunks/grSelectStyles-CwMUQrBZ.js.map +0 -1
- package/dist/chunks/grStyle-CdvxTXPH.js +0 -19
- package/dist/chunks/grStyle-CdvxTXPH.js.map +0 -1
- package/dist/chunks/granularityI18n-SH0I--GW.js +0 -61
- package/dist/chunks/granularityI18n-SH0I--GW.js.map +0 -1
- package/dist/chunks/ru-B5XOOYZt.js +0 -186
- package/dist/chunks/ru-B5XOOYZt.js.map +0 -1
- package/dist/chunks/safelist-BvO8HPnE.js +0 -24
- package/dist/chunks/safelist-BvO8HPnE.js.map +0 -1
- package/dist/chunks/shared-D-v9lit0.js +0 -188
- package/dist/chunks/shared-D-v9lit0.js.map +0 -1
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js +0 -65
- package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +0 -1
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js +0 -27
- package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +0 -1
- package/dist/chunks/useFloating-DtM6TyE4.js +0 -1249
- package/dist/chunks/useFloating-DtM6TyE4.js.map +0 -1
- package/dist/chunks/useScrollLock-K7kaP2Ud.js +0 -1757
- package/dist/chunks/useScrollLock-K7kaP2Ud.js.map +0 -1
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js +0 -251
- package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js.map +0 -1
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js +0 -499
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js.map +0 -1
- package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js +0 -41
- package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js.map +0 -1
- package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js +0 -40
- package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js.map +0 -1
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js +0 -33
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js.map +0 -1
- package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js +0 -31
- package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js.map +0 -1
- package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js +0 -128
- package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js.map +0 -1
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js +0 -21
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +0 -1
- package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js +0 -11
- package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js.map +0 -1
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js +0 -182
- package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js.map +0 -1
- package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js +0 -205
- package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js.map +0 -1
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js +0 -410
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js.map +0 -1
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js +0 -57
- package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js.map +0 -1
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js +0 -160
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +0 -1
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js +0 -307
- package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js.map +0 -1
- package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js +0 -223
- package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js.map +0 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js +0 -450
- package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js.map +0 -1
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js +0 -54
- package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +0 -1
- package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js +0 -184
- package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js.map +0 -1
- package/dist/components/GrDropdown/chunks/GrDropdown-BKoy8hm-.js +0 -181
- package/dist/components/GrDropdown/chunks/GrDropdown-BKoy8hm-.js.map +0 -1
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js +0 -309
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js.map +0 -1
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js +0 -62
- package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js.map +0 -1
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js +0 -592
- package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js.map +0 -1
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js +0 -234
- package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js.map +0 -1
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js +0 -100
- package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +0 -1
- package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js +0 -320
- package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js.map +0 -1
- package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js +0 -35
- package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js.map +0 -1
- package/dist/components/GrIcon/chunks/GrIcon-D9AWQLk2.js +0 -32
- package/dist/components/GrIcon/chunks/GrIcon-D9AWQLk2.js.map +0 -1
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DDLJkvIU.js +0 -650
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DDLJkvIU.js.map +0 -1
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js +0 -337
- package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js.map +0 -1
- package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js +0 -260
- package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js.map +0 -1
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js +0 -22
- package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +0 -1
- package/dist/components/GrLink/chunks/GrLink-BP0YrnL9.js +0 -100
- package/dist/components/GrLink/chunks/GrLink-BP0YrnL9.js.map +0 -1
- package/dist/components/GrList/chunks/GrList-5RA-tZzE.js +0 -77
- package/dist/components/GrList/chunks/GrList-5RA-tZzE.js.map +0 -1
- package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js +0 -69
- package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js.map +0 -1
- package/dist/components/GrModal/chunks/GrModal-BTu1-5eY.js +0 -233
- package/dist/components/GrModal/chunks/GrModal-BTu1-5eY.js.map +0 -1
- package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js +0 -75
- package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js.map +0 -1
- package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js +0 -471
- package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js.map +0 -1
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js +0 -208
- package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +0 -1
- package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js +0 -39
- package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js.map +0 -1
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js +0 -224
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js.map +0 -1
- package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js +0 -182
- package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js.map +0 -1
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js +0 -82
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js.map +0 -1
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js +0 -241
- package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-2CvM7Z08.js +0 -224
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-2CvM7Z08.js.map +0 -1
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C8NGx8pE.js +0 -782
- package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-C8NGx8pE.js.map +0 -1
- package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js +0 -326
- package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js.map +0 -1
- package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js +0 -730
- package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js.map +0 -1
- package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js +0 -238
- package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js.map +0 -1
- package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js +0 -33
- package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js.map +0 -1
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js +0 -286
- package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js.map +0 -1
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js +0 -128
- package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js.map +0 -1
- package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js +0 -88
- package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js.map +0 -1
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js +0 -68
- package/dist/components/GrTabPanels/chunks/GrTabPanels-DeEMgb_y.js.map +0 -1
- package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js +0 -70
- package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js.map +0 -1
- package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js +0 -123
- package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js.map +0 -1
- package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js +0 -81
- package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js.map +0 -1
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js +0 -230
- package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +0 -1
- package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js +0 -109
- package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js.map +0 -1
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js +0 -838
- package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +0 -1
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js +0 -426
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js.map +0 -1
- package/dist/granular-provider-node.js.map +0 -1
- package/dist/granular-provider.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/src/components/GrButton/config.node.d.ts +0 -1
- package/dist/types/src/components/GrCommandPalette/hotkey.d.ts +0 -23
- package/dist/types/src/components/GrFileUpload/maxSizeMbValidator.d.ts +0 -1
- package/dist/types/src/components/GrModal/grModalEscStack.d.ts +0 -30
- package/dist/types/src/components/GrModal/grModalTopStack.d.ts +0 -31
- package/dist/types/src/components/GrProgressBar/config.node.d.ts +0 -1
- package/dist/types/src/composables/internal/useEscapeToClose.d.ts +0 -11
- package/dist/types/src/fileValidation/maxFileSizeBytesValidator.d.ts +0 -2
- package/dist/types/src/fileValidation/maxSizeMbValidator.d.ts +0 -2
- /package/dist/chunks/{config-DpqOnJiz.js → config-DpqOnJiz2.js} +0 -0
- /package/dist/chunks/{config-QaIc_gRa2.js → config-QaIc_gRa.js} +0 -0
- /package/dist/chunks/{config-eXB87DOi.js → config-eXB87DOi2.js} +0 -0
- /package/dist/{GrSkeleton.css → components/GrSkeleton/styles.css} +0 -0
- /package/dist/types/src/composables/{internal/useFloating.d.ts → useFloating.d.ts} +0 -0
|
@@ -0,0 +1,1080 @@
|
|
|
1
|
+
import { t as x_default } from "../../../chunks/x-2KXnqxiD.js";
|
|
2
|
+
import { o as useGrComponentSize } from "../../../chunks/context-BSYR7RZs.js";
|
|
3
|
+
import { n as useGranularityTranslations } from "../../../chunks/granularityI18n-BC5zsj_d.js";
|
|
4
|
+
import { f as runFileValidators, o as acceptValidator, p as FileValidationError } from "../../../chunks/fileValidation-D5TFBhbv.js";
|
|
5
|
+
import { t as GrIcon_default } from "../../GrIcon/chunks/GrIcon-BvA2ZGXP.js";
|
|
6
|
+
import { n as useGrFormFieldContext } from "../../../chunks/context-DdNIxa1w.js";
|
|
7
|
+
import { useGrFormControl } from "../../../composables/useGrFormControl.js";
|
|
8
|
+
import { t as useFocusWithin } from "../../../chunks/useFocusWithin-BwHE0rzm.js";
|
|
9
|
+
import { r as meaningfulSlotNodes, t as flattenSlotNodes } from "../../../chunks/slotNodes-DxNXpC7v.js";
|
|
10
|
+
import { t as arrow_up_default } from "../../../chunks/arrow-up-C_G4jg8M.js";
|
|
11
|
+
import { t as GrProgressBar_default } from "../../GrProgressBar/chunks/GrProgressBar-BiHnaitu.js";
|
|
12
|
+
import { t as useFilePreviews } from "../../../chunks/useFilePreviews-DnwgdyBs.js";
|
|
13
|
+
import { a as iconGlyphSizes, c as progressBarSizes, i as hintSizes, l as progressTextSizes, o as iconTileSizes, r as grFileUploadZoneClass, s as labelSizes, u as zoneGaps } from "../../../chunks/config-CN970ZcJ.js";
|
|
14
|
+
import { Fragment, Text, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, nextTick, normalizeClass, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderList, renderSlot, toDisplayString, unref, useSlots, watch, withCtx, withModifiers } from "vue";
|
|
15
|
+
//#region src/components/GrFileUpload/fileEntry.ts
|
|
16
|
+
function createFileEntry(file) {
|
|
17
|
+
return {
|
|
18
|
+
file,
|
|
19
|
+
status: "pending",
|
|
20
|
+
percent: 0
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Сводное состояние набора: грузимся, пока грузится хоть один; ошибка, если
|
|
25
|
+
* после завершения есть хоть одна; успех — когда успешны все.
|
|
26
|
+
*
|
|
27
|
+
* Процент — среднее по файлам, а не по байтам: у пофайловых запросов размеры
|
|
28
|
+
* разные, и «взвешенная» полоса дёргалась бы назад, когда большой файл
|
|
29
|
+
* стартует после маленького.
|
|
30
|
+
*/
|
|
31
|
+
function summarizeFileEntries(entries) {
|
|
32
|
+
if (!entries.length) return {
|
|
33
|
+
phase: "idle",
|
|
34
|
+
percent: 0,
|
|
35
|
+
indeterminate: false,
|
|
36
|
+
loaded: 0,
|
|
37
|
+
total: 0
|
|
38
|
+
};
|
|
39
|
+
const total = entries.length;
|
|
40
|
+
const percent = Math.round(entries.reduce((sum, entry) => sum + entry.percent, 0) / total);
|
|
41
|
+
const failed = entries.filter((entry) => entry.status === "error");
|
|
42
|
+
if (entries.some((entry) => entry.status === "uploading" || entry.status === "pending")) return {
|
|
43
|
+
phase: "uploading",
|
|
44
|
+
percent,
|
|
45
|
+
indeterminate: percent === 0,
|
|
46
|
+
loaded: 0,
|
|
47
|
+
total: 0
|
|
48
|
+
};
|
|
49
|
+
if (failed.length) return {
|
|
50
|
+
phase: "error",
|
|
51
|
+
percent,
|
|
52
|
+
indeterminate: false,
|
|
53
|
+
loaded: 0,
|
|
54
|
+
total: 0,
|
|
55
|
+
error: failed[0].error
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
phase: "success",
|
|
59
|
+
percent: 100,
|
|
60
|
+
indeterminate: false,
|
|
61
|
+
loaded: 0,
|
|
62
|
+
total: 0
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/GrFileUpload/useDropZone.ts
|
|
67
|
+
/**
|
|
68
|
+
* Drag&drop поверх зоны.
|
|
69
|
+
*
|
|
70
|
+
* Счётчик входов, а не флаг: `dragenter`/`dragleave` приходят и от вложенных
|
|
71
|
+
* элементов, и без счётчика подсветка гасла, стоило курсору пересечь границу
|
|
72
|
+
* подписи внутри зоны.
|
|
73
|
+
*/
|
|
74
|
+
function useDropZone(options) {
|
|
75
|
+
const isOver = ref(false);
|
|
76
|
+
let overCounter = 0;
|
|
77
|
+
function setOver(next) {
|
|
78
|
+
if (isOver.value === next) return;
|
|
79
|
+
isOver.value = next;
|
|
80
|
+
}
|
|
81
|
+
function ignored() {
|
|
82
|
+
return options.inactive() || options.locked();
|
|
83
|
+
}
|
|
84
|
+
function onDragEnter(event) {
|
|
85
|
+
if (ignored()) return;
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
overCounter += 1;
|
|
88
|
+
setOver(true);
|
|
89
|
+
}
|
|
90
|
+
function onDragOver(event) {
|
|
91
|
+
if (ignored()) return;
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
|
|
94
|
+
}
|
|
95
|
+
function onDragLeave(event) {
|
|
96
|
+
if (ignored()) return;
|
|
97
|
+
event.preventDefault();
|
|
98
|
+
overCounter = Math.max(0, overCounter - 1);
|
|
99
|
+
if (overCounter === 0) setOver(false);
|
|
100
|
+
}
|
|
101
|
+
function onDropFiles(event) {
|
|
102
|
+
if (ignored()) return;
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
overCounter = 0;
|
|
105
|
+
setOver(false);
|
|
106
|
+
const files = event.dataTransfer?.files ? Array.prototype.slice.call(event.dataTransfer.files) : [];
|
|
107
|
+
options.onDrop(files);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
isOver,
|
|
111
|
+
onDragEnter,
|
|
112
|
+
onDragOver,
|
|
113
|
+
onDragLeave,
|
|
114
|
+
onDropFiles
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/GrFileUpload/uploadViaXhr.ts
|
|
119
|
+
var GrUploadAbortError = class extends Error {
|
|
120
|
+
constructor(message = "Upload aborted") {
|
|
121
|
+
super(message);
|
|
122
|
+
this.name = "GrUploadAbortError";
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var GrUploadHttpError = class extends Error {
|
|
126
|
+
status;
|
|
127
|
+
payload;
|
|
128
|
+
constructor(status, payload) {
|
|
129
|
+
super(`Upload failed with status ${status}`);
|
|
130
|
+
this.name = "GrUploadHttpError";
|
|
131
|
+
this.status = status;
|
|
132
|
+
this.payload = payload;
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
function appendExtraFormData(body, extraData) {
|
|
136
|
+
if (!extraData) return;
|
|
137
|
+
for (const [key, value] of Object.entries(extraData)) {
|
|
138
|
+
if (Array.isArray(value)) {
|
|
139
|
+
for (const entry of value) body.append(key, entry);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
body.append(key, value);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function parseResponse(xhr) {
|
|
146
|
+
const contentType = xhr.getResponseHeader("content-type") ?? "";
|
|
147
|
+
const raw = xhr.responseText;
|
|
148
|
+
if (contentType.includes("application/json")) try {
|
|
149
|
+
return JSON.parse(raw);
|
|
150
|
+
} catch {
|
|
151
|
+
return raw;
|
|
152
|
+
}
|
|
153
|
+
return raw;
|
|
154
|
+
}
|
|
155
|
+
function uploadViaXhr(options) {
|
|
156
|
+
const { url, files, name, headers, withCredentials, extraData, signal, onProgress } = options;
|
|
157
|
+
return new Promise((resolve, reject) => {
|
|
158
|
+
if (signal.aborted) {
|
|
159
|
+
reject(new GrUploadAbortError());
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const body = new FormData();
|
|
163
|
+
for (const file of files) body.append(name, file);
|
|
164
|
+
appendExtraFormData(body, extraData);
|
|
165
|
+
const xhr = new XMLHttpRequest();
|
|
166
|
+
xhr.open("POST", url, true);
|
|
167
|
+
xhr.withCredentials = !!withCredentials;
|
|
168
|
+
if (headers) for (const [key, value] of Object.entries(headers)) xhr.setRequestHeader(key, value);
|
|
169
|
+
const onAbort = () => {
|
|
170
|
+
try {
|
|
171
|
+
xhr.abort();
|
|
172
|
+
} catch {}
|
|
173
|
+
};
|
|
174
|
+
signal.addEventListener("abort", onAbort);
|
|
175
|
+
const cleanup = () => {
|
|
176
|
+
signal.removeEventListener("abort", onAbort);
|
|
177
|
+
};
|
|
178
|
+
if (onProgress) xhr.upload.addEventListener("progress", (event) => {
|
|
179
|
+
const indeterminate = !event.lengthComputable;
|
|
180
|
+
const total = indeterminate ? 0 : event.total;
|
|
181
|
+
const loaded = indeterminate ? 0 : event.loaded;
|
|
182
|
+
const percent = indeterminate || total === 0 ? 0 : Math.min(100, loaded / total * 100);
|
|
183
|
+
onProgress({
|
|
184
|
+
percent,
|
|
185
|
+
loaded,
|
|
186
|
+
total,
|
|
187
|
+
indeterminate
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
xhr.addEventListener("load", () => {
|
|
191
|
+
cleanup();
|
|
192
|
+
const payload = parseResponse(xhr);
|
|
193
|
+
const status = xhr.status;
|
|
194
|
+
if (status >= 200 && status < 300) {
|
|
195
|
+
if (onProgress) onProgress({
|
|
196
|
+
percent: 100,
|
|
197
|
+
loaded: 1,
|
|
198
|
+
total: 1,
|
|
199
|
+
indeterminate: false
|
|
200
|
+
});
|
|
201
|
+
resolve(payload);
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
reject(new GrUploadHttpError(status, payload));
|
|
205
|
+
});
|
|
206
|
+
xhr.addEventListener("error", () => {
|
|
207
|
+
cleanup();
|
|
208
|
+
reject(/* @__PURE__ */ new Error("Network error during upload"));
|
|
209
|
+
});
|
|
210
|
+
xhr.addEventListener("abort", () => {
|
|
211
|
+
cleanup();
|
|
212
|
+
reject(new GrUploadAbortError());
|
|
213
|
+
});
|
|
214
|
+
xhr.send(body);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/components/GrFileUpload/usePerFileUpload.ts
|
|
219
|
+
/**
|
|
220
|
+
* Пофайловый режим: у каждого файла свой запрос, свой контроллер и свой статус,
|
|
221
|
+
* а сводное состояние выводится из них.
|
|
222
|
+
*/
|
|
223
|
+
function usePerFileUpload(options) {
|
|
224
|
+
const entries = ref([]);
|
|
225
|
+
/** Контроллер на файл: `abortFile` обязан обрывать свой запрос, а не соседний. */
|
|
226
|
+
const controllers = /* @__PURE__ */ new Map();
|
|
227
|
+
function syncSummary() {
|
|
228
|
+
options.onSummary(summarizeFileEntries(entries.value));
|
|
229
|
+
}
|
|
230
|
+
function entryOf(file) {
|
|
231
|
+
return entries.value.find((entry) => entry.file === file);
|
|
232
|
+
}
|
|
233
|
+
function patch(file, next) {
|
|
234
|
+
const entry = entryOf(file);
|
|
235
|
+
if (!entry) return;
|
|
236
|
+
Object.assign(entry, next);
|
|
237
|
+
syncSummary();
|
|
238
|
+
}
|
|
239
|
+
async function uploadOne(file) {
|
|
240
|
+
const controller = new AbortController();
|
|
241
|
+
controllers.set(file, controller);
|
|
242
|
+
patch(file, {
|
|
243
|
+
status: "uploading",
|
|
244
|
+
percent: 0,
|
|
245
|
+
error: void 0
|
|
246
|
+
});
|
|
247
|
+
const onProgress = (info) => {
|
|
248
|
+
patch(file, { percent: info.indeterminate ? 0 : info.percent });
|
|
249
|
+
options.onProgress(info, file);
|
|
250
|
+
};
|
|
251
|
+
try {
|
|
252
|
+
const payload = await options.send([file], {
|
|
253
|
+
signal: controller.signal,
|
|
254
|
+
onProgress
|
|
255
|
+
});
|
|
256
|
+
patch(file, {
|
|
257
|
+
status: "success",
|
|
258
|
+
percent: 100,
|
|
259
|
+
error: void 0
|
|
260
|
+
});
|
|
261
|
+
options.onSuccess(payload, file);
|
|
262
|
+
options.onProgress({
|
|
263
|
+
percent: 100,
|
|
264
|
+
loaded: 0,
|
|
265
|
+
total: 0,
|
|
266
|
+
indeterminate: false
|
|
267
|
+
}, file);
|
|
268
|
+
} catch (error) {
|
|
269
|
+
if (error instanceof GrUploadAbortError || error?.name === "AbortError") patch(file, {
|
|
270
|
+
status: "pending",
|
|
271
|
+
percent: 0,
|
|
272
|
+
error: void 0
|
|
273
|
+
});
|
|
274
|
+
else patch(file, {
|
|
275
|
+
status: "error",
|
|
276
|
+
error
|
|
277
|
+
});
|
|
278
|
+
options.onError(error, file);
|
|
279
|
+
} finally {
|
|
280
|
+
controllers.delete(file);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Очередь с ограничением параллелизма. Без неё «пофайлово» означало бы «все
|
|
285
|
+
* сразу»: сотня файлов открыла бы сотню соединений.
|
|
286
|
+
*/
|
|
287
|
+
async function runWithConcurrency(files) {
|
|
288
|
+
const limit = Math.max(1, Math.floor(options.concurrency()));
|
|
289
|
+
const queue = [...files];
|
|
290
|
+
const workers = Array.from({ length: Math.min(limit, queue.length) }, async () => {
|
|
291
|
+
while (queue.length) {
|
|
292
|
+
const next = queue.shift();
|
|
293
|
+
if (!next) return;
|
|
294
|
+
await uploadOne(next);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
await Promise.all(workers);
|
|
298
|
+
}
|
|
299
|
+
async function run(files) {
|
|
300
|
+
entries.value = files.map(createFileEntry);
|
|
301
|
+
syncSummary();
|
|
302
|
+
await runWithConcurrency(files);
|
|
303
|
+
options.onSetChange(files);
|
|
304
|
+
}
|
|
305
|
+
async function retryFile(file) {
|
|
306
|
+
if (!entryOf(file)) return;
|
|
307
|
+
await uploadOne(file);
|
|
308
|
+
}
|
|
309
|
+
function abortFile(file) {
|
|
310
|
+
controllers.get(file)?.abort();
|
|
311
|
+
controllers.delete(file);
|
|
312
|
+
}
|
|
313
|
+
function abortAll() {
|
|
314
|
+
for (const controller of controllers.values()) controller.abort();
|
|
315
|
+
controllers.clear();
|
|
316
|
+
}
|
|
317
|
+
function dropEntry(file) {
|
|
318
|
+
entries.value = entries.value.filter((entry) => entry.file !== file);
|
|
319
|
+
}
|
|
320
|
+
function reset() {
|
|
321
|
+
entries.value = [];
|
|
322
|
+
}
|
|
323
|
+
return {
|
|
324
|
+
entries,
|
|
325
|
+
entryOf,
|
|
326
|
+
run,
|
|
327
|
+
retryFile,
|
|
328
|
+
abortFile,
|
|
329
|
+
abortAll,
|
|
330
|
+
dropEntry,
|
|
331
|
+
reset
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/components/GrFileUpload/uploadState.ts
|
|
336
|
+
var GR_UPLOAD_STATE_IDLE = Object.freeze({
|
|
337
|
+
phase: "idle",
|
|
338
|
+
percent: 0,
|
|
339
|
+
indeterminate: false,
|
|
340
|
+
loaded: 0,
|
|
341
|
+
total: 0
|
|
342
|
+
});
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region src/components/GrFileUpload/useUploadState.ts
|
|
345
|
+
/**
|
|
346
|
+
* Сводное состояние загрузки: фаза, проценты и таймер скрытия успеха.
|
|
347
|
+
*
|
|
348
|
+
* Состояние — `reactive`-объект с меняющейся формой (у `error` есть поле
|
|
349
|
+
* `error`, у `idle` его нет), поэтому при смене фазы старые ключи удаляются:
|
|
350
|
+
* иначе `phase: 'idle'` тащил бы за собой `error` от прошлой попытки.
|
|
351
|
+
*/
|
|
352
|
+
function useUploadState(options) {
|
|
353
|
+
const state = reactive({ ...GR_UPLOAD_STATE_IDLE });
|
|
354
|
+
let idleTimer = null;
|
|
355
|
+
function clearScheduledIdle() {
|
|
356
|
+
if (idleTimer === null) return;
|
|
357
|
+
clearTimeout(idleTimer);
|
|
358
|
+
idleTimer = null;
|
|
359
|
+
}
|
|
360
|
+
function assign(next) {
|
|
361
|
+
for (const key of Object.keys(state)) delete state[key];
|
|
362
|
+
Object.assign(state, next);
|
|
363
|
+
options.onChange(state);
|
|
364
|
+
}
|
|
365
|
+
function setIdle() {
|
|
366
|
+
assign({ ...GR_UPLOAD_STATE_IDLE });
|
|
367
|
+
}
|
|
368
|
+
function setUploading(info) {
|
|
369
|
+
assign({
|
|
370
|
+
phase: "uploading",
|
|
371
|
+
percent: info?.percent ?? 0,
|
|
372
|
+
indeterminate: info?.indeterminate ?? true,
|
|
373
|
+
loaded: info?.loaded ?? 0,
|
|
374
|
+
total: info?.total ?? 0
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
function setSuccess(info) {
|
|
378
|
+
assign({
|
|
379
|
+
phase: "success",
|
|
380
|
+
percent: 100,
|
|
381
|
+
indeterminate: false,
|
|
382
|
+
loaded: info.loaded,
|
|
383
|
+
total: info.total
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function setError(error) {
|
|
387
|
+
const prev = state;
|
|
388
|
+
assign({
|
|
389
|
+
phase: "error",
|
|
390
|
+
percent: prev.phase === "uploading" ? prev.percent : 0,
|
|
391
|
+
indeterminate: false,
|
|
392
|
+
loaded: prev.phase === "uploading" ? prev.loaded : 0,
|
|
393
|
+
total: prev.phase === "uploading" ? prev.total : 0,
|
|
394
|
+
error
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
function applyProgress(info) {
|
|
398
|
+
if (state.phase !== "uploading") return;
|
|
399
|
+
assign({
|
|
400
|
+
phase: "uploading",
|
|
401
|
+
percent: info.percent,
|
|
402
|
+
indeterminate: info.indeterminate,
|
|
403
|
+
loaded: info.loaded,
|
|
404
|
+
total: info.total
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
function scheduleIdle(delayMs) {
|
|
408
|
+
clearScheduledIdle();
|
|
409
|
+
idleTimer = setTimeout(() => {
|
|
410
|
+
if (state.phase === "success") setIdle();
|
|
411
|
+
idleTimer = null;
|
|
412
|
+
}, delayMs);
|
|
413
|
+
}
|
|
414
|
+
return {
|
|
415
|
+
state,
|
|
416
|
+
setIdle,
|
|
417
|
+
setUploading,
|
|
418
|
+
setSuccess,
|
|
419
|
+
setError,
|
|
420
|
+
applyProgress,
|
|
421
|
+
assign,
|
|
422
|
+
scheduleIdle,
|
|
423
|
+
clearScheduledIdle
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/components/GrFileUpload/GrFileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
428
|
+
var _hoisted_1 = [
|
|
429
|
+
"id",
|
|
430
|
+
"tabindex",
|
|
431
|
+
"aria-hidden",
|
|
432
|
+
"aria-label",
|
|
433
|
+
"aria-describedby",
|
|
434
|
+
"aria-invalid",
|
|
435
|
+
"aria-required",
|
|
436
|
+
"aria-readonly",
|
|
437
|
+
"name",
|
|
438
|
+
"accept",
|
|
439
|
+
"capture",
|
|
440
|
+
"webkitdirectory",
|
|
441
|
+
"multiple",
|
|
442
|
+
"disabled"
|
|
443
|
+
];
|
|
444
|
+
var _hoisted_2 = {
|
|
445
|
+
"data-gr-file-upload-live": "",
|
|
446
|
+
class: "sr-only",
|
|
447
|
+
role: "status",
|
|
448
|
+
"aria-live": "polite"
|
|
449
|
+
};
|
|
450
|
+
var _hoisted_3 = { class: "min-w-0" };
|
|
451
|
+
var _hoisted_4 = {
|
|
452
|
+
key: 2,
|
|
453
|
+
"data-gr-file-upload-list": "",
|
|
454
|
+
class: "mt-3 space-y-1"
|
|
455
|
+
};
|
|
456
|
+
var _hoisted_5 = ["src"];
|
|
457
|
+
var _hoisted_6 = { class: "font-600" };
|
|
458
|
+
var _hoisted_7 = { class: "text-[var(--gr-muted-fg)]" };
|
|
459
|
+
var _hoisted_8 = ["data-status"];
|
|
460
|
+
var _hoisted_9 = ["aria-label", "onClick"];
|
|
461
|
+
var _hoisted_10 = ["aria-label", "onClick"];
|
|
462
|
+
var _hoisted_11 = ["aria-label", "onClick"];
|
|
463
|
+
var _hoisted_12 = ["aria-hidden"];
|
|
464
|
+
var _hoisted_13 = { class: "flex items-center gap-2" };
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/components/GrFileUpload/GrFileUpload.vue
|
|
467
|
+
var GrFileUpload_default = /* @__PURE__ */ defineComponent({
|
|
468
|
+
__name: "GrFileUpload",
|
|
469
|
+
props: {
|
|
470
|
+
modelValue: { default: void 0 },
|
|
471
|
+
action: { default: void 0 },
|
|
472
|
+
request: {
|
|
473
|
+
type: Function,
|
|
474
|
+
default: void 0
|
|
475
|
+
},
|
|
476
|
+
name: { default: "file" },
|
|
477
|
+
multiple: {
|
|
478
|
+
type: Boolean,
|
|
479
|
+
default: false
|
|
480
|
+
},
|
|
481
|
+
limit: { default: void 0 },
|
|
482
|
+
beforeUpload: {
|
|
483
|
+
type: Function,
|
|
484
|
+
default: void 0
|
|
485
|
+
},
|
|
486
|
+
validators: { default: void 0 },
|
|
487
|
+
accept: { default: void 0 },
|
|
488
|
+
capture: { default: void 0 },
|
|
489
|
+
directory: {
|
|
490
|
+
type: Boolean,
|
|
491
|
+
default: false
|
|
492
|
+
},
|
|
493
|
+
disabled: {
|
|
494
|
+
type: Boolean,
|
|
495
|
+
default: false
|
|
496
|
+
},
|
|
497
|
+
readonly: {
|
|
498
|
+
type: Boolean,
|
|
499
|
+
default: false
|
|
500
|
+
},
|
|
501
|
+
invalid: {
|
|
502
|
+
type: Boolean,
|
|
503
|
+
default: false
|
|
504
|
+
},
|
|
505
|
+
required: {
|
|
506
|
+
type: Boolean,
|
|
507
|
+
default: false
|
|
508
|
+
},
|
|
509
|
+
ariaLabel: { default: void 0 },
|
|
510
|
+
headers: { default: void 0 },
|
|
511
|
+
withCredentials: {
|
|
512
|
+
type: Boolean,
|
|
513
|
+
default: false
|
|
514
|
+
},
|
|
515
|
+
showFileList: {
|
|
516
|
+
type: Boolean,
|
|
517
|
+
default: false
|
|
518
|
+
},
|
|
519
|
+
uploadExtraData: {
|
|
520
|
+
type: Function,
|
|
521
|
+
default: void 0
|
|
522
|
+
},
|
|
523
|
+
placeholder: { default: void 0 },
|
|
524
|
+
showProgress: {
|
|
525
|
+
type: Boolean,
|
|
526
|
+
default: true
|
|
527
|
+
},
|
|
528
|
+
progressTone: { default: "primary" },
|
|
529
|
+
progressLabel: { default: void 0 },
|
|
530
|
+
hideProgressOnSuccess: { default: 800 },
|
|
531
|
+
size: { default: void 0 },
|
|
532
|
+
uploadMode: { default: "batch" },
|
|
533
|
+
concurrency: { default: 3 },
|
|
534
|
+
preview: {
|
|
535
|
+
type: Boolean,
|
|
536
|
+
default: false
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
emits: [
|
|
540
|
+
"update:modelValue",
|
|
541
|
+
"exceed",
|
|
542
|
+
"success",
|
|
543
|
+
"error",
|
|
544
|
+
"progress",
|
|
545
|
+
"change",
|
|
546
|
+
"stateChange",
|
|
547
|
+
"focus",
|
|
548
|
+
"blur"
|
|
549
|
+
],
|
|
550
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
551
|
+
const props = __props;
|
|
552
|
+
const resolvedSize = useGrComponentSize(() => props.size, { component: "GrFileUpload" });
|
|
553
|
+
const zoneGapClass = computed(() => zoneGaps[resolvedSize.value]);
|
|
554
|
+
const iconTileClass = computed(() => iconTileSizes[resolvedSize.value]);
|
|
555
|
+
const iconGlyphSize = computed(() => iconGlyphSizes[resolvedSize.value]);
|
|
556
|
+
const labelClass = computed(() => labelSizes[resolvedSize.value]);
|
|
557
|
+
const hintClass = computed(() => hintSizes[resolvedSize.value]);
|
|
558
|
+
const progressTextClass = computed(() => progressTextSizes[resolvedSize.value]);
|
|
559
|
+
const progressBarSize = computed(() => progressBarSizes[resolvedSize.value]);
|
|
560
|
+
const emit = __emit;
|
|
561
|
+
const slots = useSlots();
|
|
562
|
+
const { t } = useGranularityTranslations();
|
|
563
|
+
const field = useGrFormFieldContext();
|
|
564
|
+
const fieldId = computed(() => field?.id.value);
|
|
565
|
+
const describedBy = computed(() => field?.describedById.value);
|
|
566
|
+
const { disabled: isDisabled, readonly: isReadonly, invalid: isInvalid, required: isRequired, locked: isLocked } = useGrFormControl(() => props);
|
|
567
|
+
const resolvedPlaceholder = computed(() => props.placeholder ?? t("gr.fileUpload.placeholder", "Drag files here or click to select"));
|
|
568
|
+
const resolvedProgressLabel = computed(() => props.progressLabel ?? t("gr.fileUpload.progress", "Upload progress"));
|
|
569
|
+
function slotIsTextOnly(nodes) {
|
|
570
|
+
const meaningful = meaningfulSlotNodes(nodes);
|
|
571
|
+
if (meaningful.length === 0) return true;
|
|
572
|
+
for (const node of meaningful) if (node.type !== Text) return false;
|
|
573
|
+
return true;
|
|
574
|
+
}
|
|
575
|
+
const defaultSlotNodes = computed(() => {
|
|
576
|
+
return slots.default ? flattenSlotNodes(slots.default({})) : [];
|
|
577
|
+
});
|
|
578
|
+
const hasCustomUi = computed(() => {
|
|
579
|
+
return !!slots.default && !slotIsTextOnly(defaultSlotNodes.value);
|
|
580
|
+
});
|
|
581
|
+
const inputRef = ref(null);
|
|
582
|
+
const rootEl = ref(null);
|
|
583
|
+
const { onFocusIn, onFocusOut } = useFocusWithin(rootEl, {
|
|
584
|
+
enter: (event) => emit("focus", event),
|
|
585
|
+
leave: (event) => emit("blur", event)
|
|
586
|
+
});
|
|
587
|
+
const lastFiles = ref(props.modelValue ? [...props.modelValue] : []);
|
|
588
|
+
/**
|
|
589
|
+
* Набор меняется только здесь: иначе `update:modelValue` рано или поздно
|
|
590
|
+
* разошёлся бы с тем, что показано в списке.
|
|
591
|
+
*/
|
|
592
|
+
function setFiles(next) {
|
|
593
|
+
lastFiles.value = next;
|
|
594
|
+
emit("update:modelValue", next);
|
|
595
|
+
}
|
|
596
|
+
watch(() => props.modelValue, (next) => {
|
|
597
|
+
if (next === void 0) return;
|
|
598
|
+
if (next === lastFiles.value) return;
|
|
599
|
+
lastFiles.value = [...next];
|
|
600
|
+
}, { deep: false });
|
|
601
|
+
const { state, setIdle: setStateIdle, setUploading: setStateUploading, setSuccess: setStateSuccess, setError: setStateError, applyProgress, assign: assignState, scheduleIdle, clearScheduledIdle } = useUploadState({ onChange: (next) => emit("stateChange", next) });
|
|
602
|
+
let activeController = null;
|
|
603
|
+
function handleProgress(info) {
|
|
604
|
+
applyProgress(info);
|
|
605
|
+
emit("progress", info.percent, info);
|
|
606
|
+
}
|
|
607
|
+
const { fileKey, previewUrl, revokePreview, revokeAllPreviews } = useFilePreviews({ enabled: () => props.preview });
|
|
608
|
+
/**
|
|
609
|
+
* `extraData` считается один раз на набор и не меняется между файлами, поэтому
|
|
610
|
+
* живёт рядом с очередью, а не путешествует через её контракт.
|
|
611
|
+
*/
|
|
612
|
+
let perFileExtraData;
|
|
613
|
+
const perFile = usePerFileUpload({
|
|
614
|
+
concurrency: () => props.concurrency,
|
|
615
|
+
send: (files, ctx) => props.request ? props.request(files, {
|
|
616
|
+
signal: ctx.signal,
|
|
617
|
+
extraData: perFileExtraData,
|
|
618
|
+
onProgress: ctx.onProgress
|
|
619
|
+
}) : uploadViaXhr({
|
|
620
|
+
url: props.action ?? "",
|
|
621
|
+
files,
|
|
622
|
+
name: props.name,
|
|
623
|
+
headers: props.headers,
|
|
624
|
+
withCredentials: props.withCredentials,
|
|
625
|
+
extraData: perFileExtraData,
|
|
626
|
+
signal: ctx.signal,
|
|
627
|
+
onProgress: ctx.onProgress
|
|
628
|
+
}),
|
|
629
|
+
onSummary: assignState,
|
|
630
|
+
onProgress: (info, file) => emit("progress", info.percent, info, file),
|
|
631
|
+
onSuccess: (payload, file) => emit("success", payload, file),
|
|
632
|
+
onError: (error, file) => emit("error", error, file),
|
|
633
|
+
onSetChange: (files) => emit("change", files)
|
|
634
|
+
});
|
|
635
|
+
const fileEntries = perFile.entries;
|
|
636
|
+
const { retryFile, abortFile } = perFile;
|
|
637
|
+
const dropZone = useDropZone({
|
|
638
|
+
locked: () => isLocked.value,
|
|
639
|
+
inactive: () => hasCustomUi.value,
|
|
640
|
+
onDrop: (files) => void handleFiles(files, "drop")
|
|
641
|
+
});
|
|
642
|
+
const isOver = dropZone.isOver;
|
|
643
|
+
/**
|
|
644
|
+
* Дефолтный слот вызывается из двух мест — как своя зона целиком и как подпись
|
|
645
|
+
* внутри стандартной. Набор пропов у него один: две копии разъехались бы.
|
|
646
|
+
*/
|
|
647
|
+
const defaultSlotProps = computed(() => ({
|
|
648
|
+
openDialog,
|
|
649
|
+
abort,
|
|
650
|
+
disabled: isDisabled.value,
|
|
651
|
+
files: lastFiles.value,
|
|
652
|
+
isOver: isOver.value,
|
|
653
|
+
state,
|
|
654
|
+
retry,
|
|
655
|
+
removeFile,
|
|
656
|
+
fileEntries: fileEntries.value,
|
|
657
|
+
retryFile,
|
|
658
|
+
abortFile
|
|
659
|
+
}));
|
|
660
|
+
const zoneClass = computed(() => grFileUploadZoneClass({
|
|
661
|
+
size: resolvedSize.value,
|
|
662
|
+
disabled: isDisabled.value,
|
|
663
|
+
readonly: isReadonly.value,
|
|
664
|
+
over: isOver.value
|
|
665
|
+
}));
|
|
666
|
+
const hiddenInputStyle = {
|
|
667
|
+
position: "fixed",
|
|
668
|
+
top: "-9999px",
|
|
669
|
+
left: "-9999px",
|
|
670
|
+
width: "1px",
|
|
671
|
+
height: "1px",
|
|
672
|
+
opacity: "0",
|
|
673
|
+
overflow: "hidden",
|
|
674
|
+
pointerEvents: "none"
|
|
675
|
+
};
|
|
676
|
+
function openDialog() {
|
|
677
|
+
if (isLocked.value) return;
|
|
678
|
+
inputRef.value?.click();
|
|
679
|
+
}
|
|
680
|
+
function abort() {
|
|
681
|
+
activeController?.abort();
|
|
682
|
+
activeController = null;
|
|
683
|
+
}
|
|
684
|
+
function totalSizeOf(files) {
|
|
685
|
+
return files.reduce((sum, file) => sum + file.size, 0);
|
|
686
|
+
}
|
|
687
|
+
function normalizeLimit(limit) {
|
|
688
|
+
if (typeof limit !== "number") return void 0;
|
|
689
|
+
if (!Number.isFinite(limit)) return void 0;
|
|
690
|
+
if (limit <= 0) return void 0;
|
|
691
|
+
return Math.floor(limit);
|
|
692
|
+
}
|
|
693
|
+
async function uploadViaAction(files, signal, extraData) {
|
|
694
|
+
if (!props.action) throw new Error("GrFileUpload: either `action` or `request` must be provided");
|
|
695
|
+
return uploadViaXhr({
|
|
696
|
+
url: props.action,
|
|
697
|
+
files,
|
|
698
|
+
name: props.name,
|
|
699
|
+
headers: props.headers,
|
|
700
|
+
withCredentials: props.withCredentials,
|
|
701
|
+
extraData,
|
|
702
|
+
signal,
|
|
703
|
+
onProgress: handleProgress
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
async function runBeforeUpload(files) {
|
|
707
|
+
if (!props.beforeUpload) return "ok";
|
|
708
|
+
for (const file of files) try {
|
|
709
|
+
const result = props.beforeUpload(file);
|
|
710
|
+
if (result === false) return {
|
|
711
|
+
aborted: true,
|
|
712
|
+
reason: /* @__PURE__ */ new Error("Upload aborted by beforeUpload")
|
|
713
|
+
};
|
|
714
|
+
if (result && typeof result.then === "function") await result;
|
|
715
|
+
} catch (error) {
|
|
716
|
+
return {
|
|
717
|
+
aborted: true,
|
|
718
|
+
reason: error
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
return "ok";
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* `accept` идёт первым валидатором: атрибут на input фильтрует только диалог,
|
|
725
|
+
* а drop мимо него проходит.
|
|
726
|
+
*/
|
|
727
|
+
function effectiveValidators() {
|
|
728
|
+
return [acceptValidator(props.accept), ...props.validators ?? []];
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Номер запуска. Валидация и `beforeUpload` асинхронны, поэтому два быстрых
|
|
732
|
+
* выбора подряд идут внахлёст: без номера «побеждал» тот, чьи валидаторы
|
|
733
|
+
* отработали позже, — он же обрывал уже стартовавшую загрузку соседа.
|
|
734
|
+
* Актуален всегда последний выбор, остальные тихо сходят с дистанции.
|
|
735
|
+
*/
|
|
736
|
+
let runCounter = 0;
|
|
737
|
+
async function handleFiles(files, source = "input") {
|
|
738
|
+
if (isLocked.value) return;
|
|
739
|
+
if (!files.length) return;
|
|
740
|
+
runCounter += 1;
|
|
741
|
+
const runId = runCounter;
|
|
742
|
+
const isStale = () => runId !== runCounter;
|
|
743
|
+
const normalizedLimit = normalizeLimit(props.limit);
|
|
744
|
+
if (props.multiple && normalizedLimit && files.length > normalizedLimit) {
|
|
745
|
+
emit("exceed", files, normalizedLimit);
|
|
746
|
+
emit("error", /* @__PURE__ */ new Error(`Too many files selected, limit=${normalizedLimit}`));
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
const { files: valid, issues } = await runFileValidators(files, effectiveValidators(), {
|
|
750
|
+
source,
|
|
751
|
+
multiple: props.multiple
|
|
752
|
+
});
|
|
753
|
+
if (isStale()) return;
|
|
754
|
+
if (issues.length > 0) {
|
|
755
|
+
emit("error", new FileValidationError(issues, valid));
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
if (!valid.length) return;
|
|
759
|
+
revokeAllPreviews();
|
|
760
|
+
setFiles(valid);
|
|
761
|
+
const before = await runBeforeUpload(valid);
|
|
762
|
+
if (isStale()) return;
|
|
763
|
+
if (before !== "ok") {
|
|
764
|
+
emit("error", before.reason);
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
let extraData;
|
|
768
|
+
try {
|
|
769
|
+
extraData = props.uploadExtraData?.(valid);
|
|
770
|
+
} catch (error) {
|
|
771
|
+
emit("error", error);
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
abort();
|
|
775
|
+
clearScheduledIdle();
|
|
776
|
+
if (props.uploadMode === "per-file") {
|
|
777
|
+
perFileExtraData = extraData;
|
|
778
|
+
await perFile.run(valid);
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
const controller = new AbortController();
|
|
782
|
+
activeController = controller;
|
|
783
|
+
perFile.reset();
|
|
784
|
+
setStateUploading();
|
|
785
|
+
emit("progress", 0, {
|
|
786
|
+
percent: 0,
|
|
787
|
+
loaded: 0,
|
|
788
|
+
total: 0,
|
|
789
|
+
indeterminate: true
|
|
790
|
+
});
|
|
791
|
+
try {
|
|
792
|
+
const payload = props.request ? await props.request(valid, {
|
|
793
|
+
signal: controller.signal,
|
|
794
|
+
extraData,
|
|
795
|
+
onProgress: handleProgress
|
|
796
|
+
}) : await uploadViaAction(valid, controller.signal, extraData);
|
|
797
|
+
const finalLoaded = (state.phase === "uploading" ? state.total || state.loaded : 0) || totalSizeOf(valid);
|
|
798
|
+
setStateSuccess({
|
|
799
|
+
loaded: finalLoaded,
|
|
800
|
+
total: finalLoaded
|
|
801
|
+
});
|
|
802
|
+
emit("success", payload);
|
|
803
|
+
emit("change", valid);
|
|
804
|
+
emit("progress", 100, {
|
|
805
|
+
percent: 100,
|
|
806
|
+
loaded: finalLoaded,
|
|
807
|
+
total: finalLoaded,
|
|
808
|
+
indeterminate: false
|
|
809
|
+
});
|
|
810
|
+
if (props.hideProgressOnSuccess && props.hideProgressOnSuccess > 0) scheduleIdle(props.hideProgressOnSuccess);
|
|
811
|
+
} catch (error) {
|
|
812
|
+
if (error instanceof GrUploadAbortError) setStateIdle();
|
|
813
|
+
else setStateError(error);
|
|
814
|
+
emit("error", error);
|
|
815
|
+
} finally {
|
|
816
|
+
if (activeController === controller) activeController = null;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* `<input type="file">` не понимает `readonly` — атрибута для него в HTML нет.
|
|
821
|
+
* Поэтому системный диалог гасим отменой действия по умолчанию: input остаётся
|
|
822
|
+
* в порядке `Tab` и объявляется как «только чтение», но нового файла не примет.
|
|
823
|
+
*/
|
|
824
|
+
function onInputClick(event) {
|
|
825
|
+
if (isReadonly.value && !isDisabled.value) event.preventDefault();
|
|
826
|
+
}
|
|
827
|
+
async function onInputChange(event) {
|
|
828
|
+
if (isLocked.value) return;
|
|
829
|
+
const target = event.target;
|
|
830
|
+
const files = target?.files ? Array.prototype.slice.call(target.files) : [];
|
|
831
|
+
if (target) target.value = "";
|
|
832
|
+
await nextTick();
|
|
833
|
+
await handleFiles(files, "input");
|
|
834
|
+
}
|
|
835
|
+
function onRootClick(event) {
|
|
836
|
+
if (hasCustomUi.value) return;
|
|
837
|
+
if (event.target === inputRef.value) return;
|
|
838
|
+
openDialog();
|
|
839
|
+
}
|
|
840
|
+
const effectiveProgressTone = computed(() => {
|
|
841
|
+
if (state.phase === "error") return "danger";
|
|
842
|
+
if (state.phase === "success") return "success";
|
|
843
|
+
return props.progressTone;
|
|
844
|
+
});
|
|
845
|
+
/**
|
|
846
|
+
* Живой регион существует с первого рендера и пуст, пока объявлять нечего:
|
|
847
|
+
* регион, появляющийся сразу с текстом, часть AT не объявляет вовсе. Прогресс
|
|
848
|
+
* в процентах сюда не идёт — диктор захлебнётся; объявляются только фазы.
|
|
849
|
+
*/
|
|
850
|
+
const liveMessage = computed(() => {
|
|
851
|
+
if (state.phase === "uploading") return t("gr.fileUpload.uploading", "Uploading…");
|
|
852
|
+
if (state.phase === "success") return t("gr.fileUpload.success", "Upload complete");
|
|
853
|
+
if (state.phase === "error") return t("gr.fileUpload.error", "Upload failed");
|
|
854
|
+
return "";
|
|
855
|
+
});
|
|
856
|
+
const progressVisible = computed(() => state.phase !== "idle");
|
|
857
|
+
const progressIndeterminate = computed(() => state.phase === "uploading" && state.indeterminate);
|
|
858
|
+
const progressPercent = computed(() => progressIndeterminate.value ? 0 : state.percent);
|
|
859
|
+
const progressText = computed(() => {
|
|
860
|
+
if (progressIndeterminate.value) return "";
|
|
861
|
+
return `${Math.round(progressPercent.value)}%`;
|
|
862
|
+
});
|
|
863
|
+
const isPerFile = computed(() => props.uploadMode === "per-file");
|
|
864
|
+
const statusTextByStatus = computed(() => ({
|
|
865
|
+
pending: t("gr.fileUpload.statusPending", "Pending"),
|
|
866
|
+
uploading: t("gr.fileUpload.statusUploading", "Uploading"),
|
|
867
|
+
success: t("gr.fileUpload.statusSuccess", "Uploaded"),
|
|
868
|
+
error: t("gr.fileUpload.statusError", "Failed")
|
|
869
|
+
}));
|
|
870
|
+
/** Запись файла для разметки: в батчевом режиме её нет — и статуса тоже. */
|
|
871
|
+
function entryFor(file) {
|
|
872
|
+
return isPerFile.value ? perFile.entryOf(file) : void 0;
|
|
873
|
+
}
|
|
874
|
+
/** Повторить загрузку текущего набора — после ошибки выбирать файлы заново незачем. */
|
|
875
|
+
async function retry() {
|
|
876
|
+
if (!lastFiles.value.length) return;
|
|
877
|
+
await handleFiles([...lastFiles.value], "input");
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Убрать файл из набора. Идущая загрузка при этом обрывается: она была про
|
|
881
|
+
* прежний набор, и её результат к новому отношения не имеет.
|
|
882
|
+
*/
|
|
883
|
+
function removeFile(file) {
|
|
884
|
+
const next = lastFiles.value.filter((item) => item !== file);
|
|
885
|
+
if (next.length === lastFiles.value.length) return;
|
|
886
|
+
abortFile(file);
|
|
887
|
+
abort();
|
|
888
|
+
clearScheduledIdle();
|
|
889
|
+
revokePreview(file);
|
|
890
|
+
setFiles(next);
|
|
891
|
+
perFile.dropEntry(file);
|
|
892
|
+
if (props.uploadMode === "per-file" && fileEntries.value.length) assignState(summarizeFileEntries(fileEntries.value));
|
|
893
|
+
else if (state.phase !== "idle") setStateIdle();
|
|
894
|
+
}
|
|
895
|
+
function focus() {
|
|
896
|
+
inputRef.value?.focus();
|
|
897
|
+
}
|
|
898
|
+
function blur() {
|
|
899
|
+
inputRef.value?.blur();
|
|
900
|
+
}
|
|
901
|
+
onMounted(() => {
|
|
902
|
+
if (process.env.NODE_ENV === "production") return;
|
|
903
|
+
if (props.action || props.request) return;
|
|
904
|
+
console.warn("[GrFileUpload] не задан ни `action`, ни `request`: отправлять файлы некуда.");
|
|
905
|
+
});
|
|
906
|
+
onBeforeUnmount(() => {
|
|
907
|
+
clearScheduledIdle();
|
|
908
|
+
abort();
|
|
909
|
+
perFile.abortAll();
|
|
910
|
+
revokeAllPreviews();
|
|
911
|
+
});
|
|
912
|
+
__expose({
|
|
913
|
+
focus,
|
|
914
|
+
blur,
|
|
915
|
+
uploadFiles: handleFiles,
|
|
916
|
+
abort,
|
|
917
|
+
openDialog,
|
|
918
|
+
state,
|
|
919
|
+
/** Текущий набор файлов — тот, что показан в списке и уйдёт в `retry`. */
|
|
920
|
+
files: lastFiles,
|
|
921
|
+
retry,
|
|
922
|
+
removeFile,
|
|
923
|
+
/** Записи по файлам — пусты в батчевом режиме. */
|
|
924
|
+
fileEntries,
|
|
925
|
+
retryFile,
|
|
926
|
+
abortFile
|
|
927
|
+
});
|
|
928
|
+
return (_ctx, _cache) => {
|
|
929
|
+
return openBlock(), createElementBlock("div", {
|
|
930
|
+
ref_key: "rootEl",
|
|
931
|
+
ref: rootEl,
|
|
932
|
+
"data-gr-file-upload": "",
|
|
933
|
+
class: normalizeClass(hasCustomUi.value ? "inline-block" : zoneClass.value),
|
|
934
|
+
onClick: onRootClick,
|
|
935
|
+
onFocusin: _cache[0] || (_cache[0] = (...args) => unref(onFocusIn) && unref(onFocusIn)(...args)),
|
|
936
|
+
onFocusout: _cache[1] || (_cache[1] = (...args) => unref(onFocusOut) && unref(onFocusOut)(...args)),
|
|
937
|
+
onDragenter: _cache[2] || (_cache[2] = (...args) => unref(dropZone).onDragEnter && unref(dropZone).onDragEnter(...args)),
|
|
938
|
+
onDragover: _cache[3] || (_cache[3] = (...args) => unref(dropZone).onDragOver && unref(dropZone).onDragOver(...args)),
|
|
939
|
+
onDragleave: _cache[4] || (_cache[4] = (...args) => unref(dropZone).onDragLeave && unref(dropZone).onDragLeave(...args)),
|
|
940
|
+
onDrop: _cache[5] || (_cache[5] = (...args) => unref(dropZone).onDropFiles && unref(dropZone).onDropFiles(...args))
|
|
941
|
+
}, [
|
|
942
|
+
createElementVNode("input", {
|
|
943
|
+
id: fieldId.value,
|
|
944
|
+
ref_key: "inputRef",
|
|
945
|
+
ref: inputRef,
|
|
946
|
+
"data-gr-file-upload-input": "",
|
|
947
|
+
style: hiddenInputStyle,
|
|
948
|
+
type: "file",
|
|
949
|
+
tabindex: hasCustomUi.value || unref(isDisabled) ? -1 : 0,
|
|
950
|
+
"aria-hidden": hasCustomUi.value ? "true" : void 0,
|
|
951
|
+
"aria-label": __props.ariaLabel ?? (hasCustomUi.value ? void 0 : resolvedPlaceholder.value),
|
|
952
|
+
"aria-describedby": describedBy.value,
|
|
953
|
+
"aria-invalid": unref(isInvalid) ? "true" : void 0,
|
|
954
|
+
"aria-required": unref(isRequired) ? "true" : void 0,
|
|
955
|
+
"aria-readonly": unref(isReadonly) ? "true" : void 0,
|
|
956
|
+
name: __props.name,
|
|
957
|
+
accept: __props.accept,
|
|
958
|
+
capture: __props.capture,
|
|
959
|
+
webkitdirectory: __props.directory || void 0,
|
|
960
|
+
multiple: __props.multiple,
|
|
961
|
+
disabled: unref(isDisabled),
|
|
962
|
+
onClick: onInputClick,
|
|
963
|
+
onChange: onInputChange
|
|
964
|
+
}, null, 40, _hoisted_1),
|
|
965
|
+
createElementVNode("span", _hoisted_2, toDisplayString(liveMessage.value), 1),
|
|
966
|
+
hasCustomUi.value ? renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(defaultSlotProps.value)), void 0, void 0, 0) : (openBlock(), createElementBlock("div", {
|
|
967
|
+
key: 1,
|
|
968
|
+
class: normalizeClass(["flex items-start", zoneGapClass.value])
|
|
969
|
+
}, [createElementVNode("div", {
|
|
970
|
+
"data-gr-file-upload-icon": "",
|
|
971
|
+
class: normalizeClass(["shrink-0 bg-[var(--gr-muted)] border border-[var(--gr-brd)] flex items-center justify-center", iconTileClass.value]),
|
|
972
|
+
"aria-hidden": "true"
|
|
973
|
+
}, [createVNode(GrIcon_default, {
|
|
974
|
+
class: "text-[var(--gr-muted-fg)]",
|
|
975
|
+
size: iconGlyphSize.value
|
|
976
|
+
}, {
|
|
977
|
+
default: withCtx(() => [createVNode(unref(arrow_up_default))]),
|
|
978
|
+
_: 1
|
|
979
|
+
}, 8, ["size"])], 2), createElementVNode("div", _hoisted_3, [
|
|
980
|
+
createElementVNode("div", {
|
|
981
|
+
"data-gr-file-upload-label": "",
|
|
982
|
+
class: normalizeClass(["font-700", labelClass.value])
|
|
983
|
+
}, [renderSlot(_ctx.$slots, "label", {}, () => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(defaultSlotProps.value)), () => [createTextVNode(toDisplayString(resolvedPlaceholder.value), 1)])])], 2),
|
|
984
|
+
_ctx.$slots.tip ? (openBlock(), createElementBlock("div", {
|
|
985
|
+
key: 0,
|
|
986
|
+
"data-gr-file-upload-tip": "",
|
|
987
|
+
class: normalizeClass(["mt-1 text-[var(--gr-muted-fg)]", hintClass.value])
|
|
988
|
+
}, [renderSlot(_ctx.$slots, "tip")], 2)) : (openBlock(), createElementBlock("div", {
|
|
989
|
+
key: 1,
|
|
990
|
+
class: normalizeClass(["mt-1 text-[var(--gr-muted-fg)]", hintClass.value])
|
|
991
|
+
}, null, 2)),
|
|
992
|
+
__props.showFileList && lastFiles.value.length ? (openBlock(), createElementBlock("ul", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(lastFiles.value, (file) => {
|
|
993
|
+
return openBlock(), createElementBlock("li", {
|
|
994
|
+
key: unref(fileKey)(file),
|
|
995
|
+
"data-gr-file-upload-item": "",
|
|
996
|
+
class: normalizeClass(["flex items-center gap-2", hintClass.value])
|
|
997
|
+
}, [
|
|
998
|
+
unref(previewUrl)(file) ? (openBlock(), createElementBlock("img", {
|
|
999
|
+
key: 0,
|
|
1000
|
+
"data-gr-file-upload-preview": "",
|
|
1001
|
+
src: unref(previewUrl)(file),
|
|
1002
|
+
alt: "",
|
|
1003
|
+
class: "h-8 w-8 shrink-0 rounded-[var(--gr-radius-sm)] object-cover border border-[var(--gr-brd)]"
|
|
1004
|
+
}, null, 8, _hoisted_5)) : createCommentVNode("", true),
|
|
1005
|
+
createElementVNode("span", _hoisted_6, toDisplayString(file.name), 1),
|
|
1006
|
+
createElementVNode("span", _hoisted_7, " · " + toDisplayString(Math.ceil(file.size / 1024)) + " KB", 1),
|
|
1007
|
+
entryFor(file) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("span", {
|
|
1008
|
+
"data-gr-file-upload-status": "",
|
|
1009
|
+
"data-status": entryFor(file).status,
|
|
1010
|
+
class: "text-[var(--gr-muted-fg)]"
|
|
1011
|
+
}, [createTextVNode("· " + toDisplayString(statusTextByStatus.value[entryFor(file).status]), 1), entryFor(file).status === "uploading" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode("\xA0" + toDisplayString(Math.round(entryFor(file).percent)) + "%", 1)], 64)) : createCommentVNode("", true)], 8, _hoisted_8), entryFor(file).status === "uploading" ? (openBlock(), createElementBlock("button", {
|
|
1012
|
+
key: 0,
|
|
1013
|
+
"data-gr-file-upload-abort-file": "",
|
|
1014
|
+
type: "button",
|
|
1015
|
+
class: "ml-auto text-[var(--gr-muted-fg)] hover:text-[var(--gr-fg)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] rounded-[var(--gr-radius-sm)]",
|
|
1016
|
+
"aria-label": unref(t)("gr.fileUpload.abortFile", "Cancel upload of {fileName}", { fileName: file.name }),
|
|
1017
|
+
onClick: withModifiers(($event) => unref(abortFile)(file), ["stop"])
|
|
1018
|
+
}, [createVNode(GrIcon_default, { size: iconGlyphSize.value }, {
|
|
1019
|
+
default: withCtx(() => [createVNode(unref(x_default))]),
|
|
1020
|
+
_: 1
|
|
1021
|
+
}, 8, ["size"])], 8, _hoisted_9)) : entryFor(file).status === "error" && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("button", {
|
|
1022
|
+
key: 1,
|
|
1023
|
+
"data-gr-file-upload-retry-file": "",
|
|
1024
|
+
type: "button",
|
|
1025
|
+
class: "ml-auto text-[var(--gr-danger-text)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] rounded-[var(--gr-radius-sm)] underline",
|
|
1026
|
+
"aria-label": unref(t)("gr.fileUpload.retryFile", "Retry {fileName}", { fileName: file.name }),
|
|
1027
|
+
onClick: withModifiers(($event) => unref(retryFile)(file), ["stop"])
|
|
1028
|
+
}, toDisplayString(unref(t)("gr.fileUpload.retry", "Retry upload")), 9, _hoisted_10)) : createCommentVNode("", true)], 64)) : createCommentVNode("", true),
|
|
1029
|
+
!unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("button", {
|
|
1030
|
+
key: 2,
|
|
1031
|
+
"data-gr-file-upload-remove": "",
|
|
1032
|
+
type: "button",
|
|
1033
|
+
class: "ml-auto text-[var(--gr-muted-fg)] hover:text-[var(--gr-danger-text)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] rounded-[var(--gr-radius-sm)]",
|
|
1034
|
+
"aria-label": unref(t)("gr.fileUpload.remove", "Remove {fileName}", { fileName: file.name }),
|
|
1035
|
+
onClick: withModifiers(($event) => removeFile(file), ["stop"])
|
|
1036
|
+
}, [createVNode(GrIcon_default, { size: iconGlyphSize.value }, {
|
|
1037
|
+
default: withCtx(() => [createVNode(unref(x_default))]),
|
|
1038
|
+
_: 1
|
|
1039
|
+
}, 8, ["size"])], 8, _hoisted_11)) : createCommentVNode("", true)
|
|
1040
|
+
], 2);
|
|
1041
|
+
}), 128))])) : createCommentVNode("", true),
|
|
1042
|
+
__props.showProgress || _ctx.$slots.progress ? renderSlot(_ctx.$slots, "progress", {
|
|
1043
|
+
state: unref(state),
|
|
1044
|
+
percent: unref(state).percent,
|
|
1045
|
+
indeterminate: unref(state).phase === "uploading" && unref(state).indeterminate,
|
|
1046
|
+
phase: unref(state).phase,
|
|
1047
|
+
files: lastFiles.value,
|
|
1048
|
+
abort,
|
|
1049
|
+
retry,
|
|
1050
|
+
fileEntries: unref(fileEntries),
|
|
1051
|
+
retryFile: unref(retryFile),
|
|
1052
|
+
abortFile: unref(abortFile)
|
|
1053
|
+
}, () => [__props.showProgress ? (openBlock(), createElementBlock("div", {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
"data-gr-file-upload-progress": "",
|
|
1056
|
+
class: normalizeClass(["mt-3 transition-opacity duration-[var(--gr-duration-fast)]", progressVisible.value ? "opacity-100" : "opacity-0 pointer-events-none"]),
|
|
1057
|
+
"aria-hidden": !progressVisible.value
|
|
1058
|
+
}, [createElementVNode("div", _hoisted_13, [createVNode(GrProgressBar_default, {
|
|
1059
|
+
value: progressPercent.value,
|
|
1060
|
+
indeterminate: progressIndeterminate.value,
|
|
1061
|
+
tone: effectiveProgressTone.value,
|
|
1062
|
+
size: progressBarSize.value,
|
|
1063
|
+
"aria-label": resolvedProgressLabel.value
|
|
1064
|
+
}, null, 8, [
|
|
1065
|
+
"value",
|
|
1066
|
+
"indeterminate",
|
|
1067
|
+
"tone",
|
|
1068
|
+
"size",
|
|
1069
|
+
"aria-label"
|
|
1070
|
+
]), createElementVNode("span", {
|
|
1071
|
+
"data-gr-file-upload-progress-text": "",
|
|
1072
|
+
class: normalizeClass(["text-[var(--gr-muted-fg)] [font-variant-numeric:tabular-nums] min-w-[3ch] text-right", progressTextClass.value])
|
|
1073
|
+
}, toDisplayString(progressText.value), 3)])], 10, _hoisted_12)) : createCommentVNode("", true)], void 0, 3) : createCommentVNode("", true)
|
|
1074
|
+
])], 2))
|
|
1075
|
+
], 34);
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
//#endregion
|
|
1080
|
+
export { createFileEntry as a, GrUploadHttpError as i, GR_UPLOAD_STATE_IDLE as n, summarizeFileEntries as o, GrUploadAbortError as r, GrFileUpload_default as t };
|