@feugene/granularity 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/_plugin-vue_export-helper-BG_EqiDU.js +8 -0
- package/dist/chunks/adapter-C7fKeUa4.js +6 -0
- package/dist/chunks/adapter-C7fKeUa4.js.map +1 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js +25 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js.map +1 -0
- package/dist/chunks/classTokens-BPeBXNzu.js +8 -0
- package/dist/chunks/classTokens-BPeBXNzu.js.map +1 -0
- package/dist/chunks/config-2wgwWaAB.js +10 -0
- package/dist/chunks/config-2wgwWaAB.js.map +1 -0
- package/dist/chunks/config-BKRmlivc.js +10 -0
- package/dist/chunks/config-BKRmlivc.js.map +1 -0
- package/dist/chunks/config-BRU5PR8_.js +10 -0
- package/dist/chunks/config-BRU5PR8_.js.map +1 -0
- package/dist/chunks/config-BUGfFjmC.js +16 -0
- package/dist/chunks/config-BUGfFjmC.js.map +1 -0
- package/dist/chunks/config-BXffa3ta.js +60 -0
- package/dist/chunks/config-BXffa3ta.js.map +1 -0
- package/dist/chunks/config-BaMO9dQh.js +22 -0
- package/dist/chunks/config-BaMO9dQh.js.map +1 -0
- package/dist/chunks/config-BbtK511H.js +11 -0
- package/dist/chunks/config-BbtK511H.js.map +1 -0
- package/dist/chunks/config-BcFOkUhh.js +15 -0
- package/dist/chunks/config-BcFOkUhh.js.map +1 -0
- package/dist/chunks/config-BcpRsZTe.js +10 -0
- package/dist/chunks/config-BcpRsZTe.js.map +1 -0
- package/dist/chunks/config-BhubOeci.js +15 -0
- package/dist/chunks/config-BhubOeci.js.map +1 -0
- package/dist/chunks/config-BhvNm4Pp.js +173 -0
- package/dist/chunks/config-BhvNm4Pp.js.map +1 -0
- package/dist/chunks/config-Bv2G0OU6.js +10 -0
- package/dist/chunks/config-Bv2G0OU6.js.map +1 -0
- package/dist/chunks/config-Bv5Dok4j.js +41 -0
- package/dist/chunks/config-Bv5Dok4j.js.map +1 -0
- package/dist/chunks/config-BzQ4S4Hb.js +11 -0
- package/dist/chunks/config-BzQ4S4Hb.js.map +1 -0
- package/dist/chunks/config-BzZGpWsj.js +11 -0
- package/dist/chunks/config-BzZGpWsj.js.map +1 -0
- package/dist/chunks/config-C0b_3LJV.js +42 -0
- package/dist/chunks/config-C0b_3LJV.js.map +1 -0
- package/dist/chunks/config-C2JKq8-2.js +60 -0
- package/dist/chunks/config-C2JKq8-2.js.map +1 -0
- package/dist/chunks/config-C6SBJxcH.js +10 -0
- package/dist/chunks/config-C6SBJxcH.js.map +1 -0
- package/dist/chunks/config-CJbjLC5X.js +55 -0
- package/dist/chunks/config-CJbjLC5X.js.map +1 -0
- package/dist/chunks/config-CJeyaUTp.js +40 -0
- package/dist/chunks/config-CJeyaUTp.js.map +1 -0
- package/dist/chunks/config-CMZE2fu0.js +11 -0
- package/dist/chunks/config-CMZE2fu0.js.map +1 -0
- package/dist/chunks/config-CU_CBd0k.js +24 -0
- package/dist/chunks/config-CU_CBd0k.js.map +1 -0
- package/dist/chunks/config-CYPU3ztl.js +26 -0
- package/dist/chunks/config-CYPU3ztl.js.map +1 -0
- package/dist/chunks/config-CcmeMlic.js +19 -0
- package/dist/chunks/config-CcmeMlic.js.map +1 -0
- package/dist/chunks/config-CdAx6ify2.js +11 -0
- package/dist/chunks/config-CdAx6ify2.js.map +1 -0
- package/dist/chunks/config-CxCAfXZ1.js +23 -0
- package/dist/chunks/config-CxCAfXZ1.js.map +1 -0
- package/dist/chunks/config-D1gSaT52.js +11 -0
- package/dist/chunks/config-D1gSaT52.js.map +1 -0
- package/dist/chunks/config-D7iuXJbl.js +11 -0
- package/dist/chunks/config-D7iuXJbl.js.map +1 -0
- package/dist/chunks/config-D7tRu8u3.js +11 -0
- package/dist/chunks/config-D7tRu8u3.js.map +1 -0
- package/dist/chunks/config-DBYCntwl.js +10 -0
- package/dist/chunks/config-DBYCntwl.js.map +1 -0
- package/dist/chunks/config-DFRYOcrP.js +11 -0
- package/dist/chunks/config-DFRYOcrP.js.map +1 -0
- package/dist/chunks/config-DW_RqmUp.js +10 -0
- package/dist/chunks/config-DW_RqmUp.js.map +1 -0
- package/dist/chunks/config-Dkq0HeLe.js +11 -0
- package/dist/chunks/config-Dkq0HeLe.js.map +1 -0
- package/dist/chunks/config-DlLE49_I.js +11 -0
- package/dist/chunks/config-DlLE49_I.js.map +1 -0
- package/dist/chunks/config-DvTUDLT1.js +46 -0
- package/dist/chunks/config-DvTUDLT1.js.map +1 -0
- package/dist/chunks/config-DwB5-qdP2.js +10 -0
- package/dist/chunks/config-DwB5-qdP2.js.map +1 -0
- package/dist/chunks/config-DxqMXzNV2.js +25 -0
- package/dist/chunks/config-DxqMXzNV2.js.map +1 -0
- package/dist/chunks/config-DxqpV-KM.js +47 -0
- package/dist/chunks/config-DxqpV-KM.js.map +1 -0
- package/dist/chunks/config-Dzz9P-GV2.js +11 -0
- package/dist/chunks/config-Dzz9P-GV2.js.map +1 -0
- package/dist/chunks/config-KGTIAFD92.js +10 -0
- package/dist/chunks/config-KGTIAFD92.js.map +1 -0
- package/dist/chunks/config-TyzU6gLf.js +10 -0
- package/dist/chunks/config-TyzU6gLf.js.map +1 -0
- package/dist/chunks/config-cn6knwud.js +37 -0
- package/dist/chunks/config-cn6knwud.js.map +1 -0
- package/dist/chunks/config-dD6Po-Cq.js +10 -0
- package/dist/chunks/config-dD6Po-Cq.js.map +1 -0
- package/dist/chunks/config-rFwazRKi.js +11 -0
- package/dist/chunks/config-rFwazRKi.js.map +1 -0
- package/dist/chunks/config-rQlbnEKn.js +10 -0
- package/dist/chunks/config-rQlbnEKn.js.map +1 -0
- package/dist/chunks/config-rxFL-6yF2.js +80 -0
- package/dist/chunks/config-rxFL-6yF2.js.map +1 -0
- package/dist/chunks/config-ug8O8epd.js +13 -0
- package/dist/chunks/config-ug8O8epd.js.map +1 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js +34 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js.map +1 -0
- package/dist/chunks/directives-Cuib0yOO.js +728 -0
- package/dist/chunks/directives-Cuib0yOO.js.map +1 -0
- package/dist/chunks/en-BMjJZttK.js +50 -0
- package/dist/chunks/en-BMjJZttK.js.map +1 -0
- package/dist/chunks/es-Cu_RlgIr.js +22 -0
- package/dist/chunks/es-Cu_RlgIr.js.map +1 -0
- package/dist/chunks/es-EYCf8G_1.js +50 -0
- package/dist/chunks/es-EYCf8G_1.js.map +1 -0
- package/dist/chunks/fileValidation-CgjTGoUx.js +221 -0
- package/dist/chunks/fileValidation-CgjTGoUx.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-Bu4H8bFc.js → grBadgeStyles-pqqbVgLk.js} +20 -13
- package/dist/chunks/grBadgeStyles-pqqbVgLk.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C5k0bN2e.js → grButtonStyles-BxZW2x0-.js} +62 -52
- package/dist/chunks/grButtonStyles-BxZW2x0-.js.map +1 -0
- package/dist/chunks/grDropdownStyles-DQfLh-bp.js +34 -0
- package/dist/chunks/grDropdownStyles-DQfLh-bp.js.map +1 -0
- package/dist/chunks/grLoadingStyles-CERsxyk9.js +19 -0
- package/dist/chunks/grLoadingStyles-CERsxyk9.js.map +1 -0
- package/dist/chunks/grModalStyles-Dv2NXBKi.js +49 -0
- package/dist/chunks/grModalStyles-Dv2NXBKi.js.map +1 -0
- package/dist/chunks/grSelectStyles-C1zNEkV7.js +52 -0
- package/dist/chunks/grSelectStyles-C1zNEkV7.js.map +1 -0
- package/dist/chunks/granularityI18n-BEWP9aJs.js +28 -0
- package/dist/chunks/granularityI18n-BEWP9aJs.js.map +1 -0
- package/dist/chunks/info-C0bHmdZq.js +28 -0
- package/dist/chunks/info-C0bHmdZq.js.map +1 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js +25 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js.map +1 -0
- package/dist/chunks/ru-DKswMSdd.js +50 -0
- package/dist/chunks/ru-DKswMSdd.js.map +1 -0
- package/dist/chunks/safelist-BF822K15.js +15 -0
- package/dist/chunks/safelist-BF822K15.js.map +1 -0
- package/dist/chunks/safelist-BY7z8fOl.js +26 -0
- package/dist/chunks/safelist-BY7z8fOl.js.map +1 -0
- package/dist/chunks/{shared-BqUqjuxn.js → shared-Bvjkhhm2.js} +151 -111
- package/dist/chunks/shared-Bvjkhhm2.js.map +1 -0
- package/dist/chunks/transition-mJ3PZCHH.js +1694 -0
- package/dist/chunks/transition-mJ3PZCHH.js.map +1 -0
- package/dist/chunks/x-Pa6C2hwi.js +25 -0
- package/dist/chunks/x-Pa6C2hwi.js.map +1 -0
- package/dist/chunks/x-circle-DQSlBLmX.js +69 -0
- package/dist/chunks/x-circle-DQSlBLmX.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +148 -0
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js.map +1 -0
- package/dist/components/GrAlert/index.js +3 -3
- package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js +43 -0
- package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js.map +1 -0
- package/dist/components/GrAvatar/index.js +3 -3
- package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js +34 -0
- package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js.map +1 -0
- package/dist/components/GrBadge/index.js +3 -3
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js +35 -0
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js.map +1 -0
- package/dist/components/GrBadgeWrap/index.js +3 -3
- package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js +33 -0
- package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js.map +1 -0
- package/dist/components/GrBottomNav/index.js +3 -3
- package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js +85 -0
- package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js.map +1 -0
- package/dist/components/GrButton/index.js +5 -5
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js +23 -0
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js.map +1 -0
- package/dist/components/GrButtonGroup/index.js +3 -3
- package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js +13 -0
- package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js.map +1 -0
- package/dist/components/GrCard/index.js +3 -3
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js +136 -0
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +1 -0
- package/dist/components/GrCheckbox/index.js +3 -3
- package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js +207 -0
- package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js.map +1 -0
- package/dist/components/GrCollapse/index.js +3 -3
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js +133 -0
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js.map +1 -0
- package/dist/components/GrConfirmDialog/index.js +3 -3
- package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js +181 -0
- package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js.map +1 -0
- package/dist/components/GrDataTable/index.js +3 -3
- package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js +223 -0
- package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js.map +1 -0
- package/dist/components/GrDialog/index.js +4 -4
- package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js +158 -0
- package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js.map +1 -0
- package/dist/components/GrDrawer/index.js +3 -3
- package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js +153 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-DVTU32T_.js.map +1 -0
- package/dist/components/GrDropdown/index.js +3 -3
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js +311 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-fePQRcgh.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js +64 -0
- package/dist/components/GrEmptyState/chunks/GrEmptyState-Bs8d3tgb.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +3 -3
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js +370 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-DVv8yXpl.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +4 -4
- package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js +37 -0
- package/dist/components/GrFormField/chunks/GrFormField-BzezYcS8.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -3
- package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js +315 -0
- package/dist/components/GrFormFile/chunks/GrFormFile-DtZOypJW.js.map +1 -0
- package/dist/components/GrFormFile/index.js +3 -3
- package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js +37 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-BIPB1RIk.js.map +1 -0
- package/dist/components/GrFormSection/index.js +3 -3
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +34 -0
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js.map +1 -0
- package/dist/components/GrIcon/index.js +3 -3
- package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js +399 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-fn8ilJTA.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +3 -3
- package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js +213 -0
- package/dist/components/GrInput/chunks/GrInput-DLLRrH1A.js.map +1 -0
- package/dist/components/GrInput/index.js +3 -3
- package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js +259 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-CzrrBxgU.js.map +1 -0
- package/dist/components/GrInputTag/index.js +3 -3
- package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js +82 -0
- package/dist/components/GrLink/chunks/GrLink-Dhkid3Mp.js.map +1 -0
- package/dist/components/GrLink/index.js +3 -3
- package/dist/components/GrList/chunks/GrList-CjgeVjhY.js +79 -0
- package/dist/components/GrList/chunks/GrList-CjgeVjhY.js.map +1 -0
- package/dist/components/GrList/index.js +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js +71 -0
- package/dist/components/GrLoading/chunks/GrLoading-DihGX3ol.js.map +1 -0
- package/dist/components/GrLoading/index.js +3 -3
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +170 -0
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js.map +1 -0
- package/dist/components/GrModal/index.js +4 -4
- package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js +77 -0
- package/dist/components/GrNavbar/chunks/GrNavbar-CQOAfO6y.js.map +1 -0
- package/dist/components/GrNavbar/index.js +3 -3
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js +399 -0
- package/dist/components/GrNumberInput/chunks/GrNumberInput-CyHgUotG.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +3 -3
- package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js +116 -0
- package/dist/components/GrPagination/chunks/GrPagination-C5cxRJsF.js.map +1 -0
- package/dist/components/GrPagination/index.js +3 -3
- package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js +41 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-C9wAAFxR.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +3 -3
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js +192 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-Cfq9bvL3.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +3 -3
- package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js +186 -0
- package/dist/components/GrRadio/chunks/GrRadio-B_t_ZNVl.js.map +1 -0
- package/dist/components/GrRadio/index.js +3 -3
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js +82 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CVlgpUBr.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +3 -3
- package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js +325 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-BPl1koHc.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js +445 -0
- package/dist/components/GrSelect/chunks/GrSelect-aVqUL-1F.js.map +1 -0
- package/dist/components/GrSelect/index.js +3 -3
- package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js +46 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-DVucgcfV.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js +35 -0
- package/dist/components/GrSkeleton/chunks/GrSkeleton-CDTvCSoH.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +3 -3
- package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js +81 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-Bnamgqb2.js.map +1 -0
- package/dist/components/GrSwitch/index.js +3 -3
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +59 -0
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js.map +1 -0
- package/dist/components/GrTable/index.js +3 -3
- package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js +120 -0
- package/dist/components/GrTabs/chunks/GrTabs-CiGmcmvm.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js +73 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-VBSc6A7D.js.map +1 -0
- package/dist/components/GrTextarea/index.js +3 -3
- package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js +173 -0
- package/dist/components/GrToaster/chunks/GrToaster-I1e-zCpf.js.map +1 -0
- package/dist/components/GrToaster/index.js +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js +57 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-CrV1gI_c.js.map +1 -0
- package/dist/components/GrTooltip/index.js +3 -3
- package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js +736 -0
- package/dist/components/GrTree/chunks/GrTree-Dlev9oBd.js.map +1 -0
- package/dist/components/GrTree/index.js +3 -3
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js +456 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DN6XFjOD.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +3 -3
- package/dist/composables/useTheme.js +41 -30
- package/dist/composables/useTheme.js.map +1 -0
- package/dist/composables/useToast.js +43 -34
- package/dist/composables/useToast.js.map +1 -0
- package/dist/directives/index.js +2 -2
- package/dist/fileValidation/index.js +2 -2
- package/dist/granular-provider-node.js +25 -14
- package/dist/granular-provider-node.js.map +1 -0
- package/dist/granular-provider.js +5 -3
- package/dist/granular-provider.js.map +1 -0
- package/dist/i18n/all.js +8 -6
- package/dist/i18n/all.js.map +1 -0
- package/dist/i18n/index.js +3 -3
- package/dist/index.js +105 -105
- package/dist/vue/index.js +66 -26
- package/dist/vue/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunks/_plugin-vue_export-helper-CHO2XVys.js +0 -8
- package/dist/chunks/adapter-D5uYoOZj.js +0 -4
- package/dist/chunks/arrow-up-Dv3dC3hu.js +0 -23
- package/dist/chunks/classTokens-CT1tqF2j.js +0 -6
- package/dist/chunks/config-B5JCvHys.js +0 -13
- package/dist/chunks/config-BDXa5Sna2.js +0 -9
- package/dist/chunks/config-BG5_FuZ-.js +0 -34
- package/dist/chunks/config-BMYKG1oB.js +0 -10
- package/dist/chunks/config-BQREEXFD.js +0 -8
- package/dist/chunks/config-BUZtbeTr.js +0 -40
- package/dist/chunks/config-BVXycfiO.js +0 -9
- package/dist/chunks/config-BZW-RL6E.js +0 -14
- package/dist/chunks/config-BhbfV-Is.js +0 -48
- package/dist/chunks/config-BmYFupZh.js +0 -8
- package/dist/chunks/config-BsZc_QQ-2.js +0 -20
- package/dist/chunks/config-C1Sn7mn-.js +0 -27
- package/dist/chunks/config-C4_REX-3.js +0 -9
- package/dist/chunks/config-CBFllZZ4.js +0 -9
- package/dist/chunks/config-CDyD_fCt.js +0 -8
- package/dist/chunks/config-CJeG727i.js +0 -149
- package/dist/chunks/config-CLawBqde.js +0 -21
- package/dist/chunks/config-CMz46RPG.js +0 -8
- package/dist/chunks/config-CO-7HRZd2.js +0 -8
- package/dist/chunks/config-CS7E7LME.js +0 -9
- package/dist/chunks/config-CVy124Xj.js +0 -8
- package/dist/chunks/config-CcixQGaN.js +0 -47
- package/dist/chunks/config-CiVXZxyQ.js +0 -9
- package/dist/chunks/config-CoMQmunP.js +0 -8
- package/dist/chunks/config-Cq6ufYtp.js +0 -9
- package/dist/chunks/config-D8CIEWcb.js +0 -8
- package/dist/chunks/config-D8hKc39m.js +0 -18
- package/dist/chunks/config-D9MxGwCJ.js +0 -8
- package/dist/chunks/config-DBXTZE36.js +0 -15
- package/dist/chunks/config-DK9C8O7L.js +0 -9
- package/dist/chunks/config-DTegOmx2.js +0 -8
- package/dist/chunks/config-DYI8XADo.js +0 -47
- package/dist/chunks/config-DlidGf7P.js +0 -8
- package/dist/chunks/config-DtNe7EIX.js +0 -35
- package/dist/chunks/config-EdWeK_ge.js +0 -17
- package/dist/chunks/config-FGAkxHFh.js +0 -8
- package/dist/chunks/config-M76gNxd2.js +0 -37
- package/dist/chunks/config-NuqoO_Of.js +0 -33
- package/dist/chunks/config-QsovJrku2.js +0 -66
- package/dist/chunks/config-R6F6zRJk.js +0 -9
- package/dist/chunks/config-SLwkDc4Q2.js +0 -9
- package/dist/chunks/config-aJ7sb62Y.js +0 -8
- package/dist/chunks/config-b9nc87Oc.js +0 -9
- package/dist/chunks/config-dSI8RttH2.js +0 -8
- package/dist/chunks/config-im2VHeSM.js +0 -9
- package/dist/chunks/config-vKeQ035f.js +0 -9
- package/dist/chunks/config-vMcxHlWi.js +0 -14
- package/dist/chunks/dialogShared-CONROtU2.js +0 -26
- package/dist/chunks/directives-Dr5NPOT8.js +0 -530
- package/dist/chunks/en-j3simI0h.js +0 -41
- package/dist/chunks/es-CIT9s_vo.js +0 -4
- package/dist/chunks/es-CLpJj7KP.js +0 -41
- package/dist/chunks/fileValidation-LFD-vwil.js +0 -193
- package/dist/chunks/grDropdownStyles-149X1NeB.js +0 -31
- package/dist/chunks/grLoadingStyles-Bjo7ylmq.js +0 -15
- package/dist/chunks/grModalStyles-Dmd4havY.js +0 -38
- package/dist/chunks/grSelectStyles-C3QKIn1J.js +0 -40
- package/dist/chunks/granularityI18n-8_v1B11L.js +0 -24
- package/dist/chunks/info-CNJnuTYC.js +0 -26
- package/dist/chunks/loader-circle-C5vCCMfB.js +0 -23
- package/dist/chunks/ru-CiOZPnBu.js +0 -41
- package/dist/chunks/safelist-Bq32hAXc.js +0 -13
- package/dist/chunks/safelist-CLcTRYB-.js +0 -22
- package/dist/chunks/transition-BJXMi52x.js +0 -1617
- package/dist/chunks/x--kxrj3ez.js +0 -23
- package/dist/chunks/x-circle-ChJ87u1v.js +0 -61
- package/dist/components/GrAlert/chunks/GrAlert-DLHkusb-.js +0 -129
- package/dist/components/GrAvatar/chunks/GrAvatar-BFYH3HJw.js +0 -32
- package/dist/components/GrBadge/chunks/GrBadge-D_AoqGrn.js +0 -27
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-C_N0QJfA.js +0 -26
- package/dist/components/GrBottomNav/chunks/GrBottomNav-Chpu3SVd.js +0 -21
- package/dist/components/GrButton/chunks/GrButton-BXVVt6Od.js +0 -67
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CmnYHVH7.js +0 -16
- package/dist/components/GrCard/chunks/GrCard-DEpN6Ptf.js +0 -10
- package/dist/components/GrCheckbox/chunks/GrCheckbox-DF3vJApB.js +0 -111
- package/dist/components/GrCollapse/chunks/GrCollapse-D7QYRqNa.js +0 -150
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-C7Eh8-Vn.js +0 -111
- package/dist/components/GrDataTable/chunks/GrDataTable-Dxsg1NMP.js +0 -142
- package/dist/components/GrDialog/chunks/GrDialog-BSd4-uP5.js +0 -169
- package/dist/components/GrDrawer/chunks/GrDrawer-DBBSwe1s.js +0 -135
- package/dist/components/GrDropdown/chunks/GrDropdown-BELyRP4A.js +0 -110
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-B8fuk7iP.js +0 -233
- package/dist/components/GrEmptyState/chunks/GrEmptyState-BPGoafJI.js +0 -49
- package/dist/components/GrFileUpload/chunks/GrFileUpload-BPzx3LEM.js +0 -294
- package/dist/components/GrFormField/chunks/GrFormField-Cn8g9eFP.js +0 -28
- package/dist/components/GrFormFile/chunks/GrFormFile-DfinD5Iv.js +0 -248
- package/dist/components/GrFormSection/chunks/GrFormSection-dKpQw-vh.js +0 -27
- package/dist/components/GrIcon/chunks/GrIcon-CXIHuG7L.js +0 -25
- package/dist/components/GrImageViewer/chunks/GrImageViewer-CQSNx-D7.js +0 -322
- package/dist/components/GrInput/chunks/GrInput-CLKX1inm.js +0 -158
- package/dist/components/GrInputTag/chunks/GrInputTag-BAtLody2.js +0 -214
- package/dist/components/GrLink/chunks/GrLink-BpXnly-Y.js +0 -59
- package/dist/components/GrList/chunks/GrList-BrFc7VdS.js +0 -55
- package/dist/components/GrLoading/chunks/GrLoading-dFuoryMY.js +0 -53
- package/dist/components/GrModal/chunks/GrModal-uaWXH08K.js +0 -136
- package/dist/components/GrNavbar/chunks/GrNavbar-KzLHgdjX.js +0 -62
- package/dist/components/GrNumberInput/chunks/GrNumberInput-rENn1802.js +0 -315
- package/dist/components/GrPagination/chunks/GrPagination-DP0x3rx6.js +0 -93
- package/dist/components/GrProgressBar/chunks/GrProgressBar-DpW93sOi.js +0 -29
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-ASfBwyzQ.js +0 -158
- package/dist/components/GrRadio/chunks/GrRadio-8BOo97XV.js +0 -147
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BymbUmqI.js +0 -66
- package/dist/components/GrSegmented/chunks/GrSegmented-CK5C_lN7.js +0 -250
- package/dist/components/GrSelect/chunks/GrSelect-BMfc1-vs.js +0 -314
- package/dist/components/GrSidebar/chunks/GrSidebar-C4SXXhfO.js +0 -29
- package/dist/components/GrSkeleton/chunks/GrSkeleton-QlieOdpY.js +0 -25
- package/dist/components/GrSwitch/chunks/GrSwitch-Cefiutzu.js +0 -64
- package/dist/components/GrTable/chunks/GrTable-k_FUiJQk.js +0 -44
- package/dist/components/GrTabs/chunks/GrTabs-B46P-lUc.js +0 -98
- package/dist/components/GrTextarea/chunks/GrTextarea-BX7L1MJk.js +0 -57
- package/dist/components/GrToaster/chunks/GrToaster-C4l_BjOh.js +0 -139
- package/dist/components/GrTooltip/chunks/GrTooltip-BqRAzuLT.js +0 -37
- package/dist/components/GrTree/chunks/GrTree-C2CXR_vW.js +0 -614
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-DAAay-QB.js +0 -353
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
import { l as runFileValidators, u as FileValidationError } from "./fileValidation-CgjTGoUx.js";
|
|
2
|
+
import { t as GrLoading_default } from "../components/GrLoading/chunks/GrLoading-DihGX3ol.js";
|
|
3
|
+
import { createVNode, nextTick, render } from "vue";
|
|
4
|
+
//#region src/directives/autofocus.ts
|
|
5
|
+
function resolveOptions(value) {
|
|
6
|
+
if (value === false) return {
|
|
7
|
+
enabled: false,
|
|
8
|
+
selector: "",
|
|
9
|
+
preventScroll: true
|
|
10
|
+
};
|
|
11
|
+
if (typeof value === "string") return {
|
|
12
|
+
enabled: true,
|
|
13
|
+
selector: value,
|
|
14
|
+
preventScroll: true
|
|
15
|
+
};
|
|
16
|
+
if (value && typeof value === "object") return {
|
|
17
|
+
enabled: value.disabled !== true,
|
|
18
|
+
selector: value.selector,
|
|
19
|
+
preventScroll: value.preventScroll ?? true
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
enabled: true,
|
|
23
|
+
selector: void 0,
|
|
24
|
+
preventScroll: true
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function tryFocus(target, preventScroll) {
|
|
28
|
+
if (!target) return;
|
|
29
|
+
const focusable = target;
|
|
30
|
+
if (typeof focusable.focus !== "function") return;
|
|
31
|
+
try {
|
|
32
|
+
focusable.focus({ preventScroll });
|
|
33
|
+
} catch {
|
|
34
|
+
focusable.focus();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* `v-autofocus` — универсальный автофокус.
|
|
39
|
+
* Работает как на нативных элементах, так и на компонентах-обёртках (фокусирует вложенный `input/textarea/...`).
|
|
40
|
+
*/
|
|
41
|
+
var vAutofocus = { mounted(el, binding) {
|
|
42
|
+
const { enabled, selector, preventScroll } = resolveOptions(binding.value);
|
|
43
|
+
if (!enabled) return;
|
|
44
|
+
nextTick().then(() => {
|
|
45
|
+
requestAnimationFrame(() => {
|
|
46
|
+
const finalSelector = selector || "input, textarea, select, button, [tabindex]:not([tabindex=\"-1\"])";
|
|
47
|
+
if (el.matches?.(finalSelector)) {
|
|
48
|
+
tryFocus(el, preventScroll);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const inner = el.querySelector?.(finalSelector);
|
|
52
|
+
tryFocus(inner, preventScroll);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
} };
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/directives/autosize.ts
|
|
58
|
+
var states$3 = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
function normalize$2(value) {
|
|
60
|
+
if (value === false) return { enabled: false };
|
|
61
|
+
if (value && typeof value === "object") return { enabled: value.enabled ?? true };
|
|
62
|
+
return { enabled: true };
|
|
63
|
+
}
|
|
64
|
+
function resolveTextarea(el) {
|
|
65
|
+
if (el instanceof HTMLTextAreaElement) return el;
|
|
66
|
+
return el.querySelector("textarea");
|
|
67
|
+
}
|
|
68
|
+
function toNumber(input) {
|
|
69
|
+
const n = Number.parseFloat(input);
|
|
70
|
+
return Number.isFinite(n) ? n : 0;
|
|
71
|
+
}
|
|
72
|
+
function autosize(textarea) {
|
|
73
|
+
textarea.style.height = "auto";
|
|
74
|
+
const style = getComputedStyle(textarea);
|
|
75
|
+
const border = toNumber(style.borderTopWidth) + toNumber(style.borderBottomWidth);
|
|
76
|
+
const height = style.boxSizing === "border-box" ? textarea.scrollHeight + border : textarea.scrollHeight;
|
|
77
|
+
textarea.style.height = `${height}px`;
|
|
78
|
+
}
|
|
79
|
+
function scheduleAutosize(textarea) {
|
|
80
|
+
nextTick().then(() => {
|
|
81
|
+
requestAnimationFrame(() => autosize(textarea));
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* `v-autosize` — автоподстройка высоты `textarea`.
|
|
86
|
+
*
|
|
87
|
+
* Пример:
|
|
88
|
+
* ```vue
|
|
89
|
+
* <textarea v-autosize />
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
var vAutosize = {
|
|
93
|
+
mounted(el, binding) {
|
|
94
|
+
const { enabled } = normalize$2(binding.value);
|
|
95
|
+
const textarea = resolveTextarea(el);
|
|
96
|
+
const state = {
|
|
97
|
+
textarea,
|
|
98
|
+
onInput: null,
|
|
99
|
+
prevOverflowY: textarea ? textarea.style.overflowY : null
|
|
100
|
+
};
|
|
101
|
+
states$3.set(el, state);
|
|
102
|
+
if (!enabled || !textarea) return;
|
|
103
|
+
textarea.style.overflowY = "hidden";
|
|
104
|
+
autosize(textarea);
|
|
105
|
+
scheduleAutosize(textarea);
|
|
106
|
+
const onInput = () => {
|
|
107
|
+
const current = states$3.get(el);
|
|
108
|
+
if (!current?.textarea) return;
|
|
109
|
+
autosize(current.textarea);
|
|
110
|
+
};
|
|
111
|
+
state.onInput = onInput;
|
|
112
|
+
textarea.addEventListener("input", onInput);
|
|
113
|
+
},
|
|
114
|
+
updated(el, binding) {
|
|
115
|
+
const { enabled } = normalize$2(binding.value);
|
|
116
|
+
const state = states$3.get(el);
|
|
117
|
+
if (!state) return;
|
|
118
|
+
const nextTextarea = resolveTextarea(el);
|
|
119
|
+
if (state.textarea !== nextTextarea) {
|
|
120
|
+
if (state.textarea && state.onInput) state.textarea.removeEventListener("input", state.onInput);
|
|
121
|
+
state.textarea = nextTextarea;
|
|
122
|
+
state.prevOverflowY = nextTextarea ? nextTextarea.style.overflowY : null;
|
|
123
|
+
state.onInput = null;
|
|
124
|
+
if (enabled && nextTextarea) {
|
|
125
|
+
nextTextarea.style.overflowY = "hidden";
|
|
126
|
+
autosize(nextTextarea);
|
|
127
|
+
scheduleAutosize(nextTextarea);
|
|
128
|
+
const onInput = () => {
|
|
129
|
+
const current = states$3.get(el);
|
|
130
|
+
if (!current?.textarea) return;
|
|
131
|
+
autosize(current.textarea);
|
|
132
|
+
};
|
|
133
|
+
state.onInput = onInput;
|
|
134
|
+
nextTextarea.addEventListener("input", onInput);
|
|
135
|
+
}
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (!state.textarea) return;
|
|
139
|
+
if (!enabled) {
|
|
140
|
+
if (state.onInput) {
|
|
141
|
+
state.textarea.removeEventListener("input", state.onInput);
|
|
142
|
+
state.onInput = null;
|
|
143
|
+
}
|
|
144
|
+
if (state.prevOverflowY !== null) state.textarea.style.overflowY = state.prevOverflowY;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (!state.onInput) {
|
|
148
|
+
state.prevOverflowY = state.textarea.style.overflowY;
|
|
149
|
+
state.textarea.style.overflowY = "hidden";
|
|
150
|
+
const onInput = () => {
|
|
151
|
+
const current = states$3.get(el);
|
|
152
|
+
if (!current?.textarea) return;
|
|
153
|
+
autosize(current.textarea);
|
|
154
|
+
};
|
|
155
|
+
state.onInput = onInput;
|
|
156
|
+
state.textarea.addEventListener("input", onInput);
|
|
157
|
+
}
|
|
158
|
+
autosize(state.textarea);
|
|
159
|
+
scheduleAutosize(state.textarea);
|
|
160
|
+
},
|
|
161
|
+
unmounted(el) {
|
|
162
|
+
const state = states$3.get(el);
|
|
163
|
+
if (!state) return;
|
|
164
|
+
if (state.textarea && state.onInput) {
|
|
165
|
+
state.textarea.removeEventListener("input", state.onInput);
|
|
166
|
+
if (state.prevOverflowY !== null) state.textarea.style.overflowY = state.prevOverflowY;
|
|
167
|
+
}
|
|
168
|
+
states$3.delete(el);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/directives/clickOutside.ts
|
|
173
|
+
function normalize$1(value) {
|
|
174
|
+
if (typeof value === "function") return {
|
|
175
|
+
enabled: true,
|
|
176
|
+
capture: true,
|
|
177
|
+
events: ["click"],
|
|
178
|
+
handler: value,
|
|
179
|
+
exclude: []
|
|
180
|
+
};
|
|
181
|
+
if (value && typeof value === "object") return {
|
|
182
|
+
enabled: value.enabled ?? true,
|
|
183
|
+
capture: value.capture ?? true,
|
|
184
|
+
events: value.events?.length ? value.events : ["click"],
|
|
185
|
+
handler: value.handler,
|
|
186
|
+
exclude: value.exclude ?? []
|
|
187
|
+
};
|
|
188
|
+
return {
|
|
189
|
+
enabled: false,
|
|
190
|
+
capture: true,
|
|
191
|
+
events: ["click"],
|
|
192
|
+
handler: void 0,
|
|
193
|
+
exclude: []
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function isEventInside(el, event) {
|
|
197
|
+
const target = event.target;
|
|
198
|
+
if (!target) return false;
|
|
199
|
+
const composedPath = event.composedPath?.();
|
|
200
|
+
if (Array.isArray(composedPath)) return composedPath.includes(el);
|
|
201
|
+
return el.contains(target);
|
|
202
|
+
}
|
|
203
|
+
function resolveExclude(doc, exclude) {
|
|
204
|
+
const resolved = [];
|
|
205
|
+
for (const item of exclude) {
|
|
206
|
+
if (typeof item === "string") {
|
|
207
|
+
const found = doc.querySelector(item);
|
|
208
|
+
if (found instanceof HTMLElement) resolved.push(found);
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (typeof item === "function") {
|
|
212
|
+
const found = item();
|
|
213
|
+
if (found instanceof HTMLElement) resolved.push(found);
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
if (item instanceof HTMLElement) resolved.push(item);
|
|
217
|
+
}
|
|
218
|
+
return resolved;
|
|
219
|
+
}
|
|
220
|
+
var states$2 = /* @__PURE__ */ new WeakMap();
|
|
221
|
+
function unbind$1(el) {
|
|
222
|
+
const state = states$2.get(el);
|
|
223
|
+
if (!state) return;
|
|
224
|
+
for (const event of state.options.events) state.doc.removeEventListener(event, state.listener, state.options.capture);
|
|
225
|
+
states$2.delete(el);
|
|
226
|
+
}
|
|
227
|
+
function bind$1(el, value) {
|
|
228
|
+
const options = normalize$1(value);
|
|
229
|
+
const doc = el.ownerDocument;
|
|
230
|
+
const listener = (event) => {
|
|
231
|
+
const current = states$2.get(el);
|
|
232
|
+
if (!current) return;
|
|
233
|
+
const { enabled, handler, exclude } = current.options;
|
|
234
|
+
if (!enabled || !handler) return;
|
|
235
|
+
if ("button" in event && typeof event.button === "number" && event.button !== 0) return;
|
|
236
|
+
if (!el.isConnected) return;
|
|
237
|
+
if (isEventInside(el, event)) return;
|
|
238
|
+
const excluded = resolveExclude(current.doc, exclude);
|
|
239
|
+
for (const ex of excluded) if (isEventInside(ex, event)) return;
|
|
240
|
+
handler(event);
|
|
241
|
+
};
|
|
242
|
+
const nextState = {
|
|
243
|
+
options,
|
|
244
|
+
doc,
|
|
245
|
+
listener
|
|
246
|
+
};
|
|
247
|
+
states$2.set(el, nextState);
|
|
248
|
+
if (!options.enabled || !options.handler) return;
|
|
249
|
+
for (const event of options.events) doc.addEventListener(event, listener, options.capture);
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* `v-click-outside` — обработчик клика вне элемента (например, закрытие дропдауна/модалки).
|
|
253
|
+
*/
|
|
254
|
+
var vClickOutside = {
|
|
255
|
+
mounted(el, binding) {
|
|
256
|
+
bind$1(el, binding.value);
|
|
257
|
+
},
|
|
258
|
+
updated(el, binding) {
|
|
259
|
+
unbind$1(el);
|
|
260
|
+
bind$1(el, binding.value);
|
|
261
|
+
},
|
|
262
|
+
unmounted(el) {
|
|
263
|
+
unbind$1(el);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/directives/dropzone.ts
|
|
268
|
+
function normalize(value) {
|
|
269
|
+
if (typeof value === "function") return {
|
|
270
|
+
enabled: true,
|
|
271
|
+
multiple: true,
|
|
272
|
+
validators: void 0,
|
|
273
|
+
preventDefault: true,
|
|
274
|
+
stopPropagation: false,
|
|
275
|
+
onFiles: value,
|
|
276
|
+
onError: void 0,
|
|
277
|
+
onStateChange: void 0,
|
|
278
|
+
overClass: "ds-dropzone--over"
|
|
279
|
+
};
|
|
280
|
+
if (value && typeof value === "object") return {
|
|
281
|
+
enabled: value.enabled ?? true,
|
|
282
|
+
multiple: value.multiple ?? true,
|
|
283
|
+
validators: value.validators,
|
|
284
|
+
preventDefault: value.preventDefault ?? true,
|
|
285
|
+
stopPropagation: value.stopPropagation ?? false,
|
|
286
|
+
onFiles: value.onFiles,
|
|
287
|
+
onError: value.onError,
|
|
288
|
+
onStateChange: value.onStateChange,
|
|
289
|
+
overClass: value.overClass ?? "ds-dropzone--over"
|
|
290
|
+
};
|
|
291
|
+
return {
|
|
292
|
+
enabled: false,
|
|
293
|
+
multiple: true,
|
|
294
|
+
validators: void 0,
|
|
295
|
+
preventDefault: true,
|
|
296
|
+
stopPropagation: false,
|
|
297
|
+
onFiles: void 0,
|
|
298
|
+
onError: void 0,
|
|
299
|
+
onStateChange: void 0,
|
|
300
|
+
overClass: "ds-dropzone--over"
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
var states$1 = /* @__PURE__ */ new WeakMap();
|
|
304
|
+
function setOver(el, next) {
|
|
305
|
+
const state = states$1.get(el);
|
|
306
|
+
if (!state) return;
|
|
307
|
+
const wasDomOver = el.dataset.grDropzoneOver === "true";
|
|
308
|
+
const prev = state.isOver;
|
|
309
|
+
state.isOver = next;
|
|
310
|
+
if (next) {
|
|
311
|
+
el.classList.add(state.options.overClass);
|
|
312
|
+
el.dataset.grDropzoneOver = "true";
|
|
313
|
+
} else {
|
|
314
|
+
el.classList.remove(state.options.overClass);
|
|
315
|
+
delete el.dataset.grDropzoneOver;
|
|
316
|
+
}
|
|
317
|
+
if (prev !== next || wasDomOver !== next) state.options.onStateChange?.({ isOver: next });
|
|
318
|
+
}
|
|
319
|
+
function unbind(el) {
|
|
320
|
+
const state = states$1.get(el);
|
|
321
|
+
if (!state) return;
|
|
322
|
+
state.overCounter = 0;
|
|
323
|
+
setOver(el, false);
|
|
324
|
+
delete el.dataset.grDropzone;
|
|
325
|
+
el.removeEventListener("dragenter", state.onDragEnter);
|
|
326
|
+
el.removeEventListener("dragover", state.onDragOver);
|
|
327
|
+
el.removeEventListener("dragleave", state.onDragLeave);
|
|
328
|
+
el.removeEventListener("drop", state.onDrop);
|
|
329
|
+
states$1.delete(el);
|
|
330
|
+
}
|
|
331
|
+
function bind(el, value) {
|
|
332
|
+
const state = {
|
|
333
|
+
options: normalize(value),
|
|
334
|
+
overCounter: 0,
|
|
335
|
+
isOver: false,
|
|
336
|
+
onDragEnter(event) {
|
|
337
|
+
const current = states$1.get(el);
|
|
338
|
+
if (!current?.options.enabled) return;
|
|
339
|
+
if (current.options.preventDefault) event.preventDefault();
|
|
340
|
+
if (current.options.stopPropagation) event.stopPropagation();
|
|
341
|
+
current.overCounter += 1;
|
|
342
|
+
setOver(el, true);
|
|
343
|
+
},
|
|
344
|
+
onDragOver(event) {
|
|
345
|
+
const current = states$1.get(el);
|
|
346
|
+
if (!current?.options.enabled) return;
|
|
347
|
+
if (current.options.preventDefault) event.preventDefault();
|
|
348
|
+
if (current.options.stopPropagation) event.stopPropagation();
|
|
349
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
|
|
350
|
+
},
|
|
351
|
+
onDragLeave(event) {
|
|
352
|
+
const current = states$1.get(el);
|
|
353
|
+
if (!current?.options.enabled) return;
|
|
354
|
+
if (current.options.preventDefault) event.preventDefault();
|
|
355
|
+
if (current.options.stopPropagation) event.stopPropagation();
|
|
356
|
+
current.overCounter = Math.max(0, current.overCounter - 1);
|
|
357
|
+
if (current.overCounter === 0) setOver(el, false);
|
|
358
|
+
},
|
|
359
|
+
onDrop(event) {
|
|
360
|
+
const current = states$1.get(el);
|
|
361
|
+
if (!current?.options.enabled) return;
|
|
362
|
+
if (current.options.preventDefault) event.preventDefault();
|
|
363
|
+
if (current.options.stopPropagation) event.stopPropagation();
|
|
364
|
+
current.overCounter = 0;
|
|
365
|
+
setOver(el, false);
|
|
366
|
+
const dt = event.dataTransfer;
|
|
367
|
+
const files = dt?.files ? Array.prototype.slice.call(dt.files) : [];
|
|
368
|
+
if (!files.length) return;
|
|
369
|
+
(async () => {
|
|
370
|
+
try {
|
|
371
|
+
const { files: picked, issues } = await runFileValidators(files, current.options.validators ?? [], {
|
|
372
|
+
source: "drop",
|
|
373
|
+
multiple: current.options.multiple
|
|
374
|
+
});
|
|
375
|
+
if (issues.length > 0) {
|
|
376
|
+
current.options.onError?.(new FileValidationError(issues, picked));
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (!picked.length) return;
|
|
380
|
+
await current.options.onFiles?.(picked, event);
|
|
381
|
+
} catch (error) {
|
|
382
|
+
current.options.onError?.(error);
|
|
383
|
+
}
|
|
384
|
+
})();
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
states$1.set(el, state);
|
|
388
|
+
el.dataset.grDropzone = "true";
|
|
389
|
+
el.addEventListener("dragenter", state.onDragEnter);
|
|
390
|
+
el.addEventListener("dragover", state.onDragOver);
|
|
391
|
+
el.addEventListener("dragleave", state.onDragLeave);
|
|
392
|
+
el.addEventListener("drop", state.onDrop);
|
|
393
|
+
}
|
|
394
|
+
function update(el, value) {
|
|
395
|
+
const state = states$1.get(el);
|
|
396
|
+
if (!state) {
|
|
397
|
+
bind(el, value);
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
const prevOverClass = state.options.overClass;
|
|
401
|
+
const nextOptions = normalize(value);
|
|
402
|
+
state.options = nextOptions;
|
|
403
|
+
if (prevOverClass !== nextOptions.overClass) {
|
|
404
|
+
el.classList.remove(prevOverClass);
|
|
405
|
+
if (state.isOver) el.classList.add(nextOptions.overClass);
|
|
406
|
+
}
|
|
407
|
+
if (!nextOptions.enabled) {
|
|
408
|
+
state.overCounter = 0;
|
|
409
|
+
setOver(el, false);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* `v-dropzone` — декларативная DnD-зона для файлов (перетаскивание + drop).
|
|
414
|
+
*
|
|
415
|
+
* Директива не делает загрузку сама — только нормализует события и отдаёт `File[]`.
|
|
416
|
+
*/
|
|
417
|
+
var vDropzone = {
|
|
418
|
+
mounted(el, binding) {
|
|
419
|
+
bind(el, binding.value);
|
|
420
|
+
},
|
|
421
|
+
updated(el, binding) {
|
|
422
|
+
update(el, binding.value);
|
|
423
|
+
},
|
|
424
|
+
unmounted(el) {
|
|
425
|
+
unbind(el);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/directives/hotkey.ts
|
|
430
|
+
var states = /* @__PURE__ */ new WeakMap();
|
|
431
|
+
function isEditableTarget(target) {
|
|
432
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
433
|
+
if (target.isContentEditable) return true;
|
|
434
|
+
const tag = target.tagName;
|
|
435
|
+
return tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT";
|
|
436
|
+
}
|
|
437
|
+
function normalizeBinding(value) {
|
|
438
|
+
if (!value) return {
|
|
439
|
+
enabled: false,
|
|
440
|
+
handlers: {}
|
|
441
|
+
};
|
|
442
|
+
if ("handlers" in value) {
|
|
443
|
+
const v = value;
|
|
444
|
+
return {
|
|
445
|
+
enabled: v.enabled ?? true,
|
|
446
|
+
handlers: v.handlers ?? {}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
enabled: true,
|
|
451
|
+
handlers: value
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function normalizeKeyToken(token) {
|
|
455
|
+
const t = token.trim().toLowerCase();
|
|
456
|
+
if (t === "esc") return "Escape";
|
|
457
|
+
if (t === "escape") return "Escape";
|
|
458
|
+
if (t === "space") return " ";
|
|
459
|
+
if (t.length === 1) return t;
|
|
460
|
+
return token.trim();
|
|
461
|
+
}
|
|
462
|
+
function parseHotkeys(map) {
|
|
463
|
+
const parsed = [];
|
|
464
|
+
for (const [combo, entry] of Object.entries(map)) {
|
|
465
|
+
const parts = combo.split("+").map((p) => p.trim()).filter(Boolean);
|
|
466
|
+
if (!parts.length) continue;
|
|
467
|
+
let ctrl = false;
|
|
468
|
+
let meta = false;
|
|
469
|
+
let alt = false;
|
|
470
|
+
let shift = false;
|
|
471
|
+
const keyToken = parts.at(-1);
|
|
472
|
+
if (!keyToken) continue;
|
|
473
|
+
for (const p of parts.slice(0, -1)) {
|
|
474
|
+
const t = p.toLowerCase();
|
|
475
|
+
if (t === "ctrl" || t === "control") ctrl = true;
|
|
476
|
+
else if (t === "meta" || t === "cmd" || t === "command" || t === "⌘") meta = true;
|
|
477
|
+
else if (t === "alt" || t === "option") alt = true;
|
|
478
|
+
else if (t === "shift") shift = true;
|
|
479
|
+
}
|
|
480
|
+
const key = normalizeKeyToken(keyToken);
|
|
481
|
+
parsed.push({
|
|
482
|
+
original: combo,
|
|
483
|
+
key,
|
|
484
|
+
ctrl,
|
|
485
|
+
meta,
|
|
486
|
+
alt,
|
|
487
|
+
shift,
|
|
488
|
+
entry
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
return parsed;
|
|
492
|
+
}
|
|
493
|
+
function matchKey(expected, eventKey) {
|
|
494
|
+
if (expected === " ") return eventKey === " " || eventKey === "Spacebar";
|
|
495
|
+
if (expected.length === 1) return expected.toLowerCase() === eventKey.toLowerCase();
|
|
496
|
+
return expected === eventKey;
|
|
497
|
+
}
|
|
498
|
+
function resolveEntry(entry) {
|
|
499
|
+
if (typeof entry === "function") return {
|
|
500
|
+
handler: entry,
|
|
501
|
+
preventDefault: void 0,
|
|
502
|
+
stopPropagation: false,
|
|
503
|
+
allowInEditable: false
|
|
504
|
+
};
|
|
505
|
+
return {
|
|
506
|
+
handler: entry.handler,
|
|
507
|
+
preventDefault: entry.preventDefault,
|
|
508
|
+
stopPropagation: entry.stopPropagation ?? false,
|
|
509
|
+
allowInEditable: entry.allowInEditable ?? false
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* `v-hotkey` — горячие клавиши на компонент/страницу.
|
|
514
|
+
*
|
|
515
|
+
* Пример:
|
|
516
|
+
* ```vue
|
|
517
|
+
* <div v-hotkey="{ 'Escape': close, 'Ctrl+K': openSearch }" />
|
|
518
|
+
* ```
|
|
519
|
+
*/
|
|
520
|
+
var vHotkey = {
|
|
521
|
+
mounted(el, binding) {
|
|
522
|
+
if (typeof window === "undefined") return;
|
|
523
|
+
const { enabled, handlers } = normalizeBinding(binding.value);
|
|
524
|
+
const state = {
|
|
525
|
+
enabled,
|
|
526
|
+
hotkeys: parseHotkeys(handlers),
|
|
527
|
+
listener: (event) => {
|
|
528
|
+
const current = states.get(el);
|
|
529
|
+
if (!current?.enabled) return;
|
|
530
|
+
if (!el.isConnected) return;
|
|
531
|
+
const editable = isEditableTarget(event.target);
|
|
532
|
+
for (const hk of current.hotkeys) {
|
|
533
|
+
if (hk.ctrl !== event.ctrlKey) continue;
|
|
534
|
+
if (hk.meta !== event.metaKey) continue;
|
|
535
|
+
if (hk.alt !== event.altKey) continue;
|
|
536
|
+
if (hk.shift !== event.shiftKey) continue;
|
|
537
|
+
if (!matchKey(hk.key, event.key)) continue;
|
|
538
|
+
const entry = resolveEntry(hk.entry);
|
|
539
|
+
const hasModifier = hk.ctrl || hk.meta || hk.alt || hk.shift;
|
|
540
|
+
if (editable && !entry.allowInEditable && !hasModifier && hk.key !== "Escape") continue;
|
|
541
|
+
if (entry.preventDefault ?? (hk.ctrl || hk.meta || hk.alt)) event.preventDefault();
|
|
542
|
+
if (entry.stopPropagation) event.stopPropagation();
|
|
543
|
+
entry.handler(event);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
states.set(el, state);
|
|
549
|
+
window.addEventListener("keydown", state.listener);
|
|
550
|
+
},
|
|
551
|
+
updated(el, binding) {
|
|
552
|
+
const state = states.get(el);
|
|
553
|
+
if (!state) return;
|
|
554
|
+
const next = normalizeBinding(binding.value);
|
|
555
|
+
state.enabled = next.enabled;
|
|
556
|
+
state.hotkeys = parseHotkeys(next.handlers);
|
|
557
|
+
},
|
|
558
|
+
unmounted(el) {
|
|
559
|
+
const state = states.get(el);
|
|
560
|
+
if (!state) return;
|
|
561
|
+
window.removeEventListener("keydown", state.listener);
|
|
562
|
+
states.delete(el);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/directives/loading.ts
|
|
567
|
+
function isHTMLElement(value) {
|
|
568
|
+
return typeof value === "object" && value !== null && value.nodeType === 1;
|
|
569
|
+
}
|
|
570
|
+
function resolveTarget(input, fallback) {
|
|
571
|
+
if (!input) return fallback;
|
|
572
|
+
if (typeof input === "string") {
|
|
573
|
+
const root = fallback.getRootNode?.() ?? document;
|
|
574
|
+
const foundInRoot = typeof root.querySelector === "function" ? root.querySelector(input) : null;
|
|
575
|
+
if (isHTMLElement(foundInRoot)) return foundInRoot;
|
|
576
|
+
const foundInDocument = document.querySelector(input);
|
|
577
|
+
if (isHTMLElement(foundInDocument)) return foundInDocument;
|
|
578
|
+
return fallback;
|
|
579
|
+
}
|
|
580
|
+
if (isHTMLElement(input)) return input;
|
|
581
|
+
return fallback;
|
|
582
|
+
}
|
|
583
|
+
function resolveFullscreen(options, target) {
|
|
584
|
+
if (options.fullscreen != null) return options.fullscreen;
|
|
585
|
+
return target === document.body;
|
|
586
|
+
}
|
|
587
|
+
function ensurePositionedContainer(target, fullscreen) {
|
|
588
|
+
if (fullscreen) return () => {};
|
|
589
|
+
const prevInline = target.style.position;
|
|
590
|
+
const computed = window.getComputedStyle(target);
|
|
591
|
+
if (computed.position === "static" || !computed.position) {
|
|
592
|
+
target.style.position = "relative";
|
|
593
|
+
return () => {
|
|
594
|
+
target.style.position = prevInline;
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
return () => {};
|
|
598
|
+
}
|
|
599
|
+
function parseBinding(value) {
|
|
600
|
+
if (value === true || value === false) return {
|
|
601
|
+
loading: value,
|
|
602
|
+
options: {}
|
|
603
|
+
};
|
|
604
|
+
if (value && typeof value === "object") {
|
|
605
|
+
const { loading, ...rest } = value;
|
|
606
|
+
return {
|
|
607
|
+
loading: loading ?? true,
|
|
608
|
+
options: rest
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
return {
|
|
612
|
+
loading: false,
|
|
613
|
+
options: {}
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
var STATE_KEY = Symbol("grLoadingState");
|
|
617
|
+
function getState(el) {
|
|
618
|
+
return el[STATE_KEY] ??= {};
|
|
619
|
+
}
|
|
620
|
+
function createLoading(options = {}, fallbackTarget) {
|
|
621
|
+
const initialTarget = resolveTarget(options.target, fallbackTarget ?? document.body);
|
|
622
|
+
const fullscreen = resolveFullscreen(options, initialTarget);
|
|
623
|
+
const target = fullscreen ? document.body : initialTarget;
|
|
624
|
+
const appContext = options.appContext;
|
|
625
|
+
const restorePosition = ensurePositionedContainer(target, fullscreen);
|
|
626
|
+
const mountEl = document.createElement("div");
|
|
627
|
+
mountEl.setAttribute("data-ds-loading-host", "");
|
|
628
|
+
target.appendChild(mountEl);
|
|
629
|
+
target.setAttribute("aria-busy", "true");
|
|
630
|
+
let current = { ...options };
|
|
631
|
+
let disposed = false;
|
|
632
|
+
function doRender() {
|
|
633
|
+
if (disposed) return;
|
|
634
|
+
const vnode = createVNode(GrLoading_default, {
|
|
635
|
+
text: current.text,
|
|
636
|
+
spinner: current.spinner,
|
|
637
|
+
spinnerClass: current.spinnerClass,
|
|
638
|
+
animated: current.animated,
|
|
639
|
+
background: current.background,
|
|
640
|
+
customClass: current.customClass,
|
|
641
|
+
zIndex: current.zIndex,
|
|
642
|
+
fullscreen
|
|
643
|
+
});
|
|
644
|
+
if (appContext) vnode.appContext = appContext;
|
|
645
|
+
render(vnode, mountEl);
|
|
646
|
+
}
|
|
647
|
+
function close() {
|
|
648
|
+
if (disposed) return;
|
|
649
|
+
disposed = true;
|
|
650
|
+
render(null, mountEl);
|
|
651
|
+
mountEl.remove();
|
|
652
|
+
restorePosition();
|
|
653
|
+
target.removeAttribute("aria-busy");
|
|
654
|
+
}
|
|
655
|
+
function setOptions(next) {
|
|
656
|
+
current = {
|
|
657
|
+
...current,
|
|
658
|
+
...next
|
|
659
|
+
};
|
|
660
|
+
doRender();
|
|
661
|
+
}
|
|
662
|
+
function setText(text) {
|
|
663
|
+
setOptions({ text });
|
|
664
|
+
}
|
|
665
|
+
doRender();
|
|
666
|
+
return {
|
|
667
|
+
close,
|
|
668
|
+
setOptions,
|
|
669
|
+
setText,
|
|
670
|
+
get target() {
|
|
671
|
+
return target;
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
function sync(el, value, appContext) {
|
|
676
|
+
const { loading, options } = parseBinding(value);
|
|
677
|
+
const state = getState(el);
|
|
678
|
+
if (!loading) {
|
|
679
|
+
state.controller?.close();
|
|
680
|
+
state.controller = void 0;
|
|
681
|
+
state.target = void 0;
|
|
682
|
+
state.fullscreen = void 0;
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
const target = resolveTarget(options.target, el);
|
|
686
|
+
const fullscreen = resolveFullscreen(options, target);
|
|
687
|
+
const normalizedTarget = fullscreen ? document.body : target;
|
|
688
|
+
if (!state.controller || state.target !== normalizedTarget || state.fullscreen !== fullscreen) {
|
|
689
|
+
state.controller?.close();
|
|
690
|
+
state.controller = createLoading({
|
|
691
|
+
...options,
|
|
692
|
+
fullscreen,
|
|
693
|
+
target: normalizedTarget,
|
|
694
|
+
appContext
|
|
695
|
+
}, el);
|
|
696
|
+
state.target = normalizedTarget;
|
|
697
|
+
state.fullscreen = fullscreen;
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
const controller = state.controller;
|
|
701
|
+
if (!controller) return;
|
|
702
|
+
controller.setOptions({
|
|
703
|
+
...options,
|
|
704
|
+
fullscreen,
|
|
705
|
+
target: normalizedTarget
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
var vLoading = {
|
|
709
|
+
mounted(el, binding) {
|
|
710
|
+
const appContext = binding.instance?.$?.appContext;
|
|
711
|
+
sync(el, binding.value, appContext);
|
|
712
|
+
},
|
|
713
|
+
updated(el, binding) {
|
|
714
|
+
const appContext = binding.instance?.$?.appContext;
|
|
715
|
+
sync(el, binding.value, appContext);
|
|
716
|
+
},
|
|
717
|
+
unmounted(el) {
|
|
718
|
+
const state = getState(el);
|
|
719
|
+
state.controller?.close();
|
|
720
|
+
state.controller = void 0;
|
|
721
|
+
state.target = void 0;
|
|
722
|
+
state.fullscreen = void 0;
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
//#endregion
|
|
726
|
+
export { vClickOutside as a, vDropzone as i, vLoading as n, vAutosize as o, vHotkey as r, vAutofocus as s, createLoading as t };
|
|
727
|
+
|
|
728
|
+
//# sourceMappingURL=directives-Cuib0yOO.js.map
|