@feugene/granularity 0.1.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/types/src/vue/index.d.ts +2 -0
- package/dist/types/src/vue/plugin.d.ts +92 -0
- package/dist/vue/index.js +47 -0
- package/package.json +73 -139
- 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 -293
- 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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { n as e, r as t, t as n } from "../../../chunks/x-circle-ChJ87u1v.js";
|
|
2
|
+
import { t as r } from "../../../chunks/info-CNJnuTYC.js";
|
|
3
|
+
import { t as i } from "../../../chunks/x--kxrj3ez.js";
|
|
4
|
+
import { t as a } from "../../DsButton/chunks/DsButton-9cB_fHZt.js";
|
|
5
|
+
import { t as o } from "../../DsIcon/chunks/DsIcon-Bk6qc4Kh.js";
|
|
6
|
+
import { r as s } from "../../../chunks/config-DwsSjSb4.js";
|
|
7
|
+
import { Fragment as c, Teleport as l, TransitionGroup as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, openBlock as b, reactive as x, renderList as S, resolveDynamicComponent as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
|
|
8
|
+
//#region src/composables/useToast.ts
|
|
9
|
+
var D = x([]), O = /* @__PURE__ */ new Map(), k = 3500;
|
|
10
|
+
function A() {
|
|
11
|
+
return `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
12
|
+
}
|
|
13
|
+
function j(e) {
|
|
14
|
+
let t = O.get(e);
|
|
15
|
+
t !== void 0 && (clearTimeout(t), O.delete(e));
|
|
16
|
+
}
|
|
17
|
+
function M() {
|
|
18
|
+
let e = d(() => D);
|
|
19
|
+
function t(e) {
|
|
20
|
+
let t = A(), r = {
|
|
21
|
+
id: t,
|
|
22
|
+
title: e.title,
|
|
23
|
+
message: e.message,
|
|
24
|
+
variant: e.variant ?? "info"
|
|
25
|
+
};
|
|
26
|
+
D.unshift(r);
|
|
27
|
+
let i = e.timeoutMs ?? k;
|
|
28
|
+
if (i > 0 && typeof window < "u") {
|
|
29
|
+
let e = window.setTimeout(() => {
|
|
30
|
+
O.delete(t), n(t);
|
|
31
|
+
}, i);
|
|
32
|
+
O.set(t, e);
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
function n(e) {
|
|
37
|
+
j(e);
|
|
38
|
+
let t = D.findIndex((t) => t.id === e);
|
|
39
|
+
t >= 0 && D.splice(t, 1);
|
|
40
|
+
}
|
|
41
|
+
function r() {
|
|
42
|
+
for (let e of O.keys()) j(e);
|
|
43
|
+
D.splice(0, D.length);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
list: e,
|
|
47
|
+
push: t,
|
|
48
|
+
dismiss: n,
|
|
49
|
+
clear: r
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/DsToaster/DsToaster.vue?vue&type=script&setup=true&lang.ts
|
|
54
|
+
var N = ["aria-label"], P = [
|
|
55
|
+
"data-variant",
|
|
56
|
+
"role",
|
|
57
|
+
"aria-live"
|
|
58
|
+
], F = { class: "flex items-start gap-3" }, I = { class: "min-w-0 flex-1" }, L = { class: "text-[13px] font-700" }, R = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "mt-0.5 text-[13px] text-[var(--muted-fg)]"
|
|
61
|
+
}, z = /* @__PURE__ */ _({
|
|
62
|
+
__name: "DsToaster",
|
|
63
|
+
props: {
|
|
64
|
+
placement: { default: "top-right" },
|
|
65
|
+
dismissLabel: { default: "Dismiss" },
|
|
66
|
+
regionLabel: { default: "Notifications" }
|
|
67
|
+
},
|
|
68
|
+
setup(_) {
|
|
69
|
+
let x = {
|
|
70
|
+
info: {
|
|
71
|
+
icon: r,
|
|
72
|
+
color: "var(--ds-info)",
|
|
73
|
+
role: "status",
|
|
74
|
+
live: "polite"
|
|
75
|
+
},
|
|
76
|
+
success: {
|
|
77
|
+
icon: e,
|
|
78
|
+
color: "var(--ds-success)",
|
|
79
|
+
role: "status",
|
|
80
|
+
live: "polite"
|
|
81
|
+
},
|
|
82
|
+
warning: {
|
|
83
|
+
icon: t,
|
|
84
|
+
color: "var(--ds-warning)",
|
|
85
|
+
role: "alert",
|
|
86
|
+
live: "assertive"
|
|
87
|
+
},
|
|
88
|
+
danger: {
|
|
89
|
+
icon: n,
|
|
90
|
+
color: "var(--ds-danger)",
|
|
91
|
+
role: "alert",
|
|
92
|
+
live: "assertive"
|
|
93
|
+
}
|
|
94
|
+
}, D = _, { list: O, dismiss: k } = M(), A = typeof window < "u";
|
|
95
|
+
function j(e) {
|
|
96
|
+
return x[e] ?? x.info;
|
|
97
|
+
}
|
|
98
|
+
let z = d(() => s[D.placement]);
|
|
99
|
+
return (e, t) => (b(), f(l, {
|
|
100
|
+
to: "body",
|
|
101
|
+
disabled: !A
|
|
102
|
+
}, [h("div", {
|
|
103
|
+
"data-ds-toaster": "",
|
|
104
|
+
role: "region",
|
|
105
|
+
"aria-label": _.regionLabel,
|
|
106
|
+
class: v(["fixed z-[60] grid w-[360px] max-w-[calc(100vw-2rem)] gap-3", z.value])
|
|
107
|
+
}, [g(u, {
|
|
108
|
+
tag: "div",
|
|
109
|
+
class: "grid gap-3",
|
|
110
|
+
"enter-active-class": "transition duration-200 ease-out",
|
|
111
|
+
"enter-from-class": "opacity-0 translate-y-2",
|
|
112
|
+
"enter-to-class": "opacity-100 translate-y-0",
|
|
113
|
+
"leave-active-class": "transition duration-150 ease-in absolute",
|
|
114
|
+
"leave-from-class": "opacity-100 translate-y-0",
|
|
115
|
+
"leave-to-class": "opacity-0 translate-y-2",
|
|
116
|
+
"move-class": "transition-transform duration-200 ease-out"
|
|
117
|
+
}, {
|
|
118
|
+
default: E(() => [(b(!0), m(c, null, S(T(O), (e) => (b(), m("div", {
|
|
119
|
+
key: e.id,
|
|
120
|
+
"data-ds-toast": "",
|
|
121
|
+
"data-variant": e.variant,
|
|
122
|
+
role: j(e.variant).role,
|
|
123
|
+
"aria-live": j(e.variant).live,
|
|
124
|
+
"aria-atomic": "true",
|
|
125
|
+
class: "rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)] px-4 py-3 shadow-[var(--ds-shadow-2)]"
|
|
126
|
+
}, [h("div", F, [
|
|
127
|
+
g(T(o), {
|
|
128
|
+
size: "md",
|
|
129
|
+
class: "mt-0.5",
|
|
130
|
+
style: y({ color: j(e.variant).color }),
|
|
131
|
+
"aria-hidden": "true"
|
|
132
|
+
}, {
|
|
133
|
+
default: E(() => [(b(), f(C(j(e.variant).icon)))]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1032, ["style"]),
|
|
136
|
+
h("div", I, [h("div", L, w(e.title), 1), e.message ? (b(), m("div", R, w(e.message), 1)) : p("", !0)]),
|
|
137
|
+
g(T(a), {
|
|
138
|
+
variant: "ghost",
|
|
139
|
+
size: "sm",
|
|
140
|
+
square: "",
|
|
141
|
+
"aria-label": _.dismissLabel,
|
|
142
|
+
onClick: (t) => T(k)(e.id)
|
|
143
|
+
}, {
|
|
144
|
+
default: E(() => [g(T(o), {
|
|
145
|
+
size: "sm",
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
}, {
|
|
148
|
+
default: E(() => [g(T(i))]),
|
|
149
|
+
_: 1
|
|
150
|
+
})]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["aria-label", "onClick"])
|
|
153
|
+
])], 8, P))), 128))]),
|
|
154
|
+
_: 1
|
|
155
|
+
})], 10, N)], 8, ["disabled"]));
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
//#endregion
|
|
159
|
+
export { M as n, z as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import { n as t, t as n } from "../../chunks/config-
|
|
1
|
+
import { t as e } from "./chunks/DsToaster-KO8wZChw.js";
|
|
2
|
+
import { n as t, t as n } from "../../chunks/config-DwsSjSb4.js";
|
|
3
3
|
export { e as DsToaster, e as default, n as dsToasterConfig, t as dsToasterSafelist };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "../../../chunks/info-CNJnuTYC.js";
|
|
2
|
+
import { t } from "../../DsIcon/chunks/DsIcon-Bk6qc4Kh.js";
|
|
3
|
+
import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d, useId as f, withCtx as p } from "vue";
|
|
4
|
+
//#region src/components/DsTooltip/DsTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var m = {
|
|
6
|
+
"data-ds-tooltip": "",
|
|
7
|
+
class: "group relative inline-flex"
|
|
8
|
+
}, h = /* @__PURE__ */ o({
|
|
9
|
+
__name: "DsTooltip",
|
|
10
|
+
props: {
|
|
11
|
+
text: {},
|
|
12
|
+
iconColor: { default: "var(--muted-fg)" }
|
|
13
|
+
},
|
|
14
|
+
setup(o) {
|
|
15
|
+
let h = o, g = `ds-tooltip-${f()}`, _ = n(() => ({ color: h.iconColor }));
|
|
16
|
+
return (n, f) => (c(), r("span", m, [i("span", {
|
|
17
|
+
"data-ds-tooltip-trigger": "",
|
|
18
|
+
"data-testid": "ds-tooltip-trigger",
|
|
19
|
+
tabindex: "0",
|
|
20
|
+
"aria-describedby": g,
|
|
21
|
+
class: "inline-flex items-center justify-center focus:outline-none",
|
|
22
|
+
style: s(_.value)
|
|
23
|
+
}, [l(n.$slots, "default", {}, () => [a(d(t), {
|
|
24
|
+
size: "sm",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, {
|
|
27
|
+
default: p(() => [a(d(e))]),
|
|
28
|
+
_: 1
|
|
29
|
+
})])], 4), i("span", {
|
|
30
|
+
id: g,
|
|
31
|
+
role: "tooltip",
|
|
32
|
+
class: "pointer-events-none absolute bottom-[calc(100%+8px)] left-1/2 z-10 -translate-x-1/2 whitespace-nowrap rounded-md border border-[var(--brd)] bg-[var(--popover)] px-2 py-1 text-[12px] text-[var(--popover-fg)] opacity-0 shadow-[var(--ds-shadow-1)] transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100"
|
|
33
|
+
}, u(o.text), 1)]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { h as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsTooltip, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsTooltip-BNkQOtpm.js";
|
|
2
|
+
import { t } from "../../chunks/config-BWJ22IjI2.js";
|
|
3
|
+
export { e as DsTooltip, e as default, t as dsTooltipConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "
|
|
1
|
+
import { t as e } from "../../../chunks/_plugin-vue_export-helper-CHO2XVys.js";
|
|
2
2
|
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, openBlock as d, ref as f, renderList as p, renderSlot as m, resolveComponent as h, shallowRef as g, toDisplayString as _, toValue as v, unref as y, watch as b, withCtx as x, withModifiers as S } from "vue";
|
|
3
|
-
|
|
3
|
+
import '../../../DsTree.css';//#region src/components/DsTree/dsTreeDataAdapter.ts
|
|
4
4
|
var C = "children", w = "label";
|
|
5
5
|
function T(e) {
|
|
6
6
|
return typeof e == "string" || typeof e == "number";
|
|
@@ -266,13 +266,17 @@ function k(e) {
|
|
|
266
266
|
}
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region src/components/DsTree/DsTree.vue?vue&type=script&setup=true&lang.ts
|
|
269
|
-
var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
269
|
+
var A = ["data-ds-tree", "role"], j = ["aria-level", "aria-expanded"], M = [
|
|
270
270
|
"onClick",
|
|
271
271
|
"onDrop",
|
|
272
272
|
"onDragover",
|
|
273
273
|
"onMouseenter",
|
|
274
274
|
"onMouseleave"
|
|
275
|
-
], N = [
|
|
275
|
+
], N = [
|
|
276
|
+
"aria-label",
|
|
277
|
+
"draggable",
|
|
278
|
+
"onDragstart"
|
|
279
|
+
], P = ["aria-label", "onClick"], F = { class: "ds-tree__label" }, I = { class: "ds-tree__label" }, L = "var(--ds-tree-branch-line-default-color, #e2e8f0)", R = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
276
280
|
name: "DsTree",
|
|
277
281
|
__name: "DsTree",
|
|
278
282
|
props: {
|
|
@@ -372,6 +376,9 @@ var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
|
372
376
|
],
|
|
373
377
|
default: void 0
|
|
374
378
|
},
|
|
379
|
+
dragLabel: { default: "Drag" },
|
|
380
|
+
expandLabel: { default: "Expand" },
|
|
381
|
+
collapseLabel: { default: "Collapse" },
|
|
375
382
|
draggable: {
|
|
376
383
|
type: Boolean,
|
|
377
384
|
default: !1
|
|
@@ -521,14 +528,17 @@ var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
|
521
528
|
}), (e, n) => {
|
|
522
529
|
let s = h("DsTree", !0);
|
|
523
530
|
return d(), i("div", {
|
|
531
|
+
"data-ds-tree": g.internalNested ? void 0 : "",
|
|
524
532
|
class: l(g.internalNested ? "ds-tree__children" : "ds-tree"),
|
|
525
533
|
role: g.internalNested ? "group" : "tree"
|
|
526
534
|
}, [(d(!0), i(t, null, p(B.value, (t) => (d(), i("div", {
|
|
527
535
|
key: t.node.key,
|
|
536
|
+
"data-ds-tree-node": "",
|
|
528
537
|
role: "treeitem",
|
|
529
538
|
"aria-level": t.node.level,
|
|
530
539
|
"aria-expanded": t.isLeaf ? void 0 : t.isExpanded
|
|
531
540
|
}, [a("div", {
|
|
541
|
+
"data-ds-tree-row": "",
|
|
532
542
|
class: l(["ds-tree__row py-2 px-2", [
|
|
533
543
|
y(T).highlightCurrent && y(E) === t.node.key ? "ds-tree__row--current" : "",
|
|
534
544
|
t.isMatched ? "ds-tree__row--matched" : "",
|
|
@@ -547,12 +557,13 @@ var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
|
547
557
|
y(T).draggable ? (d(), i("button", {
|
|
548
558
|
key: 0,
|
|
549
559
|
type: "button",
|
|
560
|
+
"data-ds-tree-drag-handle": "",
|
|
550
561
|
class: l(["ds-tree__drag-handle", [
|
|
551
562
|
K(t.node) ? "ds-tree__drag-handle--visible" : "",
|
|
552
563
|
G(t.node) ? "" : "ds-tree__drag-handle--disabled",
|
|
553
564
|
Q(y(T).dragHandleClass, t)
|
|
554
565
|
]]),
|
|
555
|
-
"aria-label":
|
|
566
|
+
"aria-label": y(T).dragLabel,
|
|
556
567
|
draggable: G(t.node),
|
|
557
568
|
onClick: n[0] ||= S(() => {}, ["stop"]),
|
|
558
569
|
onMousedown: n[1] ||= S(() => {}, ["stop"]),
|
|
@@ -564,9 +575,10 @@ var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
|
564
575
|
class: l(["ds-tree__toggle-spacer", Q(y(T).toggleSpacerClass, t)])
|
|
565
576
|
}, null, 2)) : (d(), i("button", {
|
|
566
577
|
key: 1,
|
|
578
|
+
"data-ds-tree-toggle": "",
|
|
567
579
|
type: "button",
|
|
568
580
|
class: l(["ds-tree__toggle", Q(y(T).toggleClass, t)]),
|
|
569
|
-
"aria-label": t.isExpanded ?
|
|
581
|
+
"aria-label": t.isExpanded ? y(T).collapseLabel : y(T).expandLabel,
|
|
570
582
|
onClick: S((e) => W(t.node), ["stop"])
|
|
571
583
|
}, [a("span", { class: l(["ds-tree__toggle-icon", [
|
|
572
584
|
t.isExpanded ? y(T).collapseIcon : y(T).expandIcon,
|
|
@@ -597,6 +609,6 @@ var A = ["role"], j = ["aria-level", "aria-expanded"], M = [
|
|
|
597
609
|
])], 6)) : r("", !0)], 8, j))), 128))], 10, A);
|
|
598
610
|
};
|
|
599
611
|
}
|
|
600
|
-
}), [["__scopeId", "data-v-
|
|
612
|
+
}), [["__scopeId", "data-v-b4b26a0c"]]);
|
|
601
613
|
//#endregion
|
|
602
614
|
export { R as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import { n as t, t as n } from "../../chunks/config-
|
|
1
|
+
import { t as e } from "./chunks/DsTree-DK0aOkKS.js";
|
|
2
|
+
import { n as t, t as n } from "../../chunks/config-YyVxx9dW.js";
|
|
3
3
|
export { e as DsTree, e as default, n as dsTreeConfig, t as dsTreeSafelist };
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { a as e } from "../../../chunks/directives-K8Vo0VhP.js";
|
|
2
|
+
import { t } from "../../DsInput/chunks/DsInput-B8RhHkKQ.js";
|
|
3
|
+
import { t as n } from "../../../chunks/granularityI18n-DYNnonoE.js";
|
|
4
|
+
import { t as r } from "../../DsTree/chunks/DsTree-DK0aOkKS.js";
|
|
5
|
+
import { i, r as a } from "../../../chunks/config-C7KNHOmN.js";
|
|
6
|
+
import { Teleport as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as ee, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onUnmounted as te, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, unref as S, vShow as ne, watch as C, withCtx as w, withDirectives as T, withModifiers as re } from "vue";
|
|
7
|
+
//#region src/components/DsTreeSelect/DsTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var ie = { class: "relative" }, ae = [
|
|
9
|
+
"value",
|
|
10
|
+
"placeholder",
|
|
11
|
+
"disabled",
|
|
12
|
+
"aria-expanded",
|
|
13
|
+
"aria-invalid"
|
|
14
|
+
], oe = ["disabled", "aria-label"], se = {
|
|
15
|
+
key: 1,
|
|
16
|
+
"data-testid": "ds-tree-select-chevron",
|
|
17
|
+
"data-ds-tree-select-chevron": "",
|
|
18
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 text-[var(--muted-fg)] pointer-events-none"
|
|
19
|
+
}, ce = {
|
|
20
|
+
key: 2,
|
|
21
|
+
class: "absolute inset-y-0 left-3 right-9 flex items-center pointer-events-none"
|
|
22
|
+
}, le = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "p-2 border-b border-[var(--brd)]"
|
|
25
|
+
}, ue = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "px-3 py-2 text-[13px] text-[var(--muted-fg)]"
|
|
28
|
+
}, de = { class: "flex items-center gap-2 min-w-0" }, fe = { class: "truncate" }, E = /* @__PURE__ */ m({
|
|
29
|
+
__name: "DsTreeSelect",
|
|
30
|
+
props: {
|
|
31
|
+
modelValue: {},
|
|
32
|
+
data: {},
|
|
33
|
+
props: { default: () => ({
|
|
34
|
+
children: "children",
|
|
35
|
+
label: "label"
|
|
36
|
+
}) },
|
|
37
|
+
nodeKey: { default: "id" },
|
|
38
|
+
defaultExpandedKeys: { default: () => [] },
|
|
39
|
+
disabled: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
placeholder: { default: void 0 },
|
|
44
|
+
size: { default: "md" },
|
|
45
|
+
invalid: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
state: { default: "default" },
|
|
50
|
+
multiple: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
clearable: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
valueDisplay: { default: "label" },
|
|
59
|
+
filterable: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
filterPlaceholder: { default: void 0 },
|
|
64
|
+
filterInputmode: { default: void 0 },
|
|
65
|
+
filterNodeMethod: {
|
|
66
|
+
type: Function,
|
|
67
|
+
default: void 0
|
|
68
|
+
},
|
|
69
|
+
closeOnSelect: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: void 0
|
|
72
|
+
},
|
|
73
|
+
dropdownMaxHeight: { default: 320 }
|
|
74
|
+
},
|
|
75
|
+
emits: [
|
|
76
|
+
"update:modelValue",
|
|
77
|
+
"change",
|
|
78
|
+
"visibleChange",
|
|
79
|
+
"clear",
|
|
80
|
+
"nodeClick"
|
|
81
|
+
],
|
|
82
|
+
setup(m, { emit: E }) {
|
|
83
|
+
let D = m, { t: O } = n(), k = E, A = y(null), j = y(null), M = y(null), N = y(null), P = y(null), pe = [() => P.value], F = !1, I = y(!1), L = y(""), R = y({
|
|
84
|
+
left: "0px",
|
|
85
|
+
top: "0px",
|
|
86
|
+
width: "0px",
|
|
87
|
+
zIndex: "2147483647"
|
|
88
|
+
});
|
|
89
|
+
function z() {
|
|
90
|
+
if (typeof window > "u") return;
|
|
91
|
+
let e = A.value;
|
|
92
|
+
if (!e) return;
|
|
93
|
+
let t = e.getBoundingClientRect();
|
|
94
|
+
R.value = {
|
|
95
|
+
left: `${t.left}px`,
|
|
96
|
+
top: `${t.bottom + 8}px`,
|
|
97
|
+
width: `${t.width}px`,
|
|
98
|
+
zIndex: "2147483647"
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function me() {
|
|
102
|
+
typeof window > "u" || (window.addEventListener("resize", z), window.addEventListener("scroll", z, !0));
|
|
103
|
+
}
|
|
104
|
+
function B() {
|
|
105
|
+
typeof window > "u" || (window.removeEventListener("resize", z), window.removeEventListener("scroll", z, !0));
|
|
106
|
+
}
|
|
107
|
+
let V = c(() => D.closeOnSelect ?? !D.multiple);
|
|
108
|
+
function he() {
|
|
109
|
+
return D.props.children ?? "children";
|
|
110
|
+
}
|
|
111
|
+
function ge() {
|
|
112
|
+
return D.props.label ?? "label";
|
|
113
|
+
}
|
|
114
|
+
function H(e) {
|
|
115
|
+
let t = e[ge()];
|
|
116
|
+
return t == null ? "" : String(t);
|
|
117
|
+
}
|
|
118
|
+
function U(e) {
|
|
119
|
+
let t = e[he()];
|
|
120
|
+
return Array.isArray(t) ? t : [];
|
|
121
|
+
}
|
|
122
|
+
function W(e, t, n) {
|
|
123
|
+
return e[D.nodeKey] ?? (n == null ? t : `${String(n)}:${t}`);
|
|
124
|
+
}
|
|
125
|
+
let _e = c(() => {
|
|
126
|
+
let e = /* @__PURE__ */ new Map(), t = (n, r) => {
|
|
127
|
+
for (let i = 0; i < n.length; i++) {
|
|
128
|
+
let a = n[i], o = W(a, i, r);
|
|
129
|
+
e.set(o, H(a)), t(U(a), o);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
return t(D.data ?? [], void 0), e;
|
|
133
|
+
}), ve = c(() => {
|
|
134
|
+
let e = /* @__PURE__ */ new Map(), t = (n, r, i) => {
|
|
135
|
+
for (let a = 0; a < n.length; a++) {
|
|
136
|
+
let o = n[a], s = W(o, a, r), c = H(o), l = [...i, c];
|
|
137
|
+
e.set(s, l), t(U(o), s, l);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
return t(D.data ?? [], void 0, []), e;
|
|
141
|
+
}), G = c(() => {
|
|
142
|
+
if (D.multiple) return Array.isArray(D.modelValue) ? D.modelValue : [];
|
|
143
|
+
let e = D.modelValue;
|
|
144
|
+
return e == null || Array.isArray(e) ? [] : [e];
|
|
145
|
+
}), K = c(() => new Set(G.value)), q = c(() => {
|
|
146
|
+
let e = _e.value;
|
|
147
|
+
return G.value.map((t) => e.get(t) ?? String(t));
|
|
148
|
+
}), J = c(() => {
|
|
149
|
+
if (D.multiple) return;
|
|
150
|
+
let e = G.value[0];
|
|
151
|
+
if (e == null) return;
|
|
152
|
+
let t = ve.value.get(e);
|
|
153
|
+
if (t?.length) return t;
|
|
154
|
+
let n = q.value;
|
|
155
|
+
return n.length ? [n[0]] : void 0;
|
|
156
|
+
}), ye = c(() => {
|
|
157
|
+
let e = q.value;
|
|
158
|
+
if (e.length === 0) return "";
|
|
159
|
+
if (!D.multiple) {
|
|
160
|
+
if (D.valueDisplay === "path") {
|
|
161
|
+
let e = J.value;
|
|
162
|
+
if (e?.length) return e.join(" / ");
|
|
163
|
+
}
|
|
164
|
+
return e[0];
|
|
165
|
+
}
|
|
166
|
+
return e.length === 1 ? e[0] : `${e[0]} +${e.length - 1}`;
|
|
167
|
+
}), be = c(() => G.value.length > 0), xe = c(() => D.filterPlaceholder ?? O("ds.treeSelect.filterPlaceholder", "Search…")), Se = c(() => a({
|
|
168
|
+
size: D.size,
|
|
169
|
+
state: D.state,
|
|
170
|
+
invalid: D.invalid
|
|
171
|
+
})), Ce = c(() => i);
|
|
172
|
+
function Y(e) {
|
|
173
|
+
D.disabled || I.value !== e && (I.value = e, k("visibleChange", e));
|
|
174
|
+
}
|
|
175
|
+
function we() {
|
|
176
|
+
Y(!1);
|
|
177
|
+
}
|
|
178
|
+
function X() {
|
|
179
|
+
Y(!0);
|
|
180
|
+
}
|
|
181
|
+
function Z() {
|
|
182
|
+
Y(!1);
|
|
183
|
+
}
|
|
184
|
+
function Te() {
|
|
185
|
+
Y(!I.value);
|
|
186
|
+
}
|
|
187
|
+
function Ee() {
|
|
188
|
+
F = !0, typeof window < "u" ? window.setTimeout(() => {
|
|
189
|
+
F = !1;
|
|
190
|
+
}, 0) : F = !1;
|
|
191
|
+
}
|
|
192
|
+
function De() {
|
|
193
|
+
F || X();
|
|
194
|
+
}
|
|
195
|
+
function Q(e) {
|
|
196
|
+
e.key === "Escape" && (Z(), h(() => j.value?.focus()));
|
|
197
|
+
}
|
|
198
|
+
C(I, async (e) => {
|
|
199
|
+
if (!(typeof document > "u") && (document.removeEventListener("keydown", Q), B(), e && document.addEventListener("keydown", Q), e)) {
|
|
200
|
+
if (me(), await h(), z(), !D.multiple) {
|
|
201
|
+
let e = D.modelValue;
|
|
202
|
+
e != null && !Array.isArray(e) && N.value?.setCurrentKey(e);
|
|
203
|
+
}
|
|
204
|
+
D.filterable && (await h(), M.value?.focus());
|
|
205
|
+
}
|
|
206
|
+
}, { immediate: !0 }), te(() => {
|
|
207
|
+
typeof document > "u" || (document.removeEventListener("keydown", Q), B());
|
|
208
|
+
}), C(() => D.modelValue, (e) => {
|
|
209
|
+
if (!D.multiple) {
|
|
210
|
+
if (e == null || Array.isArray(e)) {
|
|
211
|
+
N.value?.setCurrentKey(void 0);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
N.value?.setCurrentKey(e);
|
|
215
|
+
}
|
|
216
|
+
}), C(L, (e) => {
|
|
217
|
+
N.value?.filter(e);
|
|
218
|
+
}), C(I, (e) => {
|
|
219
|
+
e || L.value.trim().length > 0 && (L.value = "");
|
|
220
|
+
});
|
|
221
|
+
function $(e) {
|
|
222
|
+
k("update:modelValue", e), k("change", e);
|
|
223
|
+
}
|
|
224
|
+
function Oe() {
|
|
225
|
+
D.disabled || ($(D.multiple ? [] : null), k("clear"), D.multiple || N.value?.setCurrentKey(void 0));
|
|
226
|
+
}
|
|
227
|
+
function ke(e) {
|
|
228
|
+
D.disabled || ((e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), X()), e.key === "Escape" && (e.preventDefault(), Z()));
|
|
229
|
+
}
|
|
230
|
+
function Ae(e, t) {
|
|
231
|
+
if (k("nodeClick", e, t), !D.disabled) {
|
|
232
|
+
if (D.multiple) {
|
|
233
|
+
let e = new Set(K.value);
|
|
234
|
+
e.has(t.key) ? e.delete(t.key) : e.add(t.key), $([...e]), V.value && Z();
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
$(t.key), V.value && Z();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return (n, i) => T((v(), d("div", {
|
|
241
|
+
ref_key: "rootEl",
|
|
242
|
+
ref: A,
|
|
243
|
+
"data-ds-tree-select": "",
|
|
244
|
+
class: "relative"
|
|
245
|
+
}, [f("div", ie, [
|
|
246
|
+
f("input", {
|
|
247
|
+
ref_key: "triggerEl",
|
|
248
|
+
ref: j,
|
|
249
|
+
"data-testid": "ds-tree-select-trigger",
|
|
250
|
+
"data-ds-tree-select-trigger": "",
|
|
251
|
+
type: "text",
|
|
252
|
+
value: ye.value,
|
|
253
|
+
placeholder: m.placeholder,
|
|
254
|
+
disabled: m.disabled,
|
|
255
|
+
readonly: "",
|
|
256
|
+
role: "combobox",
|
|
257
|
+
"aria-readonly": "true",
|
|
258
|
+
"aria-expanded": I.value ? "true" : "false",
|
|
259
|
+
"aria-invalid": m.invalid ? "true" : void 0,
|
|
260
|
+
class: g(["w-full rounded-md border bg-[var(--bg)] text-[var(--fg)] placeholder:text-[var(--muted-fg)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed", [Se.value, n.$slots.value ? "text-transparent placeholder:text-transparent" : ""]]),
|
|
261
|
+
onPointerdown: Ee,
|
|
262
|
+
onClick: Te,
|
|
263
|
+
onFocus: De,
|
|
264
|
+
onKeydown: ke
|
|
265
|
+
}, null, 42, ae),
|
|
266
|
+
m.clearable && be.value ? (v(), d("button", {
|
|
267
|
+
key: 0,
|
|
268
|
+
"data-testid": "ds-tree-select-clear",
|
|
269
|
+
"data-ds-tree-select-clear": "",
|
|
270
|
+
type: "button",
|
|
271
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 h-6 w-6 inline-flex items-center justify-center rounded-md text-[var(--muted-fg)] hover:text-[var(--fg)] hover:bg-[color-mix(in_srgb,var(--muted)_25%,transparent)] disabled:opacity-50",
|
|
272
|
+
disabled: m.disabled,
|
|
273
|
+
"aria-label": S(O)("ds.common.clear", "Clear"),
|
|
274
|
+
onClick: re(Oe, ["stop"])
|
|
275
|
+
}, [...i[1] ||= [f("span", { class: "i-lucide-x h-4 w-4" }, null, -1)]], 8, oe)) : (v(), d("span", se, [f("span", { class: g(["i-lucide-chevron-down h-4 w-4 transition-transform duration-150", I.value ? "rotate-180" : ""]) }, null, 2)])),
|
|
276
|
+
n.$slots.value ? (v(), d("div", ce, [b(n.$slots, "value", {
|
|
277
|
+
value: m.modelValue,
|
|
278
|
+
labels: q.value,
|
|
279
|
+
displayValue: ye.value,
|
|
280
|
+
pathLabels: J.value
|
|
281
|
+
})])) : u("", !0)
|
|
282
|
+
]), (v(), l(o, { to: "body" }, [p(s, {
|
|
283
|
+
"enter-active-class": "transition ease-out duration-150",
|
|
284
|
+
"enter-from-class": "transform opacity-0 scale-95",
|
|
285
|
+
"enter-to-class": "transform opacity-100 scale-100",
|
|
286
|
+
"leave-active-class": "transition ease-in duration-100",
|
|
287
|
+
"leave-from-class": "transform opacity-100 scale-100",
|
|
288
|
+
"leave-to-class": "transform opacity-0 scale-95"
|
|
289
|
+
}, {
|
|
290
|
+
default: w(() => [T(f("div", {
|
|
291
|
+
ref_key: "panelEl",
|
|
292
|
+
ref: P,
|
|
293
|
+
"data-testid": "ds-tree-select-panel",
|
|
294
|
+
"data-ds-tree-select-panel": "",
|
|
295
|
+
class: "fixed w-full",
|
|
296
|
+
style: _(R.value)
|
|
297
|
+
}, [f("div", { class: g(Ce.value) }, [m.filterable ? (v(), d("div", le, [p(t, {
|
|
298
|
+
ref_key: "filterInputRef",
|
|
299
|
+
ref: M,
|
|
300
|
+
modelValue: L.value,
|
|
301
|
+
"onUpdate:modelValue": i[0] ||= (e) => L.value = e,
|
|
302
|
+
"data-testid": "ds-tree-select-filter",
|
|
303
|
+
"data-ds-tree-select-filter": "",
|
|
304
|
+
type: "search",
|
|
305
|
+
inputmode: m.filterInputmode,
|
|
306
|
+
placeholder: xe.value,
|
|
307
|
+
size: "sm"
|
|
308
|
+
}, null, 8, [
|
|
309
|
+
"modelValue",
|
|
310
|
+
"inputmode",
|
|
311
|
+
"placeholder"
|
|
312
|
+
])])) : u("", !0), f("div", {
|
|
313
|
+
class: "p-1 overflow-auto",
|
|
314
|
+
style: _({ maxHeight: `${m.dropdownMaxHeight}px` })
|
|
315
|
+
}, [(m.data?.length ?? 0) === 0 ? (v(), d("div", ue, [b(n.$slots, "empty", {}, () => [ee(x(S(O)("ds.treeSelect.empty", "No data")), 1)])])) : (v(), l(S(r), {
|
|
316
|
+
key: 1,
|
|
317
|
+
ref_key: "treeRef",
|
|
318
|
+
ref: N,
|
|
319
|
+
data: m.data,
|
|
320
|
+
props: D.props,
|
|
321
|
+
"node-key": m.nodeKey,
|
|
322
|
+
"default-expanded-keys": m.defaultExpandedKeys,
|
|
323
|
+
"filter-node-method": m.filterNodeMethod,
|
|
324
|
+
"highlight-current": !m.multiple,
|
|
325
|
+
onNodeClick: Ae
|
|
326
|
+
}, {
|
|
327
|
+
default: w(({ node: e, data: t }) => [b(n.$slots, "node", {
|
|
328
|
+
node: e,
|
|
329
|
+
data: t,
|
|
330
|
+
selected: K.value.has(e.key)
|
|
331
|
+
}, () => [f("div", de, [f("span", {
|
|
332
|
+
class: g(["h-4 w-4 shrink-0", K.value.has(e.key) ? "i-lucide-check text-[var(--primary)]" : ""]),
|
|
333
|
+
"aria-hidden": "true"
|
|
334
|
+
}, null, 2), f("span", fe, x(e.label), 1)])])]),
|
|
335
|
+
_: 3
|
|
336
|
+
}, 8, [
|
|
337
|
+
"data",
|
|
338
|
+
"props",
|
|
339
|
+
"node-key",
|
|
340
|
+
"default-expanded-keys",
|
|
341
|
+
"filter-node-method",
|
|
342
|
+
"highlight-current"
|
|
343
|
+
]))], 4)], 2)], 4), [[ne, I.value]])]),
|
|
344
|
+
_: 3
|
|
345
|
+
})]))])), [[S(e), {
|
|
346
|
+
handler: we,
|
|
347
|
+
enabled: I.value,
|
|
348
|
+
exclude: pe
|
|
349
|
+
}]]);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
//#endregion
|
|
353
|
+
export { E as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-C7KNHOmN.js";
|
|
2
|
+
import { t as n } from "./chunks/DsTreeSelect-BnG-oplE.js";
|
|
3
3
|
export { n as DsTreeSelect, n as default, t as dsTreeSelectConfig, e as dsTreeSelectSafelist };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../chunks/fileValidation-LFD-vwil.js";
|
|
2
2
|
export { l as FileValidationError, a as acceptValidator, e as allowedExtensionsValidator, n as allowedMimeTypesValidator, s as matchAccept, o as maxFileSizeBytesValidator, i as maxSizeMbValidator, c as maxTotalSizeBytesValidator, t as normalizeFiles, r as runFileValidators };
|