@feugene/granularity 0.4.0 → 0.4.2
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-K6zZTzBi.js +4 -0
- package/dist/chunks/adapter-K6zZTzBi.js.map +1 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js +23 -0
- package/dist/chunks/arrow-up-DNXrMoAI.js.map +1 -0
- package/dist/chunks/classTokens-BPeBXNzu.js +6 -0
- package/dist/chunks/classTokens-BPeBXNzu.js.map +1 -0
- package/dist/chunks/config-1I95Zy4V.js +14 -0
- package/dist/chunks/config-1I95Zy4V.js.map +1 -0
- package/dist/chunks/config-2wgwWaAB.js +8 -0
- package/dist/chunks/config-2wgwWaAB.js.map +1 -0
- package/dist/chunks/config-BA0BWYzs.js +8 -0
- package/dist/chunks/config-BA0BWYzs.js.map +1 -0
- package/dist/chunks/config-BCPyma1I.js +8 -0
- package/dist/chunks/config-BCPyma1I.js.map +1 -0
- package/dist/chunks/config-BDlh6iNz.js +24 -0
- package/dist/chunks/config-BDlh6iNz.js.map +1 -0
- package/dist/chunks/config-BKRmlivc.js +8 -0
- package/dist/chunks/config-BKRmlivc.js.map +1 -0
- package/dist/chunks/config-BN-B2K4r.js +17 -0
- package/dist/chunks/config-BN-B2K4r.js.map +1 -0
- package/dist/chunks/config-BNOf_qjD.js +40 -0
- package/dist/chunks/config-BNOf_qjD.js.map +1 -0
- package/dist/chunks/config-BaMO9dQh.js +20 -0
- package/dist/chunks/config-BaMO9dQh.js.map +1 -0
- package/dist/chunks/config-Bv2G0OU6.js +8 -0
- package/dist/chunks/config-Bv2G0OU6.js.map +1 -0
- package/dist/chunks/config-BvuQUBtZ.js +21 -0
- package/dist/chunks/config-BvuQUBtZ.js.map +1 -0
- package/dist/chunks/config-BzZGpWsj.js +9 -0
- package/dist/chunks/config-BzZGpWsj.js.map +1 -0
- package/dist/chunks/config-C0j836dC.js +8 -0
- package/dist/chunks/config-C0j836dC.js.map +1 -0
- package/dist/chunks/config-C2iI7_QX.js +9 -0
- package/dist/chunks/config-C2iI7_QX.js.map +1 -0
- package/dist/chunks/config-C4AlNm912.js +13 -0
- package/dist/chunks/config-C4AlNm912.js.map +1 -0
- package/dist/chunks/config-C5SJXHQ4.js +9 -0
- package/dist/chunks/config-C5SJXHQ4.js.map +1 -0
- package/dist/chunks/config-C6SBJxcH.js +8 -0
- package/dist/chunks/config-C6SBJxcH.js.map +1 -0
- package/dist/chunks/config-CByfsV-z2.js +9 -0
- package/dist/chunks/config-CByfsV-z2.js.map +1 -0
- package/dist/chunks/config-CM7nbATU2.js +78 -0
- package/dist/chunks/config-CM7nbATU2.js.map +1 -0
- package/dist/chunks/config-CMZE2fu0.js +9 -0
- package/dist/chunks/config-CMZE2fu0.js.map +1 -0
- package/dist/chunks/config-CU_CBd0k.js +22 -0
- package/dist/chunks/config-CU_CBd0k.js.map +1 -0
- package/dist/chunks/config-CUgvsjZx.js +171 -0
- package/dist/chunks/config-CUgvsjZx.js.map +1 -0
- package/dist/chunks/config-CWvHiaqr2.js +23 -0
- package/dist/chunks/config-CWvHiaqr2.js.map +1 -0
- package/dist/chunks/config-Cf0J6wCX.js +58 -0
- package/dist/chunks/config-Cf0J6wCX.js.map +1 -0
- package/dist/chunks/config-CgAY2WP9.js +9 -0
- package/dist/chunks/config-CgAY2WP9.js.map +1 -0
- package/dist/chunks/config-Cgc-D1K4.js +9 -0
- package/dist/chunks/config-Cgc-D1K4.js.map +1 -0
- package/dist/chunks/config-D19pyP4D.js +35 -0
- package/dist/chunks/config-D19pyP4D.js.map +1 -0
- package/dist/chunks/config-DCQO6H6h.js +11 -0
- package/dist/chunks/config-DCQO6H6h.js.map +1 -0
- package/dist/chunks/config-DEv4m-ZP.js +58 -0
- package/dist/chunks/config-DEv4m-ZP.js.map +1 -0
- package/dist/chunks/config-DFRYOcrP.js +9 -0
- package/dist/chunks/config-DFRYOcrP.js.map +1 -0
- package/dist/chunks/config-DTpwUHgF.js +9 -0
- package/dist/chunks/config-DTpwUHgF.js.map +1 -0
- package/dist/chunks/config-DW_RqmUp.js +8 -0
- package/dist/chunks/config-DW_RqmUp.js.map +1 -0
- package/dist/chunks/config-Da90XGsi.js +38 -0
- package/dist/chunks/config-Da90XGsi.js.map +1 -0
- package/dist/chunks/config-DgRJlF00.js +53 -0
- package/dist/chunks/config-DgRJlF00.js.map +1 -0
- package/dist/chunks/config-Dkq0HeLe.js +9 -0
- package/dist/chunks/config-Dkq0HeLe.js.map +1 -0
- package/dist/chunks/config-DmI1IQvI2.js +8 -0
- package/dist/chunks/config-DmI1IQvI2.js.map +1 -0
- package/dist/chunks/config-Dnu4VuO0.js +8 -0
- package/dist/chunks/config-Dnu4VuO0.js.map +1 -0
- package/dist/chunks/config-DxqpV-KM.js +45 -0
- package/dist/chunks/config-DxqpV-KM.js.map +1 -0
- package/dist/chunks/config-TyzU6gLf.js +8 -0
- package/dist/chunks/config-TyzU6gLf.js.map +1 -0
- package/dist/chunks/config-XwI6t8cn.js +39 -0
- package/dist/chunks/config-XwI6t8cn.js.map +1 -0
- package/dist/chunks/config-bpQYM5O-.js +44 -0
- package/dist/chunks/config-bpQYM5O-.js.map +1 -0
- package/dist/chunks/config-etXh7Bsr2.js +9 -0
- package/dist/chunks/config-etXh7Bsr2.js.map +1 -0
- package/dist/chunks/config-fCcRwjIB.js +13 -0
- package/dist/chunks/config-fCcRwjIB.js.map +1 -0
- package/dist/chunks/config-nfOMJXVs.js +9 -0
- package/dist/chunks/config-nfOMJXVs.js.map +1 -0
- package/dist/chunks/config-qJXIIY1E.js +8 -0
- package/dist/chunks/config-qJXIIY1E.js.map +1 -0
- package/dist/chunks/config-r6hzn2Bn2.js +9 -0
- package/dist/chunks/config-r6hzn2Bn2.js.map +1 -0
- package/dist/chunks/config-rQlbnEKn.js +8 -0
- package/dist/chunks/config-rQlbnEKn.js.map +1 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js +32 -0
- package/dist/chunks/dialogShared-BtXUk6Zc.js.map +1 -0
- package/dist/chunks/en-BeJa78lP.js +48 -0
- package/dist/chunks/en-BeJa78lP.js.map +1 -0
- package/dist/chunks/es-BPqm7rLm.js +20 -0
- package/dist/chunks/es-BPqm7rLm.js.map +1 -0
- package/dist/chunks/es-axYOwwWD.js +48 -0
- package/dist/chunks/es-axYOwwWD.js.map +1 -0
- package/dist/chunks/fileValidation-CwJA8Vmn.js +219 -0
- package/dist/chunks/fileValidation-CwJA8Vmn.js.map +1 -0
- package/dist/chunks/{grBadgeStyles-Bu4H8bFc.js → grBadgeStyles-pqqbVgLk.js} +18 -13
- package/dist/chunks/grBadgeStyles-pqqbVgLk.js.map +1 -0
- package/dist/chunks/{grButtonStyles-C5k0bN2e.js → grButtonStyles-BxZW2x0-.js} +60 -52
- package/dist/chunks/grButtonStyles-BxZW2x0-.js.map +1 -0
- package/dist/chunks/{grDropdownStyles-149X1NeB.js → grDropdownStyles-DMp7RrI9.js} +10 -9
- package/dist/chunks/grDropdownStyles-DMp7RrI9.js.map +1 -0
- package/dist/chunks/grLoadingStyles-CrxZHFL0.js +17 -0
- package/dist/chunks/grLoadingStyles-CrxZHFL0.js.map +1 -0
- package/dist/chunks/{grModalStyles-Dmd4havY.js → grModalStyles-Dv2NXBKi.js} +20 -11
- package/dist/chunks/grModalStyles-Dv2NXBKi.js.map +1 -0
- package/dist/chunks/grSelectStyles-B7doeAQp.js +50 -0
- package/dist/chunks/grSelectStyles-B7doeAQp.js.map +1 -0
- package/dist/chunks/granularityI18n-GCqUz_lo.js +26 -0
- package/dist/chunks/granularityI18n-GCqUz_lo.js.map +1 -0
- package/dist/chunks/info-C0bHmdZq.js +26 -0
- package/dist/chunks/info-C0bHmdZq.js.map +1 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js +23 -0
- package/dist/chunks/loader-circle-B2rWDk5u.js.map +1 -0
- package/dist/chunks/ru-Dqh-2C00.js +48 -0
- package/dist/chunks/ru-Dqh-2C00.js.map +1 -0
- package/dist/chunks/safelist-BF822K15.js +13 -0
- package/dist/chunks/safelist-BF822K15.js.map +1 -0
- package/dist/chunks/safelist-BY7z8fOl.js +24 -0
- package/dist/chunks/safelist-BY7z8fOl.js.map +1 -0
- package/dist/chunks/{shared-BqUqjuxn.js → shared-Cu5QkNmt.js} +149 -111
- package/dist/chunks/shared-Cu5QkNmt.js.map +1 -0
- package/dist/chunks/transition-mJ3PZCHH.js +1692 -0
- package/dist/chunks/transition-mJ3PZCHH.js.map +1 -0
- package/dist/chunks/x-Pa6C2hwi.js +23 -0
- package/dist/chunks/x-Pa6C2hwi.js.map +1 -0
- package/dist/chunks/x-circle-DQSlBLmX.js +67 -0
- package/dist/chunks/x-circle-DQSlBLmX.js.map +1 -0
- package/dist/components/GrAlert/chunks/GrAlert-BjerGcU8.js +146 -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 +41 -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 +32 -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 +33 -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 +31 -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 +83 -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 +21 -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 +11 -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 +134 -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 +205 -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 +131 -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 +179 -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 +221 -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 +156 -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-BkACCXdp.js +151 -0
- package/dist/components/GrDropdown/chunks/GrDropdown-BkACCXdp.js.map +1 -0
- package/dist/components/GrDropdown/index.js +3 -3
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BEenXrJw.js +309 -0
- package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-BEenXrJw.js.map +1 -0
- package/dist/components/GrDropdownMenu/index.js +3 -3
- package/dist/components/GrEmptyState/chunks/GrEmptyState-BLbMJFW-.js +62 -0
- package/dist/components/GrEmptyState/chunks/GrEmptyState-BLbMJFW-.js.map +1 -0
- package/dist/components/GrEmptyState/index.js +3 -3
- package/dist/components/GrFileUpload/chunks/GrFileUpload-u01j9S0t.js +368 -0
- package/dist/components/GrFileUpload/chunks/GrFileUpload-u01j9S0t.js.map +1 -0
- package/dist/components/GrFileUpload/index.js +4 -4
- package/dist/components/GrFormField/chunks/GrFormField-C6PfAs4u.js +35 -0
- package/dist/components/GrFormField/chunks/GrFormField-C6PfAs4u.js.map +1 -0
- package/dist/components/GrFormField/index.js +3 -3
- package/dist/components/GrFormFile/chunks/GrFormFile-DdM8Bc2B.js +313 -0
- package/dist/components/GrFormFile/chunks/GrFormFile-DdM8Bc2B.js.map +1 -0
- package/dist/components/GrFormFile/index.js +3 -3
- package/dist/components/GrFormSection/chunks/GrFormSection-5djEaQZQ.js +35 -0
- package/dist/components/GrFormSection/chunks/GrFormSection-5djEaQZQ.js.map +1 -0
- package/dist/components/GrFormSection/index.js +3 -3
- package/dist/components/GrIcon/chunks/GrIcon-BV7RBU_0.js +32 -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-CjSnohW7.js +397 -0
- package/dist/components/GrImageViewer/chunks/GrImageViewer-CjSnohW7.js.map +1 -0
- package/dist/components/GrImageViewer/index.js +3 -3
- package/dist/components/GrInput/chunks/GrInput-ghxaTf6d.js +211 -0
- package/dist/components/GrInput/chunks/GrInput-ghxaTf6d.js.map +1 -0
- package/dist/components/GrInput/index.js +3 -3
- package/dist/components/GrInputTag/chunks/GrInputTag-B0x4U0Yk.js +257 -0
- package/dist/components/GrInputTag/chunks/GrInputTag-B0x4U0Yk.js.map +1 -0
- package/dist/components/GrInputTag/index.js +3 -3
- package/dist/components/GrLink/chunks/GrLink-C7-Y1u88.js +80 -0
- package/dist/components/GrLink/chunks/GrLink-C7-Y1u88.js.map +1 -0
- package/dist/components/GrLink/index.js +3 -3
- package/dist/components/GrList/chunks/GrList--Ib4zLNw.js +77 -0
- package/dist/components/GrList/chunks/GrList--Ib4zLNw.js.map +1 -0
- package/dist/components/GrList/index.js +3 -3
- package/dist/components/GrLoading/chunks/GrLoading-C3QZKwE-.js +69 -0
- package/dist/components/GrLoading/chunks/GrLoading-C3QZKwE-.js.map +1 -0
- package/dist/components/GrLoading/index.js +3 -3
- package/dist/components/GrModal/chunks/GrModal-gvfvlp7k.js +168 -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-nIyuiVj1.js +75 -0
- package/dist/components/GrNavbar/chunks/GrNavbar-nIyuiVj1.js.map +1 -0
- package/dist/components/GrNavbar/index.js +3 -3
- package/dist/components/GrNumberInput/chunks/GrNumberInput-B0mPLjdv.js +397 -0
- package/dist/components/GrNumberInput/chunks/GrNumberInput-B0mPLjdv.js.map +1 -0
- package/dist/components/GrNumberInput/index.js +3 -3
- package/dist/components/GrPagination/chunks/GrPagination-BSTO6flk.js +114 -0
- package/dist/components/GrPagination/chunks/GrPagination-BSTO6flk.js.map +1 -0
- package/dist/components/GrPagination/index.js +3 -3
- package/dist/components/GrProgressBar/chunks/GrProgressBar-MvMnzsJl.js +39 -0
- package/dist/components/GrProgressBar/chunks/GrProgressBar-MvMnzsJl.js.map +1 -0
- package/dist/components/GrProgressBar/index.js +3 -3
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DKhbN6ji.js +190 -0
- package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DKhbN6ji.js.map +1 -0
- package/dist/components/GrPromptDialog/index.js +3 -3
- package/dist/components/GrRadio/chunks/GrRadio-BxBs3WHq.js +184 -0
- package/dist/components/GrRadio/chunks/GrRadio-BxBs3WHq.js.map +1 -0
- package/dist/components/GrRadio/index.js +3 -3
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CEAfJQ6A.js +80 -0
- package/dist/components/GrRadioGroup/chunks/GrRadioGroup-CEAfJQ6A.js.map +1 -0
- package/dist/components/GrRadioGroup/index.js +3 -3
- package/dist/components/GrSegmented/chunks/GrSegmented-Bwn2qOY4.js +323 -0
- package/dist/components/GrSegmented/chunks/GrSegmented-Bwn2qOY4.js.map +1 -0
- package/dist/components/GrSegmented/index.js +3 -3
- package/dist/components/GrSelect/chunks/GrSelect-9wRWAu2R.js +443 -0
- package/dist/components/GrSelect/chunks/GrSelect-9wRWAu2R.js.map +1 -0
- package/dist/components/GrSelect/index.js +3 -3
- package/dist/components/GrSidebar/chunks/GrSidebar-CSZ3RpFB.js +44 -0
- package/dist/components/GrSidebar/chunks/GrSidebar-CSZ3RpFB.js.map +1 -0
- package/dist/components/GrSidebar/index.js +3 -3
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DKXkqWDa.js +33 -0
- package/dist/components/GrSkeleton/chunks/GrSkeleton-DKXkqWDa.js.map +1 -0
- package/dist/components/GrSkeleton/index.js +3 -3
- package/dist/components/GrSwitch/chunks/GrSwitch-CdBxwV3k.js +79 -0
- package/dist/components/GrSwitch/chunks/GrSwitch-CdBxwV3k.js.map +1 -0
- package/dist/components/GrSwitch/index.js +3 -3
- package/dist/components/GrTable/chunks/GrTable-CyQ9uw8A.js +57 -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-BpF8AAUz.js +118 -0
- package/dist/components/GrTabs/chunks/GrTabs-BpF8AAUz.js.map +1 -0
- package/dist/components/GrTabs/index.js +3 -3
- package/dist/components/GrTextarea/chunks/GrTextarea-DFS9ZkrA.js +71 -0
- package/dist/components/GrTextarea/chunks/GrTextarea-DFS9ZkrA.js.map +1 -0
- package/dist/components/GrTextarea/index.js +3 -3
- package/dist/components/GrToaster/chunks/GrToaster-3Mf0Moxt.js +171 -0
- package/dist/components/GrToaster/chunks/GrToaster-3Mf0Moxt.js.map +1 -0
- package/dist/components/GrToaster/index.js +3 -3
- package/dist/components/GrTooltip/chunks/GrTooltip-BvmsukLW.js +55 -0
- package/dist/components/GrTooltip/chunks/GrTooltip-BvmsukLW.js.map +1 -0
- package/dist/components/GrTooltip/index.js +3 -3
- package/dist/components/GrTree/chunks/GrTree-C2kN-O4Q.js +734 -0
- package/dist/components/GrTree/chunks/GrTree-C2kN-O4Q.js.map +1 -0
- package/dist/components/GrTree/index.js +3 -3
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-Da-CpRqm.js +454 -0
- package/dist/components/GrTreeSelect/chunks/GrTreeSelect-Da-CpRqm.js.map +1 -0
- package/dist/components/GrTreeSelect/index.js +3 -3
- package/dist/composables/useTheme.js +39 -30
- package/dist/composables/useTheme.js.map +1 -0
- package/dist/composables/useToast.js +41 -34
- package/dist/composables/useToast.js.map +1 -0
- 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 +7 -2
- package/dist/directives/loading.js +163 -0
- package/dist/directives/loading.js.map +1 -0
- package/dist/fileValidation/index.js +2 -2
- package/dist/granular-provider-node.js +23 -14
- package/dist/granular-provider-node.js.map +1 -0
- package/dist/granular-provider.js +3 -3
- package/dist/granular-provider.js.map +1 -0
- package/dist/i18n/all.js +6 -6
- package/dist/i18n/all.js.map +1 -0
- package/dist/i18n/index.js +3 -3
- package/dist/index.js +110 -105
- package/dist/vue/index.js +64 -26
- package/dist/vue/index.js.map +1 -0
- package/package.json +25 -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/grLoadingStyles-Bjo7ylmq.js +0 -15
- 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,233 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../../GrDropdown/chunks/GrDropdown-BELyRP4A.js";
|
|
2
|
-
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y, withCtx as b } from "vue";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/components/GrDropdownMenu/GrDropdownMenuList.vue
|
|
5
|
-
var x = /* @__PURE__ */ c({
|
|
6
|
-
__name: "GrDropdownMenuList",
|
|
7
|
-
props: {
|
|
8
|
-
dividers: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: !1
|
|
11
|
-
},
|
|
12
|
-
borderTop: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
default: !1
|
|
15
|
-
},
|
|
16
|
-
borderBottom: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(e) {
|
|
22
|
-
let n = e, r = t(() => [
|
|
23
|
-
"w-full",
|
|
24
|
-
n.dividers ? "divide-y divide-[var(--brd)]" : "",
|
|
25
|
-
n.borderTop ? "border-t border-[var(--brd)]" : "",
|
|
26
|
-
n.borderBottom ? "border-b border-[var(--brd)]" : ""
|
|
27
|
-
].filter(Boolean).join(" "));
|
|
28
|
-
return (e, t) => (p(), i("div", {
|
|
29
|
-
"data-ds-dropdown-menu-list": "",
|
|
30
|
-
class: d(r.value)
|
|
31
|
-
}, [m(e.$slots, "default")], 2));
|
|
32
|
-
}
|
|
33
|
-
}), S = /* @__PURE__ */ c({
|
|
34
|
-
__name: "GrDropdownMenu",
|
|
35
|
-
props: {
|
|
36
|
-
align: { default: "right" },
|
|
37
|
-
width: { default: "48" },
|
|
38
|
-
closeOnContentClick: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: !0
|
|
41
|
-
},
|
|
42
|
-
contentClass: { default: "p-0" },
|
|
43
|
-
dividers: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !1
|
|
46
|
-
},
|
|
47
|
-
borderTop: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
borderBottom: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !1
|
|
54
|
-
},
|
|
55
|
-
listClass: { default: "" }
|
|
56
|
-
},
|
|
57
|
-
setup(t) {
|
|
58
|
-
return (r, i) => (p(), n(e, {
|
|
59
|
-
"data-ds-dropdown-menu": "",
|
|
60
|
-
align: t.align,
|
|
61
|
-
width: t.width,
|
|
62
|
-
"close-on-content-click": t.closeOnContentClick,
|
|
63
|
-
"content-class": t.contentClass
|
|
64
|
-
}, {
|
|
65
|
-
trigger: b((e) => [m(r.$slots, "trigger", f(l(e)))]),
|
|
66
|
-
content: b((e) => [s(x, {
|
|
67
|
-
dividers: t.dividers,
|
|
68
|
-
"border-top": t.borderTop,
|
|
69
|
-
"border-bottom": t.borderBottom,
|
|
70
|
-
class: d(t.listClass)
|
|
71
|
-
}, {
|
|
72
|
-
default: b(() => [m(r.$slots, "default", f(l(e)))]),
|
|
73
|
-
_: 2
|
|
74
|
-
}, 1032, [
|
|
75
|
-
"dividers",
|
|
76
|
-
"border-top",
|
|
77
|
-
"border-bottom",
|
|
78
|
-
"class"
|
|
79
|
-
])]),
|
|
80
|
-
_: 3
|
|
81
|
-
}, 8, [
|
|
82
|
-
"align",
|
|
83
|
-
"width",
|
|
84
|
-
"close-on-content-click",
|
|
85
|
-
"content-class"
|
|
86
|
-
]));
|
|
87
|
-
}
|
|
88
|
-
}), C = /* @__PURE__ */ c({
|
|
89
|
-
__name: "GrDropdownMenuColumn",
|
|
90
|
-
props: { align: { default: "center" } },
|
|
91
|
-
setup(e) {
|
|
92
|
-
let t = {
|
|
93
|
-
left: "justify-start text-left",
|
|
94
|
-
center: "justify-center text-center",
|
|
95
|
-
right: "justify-end text-right"
|
|
96
|
-
};
|
|
97
|
-
return (n, r) => (p(), i("div", {
|
|
98
|
-
"data-ds-dropdown-menu-column": "",
|
|
99
|
-
class: d(["px-3 py-2 flex items-center", t[e.align]])
|
|
100
|
-
}, [m(n.$slots, "default")], 2));
|
|
101
|
-
}
|
|
102
|
-
}), w = /* @__PURE__ */ c({
|
|
103
|
-
__name: "GrDropdownMenuColumns",
|
|
104
|
-
props: { cols: { default: 2 } },
|
|
105
|
-
setup(e) {
|
|
106
|
-
let n = e, r = t(() => ({
|
|
107
|
-
2: "grid-cols-2",
|
|
108
|
-
3: "grid-cols-3",
|
|
109
|
-
4: "grid-cols-4"
|
|
110
|
-
})[n.cols]);
|
|
111
|
-
return (e, t) => (p(), i("div", {
|
|
112
|
-
"data-ds-dropdown-menu-columns": "",
|
|
113
|
-
class: d(["w-full grid divide-x divide-[var(--brd)]", r.value])
|
|
114
|
-
}, [m(e.$slots, "default")], 2));
|
|
115
|
-
}
|
|
116
|
-
}), T = /* @__PURE__ */ c({
|
|
117
|
-
__name: "GrDropdownMenuDivider",
|
|
118
|
-
props: { inset: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: !1
|
|
121
|
-
} },
|
|
122
|
-
setup(e) {
|
|
123
|
-
return (t, n) => (p(), i("div", {
|
|
124
|
-
"data-ds-dropdown-menu-divider": "",
|
|
125
|
-
role: "separator",
|
|
126
|
-
class: d(["border-t border-[var(--brd)]", e.inset ? "mx-2" : ""])
|
|
127
|
-
}, null, 2));
|
|
128
|
-
}
|
|
129
|
-
}), E = /* @__PURE__ */ c({
|
|
130
|
-
__name: "GrDropdownMenuHeader",
|
|
131
|
-
props: {
|
|
132
|
-
title: { default: void 0 },
|
|
133
|
-
align: { default: "left" },
|
|
134
|
-
uppercase: {
|
|
135
|
-
type: Boolean,
|
|
136
|
-
default: !0
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
setup(e) {
|
|
140
|
-
let n = e, a = y(), s = t(() => !!n.title || !!a.default), c = t(() => ({
|
|
141
|
-
left: "text-left",
|
|
142
|
-
center: "text-center",
|
|
143
|
-
right: "text-right"
|
|
144
|
-
})[n.align]);
|
|
145
|
-
return (t, n) => s.value ? (p(), i("div", {
|
|
146
|
-
key: 0,
|
|
147
|
-
"data-ds-dropdown-menu-header": "",
|
|
148
|
-
class: d(["px-4 py-2 text-[11px] tracking-wide text-[var(--muted-fg)]", [c.value, { uppercase: e.uppercase }]])
|
|
149
|
-
}, [m(t.$slots, "default", {}, () => [o(g(e.title), 1)])], 2)) : r("", !0);
|
|
150
|
-
}
|
|
151
|
-
}), D = {
|
|
152
|
-
"data-ds-dropdown-menu-group": "",
|
|
153
|
-
class: "w-full"
|
|
154
|
-
}, O = /* @__PURE__ */ c({
|
|
155
|
-
__name: "GrDropdownMenuGroup",
|
|
156
|
-
props: {
|
|
157
|
-
title: { default: void 0 },
|
|
158
|
-
titleAlign: { default: "left" },
|
|
159
|
-
dividers: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
default: !1
|
|
162
|
-
},
|
|
163
|
-
uppercase: {
|
|
164
|
-
type: Boolean,
|
|
165
|
-
default: !0
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
setup(e) {
|
|
169
|
-
let o = e, s = t(() => ["w-full", o.dividers ? "divide-y divide-[var(--brd)]" : ""].filter(Boolean).join(" "));
|
|
170
|
-
return (t, o) => (p(), i("div", D, [e.title ? (p(), n(E, {
|
|
171
|
-
key: 0,
|
|
172
|
-
title: e.title,
|
|
173
|
-
align: e.titleAlign,
|
|
174
|
-
uppercase: e.uppercase
|
|
175
|
-
}, null, 8, [
|
|
176
|
-
"title",
|
|
177
|
-
"align",
|
|
178
|
-
"uppercase"
|
|
179
|
-
])) : r("", !0), a("div", { class: d(s.value) }, [m(t.$slots, "default")], 2)]));
|
|
180
|
-
}
|
|
181
|
-
}), k = /* @__PURE__ */ c({
|
|
182
|
-
inheritAttrs: !1,
|
|
183
|
-
__name: "GrDropdownMenuItem",
|
|
184
|
-
props: {
|
|
185
|
-
as: { default: "button" },
|
|
186
|
-
disabled: {
|
|
187
|
-
type: Boolean,
|
|
188
|
-
default: !1
|
|
189
|
-
},
|
|
190
|
-
align: { default: "left" },
|
|
191
|
-
variant: { default: "default" }
|
|
192
|
-
},
|
|
193
|
-
setup(e) {
|
|
194
|
-
let r = e, i = v(), a = t(() => r.as === "button" || r.as === void 0), o = t(() => ({
|
|
195
|
-
left: "justify-start text-left",
|
|
196
|
-
center: "justify-center text-center",
|
|
197
|
-
right: "justify-end text-right"
|
|
198
|
-
})[r.align]), s = t(() => r.variant === "danger" ? "text-[var(--ds-danger)]" : "text-[var(--fg)]"), c = t(() => r.disabled ? "cursor-not-allowed opacity-60 pointer-events-none" : ""), l = t(() => r.disabled ? "" : "hover:bg-[var(--accent)] hover:text-[var(--accent-fg)]"), d = t(() => [
|
|
199
|
-
"w-full min-h-[40px] px-4 py-2.5",
|
|
200
|
-
"flex items-center gap-2",
|
|
201
|
-
"text-[13px]",
|
|
202
|
-
"transition-colors duration-150",
|
|
203
|
-
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
204
|
-
o.value,
|
|
205
|
-
s.value,
|
|
206
|
-
l.value,
|
|
207
|
-
c.value
|
|
208
|
-
].filter(Boolean).join(" "));
|
|
209
|
-
function f(e) {
|
|
210
|
-
r.disabled && (e.preventDefault(), e.stopPropagation());
|
|
211
|
-
}
|
|
212
|
-
return (t, r) => (p(), n(h(e.as), u(_(i), {
|
|
213
|
-
"data-ds-dropdown-menu-item": "",
|
|
214
|
-
class: d.value,
|
|
215
|
-
type: a.value ? _(i).type ?? "button" : void 0,
|
|
216
|
-
disabled: a.value ? e.disabled : void 0,
|
|
217
|
-
"aria-disabled": e.disabled ? "true" : void 0,
|
|
218
|
-
tabindex: e.disabled ? -1 : _(i).tabindex,
|
|
219
|
-
onClickCapture: f
|
|
220
|
-
}), {
|
|
221
|
-
default: b(() => [m(t.$slots, "default")]),
|
|
222
|
-
_: 3
|
|
223
|
-
}, 16, [
|
|
224
|
-
"class",
|
|
225
|
-
"type",
|
|
226
|
-
"disabled",
|
|
227
|
-
"aria-disabled",
|
|
228
|
-
"tabindex"
|
|
229
|
-
]));
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
//#endregion
|
|
233
|
-
export { w as a, x as c, T as i, O as n, C as o, E as r, S as s, k as t };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../../GrIcon/chunks/GrIcon-CXIHuG7L.js";
|
|
2
|
-
import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, markRaw as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, withCtx as d } from "vue";
|
|
3
|
-
//#region ~icons/lucide/inbox
|
|
4
|
-
var f = {
|
|
5
|
-
viewBox: "0 0 24 24",
|
|
6
|
-
width: "1.2em",
|
|
7
|
-
height: "1.2em"
|
|
8
|
-
};
|
|
9
|
-
function p(e, t) {
|
|
10
|
-
return s(), n("svg", f, [...t[0] ||= [r("g", {
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
"stroke-linecap": "round",
|
|
14
|
-
"stroke-linejoin": "round",
|
|
15
|
-
"stroke-width": "2"
|
|
16
|
-
}, [r("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }), r("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" })], -1)]]);
|
|
17
|
-
}
|
|
18
|
-
var m = o({
|
|
19
|
-
name: "lucide-inbox",
|
|
20
|
-
render: p
|
|
21
|
-
}), h = {
|
|
22
|
-
"data-ds-empty-state": "",
|
|
23
|
-
class: "rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)] p-6 text-center"
|
|
24
|
-
}, g = { class: "flex justify-center" }, _ = { class: "h-12 w-12 rounded-[12px] bg-[var(--muted)] border border-[var(--brd)] flex items-center justify-center text-[var(--muted-fg)]" }, v = { class: "mt-4 text-[14px] font-700" }, y = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "mt-1 text-[13px] text-[var(--muted-fg)]"
|
|
27
|
-
}, b = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "mt-4 flex justify-center"
|
|
30
|
-
}, x = /* @__PURE__ */ a({
|
|
31
|
-
__name: "GrEmptyState",
|
|
32
|
-
props: {
|
|
33
|
-
title: {},
|
|
34
|
-
description: { default: void 0 }
|
|
35
|
-
},
|
|
36
|
-
setup(a) {
|
|
37
|
-
return (o, f) => (s(), n("div", h, [
|
|
38
|
-
r("div", g, [r("div", _, [c(o.$slots, "icon", {}, () => [i(e, { size: 24 }, {
|
|
39
|
-
default: d(() => [i(u(m), { "aria-hidden": "true" })]),
|
|
40
|
-
_: 1
|
|
41
|
-
})])])]),
|
|
42
|
-
r("div", v, l(a.title), 1),
|
|
43
|
-
a.description ? (s(), n("div", y, l(a.description), 1)) : t("", !0),
|
|
44
|
-
o.$slots.default ? (s(), n("div", b, [c(o.$slots, "default")])) : t("", !0)
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
|
-
export { x as t };
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../../GrIcon/chunks/GrIcon-CXIHuG7L.js";
|
|
2
|
-
import { t } from "../../../chunks/arrow-up-Dv3dC3hu.js";
|
|
3
|
-
import { l as n, u as r } from "../../../chunks/fileValidation-LFD-vwil.js";
|
|
4
|
-
import { Comment as i, Fragment as a, Text as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as S, withCtx as C } from "vue";
|
|
5
|
-
//#region src/components/GrFileUpload/GrFileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var w = [
|
|
7
|
-
"role",
|
|
8
|
-
"tabindex",
|
|
9
|
-
"aria-disabled"
|
|
10
|
-
], T = [
|
|
11
|
-
"name",
|
|
12
|
-
"multiple",
|
|
13
|
-
"disabled"
|
|
14
|
-
], E = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "flex items-start gap-4"
|
|
17
|
-
}, ee = {
|
|
18
|
-
"data-ds-file-upload-icon": "",
|
|
19
|
-
class: "h-12 w-12 shrink-0 rounded-[12px] bg-[var(--muted)] border border-[var(--brd)] flex items-center justify-center",
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
}, D = { class: "min-w-0" }, O = {
|
|
22
|
-
"data-ds-file-upload-label": "",
|
|
23
|
-
class: "text-[14px] font-700"
|
|
24
|
-
}, k = {
|
|
25
|
-
key: 0,
|
|
26
|
-
"data-ds-file-upload-tip": "",
|
|
27
|
-
class: "mt-1 text-[13px] text-[var(--muted-fg)]"
|
|
28
|
-
}, te = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "mt-1 text-[13px] text-[var(--muted-fg)]"
|
|
31
|
-
}, ne = {
|
|
32
|
-
key: 2,
|
|
33
|
-
"data-ds-file-upload-list": "",
|
|
34
|
-
class: "mt-3 space-y-1"
|
|
35
|
-
}, A = { class: "font-600" }, j = { class: "text-[var(--muted-fg)]" }, M = /* @__PURE__ */ p({
|
|
36
|
-
__name: "GrFileUpload",
|
|
37
|
-
props: {
|
|
38
|
-
action: { default: void 0 },
|
|
39
|
-
request: {
|
|
40
|
-
type: Function,
|
|
41
|
-
default: void 0
|
|
42
|
-
},
|
|
43
|
-
name: { default: "file" },
|
|
44
|
-
multiple: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
limit: { default: void 0 },
|
|
49
|
-
onExceed: {
|
|
50
|
-
type: Function,
|
|
51
|
-
default: void 0
|
|
52
|
-
},
|
|
53
|
-
beforeUpload: {
|
|
54
|
-
type: Function,
|
|
55
|
-
default: void 0
|
|
56
|
-
},
|
|
57
|
-
validators: { default: void 0 },
|
|
58
|
-
disabled: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
62
|
-
headers: { default: void 0 },
|
|
63
|
-
withCredentials: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: !1
|
|
66
|
-
},
|
|
67
|
-
showFileList: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
71
|
-
uploadExtraData: {
|
|
72
|
-
type: Function,
|
|
73
|
-
default: void 0
|
|
74
|
-
},
|
|
75
|
-
placeholder: { default: "Drag files here or click to select" }
|
|
76
|
-
},
|
|
77
|
-
emits: [
|
|
78
|
-
"success",
|
|
79
|
-
"error",
|
|
80
|
-
"progress",
|
|
81
|
-
"change"
|
|
82
|
-
],
|
|
83
|
-
setup(p, { expose: M, emit: N }) {
|
|
84
|
-
let P = p, F = N, I = S();
|
|
85
|
-
function L(e) {
|
|
86
|
-
let t = [];
|
|
87
|
-
for (let n of e) {
|
|
88
|
-
if (n.type === a && Array.isArray(n.children)) {
|
|
89
|
-
t.push(...L(n.children));
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
t.push(n);
|
|
93
|
-
}
|
|
94
|
-
return t;
|
|
95
|
-
}
|
|
96
|
-
function R(e) {
|
|
97
|
-
return e.type === o ? typeof e.children == "string" && e.children.trim().length === 0 : !1;
|
|
98
|
-
}
|
|
99
|
-
function z(e) {
|
|
100
|
-
let t = L(e).filter((e) => e.type !== i && !R(e));
|
|
101
|
-
if (t.length === 0) return !0;
|
|
102
|
-
for (let e of t) if (e.type !== o) return !1;
|
|
103
|
-
return !0;
|
|
104
|
-
}
|
|
105
|
-
let B = s(() => I.default ? L(I.default({})) : []), V = s(() => !!I.default && !z(B.value)), H = _(null), U = _(!1), W = 0, G = _([]), K = null, q = s(() => P.disabled ? -1 : 0), J = {
|
|
106
|
-
position: "fixed",
|
|
107
|
-
top: "-9999px",
|
|
108
|
-
left: "-9999px",
|
|
109
|
-
width: "1px",
|
|
110
|
-
height: "1px",
|
|
111
|
-
opacity: "0",
|
|
112
|
-
overflow: "hidden",
|
|
113
|
-
pointerEvents: "none"
|
|
114
|
-
};
|
|
115
|
-
function Y(e) {
|
|
116
|
-
U.value !== e && (U.value = e);
|
|
117
|
-
}
|
|
118
|
-
function X() {
|
|
119
|
-
P.disabled || H.value?.click();
|
|
120
|
-
}
|
|
121
|
-
function Z() {
|
|
122
|
-
K?.abort(), K = null;
|
|
123
|
-
}
|
|
124
|
-
function re(e) {
|
|
125
|
-
if (typeof e == "number" && Number.isFinite(e) && !(e <= 0)) return Math.floor(e);
|
|
126
|
-
}
|
|
127
|
-
function ie(e, t) {
|
|
128
|
-
if (t) for (let [n, r] of Object.entries(t)) {
|
|
129
|
-
if (Array.isArray(r)) {
|
|
130
|
-
for (let t of r) e.append(n, t);
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
e.append(n, r);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
async function ae(e, t, n) {
|
|
137
|
-
if (!P.action) throw Error("GrFileUpload: either `action` or `request` must be provided");
|
|
138
|
-
let r = new FormData();
|
|
139
|
-
for (let t of e) r.append(P.name, t);
|
|
140
|
-
ie(r, n);
|
|
141
|
-
let i = await fetch(P.action, {
|
|
142
|
-
method: "POST",
|
|
143
|
-
headers: P.headers,
|
|
144
|
-
body: r,
|
|
145
|
-
signal: t,
|
|
146
|
-
credentials: P.withCredentials ? "include" : "same-origin"
|
|
147
|
-
}), a = i.headers.get("content-type")?.includes("application/json") ? await i.json() : await i.text();
|
|
148
|
-
if (!i.ok) {
|
|
149
|
-
let e = /* @__PURE__ */ Error(`Upload failed with status ${i.status}`);
|
|
150
|
-
throw e.payload = a, e.status = i.status, e;
|
|
151
|
-
}
|
|
152
|
-
return a;
|
|
153
|
-
}
|
|
154
|
-
async function oe(e) {
|
|
155
|
-
if (!P.beforeUpload) return "ok";
|
|
156
|
-
for (let t of e) try {
|
|
157
|
-
let e = P.beforeUpload(t);
|
|
158
|
-
if (e === !1) return {
|
|
159
|
-
aborted: !0,
|
|
160
|
-
reason: /* @__PURE__ */ Error("Upload aborted by beforeUpload")
|
|
161
|
-
};
|
|
162
|
-
e && typeof e.then == "function" && await e;
|
|
163
|
-
} catch (e) {
|
|
164
|
-
return {
|
|
165
|
-
aborted: !0,
|
|
166
|
-
reason: e
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
return "ok";
|
|
170
|
-
}
|
|
171
|
-
async function Q(e, t = "input") {
|
|
172
|
-
if (P.disabled || !e.length) return;
|
|
173
|
-
let i = re(P.limit);
|
|
174
|
-
if (P.multiple && i && e.length > i) {
|
|
175
|
-
P.onExceed?.(e, i), F("error", /* @__PURE__ */ Error(`Too many files selected, limit=${i}`));
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
let { files: a, issues: o } = await n(e, P.validators ?? [], {
|
|
179
|
-
source: t,
|
|
180
|
-
multiple: P.multiple
|
|
181
|
-
});
|
|
182
|
-
if (o.length > 0) {
|
|
183
|
-
F("error", new r(o, a));
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
if (!a.length) return;
|
|
187
|
-
G.value = a;
|
|
188
|
-
let s = await oe(a);
|
|
189
|
-
if (s !== "ok") {
|
|
190
|
-
F("error", s.reason);
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
let c;
|
|
194
|
-
try {
|
|
195
|
-
c = P.uploadExtraData?.(a);
|
|
196
|
-
} catch (e) {
|
|
197
|
-
F("error", e);
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
Z();
|
|
201
|
-
let l = new AbortController();
|
|
202
|
-
K = l, F("progress", 0);
|
|
203
|
-
try {
|
|
204
|
-
F("success", P.request ? await P.request(a, {
|
|
205
|
-
signal: l.signal,
|
|
206
|
-
extraData: c
|
|
207
|
-
}) : await ae(a, l.signal, c)), F("change", a), F("progress", 100);
|
|
208
|
-
} catch (e) {
|
|
209
|
-
F("error", e);
|
|
210
|
-
} finally {
|
|
211
|
-
K === l && (K = null);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
function $(e) {
|
|
215
|
-
V.value || P.disabled || (e.preventDefault(), W += 1, Y(!0));
|
|
216
|
-
}
|
|
217
|
-
function se(e) {
|
|
218
|
-
V.value || P.disabled || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"));
|
|
219
|
-
}
|
|
220
|
-
function ce(e) {
|
|
221
|
-
V.value || P.disabled || (e.preventDefault(), W = Math.max(0, W - 1), W === 0 && Y(!1));
|
|
222
|
-
}
|
|
223
|
-
function le(e) {
|
|
224
|
-
V.value || P.disabled || (e.preventDefault(), W = 0, Y(!1), Q(e.dataTransfer?.files ? Array.prototype.slice.call(e.dataTransfer.files) : [], "drop"));
|
|
225
|
-
}
|
|
226
|
-
async function ue(e) {
|
|
227
|
-
if (P.disabled) return;
|
|
228
|
-
let t = e.target, n = t?.files ? Array.prototype.slice.call(t.files) : [];
|
|
229
|
-
t && (t.value = ""), await m(), await Q(n, "input");
|
|
230
|
-
}
|
|
231
|
-
function de(e) {
|
|
232
|
-
V.value || P.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), X());
|
|
233
|
-
}
|
|
234
|
-
function fe() {
|
|
235
|
-
V.value || X();
|
|
236
|
-
}
|
|
237
|
-
function pe(e) {
|
|
238
|
-
V.value || de(e);
|
|
239
|
-
}
|
|
240
|
-
return M({
|
|
241
|
-
uploadFiles: Q,
|
|
242
|
-
abort: Z,
|
|
243
|
-
openDialog: X
|
|
244
|
-
}), (n, r) => (g(), l("div", {
|
|
245
|
-
"data-ds-file-upload": "",
|
|
246
|
-
role: V.value ? void 0 : "button",
|
|
247
|
-
tabindex: V.value ? void 0 : q.value,
|
|
248
|
-
"aria-disabled": V.value ? void 0 : p.disabled ? "true" : "false",
|
|
249
|
-
class: h(V.value ? "inline-block" : [
|
|
250
|
-
"relative w-full rounded-[var(--ds-radius-lg)] border border-dashed border-[var(--brd)] bg-[var(--card)] px-5 py-6 outline-none transition",
|
|
251
|
-
p.disabled ? "opacity-60 cursor-not-allowed" : "cursor-pointer hover:bg-[var(--muted)] focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--bg)]",
|
|
252
|
-
U.value && !p.disabled ? "border-[var(--ring)] bg-[var(--muted)]" : ""
|
|
253
|
-
]),
|
|
254
|
-
onClick: fe,
|
|
255
|
-
onKeydown: pe,
|
|
256
|
-
onDragenter: $,
|
|
257
|
-
onDragover: se,
|
|
258
|
-
onDragleave: ce,
|
|
259
|
-
onDrop: le
|
|
260
|
-
}, [u("input", {
|
|
261
|
-
ref_key: "inputRef",
|
|
262
|
-
ref: H,
|
|
263
|
-
"data-ds-file-upload-input": "",
|
|
264
|
-
style: J,
|
|
265
|
-
type: "file",
|
|
266
|
-
tabindex: "-1",
|
|
267
|
-
"aria-hidden": "true",
|
|
268
|
-
name: p.name,
|
|
269
|
-
multiple: p.multiple,
|
|
270
|
-
disabled: p.disabled,
|
|
271
|
-
onChange: ue
|
|
272
|
-
}, null, 40, T), V.value ? y(n.$slots, "default", {
|
|
273
|
-
key: 0,
|
|
274
|
-
openDialog: X,
|
|
275
|
-
abort: Z,
|
|
276
|
-
disabled: p.disabled,
|
|
277
|
-
files: G.value,
|
|
278
|
-
isOver: U.value
|
|
279
|
-
}) : (g(), l("div", E, [u("div", ee, [f(e, { class: "h-6 w-6 text-[var(--muted-fg)]" }, {
|
|
280
|
-
default: C(() => [f(x(t))]),
|
|
281
|
-
_: 1
|
|
282
|
-
})]), u("div", D, [
|
|
283
|
-
u("div", O, [y(n.$slots, "label", {}, () => [y(n.$slots, "default", {}, () => [d(b(p.placeholder), 1)])])]),
|
|
284
|
-
n.$slots.tip ? (g(), l("div", k, [y(n.$slots, "tip")])) : (g(), l("div", te)),
|
|
285
|
-
p.showFileList && G.value.length ? (g(), l("ul", ne, [(g(!0), l(a, null, v(G.value, (e) => (g(), l("li", {
|
|
286
|
-
key: e.name,
|
|
287
|
-
"data-ds-file-upload-item": "",
|
|
288
|
-
class: "text-[13px]"
|
|
289
|
-
}, [u("span", A, b(e.name), 1), u("span", j, " · " + b(Math.ceil(e.size / 1024)) + " KB", 1)]))), 128))])) : c("", !0)
|
|
290
|
-
])]))], 42, w));
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
//#endregion
|
|
294
|
-
export { M as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createCommentVNode as e, createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a, toDisplayString as o } from "vue";
|
|
2
|
-
//#region src/components/GrFormField/GrFormField.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var s = { class: "flex flex-col gap-2" }, c = ["for"], l = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "text-sm text-[var(--ds-danger)]"
|
|
6
|
-
}, u = /* @__PURE__ */ n({
|
|
7
|
-
__name: "GrFormField",
|
|
8
|
-
props: {
|
|
9
|
-
label: { default: void 0 },
|
|
10
|
-
forId: { default: void 0 },
|
|
11
|
-
error: { default: void 0 },
|
|
12
|
-
labelClass: { default: void 0 }
|
|
13
|
-
},
|
|
14
|
-
setup(n) {
|
|
15
|
-
let u = n;
|
|
16
|
-
return (n, d) => (i(), t("div", s, [
|
|
17
|
-
u.label ? (i(), t("label", {
|
|
18
|
-
key: 0,
|
|
19
|
-
for: u.forId,
|
|
20
|
-
class: r(["text-sm text-[var(--muted-fg)]", u.labelClass])
|
|
21
|
-
}, o(u.label), 11, c)) : e("", !0),
|
|
22
|
-
a(n.$slots, "default"),
|
|
23
|
-
u.error ? (i(), t("div", l, o(u.error), 1)) : e("", !0)
|
|
24
|
-
]));
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
//#endregion
|
|
28
|
-
export { u as t };
|