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