@feugene/granularity 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DsButtonGroup.css +1 -0
- package/dist/DsFormFile.css +1 -0
- package/dist/DsIcon.css +1 -0
- package/dist/DsLoading.css +1 -0
- package/dist/DsSkeleton.css +1 -0
- package/dist/DsTree.css +1 -0
- package/dist/chunks/config-B36QoWkx2.js +8 -0
- package/dist/chunks/config-BG-m3THf.js +17 -0
- package/dist/chunks/config-BNQb1Tdk.js +9 -0
- package/dist/chunks/config-BPuskn3r.js +8 -0
- package/dist/chunks/config-BWJ22IjI2.js +9 -0
- package/dist/chunks/config-BYoxgIeM.js +18 -0
- package/dist/chunks/{config-tQBoBLph.js → config-Bb8NpnGF.js} +14 -6
- package/dist/chunks/config-Bo4SoxQg.js +27 -0
- package/dist/chunks/{config-B-tMv4PT.js → config-BscZj6l42.js} +26 -26
- package/dist/chunks/{config-qlwX-rLq.js → config-C0CVsc4Y.js} +16 -10
- package/dist/chunks/config-C2wd640N.js +9 -0
- package/dist/chunks/{config-CMuBf0u72.js → config-C7KNHOmN.js} +7 -7
- package/dist/chunks/config-CLG4pCF9.js +9 -0
- package/dist/chunks/config-COfLMM02.js +8 -0
- package/dist/chunks/config-C_CXjTfh2.js +9 -0
- package/dist/chunks/config-C_bF_fTb.js +8 -0
- package/dist/chunks/config-CcqnIunr.js +9 -0
- package/dist/chunks/config-Cibru2a2.js +9 -0
- package/dist/chunks/config-CnClbuiL.js +9 -0
- package/dist/chunks/config-CtI_S-zH.js +8 -0
- package/dist/chunks/config-CtgK8aLQ.js +37 -0
- package/dist/chunks/config-CvuvJeih.js +9 -0
- package/dist/chunks/{config-B75oSW74.js → config-CzEeKJ6F2.js} +6 -4
- package/dist/chunks/{config-CTGjkM7q.js → config-D-soL_Ul.js} +45 -36
- package/dist/chunks/config-D3ihNj1i.js +14 -0
- package/dist/chunks/config-D9kbijTN.js +9 -0
- package/dist/chunks/config-DGGgsQ-8.js +47 -0
- package/dist/chunks/{config-G7h6ftb62.js → config-DJxFkysW.js} +10 -9
- package/dist/chunks/config-DN1-oywd.js +13 -0
- package/dist/chunks/config-DO9E5iXl2.js +8 -0
- package/dist/chunks/config-DQdLgKLJ.js +8 -0
- package/dist/chunks/config-DThxz0fj.js +8 -0
- package/dist/chunks/config-DU-WqEnv.js +9 -0
- package/dist/chunks/config-DeL48aIt.js +8 -0
- package/dist/chunks/config-DfTEy9G3.js +14 -0
- package/dist/chunks/config-DoJaEy4X.js +21 -0
- package/dist/chunks/config-DopZCwNe.js +10 -0
- package/dist/chunks/{config-BrwOndwO.js → config-DpluHp1i.js} +2 -3
- package/dist/chunks/config-DrTFt1re.js +8 -0
- package/dist/chunks/config-DwsSjSb4.js +15 -0
- package/dist/chunks/config-E9sOdSx6.js +8 -0
- package/dist/chunks/config-EhfVxSIR.js +9 -0
- package/dist/chunks/config-J_2KglMu.js +8 -0
- package/dist/chunks/config-YyVxx9dW.js +8 -0
- package/dist/chunks/config-Zksyb5FX.js +35 -0
- package/dist/chunks/config-ltfe9Xvy.js +47 -0
- package/dist/chunks/config-udLUeY_k.js +9 -0
- package/dist/chunks/dialogShared-B7Ruf0mn.js +26 -0
- package/dist/chunks/directives-K8Vo0VhP.js +530 -0
- package/dist/chunks/{dsBadgeStyles-yLd1GFUa.js → dsBadgeStyles-2fcy07ls.js} +13 -22
- package/dist/chunks/{dsButtonStyles-C1c_j958.js → dsButtonStyles-xdMl54zJ.js} +46 -70
- package/dist/chunks/{dsDropdownStyles-DXGN-A-d.js → dsDropdownStyles-_XO6eeSE.js} +6 -12
- package/dist/chunks/dsLoadingStyles-lw20OWhs.js +15 -0
- package/dist/chunks/dsModalStyles-DovGcwjh.js +38 -0
- package/dist/chunks/dsSelectStyles-BCrj5Fty.js +40 -0
- package/dist/chunks/{en-CKkdzd7q.js → en-BkL6iabg.js} +3 -1
- package/dist/chunks/{es-CPXSlGMa.js → es-Dh_K9iry.js} +3 -1
- package/dist/chunks/{fileValidation-gR8aUBMZ.js → fileValidation-LFD-vwil.js} +1 -1
- package/dist/chunks/{granularityI18n-DBuOHekC.js → granularityI18n-DYNnonoE.js} +1 -1
- package/dist/chunks/{ru-D7AyvUyA.js → ru-kTbw8Tku.js} +3 -1
- package/dist/chunks/safelist-CQOSs_yj.js +13 -0
- package/dist/chunks/safelist-Gujf4bDO.js +22 -0
- package/dist/chunks/shared-DGhcuSCh.js +124 -0
- package/dist/chunks/{transition-CT9vsWnT.js → transition-BJXMi52x.js} +218 -218
- package/dist/{chunks/DsAlert-r_Ed-JrB.js → components/DsAlert/chunks/DsAlert-2ItscoqG.js} +3 -3
- package/dist/components/DsAlert/index.js +3 -3
- package/dist/{chunks/DsAvatar-cyMI8jUi.js → components/DsAvatar/chunks/DsAvatar-D7tQ9wfl.js} +1 -1
- package/dist/components/DsAvatar/index.js +2 -2
- package/dist/{chunks/DsBadge-Dnd7_I-K.js → components/DsBadge/chunks/DsBadge-B9aZxvZb.js} +1 -1
- package/dist/components/DsBadge/index.js +3 -4
- package/dist/components/DsBadgeWrap/index.js +3 -3
- package/dist/components/DsBottomNav/index.js +3 -3
- package/dist/{chunks/DsButton-CA18Fha-.js → components/DsButton/chunks/DsButton-9cB_fHZt.js} +6 -6
- package/dist/components/DsButton/index.js +5 -4
- package/dist/{chunks/DsButtonGroup-Ceat9ADe.js → components/DsButtonGroup/chunks/DsButtonGroup-DPK1W3Hk.js} +1 -1
- package/dist/components/DsButtonGroup/index.js +3 -3
- package/dist/{chunks/DsCard-GtapCsjq.js → components/DsCard/chunks/DsCard-Bnelx1JF.js} +1 -1
- package/dist/components/DsCard/index.js +3 -3
- package/dist/components/DsCheckbox/chunks/DsCheckbox-B3YN7RYo.js +111 -0
- package/dist/components/DsCheckbox/index.js +3 -3
- package/dist/components/DsCollapse/chunks/DsCollapse-7D6FTuFJ.js +150 -0
- package/dist/components/DsCollapse/index.js +3 -3
- package/dist/components/DsConfirmDialog/chunks/DsConfirmDialog-NkhfmD4Y.js +111 -0
- package/dist/components/DsConfirmDialog/index.js +3 -3
- package/dist/components/DsDataTable/chunks/DsDataTable-nK4XgT1y.js +142 -0
- package/dist/components/DsDataTable/index.js +3 -3
- package/dist/components/DsDialog/chunks/DsDialog-BH23MSq-.js +169 -0
- package/dist/components/DsDialog/index.js +4 -3
- package/dist/components/DsDrawer/chunks/DsDrawer-GW4JyPf_.js +135 -0
- package/dist/components/DsDrawer/index.js +2 -2
- package/dist/{chunks/DsDropdown-BcFjxaMe.js → components/DsDropdown/chunks/DsDropdown-DmR1NWyV.js} +54 -50
- package/dist/components/DsDropdown/index.js +3 -4
- package/dist/{chunks/DsDropdownMenu-CA7259h5.js → components/DsDropdownMenu/chunks/DsDropdownMenu-BlpO8mUO.js} +45 -30
- package/dist/components/DsDropdownMenu/index.js +3 -3
- package/dist/components/DsEmptyState/chunks/DsEmptyState-tKYwSiP1.js +49 -0
- package/dist/components/DsEmptyState/index.js +3 -3
- package/dist/components/DsFileUpload/chunks/DsFileUpload-Dya9vyG0.js +294 -0
- package/dist/components/DsFileUpload/index.js +4 -4
- package/dist/components/DsFormField/index.js +3 -3
- package/dist/components/DsFormFile/chunks/DsFormFile-BFfRuM1G.js +248 -0
- package/dist/components/DsFormFile/index.js +3 -3
- package/dist/components/DsFormSection/chunks/DsFormSection-Dzspqv9R.js +27 -0
- package/dist/components/DsFormSection/index.js +3 -3
- package/dist/components/DsIcon/chunks/DsIcon-Bk6qc4Kh.js +25 -0
- package/dist/components/DsIcon/index.js +3 -3
- package/dist/{chunks/DsImageViewer-C9NZ42St.js → components/DsImageViewer/chunks/DsImageViewer-_LWdAHAd.js} +109 -100
- package/dist/components/DsImageViewer/index.js +3 -3
- package/dist/{chunks/DsInput-DeoAkT6R.js → components/DsInput/chunks/DsInput-B8RhHkKQ.js} +52 -53
- package/dist/components/DsInput/index.js +2 -2
- package/dist/components/DsInputTag/chunks/DsInputTag-DVmvJ0A_.js +214 -0
- package/dist/components/DsInputTag/index.js +2 -2
- package/dist/components/DsLink/chunks/DsLink-DXClMbuX.js +59 -0
- package/dist/components/DsLink/index.js +2 -2
- package/dist/components/DsList/chunks/DsList-BEuPowc2.js +55 -0
- package/dist/components/DsList/index.js +3 -3
- package/dist/{chunks/DsLoading-ogfmbPE4.js → components/DsLoading/chunks/DsLoading-uYpDF-nK.js} +14 -14
- package/dist/components/DsLoading/index.js +3 -4
- package/dist/components/DsModal/chunks/DsModal-B2DLXV7F.js +136 -0
- package/dist/components/DsModal/index.js +4 -4
- package/dist/components/DsNavbar/chunks/DsNavbar-O-ud_du_.js +62 -0
- package/dist/components/DsNavbar/index.js +3 -3
- package/dist/{chunks/DsNumberInput-D-m5QoQJ.js → components/DsNumberInput/chunks/DsNumberInput-BJTpcTRc.js} +70 -56
- package/dist/components/DsNumberInput/index.js +2 -2
- package/dist/{chunks/DsPagination-B28ms0hc.js → components/DsPagination/chunks/DsPagination-hw_-VMRK.js} +33 -21
- package/dist/components/DsPagination/index.js +3 -3
- package/dist/{chunks/DsProgressBar-Bkuqudkg.js → components/DsProgressBar/chunks/DsProgressBar-CgIQj39W.js} +4 -2
- package/dist/components/DsProgressBar/index.js +2 -2
- package/dist/{chunks/DsPromptDialog-DdSca52S.js → components/DsPromptDialog/chunks/DsPromptDialog-_8v3Puaj.js} +42 -17
- package/dist/components/DsPromptDialog/index.js +3 -3
- package/dist/{chunks/DsRadio-x2vmEUCv.js → components/DsRadio/chunks/DsRadio-DKbrUFUZ.js} +21 -15
- package/dist/components/DsRadio/index.js +2 -2
- package/dist/{chunks/DsRadioGroup-CzlzJF2E.js → components/DsRadioGroup/chunks/DsRadioGroup-BQo7Nc5-.js} +13 -10
- package/dist/components/DsRadioGroup/index.js +3 -3
- package/dist/components/DsSegmented/chunks/DsSegmented-SbqzdCNX.js +250 -0
- package/dist/components/DsSegmented/index.js +2 -2
- package/dist/components/DsSelect/chunks/DsSelect-DN-vZIEG.js +314 -0
- package/dist/components/DsSelect/index.js +3 -4
- package/dist/components/DsSidebar/chunks/DsSidebar-DdofI1lo.js +29 -0
- package/dist/components/DsSidebar/index.js +3 -3
- package/dist/{chunks/DsSkeleton-BcXabaQ7.js → components/DsSkeleton/chunks/DsSkeleton-DJSQ4gGR.js} +9 -9
- package/dist/components/DsSkeleton/index.js +3 -3
- package/dist/{chunks/DsSwitch-DBdjltGz.js → components/DsSwitch/chunks/DsSwitch-Dh4_bd6e.js} +8 -4
- package/dist/components/DsSwitch/index.js +2 -2
- package/dist/components/DsTable/chunks/DsTable-C27_FR_h.js +44 -0
- package/dist/components/DsTable/index.js +3 -3
- package/dist/components/DsTabs/chunks/DsTabs-FLWaGtbo.js +98 -0
- package/dist/components/DsTabs/index.js +3 -3
- package/dist/{chunks/DsTextarea-DVSsoqi3.js → components/DsTextarea/chunks/DsTextarea-D61wwTwK.js} +10 -9
- package/dist/components/DsTextarea/index.js +2 -2
- package/dist/components/DsToaster/chunks/DsToaster-KO8wZChw.js +159 -0
- package/dist/components/DsToaster/index.js +2 -2
- package/dist/components/DsTooltip/chunks/DsTooltip-BNkQOtpm.js +37 -0
- package/dist/components/DsTooltip/index.js +3 -3
- package/dist/{chunks/DsTree-Bz37FcIb.js → components/DsTree/chunks/DsTree-DK0aOkKS.js} +19 -7
- package/dist/components/DsTree/index.js +2 -2
- package/dist/components/DsTreeSelect/chunks/DsTreeSelect-BnG-oplE.js +353 -0
- package/dist/components/DsTreeSelect/index.js +2 -2
- package/dist/directives/index.js +2 -0
- package/dist/{fileValidation.js → fileValidation/index.js} +1 -1
- package/dist/granular-provider-node.js +23 -0
- package/dist/granular-provider.js +5 -0
- package/dist/i18n/index.js +9 -0
- package/dist/index.js +147 -115
- package/dist/types/src/components/DsAlert/config.d.ts +1 -1
- package/dist/types/src/components/DsAlert/index.d.ts +0 -1
- package/dist/types/src/components/DsAvatar/config.d.ts +1 -1
- package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +1 -4
- package/dist/types/src/components/DsAvatar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsBadge/config.d.ts +1 -1
- package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +4 -1
- package/dist/types/src/components/DsBadge/safelist.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/index.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/config.d.ts +1 -1
- package/dist/types/src/components/DsBottomNav/index.d.ts +0 -1
- package/dist/types/src/components/DsButton/config.d.ts +1 -1
- package/dist/types/src/components/DsButton/config.node.d.ts +1 -0
- package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -10
- package/dist/types/src/components/DsButton/index.d.ts +2 -1
- package/dist/types/src/components/DsButton/safelist.d.ts +7 -1
- package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsButtonGroup/index.d.ts +0 -1
- package/dist/types/src/components/DsCard/config.d.ts +1 -1
- package/dist/types/src/components/DsCard/index.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +9 -4
- package/dist/types/src/components/DsCheckbox/config.d.ts +1 -1
- package/dist/types/src/components/DsCheckbox/index.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +12 -4
- package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +13 -6
- package/dist/types/src/components/DsCollapse/config.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/index.d.ts +2 -3
- package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +32 -11
- package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsConfirmDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +35 -42
- package/dist/types/src/components/DsDataTable/config.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/index.d.ts +1 -2
- package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +24 -14
- package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +4 -4
- package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +9 -4
- package/dist/types/src/components/DsDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsDialog/dialogShared.d.ts +6 -1
- package/dist/types/src/components/DsDialog/index.d.ts +6 -3
- package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +27 -11
- package/dist/types/src/components/DsDrawer/config.d.ts +1 -1
- package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +8 -19
- package/dist/types/src/components/DsDrawer/index.d.ts +2 -0
- package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +9 -4
- package/dist/types/src/components/DsDropdown/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +2 -1
- package/dist/types/src/components/DsDropdown/index.d.ts +2 -0
- package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +12 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +7 -6
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/index.d.ts +8 -4
- package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +15 -6
- package/dist/types/src/components/DsEmptyState/config.d.ts +1 -1
- package/dist/types/src/components/DsEmptyState/index.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +21 -8
- package/dist/types/src/components/DsFileUpload/config.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/index.d.ts +1 -1
- package/dist/types/src/components/DsFormField/config.d.ts +1 -1
- package/dist/types/src/components/DsFormField/index.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +13 -7
- package/dist/types/src/components/DsFormFile/config.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/index.d.ts +1 -2
- package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +10 -4
- package/dist/types/src/components/DsFormSection/config.d.ts +1 -1
- package/dist/types/src/components/DsFormSection/index.d.ts +1 -1
- package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +1 -2
- package/dist/types/src/components/DsIcon/config.d.ts +1 -1
- package/dist/types/src/components/DsIcon/index.d.ts +0 -2
- package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +45 -0
- package/dist/types/src/components/DsImageViewer/config.d.ts +1 -1
- package/dist/types/src/components/DsImageViewer/index.d.ts +0 -1
- package/dist/types/src/components/DsInput/config.d.ts +1 -1
- package/dist/types/src/components/DsInput/dsInputStyles.d.ts +17 -1
- package/dist/types/src/components/DsInput/index.d.ts +1 -1
- package/dist/types/src/components/DsInput/safelist.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +15 -5
- package/dist/types/src/components/DsInputTag/config.d.ts +1 -1
- package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +3 -1
- package/dist/types/src/components/DsInputTag/index.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -1
- package/dist/types/src/components/DsLink/DsLink.vue.d.ts +0 -1
- package/dist/types/src/components/DsLink/config.d.ts +1 -1
- package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +6 -1
- package/dist/types/src/components/DsLink/safelist.d.ts +1 -1
- package/dist/types/src/components/DsList/DsList.vue.d.ts +8 -5
- package/dist/types/src/components/DsList/DsListItem.vue.d.ts +39 -6
- package/dist/types/src/components/DsList/config.d.ts +1 -1
- package/dist/types/src/components/DsList/index.d.ts +2 -1
- package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +18 -5
- package/dist/types/src/components/DsLoading/config.d.ts +1 -1
- package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -1
- package/dist/types/src/components/DsLoading/index.d.ts +1 -0
- package/dist/types/src/components/DsLoading/safelist.d.ts +1 -1
- package/dist/types/src/components/DsModal/DsModal.vue.d.ts +17 -10
- package/dist/types/src/components/DsModal/config.d.ts +1 -1
- package/dist/types/src/components/DsModal/dsModalStyles.d.ts +25 -16
- package/dist/types/src/components/DsModal/index.d.ts +4 -2
- package/dist/types/src/components/DsModal/safelist.d.ts +15 -1
- package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +15 -7
- package/dist/types/src/components/DsNavbar/config.d.ts +1 -1
- package/dist/types/src/components/DsNavbar/index.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +17 -5
- package/dist/types/src/components/DsNumberInput/config.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +5 -1
- package/dist/types/src/components/DsNumberInput/index.d.ts +2 -1
- package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -1
- package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +10 -4
- package/dist/types/src/components/DsPagination/config.d.ts +1 -1
- package/dist/types/src/components/DsPagination/index.d.ts +1 -2
- package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +11 -4
- package/dist/types/src/components/DsProgressBar/config.d.ts +1 -1
- package/dist/types/src/components/DsProgressBar/config.node.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +0 -4
- package/dist/types/src/components/DsProgressBar/index.d.ts +2 -1
- package/dist/types/src/components/DsProgressBar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +33 -7
- package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsPromptDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +18 -6
- package/dist/types/src/components/DsRadio/config.d.ts +1 -1
- package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +9 -2
- package/dist/types/src/components/DsRadio/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/safelist.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +16 -6
- package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/index.d.ts +1 -2
- package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +10 -4
- package/dist/types/src/components/DsSegmented/config.d.ts +1 -1
- package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +13 -17
- package/dist/types/src/components/DsSegmented/index.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/safelist.d.ts +17 -1
- package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +13 -5
- package/dist/types/src/components/DsSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +5 -1
- package/dist/types/src/components/DsSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsSelect/safelist.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +20 -7
- package/dist/types/src/components/DsSidebar/config.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/index.d.ts +1 -2
- package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +10 -4
- package/dist/types/src/components/DsSkeleton/config.d.ts +1 -1
- package/dist/types/src/components/DsSkeleton/index.d.ts +1 -2
- package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +10 -5
- package/dist/types/src/components/DsSwitch/config.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +10 -10
- package/dist/types/src/components/DsSwitch/index.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/safelist.d.ts +10 -1
- package/dist/types/src/components/DsTable/DsTable.vue.d.ts +67 -4
- package/dist/types/src/components/DsTable/config.d.ts +1 -1
- package/dist/types/src/components/DsTable/index.d.ts +1 -1
- package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +4 -3
- package/dist/types/src/components/DsTabs/config.d.ts +1 -1
- package/dist/types/src/components/DsTabs/index.d.ts +1 -2
- package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +16 -1
- package/dist/types/src/components/DsTextarea/config.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/index.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -1
- package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +41 -1
- package/dist/types/src/components/DsToaster/config.d.ts +1 -1
- package/dist/types/src/components/DsToaster/dsToasterStyles.d.ts +2 -0
- package/dist/types/src/components/DsToaster/index.d.ts +2 -0
- package/dist/types/src/components/DsToaster/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +5 -4
- package/dist/types/src/components/DsTooltip/config.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/index.d.ts +1 -1
- package/dist/types/src/components/DsTree/config.d.ts +1 -1
- package/dist/types/src/components/DsTree/dsTreeProps.d.ts +6 -0
- package/dist/types/src/components/DsTree/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +3 -27
- package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +2 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +31 -1
- package/dist/types/src/components/DsTreeSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -1
- package/dist/types/src/composables/useToast.d.ts +4 -0
- package/dist/types/src/directives/globalDirectives.d.ts +1 -1
- package/dist/types/src/granular-provider/index.d.ts +3 -0
- package/dist/types/src/granular-provider/node.d.ts +3 -0
- package/dist/types/src/granular-provider/shared.d.ts +85 -0
- package/dist/types/src/i18n/messages.d.ts +12 -0
- package/dist/types/src/index.d.ts +11 -16
- package/dist/{vue.js → vue/index.js} +6 -2
- package/package.json +72 -142
- package/dist/assets/granularity-2oOxNk_f.css +0 -2
- package/dist/chunks/DsCheckbox-Afg94qUm.js +0 -101
- package/dist/chunks/DsCollapse-DWfip4gp.js +0 -144
- package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +0 -87
- package/dist/chunks/DsDataTable-DgBkEgDK.js +0 -91
- package/dist/chunks/DsDialog-BAGAa9DN.js +0 -178
- package/dist/chunks/DsDrawer-gmVF_0I0.js +0 -112
- package/dist/chunks/DsEmptyState-BdLoQ0-z.js +0 -46
- package/dist/chunks/DsFileUpload-IwtpKocj.js +0 -282
- package/dist/chunks/DsFormFile-C5ldcCAs.js +0 -219
- package/dist/chunks/DsFormSection-DmIDIQg7.js +0 -18
- package/dist/chunks/DsIcon-Q-KQGAQU.js +0 -25
- package/dist/chunks/DsInputTag-DWip_-Cr.js +0 -201
- package/dist/chunks/DsLink-CWpVQ0ij.js +0 -56
- package/dist/chunks/DsList-XI8AAk9b.js +0 -31
- package/dist/chunks/DsModal-Bl9r6v33.js +0 -75
- package/dist/chunks/DsNavbar-DJ4bv_MR.js +0 -54
- package/dist/chunks/DsSegmented-BwQ8VnOZ.js +0 -250
- package/dist/chunks/DsSelect-DEHGeICn.js +0 -304
- package/dist/chunks/DsSidebar-BNLaBCYD.js +0 -18
- package/dist/chunks/DsTable-apqrsbxV.js +0 -10
- package/dist/chunks/DsTabs-B1kkklFS.js +0 -47
- package/dist/chunks/DsToaster-B9u2x_Ii.js +0 -48
- package/dist/chunks/DsTooltip-BqNVJw2f.js +0 -27
- package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +0 -319
- package/dist/chunks/componentConfig-CQndJxd1.js +0 -14
- package/dist/chunks/config-4vrmi-D0.js +0 -9
- package/dist/chunks/config-ANT_Zf3l.js +0 -18
- package/dist/chunks/config-B7HAOCA1.js +0 -33
- package/dist/chunks/config-B7yrZO9u.js +0 -18
- package/dist/chunks/config-B98-jCfY.js +0 -9
- package/dist/chunks/config-BDJ2JaFs.js +0 -9
- package/dist/chunks/config-BEzNFZ_R.js +0 -10
- package/dist/chunks/config-BKpHj94n.js +0 -13
- package/dist/chunks/config-BLYxW-WQ.js +0 -9
- package/dist/chunks/config-BS0vLD_L.js +0 -41
- package/dist/chunks/config-BXlW2GSa.js +0 -33
- package/dist/chunks/config-BY6edpDp.js +0 -9
- package/dist/chunks/config-BZDKypuQ.js +0 -8
- package/dist/chunks/config-BeJEy8yN.js +0 -9
- package/dist/chunks/config-BnryTLnh.js +0 -47
- package/dist/chunks/config-BqaCteFh2.js +0 -9
- package/dist/chunks/config-BusLdkqX.js +0 -8
- package/dist/chunks/config-CBo4aVMV.js +0 -8
- package/dist/chunks/config-CLyDbB2M.js +0 -14
- package/dist/chunks/config-CML-WrGM.js +0 -10
- package/dist/chunks/config-CVEwIRRR.js +0 -30
- package/dist/chunks/config-Ch0TH9wN.js +0 -42
- package/dist/chunks/config-ClPYX-LP.js +0 -24
- package/dist/chunks/config-DA3cYUSo.js +0 -8
- package/dist/chunks/config-DAiP4yeJ.js +0 -8
- package/dist/chunks/config-DG_de8vE.js +0 -15
- package/dist/chunks/config-DIgvSIEs.js +0 -9
- package/dist/chunks/config-DJ7xDo-q.js +0 -16
- package/dist/chunks/config-DSFnRpu82.js +0 -19
- package/dist/chunks/config-DVHe_id-.js +0 -22
- package/dist/chunks/config-DoT3gzx7.js +0 -9
- package/dist/chunks/config-DuaBaVyF.js +0 -34
- package/dist/chunks/config-F4Bb6hVJ.js +0 -30
- package/dist/chunks/config-aUoIf7kK.js +0 -28
- package/dist/chunks/config-cKk87ycz2.js +0 -14
- package/dist/chunks/config-kfb3OyGZ.js +0 -24
- package/dist/chunks/config-oDjY8ZrP2.js +0 -8
- package/dist/chunks/config-panSV6Wo.js +0 -9
- package/dist/chunks/dsDialogStyles-C7QOvzmt.js +0 -11
- package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +0 -9
- package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +0 -16
- package/dist/chunks/dsModalStyles-C7E5kJ1o.js +0 -54
- package/dist/chunks/dsSelectStyles-Bym0uW4f.js +0 -82
- package/dist/chunks/preset-DBXBjf5u.js +0 -2235
- package/dist/components/DsAlert/styles.css +0 -386
- package/dist/components/DsAvatar/styles.css +0 -373
- package/dist/components/DsBadge/styles.css +0 -422
- package/dist/components/DsBadgeWrap/styles.css +0 -378
- package/dist/components/DsBottomNav/styles.css +0 -388
- package/dist/components/DsButton/styles.css +0 -633
- package/dist/components/DsButton/tokens.css +0 -96
- package/dist/components/DsButtonGroup/styles.css +0 -23
- package/dist/components/DsCard/styles.css +0 -365
- package/dist/components/DsCheckbox/styles.css +0 -394
- package/dist/components/DsCollapse/styles.css +0 -399
- package/dist/components/DsConfirmDialog/styles.css +0 -595
- package/dist/components/DsDataTable/styles.css +0 -387
- package/dist/components/DsDialog/styles.css +0 -592
- package/dist/components/DsDrawer/styles.css +0 -579
- package/dist/components/DsDropdown/styles.css +0 -392
- package/dist/components/DsDropdownMenu/styles.css +0 -430
- package/dist/components/DsEmptyState/styles.css +0 -380
- package/dist/components/DsFileUpload/styles.css +0 -403
- package/dist/components/DsFormField/styles.css +0 -365
- package/dist/components/DsFormFile/styles.css +0 -555
- package/dist/components/DsFormSection/styles.css +0 -365
- package/dist/components/DsIcon/styles.css +0 -20
- package/dist/components/DsIcon/tokens.css +0 -3
- package/dist/components/DsImageViewer/styles.css +0 -465
- package/dist/components/DsInput/styles.css +0 -416
- package/dist/components/DsInputTag/styles.css +0 -498
- package/dist/components/DsLink/styles.css +0 -390
- package/dist/components/DsList/styles.css +0 -376
- package/dist/components/DsLoading/styles.css +0 -381
- package/dist/components/DsModal/styles.css +0 -404
- package/dist/components/DsNavbar/styles.css +0 -549
- package/dist/components/DsNumberInput/styles.css +0 -428
- package/dist/components/DsPagination/styles.css +0 -637
- package/dist/components/DsProgressBar/styles.css +0 -398
- package/dist/components/DsProgressBar/tokens.css +0 -23
- package/dist/components/DsPromptDialog/styles.css +0 -622
- package/dist/components/DsRadio/styles.css +0 -558
- package/dist/components/DsRadioGroup/styles.css +0 -560
- package/dist/components/DsSegmented/styles.css +0 -422
- package/dist/components/DsSegmented/tokens.css +0 -9
- package/dist/components/DsSelect/styles.css +0 -483
- package/dist/components/DsSidebar/styles.css +0 -370
- package/dist/components/DsSkeleton/styles.css +0 -363
- package/dist/components/DsSwitch/styles.css +0 -393
- package/dist/components/DsTable/styles.css +0 -369
- package/dist/components/DsTabs/styles.css +0 -390
- package/dist/components/DsTextarea/styles.css +0 -382
- package/dist/components/DsToaster/styles.css +0 -558
- package/dist/components/DsTooltip/styles.css +0 -388
- package/dist/components/DsTree/styles.css +0 -375
- package/dist/components/DsTreeSelect/styles.css +0 -466
- package/dist/composables/useTheme.js +0 -44
- package/dist/composables/useToast.js +0 -37
- package/dist/directives/autofocus.js +0 -46
- package/dist/directives/autosize.js +0 -62
- package/dist/directives/clickOutside.js +0 -82
- package/dist/directives/dropzone.js +0 -110
- package/dist/directives/globalDirectives.js +0 -0
- package/dist/directives/hotkey.js +0 -104
- package/dist/directives/loading.js +0 -125
- package/dist/directives.js +0 -7
- package/dist/foundation.css +0 -358
- package/dist/i18n.js +0 -9
- package/dist/package.json +0 -297
- package/dist/styles/base.css +0 -33
- package/dist/styles/themes/dark.css +0 -102
- package/dist/styles/themes/light.css +0 -98
- package/dist/styles/tokens.css +0 -118
- package/dist/styles.css +0 -1134
- package/dist/types/src/components/DsAlert/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButton/styles.css.d.ts +0 -4
- package/dist/types/src/components/DsButtonGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsCard/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCollapse/safelist.d.ts +0 -1
- package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDataTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +0 -1
- package/dist/types/src/components/DsEmptyState/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFileUpload/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +0 -1
- package/dist/types/src/components/DsFormFile/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormSection/safelist.d.ts +0 -1
- package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +0 -2
- package/dist/types/src/components/DsIcon/styles.css.d.ts +0 -5
- package/dist/types/src/components/DsImageViewer/safelist.d.ts +0 -1
- package/dist/types/src/components/DsList/safelist.d.ts +0 -1
- package/dist/types/src/components/DsModal/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsNavbar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPagination/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsRadioGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSelect/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsSidebar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSkeleton/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTabs/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTooltip/safelist.d.ts +0 -1
- package/dist/types/src/registry/componentConfig.d.ts +0 -17
- package/dist/types/src/registry/componentCss.d.ts +0 -3
- package/dist/types/src/registry/componentCss.node.d.ts +0 -5
- package/dist/types/src/registry/components.d.ts +0 -56
- package/dist/types/src/registry/safelist.d.ts +0 -11
- package/dist/types/src/theming/themeRegistry.d.ts +0 -19
- package/dist/types/src/theming/themeRegistry.node.d.ts +0 -14
- package/dist/types/src/unocss/preset.d.ts +0 -18
- package/dist/types/src/unocss/preset.node.d.ts +0 -15
- package/dist/types/src/unocss/rules/animation.d.ts +0 -3
- package/dist/types/src/unocss/rules/colorOpacity.d.ts +0 -2
- package/dist/types/src/unocss/rules/filters.d.ts +0 -8
- package/dist/types/src/unocss/rules/spacing.d.ts +0 -8
- package/dist/uno-node.js +0 -103
- package/dist/uno.js +0 -2
- package/web-types.json +0 -100
- /package/dist/chunks/{_plugin-vue_export-helper-DOgycIVc.js → _plugin-vue_export-helper-CHO2XVys.js} +0 -0
- /package/dist/chunks/{adapter-BKKNB3Ii.js → adapter-veOBOjv3.js} +0 -0
- /package/dist/chunks/{arrow-up-B4OlmAKz.js → arrow-up-Dv3dC3hu.js} +0 -0
- /package/dist/chunks/{info-CmLOtVnO.js → info-CNJnuTYC.js} +0 -0
- /package/dist/chunks/{loader-circle-DtXjkqR7.js → loader-circle-C5vCCMfB.js} +0 -0
- /package/dist/chunks/{x-dGjszOU2.js → x--kxrj3ez.js} +0 -0
- /package/dist/chunks/{x-circle-BZnfL2nz.js → x-circle-ChJ87u1v.js} +0 -0
- /package/dist/{chunks/DsBadgeWrap-UgP-TMdA.js → components/DsBadgeWrap/chunks/DsBadgeWrap-DO8TjFYg.js} +0 -0
- /package/dist/{chunks/DsBottomNav-Dze5cFVz.js → components/DsBottomNav/chunks/DsBottomNav-NRtHfcmQ.js} +0 -0
- /package/dist/{chunks/DsFormField-XVZK7YVU.js → components/DsFormField/chunks/DsFormField-QvWyAReX.js} +0 -0
- /package/dist/types/src/components/DsDialog/{dsDialogStyles.d.ts → safelist.d.ts} +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./x-dGjszOU2.js";
|
|
2
|
-
import { t } from "./DsButton-CA18Fha-.js";
|
|
3
|
-
import { a as n, i as r, n as i, r as a, t as o } from "./transition-CT9vsWnT.js";
|
|
4
|
-
import { n as s, r as c } from "./config-G7h6ftb62.js";
|
|
5
|
-
import { Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, openBlock as y, renderSlot as b, toDisplayString as x, unref as S, withCtx as C, withKeys as w, withModifiers as T } from "vue";
|
|
6
|
-
//#region src/components/DsDrawer/DsDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var E = { class: "fixed inset-0" }, D = { class: "px-5 py-4 border-b border-[var(--brd)] flex items-center justify-between gap-4" }, O = { class: "flex-1 overflow-y-auto" }, k = { class: "p-5" }, A = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "px-5 py-4 border-t border-[var(--brd)]"
|
|
10
|
-
}, j = /* @__PURE__ */ _({
|
|
11
|
-
__name: "DsDrawer",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: { type: Boolean },
|
|
14
|
-
title: { default: void 0 },
|
|
15
|
-
closeOnBackdrop: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !0
|
|
18
|
-
},
|
|
19
|
-
side: { default: "right" },
|
|
20
|
-
size: { default: "md" }
|
|
21
|
-
},
|
|
22
|
-
emits: ["update:modelValue"],
|
|
23
|
-
setup(_, { emit: j }) {
|
|
24
|
-
let M = _, N = j, P = u(() => M.modelValue), F = u(() => s({
|
|
25
|
-
side: M.side,
|
|
26
|
-
size: M.size
|
|
27
|
-
})), I = u(() => c(M.side));
|
|
28
|
-
function L() {
|
|
29
|
-
N("update:modelValue", !1);
|
|
30
|
-
}
|
|
31
|
-
function R() {
|
|
32
|
-
M.closeOnBackdrop && L();
|
|
33
|
-
}
|
|
34
|
-
function z() {
|
|
35
|
-
M.closeOnBackdrop && L();
|
|
36
|
-
}
|
|
37
|
-
return (s, c) => (y(), d(l, { to: "body" }, [g(S(o), {
|
|
38
|
-
show: P.value,
|
|
39
|
-
as: "template"
|
|
40
|
-
}, {
|
|
41
|
-
default: C(() => [g(S(n), {
|
|
42
|
-
as: "div",
|
|
43
|
-
class: "fixed inset-0 z-50",
|
|
44
|
-
static: !0,
|
|
45
|
-
onClose: R,
|
|
46
|
-
onKeydown: w(T(L, ["stop", "prevent"]), ["esc"])
|
|
47
|
-
}, {
|
|
48
|
-
default: C(() => [m("div", E, [g(S(i), {
|
|
49
|
-
as: "template",
|
|
50
|
-
enter: "duration-200 ease-out",
|
|
51
|
-
"enter-from": "opacity-0",
|
|
52
|
-
"enter-to": "opacity-100",
|
|
53
|
-
leave: "duration-150 ease-in",
|
|
54
|
-
"leave-from": "opacity-100",
|
|
55
|
-
"leave-to": "opacity-0"
|
|
56
|
-
}, {
|
|
57
|
-
default: C(() => [m("div", {
|
|
58
|
-
"data-ds-drawer-overlay": "",
|
|
59
|
-
class: "fixed inset-0 bg-black/40",
|
|
60
|
-
"aria-hidden": "true",
|
|
61
|
-
onClick: z
|
|
62
|
-
})]),
|
|
63
|
-
_: 1
|
|
64
|
-
}), g(S(i), {
|
|
65
|
-
as: "template",
|
|
66
|
-
enter: "duration-200 ease-out",
|
|
67
|
-
"enter-from": I.value,
|
|
68
|
-
"enter-to": "translate-x-0",
|
|
69
|
-
leave: "duration-150 ease-in",
|
|
70
|
-
"leave-from": "translate-x-0",
|
|
71
|
-
"leave-to": I.value
|
|
72
|
-
}, {
|
|
73
|
-
default: C(() => [g(S(a), {
|
|
74
|
-
"data-ds-drawer-panel": "",
|
|
75
|
-
tabindex: "-1",
|
|
76
|
-
class: v(["fixed inset-y-0 flex flex-col", F.value])
|
|
77
|
-
}, {
|
|
78
|
-
default: C(() => [
|
|
79
|
-
m("div", D, [g(S(r), {
|
|
80
|
-
as: "div",
|
|
81
|
-
class: "text-[14px] font-700 min-w-0 truncate"
|
|
82
|
-
}, {
|
|
83
|
-
default: C(() => [b(s.$slots, "title", {}, () => [h(x(M.title ?? "Drawer"), 1)])]),
|
|
84
|
-
_: 3
|
|
85
|
-
}), g(t, {
|
|
86
|
-
variant: "ghost",
|
|
87
|
-
size: "sm",
|
|
88
|
-
square: "",
|
|
89
|
-
"aria-label": "Close",
|
|
90
|
-
onClick: L
|
|
91
|
-
}, {
|
|
92
|
-
default: C(() => [g(S(e), {
|
|
93
|
-
class: "h-4 w-4",
|
|
94
|
-
"aria-hidden": "true"
|
|
95
|
-
})]),
|
|
96
|
-
_: 1
|
|
97
|
-
})]),
|
|
98
|
-
m("div", O, [m("div", k, [b(s.$slots, "default")])]),
|
|
99
|
-
s.$slots.footer ? (y(), p("div", A, [b(s.$slots, "footer")])) : f("", !0)
|
|
100
|
-
]),
|
|
101
|
-
_: 3
|
|
102
|
-
}, 8, ["class"])]),
|
|
103
|
-
_: 3
|
|
104
|
-
}, 8, ["enter-from", "leave-to"])])]),
|
|
105
|
-
_: 3
|
|
106
|
-
}, 8, ["onKeydown"])]),
|
|
107
|
-
_: 3
|
|
108
|
-
}, 8, ["show"])]));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
//#endregion
|
|
112
|
-
export { j as t };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, markRaw as a, openBlock as o, renderSlot as s, toDisplayString as c, unref as l } from "vue";
|
|
2
|
-
//#region ~icons/lucide/inbox
|
|
3
|
-
var u = {
|
|
4
|
-
viewBox: "0 0 24 24",
|
|
5
|
-
width: "1.2em",
|
|
6
|
-
height: "1.2em"
|
|
7
|
-
};
|
|
8
|
-
function d(e, r) {
|
|
9
|
-
return o(), t("svg", u, [...r[0] ||= [n("g", {
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
"stroke-linecap": "round",
|
|
13
|
-
"stroke-linejoin": "round",
|
|
14
|
-
"stroke-width": "2"
|
|
15
|
-
}, [n("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }), n("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)]]);
|
|
16
|
-
}
|
|
17
|
-
var f = a({
|
|
18
|
-
name: "lucide-inbox",
|
|
19
|
-
render: d
|
|
20
|
-
}), p = { class: "rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)] p-6 text-center" }, m = { class: "flex justify-center" }, h = { class: "h-12 w-12 rounded-[12px] bg-[var(--muted)] border border-[var(--brd)] flex items-center justify-center" }, g = { class: "mt-4 text-[14px] font-700" }, _ = {
|
|
21
|
-
key: 0,
|
|
22
|
-
class: "mt-1 text-[13px] text-[var(--muted-fg)]"
|
|
23
|
-
}, v = {
|
|
24
|
-
key: 1,
|
|
25
|
-
class: "mt-4 flex justify-center"
|
|
26
|
-
}, y = /* @__PURE__ */ i({
|
|
27
|
-
__name: "DsEmptyState",
|
|
28
|
-
props: {
|
|
29
|
-
title: {},
|
|
30
|
-
description: { default: void 0 }
|
|
31
|
-
},
|
|
32
|
-
setup(i) {
|
|
33
|
-
let a = i;
|
|
34
|
-
return (i, u) => (o(), t("div", p, [
|
|
35
|
-
n("div", m, [n("div", h, [r(l(f), {
|
|
36
|
-
class: "h-6 w-6 text-[var(--muted-fg)]",
|
|
37
|
-
"aria-hidden": "true"
|
|
38
|
-
})])]),
|
|
39
|
-
n("div", g, c(a.title), 1),
|
|
40
|
-
a.description ? (o(), t("div", _, c(a.description), 1)) : e("", !0),
|
|
41
|
-
i.$slots.default ? (o(), t("div", v, [s(i.$slots, "default")])) : e("", !0)
|
|
42
|
-
]));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
export { y as t };
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./arrow-up-B4OlmAKz.js";
|
|
2
|
-
import { l as t, u as n } from "./fileValidation-gR8aUBMZ.js";
|
|
3
|
-
import { Comment as r, Fragment as i, Text as a, computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as x } from "vue";
|
|
4
|
-
//#region src/components/DsFileUpload/DsFileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var S = [
|
|
6
|
-
"role",
|
|
7
|
-
"tabindex",
|
|
8
|
-
"aria-disabled"
|
|
9
|
-
], C = [
|
|
10
|
-
"name",
|
|
11
|
-
"multiple",
|
|
12
|
-
"disabled"
|
|
13
|
-
], w = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "flex items-start gap-4"
|
|
16
|
-
}, ee = {
|
|
17
|
-
class: "h-12 w-12 shrink-0 rounded-[12px] bg-[var(--muted)] border border-[var(--brd)] flex items-center justify-center",
|
|
18
|
-
"aria-hidden": "true"
|
|
19
|
-
}, T = { class: "min-w-0" }, E = { class: "text-[14px] font-700" }, D = {
|
|
20
|
-
key: 0,
|
|
21
|
-
class: "mt-1 text-[13px] ds-muted"
|
|
22
|
-
}, te = {
|
|
23
|
-
key: 1,
|
|
24
|
-
class: "mt-1 text-[13px] ds-muted"
|
|
25
|
-
}, ne = {
|
|
26
|
-
key: 2,
|
|
27
|
-
class: "mt-3 space-y-1"
|
|
28
|
-
}, O = { class: "font-600" }, k = { class: "ds-muted" }, A = /* @__PURE__ */ f({
|
|
29
|
-
__name: "DsFileUpload",
|
|
30
|
-
props: {
|
|
31
|
-
action: { default: void 0 },
|
|
32
|
-
request: {
|
|
33
|
-
type: Function,
|
|
34
|
-
default: void 0
|
|
35
|
-
},
|
|
36
|
-
name: { default: "file" },
|
|
37
|
-
multiple: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
},
|
|
41
|
-
limit: { default: void 0 },
|
|
42
|
-
onExceed: {
|
|
43
|
-
type: Function,
|
|
44
|
-
default: void 0
|
|
45
|
-
},
|
|
46
|
-
beforeUpload: {
|
|
47
|
-
type: Function,
|
|
48
|
-
default: void 0
|
|
49
|
-
},
|
|
50
|
-
validators: { default: void 0 },
|
|
51
|
-
disabled: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !1
|
|
54
|
-
},
|
|
55
|
-
headers: { default: void 0 },
|
|
56
|
-
withCredentials: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: !1
|
|
59
|
-
},
|
|
60
|
-
showFileList: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !1
|
|
63
|
-
},
|
|
64
|
-
uploadExtraData: {
|
|
65
|
-
type: Function,
|
|
66
|
-
default: void 0
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
emits: [
|
|
70
|
-
"success",
|
|
71
|
-
"error",
|
|
72
|
-
"progress",
|
|
73
|
-
"change"
|
|
74
|
-
],
|
|
75
|
-
setup(f, { expose: A, emit: j }) {
|
|
76
|
-
let M = f, N = j, P = x();
|
|
77
|
-
function F(e) {
|
|
78
|
-
let t = [];
|
|
79
|
-
for (let n of e) {
|
|
80
|
-
if (n.type === i && Array.isArray(n.children)) {
|
|
81
|
-
t.push(...F(n.children));
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
t.push(n);
|
|
85
|
-
}
|
|
86
|
-
return t;
|
|
87
|
-
}
|
|
88
|
-
function I(e) {
|
|
89
|
-
return e.type === a ? typeof e.children == "string" && e.children.trim().length === 0 : !1;
|
|
90
|
-
}
|
|
91
|
-
function L(e) {
|
|
92
|
-
let t = F(e).filter((e) => e.type !== r && !I(e));
|
|
93
|
-
if (t.length === 0) return !0;
|
|
94
|
-
for (let e of t) if (e.type !== a) return !1;
|
|
95
|
-
return !0;
|
|
96
|
-
}
|
|
97
|
-
let R = o(() => P.default ? F(P.default({})) : []), z = o(() => !!P.default && !L(R.value)), B = g(null), V = g(!1), H = 0, U = g([]), W = null, G = o(() => M.disabled ? -1 : 0), K = {
|
|
98
|
-
position: "fixed",
|
|
99
|
-
top: "-9999px",
|
|
100
|
-
left: "-9999px",
|
|
101
|
-
width: "1px",
|
|
102
|
-
height: "1px",
|
|
103
|
-
opacity: "0",
|
|
104
|
-
overflow: "hidden",
|
|
105
|
-
pointerEvents: "none"
|
|
106
|
-
};
|
|
107
|
-
function q(e) {
|
|
108
|
-
V.value !== e && (V.value = e);
|
|
109
|
-
}
|
|
110
|
-
function J() {
|
|
111
|
-
M.disabled || B.value?.click();
|
|
112
|
-
}
|
|
113
|
-
function Y() {
|
|
114
|
-
W?.abort(), W = null;
|
|
115
|
-
}
|
|
116
|
-
function X(e) {
|
|
117
|
-
if (typeof e == "number" && Number.isFinite(e) && !(e <= 0)) return Math.floor(e);
|
|
118
|
-
}
|
|
119
|
-
function Z(e, t) {
|
|
120
|
-
if (t) for (let [n, r] of Object.entries(t)) {
|
|
121
|
-
if (Array.isArray(r)) {
|
|
122
|
-
for (let t of r) e.append(n, t);
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
e.append(n, r);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
async function re(e, t, n) {
|
|
129
|
-
if (!M.action) throw Error("DsFileUpload: either `action` or `request` must be provided");
|
|
130
|
-
let r = new FormData();
|
|
131
|
-
for (let t of e) r.append(M.name, t);
|
|
132
|
-
Z(r, n);
|
|
133
|
-
let i = await fetch(M.action, {
|
|
134
|
-
method: "POST",
|
|
135
|
-
headers: M.headers,
|
|
136
|
-
body: r,
|
|
137
|
-
signal: t,
|
|
138
|
-
credentials: M.withCredentials ? "include" : "same-origin"
|
|
139
|
-
}), a = i.headers.get("content-type")?.includes("application/json") ? await i.json() : await i.text();
|
|
140
|
-
if (!i.ok) {
|
|
141
|
-
let e = /* @__PURE__ */ Error(`Upload failed with status ${i.status}`);
|
|
142
|
-
throw e.payload = a, e.status = i.status, e;
|
|
143
|
-
}
|
|
144
|
-
return a;
|
|
145
|
-
}
|
|
146
|
-
async function ie(e) {
|
|
147
|
-
if (!M.beforeUpload) return "ok";
|
|
148
|
-
for (let t of e) try {
|
|
149
|
-
let e = M.beforeUpload(t);
|
|
150
|
-
if (e === !1) return {
|
|
151
|
-
aborted: !0,
|
|
152
|
-
reason: /* @__PURE__ */ Error("Upload aborted by beforeUpload")
|
|
153
|
-
};
|
|
154
|
-
e && typeof e.then == "function" && await e;
|
|
155
|
-
} catch (e) {
|
|
156
|
-
return {
|
|
157
|
-
aborted: !0,
|
|
158
|
-
reason: e
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
return "ok";
|
|
162
|
-
}
|
|
163
|
-
async function Q(e, r = "input") {
|
|
164
|
-
if (M.disabled || !e.length) return;
|
|
165
|
-
let i = X(M.limit);
|
|
166
|
-
if (M.multiple && i && e.length > i) {
|
|
167
|
-
M.onExceed?.(e, i), N("error", /* @__PURE__ */ Error(`Too many files selected, limit=${i}`));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
let { files: a, issues: o } = await t(e, M.validators ?? [], {
|
|
171
|
-
source: r,
|
|
172
|
-
multiple: M.multiple
|
|
173
|
-
});
|
|
174
|
-
if (o.length > 0) {
|
|
175
|
-
N("error", new n(o, a));
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
if (!a.length) return;
|
|
179
|
-
U.value = a;
|
|
180
|
-
let s = await ie(a);
|
|
181
|
-
if (s !== "ok") {
|
|
182
|
-
N("error", s.reason);
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
let c;
|
|
186
|
-
try {
|
|
187
|
-
c = M.uploadExtraData?.(a);
|
|
188
|
-
} catch (e) {
|
|
189
|
-
N("error", e);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
Y();
|
|
193
|
-
let l = new AbortController();
|
|
194
|
-
W = l, N("progress", 0);
|
|
195
|
-
try {
|
|
196
|
-
N("success", M.request ? await M.request(a, {
|
|
197
|
-
signal: l.signal,
|
|
198
|
-
extraData: c
|
|
199
|
-
}) : await re(a, l.signal, c)), N("change", a), N("progress", 100);
|
|
200
|
-
} catch (e) {
|
|
201
|
-
N("error", e);
|
|
202
|
-
} finally {
|
|
203
|
-
W === l && (W = null);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
function ae(e) {
|
|
207
|
-
z.value || M.disabled || (e.preventDefault(), H += 1, q(!0));
|
|
208
|
-
}
|
|
209
|
-
function oe(e) {
|
|
210
|
-
z.value || M.disabled || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"));
|
|
211
|
-
}
|
|
212
|
-
function $(e) {
|
|
213
|
-
z.value || M.disabled || (e.preventDefault(), H = Math.max(0, H - 1), H === 0 && q(!1));
|
|
214
|
-
}
|
|
215
|
-
function se(e) {
|
|
216
|
-
z.value || M.disabled || (e.preventDefault(), H = 0, q(!1), Q(e.dataTransfer?.files ? Array.prototype.slice.call(e.dataTransfer.files) : [], "drop"));
|
|
217
|
-
}
|
|
218
|
-
async function ce(e) {
|
|
219
|
-
if (M.disabled) return;
|
|
220
|
-
let t = e.target, n = t?.files ? Array.prototype.slice.call(t.files) : [];
|
|
221
|
-
t && (t.value = ""), await p(), await Q(n, "input");
|
|
222
|
-
}
|
|
223
|
-
function le(e) {
|
|
224
|
-
z.value || M.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), J());
|
|
225
|
-
}
|
|
226
|
-
function ue() {
|
|
227
|
-
z.value || J();
|
|
228
|
-
}
|
|
229
|
-
function de(e) {
|
|
230
|
-
z.value || le(e);
|
|
231
|
-
}
|
|
232
|
-
return A({
|
|
233
|
-
uploadFiles: Q,
|
|
234
|
-
abort: Y,
|
|
235
|
-
openDialog: J
|
|
236
|
-
}), (t, n) => (h(), c("div", {
|
|
237
|
-
"data-ds-file-upload": "",
|
|
238
|
-
role: z.value ? void 0 : "button",
|
|
239
|
-
tabindex: z.value ? void 0 : G.value,
|
|
240
|
-
"aria-disabled": z.value ? void 0 : M.disabled ? "true" : "false",
|
|
241
|
-
class: m(z.value ? "inline-block" : [
|
|
242
|
-
"relative w-full rounded-[var(--ds-radius-lg)] border border-dashed border-[var(--brd)] bg-[var(--card)] px-5 py-6 outline-none transition",
|
|
243
|
-
M.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)]",
|
|
244
|
-
V.value && !M.disabled ? "border-[var(--ring)] bg-[var(--muted)]" : ""
|
|
245
|
-
]),
|
|
246
|
-
onClick: ue,
|
|
247
|
-
onKeydown: de,
|
|
248
|
-
onDragenter: ae,
|
|
249
|
-
onDragover: oe,
|
|
250
|
-
onDragleave: $,
|
|
251
|
-
onDrop: se
|
|
252
|
-
}, [l("input", {
|
|
253
|
-
ref_key: "inputRef",
|
|
254
|
-
ref: B,
|
|
255
|
-
"data-ds-file-upload-input": "",
|
|
256
|
-
style: K,
|
|
257
|
-
type: "file",
|
|
258
|
-
tabindex: "-1",
|
|
259
|
-
"aria-hidden": "true",
|
|
260
|
-
name: M.name,
|
|
261
|
-
multiple: M.multiple,
|
|
262
|
-
disabled: M.disabled,
|
|
263
|
-
onChange: ce
|
|
264
|
-
}, null, 40, C), z.value ? v(t.$slots, "default", {
|
|
265
|
-
key: 0,
|
|
266
|
-
openDialog: J,
|
|
267
|
-
abort: Y,
|
|
268
|
-
disabled: M.disabled,
|
|
269
|
-
files: U.value,
|
|
270
|
-
isOver: V.value
|
|
271
|
-
}) : (h(), c("div", w, [l("div", ee, [d(b(e), { class: "h-6 w-6 text-[var(--muted-fg)]" })]), l("div", T, [
|
|
272
|
-
l("div", E, [v(t.$slots, "label", {}, () => [v(t.$slots, "default", {}, () => [n[0] ||= u(" Перетащите файлы сюда или нажмите для выбора ", -1)])])]),
|
|
273
|
-
t.$slots.tip ? (h(), c("div", D, [v(t.$slots, "tip")])) : (h(), c("div", te)),
|
|
274
|
-
M.showFileList && U.value.length ? (h(), c("ul", ne, [(h(!0), c(i, null, _(U.value, (e) => (h(), c("li", {
|
|
275
|
-
key: e.name,
|
|
276
|
-
class: "text-[13px]"
|
|
277
|
-
}, [l("span", O, y(e.name), 1), l("span", k, " · " + y(Math.ceil(e.size / 1024)) + " KB", 1)]))), 128))])) : s("", !0)
|
|
278
|
-
])]))], 42, S));
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
//#endregion
|
|
282
|
-
export { A as t };
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./DsButton-CA18Fha-.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-DOgycIVc.js";
|
|
3
|
-
import { l as n, o as r, u as i } from "./fileValidation-gR8aUBMZ.js";
|
|
4
|
-
import { vDropzone as a } from "../directives/dropzone.js";
|
|
5
|
-
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode 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, watch as S, withCtx as C, withDirectives as w, withModifiers as T } from "vue";
|
|
6
|
-
//#region src/components/DsFormFile/DsFormFile.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var E = [
|
|
8
|
-
"multiple",
|
|
9
|
-
"accept",
|
|
10
|
-
"disabled"
|
|
11
|
-
], D = { class: "flex flex-col gap-2" }, O = { class: "flex flex-wrap items-center gap-3" }, k = { class: "ml-2" }, A = { class: "ml-2" }, j = { class: "ml-2" }, M = ["title"], N = {
|
|
12
|
-
key: 3,
|
|
13
|
-
class: "text-sm text-[var(--muted-fg)]",
|
|
14
|
-
"data-ds-form-file-placeholder": ""
|
|
15
|
-
}, P = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "flex flex-col gap-2"
|
|
18
|
-
}, F = ["title"], I = ["disabled", "onClick"], L = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "text-sm text-[var(--ds-danger)]",
|
|
21
|
-
"data-ds-form-file-errors": ""
|
|
22
|
-
}, R = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
23
|
-
name: "DsFormFile",
|
|
24
|
-
__name: "DsFormFile",
|
|
25
|
-
props: {
|
|
26
|
-
modelValue: {},
|
|
27
|
-
multiple: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
},
|
|
35
|
-
accept: { default: void 0 },
|
|
36
|
-
validators: { default: void 0 },
|
|
37
|
-
uploadText: { default: "Upload file" },
|
|
38
|
-
changeText: { default: "Change file" },
|
|
39
|
-
removeText: { default: "Remove" },
|
|
40
|
-
clearAllText: { default: "Clear all" },
|
|
41
|
-
placeholder: { default: "No files selected" },
|
|
42
|
-
validate: {
|
|
43
|
-
type: Function,
|
|
44
|
-
default: void 0
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
emits: [
|
|
48
|
-
"update:modelValue",
|
|
49
|
-
"change",
|
|
50
|
-
"clear",
|
|
51
|
-
"validation",
|
|
52
|
-
"update:errors"
|
|
53
|
-
],
|
|
54
|
-
setup(t, { emit: p }) {
|
|
55
|
-
let R = t, z = p, B = _(null), V = _([]), H = s(() => R.multiple ? Array.isArray(R.modelValue) ? R.modelValue : [] : R.modelValue instanceof File ? [R.modelValue] : []), U = s(() => H.value.length > 0);
|
|
56
|
-
function W() {
|
|
57
|
-
B.value && (B.value.value = "");
|
|
58
|
-
}
|
|
59
|
-
function G(e) {
|
|
60
|
-
V.value = e, z("validation", e), z("update:errors", e);
|
|
61
|
-
}
|
|
62
|
-
function K() {
|
|
63
|
-
V.value.length !== 0 && G([]);
|
|
64
|
-
}
|
|
65
|
-
function q() {
|
|
66
|
-
R.disabled || B.value?.click();
|
|
67
|
-
}
|
|
68
|
-
function J(e) {
|
|
69
|
-
let t = R.multiple ? e : e[0] ?? null;
|
|
70
|
-
z("update:modelValue", t), z("change", t);
|
|
71
|
-
}
|
|
72
|
-
async function Y(e) {
|
|
73
|
-
let t = (e) => !!e && typeof e.then == "function", i = R.validate ? async ({ files: e }) => await R.validate?.(e) ?? [] : void 0, a = n(e, [
|
|
74
|
-
r(R.accept),
|
|
75
|
-
...R.validators ?? [],
|
|
76
|
-
...i ? [i] : []
|
|
77
|
-
], {
|
|
78
|
-
source: "input",
|
|
79
|
-
multiple: R.multiple
|
|
80
|
-
}), { files: o, issues: s } = t(a) ? await a : a;
|
|
81
|
-
if (s.length > 0) {
|
|
82
|
-
G(s), W(), await m();
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
K(), J(o), W(), await m();
|
|
86
|
-
}
|
|
87
|
-
async function X(e) {
|
|
88
|
-
if (R.disabled) return;
|
|
89
|
-
let t = e.target, n = t?.files ? Array.prototype.slice.call(t.files) : [];
|
|
90
|
-
t && (t.value = ""), await m(), await Y(n);
|
|
91
|
-
}
|
|
92
|
-
function Z() {
|
|
93
|
-
R.disabled || (K(), W(), z("clear"), z("update:modelValue", R.multiple ? [] : null), z("change", R.multiple ? [] : null));
|
|
94
|
-
}
|
|
95
|
-
function Q(e) {
|
|
96
|
-
if (R.disabled) return;
|
|
97
|
-
if (!R.multiple) {
|
|
98
|
-
Z();
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
let t = H.value.slice();
|
|
102
|
-
t.splice(e, 1), z("update:modelValue", t), z("change", t);
|
|
103
|
-
}
|
|
104
|
-
function $(e) {
|
|
105
|
-
return e.fileName ? `${e.fileName}: ${e.message}` : e.message;
|
|
106
|
-
}
|
|
107
|
-
let ee = s(() => {
|
|
108
|
-
let e = R.validate ? async ({ files: e }) => await R.validate?.(e) ?? [] : void 0, t = [
|
|
109
|
-
r(R.accept),
|
|
110
|
-
...R.validators ?? [],
|
|
111
|
-
...e ? [e] : []
|
|
112
|
-
];
|
|
113
|
-
return {
|
|
114
|
-
enabled: !R.disabled,
|
|
115
|
-
multiple: R.multiple,
|
|
116
|
-
validators: t,
|
|
117
|
-
onFiles: async (e) => {
|
|
118
|
-
K(), J(e), W(), await m();
|
|
119
|
-
},
|
|
120
|
-
onError: (e) => {
|
|
121
|
-
e instanceof i ? G(e.issues) : G([{
|
|
122
|
-
code: "accept",
|
|
123
|
-
message: "Failed to validate dropped files"
|
|
124
|
-
}]);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
});
|
|
128
|
-
return S(() => R.modelValue, (e) => {
|
|
129
|
-
B.value && (!e || Array.isArray(e) && e.length === 0) && (B.value.value = "");
|
|
130
|
-
}), (t, n) => w((g(), u("div", {
|
|
131
|
-
"data-ds-form-file": "",
|
|
132
|
-
class: h(["rounded-[var(--ds-radius-md)]", R.disabled ? "opacity-60 cursor-not-allowed" : ""])
|
|
133
|
-
}, [d("input", {
|
|
134
|
-
ref_key: "inputRef",
|
|
135
|
-
ref: B,
|
|
136
|
-
"data-ds-form-file-input": "",
|
|
137
|
-
type: "file",
|
|
138
|
-
tabindex: "-1",
|
|
139
|
-
"aria-hidden": "true",
|
|
140
|
-
class: "absolute opacity-0 w-px h-px pointer-events-none",
|
|
141
|
-
multiple: R.multiple,
|
|
142
|
-
accept: R.accept,
|
|
143
|
-
disabled: R.disabled,
|
|
144
|
-
onChange: X
|
|
145
|
-
}, null, 40, E), d("div", D, [
|
|
146
|
-
d("div", O, [
|
|
147
|
-
f(e, {
|
|
148
|
-
variant: "secondary",
|
|
149
|
-
size: "sm",
|
|
150
|
-
"data-ds-form-file-upload-btn": "",
|
|
151
|
-
disabled: R.disabled,
|
|
152
|
-
onClick: T(q, ["prevent"])
|
|
153
|
-
}, {
|
|
154
|
-
default: C(() => [n[0] ||= d("span", {
|
|
155
|
-
class: "i-lucide-upload",
|
|
156
|
-
"aria-hidden": "true"
|
|
157
|
-
}, null, -1), d("span", k, b(U.value ? R.changeText : R.uploadText), 1)]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 8, ["disabled"]),
|
|
160
|
-
U.value && !R.multiple ? (g(), c(e, {
|
|
161
|
-
key: 0,
|
|
162
|
-
variant: "secondary",
|
|
163
|
-
size: "sm",
|
|
164
|
-
"data-ds-form-file-clear-btn": "",
|
|
165
|
-
disabled: R.disabled,
|
|
166
|
-
onClick: T(Z, ["prevent"])
|
|
167
|
-
}, {
|
|
168
|
-
default: C(() => [n[1] ||= d("span", {
|
|
169
|
-
class: "i-lucide-x",
|
|
170
|
-
"aria-hidden": "true"
|
|
171
|
-
}, null, -1), d("span", A, b(R.removeText), 1)]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["disabled"])) : l("", !0),
|
|
174
|
-
R.multiple && U.value ? (g(), c(e, {
|
|
175
|
-
key: 1,
|
|
176
|
-
variant: "secondary",
|
|
177
|
-
size: "sm",
|
|
178
|
-
"data-ds-form-file-clear-all-btn": "",
|
|
179
|
-
disabled: R.disabled,
|
|
180
|
-
onClick: T(Z, ["prevent"])
|
|
181
|
-
}, {
|
|
182
|
-
default: C(() => [n[2] ||= d("span", {
|
|
183
|
-
class: "i-lucide-x",
|
|
184
|
-
"aria-hidden": "true"
|
|
185
|
-
}, null, -1), d("span", j, b(R.clearAllText), 1)]),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["disabled"])) : l("", !0),
|
|
188
|
-
!R.multiple && U.value ? (g(), u("span", {
|
|
189
|
-
key: 2,
|
|
190
|
-
class: "text-sm text-[var(--muted-fg)] truncate max-w-[240px]",
|
|
191
|
-
"data-ds-form-file-single-name": "",
|
|
192
|
-
title: H.value[0]?.name
|
|
193
|
-
}, b(H.value[0]?.name), 9, M)) : l("", !0),
|
|
194
|
-
U.value ? l("", !0) : (g(), u("span", N, b(R.placeholder), 1))
|
|
195
|
-
]),
|
|
196
|
-
R.multiple && U.value ? (g(), u("div", P, [(g(!0), u(o, null, v(H.value, (e, t) => (g(), u("div", {
|
|
197
|
-
key: `${e.name}-${e.size}-${t}`,
|
|
198
|
-
class: "flex items-center gap-2",
|
|
199
|
-
"data-ds-form-file-item": ""
|
|
200
|
-
}, [d("span", {
|
|
201
|
-
class: "text-sm text-[var(--muted-fg)] truncate max-w-[240px]",
|
|
202
|
-
title: e.name,
|
|
203
|
-
"data-ds-form-file-item-name": ""
|
|
204
|
-
}, b(e.name), 9, F), d("button", {
|
|
205
|
-
type: "button",
|
|
206
|
-
class: "text-xs text-[var(--muted-fg)] hover:text-[var(--fg)]",
|
|
207
|
-
"data-ds-form-file-item-remove": "",
|
|
208
|
-
disabled: R.disabled,
|
|
209
|
-
onClick: T((e) => Q(t), ["prevent"])
|
|
210
|
-
}, b(R.removeText), 9, I)]))), 128))])) : l("", !0),
|
|
211
|
-
y(t.$slots, "errors", { errors: V.value }, () => [V.value.length ? (g(), u("div", L, [(g(!0), u(o, null, v(V.value, (e, t) => (g(), u("div", {
|
|
212
|
-
key: t,
|
|
213
|
-
"data-ds-form-file-error": ""
|
|
214
|
-
}, b($(e)), 1))), 128))])) : l("", !0)], !0)
|
|
215
|
-
])], 2)), [[x(a), ee.value]]);
|
|
216
|
-
}
|
|
217
|
-
}), [["__scopeId", "data-v-27690289"]]);
|
|
218
|
-
//#endregion
|
|
219
|
-
export { R as t };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, defineComponent as r, openBlock as i, renderSlot as a, toDisplayString as o } from "vue";
|
|
2
|
-
//#region src/components/DsFormSection/DsFormSection.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var s = { class: "grid gap-4" }, c = { class: "text-[14px] font-700" }, l = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "mt-1 text-[13px] ds-muted"
|
|
6
|
-
}, u = /* @__PURE__ */ r({
|
|
7
|
-
__name: "DsFormSection",
|
|
8
|
-
props: {
|
|
9
|
-
title: {},
|
|
10
|
-
description: { default: void 0 }
|
|
11
|
-
},
|
|
12
|
-
setup(r) {
|
|
13
|
-
let u = r;
|
|
14
|
-
return (r, d) => (i(), t("section", s, [n("div", null, [n("div", c, o(u.title), 1), u.description ? (i(), t("div", l, o(u.description), 1)) : e("", !0)]), a(r.$slots, "default")]));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
//#endregion
|
|
18
|
-
export { u as t };
|