@feugene/granularity 0.13.0 → 0.18.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-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-BDfTXHo12.js +23 -0
- package/dist/chunks/config-BDfTXHo12.js.map +1 -0
- package/dist/chunks/config-BE6n20np2.js +27 -0
- package/dist/chunks/config-BE6n20np2.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-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-Baj7Wvx-.js +72 -0
- package/dist/chunks/config-Baj7Wvx-.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_PD2.js +140 -0
- package/dist/chunks/config-BoNR7_PD2.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-BsPDQ0dS.js +97 -0
- package/dist/chunks/config-BsPDQ0dS.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-CN2ULSQL.js +36 -0
- package/dist/chunks/config-CN2ULSQL.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-COpuWGr_.js +72 -0
- package/dist/chunks/config-COpuWGr_.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-Cwd3yjRw.js +41 -0
- package/dist/chunks/config-Cwd3yjRw.js.map +1 -0
- package/dist/chunks/config-D2aNP7Es.js +70 -0
- package/dist/chunks/config-D2aNP7Es.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-D94Z9po5.js +126 -0
- package/dist/chunks/config-D94Z9po5.js.map +1 -0
- package/dist/chunks/config-DA6SnEoy.js +22 -0
- package/dist/chunks/config-DA6SnEoy.js.map +1 -0
- package/dist/chunks/config-DBmdgoVf.js.map +1 -1
- package/dist/chunks/config-DCFvmHEv2.js +76 -0
- package/dist/chunks/config-DCFvmHEv2.js.map +1 -0
- package/dist/chunks/config-DEvsMTQE.js +150 -0
- package/dist/chunks/config-DEvsMTQE.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-K0C2tcLB.js +84 -0
- package/dist/chunks/config-K0C2tcLB.js.map +1 -0
- package/dist/chunks/config-MRvhUl-O.js +81 -0
- package/dist/chunks/config-MRvhUl-O.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-ScuvHw6k2.js +42 -0
- package/dist/chunks/config-ScuvHw6k2.js.map +1 -0
- package/dist/chunks/config-T3qdQBgU2.js +40 -0
- package/dist/chunks/config-T3qdQBgU2.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-_qPUfb6-2.js +165 -0
- package/dist/chunks/config-_qPUfb6-2.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-gvq_hWNM.js +103 -0
- package/dist/chunks/config-gvq_hWNM.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-COdzxgAX.js +352 -0
- package/dist/chunks/en-COdzxgAX.js.map +1 -0
- package/dist/chunks/es-ClqJ-4hr.js +354 -0
- package/dist/chunks/es-ClqJ-4hr.js.map +1 -0
- package/dist/chunks/es-DGMHwknJ.js +20 -0
- package/dist/chunks/es-DGMHwknJ.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-CeZhGQHr.js +43 -0
- package/dist/chunks/grKbdStyles-CeZhGQHr.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-iOcHuVMM.js +50 -0
- package/dist/chunks/grTextareaStyles-iOcHuVMM.js.map +1 -0
- package/dist/chunks/granular-provider-B9nXQCMu.js +195 -0
- package/dist/chunks/granular-provider-B9nXQCMu.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-DE2yhz_b.js +70 -0
- package/dist/chunks/keyboard-DE2yhz_b.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-DYw9XPPx.js +79 -0
- package/dist/chunks/optionFilter-DYw9XPPx.js.map +1 -0
- package/dist/chunks/overlayStack-C8cfsqXa.js +99 -0
- package/dist/chunks/overlayStack-C8cfsqXa.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-9z8ix45c.js +356 -0
- package/dist/chunks/ru-9z8ix45c.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/useDragSort-0l47h4yb.js +265 -0
- package/dist/chunks/useDragSort-0l47h4yb.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-BTq-0ImG.js +212 -0
- package/dist/chunks/useModalOverlay-BTq-0ImG.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-CPEQxmLZ.js +852 -0
- package/dist/components/GrAutocomplete/chunks/GrAutocomplete-CPEQxmLZ.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-DAdQ-Gc3.js +584 -0
- package/dist/components/GrColorPicker/chunks/GrColorPicker-DAdQ-Gc3.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-DMeSqkEv.js +565 -0
- package/dist/components/GrCommandPalette/chunks/GrCommandPalette-DMeSqkEv.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 +3 -3
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-hUTi-GdJ.js +200 -0
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-hUTi-GdJ.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +2 -2
- package/dist/components/GrDataTable/chunks/GrDataTable-DzaGLG3A.js +1053 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-DzaGLG3A.js.map +1 -0
- package/dist/components/GrDataTable/index.js +3 -3
- package/dist/components/GrDialog/chunks/GrDialog-MD9Fzy9C.js +255 -0
- package/dist/components/GrDialog/chunks/GrDialog-MD9Fzy9C.js.map +1 -0
- package/dist/components/GrDialog/index.js +1 -1
- package/dist/components/GrDialogService/chunks/GrDialogService-DtgUijMj.js +656 -0
- package/dist/components/GrDialogService/chunks/GrDialogService-DtgUijMj.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-DWHdZZzW.js +251 -0
- package/dist/components/GrDrawer/chunks/GrDrawer-DWHdZZzW.js.map +1 -0
- package/dist/components/GrDrawer/index.js +2 -2
- package/dist/components/GrDropdown/chunks/GrDropdown-0tJK01Kq.js +300 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-0tJK01Kq.js.map +1 -0
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-VPPrpCoA.js +421 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-VPPrpCoA.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-DuDzC43S.js +1080 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DuDzC43S.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-DE7MBbF8.js +1127 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-DE7MBbF8.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-2wd7Crs0.js +348 -0
- package/dist/components/GrInput/chunks/GrInput-2wd7Crs0.js.map +1 -0
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js +512 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-CyV2eY7Z.js.map +1 -0
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.js +358 -0
- package/dist/components/GrKbd/chunks/GrKbd-DU2lBkRV.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-BbhcsDQ8.js +313 -0
- package/dist/components/GrModal/chunks/GrModal-BbhcsDQ8.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-waKhxBP7.js +283 -0
- package/dist/components/GrPagination/chunks/GrPagination-waKhxBP7.js.map +1 -0
- package/dist/components/GrPagination/index.js +3 -3
- package/dist/components/GrPopover/chunks/GrPopover-DuqeoFaI.js +216 -0
- package/dist/components/GrPopover/chunks/GrPopover-DuqeoFaI.js.map +1 -0
- package/dist/components/GrPopover/index.js +3 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.js +90 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-xwbNM9QB.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-B8olXRo5.js +210 -0
- package/dist/components/GrProgressCircle/chunks/GrProgressCircle-B8olXRo5.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-JVVqBsPY.js +348 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-JVVqBsPY.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js +253 -0
- package/dist/components/GrRadio/chunks/GrRadio-DWiRaMzt.js.map +1 -0
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js +196 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-DIuBw0wk.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrRating/chunks/GrRating-LarIiwJL.js +315 -0
- package/dist/components/GrRating/chunks/GrRating-LarIiwJL.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-CQw3ijqa.js +388 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-CQw3ijqa.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-DAdu044K.js +1373 -0
- package/dist/components/GrSelect/chunks/GrSelect-DAdu044K.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-CyhVsNKn.js +379 -0
- package/dist/components/GrSlider/chunks/GrSlider-CyhVsNKn.js.map +1 -0
- package/dist/components/GrSlider/index.js +2 -2
- package/dist/components/GrSortableList/chunks/GrSortableList-BefVfWKh.js +276 -0
- package/dist/components/GrSortableList/chunks/GrSortableList-BefVfWKh.js.map +1 -0
- package/dist/components/GrSortableList/index.js +3 -0
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.js +268 -0
- package/dist/components/GrSplitter/chunks/GrSplitter-BzxVQwbY.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-J4qLs3TH.js +319 -0
- package/dist/components/GrStatistic/chunks/GrStatistic-J4qLs3TH.js.map +1 -0
- package/dist/components/GrStatistic/index.js +2 -2
- package/dist/components/GrSwitch/chunks/GrSwitch-DpyvVrZG.js +183 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-DpyvVrZG.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 +1 -1
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js +169 -0
- package/dist/components/GrTable/chunks/GrTable-BfqgwETQ.js.map +1 -0
- package/dist/components/GrTable/index.js +3 -3
- package/dist/components/GrTabs/chunks/GrTabs-TeXaU5Uh.js +261 -0
- package/dist/components/GrTabs/chunks/GrTabs-TeXaU5Uh.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-DSvd1nSy.js +241 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-DSvd1nSy.js.map +1 -0
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrTimeline/chunks/GrTimeline-B-h2Yanw.js +285 -0
- package/dist/components/GrTimeline/chunks/GrTimeline-B-h2Yanw.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-Ct-39hga.js +373 -0
- package/dist/components/GrToaster/chunks/GrToaster-Ct-39hga.js.map +1 -0
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrToaster/styles.css +1 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-xAcqs0bP.js +185 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-xAcqs0bP.js.map +1 -0
- package/dist/components/GrTooltip/index.js +3 -3
- package/dist/components/GrTree/chunks/GrTree-CaYK8dGZ.js +1371 -0
- package/dist/components/GrTree/chunks/GrTree-CaYK8dGZ.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-DZp7CqqW.js +623 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DZp7CqqW.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/useComboboxNavigation.js +71 -0
- package/dist/composables/useComboboxNavigation.js.map +1 -0
- package/dist/composables/useDismissible.js +31 -0
- package/dist/composables/useDismissible.js.map +1 -0
- package/dist/composables/useDragGesture.js +55 -0
- package/dist/composables/useDragGesture.js.map +1 -0
- package/dist/composables/useDragSort.js +2 -0
- package/dist/composables/useFloating.js +133 -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/useGrComponentConfig.js +2 -0
- package/dist/composables/useGrFormControl.js +24 -0
- package/dist/composables/useGrFormControl.js.map +1 -0
- package/dist/composables/useGranularityTranslations.js +2 -0
- package/dist/composables/useOverlayLayer.js +65 -0
- package/dist/composables/useOverlayLayer.js.map +1 -0
- package/dist/composables/usePortalTarget.js +2 -0
- package/dist/composables/useRovingFocus.js +150 -0
- package/dist/composables/useRovingFocus.js.map +1 -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 +18 -18
- 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 +157 -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 +3216 -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 +10 -4
- 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/defaults.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/defaults.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/defaults.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 +33 -22
- package/dist/types/src/components/GrConfigProvider/index.d.ts +2 -1
- 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 +145 -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 +68 -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 +37 -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 +18 -5
- 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/defaults.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 +46 -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 +32 -0
- package/dist/types/src/components/GrKbd/index.d.ts +10 -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 +2 -1
- 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/defaults.d.ts +1 -1
- package/dist/types/src/components/GrRadio/grRadioGroupContext.d.ts +45 -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/defaults.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/defaults.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/defaults.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/defaults.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/defaults.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/GrSortableList/GrSortableList.vue.d.ts +68 -0
- package/dist/types/src/components/GrSortableList/config.d.ts +1 -0
- package/dist/types/src/components/GrSortableList/grSortableListStyles.d.ts +38 -0
- package/dist/types/src/components/GrSortableList/index.d.ts +9 -0
- package/dist/types/src/components/GrSortableList/safelist.d.ts +1 -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/defaults.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 +98 -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 +33 -1
- package/dist/types/src/components/GrToaster/config.d.ts +1 -1
- package/dist/types/src/components/GrToaster/grToasterStyles.d.ts +27 -0
- 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 -1
- 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 +38 -0
- package/dist/types/src/components/shared/hotkeyTokens.d.ts +37 -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/dragSortGeometry.d.ts +59 -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 +71 -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/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/useComboboxNavigation.d.ts +51 -0
- package/dist/types/src/composables/useDismissible.d.ts +32 -0
- package/dist/types/src/composables/useDragGesture.d.ts +63 -0
- package/dist/types/src/composables/useDragSort.d.ts +80 -0
- package/dist/types/src/composables/useFloating.d.ts +57 -0
- package/dist/types/src/composables/useFocusTrap.d.ts +50 -0
- package/dist/types/src/composables/useGrComponentConfig.d.ts +41 -0
- package/dist/types/src/composables/useGrFormControl.d.ts +52 -0
- package/dist/types/src/composables/useGranularityTranslations.d.ts +13 -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/useRovingFocus.d.ts +108 -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 +14 -18
- package/dist/types/src/i18n/adapter.d.ts +24 -0
- package/dist/types/src/i18n/messages/en.d.ts +334 -2
- package/dist/types/src/i18n/messages/es.d.ts +338 -2
- package/dist/types/src/i18n/messages/ru.d.ts +342 -2
- package/dist/types/src/index.d.ts +38 -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 +52 -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 +6503 -2020
- package/package.json +118 -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-LGrZIdaZ.js +0 -21
- package/dist/chunks/config-LGrZIdaZ.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-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/composables/internal/useFloating.d.ts +0 -53
- 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/{GrSkeleton.css → components/GrSkeleton/styles.css} +0 -0
|
@@ -0,0 +1,1053 @@
|
|
|
1
|
+
import { o as useGrComponentSize } from "../../../chunks/context-BSYR7RZs.js";
|
|
2
|
+
import { n as useGranularityTranslations } from "../../../chunks/granularityI18n-BC5zsj_d.js";
|
|
3
|
+
import { t as GrIcon_default } from "../../GrIcon/chunks/GrIcon-BvA2ZGXP.js";
|
|
4
|
+
import { useVirtualList } from "../../../composables/useVirtualList.js";
|
|
5
|
+
import { t as GrCheckbox_default } from "../../GrCheckbox/chunks/GrCheckbox-BLOp8452.js";
|
|
6
|
+
import { useDragGesture } from "../../../composables/useDragGesture.js";
|
|
7
|
+
import { t as GrTable_default } from "../../GrTable/chunks/GrTable-BfqgwETQ.js";
|
|
8
|
+
import { useAnnouncer } from "../../../composables/useAnnouncer.js";
|
|
9
|
+
import { n as insertionIndex, r as moveItem, t as useDragSort } from "../../../chunks/useDragSort-0l47h4yb.js";
|
|
10
|
+
import { useRovingFocus } from "../../../composables/useRovingFocus.js";
|
|
11
|
+
import { C as selectColumnWidths, S as selectCheckboxSizes, T as spinnerSizes, _ as headerGaps, a as columnDropAfterClass, b as rowHeightEstimates, c as columnHandleClass, d as columnPinnedLeftEdgeClass, f as columnPinnedRightEdgeClass, g as columnResizerLineClass, h as columnResizerLineActiveClass, i as columnDraggingClass, l as columnHandleIconClass, m as columnResizerHoverClass, o as columnDropBeforeClass, p as columnResizerClass, r as cellPaddings, s as columnHandleActiveClass, u as columnPinnedClass, v as headerTextSizes, w as sortIconSizes, x as rowSelectedClass, y as placeholderPaddings } from "../../../chunks/config-DEvsMTQE.js";
|
|
12
|
+
import { t as arrow_up_default } from "../../../chunks/arrow-up-C_G4jg8M.js";
|
|
13
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, markRaw, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, watch, withCtx, withModifiers } from "vue";
|
|
14
|
+
//#region src/components/GrDataTable/grDataTableSort.ts
|
|
15
|
+
/** Пустое значение ячейки: нечего сравнивать, место таким — в конце списка. */
|
|
16
|
+
function isEmptyCell(value) {
|
|
17
|
+
if (value === null || value === void 0) return true;
|
|
18
|
+
return typeof value === "string" && value.trim() === "";
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Число, с которым имеет смысл сравнивать: сам `number`, числовая строка, `Date`
|
|
22
|
+
* (по таймстампу), `boolean` (`false` < `true`). Иначе — `null`, и сравнение
|
|
23
|
+
* уходит в строковую ветку.
|
|
24
|
+
*/
|
|
25
|
+
function toComparableNumber(value) {
|
|
26
|
+
if (typeof value === "number") return Number.isFinite(value) ? value : null;
|
|
27
|
+
if (typeof value === "boolean") return value ? 1 : 0;
|
|
28
|
+
if (typeof value === "bigint") return Number(value);
|
|
29
|
+
if (value instanceof Date) {
|
|
30
|
+
const time = value.getTime();
|
|
31
|
+
return Number.isNaN(time) ? null : time;
|
|
32
|
+
}
|
|
33
|
+
if (typeof value === "string") {
|
|
34
|
+
const trimmed = value.trim();
|
|
35
|
+
if (trimmed === "") return null;
|
|
36
|
+
const parsed = Number(trimmed);
|
|
37
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Сравнивает два значения ячейки. Возвращает готовую разницу с учётом `dir` —
|
|
43
|
+
* кроме пустых значений: они всегда в конце, иначе «пустые» в `desc` уезжали бы
|
|
44
|
+
* наверх и таблица выглядела бы сломанной.
|
|
45
|
+
*/
|
|
46
|
+
function compareCells(a, b, dir, locale) {
|
|
47
|
+
const aEmpty = isEmptyCell(a);
|
|
48
|
+
const bEmpty = isEmptyCell(b);
|
|
49
|
+
if (aEmpty || bEmpty) return aEmpty && bEmpty ? 0 : aEmpty ? 1 : -1;
|
|
50
|
+
const aNum = toComparableNumber(a);
|
|
51
|
+
const bNum = toComparableNumber(b);
|
|
52
|
+
const result = aNum !== null && bNum !== null ? aNum - bNum : String(a).localeCompare(String(b), locale, {
|
|
53
|
+
sensitivity: "base",
|
|
54
|
+
numeric: true
|
|
55
|
+
});
|
|
56
|
+
return dir === "asc" ? result : -result;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Новый отсортированный массив. Исходный не мутируется: `rows` приходят пропом,
|
|
60
|
+
* сортировка на месте меняла бы данные потребителя.
|
|
61
|
+
*/
|
|
62
|
+
function sortRows(rows, key, dir, locale) {
|
|
63
|
+
return [...rows].sort((a, b) => compareCells(a[key], b[key], dir, locale));
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region ~icons/lucide/arrow-down
|
|
67
|
+
var _hoisted_1$1 = {
|
|
68
|
+
viewBox: "0 0 24 24",
|
|
69
|
+
width: "1.2em",
|
|
70
|
+
height: "1.2em"
|
|
71
|
+
};
|
|
72
|
+
function render$1(_ctx, _cache) {
|
|
73
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: "currentColor",
|
|
76
|
+
"stroke-linecap": "round",
|
|
77
|
+
"stroke-linejoin": "round",
|
|
78
|
+
"stroke-width": "2",
|
|
79
|
+
d: "M12 5v14m7-7l-7 7l-7-7"
|
|
80
|
+
}, null, -1)])]);
|
|
81
|
+
}
|
|
82
|
+
var arrow_down_default = markRaw({
|
|
83
|
+
name: "lucide-arrow-down",
|
|
84
|
+
render: render$1
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/GrDataTable/GrDataTable.vue?vue&type=script&setup=true&lang.ts
|
|
88
|
+
var _hoisted_1 = ["id"];
|
|
89
|
+
var _hoisted_2 = ["aria-rowindex"];
|
|
90
|
+
var _hoisted_3 = ["data-column-key", "aria-sort"];
|
|
91
|
+
var _hoisted_4 = [
|
|
92
|
+
"tabindex",
|
|
93
|
+
"aria-label",
|
|
94
|
+
"disabled",
|
|
95
|
+
"onPointerdown",
|
|
96
|
+
"onKeydown",
|
|
97
|
+
"onFocus"
|
|
98
|
+
];
|
|
99
|
+
var _hoisted_5 = ["onClick"];
|
|
100
|
+
var _hoisted_6 = { class: "sr-only" };
|
|
101
|
+
var _hoisted_7 = {
|
|
102
|
+
class: "inline-flex",
|
|
103
|
+
"aria-hidden": "true"
|
|
104
|
+
};
|
|
105
|
+
var _hoisted_8 = {
|
|
106
|
+
key: 2,
|
|
107
|
+
class: "text-[var(--gr-muted-fg)]"
|
|
108
|
+
};
|
|
109
|
+
var _hoisted_9 = [
|
|
110
|
+
"aria-label",
|
|
111
|
+
"aria-valuenow",
|
|
112
|
+
"aria-valuetext",
|
|
113
|
+
"onPointerdown",
|
|
114
|
+
"onKeydown",
|
|
115
|
+
"onDblclick"
|
|
116
|
+
];
|
|
117
|
+
var _hoisted_10 = {
|
|
118
|
+
key: 0,
|
|
119
|
+
"data-gr-datatable-loading": ""
|
|
120
|
+
};
|
|
121
|
+
var _hoisted_11 = ["colspan"];
|
|
122
|
+
var _hoisted_12 = { class: "inline-flex items-center gap-2" };
|
|
123
|
+
var _hoisted_13 = {
|
|
124
|
+
key: 1,
|
|
125
|
+
"data-gr-datatable-empty": ""
|
|
126
|
+
};
|
|
127
|
+
var _hoisted_14 = ["colspan"];
|
|
128
|
+
var _hoisted_15 = {
|
|
129
|
+
key: 0,
|
|
130
|
+
"aria-hidden": "true",
|
|
131
|
+
"data-gr-datatable-spacer": "before",
|
|
132
|
+
style: { pointerEvents: "none" }
|
|
133
|
+
};
|
|
134
|
+
var _hoisted_16 = ["colspan"];
|
|
135
|
+
var _hoisted_17 = [
|
|
136
|
+
"data-row-key",
|
|
137
|
+
"data-selected",
|
|
138
|
+
"aria-rowindex",
|
|
139
|
+
"onClick"
|
|
140
|
+
];
|
|
141
|
+
var _hoisted_18 = {
|
|
142
|
+
key: 1,
|
|
143
|
+
"aria-hidden": "true",
|
|
144
|
+
"data-gr-datatable-spacer": "after",
|
|
145
|
+
style: { pointerEvents: "none" }
|
|
146
|
+
};
|
|
147
|
+
var _hoisted_19 = ["colspan"];
|
|
148
|
+
/**
|
|
149
|
+
* `GrDataTable` — data-таблица поверх `GrTable` с сортировкой по клику
|
|
150
|
+
* на заголовок и scoped-слотами ячеек (`#cell-<key>`), `#header-<key>`,
|
|
151
|
+
* `#caption`, `#footer`, `#empty`, `#loading`.
|
|
152
|
+
*
|
|
153
|
+
* Сортировка, включая крайние случаи с пустыми и смешанными значениями, живёт
|
|
154
|
+
* в `grDataTableSort.ts` — см. `docs/components/GrDataTable.md`.
|
|
155
|
+
*/
|
|
156
|
+
var MIN_COLUMN_WIDTH = 48;
|
|
157
|
+
/** Шаг клавиатуры и крупный шаг — как у `GrSplitter`. */
|
|
158
|
+
var RESIZE_STEP = 16;
|
|
159
|
+
var RESIZE_BIG_STEP = 48;
|
|
160
|
+
var SELECT_COLUMN_KEY = "__select__";
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/components/GrDataTable/GrDataTable.vue
|
|
163
|
+
var GrDataTable_default = /* @__PURE__ */ defineComponent({
|
|
164
|
+
__name: "GrDataTable",
|
|
165
|
+
props: {
|
|
166
|
+
rows: {},
|
|
167
|
+
columns: {},
|
|
168
|
+
rowKey: {
|
|
169
|
+
type: [String, Function],
|
|
170
|
+
default: "id"
|
|
171
|
+
},
|
|
172
|
+
initialSortKey: { default: void 0 },
|
|
173
|
+
initialSortDir: { default: "asc" },
|
|
174
|
+
sortKey: { default: void 0 },
|
|
175
|
+
sortDir: { default: void 0 },
|
|
176
|
+
sortCycle: { default: "asc-desc" },
|
|
177
|
+
externalSort: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: false
|
|
180
|
+
},
|
|
181
|
+
selectable: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false
|
|
184
|
+
},
|
|
185
|
+
selected: { default: void 0 },
|
|
186
|
+
selectableRow: {
|
|
187
|
+
type: Function,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
190
|
+
loading: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
193
|
+
},
|
|
194
|
+
loadingText: { default: void 0 },
|
|
195
|
+
emptyText: { default: void 0 },
|
|
196
|
+
rowClass: {
|
|
197
|
+
type: [String, Function],
|
|
198
|
+
default: void 0
|
|
199
|
+
},
|
|
200
|
+
rowProps: {
|
|
201
|
+
type: Function,
|
|
202
|
+
default: void 0
|
|
203
|
+
},
|
|
204
|
+
size: { default: void 0 },
|
|
205
|
+
caption: { default: void 0 },
|
|
206
|
+
ariaLabel: { default: void 0 },
|
|
207
|
+
ariaLabelledby: { default: void 0 },
|
|
208
|
+
regionLabel: { default: void 0 },
|
|
209
|
+
stickyHeader: {
|
|
210
|
+
type: Boolean,
|
|
211
|
+
default: false
|
|
212
|
+
},
|
|
213
|
+
virtual: {
|
|
214
|
+
type: Boolean,
|
|
215
|
+
default: false
|
|
216
|
+
},
|
|
217
|
+
maxHeight: { default: void 0 },
|
|
218
|
+
reorderableColumns: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
default: false
|
|
221
|
+
},
|
|
222
|
+
columnOrder: { default: void 0 },
|
|
223
|
+
resizableColumns: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
default: false
|
|
226
|
+
},
|
|
227
|
+
columnWidths: { default: void 0 }
|
|
228
|
+
},
|
|
229
|
+
emits: [
|
|
230
|
+
"update:sortKey",
|
|
231
|
+
"update:sortDir",
|
|
232
|
+
"sortChange",
|
|
233
|
+
"update:selected",
|
|
234
|
+
"rowClick",
|
|
235
|
+
"update:columnOrder",
|
|
236
|
+
"columnReorder",
|
|
237
|
+
"update:columnWidths",
|
|
238
|
+
"columnResize"
|
|
239
|
+
],
|
|
240
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
241
|
+
const props = __props;
|
|
242
|
+
const emit = __emit;
|
|
243
|
+
const { t, locale } = useGranularityTranslations();
|
|
244
|
+
const { announce } = useAnnouncer();
|
|
245
|
+
const resolvedLoadingText = computed(() => props.loadingText ?? t("gr.dataTable.loading", "Loading…"));
|
|
246
|
+
const resolvedEmptyText = computed(() => props.emptyText ?? t("gr.dataTable.empty", "No data"));
|
|
247
|
+
const internalSortKey = ref(props.initialSortKey ?? "");
|
|
248
|
+
const internalSortDir = ref(props.initialSortDir);
|
|
249
|
+
const isSortKeyControlled = computed(() => props.sortKey !== void 0);
|
|
250
|
+
const isSortDirControlled = computed(() => props.sortDir !== void 0);
|
|
251
|
+
const currentSortKey = computed(() => props.sortKey ?? internalSortKey.value);
|
|
252
|
+
const currentSortDir = computed(() => props.sortDir ?? internalSortDir.value);
|
|
253
|
+
function applySort(key, dir) {
|
|
254
|
+
if (!isSortKeyControlled.value) internalSortKey.value = key;
|
|
255
|
+
if (!isSortDirControlled.value) internalSortDir.value = dir;
|
|
256
|
+
emit("update:sortKey", key);
|
|
257
|
+
emit("update:sortDir", dir);
|
|
258
|
+
emit("sortChange", {
|
|
259
|
+
key,
|
|
260
|
+
dir
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
const sortedRows = computed(() => {
|
|
264
|
+
if (props.externalSort) return [...props.rows];
|
|
265
|
+
const key = currentSortKey.value;
|
|
266
|
+
if (!key) return [...props.rows];
|
|
267
|
+
return sortRows(props.rows, key, currentSortDir.value, locale.value);
|
|
268
|
+
});
|
|
269
|
+
function toggleSort(col) {
|
|
270
|
+
if (!col.sortable) return;
|
|
271
|
+
if (currentSortKey.value !== col.key) {
|
|
272
|
+
applySort(col.key, "asc");
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if (currentSortDir.value === "asc") {
|
|
276
|
+
applySort(col.key, "desc");
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
if (props.sortCycle === "asc-desc-none") {
|
|
280
|
+
applySort("", "asc");
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
applySort(col.key, "asc");
|
|
284
|
+
}
|
|
285
|
+
function cellAlign(col) {
|
|
286
|
+
if (col.align === "right") return "text-right";
|
|
287
|
+
if (col.align === "center") return "text-center";
|
|
288
|
+
return "text-left";
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Синтетические ключи для строк, у которых поле `rowKey` пустое.
|
|
292
|
+
*
|
|
293
|
+
* Без них строка получила бы `String(undefined ?? '')` — **один и тот же** ключ
|
|
294
|
+
* на всю таблицу: Vue переиспользовал бы DOM не по назначению, а выбор одной
|
|
295
|
+
* строки помечал бы выбранными все. Ключ привязан к идентичности объекта,
|
|
296
|
+
* поэтому переживает сортировку и не зависит от индекса.
|
|
297
|
+
*/
|
|
298
|
+
const syntheticKeys = /* @__PURE__ */ new WeakMap();
|
|
299
|
+
let syntheticKeyCounter = 0;
|
|
300
|
+
const missingKeyWarned = ref(false);
|
|
301
|
+
function syntheticRowKey(row) {
|
|
302
|
+
const existing = syntheticKeys.get(row);
|
|
303
|
+
if (existing !== void 0) return existing;
|
|
304
|
+
syntheticKeyCounter += 1;
|
|
305
|
+
const generated = `gr-row-${syntheticKeyCounter}`;
|
|
306
|
+
syntheticKeys.set(row, generated);
|
|
307
|
+
if (!missingKeyWarned.value && process.env.NODE_ENV !== "production") {
|
|
308
|
+
missingKeyWarned.value = true;
|
|
309
|
+
console.warn(`[GrDataTable] У строки нет значения по ключу "${String(props.rowKey)}". Задайте \`rowKey\` (поле или функцию) — иначе выбор строк и переиспользование DOM работают по синтетическому ключу, который не переживёт перезагрузку данных.`);
|
|
310
|
+
}
|
|
311
|
+
return generated;
|
|
312
|
+
}
|
|
313
|
+
function rowKeyValue(row) {
|
|
314
|
+
const rk = props.rowKey;
|
|
315
|
+
if (typeof rk === "function") return rk(row);
|
|
316
|
+
const value = row[rk];
|
|
317
|
+
if (typeof value === "string" && value !== "") return value;
|
|
318
|
+
if (typeof value === "number") return value;
|
|
319
|
+
return syntheticRowKey(row);
|
|
320
|
+
}
|
|
321
|
+
function ariaSortFor(col) {
|
|
322
|
+
if (!col.sortable) return void 0;
|
|
323
|
+
if (currentSortKey.value !== col.key) return "none";
|
|
324
|
+
return currentSortDir.value === "asc" ? "ascending" : "descending";
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Подсказка «что сделает нажатие» — visually hidden текстом **после** подписи
|
|
328
|
+
* колонки, а не `aria-label`'ом на кнопке. `aria-label` подменял бы собой имя
|
|
329
|
+
* `<th>`, и AT при переходе по ячейкам вместо «Название» читала бы
|
|
330
|
+
* «Отсортировано по Название по возрастанию, нажмите…». Текущее состояние
|
|
331
|
+
* сортировки при этом объявляет `aria-sort` на самом `<th>`.
|
|
332
|
+
*/
|
|
333
|
+
function sortHint(col) {
|
|
334
|
+
if (currentSortKey.value !== col.key) return t("gr.dataTable.sortAsc", "Activate to sort ascending");
|
|
335
|
+
if (currentSortDir.value === "asc") return t("gr.dataTable.sortDesc", "Activate to sort descending");
|
|
336
|
+
return props.sortCycle === "asc-desc-none" ? t("gr.dataTable.sortNone", "Activate to remove sorting") : t("gr.dataTable.sortAsc", "Activate to sort ascending");
|
|
337
|
+
}
|
|
338
|
+
const resolvedSize = useGrComponentSize(() => props.size, { component: "GrDataTable" });
|
|
339
|
+
const cellClass = computed(() => cellPaddings[resolvedSize.value]);
|
|
340
|
+
const placeholderClass = computed(() => placeholderPaddings[resolvedSize.value]);
|
|
341
|
+
const headerTextClass = computed(() => headerTextSizes[resolvedSize.value]);
|
|
342
|
+
const headerGapClass = computed(() => headerGaps[resolvedSize.value]);
|
|
343
|
+
const selectColumnClass = computed(() => selectColumnWidths[resolvedSize.value]);
|
|
344
|
+
const spinnerClass = computed(() => spinnerSizes[resolvedSize.value]);
|
|
345
|
+
const sortIconSize = computed(() => sortIconSizes[resolvedSize.value]);
|
|
346
|
+
const checkboxSize = computed(() => selectCheckboxSizes[resolvedSize.value]);
|
|
347
|
+
/**
|
|
348
|
+
* Номер строки и полное их число объявляем только при виртуализации: иначе
|
|
349
|
+
* диктор считает строки по разметке, а там всего окно. Заголовок — строка
|
|
350
|
+
* первая, поэтому строки набора начинаются со второй.
|
|
351
|
+
*/
|
|
352
|
+
const ariaRowCount = computed(() => props.virtual ? sortedRows.value.length + 1 : void 0);
|
|
353
|
+
function ariaRowIndex(index) {
|
|
354
|
+
return props.virtual ? index + 2 : void 0;
|
|
355
|
+
}
|
|
356
|
+
const isEmpty = computed(() => sortedRows.value.length === 0);
|
|
357
|
+
const totalColumns = computed(() => props.columns.length + (props.selectable ? 1 : 0));
|
|
358
|
+
/** Uncontrolled-состояние; в controlled-режиме перекрывается пропом `columnOrder`. */
|
|
359
|
+
const internalColumnOrder = ref(props.columns.map((col) => String(col.key)));
|
|
360
|
+
/**
|
|
361
|
+
* Колонки в пользовательском порядке.
|
|
362
|
+
*
|
|
363
|
+
* Состав задаёт `columns`, порядок — только порядок: ключ, которого в наборе
|
|
364
|
+
* нет, игнорируется, а колонка, которой нет в порядке (её только что добавили),
|
|
365
|
+
* встаёт в конец. Иначе правка `columns` теряла бы колонки молча.
|
|
366
|
+
*/
|
|
367
|
+
const orderedColumns = computed(() => {
|
|
368
|
+
const order = props.columnOrder ?? internalColumnOrder.value;
|
|
369
|
+
const remaining = new Map(props.columns.map((col) => [String(col.key), col]));
|
|
370
|
+
const ordered = [];
|
|
371
|
+
for (const key of order) {
|
|
372
|
+
const col = remaining.get(key);
|
|
373
|
+
if (!col) continue;
|
|
374
|
+
remaining.delete(key);
|
|
375
|
+
ordered.push(col);
|
|
376
|
+
}
|
|
377
|
+
for (const col of props.columns) if (remaining.has(String(col.key))) ordered.push(col);
|
|
378
|
+
return ordered.sort((a, b) => pinGroupOf(a) - pinGroupOf(b));
|
|
379
|
+
});
|
|
380
|
+
/** Группа закрепления: 0 — слева, 1 — обычная колонка, 2 — справа. */
|
|
381
|
+
function pinGroupOf(col) {
|
|
382
|
+
if (col.pinned === "left") return 0;
|
|
383
|
+
if (col.pinned === "right") return 2;
|
|
384
|
+
return 1;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Сумма заданных ширин — минимальная ширина таблицы.
|
|
388
|
+
*
|
|
389
|
+
* Без неё фиксированная раскладка вписывает таблицу в контейнер и делит место
|
|
390
|
+
* пропорционально: колонка, которую пользователь растянул, ужимается обратно, а
|
|
391
|
+
* горизонтальной прокрутки — той самой, ради которой закрепляют колонки, — не
|
|
392
|
+
* возникает. Считается, только когда ширина известна у **всех** колонок: с
|
|
393
|
+
* одной неизвестной сумма врала бы.
|
|
394
|
+
*/
|
|
395
|
+
const tableMinWidth = computed(() => {
|
|
396
|
+
const cols = orderedColumns.value;
|
|
397
|
+
if (cols.length === 0) return void 0;
|
|
398
|
+
let total = 0;
|
|
399
|
+
for (const col of cols) {
|
|
400
|
+
const width = widthOf(col);
|
|
401
|
+
if (typeof width !== "number") return void 0;
|
|
402
|
+
total += width;
|
|
403
|
+
}
|
|
404
|
+
return total;
|
|
405
|
+
});
|
|
406
|
+
const columnKeys = computed(() => orderedColumns.value.map((col) => String(col.key)));
|
|
407
|
+
const tableProps = computed(() => ({
|
|
408
|
+
size: resolvedSize.value,
|
|
409
|
+
ariaLabel: props.ariaLabel,
|
|
410
|
+
ariaLabelledby: props.ariaLabelledby,
|
|
411
|
+
regionLabel: props.regionLabel,
|
|
412
|
+
stickyHeader: props.stickyHeader,
|
|
413
|
+
maxHeight: props.maxHeight,
|
|
414
|
+
rowCount: ariaRowCount.value,
|
|
415
|
+
fixedLayout: props.virtual || props.resizableColumns,
|
|
416
|
+
tableMinWidth: tableMinWidth.value
|
|
417
|
+
}));
|
|
418
|
+
function indexOfColumn(key) {
|
|
419
|
+
return columnKeys.value.indexOf(key);
|
|
420
|
+
}
|
|
421
|
+
const headerCellEls = /* @__PURE__ */ new Map();
|
|
422
|
+
const columnHandleEls = /* @__PURE__ */ new Map();
|
|
423
|
+
function registerEl(store, key, el) {
|
|
424
|
+
if (el instanceof HTMLElement) {
|
|
425
|
+
store.set(key, el);
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
const previous = store.get(key);
|
|
429
|
+
if (previous && !previous.isConnected) store.delete(key);
|
|
430
|
+
}
|
|
431
|
+
function applyColumnMove(from, to) {
|
|
432
|
+
const keys = columnKeys.value;
|
|
433
|
+
if (from < 0 || to < 0 || to >= keys.length || from === to) return;
|
|
434
|
+
if (!sameGroup(from, to)) return;
|
|
435
|
+
const key = keys[from];
|
|
436
|
+
const label = orderedColumns.value[from]?.label ?? key;
|
|
437
|
+
const next = moveItem(keys, from, to);
|
|
438
|
+
internalColumnOrder.value = next;
|
|
439
|
+
emit("update:columnOrder", next);
|
|
440
|
+
emit("columnReorder", {
|
|
441
|
+
key,
|
|
442
|
+
from,
|
|
443
|
+
to
|
|
444
|
+
});
|
|
445
|
+
announce(t("gr.dataTable.columnMoved", "Column {label} moved to position {position} of {count}", {
|
|
446
|
+
label,
|
|
447
|
+
position: to + 1,
|
|
448
|
+
count: keys.length
|
|
449
|
+
}));
|
|
450
|
+
}
|
|
451
|
+
const columnSort = useDragSort({
|
|
452
|
+
items: () => columnKeys.value,
|
|
453
|
+
elementFor: (key) => headerCellEls.get(key) ?? null,
|
|
454
|
+
orientation: () => "horizontal",
|
|
455
|
+
disabled: () => !props.reorderableColumns || props.loading,
|
|
456
|
+
resolveTarget: (hit, source) => {
|
|
457
|
+
const to = insertionIndex(hit, indexOfColumn(source), columnKeys.value.length);
|
|
458
|
+
return sameGroup(indexOfColumn(source), to) ? to : null;
|
|
459
|
+
},
|
|
460
|
+
onDrop: (source, to) => applyColumnMove(indexOfColumn(source), to)
|
|
461
|
+
});
|
|
462
|
+
function sameGroup(from, to) {
|
|
463
|
+
const cols = orderedColumns.value;
|
|
464
|
+
if (!cols[from] || !cols[to]) return false;
|
|
465
|
+
return pinGroupOf(cols[from]) === pinGroupOf(cols[to]);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Кольцо роверного фокуса по ручкам: одна остановка `Tab` на всю шапку.
|
|
469
|
+
* Иначе таблица из десяти колонок добавляла бы десять таб-стопов подряд.
|
|
470
|
+
*/
|
|
471
|
+
const columnRoving = useRovingFocus({
|
|
472
|
+
items: () => props.reorderableColumns ? columnKeys.value : [],
|
|
473
|
+
elementFor: (key) => columnHandleEls.get(key) ?? null,
|
|
474
|
+
orientation: () => "horizontal",
|
|
475
|
+
wrap: () => false
|
|
476
|
+
});
|
|
477
|
+
async function onColumnHandleKeydown(event, key) {
|
|
478
|
+
if (!props.reorderableColumns) return;
|
|
479
|
+
if (event.shiftKey && (event.key === "ArrowLeft" || event.key === "ArrowRight")) {
|
|
480
|
+
event.preventDefault();
|
|
481
|
+
const from = indexOfColumn(key);
|
|
482
|
+
applyColumnMove(from, event.key === "ArrowLeft" ? from - 1 : from + 1);
|
|
483
|
+
await nextTick();
|
|
484
|
+
await columnRoving.focusKey(key);
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
columnRoving.handleNavigationKeys(event);
|
|
488
|
+
}
|
|
489
|
+
const draggingColumnKey = computed(() => columnSort.mode.value === null ? null : columnSort.source.value);
|
|
490
|
+
/** Полоса места вставки — на колонке-соседе, со стороны движения. */
|
|
491
|
+
function columnDropClass(index) {
|
|
492
|
+
const target = columnSort.target.value;
|
|
493
|
+
if (!columnSort.isActive.value || target === null || target !== index) return "";
|
|
494
|
+
const active = columnSort.source.value === null ? -1 : indexOfColumn(columnSort.source.value);
|
|
495
|
+
if (index === active) return "";
|
|
496
|
+
return target < active ? columnDropBeforeClass : columnDropAfterClass;
|
|
497
|
+
}
|
|
498
|
+
const columnHandleLabel = (col) => t("gr.dataTable.moveColumn", "Move column {label}", { label: col.label });
|
|
499
|
+
/** Уже колонки не бывает: в неё перестаёт помещаться даже стрелка сортировки. */
|
|
500
|
+
const internalColumnWidths = ref({});
|
|
501
|
+
const columnWidths = computed(() => props.columnWidths ?? internalColumnWidths.value);
|
|
502
|
+
/** Фактические ширины шапки: заполняются замером, см. `measureLayout`. */
|
|
503
|
+
const measuredColumnWidths = ref({});
|
|
504
|
+
/** Ширина колонки: заданная пользователем сильнее объявленной в `columns`. */
|
|
505
|
+
function widthOf(col) {
|
|
506
|
+
return columnWidths.value[String(col.key)] ?? col.width;
|
|
507
|
+
}
|
|
508
|
+
const resizingKey = ref(null);
|
|
509
|
+
let pendingResizeKey = null;
|
|
510
|
+
let resizeStartX = 0;
|
|
511
|
+
let resizeStartWidth = 0;
|
|
512
|
+
let widthBeforeResize;
|
|
513
|
+
function setColumnWidth(key, width) {
|
|
514
|
+
const next = {
|
|
515
|
+
...columnWidths.value,
|
|
516
|
+
[key]: Math.max(MIN_COLUMN_WIDTH, Math.round(width))
|
|
517
|
+
};
|
|
518
|
+
internalColumnWidths.value = next;
|
|
519
|
+
emit("update:columnWidths", next);
|
|
520
|
+
}
|
|
521
|
+
function announceWidth(key) {
|
|
522
|
+
const col = orderedColumns.value.find((item) => String(item.key) === key);
|
|
523
|
+
if (!col) return;
|
|
524
|
+
announce(t("gr.dataTable.columnResized", "Column {label} is {width} pixels wide", {
|
|
525
|
+
label: col.label,
|
|
526
|
+
width: columnWidths.value[key] ?? 0
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
const resizeGesture = useDragGesture({
|
|
530
|
+
disabled: () => !props.resizableColumns || props.loading,
|
|
531
|
+
onStart: (event) => {
|
|
532
|
+
const key = pendingResizeKey;
|
|
533
|
+
const el = key === null ? null : headerCellEls.get(key);
|
|
534
|
+
if (key === null || !el) return false;
|
|
535
|
+
resizeStartX = event.clientX;
|
|
536
|
+
resizeStartWidth = el.getBoundingClientRect().width;
|
|
537
|
+
widthBeforeResize = columnWidths.value[key];
|
|
538
|
+
resizingKey.value = key;
|
|
539
|
+
},
|
|
540
|
+
onMove: (event) => {
|
|
541
|
+
if (resizingKey.value === null) return;
|
|
542
|
+
event.preventDefault();
|
|
543
|
+
setColumnWidth(resizingKey.value, resizeStartWidth + (event.clientX - resizeStartX));
|
|
544
|
+
},
|
|
545
|
+
onEnd: () => {
|
|
546
|
+
const key = resizingKey.value;
|
|
547
|
+
resizingKey.value = null;
|
|
548
|
+
if (key === null) return;
|
|
549
|
+
emit("columnResize", {
|
|
550
|
+
key,
|
|
551
|
+
width: columnWidths.value[key] ?? Math.round(resizeStartWidth)
|
|
552
|
+
});
|
|
553
|
+
announceWidth(key);
|
|
554
|
+
},
|
|
555
|
+
onCancel: () => {
|
|
556
|
+
const key = resizingKey.value;
|
|
557
|
+
resizingKey.value = null;
|
|
558
|
+
if (key === null) return;
|
|
559
|
+
const next = { ...columnWidths.value };
|
|
560
|
+
if (widthBeforeResize === void 0) delete next[key];
|
|
561
|
+
else next[key] = widthBeforeResize;
|
|
562
|
+
internalColumnWidths.value = next;
|
|
563
|
+
emit("update:columnWidths", next);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
function onResizerPointerDown(event, key) {
|
|
567
|
+
pendingResizeKey = key;
|
|
568
|
+
resizeGesture.start(event);
|
|
569
|
+
}
|
|
570
|
+
/** Сброс к авторазметке: колонка снова считается по содержимому. */
|
|
571
|
+
function resetColumnWidth(key) {
|
|
572
|
+
if (columnWidths.value[key] === void 0) return;
|
|
573
|
+
const next = { ...columnWidths.value };
|
|
574
|
+
delete next[key];
|
|
575
|
+
internalColumnWidths.value = next;
|
|
576
|
+
emit("update:columnWidths", next);
|
|
577
|
+
emit("columnResize", {
|
|
578
|
+
key,
|
|
579
|
+
width: 0
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
function resizeByKeyboard(key, delta) {
|
|
583
|
+
const measured = headerCellEls.get(key)?.getBoundingClientRect().width ?? MIN_COLUMN_WIDTH;
|
|
584
|
+
const current = columnWidths.value[key] ?? measured;
|
|
585
|
+
setColumnWidth(key, current + delta);
|
|
586
|
+
emit("columnResize", {
|
|
587
|
+
key,
|
|
588
|
+
width: columnWidths.value[key] ?? current
|
|
589
|
+
});
|
|
590
|
+
announceWidth(key);
|
|
591
|
+
}
|
|
592
|
+
function onResizerKeydown(event, key) {
|
|
593
|
+
if (!props.resizableColumns || props.loading) return;
|
|
594
|
+
const step = event.shiftKey ? RESIZE_BIG_STEP : RESIZE_STEP;
|
|
595
|
+
if (event.key === "ArrowLeft" || event.key === "ArrowRight") {
|
|
596
|
+
event.preventDefault();
|
|
597
|
+
resizeByKeyboard(key, event.key === "ArrowLeft" ? -step : step);
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
600
|
+
if (event.key === "Enter") {
|
|
601
|
+
event.preventDefault();
|
|
602
|
+
resetColumnWidth(key);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
function resizerLabel(col) {
|
|
606
|
+
return t("gr.dataTable.resizeColumn", "Width of column {label}", { label: col.label });
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Ручка ресайза — фокусируемый `separator`, а значит обязана называть текущее
|
|
610
|
+
* значение с первого рендера, до всякого перетаскивания. Заданной ширины у
|
|
611
|
+
* колонки может не быть вовсе (авторазметка), поэтому за значением идём к
|
|
612
|
+
* измеренной; до замера остаётся объявленная в `columns`, а её тоже может не
|
|
613
|
+
* быть — тогда минимум.
|
|
614
|
+
*/
|
|
615
|
+
function resizerValue(col) {
|
|
616
|
+
const key = String(col.key);
|
|
617
|
+
const declared = typeof col.width === "number" ? col.width : void 0;
|
|
618
|
+
return columnWidths.value[key] ?? measuredColumnWidths.value[key] ?? declared ?? MIN_COLUMN_WIDTH;
|
|
619
|
+
}
|
|
620
|
+
/** Служебная колонка выбора в реестре ячеек: своего ключа у неё нет. */
|
|
621
|
+
const hasPinnedLeft = computed(() => orderedColumns.value.some((col) => col.pinned === "left"));
|
|
622
|
+
const pinnedOffsets = ref({});
|
|
623
|
+
/**
|
|
624
|
+
* Смещения липких колонок считаются по **измеренным** ширинам соседей: колонка
|
|
625
|
+
* может жить на авторазметке, и тогда взять смещение больше неоткуда. Отсюда же
|
|
626
|
+
* порядок: замер после отрисовки, а не в вычислении.
|
|
627
|
+
*/
|
|
628
|
+
function measurePinnedOffsets() {
|
|
629
|
+
const next = {};
|
|
630
|
+
const cols = orderedColumns.value;
|
|
631
|
+
let left = props.selectable && hasPinnedLeft.value ? headerCellEls.get(SELECT_COLUMN_KEY)?.getBoundingClientRect().width ?? 0 : 0;
|
|
632
|
+
for (const col of cols) {
|
|
633
|
+
if (col.pinned !== "left") continue;
|
|
634
|
+
next[String(col.key)] = left;
|
|
635
|
+
left += headerCellEls.get(String(col.key))?.getBoundingClientRect().width ?? 0;
|
|
636
|
+
}
|
|
637
|
+
let right = 0;
|
|
638
|
+
for (let index = cols.length - 1; index >= 0; index -= 1) {
|
|
639
|
+
const col = cols[index];
|
|
640
|
+
if (col.pinned !== "right") continue;
|
|
641
|
+
next[String(col.key)] = right;
|
|
642
|
+
right += headerCellEls.get(String(col.key))?.getBoundingClientRect().width ?? 0;
|
|
643
|
+
}
|
|
644
|
+
pinnedOffsets.value = next;
|
|
645
|
+
}
|
|
646
|
+
function measureColumnWidths() {
|
|
647
|
+
if (!props.resizableColumns) return;
|
|
648
|
+
const next = {};
|
|
649
|
+
for (const col of orderedColumns.value) {
|
|
650
|
+
const key = String(col.key);
|
|
651
|
+
const width = headerCellEls.get(key)?.getBoundingClientRect().width;
|
|
652
|
+
if (width) next[key] = Math.round(width);
|
|
653
|
+
}
|
|
654
|
+
measuredColumnWidths.value = next;
|
|
655
|
+
}
|
|
656
|
+
function measureLayout() {
|
|
657
|
+
measurePinnedOffsets();
|
|
658
|
+
measureColumnWidths();
|
|
659
|
+
}
|
|
660
|
+
function pinnedStyleOf(col) {
|
|
661
|
+
if (!col.pinned) return void 0;
|
|
662
|
+
const offset = pinnedOffsets.value[String(col.key)] ?? 0;
|
|
663
|
+
return col.pinned === "left" ? { left: `${offset}px` } : { right: `${offset}px` };
|
|
664
|
+
}
|
|
665
|
+
/** Тень рисует только крайняя колонка группы — иначе полос было бы столько же, сколько колонок. */
|
|
666
|
+
function pinnedEdgeClass(col, index) {
|
|
667
|
+
if (col.pinned === "left") return orderedColumns.value[index + 1]?.pinned === "left" ? "" : columnPinnedLeftEdgeClass;
|
|
668
|
+
if (col.pinned === "right") return orderedColumns.value[index - 1]?.pinned === "right" ? "" : columnPinnedRightEdgeClass;
|
|
669
|
+
return "";
|
|
670
|
+
}
|
|
671
|
+
function pinnedCellClass(col, index) {
|
|
672
|
+
if (!col.pinned) return [];
|
|
673
|
+
return [columnPinnedClass, pinnedEdgeClass(col, index)];
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Ширину колонки меняет не только правка пропов: окно, шрифт и содержимое
|
|
677
|
+
* ячейки двигают её сами. `ResizeObserver` — единственный способ узнать об этом;
|
|
678
|
+
* в jsdom и на сервере его нет, там хватает пересчёта по изменению данных.
|
|
679
|
+
*/
|
|
680
|
+
let layoutObserver = null;
|
|
681
|
+
onMounted(() => {
|
|
682
|
+
measureLayout();
|
|
683
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
684
|
+
layoutObserver = new ResizeObserver(() => measureLayout());
|
|
685
|
+
const el = headerCellEls.get(SELECT_COLUMN_KEY) ?? headerCellEls.get(columnKeys.value[0]);
|
|
686
|
+
if (el?.parentElement) layoutObserver.observe(el.parentElement);
|
|
687
|
+
});
|
|
688
|
+
onUnmounted(() => {
|
|
689
|
+
layoutObserver?.disconnect();
|
|
690
|
+
layoutObserver = null;
|
|
691
|
+
});
|
|
692
|
+
watch(() => [
|
|
693
|
+
orderedColumns.value,
|
|
694
|
+
columnWidths.value,
|
|
695
|
+
props.loading,
|
|
696
|
+
props.rows.length
|
|
697
|
+
], () => void nextTick(measureLayout));
|
|
698
|
+
/**
|
|
699
|
+
* Живой регион существует с первого рендера и пуст, пока объявлять нечего.
|
|
700
|
+
* Регион, который появляется уже с текстом, часть AT не объявляет вовсе —
|
|
701
|
+
* а именно так вело себя `role="status"` внутри строки загрузки.
|
|
702
|
+
*/
|
|
703
|
+
const liveMessage = computed(() => {
|
|
704
|
+
if (props.loading) return resolvedLoadingText.value;
|
|
705
|
+
if (isEmpty.value) return resolvedEmptyText.value;
|
|
706
|
+
return "";
|
|
707
|
+
});
|
|
708
|
+
function cellValue(row, key) {
|
|
709
|
+
return row[key];
|
|
710
|
+
}
|
|
711
|
+
function rowClassName(row, index) {
|
|
712
|
+
const source = props.rowClass;
|
|
713
|
+
return typeof source === "function" ? source(row, index) : source;
|
|
714
|
+
}
|
|
715
|
+
function onRowClick(row, index, event) {
|
|
716
|
+
emit("rowClick", {
|
|
717
|
+
row,
|
|
718
|
+
index,
|
|
719
|
+
event
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
const internalSelected = ref([]);
|
|
723
|
+
const isSelectedControlled = computed(() => props.selected !== void 0);
|
|
724
|
+
const selectedKeys = computed(() => new Set(props.selected ?? internalSelected.value));
|
|
725
|
+
function isRowSelectable(row) {
|
|
726
|
+
return props.selectableRow ? props.selectableRow(row) : true;
|
|
727
|
+
}
|
|
728
|
+
function isRowSelected(row) {
|
|
729
|
+
return selectedKeys.value.has(rowKeyValue(row));
|
|
730
|
+
}
|
|
731
|
+
/** «Выбрать все» работает по видимым и выбираемым строкам — они же считают состояние шапки. */
|
|
732
|
+
const selectableRows = computed(() => sortedRows.value.filter(isRowSelectable));
|
|
733
|
+
const allSelected = computed(() => selectableRows.value.length > 0 && selectableRows.value.every(isRowSelected));
|
|
734
|
+
const someSelected = computed(() => selectableRows.value.some(isRowSelected) && !allSelected.value);
|
|
735
|
+
function emitSelected(next) {
|
|
736
|
+
if (!isSelectedControlled.value) internalSelected.value = [...next];
|
|
737
|
+
emit("update:selected", [...next]);
|
|
738
|
+
}
|
|
739
|
+
function toggleRow(row) {
|
|
740
|
+
if (!isRowSelectable(row)) return;
|
|
741
|
+
const key = rowKeyValue(row);
|
|
742
|
+
const next = new Set(selectedKeys.value);
|
|
743
|
+
if (next.has(key)) next.delete(key);
|
|
744
|
+
else next.add(key);
|
|
745
|
+
emitSelected(next);
|
|
746
|
+
}
|
|
747
|
+
function toggleAll() {
|
|
748
|
+
const next = new Set(selectedKeys.value);
|
|
749
|
+
if (allSelected.value) {
|
|
750
|
+
for (const row of selectableRows.value) next.delete(rowKeyValue(row));
|
|
751
|
+
emitSelected(next);
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
for (const row of selectableRows.value) next.add(rowKeyValue(row));
|
|
755
|
+
emitSelected(next);
|
|
756
|
+
}
|
|
757
|
+
const tableRef = ref(null);
|
|
758
|
+
const rootId = useId();
|
|
759
|
+
function rootEl() {
|
|
760
|
+
return tableRef.value?.$el ?? null;
|
|
761
|
+
}
|
|
762
|
+
/** Скролл-контейнер таблицы — он же элемент с `maxHeight`. */
|
|
763
|
+
function scrollEl() {
|
|
764
|
+
const root = rootEl();
|
|
765
|
+
return root?.matches("[data-gr-table-scroll]") ? root : root?.querySelector("[data-gr-table-scroll]") ?? null;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Виртуализация строк.
|
|
769
|
+
*
|
|
770
|
+
* Распорки здесь не псевдоэлементы, как у списочных компонентов: `<tbody>`
|
|
771
|
+
* игнорирует `padding`, а псевдоэлемент внутри группы строк не образует строку
|
|
772
|
+
* с управляемой высотой. Поэтому срезанное держат две служебные `<tr>` — той же
|
|
773
|
+
* формы, что строки загрузки и пустоты у `GrTable`.
|
|
774
|
+
*/
|
|
775
|
+
const scrollContainer = ref(null);
|
|
776
|
+
onMounted(() => {
|
|
777
|
+
scrollContainer.value = scrollEl();
|
|
778
|
+
});
|
|
779
|
+
const virtualizer = useVirtualList({
|
|
780
|
+
container: scrollContainer,
|
|
781
|
+
count: () => props.virtual ? sortedRows.value.length : 0,
|
|
782
|
+
source: () => sortedRows.value,
|
|
783
|
+
itemSize: () => rowHeightEstimates[resolvedSize.value],
|
|
784
|
+
viewportSize: () => typeof props.maxHeight === "number" ? props.maxHeight : void 0
|
|
785
|
+
});
|
|
786
|
+
/** Строки к отрисовке вместе с их абсолютной позицией в наборе. */
|
|
787
|
+
const renderedRows = computed(() => {
|
|
788
|
+
const rows = sortedRows.value;
|
|
789
|
+
if (!props.virtual) return rows.map((row, index) => ({
|
|
790
|
+
row,
|
|
791
|
+
index
|
|
792
|
+
}));
|
|
793
|
+
const { start, end } = virtualizer.range.value;
|
|
794
|
+
return rows.slice(start, end).map((row, offset) => ({
|
|
795
|
+
row,
|
|
796
|
+
index: start + offset
|
|
797
|
+
}));
|
|
798
|
+
});
|
|
799
|
+
const spacerBefore = computed(() => props.virtual ? virtualizer.offset.value : 0);
|
|
800
|
+
const spacerAfter = computed(() => props.virtual ? virtualizer.offsetEnd.value : 0);
|
|
801
|
+
/** Ширина колонки: число трактуем как пиксели. */
|
|
802
|
+
function columnWidthStyle(width) {
|
|
803
|
+
if (width === void 0) return void 0;
|
|
804
|
+
return { width: typeof width === "number" ? `${width}px` : width };
|
|
805
|
+
}
|
|
806
|
+
function scrollToRow(key, options) {
|
|
807
|
+
const target = String(key);
|
|
808
|
+
if (props.virtual) {
|
|
809
|
+
const index = sortedRows.value.findIndex((row) => String(rowKeyValue(row)) === target);
|
|
810
|
+
if (index < 0) return false;
|
|
811
|
+
virtualizer.scrollToIndex(index);
|
|
812
|
+
nextTick(() => {
|
|
813
|
+
findRowEl(target)?.scrollIntoView?.(options ?? { block: "nearest" });
|
|
814
|
+
});
|
|
815
|
+
return true;
|
|
816
|
+
}
|
|
817
|
+
const row = findRowEl(target);
|
|
818
|
+
if (!row) return false;
|
|
819
|
+
row.scrollIntoView(options ?? { block: "nearest" });
|
|
820
|
+
return true;
|
|
821
|
+
}
|
|
822
|
+
function findRowEl(rowKey) {
|
|
823
|
+
const rows = rootEl()?.querySelectorAll("[data-gr-datatable-row]") ?? [];
|
|
824
|
+
return Array.prototype.find.call(rows, (el) => el.dataset.rowKey === rowKey);
|
|
825
|
+
}
|
|
826
|
+
const scrollTo = (options) => {
|
|
827
|
+
scrollEl()?.scrollTo(options);
|
|
828
|
+
};
|
|
829
|
+
function clearSort() {
|
|
830
|
+
applySort("", "asc");
|
|
831
|
+
}
|
|
832
|
+
__expose({
|
|
833
|
+
/** Прокрутить к строке по её ключу. `false` — строки нет в DOM. */
|
|
834
|
+
scrollToRow,
|
|
835
|
+
/** Прокрутить скролл-контейнер таблицы. */
|
|
836
|
+
scrollTo,
|
|
837
|
+
/** Снять сортировку (эквивалент третьего состояния). */
|
|
838
|
+
clearSort,
|
|
839
|
+
/** Отметить/снять все выбираемые строки. */
|
|
840
|
+
toggleAll
|
|
841
|
+
});
|
|
842
|
+
return (_ctx, _cache) => {
|
|
843
|
+
return openBlock(), createBlock(GrTable_default, mergeProps(tableProps.value, {
|
|
844
|
+
ref_key: "tableRef",
|
|
845
|
+
ref: tableRef,
|
|
846
|
+
"data-gr-datatable": ""
|
|
847
|
+
}), createSlots({
|
|
848
|
+
caption: withCtx(() => [renderSlot(_ctx.$slots, "caption", {}, () => [createTextVNode(toDisplayString(__props.caption), 1)]), createElementVNode("span", {
|
|
849
|
+
id: `${unref(rootId)}-live`,
|
|
850
|
+
"data-gr-datatable-live": "",
|
|
851
|
+
role: "status",
|
|
852
|
+
"aria-live": "polite"
|
|
853
|
+
}, toDisplayString(liveMessage.value), 9, _hoisted_1)]),
|
|
854
|
+
header: withCtx(() => [createElementVNode("tr", {
|
|
855
|
+
"data-gr-datatable-header": "",
|
|
856
|
+
"aria-rowindex": __props.virtual ? 1 : void 0
|
|
857
|
+
}, [__props.selectable ? (openBlock(), createElementBlock("th", {
|
|
858
|
+
key: 0,
|
|
859
|
+
ref: (el) => registerEl(unref(headerCellEls), SELECT_COLUMN_KEY, el),
|
|
860
|
+
class: normalizeClass(["text-left", [
|
|
861
|
+
selectColumnClass.value,
|
|
862
|
+
cellClass.value,
|
|
863
|
+
hasPinnedLeft.value ? unref(columnPinnedClass) : ""
|
|
864
|
+
]]),
|
|
865
|
+
style: normalizeStyle(hasPinnedLeft.value ? { left: "0px" } : void 0),
|
|
866
|
+
scope: "col"
|
|
867
|
+
}, [createVNode(GrCheckbox_default, {
|
|
868
|
+
"data-gr-datatable-select-all": "",
|
|
869
|
+
"model-value": allSelected.value,
|
|
870
|
+
indeterminate: someSelected.value,
|
|
871
|
+
size: checkboxSize.value,
|
|
872
|
+
disabled: __props.loading || selectableRows.value.length === 0,
|
|
873
|
+
"aria-label": unref(t)("gr.dataTable.selectAll", "Select all rows"),
|
|
874
|
+
"onUpdate:modelValue": toggleAll
|
|
875
|
+
}, null, 8, [
|
|
876
|
+
"model-value",
|
|
877
|
+
"indeterminate",
|
|
878
|
+
"size",
|
|
879
|
+
"disabled",
|
|
880
|
+
"aria-label"
|
|
881
|
+
])], 6)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(orderedColumns.value, (col, colIndex) => {
|
|
882
|
+
return openBlock(), createElementBlock("th", {
|
|
883
|
+
key: col.key,
|
|
884
|
+
ref_for: true,
|
|
885
|
+
ref: (el) => registerEl(unref(headerCellEls), String(col.key), el),
|
|
886
|
+
class: normalizeClass(["font-700", [
|
|
887
|
+
headerTextClass.value,
|
|
888
|
+
cellClass.value,
|
|
889
|
+
cellAlign(col),
|
|
890
|
+
__props.reorderableColumns || __props.resizableColumns ? "group relative" : "",
|
|
891
|
+
draggingColumnKey.value === String(col.key) ? unref(columnDraggingClass) : "",
|
|
892
|
+
columnDropClass(colIndex),
|
|
893
|
+
...pinnedCellClass(col, colIndex)
|
|
894
|
+
]]),
|
|
895
|
+
"data-column-key": col.key,
|
|
896
|
+
style: normalizeStyle({
|
|
897
|
+
...columnWidthStyle(widthOf(col)),
|
|
898
|
+
...pinnedStyleOf(col)
|
|
899
|
+
}),
|
|
900
|
+
"aria-sort": ariaSortFor(col),
|
|
901
|
+
scope: "col"
|
|
902
|
+
}, [createElementVNode("div", { class: normalizeClass(["inline-flex items-center", headerGapClass.value]) }, [__props.reorderableColumns ? (openBlock(), createElementBlock("button", {
|
|
903
|
+
key: 0,
|
|
904
|
+
ref_for: true,
|
|
905
|
+
ref: (el) => registerEl(unref(columnHandleEls), String(col.key), el),
|
|
906
|
+
type: "button",
|
|
907
|
+
"data-gr-datatable-column-handle": "",
|
|
908
|
+
class: normalizeClass([unref(columnHandleClass), unref(columnSort).isActive.value ? unref(columnHandleActiveClass) : ""]),
|
|
909
|
+
tabindex: unref(columnRoving).tabindexFor(String(col.key)),
|
|
910
|
+
"aria-label": columnHandleLabel(col),
|
|
911
|
+
disabled: __props.loading,
|
|
912
|
+
onPointerdown: ($event) => unref(columnSort).startFrom(String(col.key))($event),
|
|
913
|
+
onKeydown: ($event) => onColumnHandleKeydown($event, String(col.key)),
|
|
914
|
+
onFocus: ($event) => unref(columnRoving).setActive(String(col.key)),
|
|
915
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
916
|
+
}, [createElementVNode("span", {
|
|
917
|
+
class: normalizeClass(unref(columnHandleIconClass)),
|
|
918
|
+
"aria-hidden": "true"
|
|
919
|
+
}, null, 2)], 42, _hoisted_4)) : createCommentVNode("", true), col.sortable ? (openBlock(), createElementBlock("button", {
|
|
920
|
+
key: 1,
|
|
921
|
+
type: "button",
|
|
922
|
+
"data-gr-datatable-sort": "",
|
|
923
|
+
class: normalizeClass(["inline-flex items-center 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)]", headerGapClass.value]),
|
|
924
|
+
onClick: ($event) => toggleSort(col)
|
|
925
|
+
}, [
|
|
926
|
+
createElementVNode("span", null, [renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [createTextVNode(toDisplayString(col.label), 1)])]),
|
|
927
|
+
createElementVNode("span", _hoisted_6, toDisplayString(sortHint(col)), 1),
|
|
928
|
+
createElementVNode("span", _hoisted_7, [currentSortKey.value === col.key && currentSortDir.value === "asc" ? (openBlock(), createBlock(GrIcon_default, {
|
|
929
|
+
key: 0,
|
|
930
|
+
size: sortIconSize.value
|
|
931
|
+
}, {
|
|
932
|
+
default: withCtx(() => [createVNode(unref(arrow_up_default))]),
|
|
933
|
+
_: 1
|
|
934
|
+
}, 8, ["size"])) : currentSortKey.value === col.key && currentSortDir.value === "desc" ? (openBlock(), createBlock(GrIcon_default, {
|
|
935
|
+
key: 1,
|
|
936
|
+
size: sortIconSize.value
|
|
937
|
+
}, {
|
|
938
|
+
default: withCtx(() => [createVNode(unref(arrow_down_default))]),
|
|
939
|
+
_: 1
|
|
940
|
+
}, 8, ["size"])) : createCommentVNode("", true)])
|
|
941
|
+
], 10, _hoisted_5)) : (openBlock(), createElementBlock("span", _hoisted_8, [renderSlot(_ctx.$slots, `header-${col.key}`, { column: col }, () => [createTextVNode(toDisplayString(col.label), 1)])]))], 2), __props.resizableColumns ? (openBlock(), createElementBlock("span", {
|
|
942
|
+
key: 0,
|
|
943
|
+
"data-gr-datatable-column-resizer": "",
|
|
944
|
+
role: "separator",
|
|
945
|
+
tabindex: "0",
|
|
946
|
+
"aria-orientation": "vertical",
|
|
947
|
+
class: normalizeClass(unref(columnResizerClass)),
|
|
948
|
+
"aria-label": resizerLabel(col),
|
|
949
|
+
"aria-valuenow": resizerValue(col),
|
|
950
|
+
"aria-valuemin": MIN_COLUMN_WIDTH,
|
|
951
|
+
"aria-valuetext": `${resizerValue(col)}px`,
|
|
952
|
+
onPointerdown: ($event) => onResizerPointerDown($event, String(col.key)),
|
|
953
|
+
onKeydown: ($event) => onResizerKeydown($event, String(col.key)),
|
|
954
|
+
onDblclick: ($event) => resetColumnWidth(String(col.key)),
|
|
955
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
|
|
956
|
+
}, [createElementVNode("span", {
|
|
957
|
+
class: normalizeClass([
|
|
958
|
+
unref(columnResizerLineClass),
|
|
959
|
+
unref(columnResizerHoverClass),
|
|
960
|
+
resizingKey.value === String(col.key) ? unref(columnResizerLineActiveClass) : ""
|
|
961
|
+
]),
|
|
962
|
+
"aria-hidden": "true"
|
|
963
|
+
}, null, 2)], 42, _hoisted_9)) : createCommentVNode("", true)], 14, _hoisted_3);
|
|
964
|
+
}), 128))], 8, _hoisted_2)]),
|
|
965
|
+
default: withCtx(() => [__props.loading ? (openBlock(), createElementBlock("tr", _hoisted_10, [createElementVNode("td", {
|
|
966
|
+
colspan: totalColumns.value,
|
|
967
|
+
class: normalizeClass(["text-center text-[var(--gr-muted-fg)]", placeholderClass.value])
|
|
968
|
+
}, [renderSlot(_ctx.$slots, "loading", {}, () => [createElementVNode("span", _hoisted_12, [createElementVNode("span", {
|
|
969
|
+
class: normalizeClass(["i-lucide-loader-circle block animate-spin", spinnerClass.value]),
|
|
970
|
+
"aria-hidden": "true"
|
|
971
|
+
}, null, 2), createElementVNode("span", null, toDisplayString(resolvedLoadingText.value), 1)])])], 10, _hoisted_11)])) : isEmpty.value ? (openBlock(), createElementBlock("tr", _hoisted_13, [createElementVNode("td", {
|
|
972
|
+
colspan: totalColumns.value,
|
|
973
|
+
class: normalizeClass(["text-center text-[var(--gr-muted-fg)]", placeholderClass.value])
|
|
974
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, () => [createTextVNode(toDisplayString(resolvedEmptyText.value), 1)])], 10, _hoisted_14)])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
975
|
+
__props.virtual && spacerBefore.value > 0 ? (openBlock(), createElementBlock("tr", _hoisted_15, [createElementVNode("td", {
|
|
976
|
+
colspan: totalColumns.value,
|
|
977
|
+
style: normalizeStyle({
|
|
978
|
+
height: `${spacerBefore.value}px`,
|
|
979
|
+
padding: "0",
|
|
980
|
+
border: "0"
|
|
981
|
+
})
|
|
982
|
+
}, null, 12, _hoisted_16)])) : createCommentVNode("", true),
|
|
983
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(renderedRows.value, ({ row, index }) => {
|
|
984
|
+
return openBlock(), createElementBlock("tr", mergeProps({
|
|
985
|
+
key: rowKeyValue(row),
|
|
986
|
+
ref_for: true,
|
|
987
|
+
ref: (el) => __props.virtual && unref(virtualizer).measure(index, el),
|
|
988
|
+
class: ["border-t border-[var(--gr-brd)]", [isRowSelected(row) ? unref(rowSelectedClass) : "", rowClassName(row, index)]],
|
|
989
|
+
"data-gr-datatable-row": "",
|
|
990
|
+
"data-row-key": rowKeyValue(row),
|
|
991
|
+
"data-selected": __props.selectable && isRowSelected(row) ? "true" : void 0,
|
|
992
|
+
"aria-rowindex": ariaRowIndex(index)
|
|
993
|
+
}, { ref_for: true }, __props.rowProps?.(row, index), { onClick: ($event) => onRowClick(row, index, $event) }), [__props.selectable ? (openBlock(), createElementBlock("td", {
|
|
994
|
+
key: 0,
|
|
995
|
+
class: normalizeClass(["text-left", [
|
|
996
|
+
selectColumnClass.value,
|
|
997
|
+
cellClass.value,
|
|
998
|
+
hasPinnedLeft.value ? unref(columnPinnedClass) : "",
|
|
999
|
+
hasPinnedLeft.value && isRowSelected(row) ? unref(rowSelectedClass) : ""
|
|
1000
|
+
]]),
|
|
1001
|
+
style: normalizeStyle(hasPinnedLeft.value ? { left: "0px" } : void 0)
|
|
1002
|
+
}, [isRowSelectable(row) ? (openBlock(), createBlock(GrCheckbox_default, {
|
|
1003
|
+
key: 0,
|
|
1004
|
+
"data-gr-datatable-select-row": "",
|
|
1005
|
+
"model-value": isRowSelected(row),
|
|
1006
|
+
size: checkboxSize.value,
|
|
1007
|
+
"aria-label": unref(t)("gr.dataTable.selectRow", "Select row"),
|
|
1008
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"])),
|
|
1009
|
+
"onUpdate:modelValue": ($event) => toggleRow(row)
|
|
1010
|
+
}, null, 8, [
|
|
1011
|
+
"model-value",
|
|
1012
|
+
"size",
|
|
1013
|
+
"aria-label",
|
|
1014
|
+
"onUpdate:modelValue"
|
|
1015
|
+
])) : createCommentVNode("", true)], 6)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(orderedColumns.value, (col, colIndex) => {
|
|
1016
|
+
return openBlock(), createElementBlock("td", {
|
|
1017
|
+
key: col.key,
|
|
1018
|
+
class: normalizeClass([
|
|
1019
|
+
cellClass.value,
|
|
1020
|
+
cellAlign(col),
|
|
1021
|
+
...pinnedCellClass(col, colIndex),
|
|
1022
|
+
col.pinned && isRowSelected(row) ? unref(rowSelectedClass) : ""
|
|
1023
|
+
]),
|
|
1024
|
+
style: normalizeStyle({
|
|
1025
|
+
...columnWidthStyle(widthOf(col)),
|
|
1026
|
+
...pinnedStyleOf(col)
|
|
1027
|
+
})
|
|
1028
|
+
}, [renderSlot(_ctx.$slots, `cell-${col.key}`, {
|
|
1029
|
+
row,
|
|
1030
|
+
index
|
|
1031
|
+
}, () => [createElementVNode("span", null, toDisplayString(cellValue(row, col.key)), 1)])], 6);
|
|
1032
|
+
}), 128))], 16, _hoisted_17);
|
|
1033
|
+
}), 128)),
|
|
1034
|
+
__props.virtual && spacerAfter.value > 0 ? (openBlock(), createElementBlock("tr", _hoisted_18, [createElementVNode("td", {
|
|
1035
|
+
colspan: totalColumns.value,
|
|
1036
|
+
style: normalizeStyle({
|
|
1037
|
+
height: `${spacerAfter.value}px`,
|
|
1038
|
+
padding: "0",
|
|
1039
|
+
border: "0"
|
|
1040
|
+
})
|
|
1041
|
+
}, null, 12, _hoisted_19)])) : createCommentVNode("", true)
|
|
1042
|
+
], 64))]),
|
|
1043
|
+
_: 2
|
|
1044
|
+
}, [_ctx.$slots.footer ? {
|
|
1045
|
+
name: "footer",
|
|
1046
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
1047
|
+
key: "0"
|
|
1048
|
+
} : void 0]), 1040);
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
//#endregion
|
|
1053
|
+
export { sortRows as i, compareCells as n, isEmptyCell as r, GrDataTable_default as t };
|