@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
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { a as e } from "../../../chunks/directives-K8Vo0VhP.js";
|
|
2
|
+
import { t } from "../../DsInput/chunks/DsInput-B8RhHkKQ.js";
|
|
3
|
+
import { a as n, i as r, n as ee, r as te, t as ne } from "../../../chunks/dsSelectStyles-BCrj5Fty.js";
|
|
4
|
+
import { Fragment as i, Teleport as a, Transition as re, computed as o, createBlock as ie, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onUnmounted as ae, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as oe, vShow as se, watch as ce, withCtx as le, withDirectives as b, withKeys as ue, withModifiers as x } from "vue";
|
|
5
|
+
//#region src/components/DsSelect/DsSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var de = [
|
|
7
|
+
"value",
|
|
8
|
+
"multiple",
|
|
9
|
+
"disabled",
|
|
10
|
+
"aria-label"
|
|
11
|
+
], S = {
|
|
12
|
+
key: 0,
|
|
13
|
+
value: ""
|
|
14
|
+
}, C = ["value"], fe = ["value"], pe = {
|
|
15
|
+
key: 0,
|
|
16
|
+
"data-testid": "ds-select-chevron",
|
|
17
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 text-[var(--muted-fg)] pointer-events-none"
|
|
18
|
+
}, me = [
|
|
19
|
+
"disabled",
|
|
20
|
+
"aria-label",
|
|
21
|
+
"aria-expanded"
|
|
22
|
+
], he = { class: "min-w-0 flex-1" }, ge = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "shrink-0 h-4 w-4",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, _e = {
|
|
27
|
+
key: 1,
|
|
28
|
+
"data-testid": "ds-select-chevron",
|
|
29
|
+
class: "shrink-0 text-[var(--muted-fg)] pointer-events-none"
|
|
30
|
+
}, ve = ["disabled", "aria-label"], ye = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "p-2 border-b border-[var(--brd)]"
|
|
33
|
+
}, be = ["aria-multiselectable"], xe = ["aria-selected", "onClick"], Se = { class: "flex items-center gap-2 min-w-0" }, Ce = { class: "truncate" }, w = /* @__PURE__ */ d({
|
|
34
|
+
__name: "DsSelect",
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: {},
|
|
37
|
+
options: { default: void 0 },
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
ariaLabel: { default: void 0 },
|
|
43
|
+
view: { default: "default" },
|
|
44
|
+
size: { default: "md" },
|
|
45
|
+
placeholder: { default: void 0 },
|
|
46
|
+
multiple: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
optionsView: { default: "native" },
|
|
51
|
+
allowCustomValue: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
customValuePlaceholder: { default: "Add value…" },
|
|
56
|
+
dropdownMaxHeight: { default: 280 },
|
|
57
|
+
closeOnSelect: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
clearable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
clearLabel: { default: "Clear" },
|
|
66
|
+
variant: { default: "primary" },
|
|
67
|
+
underline: { default: "auto" }
|
|
68
|
+
},
|
|
69
|
+
emits: ["update:modelValue"],
|
|
70
|
+
setup(d, { emit: w }) {
|
|
71
|
+
let T = d, E = o(() => T.view === "link" ? n : ne), D = o(() => T.view === "link" ? "relative inline-block align-baseline" : "relative w-full"), O = w, k = o(() => T.options ?? []);
|
|
72
|
+
function A(e) {
|
|
73
|
+
return Array.isArray(e) ? e : e ? [e] : [];
|
|
74
|
+
}
|
|
75
|
+
let j = o(() => Array.isArray(T.modelValue) ? T.modelValue[0] ?? "" : T.modelValue), M = o(() => A(T.modelValue)), N = o(() => T.multiple ? M.value : j.value ? [j.value] : []), P = o(() => N.value.length > 0), we = o(() => {
|
|
76
|
+
let e = new Map(k.value.map((e) => [e.value, e]));
|
|
77
|
+
return N.value.map((t) => e.get(t) ?? {
|
|
78
|
+
value: t,
|
|
79
|
+
label: t
|
|
80
|
+
});
|
|
81
|
+
}), F = o(() => T.multiple ? !1 : k.value.some((e) => e.value === j.value)), I = o(() => T.multiple ? N.value.length ? N.value.map((e) => k.value.find((t) => t.value === e)?.label ?? e).join(", ") : "" : k.value.find((e) => e.value === j.value)?.label ?? j.value), Te = o(() => P.value ? I.value : T.placeholder ?? ""), Ee = o(() => !T.allowCustomValue || T.optionsView !== "native" || T.multiple || !T.options || j.value === "" ? !1 : !F.value), L = g(""), R = g(!1), z = g(null), B = g(null), V = g(null), De = [() => B.value], H = g({
|
|
82
|
+
left: "0px",
|
|
83
|
+
top: "0px",
|
|
84
|
+
width: "0px",
|
|
85
|
+
zIndex: "2147483647"
|
|
86
|
+
});
|
|
87
|
+
function U() {
|
|
88
|
+
if (typeof window > "u") return;
|
|
89
|
+
let e = z.value;
|
|
90
|
+
if (!e) return;
|
|
91
|
+
let t = e.getBoundingClientRect();
|
|
92
|
+
H.value = {
|
|
93
|
+
left: `${t.left}px`,
|
|
94
|
+
top: `${t.bottom + 8}px`,
|
|
95
|
+
width: `${t.width}px`,
|
|
96
|
+
zIndex: "2147483647"
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function Oe() {
|
|
100
|
+
typeof window > "u" || (window.addEventListener("resize", U), window.addEventListener("scroll", U, !0));
|
|
101
|
+
}
|
|
102
|
+
function W() {
|
|
103
|
+
typeof window > "u" || (window.removeEventListener("resize", U), window.removeEventListener("scroll", U, !0));
|
|
104
|
+
}
|
|
105
|
+
function G() {
|
|
106
|
+
R.value = !1;
|
|
107
|
+
}
|
|
108
|
+
function ke() {
|
|
109
|
+
T.disabled || (R.value = !R.value);
|
|
110
|
+
}
|
|
111
|
+
function K(e) {
|
|
112
|
+
e.key === "Escape" && G();
|
|
113
|
+
}
|
|
114
|
+
ce(R, async (e) => {
|
|
115
|
+
if (!(typeof document > "u")) {
|
|
116
|
+
if (document.removeEventListener("keydown", K), W(), e && document.addEventListener("keydown", K), !e) {
|
|
117
|
+
L.value = "";
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
Oe(), await f(), U(), T.allowCustomValue && V.value?.focus();
|
|
121
|
+
}
|
|
122
|
+
}, { immediate: !0 }), ae(() => {
|
|
123
|
+
typeof document > "u" || (document.removeEventListener("keydown", K), W());
|
|
124
|
+
});
|
|
125
|
+
let Ae = o(() => te), je = o(() => {
|
|
126
|
+
let e = k.value, t = !T.allowCustomValue || T.multiple || j.value === "" || F.value ? e : [{
|
|
127
|
+
value: j.value,
|
|
128
|
+
label: j.value
|
|
129
|
+
}, ...e];
|
|
130
|
+
if (!T.allowCustomValue) return t;
|
|
131
|
+
let n = L.value.trim().toLowerCase();
|
|
132
|
+
return n ? t.filter((e) => e.label.toLowerCase().includes(n) || e.value.toLowerCase().includes(n)) : t;
|
|
133
|
+
}), Me = o(() => {
|
|
134
|
+
if (!T.allowCustomValue || T.optionsView !== "panel") return !1;
|
|
135
|
+
let e = L.value.trim();
|
|
136
|
+
return e ? T.multiple ? N.value.includes(e) ? !1 : !k.value.some((t) => t.value === e) : e === j.value ? !1 : !k.value.some((t) => t.value === e) : !1;
|
|
137
|
+
});
|
|
138
|
+
function q(e) {
|
|
139
|
+
O("update:modelValue", e);
|
|
140
|
+
}
|
|
141
|
+
function J(e) {
|
|
142
|
+
return N.value.includes(e);
|
|
143
|
+
}
|
|
144
|
+
function Ne(e) {
|
|
145
|
+
q(e), T.closeOnSelect && G();
|
|
146
|
+
}
|
|
147
|
+
function Y(e) {
|
|
148
|
+
if (!T.multiple) {
|
|
149
|
+
Ne(e);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
let t = N.value.slice(), n = t.indexOf(e);
|
|
153
|
+
n >= 0 ? t.splice(n, 1) : t.push(e), q(t), T.closeOnSelect && G();
|
|
154
|
+
}
|
|
155
|
+
function X() {
|
|
156
|
+
let e = L.value.trim();
|
|
157
|
+
e && Y(e);
|
|
158
|
+
}
|
|
159
|
+
let Z = o(() => T.optionsView === "native" && T.view !== "link" && !T.multiple), Pe = o(() => !T.clearable || T.optionsView !== "native" || T.multiple ? !1 : T.options ? !T.options.some((e) => e.value === "") : !0), Q = o(() => !T.clearable || T.optionsView !== "panel" || T.view === "link" ? !1 : P.value), Fe = o(() => ee({
|
|
160
|
+
view: T.view,
|
|
161
|
+
size: T.size,
|
|
162
|
+
disabled: T.disabled,
|
|
163
|
+
variant: T.variant,
|
|
164
|
+
underline: T.underline,
|
|
165
|
+
showNativeChevron: Z.value
|
|
166
|
+
})), Ie = o(() => r({
|
|
167
|
+
view: T.view,
|
|
168
|
+
optionsView: T.optionsView,
|
|
169
|
+
size: T.size,
|
|
170
|
+
disabled: T.disabled,
|
|
171
|
+
variant: T.variant,
|
|
172
|
+
underline: T.underline
|
|
173
|
+
}));
|
|
174
|
+
function Le(e) {
|
|
175
|
+
let t = e.target;
|
|
176
|
+
if (T.multiple) {
|
|
177
|
+
O("update:modelValue", Array.from(t.selectedOptions, (e) => e.value));
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
O("update:modelValue", t.value);
|
|
181
|
+
}
|
|
182
|
+
function $() {
|
|
183
|
+
T.disabled || q(T.multiple ? [] : "");
|
|
184
|
+
}
|
|
185
|
+
return (n, r) => d.optionsView === "native" ? (h(), c("div", {
|
|
186
|
+
key: 0,
|
|
187
|
+
"data-ds-select": "",
|
|
188
|
+
class: p(D.value)
|
|
189
|
+
}, [l("select", {
|
|
190
|
+
"data-ds-select-native": "",
|
|
191
|
+
value: d.multiple ? M.value : j.value,
|
|
192
|
+
multiple: d.multiple,
|
|
193
|
+
disabled: d.disabled,
|
|
194
|
+
"aria-label": d.ariaLabel,
|
|
195
|
+
class: p([E.value, Fe.value]),
|
|
196
|
+
onChange: Le
|
|
197
|
+
}, [Pe.value ? (h(), c("option", S)) : s("", !0), v(n.$slots, "default", {}, () => [Ee.value ? (h(), c("option", {
|
|
198
|
+
key: 0,
|
|
199
|
+
value: j.value
|
|
200
|
+
}, y(j.value), 9, C)) : s("", !0), (h(!0), c(i, null, _(d.options, (e) => (h(), c("option", {
|
|
201
|
+
key: e.value,
|
|
202
|
+
value: e.value
|
|
203
|
+
}, y(e.label), 9, fe))), 128))])], 42, de), Z.value ? (h(), c("span", pe, [...r[1] ||= [l("span", {
|
|
204
|
+
class: "i-lucide-chevron-down h-4 w-4",
|
|
205
|
+
"aria-hidden": "true"
|
|
206
|
+
}, null, -1)]])) : s("", !0)], 2)) : b((h(), c("div", {
|
|
207
|
+
key: 1,
|
|
208
|
+
ref_key: "rootEl",
|
|
209
|
+
ref: z,
|
|
210
|
+
"data-ds-select": "",
|
|
211
|
+
class: p(D.value)
|
|
212
|
+
}, [
|
|
213
|
+
l("button", {
|
|
214
|
+
"data-testid": "ds-select-trigger",
|
|
215
|
+
"data-ds-select-trigger": "",
|
|
216
|
+
type: "button",
|
|
217
|
+
disabled: d.disabled,
|
|
218
|
+
"aria-label": d.ariaLabel,
|
|
219
|
+
role: "combobox",
|
|
220
|
+
"aria-readonly": "true",
|
|
221
|
+
"aria-expanded": R.value ? "true" : "false",
|
|
222
|
+
class: p([E.value, Ie.value]),
|
|
223
|
+
onClick: ke
|
|
224
|
+
}, [l("span", he, [v(n.$slots, "value", {
|
|
225
|
+
selectedOptions: we.value,
|
|
226
|
+
selectedValues: N.value,
|
|
227
|
+
displayLabel: I.value,
|
|
228
|
+
placeholder: d.placeholder,
|
|
229
|
+
hasSelection: P.value
|
|
230
|
+
}, () => [l("span", { class: p(["block truncate", P.value ? "" : "text-[var(--muted-fg)]"]) }, y(Te.value), 3)])]), Q.value ? (h(), c("span", ge)) : (h(), c("span", _e, [...r[2] ||= [l("span", {
|
|
231
|
+
class: "i-lucide-chevron-down h-4 w-4",
|
|
232
|
+
"aria-hidden": "true"
|
|
233
|
+
}, null, -1)]]))], 10, me),
|
|
234
|
+
Q.value ? (h(), c("button", {
|
|
235
|
+
key: 0,
|
|
236
|
+
"data-testid": "ds-select-clear",
|
|
237
|
+
"data-ds-select-clear": "",
|
|
238
|
+
type: "button",
|
|
239
|
+
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",
|
|
240
|
+
disabled: d.disabled,
|
|
241
|
+
"aria-label": d.clearLabel,
|
|
242
|
+
onClick: x($, ["stop"])
|
|
243
|
+
}, [...r[3] ||= [l("span", {
|
|
244
|
+
class: "i-lucide-x h-4 w-4",
|
|
245
|
+
"aria-hidden": "true"
|
|
246
|
+
}, null, -1)]], 8, ve)) : s("", !0),
|
|
247
|
+
(h(), ie(a, { to: "body" }, [u(re, {
|
|
248
|
+
"enter-active-class": "transition ease-out duration-150",
|
|
249
|
+
"enter-from-class": "transform opacity-0 scale-95",
|
|
250
|
+
"enter-to-class": "transform opacity-100 scale-100",
|
|
251
|
+
"leave-active-class": "transition ease-in duration-100",
|
|
252
|
+
"leave-from-class": "transform opacity-100 scale-100",
|
|
253
|
+
"leave-to-class": "transform opacity-0 scale-95"
|
|
254
|
+
}, {
|
|
255
|
+
default: le(() => [b(l("div", {
|
|
256
|
+
ref_key: "panelEl",
|
|
257
|
+
ref: B,
|
|
258
|
+
"data-testid": "ds-select-panel",
|
|
259
|
+
"data-ds-select-panel": "",
|
|
260
|
+
class: "fixed w-full",
|
|
261
|
+
style: m(H.value)
|
|
262
|
+
}, [l("div", { class: p(Ae.value) }, [d.allowCustomValue ? (h(), c("div", ye, [u(t, {
|
|
263
|
+
ref_key: "customInputRef",
|
|
264
|
+
ref: V,
|
|
265
|
+
modelValue: L.value,
|
|
266
|
+
"onUpdate:modelValue": r[0] ||= (e) => L.value = e,
|
|
267
|
+
"data-testid": "ds-select-custom-input",
|
|
268
|
+
type: "text",
|
|
269
|
+
placeholder: d.customValuePlaceholder,
|
|
270
|
+
size: "sm",
|
|
271
|
+
onKeydown: ue(x(X, ["prevent"]), ["enter"])
|
|
272
|
+
}, null, 8, [
|
|
273
|
+
"modelValue",
|
|
274
|
+
"placeholder",
|
|
275
|
+
"onKeydown"
|
|
276
|
+
])])) : s("", !0), l("div", {
|
|
277
|
+
"data-ds-select-listbox": "",
|
|
278
|
+
class: "p-1 overflow-auto",
|
|
279
|
+
style: m({ maxHeight: `${d.dropdownMaxHeight}px` }),
|
|
280
|
+
role: "listbox",
|
|
281
|
+
"aria-multiselectable": d.multiple ? "true" : void 0
|
|
282
|
+
}, [Me.value ? (h(), c("button", {
|
|
283
|
+
key: 0,
|
|
284
|
+
"data-testid": "ds-select-add-option",
|
|
285
|
+
"data-ds-select-add-option": "",
|
|
286
|
+
type: "button",
|
|
287
|
+
class: "w-full rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
288
|
+
onClick: X
|
|
289
|
+
}, " Add “" + y(L.value.trim()) + "” ", 1)) : s("", !0), (h(!0), c(i, null, _(je.value, (e) => (h(), c("button", {
|
|
290
|
+
key: e.value,
|
|
291
|
+
"data-ds-select-option": "",
|
|
292
|
+
type: "button",
|
|
293
|
+
role: "option",
|
|
294
|
+
"aria-selected": J(e.value) ? "true" : "false",
|
|
295
|
+
class: "w-full rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
296
|
+
onClick: (t) => Y(e.value)
|
|
297
|
+
}, [v(n.$slots, "option", {
|
|
298
|
+
option: e,
|
|
299
|
+
selected: J(e.value)
|
|
300
|
+
}, () => [l("span", Se, [l("span", {
|
|
301
|
+
class: p(["h-4 w-4 shrink-0", J(e.value) ? "i-lucide-check text-[var(--primary)]" : ""]),
|
|
302
|
+
"aria-hidden": "true"
|
|
303
|
+
}, null, 2), l("span", Ce, y(e.label), 1)])])], 8, xe))), 128))], 12, be)], 2)], 4), [[se, R.value]])]),
|
|
304
|
+
_: 3
|
|
305
|
+
})]))
|
|
306
|
+
], 2)), [[oe(e), {
|
|
307
|
+
handler: G,
|
|
308
|
+
enabled: R.value,
|
|
309
|
+
exclude: De
|
|
310
|
+
}]]);
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
//#endregion
|
|
314
|
+
export { w as t };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../chunks/
|
|
3
|
-
|
|
4
|
-
export { t as DsSelect, t as default, n as dsSelectConfig, e as dsSelectSafelist };
|
|
1
|
+
import { t as e } from "./chunks/DsSelect-DN-vZIEG.js";
|
|
2
|
+
import { n as t, t as n } from "../../chunks/config-DoJaEy4X.js";
|
|
3
|
+
export { e as DsSelect, e as default, n as dsSelectConfig, t as dsSelectSafelist };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, createTextVNode as r, defineComponent as i, openBlock as a, renderSlot as o, toDisplayString as s } from "vue";
|
|
2
|
+
//#region src/components/DsSidebar/DsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var c = {
|
|
4
|
+
"data-ds-sidebar": "",
|
|
5
|
+
class: "border-r border-[var(--sidebar-brd)] bg-[var(--sidebar)] text-[var(--sidebar-fg)]"
|
|
6
|
+
}, l = {
|
|
7
|
+
key: 0,
|
|
8
|
+
"data-ds-sidebar-header": "",
|
|
9
|
+
class: "border-b border-[var(--sidebar-brd)] px-4 py-4"
|
|
10
|
+
}, u = {
|
|
11
|
+
key: 0,
|
|
12
|
+
"data-ds-sidebar-subtitle": "",
|
|
13
|
+
class: "text-[14px] text-[var(--muted-fg)]"
|
|
14
|
+
}, d = {
|
|
15
|
+
key: 1,
|
|
16
|
+
"data-ds-sidebar-title": "",
|
|
17
|
+
class: "text-[18px] font-700"
|
|
18
|
+
}, f = { class: "p-3" }, p = /* @__PURE__ */ i({
|
|
19
|
+
__name: "DsSidebar",
|
|
20
|
+
props: {
|
|
21
|
+
title: { default: void 0 },
|
|
22
|
+
subtitle: { default: void 0 }
|
|
23
|
+
},
|
|
24
|
+
setup(i) {
|
|
25
|
+
return (p, m) => (a(), t("aside", c, [p.$slots.title || i.title || p.$slots.subtitle || i.subtitle ? (a(), t("div", l, [p.$slots.subtitle || i.subtitle ? (a(), t("div", u, [o(p.$slots, "subtitle", {}, () => [r(s(i.subtitle), 1)])])) : e("", !0), p.$slots.title || i.title ? (a(), t("div", d, [o(p.$slots, "title", {}, () => [r(s(i.title), 1)])])) : e("", !0)])) : e("", !0), n("div", f, [o(p.$slots, "default")])]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { p as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsSidebar, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsSidebar-DdofI1lo.js";
|
|
2
|
+
import { t } from "../../chunks/config-BPuskn3r.js";
|
|
3
|
+
export { e as DsSidebar, e as default, t as dsSidebarConfig };
|
package/dist/{chunks/DsSkeleton-BcXabaQ7.js → components/DsSkeleton/chunks/DsSkeleton-DJSQ4gGR.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
|
|
2
|
-
|
|
2
|
+
import '../../../DsSkeleton.css';//#endregion
|
|
3
3
|
//#region src/components/DsSkeleton/DsSkeleton.vue
|
|
4
4
|
var i = /* @__PURE__ */ t({
|
|
5
5
|
__name: "DsSkeleton",
|
|
@@ -9,15 +9,15 @@ var i = /* @__PURE__ */ t({
|
|
|
9
9
|
rounded: { default: "9999px" }
|
|
10
10
|
},
|
|
11
11
|
setup(t) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
return (i, a) => (r(), e("div", {
|
|
13
|
+
"data-ds-skeleton": "",
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
class: "bg-[var(--muted)] border border-[var(--brd)]",
|
|
15
16
|
style: n({
|
|
16
|
-
height:
|
|
17
|
-
width:
|
|
18
|
-
borderRadius:
|
|
19
|
-
})
|
|
20
|
-
"aria-hidden": "true"
|
|
17
|
+
height: t.height,
|
|
18
|
+
width: t.width,
|
|
19
|
+
borderRadius: t.rounded
|
|
20
|
+
})
|
|
21
21
|
}, null, 4));
|
|
22
22
|
}
|
|
23
23
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsSkeleton, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsSkeleton-DJSQ4gGR.js";
|
|
2
|
+
import { t } from "../../chunks/config-DO9E5iXl2.js";
|
|
3
|
+
export { e as DsSkeleton, e as default, t as dsSkeletonConfig };
|
package/dist/{chunks/DsSwitch-DBdjltGz.js → components/DsSwitch/chunks/DsSwitch-Dh4_bd6e.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n } from "
|
|
1
|
+
import { a as e, i as t, r as n } from "../../../chunks/config-BscZj6l42.js";
|
|
2
2
|
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d } from "vue";
|
|
3
3
|
//#region src/components/DsSwitch/DsSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var f = [
|
|
@@ -37,21 +37,25 @@ var f = [
|
|
|
37
37
|
return (e, t) => (u(), a("button", {
|
|
38
38
|
type: "button",
|
|
39
39
|
role: "switch",
|
|
40
|
-
"
|
|
41
|
-
"aria-
|
|
42
|
-
|
|
40
|
+
"data-ds-switch": "",
|
|
41
|
+
"aria-checked": s.modelValue ? "true" : "false",
|
|
42
|
+
"aria-label": s.ariaLabel,
|
|
43
|
+
disabled: s.disabled,
|
|
43
44
|
class: "inline-flex items-center gap-2 select-none disabled:opacity-50 disabled:cursor-not-allowed",
|
|
44
45
|
onClick: x
|
|
45
46
|
}, [o("span", {
|
|
46
47
|
"data-testid": "ds-switch-track",
|
|
48
|
+
"data-ds-switch-track": "",
|
|
47
49
|
class: c(_.value),
|
|
48
50
|
style: l(v.value)
|
|
49
51
|
}, [o("span", {
|
|
50
52
|
"data-testid": "ds-switch-thumb",
|
|
53
|
+
"data-ds-switch-thumb": "",
|
|
51
54
|
class: c(y.value),
|
|
52
55
|
"aria-hidden": "true"
|
|
53
56
|
}, null, 2)], 6), e.$slots.default ? (u(), a("span", {
|
|
54
57
|
key: 0,
|
|
58
|
+
"data-ds-switch-label": "",
|
|
55
59
|
class: c(b.value)
|
|
56
60
|
}, [d(e.$slots, "default")], 2)) : i("", !0)], 8, f));
|
|
57
61
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-BscZj6l42.js";
|
|
2
|
+
import { t as n } from "./chunks/DsSwitch-Dh4_bd6e.js";
|
|
3
3
|
export { n as DsSwitch, n as default, t as dsSwitchConfig, e as dsSwitchSafelist };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, useSlots as d } from "vue";
|
|
2
|
+
//#region src/components/DsTable/DsTable.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = [
|
|
4
|
+
"role",
|
|
5
|
+
"aria-label",
|
|
6
|
+
"tabindex"
|
|
7
|
+
], p = ["aria-label", "aria-labelledby"], m = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "sr-only"
|
|
10
|
+
}, h = { class: "bg-[var(--muted)] text-[var(--muted-fg)]" }, g = { class: "text-[var(--fg)]" }, _ = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "text-[var(--fg)]"
|
|
13
|
+
}, v = /* @__PURE__ */ a({
|
|
14
|
+
__name: "DsTable",
|
|
15
|
+
props: {
|
|
16
|
+
density: { default: "regular" },
|
|
17
|
+
caption: { default: void 0 },
|
|
18
|
+
ariaLabel: { default: void 0 },
|
|
19
|
+
ariaLabelledby: { default: void 0 },
|
|
20
|
+
regionLabel: { default: void 0 }
|
|
21
|
+
},
|
|
22
|
+
setup(a) {
|
|
23
|
+
let v = a, y = d(), b = e(() => v.density === "compact" ? "text-[13px]" : "text-sm"), x = e(() => !!y.caption || !!v.caption);
|
|
24
|
+
return (e, d) => (s(), n("div", {
|
|
25
|
+
"data-ds-table-scroll": "",
|
|
26
|
+
role: a.regionLabel ? "region" : void 0,
|
|
27
|
+
"aria-label": a.regionLabel,
|
|
28
|
+
tabindex: a.regionLabel ? 0 : void 0,
|
|
29
|
+
class: "overflow-x-auto rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]"
|
|
30
|
+
}, [r("table", {
|
|
31
|
+
"data-ds-table": "",
|
|
32
|
+
class: o(["min-w-full", b.value]),
|
|
33
|
+
"aria-label": a.ariaLabelledby ? void 0 : a.ariaLabel,
|
|
34
|
+
"aria-labelledby": a.ariaLabelledby
|
|
35
|
+
}, [
|
|
36
|
+
x.value ? (s(), n("caption", m, [c(e.$slots, "caption", {}, () => [i(l(a.caption), 1)])])) : t("", !0),
|
|
37
|
+
r("thead", h, [c(e.$slots, "head")]),
|
|
38
|
+
r("tbody", g, [c(e.$slots, "default")]),
|
|
39
|
+
u(y).foot ? (s(), n("tfoot", _, [c(e.$slots, "foot")])) : t("", !0)
|
|
40
|
+
], 10, p)], 8, f));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { v as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsTable, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsTable-C27_FR_h.js";
|
|
2
|
+
import { t } from "../../chunks/config-CvuvJeih.js";
|
|
3
|
+
export { e as DsTable, e as default, t as dsTableConfig };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, nextTick as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, toDisplayString as d } from "vue";
|
|
2
|
+
//#region src/components/DsTabs/DsTabs.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = [
|
|
4
|
+
"aria-selected",
|
|
5
|
+
"aria-disabled",
|
|
6
|
+
"disabled",
|
|
7
|
+
"tabindex",
|
|
8
|
+
"onClick"
|
|
9
|
+
], p = { class: "inline-flex items-center gap-2" }, m = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "text-[11px] px-1.5 py-0.5 rounded-full bg-[var(--secondary)] text-[var(--secondary-fg)]"
|
|
12
|
+
}, h = /* @__PURE__ */ a({
|
|
13
|
+
__name: "DsTabs",
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
tabs: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(a, { emit: h }) {
|
|
20
|
+
let g = a, _ = h, v = l([]);
|
|
21
|
+
function y(e, t) {
|
|
22
|
+
e instanceof HTMLButtonElement && (v.value[t] = e);
|
|
23
|
+
}
|
|
24
|
+
let b = t(() => g.tabs.findIndex((e) => e.value === g.modelValue));
|
|
25
|
+
function x(e) {
|
|
26
|
+
return !e.disabled;
|
|
27
|
+
}
|
|
28
|
+
async function S(e, t = !1) {
|
|
29
|
+
let n = g.tabs[e];
|
|
30
|
+
!n || !x(n) || (n.value !== g.modelValue && _("update:modelValue", n.value), t && (await o(), v.value[e]?.focus()));
|
|
31
|
+
}
|
|
32
|
+
function C(e, t) {
|
|
33
|
+
let n = g.tabs.length;
|
|
34
|
+
if (n === 0) return -1;
|
|
35
|
+
let r = e;
|
|
36
|
+
for (let e = 0; e < n; e++) {
|
|
37
|
+
r = (r + t + n) % n;
|
|
38
|
+
let e = g.tabs[r];
|
|
39
|
+
if (e && x(e)) return r;
|
|
40
|
+
}
|
|
41
|
+
return -1;
|
|
42
|
+
}
|
|
43
|
+
function w() {
|
|
44
|
+
return g.tabs.findIndex(x);
|
|
45
|
+
}
|
|
46
|
+
function T() {
|
|
47
|
+
for (let e = g.tabs.length - 1; e >= 0; e--) {
|
|
48
|
+
let t = g.tabs[e];
|
|
49
|
+
if (t && x(t)) return e;
|
|
50
|
+
}
|
|
51
|
+
return -1;
|
|
52
|
+
}
|
|
53
|
+
function E(e) {
|
|
54
|
+
if (g.tabs.length === 0) return;
|
|
55
|
+
let t = b.value < 0 ? 0 : b.value, n = -1;
|
|
56
|
+
switch (e.key) {
|
|
57
|
+
case "ArrowRight":
|
|
58
|
+
n = C(t, 1);
|
|
59
|
+
break;
|
|
60
|
+
case "ArrowLeft":
|
|
61
|
+
n = C(t, -1);
|
|
62
|
+
break;
|
|
63
|
+
case "Home":
|
|
64
|
+
n = w();
|
|
65
|
+
break;
|
|
66
|
+
case "End":
|
|
67
|
+
n = T();
|
|
68
|
+
break;
|
|
69
|
+
default: return;
|
|
70
|
+
}
|
|
71
|
+
n < 0 || (e.preventDefault(), S(n, !0));
|
|
72
|
+
}
|
|
73
|
+
function D(e) {
|
|
74
|
+
x(e) && e.value !== g.modelValue && _("update:modelValue", e.value);
|
|
75
|
+
}
|
|
76
|
+
return (t, o) => (c(), r("div", {
|
|
77
|
+
role: "tablist",
|
|
78
|
+
"data-ds-tabs": "",
|
|
79
|
+
class: "inline-flex flex-wrap gap-1 rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--muted)] p-1",
|
|
80
|
+
onKeydown: E
|
|
81
|
+
}, [(c(!0), r(e, null, u(a.tabs, (e, t) => (c(), r("button", {
|
|
82
|
+
key: e.value,
|
|
83
|
+
ref_for: !0,
|
|
84
|
+
ref: (e) => y(e, t),
|
|
85
|
+
type: "button",
|
|
86
|
+
role: "tab",
|
|
87
|
+
"data-ds-tab": "",
|
|
88
|
+
"aria-selected": e.value === a.modelValue ? "true" : "false",
|
|
89
|
+
"aria-disabled": e.disabled ? "true" : void 0,
|
|
90
|
+
disabled: e.disabled,
|
|
91
|
+
tabindex: e.value === a.modelValue ? 0 : -1,
|
|
92
|
+
class: s(["h-9 px-3 rounded-[10px] text-sm font-600 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-60 disabled:cursor-not-allowed", e.value === a.modelValue ? "bg-[var(--card)] text-[var(--fg)] border border-[var(--brd)]" : "text-[var(--muted-fg)] hover:text-[var(--fg)] hover:bg-[color-mix(in_srgb,var(--card)_70%,transparent)]"]),
|
|
93
|
+
onClick: (t) => D(e)
|
|
94
|
+
}, [i("span", p, [i("span", null, d(e.label), 1), e.badge ? (c(), r("span", m, d(e.badge), 1)) : n("", !0)])], 10, f))), 128))], 32));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { h as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsTabs, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsTabs-FLWaGtbo.js";
|
|
2
|
+
import { t } from "../../chunks/config-B36QoWkx2.js";
|
|
3
|
+
export { e as DsTabs, e as default, t as dsTabsConfig };
|
package/dist/{chunks/DsTextarea-DVSsoqi3.js → components/DsTextarea/chunks/DsTextarea-D61wwTwK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "../../../chunks/config-CzEeKJ6F2.js";
|
|
2
2
|
import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a } from "vue";
|
|
3
3
|
//#region src/components/DsTextarea/DsTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var o = [
|
|
@@ -39,14 +39,15 @@ var o = [
|
|
|
39
39
|
l("update:modelValue", e.target.value);
|
|
40
40
|
}
|
|
41
41
|
return (e, t) => (a(), n("textarea", {
|
|
42
|
-
id:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
id: r.id,
|
|
43
|
+
"data-ds-textarea": "",
|
|
44
|
+
name: r.name,
|
|
45
|
+
rows: r.rows,
|
|
46
|
+
autocomplete: r.autocomplete,
|
|
47
|
+
placeholder: r.placeholder,
|
|
48
|
+
disabled: r.disabled,
|
|
49
|
+
value: r.modelValue,
|
|
50
|
+
"aria-invalid": r.invalid ? "true" : void 0,
|
|
50
51
|
class: i(["w-full rounded-md border bg-[var(--bg)] px-3 py-2 text-[14px] 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", u.value]),
|
|
51
52
|
onInput: d
|
|
52
53
|
}, null, 42, o));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-CzEeKJ6F2.js";
|
|
2
|
+
import { t as n } from "./chunks/DsTextarea-D61wwTwK.js";
|
|
3
3
|
export { n as DsTextarea, n as default, t as dsTextareaConfig, e as dsTextareaSafelist };
|