@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
|
@@ -1,614 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/_plugin-vue_export-helper-CHO2XVys.js";
|
|
2
|
-
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, resolveComponent as h, shallowRef as g, toDisplayString as _, toValue as v, unref as y, watch as b, withCtx as x, withModifiers as S } from "vue";
|
|
3
|
-
import '../../../GrTree.css';//#region src/components/GrTree/grTreeDataAdapter.ts
|
|
4
|
-
var C = "children", w = "label";
|
|
5
|
-
function T(e) {
|
|
6
|
-
return typeof e == "string" || typeof e == "number";
|
|
7
|
-
}
|
|
8
|
-
function E(e, t, n) {
|
|
9
|
-
return e?.[t] ?? n;
|
|
10
|
-
}
|
|
11
|
-
function D(e) {
|
|
12
|
-
function t() {
|
|
13
|
-
return e.nodeKey != null;
|
|
14
|
-
}
|
|
15
|
-
function n() {
|
|
16
|
-
return E(e.props, "children", C);
|
|
17
|
-
}
|
|
18
|
-
function r() {
|
|
19
|
-
return E(e.props, "label", w);
|
|
20
|
-
}
|
|
21
|
-
function i(e) {
|
|
22
|
-
let t = e[r()];
|
|
23
|
-
return t == null ? "" : String(t);
|
|
24
|
-
}
|
|
25
|
-
function a(e) {
|
|
26
|
-
let t = e[n()];
|
|
27
|
-
return Array.isArray(t) ? t : [];
|
|
28
|
-
}
|
|
29
|
-
function o(e) {
|
|
30
|
-
let t = n(), r = e[t];
|
|
31
|
-
if (Array.isArray(r)) return r;
|
|
32
|
-
let i = [];
|
|
33
|
-
return e[t] = i, i;
|
|
34
|
-
}
|
|
35
|
-
function s(t) {
|
|
36
|
-
if (e.nodeKey == null) return;
|
|
37
|
-
let n = t[e.nodeKey];
|
|
38
|
-
return T(n) ? n : void 0;
|
|
39
|
-
}
|
|
40
|
-
function c(e, t, n) {
|
|
41
|
-
return s(e) ?? (n == null ? t : `${String(n)}:${t}`);
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
hasNodeKey: t,
|
|
45
|
-
getChildrenKey: n,
|
|
46
|
-
getLabelKey: r,
|
|
47
|
-
getLabel: i,
|
|
48
|
-
getChildren: a,
|
|
49
|
-
ensureChildren: o,
|
|
50
|
-
getNodeKey: c,
|
|
51
|
-
getExplicitNodeKey: s
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/components/GrTree/grTreeInteractionContext.ts
|
|
56
|
-
function O(e, t) {
|
|
57
|
-
let n = f(void 0), r = g(null), i = g(null);
|
|
58
|
-
function a(t) {
|
|
59
|
-
return e.draggable ? e.allowDrag ? e.allowDrag(t) : !0 : !1;
|
|
60
|
-
}
|
|
61
|
-
function o(t, n, r) {
|
|
62
|
-
return e.allowDrop ? e.allowDrop(t, n, r) : !0;
|
|
63
|
-
}
|
|
64
|
-
function s() {
|
|
65
|
-
r.value = null, i.value = null;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
hoveredKey: n,
|
|
69
|
-
draggingNode: r,
|
|
70
|
-
dropTarget: i,
|
|
71
|
-
canDrag: a,
|
|
72
|
-
canDrop: o,
|
|
73
|
-
resetDragState: s,
|
|
74
|
-
...t
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region src/components/GrTree/grTreeStore.ts
|
|
79
|
-
function k(e) {
|
|
80
|
-
let t = f(""), r = g(/* @__PURE__ */ new Set()), i = f(void 0), a = () => v(e.data) ?? [], o = () => v(e.filterNodeMethod);
|
|
81
|
-
b(() => v(e.defaultExpandedKeys), (e) => {
|
|
82
|
-
r.value = new Set(e ?? []);
|
|
83
|
-
}, { immediate: !0 });
|
|
84
|
-
let s = n(() => {
|
|
85
|
-
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new WeakMap(), r = (i, a, o) => i.map((i, s) => {
|
|
86
|
-
let c = {
|
|
87
|
-
key: e.adapter.getNodeKey(i, s, a?.key),
|
|
88
|
-
label: e.adapter.getLabel(i),
|
|
89
|
-
data: i,
|
|
90
|
-
level: o,
|
|
91
|
-
parent: a,
|
|
92
|
-
childNodes: []
|
|
93
|
-
};
|
|
94
|
-
return t.set(c.key, c), n.set(i, c), c.childNodes = r(e.adapter.getChildren(i), c, o + 1), c;
|
|
95
|
-
});
|
|
96
|
-
return {
|
|
97
|
-
roots: r(a(), void 0, 1),
|
|
98
|
-
byKey: t,
|
|
99
|
-
byData: n
|
|
100
|
-
};
|
|
101
|
-
}), c = n(() => {
|
|
102
|
-
let e = t.value, n = e.trim().length > 0, r = e.toLowerCase(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
|
103
|
-
if (!n) return {
|
|
104
|
-
isActive: n,
|
|
105
|
-
subtreeHasMatch: i,
|
|
106
|
-
matchedKeys: a,
|
|
107
|
-
autoExpandKeys: c
|
|
108
|
-
};
|
|
109
|
-
let l = (t) => {
|
|
110
|
-
let n = o();
|
|
111
|
-
return n ? n(e, t.data, t) : t.label.toLowerCase().includes(r);
|
|
112
|
-
}, u = (e) => {
|
|
113
|
-
let t = !1;
|
|
114
|
-
for (let n of e) {
|
|
115
|
-
let e = l(n), r = u(n.childNodes), o = e || r;
|
|
116
|
-
i.set(n.key, o), e && a.add(n.key), r && c.add(n.key), t ||= o;
|
|
117
|
-
}
|
|
118
|
-
return t;
|
|
119
|
-
};
|
|
120
|
-
return u(s.value.roots), {
|
|
121
|
-
isActive: n,
|
|
122
|
-
subtreeHasMatch: i,
|
|
123
|
-
matchedKeys: a,
|
|
124
|
-
autoExpandKeys: c
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
function l(e) {
|
|
128
|
-
return s.value.byKey.get(e);
|
|
129
|
-
}
|
|
130
|
-
function u(e) {
|
|
131
|
-
return s.value.byData.get(e);
|
|
132
|
-
}
|
|
133
|
-
function d(e) {
|
|
134
|
-
return typeof e == "object" && !!e && "key" in e && "data" in e && "childNodes" in e;
|
|
135
|
-
}
|
|
136
|
-
function p(t) {
|
|
137
|
-
if (t == null) return;
|
|
138
|
-
if (typeof t == "string" || typeof t == "number") return l(t);
|
|
139
|
-
if (d(t)) return l(t.key) ?? t;
|
|
140
|
-
let n = e.adapter.getExplicitNodeKey(t);
|
|
141
|
-
return n == null ? u(t) : l(n);
|
|
142
|
-
}
|
|
143
|
-
function m(t) {
|
|
144
|
-
let n = t.parent ? e.adapter.ensureChildren(t.parent.data) : a(), r = n.findIndex((e) => e === t.data);
|
|
145
|
-
if (r >= 0) return {
|
|
146
|
-
items: n,
|
|
147
|
-
index: r
|
|
148
|
-
};
|
|
149
|
-
let i = e.adapter.getExplicitNodeKey(t.data);
|
|
150
|
-
if (i != null && (r = n.findIndex((t) => e.adapter.getExplicitNodeKey(t) === i), !(r < 0))) return {
|
|
151
|
-
items: n,
|
|
152
|
-
index: r
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function h(e, t) {
|
|
156
|
-
let n = t.parent;
|
|
157
|
-
for (; n;) {
|
|
158
|
-
if (n.key === e.key) return !0;
|
|
159
|
-
n = n.parent;
|
|
160
|
-
}
|
|
161
|
-
return !1;
|
|
162
|
-
}
|
|
163
|
-
function _(e, t, n) {
|
|
164
|
-
let r = p(e), i = p(t);
|
|
165
|
-
return !r || !i || r.key === i.key || h(r, i) || !m(r) ? !1 : n === "inner" ? !0 : !!m(i);
|
|
166
|
-
}
|
|
167
|
-
function y() {
|
|
168
|
-
let e = s.value.byKey;
|
|
169
|
-
i.value != null && !e.has(i.value) && (i.value = void 0);
|
|
170
|
-
let t = new Set(Array.from(r.value).filter((t) => e.has(t)));
|
|
171
|
-
t.size !== r.value.size && (r.value = t);
|
|
172
|
-
}
|
|
173
|
-
function x(e) {
|
|
174
|
-
return r.value.has(e);
|
|
175
|
-
}
|
|
176
|
-
function S(e, t) {
|
|
177
|
-
let n = new Set(r.value);
|
|
178
|
-
t ? n.add(e) : n.delete(e), r.value = n;
|
|
179
|
-
}
|
|
180
|
-
function C(e) {
|
|
181
|
-
S(e.key, !x(e.key));
|
|
182
|
-
}
|
|
183
|
-
function w(e) {
|
|
184
|
-
i.value = e;
|
|
185
|
-
}
|
|
186
|
-
function T() {
|
|
187
|
-
return i.value;
|
|
188
|
-
}
|
|
189
|
-
function E() {
|
|
190
|
-
let e = i.value;
|
|
191
|
-
return e == null ? void 0 : l(e);
|
|
192
|
-
}
|
|
193
|
-
function D(e) {
|
|
194
|
-
if (e == null) return i.value = void 0, !0;
|
|
195
|
-
let t = p(e);
|
|
196
|
-
return t ? (i.value = t.key, !0) : !1;
|
|
197
|
-
}
|
|
198
|
-
function O(t) {
|
|
199
|
-
let n = e.adapter.getExplicitNodeKey(t);
|
|
200
|
-
return n == null ? u(t) : l(n);
|
|
201
|
-
}
|
|
202
|
-
function k(t, n, r) {
|
|
203
|
-
let i = p(t), a = p(n);
|
|
204
|
-
if (!i || !a || !_(i, a, r)) return;
|
|
205
|
-
let o = m(i);
|
|
206
|
-
if (!o) return;
|
|
207
|
-
let s, c;
|
|
208
|
-
if (r === "inner") s = e.adapter.ensureChildren(a.data), c = s.length;
|
|
209
|
-
else {
|
|
210
|
-
let e = m(a);
|
|
211
|
-
if (!e) return;
|
|
212
|
-
s = e.items, c = r === "prev" ? e.index : e.index + 1;
|
|
213
|
-
}
|
|
214
|
-
s === o.items && o.index < c && --c;
|
|
215
|
-
let [l] = o.items.splice(o.index, 1);
|
|
216
|
-
return s.splice(c, 0, l), r === "inner" && S(a.key, !0), y(), O(l);
|
|
217
|
-
}
|
|
218
|
-
function A(t, n) {
|
|
219
|
-
let r = p(n);
|
|
220
|
-
if (r) return e.adapter.ensureChildren(r.data).push(t), S(r.key, !0), y(), O(t);
|
|
221
|
-
}
|
|
222
|
-
function j(t) {
|
|
223
|
-
if (!e.adapter.hasNodeKey()) return !1;
|
|
224
|
-
let n = p(t);
|
|
225
|
-
if (!n) return !1;
|
|
226
|
-
let r = m(n);
|
|
227
|
-
return r ? (r.items.splice(r.index, 1), y(), !0) : !1;
|
|
228
|
-
}
|
|
229
|
-
function M(e, t) {
|
|
230
|
-
let n = p(t);
|
|
231
|
-
if (!n) return;
|
|
232
|
-
let r = m(n);
|
|
233
|
-
if (r) return r.items.splice(r.index, 0, e), y(), O(e);
|
|
234
|
-
}
|
|
235
|
-
function N(e, t) {
|
|
236
|
-
let n = p(t);
|
|
237
|
-
if (!n) return;
|
|
238
|
-
let r = m(n);
|
|
239
|
-
if (r) return r.items.splice(r.index + 1, 0, e), y(), O(e);
|
|
240
|
-
}
|
|
241
|
-
function P(e) {
|
|
242
|
-
t.value = e;
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
filterValue: t,
|
|
246
|
-
expandedKeys: r,
|
|
247
|
-
currentKey: i,
|
|
248
|
-
treeModel: s,
|
|
249
|
-
filterInfo: c,
|
|
250
|
-
filter: P,
|
|
251
|
-
isExpandedKey: x,
|
|
252
|
-
setExpandedKey: S,
|
|
253
|
-
toggleExpand: C,
|
|
254
|
-
setCurrentKey: w,
|
|
255
|
-
getCurrentKey: T,
|
|
256
|
-
getCurrentNode: E,
|
|
257
|
-
setCurrentNode: D,
|
|
258
|
-
getNode: l,
|
|
259
|
-
canMoveNode: _,
|
|
260
|
-
moveNode: k,
|
|
261
|
-
appendNode: A,
|
|
262
|
-
removeNode: j,
|
|
263
|
-
insertNodeBefore: M,
|
|
264
|
-
insertNodeAfter: N
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/components/GrTree/GrTree.vue?vue&type=script&setup=true&lang.ts
|
|
269
|
-
var A = ["data-ds-tree", "role"], j = ["aria-level", "aria-expanded"], M = [
|
|
270
|
-
"onClick",
|
|
271
|
-
"onDrop",
|
|
272
|
-
"onDragover",
|
|
273
|
-
"onMouseenter",
|
|
274
|
-
"onMouseleave"
|
|
275
|
-
], N = [
|
|
276
|
-
"aria-label",
|
|
277
|
-
"draggable",
|
|
278
|
-
"onDragstart"
|
|
279
|
-
], P = ["aria-label", "onClick"], F = { class: "ds-tree__label" }, I = { class: "ds-tree__label" }, L = "var(--ds-tree-branch-line-default-color, #e2e8f0)", R = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
280
|
-
name: "GrTree",
|
|
281
|
-
__name: "GrTree",
|
|
282
|
-
props: {
|
|
283
|
-
data: {},
|
|
284
|
-
props: { default: () => ({
|
|
285
|
-
children: "children",
|
|
286
|
-
label: "label"
|
|
287
|
-
}) },
|
|
288
|
-
nodeKey: { default: "id" },
|
|
289
|
-
defaultExpandedKeys: { default: () => [] },
|
|
290
|
-
filterNodeMethod: {},
|
|
291
|
-
highlightCurrent: {
|
|
292
|
-
type: Boolean,
|
|
293
|
-
default: !0
|
|
294
|
-
},
|
|
295
|
-
expandIcon: { default: "i-lucide-chevron-right" },
|
|
296
|
-
collapseIcon: { default: "i-lucide-chevron-right" },
|
|
297
|
-
toggleIconRotate: {
|
|
298
|
-
type: Boolean,
|
|
299
|
-
default: !0
|
|
300
|
-
},
|
|
301
|
-
branchLine: {
|
|
302
|
-
type: Boolean,
|
|
303
|
-
default: !1
|
|
304
|
-
},
|
|
305
|
-
branchLineColor: {
|
|
306
|
-
type: [String, Function],
|
|
307
|
-
default: void 0
|
|
308
|
-
},
|
|
309
|
-
branchLineActiveColor: {
|
|
310
|
-
type: [String, Function],
|
|
311
|
-
default: void 0
|
|
312
|
-
},
|
|
313
|
-
rowClass: {
|
|
314
|
-
type: [
|
|
315
|
-
Boolean,
|
|
316
|
-
null,
|
|
317
|
-
String,
|
|
318
|
-
Object,
|
|
319
|
-
Array,
|
|
320
|
-
Function
|
|
321
|
-
],
|
|
322
|
-
default: void 0
|
|
323
|
-
},
|
|
324
|
-
dragHandleClass: {
|
|
325
|
-
type: [
|
|
326
|
-
Boolean,
|
|
327
|
-
null,
|
|
328
|
-
String,
|
|
329
|
-
Object,
|
|
330
|
-
Array,
|
|
331
|
-
Function
|
|
332
|
-
],
|
|
333
|
-
default: void 0
|
|
334
|
-
},
|
|
335
|
-
toggleClass: {
|
|
336
|
-
type: [
|
|
337
|
-
Boolean,
|
|
338
|
-
null,
|
|
339
|
-
String,
|
|
340
|
-
Object,
|
|
341
|
-
Array,
|
|
342
|
-
Function
|
|
343
|
-
],
|
|
344
|
-
default: void 0
|
|
345
|
-
},
|
|
346
|
-
toggleIconClass: {
|
|
347
|
-
type: [
|
|
348
|
-
Boolean,
|
|
349
|
-
null,
|
|
350
|
-
String,
|
|
351
|
-
Object,
|
|
352
|
-
Array,
|
|
353
|
-
Function
|
|
354
|
-
],
|
|
355
|
-
default: void 0
|
|
356
|
-
},
|
|
357
|
-
toggleSpacerClass: {
|
|
358
|
-
type: [
|
|
359
|
-
Boolean,
|
|
360
|
-
null,
|
|
361
|
-
String,
|
|
362
|
-
Object,
|
|
363
|
-
Array,
|
|
364
|
-
Function
|
|
365
|
-
],
|
|
366
|
-
default: void 0
|
|
367
|
-
},
|
|
368
|
-
contentClass: {
|
|
369
|
-
type: [
|
|
370
|
-
Boolean,
|
|
371
|
-
null,
|
|
372
|
-
String,
|
|
373
|
-
Object,
|
|
374
|
-
Array,
|
|
375
|
-
Function
|
|
376
|
-
],
|
|
377
|
-
default: void 0
|
|
378
|
-
},
|
|
379
|
-
dragLabel: { default: "Drag" },
|
|
380
|
-
expandLabel: { default: "Expand" },
|
|
381
|
-
collapseLabel: { default: "Collapse" },
|
|
382
|
-
draggable: {
|
|
383
|
-
type: Boolean,
|
|
384
|
-
default: !1
|
|
385
|
-
},
|
|
386
|
-
dragHandleIcon: { default: "i-lucide-grip-vertical" },
|
|
387
|
-
allowDrop: {},
|
|
388
|
-
allowDrag: {},
|
|
389
|
-
internalRows: { default: void 0 },
|
|
390
|
-
internalNested: {
|
|
391
|
-
type: Boolean,
|
|
392
|
-
default: !1
|
|
393
|
-
},
|
|
394
|
-
internalStore: { default: void 0 },
|
|
395
|
-
internalInteractionContext: {}
|
|
396
|
-
},
|
|
397
|
-
emits: [
|
|
398
|
-
"nodeClick",
|
|
399
|
-
"nodeExpand",
|
|
400
|
-
"nodeCollapse",
|
|
401
|
-
"nodeDrop"
|
|
402
|
-
],
|
|
403
|
-
setup(e, { expose: s, emit: f }) {
|
|
404
|
-
let g = e, v = f, b = D(g), C = g.internalStore ?? k({
|
|
405
|
-
adapter: b,
|
|
406
|
-
data: () => g.data,
|
|
407
|
-
defaultExpandedKeys: () => g.defaultExpandedKeys,
|
|
408
|
-
filterNodeMethod: () => g.filterNodeMethod
|
|
409
|
-
}), w = g.internalInteractionContext ?? O(g, {
|
|
410
|
-
emitNodeClick: (e, t) => v("nodeClick", e, t),
|
|
411
|
-
emitNodeExpand: (e, t) => v("nodeExpand", e, t),
|
|
412
|
-
emitNodeCollapse: (e, t) => v("nodeCollapse", e, t),
|
|
413
|
-
emitNodeDrop: (e, t, n) => v("nodeDrop", e, t, n)
|
|
414
|
-
}), T = g, E = C.currentKey, R = w.hoveredKey, z = w.dropTarget, B = n(() => {
|
|
415
|
-
if (g.internalRows) return g.internalRows;
|
|
416
|
-
let { roots: e } = C.treeModel.value, { isActive: t, subtreeHasMatch: n, matchedKeys: r, autoExpandKeys: i } = C.filterInfo.value, a = (e) => {
|
|
417
|
-
let o = [];
|
|
418
|
-
for (let s of e) {
|
|
419
|
-
if (t && !n.get(s.key)) continue;
|
|
420
|
-
let e = s.childNodes.length === 0, c = r.has(s.key), l = C.isExpandedKey(s.key) || t && i.has(s.key);
|
|
421
|
-
o.push({
|
|
422
|
-
node: s,
|
|
423
|
-
isExpanded: l,
|
|
424
|
-
isLeaf: e,
|
|
425
|
-
isMatched: c,
|
|
426
|
-
children: l ? a(s.childNodes) : []
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
return o;
|
|
430
|
-
};
|
|
431
|
-
return a(e);
|
|
432
|
-
});
|
|
433
|
-
function V(e) {
|
|
434
|
-
C.setCurrentKey(e.key), w.emitNodeClick(e.data, e);
|
|
435
|
-
}
|
|
436
|
-
function H(e) {
|
|
437
|
-
R.value = e.key;
|
|
438
|
-
}
|
|
439
|
-
function U(e) {
|
|
440
|
-
R.value === e.key && (R.value = void 0);
|
|
441
|
-
}
|
|
442
|
-
function W(e) {
|
|
443
|
-
let t = !C.isExpandedKey(e.key);
|
|
444
|
-
C.toggleExpand(e), t ? w.emitNodeExpand(e.data, e) : w.emitNodeCollapse(e.data, e);
|
|
445
|
-
}
|
|
446
|
-
function G(e) {
|
|
447
|
-
return w.canDrag(e);
|
|
448
|
-
}
|
|
449
|
-
function K(e) {
|
|
450
|
-
return G(e) && R.value === e.key;
|
|
451
|
-
}
|
|
452
|
-
function q(e, t) {
|
|
453
|
-
let n = t.getBoundingClientRect(), r = e.clientY - n.top, i = n.height / 3;
|
|
454
|
-
return r < i ? "prev" : r > i * 2 ? "next" : "inner";
|
|
455
|
-
}
|
|
456
|
-
function J(e, t, n) {
|
|
457
|
-
return w.canDrop(e, t, n);
|
|
458
|
-
}
|
|
459
|
-
function Y(e, t) {
|
|
460
|
-
if (!G(t)) {
|
|
461
|
-
e.preventDefault();
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
w.draggingNode.value = t, w.dropTarget.value = null;
|
|
465
|
-
try {
|
|
466
|
-
e.dataTransfer?.setData("text/plain", String(t.key));
|
|
467
|
-
} catch {}
|
|
468
|
-
e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
469
|
-
}
|
|
470
|
-
function X() {
|
|
471
|
-
w.resetDragState();
|
|
472
|
-
}
|
|
473
|
-
function Z(e, t, n) {
|
|
474
|
-
let r = w.draggingNode.value;
|
|
475
|
-
if (!T.draggable || !r) return;
|
|
476
|
-
e.preventDefault();
|
|
477
|
-
let i = q(e, n), a = C.canMoveNode(r, t, i) && J(r, t, i);
|
|
478
|
-
w.dropTarget.value = {
|
|
479
|
-
key: t.key,
|
|
480
|
-
type: i,
|
|
481
|
-
allowed: a
|
|
482
|
-
}, e.dataTransfer && (e.dataTransfer.dropEffect = a ? "move" : "none");
|
|
483
|
-
}
|
|
484
|
-
function ee(e, t) {
|
|
485
|
-
let n = w.draggingNode.value, r = w.dropTarget.value;
|
|
486
|
-
if (!(!T.draggable || !n || !r)) {
|
|
487
|
-
if (e.preventDefault(), r.key === t.key && r.allowed) {
|
|
488
|
-
let e = C.moveNode(n, t, r.type);
|
|
489
|
-
if (e) {
|
|
490
|
-
let n = C.getNode(t.key) ?? t;
|
|
491
|
-
w.emitNodeDrop(e, n, r.type);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
w.resetDragState();
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
function te(e) {
|
|
498
|
-
C.filter(e);
|
|
499
|
-
}
|
|
500
|
-
function Q(e, t) {
|
|
501
|
-
if (e) return typeof e == "function" ? e(t) : e;
|
|
502
|
-
}
|
|
503
|
-
function $(e, t) {
|
|
504
|
-
if (e) return typeof e == "function" ? e(t) ?? void 0 : e;
|
|
505
|
-
}
|
|
506
|
-
function ne(e) {
|
|
507
|
-
let t = E.value;
|
|
508
|
-
return t == null ? !1 : e.key === t ? !0 : e.childNodes.some((e) => e.key === t && !C.isExpandedKey(e.key));
|
|
509
|
-
}
|
|
510
|
-
function re(e) {
|
|
511
|
-
let t = $(T.branchLineColor, e) ?? L;
|
|
512
|
-
return ne(e) ? $(T.branchLineActiveColor, e) ?? t : t;
|
|
513
|
-
}
|
|
514
|
-
function ie(e) {
|
|
515
|
-
return T.branchLine ? { "--ds-tree-branch-line-color": re(e.node) } : {};
|
|
516
|
-
}
|
|
517
|
-
return s({
|
|
518
|
-
appendNode: C.appendNode,
|
|
519
|
-
filter: te,
|
|
520
|
-
getCurrentNode: C.getCurrentNode,
|
|
521
|
-
setCurrentKey: C.setCurrentKey,
|
|
522
|
-
getCurrentKey: C.getCurrentKey,
|
|
523
|
-
getNode: C.getNode,
|
|
524
|
-
insertNodeAfter: C.insertNodeAfter,
|
|
525
|
-
insertNodeBefore: C.insertNodeBefore,
|
|
526
|
-
removeNode: C.removeNode,
|
|
527
|
-
setCurrentNode: C.setCurrentNode
|
|
528
|
-
}), (e, n) => {
|
|
529
|
-
let s = h("GrTree", !0);
|
|
530
|
-
return d(), i("div", {
|
|
531
|
-
"data-ds-tree": g.internalNested ? void 0 : "",
|
|
532
|
-
class: l(g.internalNested ? "ds-tree__children" : "ds-tree"),
|
|
533
|
-
role: g.internalNested ? "group" : "tree"
|
|
534
|
-
}, [(d(!0), i(t, null, p(B.value, (t) => (d(), i("div", {
|
|
535
|
-
key: t.node.key,
|
|
536
|
-
"data-ds-tree-node": "",
|
|
537
|
-
role: "treeitem",
|
|
538
|
-
"aria-level": t.node.level,
|
|
539
|
-
"aria-expanded": t.isLeaf ? void 0 : t.isExpanded
|
|
540
|
-
}, [a("div", {
|
|
541
|
-
"data-ds-tree-row": "",
|
|
542
|
-
class: l(["ds-tree__row py-2 px-2", [
|
|
543
|
-
y(T).highlightCurrent && y(E) === t.node.key ? "ds-tree__row--current" : "",
|
|
544
|
-
t.isMatched ? "ds-tree__row--matched" : "",
|
|
545
|
-
y(z)?.key === t.node.key && y(z).allowed && y(z).type === "inner" ? "ds-tree__row--drop-inner" : "",
|
|
546
|
-
y(z)?.key === t.node.key && y(z).allowed && y(z).type === "prev" ? "ds-tree__row--drop-prev" : "",
|
|
547
|
-
y(z)?.key === t.node.key && y(z).allowed && y(z).type === "next" ? "ds-tree__row--drop-next" : "",
|
|
548
|
-
Q(y(T).rowClass, t)
|
|
549
|
-
]]),
|
|
550
|
-
tabindex: "0",
|
|
551
|
-
onClick: (e) => V(t.node),
|
|
552
|
-
onDrop: (e) => ee(e, t.node),
|
|
553
|
-
onDragover: (e) => Z(e, t.node, e.currentTarget),
|
|
554
|
-
onMouseenter: (e) => H(t.node),
|
|
555
|
-
onMouseleave: (e) => U(t.node)
|
|
556
|
-
}, [
|
|
557
|
-
y(T).draggable ? (d(), i("button", {
|
|
558
|
-
key: 0,
|
|
559
|
-
type: "button",
|
|
560
|
-
"data-ds-tree-drag-handle": "",
|
|
561
|
-
class: l(["ds-tree__drag-handle", [
|
|
562
|
-
K(t.node) ? "ds-tree__drag-handle--visible" : "",
|
|
563
|
-
G(t.node) ? "" : "ds-tree__drag-handle--disabled",
|
|
564
|
-
Q(y(T).dragHandleClass, t)
|
|
565
|
-
]]),
|
|
566
|
-
"aria-label": y(T).dragLabel,
|
|
567
|
-
draggable: G(t.node),
|
|
568
|
-
onClick: n[0] ||= S(() => {}, ["stop"]),
|
|
569
|
-
onMousedown: n[1] ||= S(() => {}, ["stop"]),
|
|
570
|
-
onDragstart: (e) => Y(e, t.node),
|
|
571
|
-
onDragend: X
|
|
572
|
-
}, [a("span", { class: l(["ds-tree__drag-icon", y(T).dragHandleIcon]) }, null, 2)], 42, N)) : r("", !0),
|
|
573
|
-
t.isLeaf ? (d(), i("span", {
|
|
574
|
-
key: 2,
|
|
575
|
-
class: l(["ds-tree__toggle-spacer", Q(y(T).toggleSpacerClass, t)])
|
|
576
|
-
}, null, 2)) : (d(), i("button", {
|
|
577
|
-
key: 1,
|
|
578
|
-
"data-ds-tree-toggle": "",
|
|
579
|
-
type: "button",
|
|
580
|
-
class: l(["ds-tree__toggle", Q(y(T).toggleClass, t)]),
|
|
581
|
-
"aria-label": t.isExpanded ? y(T).collapseLabel : y(T).expandLabel,
|
|
582
|
-
onClick: S((e) => W(t.node), ["stop"])
|
|
583
|
-
}, [a("span", { class: l(["ds-tree__toggle-icon", [
|
|
584
|
-
t.isExpanded ? y(T).collapseIcon : y(T).expandIcon,
|
|
585
|
-
t.isExpanded && y(T).toggleIconRotate ? "ds-tree__toggle-icon--expanded" : "",
|
|
586
|
-
Q(y(T).toggleIconClass, t)
|
|
587
|
-
]]) }, null, 2)], 10, P)),
|
|
588
|
-
a("div", { class: l(["ds-tree__content", Q(y(T).contentClass, t)]) }, [m(e.$slots, "default", {
|
|
589
|
-
node: t.node,
|
|
590
|
-
data: t.node.data
|
|
591
|
-
}, () => [a("span", F, _(t.node.label), 1)], !0)], 2)
|
|
592
|
-
], 42, M), t.children.length ? (d(), i("div", {
|
|
593
|
-
key: 0,
|
|
594
|
-
class: l(["ds-tree__children-wrap ml-6", y(T).branchLine ? "ds-tree__children-wrap--with-branch" : ""]),
|
|
595
|
-
style: u(ie(t))
|
|
596
|
-
}, [o(s, c({ ref_for: !0 }, g, {
|
|
597
|
-
data: [],
|
|
598
|
-
"internal-rows": t.children,
|
|
599
|
-
"internal-nested": "",
|
|
600
|
-
"internal-store": y(C),
|
|
601
|
-
"internal-interaction-context": y(w)
|
|
602
|
-
}), {
|
|
603
|
-
default: x((t) => [m(e.$slots, "default", c({ ref_for: !0 }, t), () => [a("span", I, _(t.node.label), 1)], !0)]),
|
|
604
|
-
_: 3
|
|
605
|
-
}, 16, [
|
|
606
|
-
"internal-rows",
|
|
607
|
-
"internal-store",
|
|
608
|
-
"internal-interaction-context"
|
|
609
|
-
])], 6)) : r("", !0)], 8, j))), 128))], 10, A);
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
}), [["__scopeId", "data-v-0d01877b"]]);
|
|
613
|
-
//#endregion
|
|
614
|
-
export { R as t };
|