@feugene/granularity 0.4.1 → 0.4.3
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/{adapter-C7fKeUa4.js → adapter-K6zZTzBi.js} +0 -2
- package/dist/chunks/{adapter-C7fKeUa4.js.map → adapter-K6zZTzBi.js.map} +1 -1
- package/dist/chunks/arrow-up-DNXrMoAI.js +0 -2
- package/dist/chunks/classTokens-BPeBXNzu.js +0 -2
- package/dist/chunks/{config-BUGfFjmC.js → config-1I95Zy4V.js} +0 -2
- package/dist/chunks/{config-BUGfFjmC.js.map → config-1I95Zy4V.js.map} +1 -1
- package/dist/chunks/config-2wgwWaAB.js +0 -2
- package/dist/chunks/{config-DBYCntwl.js → config-BA0BWYzs.js} +0 -2
- package/dist/chunks/{config-DBYCntwl.js.map → config-BA0BWYzs.js.map} +1 -1
- package/dist/chunks/{config-dD6Po-Cq.js → config-BCPyma1I.js} +0 -2
- package/dist/chunks/{config-dD6Po-Cq.js.map → config-BCPyma1I.js.map} +1 -1
- package/dist/chunks/{config-CYPU3ztl.js → config-BDlh6iNz.js} +1 -3
- package/dist/chunks/{config-CYPU3ztl.js.map → config-BDlh6iNz.js.map} +1 -1
- package/dist/chunks/config-BKRmlivc.js +0 -2
- package/dist/chunks/{config-CcmeMlic.js → config-BN-B2K4r.js} +1 -3
- package/dist/chunks/{config-CcmeMlic.js.map → config-BN-B2K4r.js.map} +1 -1
- package/dist/chunks/{config-C0b_3LJV.js → config-BNOf_qjD.js} +0 -2
- package/dist/chunks/{config-C0b_3LJV.js.map → config-BNOf_qjD.js.map} +1 -1
- package/dist/chunks/config-BaMO9dQh.js +0 -2
- package/dist/chunks/config-Bv2G0OU6.js +0 -2
- package/dist/chunks/{config-CxCAfXZ1.js → config-BvuQUBtZ.js} +0 -2
- package/dist/chunks/{config-CxCAfXZ1.js.map → config-BvuQUBtZ.js.map} +1 -1
- package/dist/chunks/config-BzZGpWsj.js +0 -2
- package/dist/chunks/{config-KGTIAFD92.js → config-C0j836dC.js} +0 -2
- package/dist/chunks/config-C0j836dC.js.map +1 -0
- package/dist/chunks/{config-D7iuXJbl.js → config-C2iI7_QX.js} +0 -2
- package/dist/chunks/{config-D7iuXJbl.js.map → config-C2iI7_QX.js.map} +1 -1
- package/dist/chunks/{config-BcFOkUhh.js → config-C4AlNm912.js} +1 -3
- package/dist/chunks/config-C4AlNm912.js.map +1 -0
- package/dist/chunks/{config-rFwazRKi.js → config-C5SJXHQ4.js} +0 -2
- package/dist/chunks/{config-rFwazRKi.js.map → config-C5SJXHQ4.js.map} +1 -1
- package/dist/chunks/config-C6SBJxcH.js +0 -2
- package/dist/chunks/{config-BzQ4S4Hb.js → config-CByfsV-z2.js} +0 -2
- package/dist/chunks/config-CByfsV-z2.js.map +1 -0
- package/dist/chunks/{config-rxFL-6yF2.js → config-CM7nbATU2.js} +0 -2
- package/dist/chunks/{config-rxFL-6yF2.js.map → config-CM7nbATU2.js.map} +1 -1
- package/dist/chunks/config-CMZE2fu0.js +0 -2
- package/dist/chunks/config-CU_CBd0k.js +0 -2
- package/dist/chunks/{config-BhvNm4Pp.js → config-CUgvsjZx.js} +0 -2
- package/dist/chunks/{config-BhvNm4Pp.js.map → config-CUgvsjZx.js.map} +1 -1
- package/dist/chunks/{config-DxqMXzNV2.js → config-CWvHiaqr2.js} +0 -2
- package/dist/chunks/{config-DxqMXzNV2.js.map → config-CWvHiaqr2.js.map} +1 -1
- package/dist/chunks/{config-CdAx6ify2.js → config-CgAY2WP9.js} +0 -2
- package/dist/chunks/config-CgAY2WP9.js.map +1 -0
- package/dist/chunks/{config-D1gSaT52.js → config-Cgc-D1K4.js} +0 -2
- package/dist/chunks/{config-D1gSaT52.js.map → config-Cgc-D1K4.js.map} +1 -1
- package/dist/chunks/{config-cn6knwud.js → config-D19pyP4D.js} +0 -2
- package/dist/chunks/{config-cn6knwud.js.map → config-D19pyP4D.js.map} +1 -1
- package/dist/chunks/{config-ug8O8epd.js → config-DCQO6H6h.js} +0 -2
- package/dist/chunks/{config-ug8O8epd.js.map → config-DCQO6H6h.js.map} +1 -1
- package/dist/chunks/{config-BXffa3ta.js → config-DEv4m-ZP.js} +0 -2
- package/dist/chunks/{config-BXffa3ta.js.map → config-DEv4m-ZP.js.map} +1 -1
- package/dist/chunks/config-DFRYOcrP.js +0 -2
- package/dist/chunks/{config-DlLE49_I.js → config-DTpwUHgF.js} +0 -2
- package/dist/chunks/{config-DlLE49_I.js.map → config-DTpwUHgF.js.map} +1 -1
- package/dist/chunks/{config-C2JKq8-2.js → config-DUtUkSzc.js} +1 -2
- package/dist/chunks/config-DUtUkSzc.js.map +1 -0
- package/dist/chunks/config-DW_RqmUp.js +0 -2
- package/dist/chunks/{config-CJeyaUTp.js → config-Da90XGsi.js} +0 -2
- package/dist/chunks/{config-CJeyaUTp.js.map → config-Da90XGsi.js.map} +1 -1
- package/dist/chunks/{config-CJbjLC5X.js → config-DgRJlF00.js} +0 -2
- package/dist/chunks/{config-CJbjLC5X.js.map → config-DgRJlF00.js.map} +1 -1
- package/dist/chunks/config-Dkq0HeLe.js +0 -2
- package/dist/chunks/{config-DwB5-qdP2.js → config-DmI1IQvI2.js} +0 -2
- package/dist/chunks/{config-DwB5-qdP2.js.map → config-DmI1IQvI2.js.map} +1 -1
- package/dist/chunks/{config-BRU5PR8_.js → config-Dnu4VuO0.js} +0 -2
- package/dist/chunks/{config-BRU5PR8_.js.map → config-Dnu4VuO0.js.map} +1 -1
- package/dist/chunks/config-DxqpV-KM.js +0 -2
- package/dist/chunks/config-TyzU6gLf.js +0 -2
- package/dist/chunks/{config-Bv5Dok4j.js → config-XwI6t8cn.js} +0 -2
- package/dist/chunks/{config-Bv5Dok4j.js.map → config-XwI6t8cn.js.map} +1 -1
- package/dist/chunks/{config-DvTUDLT1.js → config-bpQYM5O-.js} +0 -2
- package/dist/chunks/{config-DvTUDLT1.js.map → config-bpQYM5O-.js.map} +1 -1
- package/dist/chunks/{config-BbtK511H.js → config-etXh7Bsr2.js} +0 -2
- package/dist/chunks/config-etXh7Bsr2.js.map +1 -0
- package/dist/chunks/{config-BhubOeci.js → config-fCcRwjIB.js} +0 -2
- package/dist/chunks/{config-BhubOeci.js.map → config-fCcRwjIB.js.map} +1 -1
- package/dist/chunks/{config-D7tRu8u3.js → config-nfOMJXVs.js} +0 -2
- package/dist/chunks/{config-D7tRu8u3.js.map → config-nfOMJXVs.js.map} +1 -1
- package/dist/chunks/{config-BcpRsZTe.js → config-qJXIIY1E.js} +0 -2
- package/dist/chunks/{config-BcpRsZTe.js.map → config-qJXIIY1E.js.map} +1 -1
- package/dist/chunks/{config-Dzz9P-GV2.js → config-r6hzn2Bn2.js} +0 -2
- package/dist/chunks/{config-Dzz9P-GV2.js.map → config-r6hzn2Bn2.js.map} +1 -1
- package/dist/chunks/config-rQlbnEKn.js +0 -2
- package/dist/chunks/dialogShared-BtXUk6Zc.js +0 -2
- package/dist/chunks/{en-BMjJZttK.js → en-BeJa78lP.js} +0 -2
- package/dist/chunks/{en-BMjJZttK.js.map → en-BeJa78lP.js.map} +1 -1
- package/dist/chunks/{es-Cu_RlgIr.js → es-BPqm7rLm.js} +3 -5
- package/dist/chunks/{es-Cu_RlgIr.js.map → es-BPqm7rLm.js.map} +1 -1
- package/dist/chunks/{es-EYCf8G_1.js → es-axYOwwWD.js} +0 -2
- package/dist/chunks/{es-EYCf8G_1.js.map → es-axYOwwWD.js.map} +1 -1
- package/dist/chunks/{fileValidation-CgjTGoUx.js → fileValidation-CwJA8Vmn.js} +0 -2
- package/dist/chunks/{fileValidation-CgjTGoUx.js.map → fileValidation-CwJA8Vmn.js.map} +1 -1
- package/dist/chunks/grBadgeStyles-pqqbVgLk.js +0 -2
- package/dist/chunks/grButtonStyles-BxZW2x0-.js +0 -2
- package/dist/chunks/{grDropdownStyles-DQfLh-bp.js → grDropdownStyles-DMp7RrI9.js} +0 -2
- package/dist/chunks/{grDropdownStyles-DQfLh-bp.js.map → grDropdownStyles-DMp7RrI9.js.map} +1 -1
- package/dist/chunks/{grLoadingStyles-CERsxyk9.js → grLoadingStyles-CrxZHFL0.js} +0 -2
- package/dist/chunks/{grLoadingStyles-CERsxyk9.js.map → grLoadingStyles-CrxZHFL0.js.map} +1 -1
- package/dist/chunks/grModalStyles-Dv2NXBKi.js +0 -2
- package/dist/chunks/{grSelectStyles-C1zNEkV7.js → grSelectStyles-B7doeAQp.js} +0 -2
- package/dist/chunks/{grSelectStyles-C1zNEkV7.js.map → grSelectStyles-B7doeAQp.js.map} +1 -1
- package/dist/chunks/{granularityI18n-BEWP9aJs.js → granularityI18n-GCqUz_lo.js} +1 -3
- package/dist/chunks/{granularityI18n-BEWP9aJs.js.map → granularityI18n-GCqUz_lo.js.map} +1 -1
- package/dist/chunks/info-C0bHmdZq.js +0 -2
- package/dist/chunks/loader-circle-B2rWDk5u.js +0 -2
- package/dist/chunks/{ru-DKswMSdd.js → ru-Dqh-2C00.js} +0 -2
- package/dist/chunks/{ru-DKswMSdd.js.map → ru-Dqh-2C00.js.map} +1 -1
- package/dist/chunks/safelist-BF822K15.js +0 -2
- package/dist/chunks/safelist-BY7z8fOl.js +0 -2
- package/dist/chunks/{shared-Bvjkhhm2.js → shared-buYOkZSv.js} +33 -35
- package/dist/chunks/{shared-Bvjkhhm2.js.map → shared-buYOkZSv.js.map} +1 -1
- package/dist/chunks/transition-mJ3PZCHH.js +0 -2
- package/dist/chunks/x-Pa6C2hwi.js +0 -2
- package/dist/chunks/x-circle-DQSlBLmX.js +0 -2
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +0 -2
- package/dist/components/GrAvatar/chunks/GrAvatar-BjnPKNAL.js +0 -2
- package/dist/components/GrBadge/chunks/GrBadge-wuIb4_2K.js +0 -2
- package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CxtamOZ-.js +0 -2
- package/dist/components/GrBottomNav/chunks/GrBottomNav-CsmQ7mTJ.js +0 -2
- package/dist/components/GrButton/chunks/GrButton-BmGdp8-4.js +0 -2
- package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CBj4tpms.js +0 -2
- package/dist/components/GrCard/chunks/GrCard-xtDcXBr7.js +0 -2
- package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js +0 -2
- package/dist/components/GrCollapse/chunks/GrCollapse-HU20VTVn.js +0 -2
- package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-DjGOX9Hd.js +0 -2
- package/dist/components/GrDataTable/chunks/GrDataTable-QDOJWmdY.js +0 -2
- package/dist/components/GrDialog/chunks/GrDialog-gObmaVEl.js +0 -2
- package/dist/components/GrDrawer/chunks/GrDrawer-BJL_gTxI.js +0 -2
- package/dist/components/GrDropdown/chunks/{GrDropdown-DVTU32T_.js → GrDropdown-BkACCXdp.js} +2 -4
- package/dist/components/GrDropdown/chunks/{GrDropdown-DVTU32T_.js.map → GrDropdown-BkACCXdp.js.map} +1 -1
- package/dist/components/GrDropdown/index.js +2 -2
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-fePQRcgh.js → GrDropdownMenu-BEenXrJw.js} +1 -3
- package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-fePQRcgh.js.map → GrDropdownMenu-BEenXrJw.js.map} +1 -1
- package/dist/components/GrDropdownMenu/index.js +2 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-Bs8d3tgb.js → GrEmptyState-BLbMJFW-.js} +0 -2
- package/dist/components/GrEmptyState/chunks/{GrEmptyState-Bs8d3tgb.js.map → GrEmptyState-BLbMJFW-.js.map} +1 -1
- package/dist/components/GrEmptyState/index.js +2 -2
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-DVv8yXpl.js → GrFileUpload-u01j9S0t.js} +1 -3
- package/dist/components/GrFileUpload/chunks/{GrFileUpload-DVv8yXpl.js.map → GrFileUpload-u01j9S0t.js.map} +1 -1
- package/dist/components/GrFileUpload/index.js +3 -3
- package/dist/components/GrFormField/chunks/{GrFormField-BzezYcS8.js → GrFormField-C6PfAs4u.js} +0 -2
- package/dist/components/GrFormField/chunks/{GrFormField-BzezYcS8.js.map → GrFormField-C6PfAs4u.js.map} +1 -1
- package/dist/components/GrFormField/index.js +2 -2
- package/dist/components/GrFormFile/chunks/{GrFormFile-DtZOypJW.js → GrFormFile-DdM8Bc2B.js} +2 -4
- package/dist/components/GrFormFile/chunks/{GrFormFile-DtZOypJW.js.map → GrFormFile-DdM8Bc2B.js.map} +1 -1
- package/dist/components/GrFormFile/index.js +2 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-BIPB1RIk.js → GrFormSection-5djEaQZQ.js} +0 -2
- package/dist/components/GrFormSection/chunks/{GrFormSection-BIPB1RIk.js.map → GrFormSection-5djEaQZQ.js.map} +1 -1
- package/dist/components/GrFormSection/index.js +2 -2
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +0 -2
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-fn8ilJTA.js → GrImageViewer-CjSnohW7.js} +0 -2
- package/dist/components/GrImageViewer/chunks/{GrImageViewer-fn8ilJTA.js.map → GrImageViewer-CjSnohW7.js.map} +1 -1
- package/dist/components/GrImageViewer/index.js +2 -2
- package/dist/components/GrInput/chunks/{GrInput-DLLRrH1A.js → GrInput-ghxaTf6d.js} +0 -2
- package/dist/components/GrInput/chunks/{GrInput-DLLRrH1A.js.map → GrInput-ghxaTf6d.js.map} +1 -1
- package/dist/components/GrInput/index.js +2 -2
- package/dist/components/GrInputTag/chunks/{GrInputTag-CzrrBxgU.js → GrInputTag-B0x4U0Yk.js} +1 -3
- package/dist/components/GrInputTag/chunks/{GrInputTag-CzrrBxgU.js.map → GrInputTag-B0x4U0Yk.js.map} +1 -1
- package/dist/components/GrInputTag/index.js +2 -2
- package/dist/components/GrLink/chunks/{GrLink-Dhkid3Mp.js → GrLink-BbN7R3iP.js} +1 -3
- package/dist/components/GrLink/chunks/{GrLink-Dhkid3Mp.js.map → GrLink-BbN7R3iP.js.map} +1 -1
- package/dist/components/GrLink/index.js +2 -2
- package/dist/components/GrList/chunks/{GrList-CjgeVjhY.js → GrList--Ib4zLNw.js} +0 -2
- package/dist/components/GrList/chunks/{GrList-CjgeVjhY.js.map → GrList--Ib4zLNw.js.map} +1 -1
- package/dist/components/GrList/index.js +2 -2
- package/dist/components/GrLoading/chunks/{GrLoading-DihGX3ol.js → GrLoading-C3QZKwE-.js} +1 -3
- package/dist/components/GrLoading/chunks/{GrLoading-DihGX3ol.js.map → GrLoading-C3QZKwE-.js.map} +1 -1
- package/dist/components/GrLoading/index.js +2 -2
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +0 -2
- package/dist/components/GrModal/index.js +1 -1
- package/dist/components/GrNavbar/chunks/{GrNavbar-CQOAfO6y.js → GrNavbar-nIyuiVj1.js} +1 -3
- package/dist/components/GrNavbar/chunks/{GrNavbar-CQOAfO6y.js.map → GrNavbar-nIyuiVj1.js.map} +1 -1
- package/dist/components/GrNavbar/index.js +2 -2
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CyHgUotG.js → GrNumberInput-B0mPLjdv.js} +1 -3
- package/dist/components/GrNumberInput/chunks/{GrNumberInput-CyHgUotG.js.map → GrNumberInput-B0mPLjdv.js.map} +1 -1
- package/dist/components/GrNumberInput/index.js +2 -2
- package/dist/components/GrPagination/chunks/{GrPagination-C5cxRJsF.js → GrPagination-BSTO6flk.js} +2 -4
- package/dist/components/GrPagination/chunks/{GrPagination-C5cxRJsF.js.map → GrPagination-BSTO6flk.js.map} +1 -1
- package/dist/components/GrPagination/index.js +2 -2
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-C9wAAFxR.js → GrProgressBar-MvMnzsJl.js} +1 -3
- package/dist/components/GrProgressBar/chunks/{GrProgressBar-C9wAAFxR.js.map → GrProgressBar-MvMnzsJl.js.map} +1 -1
- package/dist/components/GrProgressBar/index.js +2 -2
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Cfq9bvL3.js → GrPromptDialog-DKhbN6ji.js} +2 -4
- package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-Cfq9bvL3.js.map → GrPromptDialog-DKhbN6ji.js.map} +1 -1
- package/dist/components/GrPromptDialog/index.js +2 -2
- package/dist/components/GrRadio/chunks/{GrRadio-B_t_ZNVl.js → GrRadio-BxBs3WHq.js} +1 -3
- package/dist/components/GrRadio/chunks/{GrRadio-B_t_ZNVl.js.map → GrRadio-BxBs3WHq.js.map} +1 -1
- package/dist/components/GrRadio/index.js +2 -2
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-CVlgpUBr.js → GrRadioGroup-CEAfJQ6A.js} +1 -3
- package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-CVlgpUBr.js.map → GrRadioGroup-CEAfJQ6A.js.map} +1 -1
- package/dist/components/GrRadioGroup/index.js +2 -2
- package/dist/components/GrSegmented/chunks/{GrSegmented-BPl1koHc.js → GrSegmented-Bwn2qOY4.js} +1 -3
- package/dist/components/GrSegmented/chunks/{GrSegmented-BPl1koHc.js.map → GrSegmented-Bwn2qOY4.js.map} +1 -1
- package/dist/components/GrSegmented/index.js +2 -2
- package/dist/components/GrSelect/chunks/{GrSelect-aVqUL-1F.js → GrSelect-9wRWAu2R.js} +3 -5
- package/dist/components/GrSelect/chunks/{GrSelect-aVqUL-1F.js.map → GrSelect-9wRWAu2R.js.map} +1 -1
- package/dist/components/GrSelect/index.js +2 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DVucgcfV.js → GrSidebar-CSZ3RpFB.js} +0 -2
- package/dist/components/GrSidebar/chunks/{GrSidebar-DVucgcfV.js.map → GrSidebar-CSZ3RpFB.js.map} +1 -1
- package/dist/components/GrSidebar/index.js +2 -2
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-CDTvCSoH.js → GrSkeleton-DKXkqWDa.js} +0 -2
- package/dist/components/GrSkeleton/chunks/{GrSkeleton-CDTvCSoH.js.map → GrSkeleton-DKXkqWDa.js.map} +1 -1
- package/dist/components/GrSkeleton/index.js +2 -2
- package/dist/components/GrSwitch/chunks/{GrSwitch-Bnamgqb2.js → GrSwitch-CdBxwV3k.js} +1 -3
- package/dist/components/GrSwitch/chunks/{GrSwitch-Bnamgqb2.js.map → GrSwitch-CdBxwV3k.js.map} +1 -1
- package/dist/components/GrSwitch/index.js +2 -2
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +0 -2
- package/dist/components/GrTable/index.js +1 -1
- package/dist/components/GrTabs/chunks/{GrTabs-CiGmcmvm.js → GrTabs-BpF8AAUz.js} +0 -2
- package/dist/components/GrTabs/chunks/{GrTabs-CiGmcmvm.js.map → GrTabs-BpF8AAUz.js.map} +1 -1
- package/dist/components/GrTabs/index.js +2 -2
- package/dist/components/GrTextarea/chunks/{GrTextarea-VBSc6A7D.js → GrTextarea-DFS9ZkrA.js} +1 -3
- package/dist/components/GrTextarea/chunks/{GrTextarea-VBSc6A7D.js.map → GrTextarea-DFS9ZkrA.js.map} +1 -1
- package/dist/components/GrTextarea/index.js +2 -2
- package/dist/components/GrToaster/chunks/{GrToaster-I1e-zCpf.js → GrToaster-3Mf0Moxt.js} +1 -3
- package/dist/components/GrToaster/chunks/{GrToaster-I1e-zCpf.js.map → GrToaster-3Mf0Moxt.js.map} +1 -1
- package/dist/components/GrToaster/index.js +2 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-CrV1gI_c.js → GrTooltip-BvmsukLW.js} +0 -2
- package/dist/components/GrTooltip/chunks/{GrTooltip-CrV1gI_c.js.map → GrTooltip-BvmsukLW.js.map} +1 -1
- package/dist/components/GrTooltip/index.js +2 -2
- package/dist/components/GrTree/chunks/{GrTree-Dlev9oBd.js → GrTree-C2kN-O4Q.js} +0 -2
- package/dist/components/GrTree/chunks/{GrTree-Dlev9oBd.js.map → GrTree-C2kN-O4Q.js.map} +1 -1
- package/dist/components/GrTree/index.js +2 -2
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-DN6XFjOD.js → GrTreeSelect-Da-CpRqm.js} +5 -7
- package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-DN6XFjOD.js.map → GrTreeSelect-Da-CpRqm.js.map} +1 -1
- package/dist/components/GrTreeSelect/index.js +2 -2
- package/dist/composables/useTheme.js +0 -2
- package/dist/composables/useToast.js +0 -2
- package/dist/directives/autofocus.js +55 -0
- package/dist/directives/autofocus.js.map +1 -0
- package/dist/directives/autosize.js +117 -0
- package/dist/directives/autosize.js.map +1 -0
- package/dist/directives/clickOutside.js +96 -0
- package/dist/directives/clickOutside.js.map +1 -0
- package/dist/directives/dropzone.js +164 -0
- package/dist/directives/dropzone.js.map +1 -0
- package/dist/directives/hotkey.js +138 -0
- package/dist/directives/hotkey.js.map +1 -0
- package/dist/directives/index.js +6 -1
- package/dist/directives/loading.js +163 -0
- package/dist/directives/loading.js.map +1 -0
- package/dist/fileValidation/index.js +1 -1
- package/dist/granular-provider-node.js +2 -4
- package/dist/granular-provider.js +1 -3
- package/dist/i18n/all.js +1 -3
- package/dist/i18n/index.js +2 -2
- package/dist/index.js +71 -66
- package/dist/types/src/components/GrLink/grLinkStyles.d.ts +1 -1
- package/dist/vue/index.js +0 -2
- package/package.json +25 -1
- package/dist/chunks/config-BbtK511H.js.map +0 -1
- package/dist/chunks/config-BcFOkUhh.js.map +0 -1
- package/dist/chunks/config-BzQ4S4Hb.js.map +0 -1
- package/dist/chunks/config-C2JKq8-2.js.map +0 -1
- package/dist/chunks/config-CdAx6ify2.js.map +0 -1
- package/dist/chunks/config-KGTIAFD92.js.map +0 -1
- package/dist/chunks/directives-Cuib0yOO.js +0 -728
- package/dist/chunks/directives-Cuib0yOO.js.map +0 -1
|
@@ -1,728 +0,0 @@
|
|
|
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
|