@feugene/granularity 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DsButtonGroup.css +1 -0
- package/dist/DsFormFile.css +1 -0
- package/dist/DsIcon.css +1 -0
- package/dist/DsLoading.css +1 -0
- package/dist/DsSkeleton.css +1 -0
- package/dist/DsTree.css +1 -0
- package/dist/chunks/config-B36QoWkx2.js +8 -0
- package/dist/chunks/config-BG-m3THf.js +17 -0
- package/dist/chunks/config-BNQb1Tdk.js +9 -0
- package/dist/chunks/config-BPuskn3r.js +8 -0
- package/dist/chunks/config-BWJ22IjI2.js +9 -0
- package/dist/chunks/config-BYoxgIeM.js +18 -0
- package/dist/chunks/{config-tQBoBLph.js → config-Bb8NpnGF.js} +14 -6
- package/dist/chunks/config-Bo4SoxQg.js +27 -0
- package/dist/chunks/{config-B-tMv4PT.js → config-BscZj6l42.js} +26 -26
- package/dist/chunks/{config-qlwX-rLq.js → config-C0CVsc4Y.js} +16 -10
- package/dist/chunks/config-C2wd640N.js +9 -0
- package/dist/chunks/{config-CMuBf0u72.js → config-C7KNHOmN.js} +7 -7
- package/dist/chunks/config-CLG4pCF9.js +9 -0
- package/dist/chunks/config-COfLMM02.js +8 -0
- package/dist/chunks/config-C_CXjTfh2.js +9 -0
- package/dist/chunks/config-C_bF_fTb.js +8 -0
- package/dist/chunks/config-CcqnIunr.js +9 -0
- package/dist/chunks/config-Cibru2a2.js +9 -0
- package/dist/chunks/config-CnClbuiL.js +9 -0
- package/dist/chunks/config-CtI_S-zH.js +8 -0
- package/dist/chunks/config-CtgK8aLQ.js +37 -0
- package/dist/chunks/config-CvuvJeih.js +9 -0
- package/dist/chunks/{config-B75oSW74.js → config-CzEeKJ6F2.js} +6 -4
- package/dist/chunks/{config-CTGjkM7q.js → config-D-soL_Ul.js} +45 -36
- package/dist/chunks/config-D3ihNj1i.js +14 -0
- package/dist/chunks/config-D9kbijTN.js +9 -0
- package/dist/chunks/config-DGGgsQ-8.js +47 -0
- package/dist/chunks/{config-G7h6ftb62.js → config-DJxFkysW.js} +10 -9
- package/dist/chunks/config-DN1-oywd.js +13 -0
- package/dist/chunks/config-DO9E5iXl2.js +8 -0
- package/dist/chunks/config-DQdLgKLJ.js +8 -0
- package/dist/chunks/config-DThxz0fj.js +8 -0
- package/dist/chunks/config-DU-WqEnv.js +9 -0
- package/dist/chunks/config-DeL48aIt.js +8 -0
- package/dist/chunks/config-DfTEy9G3.js +14 -0
- package/dist/chunks/config-DoJaEy4X.js +21 -0
- package/dist/chunks/config-DopZCwNe.js +10 -0
- package/dist/chunks/{config-BrwOndwO.js → config-DpluHp1i.js} +2 -3
- package/dist/chunks/config-DrTFt1re.js +8 -0
- package/dist/chunks/config-DwsSjSb4.js +15 -0
- package/dist/chunks/config-E9sOdSx6.js +8 -0
- package/dist/chunks/config-EhfVxSIR.js +9 -0
- package/dist/chunks/config-J_2KglMu.js +8 -0
- package/dist/chunks/config-YyVxx9dW.js +8 -0
- package/dist/chunks/config-Zksyb5FX.js +35 -0
- package/dist/chunks/config-ltfe9Xvy.js +47 -0
- package/dist/chunks/config-udLUeY_k.js +9 -0
- package/dist/chunks/dialogShared-B7Ruf0mn.js +26 -0
- package/dist/chunks/directives-K8Vo0VhP.js +530 -0
- package/dist/chunks/{dsBadgeStyles-yLd1GFUa.js → dsBadgeStyles-2fcy07ls.js} +13 -22
- package/dist/chunks/{dsButtonStyles-C1c_j958.js → dsButtonStyles-xdMl54zJ.js} +46 -70
- package/dist/chunks/{dsDropdownStyles-DXGN-A-d.js → dsDropdownStyles-_XO6eeSE.js} +6 -12
- package/dist/chunks/dsLoadingStyles-lw20OWhs.js +15 -0
- package/dist/chunks/dsModalStyles-DovGcwjh.js +38 -0
- package/dist/chunks/dsSelectStyles-BCrj5Fty.js +40 -0
- package/dist/chunks/{en-CKkdzd7q.js → en-BkL6iabg.js} +3 -1
- package/dist/chunks/{es-CPXSlGMa.js → es-Dh_K9iry.js} +3 -1
- package/dist/chunks/{fileValidation-gR8aUBMZ.js → fileValidation-LFD-vwil.js} +1 -1
- package/dist/chunks/{granularityI18n-DBuOHekC.js → granularityI18n-DYNnonoE.js} +1 -1
- package/dist/chunks/{ru-D7AyvUyA.js → ru-kTbw8Tku.js} +3 -1
- package/dist/chunks/safelist-CQOSs_yj.js +13 -0
- package/dist/chunks/safelist-Gujf4bDO.js +22 -0
- package/dist/chunks/shared-DGhcuSCh.js +124 -0
- package/dist/chunks/{transition-CT9vsWnT.js → transition-BJXMi52x.js} +218 -218
- package/dist/{chunks/DsAlert-r_Ed-JrB.js → components/DsAlert/chunks/DsAlert-2ItscoqG.js} +3 -3
- package/dist/components/DsAlert/index.js +3 -3
- package/dist/{chunks/DsAvatar-cyMI8jUi.js → components/DsAvatar/chunks/DsAvatar-D7tQ9wfl.js} +1 -1
- package/dist/components/DsAvatar/index.js +2 -2
- package/dist/{chunks/DsBadge-Dnd7_I-K.js → components/DsBadge/chunks/DsBadge-B9aZxvZb.js} +1 -1
- package/dist/components/DsBadge/index.js +3 -4
- package/dist/components/DsBadgeWrap/index.js +3 -3
- package/dist/components/DsBottomNav/index.js +3 -3
- package/dist/{chunks/DsButton-CA18Fha-.js → components/DsButton/chunks/DsButton-9cB_fHZt.js} +6 -6
- package/dist/components/DsButton/index.js +5 -4
- package/dist/{chunks/DsButtonGroup-Ceat9ADe.js → components/DsButtonGroup/chunks/DsButtonGroup-DPK1W3Hk.js} +1 -1
- package/dist/components/DsButtonGroup/index.js +3 -3
- package/dist/{chunks/DsCard-GtapCsjq.js → components/DsCard/chunks/DsCard-Bnelx1JF.js} +1 -1
- package/dist/components/DsCard/index.js +3 -3
- package/dist/components/DsCheckbox/chunks/DsCheckbox-B3YN7RYo.js +111 -0
- package/dist/components/DsCheckbox/index.js +3 -3
- package/dist/components/DsCollapse/chunks/DsCollapse-7D6FTuFJ.js +150 -0
- package/dist/components/DsCollapse/index.js +3 -3
- package/dist/components/DsConfirmDialog/chunks/DsConfirmDialog-NkhfmD4Y.js +111 -0
- package/dist/components/DsConfirmDialog/index.js +3 -3
- package/dist/components/DsDataTable/chunks/DsDataTable-nK4XgT1y.js +142 -0
- package/dist/components/DsDataTable/index.js +3 -3
- package/dist/components/DsDialog/chunks/DsDialog-BH23MSq-.js +169 -0
- package/dist/components/DsDialog/index.js +4 -3
- package/dist/components/DsDrawer/chunks/DsDrawer-GW4JyPf_.js +135 -0
- package/dist/components/DsDrawer/index.js +2 -2
- package/dist/{chunks/DsDropdown-BcFjxaMe.js → components/DsDropdown/chunks/DsDropdown-DmR1NWyV.js} +54 -50
- package/dist/components/DsDropdown/index.js +3 -4
- package/dist/{chunks/DsDropdownMenu-CA7259h5.js → components/DsDropdownMenu/chunks/DsDropdownMenu-BlpO8mUO.js} +45 -30
- package/dist/components/DsDropdownMenu/index.js +3 -3
- package/dist/components/DsEmptyState/chunks/DsEmptyState-tKYwSiP1.js +49 -0
- package/dist/components/DsEmptyState/index.js +3 -3
- package/dist/components/DsFileUpload/chunks/DsFileUpload-Dya9vyG0.js +294 -0
- package/dist/components/DsFileUpload/index.js +4 -4
- package/dist/components/DsFormField/index.js +3 -3
- package/dist/components/DsFormFile/chunks/DsFormFile-BFfRuM1G.js +248 -0
- package/dist/components/DsFormFile/index.js +3 -3
- package/dist/components/DsFormSection/chunks/DsFormSection-Dzspqv9R.js +27 -0
- package/dist/components/DsFormSection/index.js +3 -3
- package/dist/components/DsIcon/chunks/DsIcon-Bk6qc4Kh.js +25 -0
- package/dist/components/DsIcon/index.js +3 -3
- package/dist/{chunks/DsImageViewer-C9NZ42St.js → components/DsImageViewer/chunks/DsImageViewer-_LWdAHAd.js} +109 -100
- package/dist/components/DsImageViewer/index.js +3 -3
- package/dist/{chunks/DsInput-DeoAkT6R.js → components/DsInput/chunks/DsInput-B8RhHkKQ.js} +52 -53
- package/dist/components/DsInput/index.js +2 -2
- package/dist/components/DsInputTag/chunks/DsInputTag-DVmvJ0A_.js +214 -0
- package/dist/components/DsInputTag/index.js +2 -2
- package/dist/components/DsLink/chunks/DsLink-DXClMbuX.js +59 -0
- package/dist/components/DsLink/index.js +2 -2
- package/dist/components/DsList/chunks/DsList-BEuPowc2.js +55 -0
- package/dist/components/DsList/index.js +3 -3
- package/dist/{chunks/DsLoading-ogfmbPE4.js → components/DsLoading/chunks/DsLoading-uYpDF-nK.js} +14 -14
- package/dist/components/DsLoading/index.js +3 -4
- package/dist/components/DsModal/chunks/DsModal-B2DLXV7F.js +136 -0
- package/dist/components/DsModal/index.js +4 -4
- package/dist/components/DsNavbar/chunks/DsNavbar-O-ud_du_.js +62 -0
- package/dist/components/DsNavbar/index.js +3 -3
- package/dist/{chunks/DsNumberInput-D-m5QoQJ.js → components/DsNumberInput/chunks/DsNumberInput-BJTpcTRc.js} +70 -56
- package/dist/components/DsNumberInput/index.js +2 -2
- package/dist/{chunks/DsPagination-B28ms0hc.js → components/DsPagination/chunks/DsPagination-hw_-VMRK.js} +33 -21
- package/dist/components/DsPagination/index.js +3 -3
- package/dist/{chunks/DsProgressBar-Bkuqudkg.js → components/DsProgressBar/chunks/DsProgressBar-CgIQj39W.js} +4 -2
- package/dist/components/DsProgressBar/index.js +2 -2
- package/dist/{chunks/DsPromptDialog-DdSca52S.js → components/DsPromptDialog/chunks/DsPromptDialog-_8v3Puaj.js} +42 -17
- package/dist/components/DsPromptDialog/index.js +3 -3
- package/dist/{chunks/DsRadio-x2vmEUCv.js → components/DsRadio/chunks/DsRadio-DKbrUFUZ.js} +21 -15
- package/dist/components/DsRadio/index.js +2 -2
- package/dist/{chunks/DsRadioGroup-CzlzJF2E.js → components/DsRadioGroup/chunks/DsRadioGroup-BQo7Nc5-.js} +13 -10
- package/dist/components/DsRadioGroup/index.js +3 -3
- package/dist/components/DsSegmented/chunks/DsSegmented-SbqzdCNX.js +250 -0
- package/dist/components/DsSegmented/index.js +2 -2
- package/dist/components/DsSelect/chunks/DsSelect-DN-vZIEG.js +314 -0
- package/dist/components/DsSelect/index.js +3 -4
- package/dist/components/DsSidebar/chunks/DsSidebar-DdofI1lo.js +29 -0
- package/dist/components/DsSidebar/index.js +3 -3
- package/dist/{chunks/DsSkeleton-BcXabaQ7.js → components/DsSkeleton/chunks/DsSkeleton-DJSQ4gGR.js} +9 -9
- package/dist/components/DsSkeleton/index.js +3 -3
- package/dist/{chunks/DsSwitch-DBdjltGz.js → components/DsSwitch/chunks/DsSwitch-Dh4_bd6e.js} +8 -4
- package/dist/components/DsSwitch/index.js +2 -2
- package/dist/components/DsTable/chunks/DsTable-C27_FR_h.js +44 -0
- package/dist/components/DsTable/index.js +3 -3
- package/dist/components/DsTabs/chunks/DsTabs-FLWaGtbo.js +98 -0
- package/dist/components/DsTabs/index.js +3 -3
- package/dist/{chunks/DsTextarea-DVSsoqi3.js → components/DsTextarea/chunks/DsTextarea-D61wwTwK.js} +10 -9
- package/dist/components/DsTextarea/index.js +2 -2
- package/dist/components/DsToaster/chunks/DsToaster-KO8wZChw.js +159 -0
- package/dist/components/DsToaster/index.js +2 -2
- package/dist/components/DsTooltip/chunks/DsTooltip-BNkQOtpm.js +37 -0
- package/dist/components/DsTooltip/index.js +3 -3
- package/dist/{chunks/DsTree-Bz37FcIb.js → components/DsTree/chunks/DsTree-DK0aOkKS.js} +19 -7
- package/dist/components/DsTree/index.js +2 -2
- package/dist/components/DsTreeSelect/chunks/DsTreeSelect-BnG-oplE.js +353 -0
- package/dist/components/DsTreeSelect/index.js +2 -2
- package/dist/directives/index.js +2 -0
- package/dist/{fileValidation.js → fileValidation/index.js} +1 -1
- package/dist/granular-provider-node.js +23 -0
- package/dist/granular-provider.js +5 -0
- package/dist/i18n/index.js +9 -0
- package/dist/index.js +147 -115
- package/dist/types/src/components/DsAlert/config.d.ts +1 -1
- package/dist/types/src/components/DsAlert/index.d.ts +0 -1
- package/dist/types/src/components/DsAvatar/config.d.ts +1 -1
- package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +1 -4
- package/dist/types/src/components/DsAvatar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsBadge/config.d.ts +1 -1
- package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +4 -1
- package/dist/types/src/components/DsBadge/safelist.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/index.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/config.d.ts +1 -1
- package/dist/types/src/components/DsBottomNav/index.d.ts +0 -1
- package/dist/types/src/components/DsButton/config.d.ts +1 -1
- package/dist/types/src/components/DsButton/config.node.d.ts +1 -0
- package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -10
- package/dist/types/src/components/DsButton/index.d.ts +2 -1
- package/dist/types/src/components/DsButton/safelist.d.ts +7 -1
- package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsButtonGroup/index.d.ts +0 -1
- package/dist/types/src/components/DsCard/config.d.ts +1 -1
- package/dist/types/src/components/DsCard/index.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +9 -4
- package/dist/types/src/components/DsCheckbox/config.d.ts +1 -1
- package/dist/types/src/components/DsCheckbox/index.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +12 -4
- package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +13 -6
- package/dist/types/src/components/DsCollapse/config.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/index.d.ts +2 -3
- package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +32 -11
- package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsConfirmDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +35 -42
- package/dist/types/src/components/DsDataTable/config.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/index.d.ts +1 -2
- package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +24 -14
- package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +4 -4
- package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +9 -4
- package/dist/types/src/components/DsDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsDialog/dialogShared.d.ts +6 -1
- package/dist/types/src/components/DsDialog/index.d.ts +6 -3
- package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +27 -11
- package/dist/types/src/components/DsDrawer/config.d.ts +1 -1
- package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +8 -19
- package/dist/types/src/components/DsDrawer/index.d.ts +2 -0
- package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +9 -4
- package/dist/types/src/components/DsDropdown/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +2 -1
- package/dist/types/src/components/DsDropdown/index.d.ts +2 -0
- package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +12 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +7 -6
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/index.d.ts +8 -4
- package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +15 -6
- package/dist/types/src/components/DsEmptyState/config.d.ts +1 -1
- package/dist/types/src/components/DsEmptyState/index.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +21 -8
- package/dist/types/src/components/DsFileUpload/config.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/index.d.ts +1 -1
- package/dist/types/src/components/DsFormField/config.d.ts +1 -1
- package/dist/types/src/components/DsFormField/index.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +13 -7
- package/dist/types/src/components/DsFormFile/config.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/index.d.ts +1 -2
- package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +10 -4
- package/dist/types/src/components/DsFormSection/config.d.ts +1 -1
- package/dist/types/src/components/DsFormSection/index.d.ts +1 -1
- package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +1 -2
- package/dist/types/src/components/DsIcon/config.d.ts +1 -1
- package/dist/types/src/components/DsIcon/index.d.ts +0 -2
- package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +45 -0
- package/dist/types/src/components/DsImageViewer/config.d.ts +1 -1
- package/dist/types/src/components/DsImageViewer/index.d.ts +0 -1
- package/dist/types/src/components/DsInput/config.d.ts +1 -1
- package/dist/types/src/components/DsInput/dsInputStyles.d.ts +17 -1
- package/dist/types/src/components/DsInput/index.d.ts +1 -1
- package/dist/types/src/components/DsInput/safelist.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +15 -5
- package/dist/types/src/components/DsInputTag/config.d.ts +1 -1
- package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +3 -1
- package/dist/types/src/components/DsInputTag/index.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -1
- package/dist/types/src/components/DsLink/DsLink.vue.d.ts +0 -1
- package/dist/types/src/components/DsLink/config.d.ts +1 -1
- package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +6 -1
- package/dist/types/src/components/DsLink/safelist.d.ts +1 -1
- package/dist/types/src/components/DsList/DsList.vue.d.ts +8 -5
- package/dist/types/src/components/DsList/DsListItem.vue.d.ts +39 -6
- package/dist/types/src/components/DsList/config.d.ts +1 -1
- package/dist/types/src/components/DsList/index.d.ts +2 -1
- package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +18 -5
- package/dist/types/src/components/DsLoading/config.d.ts +1 -1
- package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -1
- package/dist/types/src/components/DsLoading/index.d.ts +1 -0
- package/dist/types/src/components/DsLoading/safelist.d.ts +1 -1
- package/dist/types/src/components/DsModal/DsModal.vue.d.ts +17 -10
- package/dist/types/src/components/DsModal/config.d.ts +1 -1
- package/dist/types/src/components/DsModal/dsModalStyles.d.ts +25 -16
- package/dist/types/src/components/DsModal/index.d.ts +4 -2
- package/dist/types/src/components/DsModal/safelist.d.ts +15 -1
- package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +15 -7
- package/dist/types/src/components/DsNavbar/config.d.ts +1 -1
- package/dist/types/src/components/DsNavbar/index.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +17 -5
- package/dist/types/src/components/DsNumberInput/config.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +5 -1
- package/dist/types/src/components/DsNumberInput/index.d.ts +2 -1
- package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -1
- package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +10 -4
- package/dist/types/src/components/DsPagination/config.d.ts +1 -1
- package/dist/types/src/components/DsPagination/index.d.ts +1 -2
- package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +11 -4
- package/dist/types/src/components/DsProgressBar/config.d.ts +1 -1
- package/dist/types/src/components/DsProgressBar/config.node.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +0 -4
- package/dist/types/src/components/DsProgressBar/index.d.ts +2 -1
- package/dist/types/src/components/DsProgressBar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +33 -7
- package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsPromptDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +18 -6
- package/dist/types/src/components/DsRadio/config.d.ts +1 -1
- package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +9 -2
- package/dist/types/src/components/DsRadio/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/safelist.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +16 -6
- package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/index.d.ts +1 -2
- package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +10 -4
- package/dist/types/src/components/DsSegmented/config.d.ts +1 -1
- package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +13 -17
- package/dist/types/src/components/DsSegmented/index.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/safelist.d.ts +17 -1
- package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +13 -5
- package/dist/types/src/components/DsSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +5 -1
- package/dist/types/src/components/DsSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsSelect/safelist.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +20 -7
- package/dist/types/src/components/DsSidebar/config.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/index.d.ts +1 -2
- package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +10 -4
- package/dist/types/src/components/DsSkeleton/config.d.ts +1 -1
- package/dist/types/src/components/DsSkeleton/index.d.ts +1 -2
- package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +10 -5
- package/dist/types/src/components/DsSwitch/config.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +10 -10
- package/dist/types/src/components/DsSwitch/index.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/safelist.d.ts +10 -1
- package/dist/types/src/components/DsTable/DsTable.vue.d.ts +67 -4
- package/dist/types/src/components/DsTable/config.d.ts +1 -1
- package/dist/types/src/components/DsTable/index.d.ts +1 -1
- package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +4 -3
- package/dist/types/src/components/DsTabs/config.d.ts +1 -1
- package/dist/types/src/components/DsTabs/index.d.ts +1 -2
- package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +16 -1
- package/dist/types/src/components/DsTextarea/config.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/index.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -1
- package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +41 -1
- package/dist/types/src/components/DsToaster/config.d.ts +1 -1
- package/dist/types/src/components/DsToaster/dsToasterStyles.d.ts +2 -0
- package/dist/types/src/components/DsToaster/index.d.ts +2 -0
- package/dist/types/src/components/DsToaster/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +5 -4
- package/dist/types/src/components/DsTooltip/config.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/index.d.ts +1 -1
- package/dist/types/src/components/DsTree/config.d.ts +1 -1
- package/dist/types/src/components/DsTree/dsTreeProps.d.ts +6 -0
- package/dist/types/src/components/DsTree/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +3 -27
- package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +2 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +31 -1
- package/dist/types/src/components/DsTreeSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -1
- package/dist/types/src/composables/useToast.d.ts +4 -0
- package/dist/types/src/directives/globalDirectives.d.ts +1 -1
- package/dist/types/src/granular-provider/index.d.ts +3 -0
- package/dist/types/src/granular-provider/node.d.ts +3 -0
- package/dist/types/src/granular-provider/shared.d.ts +85 -0
- package/dist/types/src/i18n/messages.d.ts +12 -0
- package/dist/types/src/index.d.ts +11 -16
- package/dist/{vue.js → vue/index.js} +6 -2
- package/package.json +72 -142
- package/dist/assets/granularity-2oOxNk_f.css +0 -2
- package/dist/chunks/DsCheckbox-Afg94qUm.js +0 -101
- package/dist/chunks/DsCollapse-DWfip4gp.js +0 -144
- package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +0 -87
- package/dist/chunks/DsDataTable-DgBkEgDK.js +0 -91
- package/dist/chunks/DsDialog-BAGAa9DN.js +0 -178
- package/dist/chunks/DsDrawer-gmVF_0I0.js +0 -112
- package/dist/chunks/DsEmptyState-BdLoQ0-z.js +0 -46
- package/dist/chunks/DsFileUpload-IwtpKocj.js +0 -282
- package/dist/chunks/DsFormFile-C5ldcCAs.js +0 -219
- package/dist/chunks/DsFormSection-DmIDIQg7.js +0 -18
- package/dist/chunks/DsIcon-Q-KQGAQU.js +0 -25
- package/dist/chunks/DsInputTag-DWip_-Cr.js +0 -201
- package/dist/chunks/DsLink-CWpVQ0ij.js +0 -56
- package/dist/chunks/DsList-XI8AAk9b.js +0 -31
- package/dist/chunks/DsModal-Bl9r6v33.js +0 -75
- package/dist/chunks/DsNavbar-DJ4bv_MR.js +0 -54
- package/dist/chunks/DsSegmented-BwQ8VnOZ.js +0 -250
- package/dist/chunks/DsSelect-DEHGeICn.js +0 -304
- package/dist/chunks/DsSidebar-BNLaBCYD.js +0 -18
- package/dist/chunks/DsTable-apqrsbxV.js +0 -10
- package/dist/chunks/DsTabs-B1kkklFS.js +0 -47
- package/dist/chunks/DsToaster-B9u2x_Ii.js +0 -48
- package/dist/chunks/DsTooltip-BqNVJw2f.js +0 -27
- package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +0 -319
- package/dist/chunks/componentConfig-CQndJxd1.js +0 -14
- package/dist/chunks/config-4vrmi-D0.js +0 -9
- package/dist/chunks/config-ANT_Zf3l.js +0 -18
- package/dist/chunks/config-B7HAOCA1.js +0 -33
- package/dist/chunks/config-B7yrZO9u.js +0 -18
- package/dist/chunks/config-B98-jCfY.js +0 -9
- package/dist/chunks/config-BDJ2JaFs.js +0 -9
- package/dist/chunks/config-BEzNFZ_R.js +0 -10
- package/dist/chunks/config-BKpHj94n.js +0 -13
- package/dist/chunks/config-BLYxW-WQ.js +0 -9
- package/dist/chunks/config-BS0vLD_L.js +0 -41
- package/dist/chunks/config-BXlW2GSa.js +0 -33
- package/dist/chunks/config-BY6edpDp.js +0 -9
- package/dist/chunks/config-BZDKypuQ.js +0 -8
- package/dist/chunks/config-BeJEy8yN.js +0 -9
- package/dist/chunks/config-BnryTLnh.js +0 -47
- package/dist/chunks/config-BqaCteFh2.js +0 -9
- package/dist/chunks/config-BusLdkqX.js +0 -8
- package/dist/chunks/config-CBo4aVMV.js +0 -8
- package/dist/chunks/config-CLyDbB2M.js +0 -14
- package/dist/chunks/config-CML-WrGM.js +0 -10
- package/dist/chunks/config-CVEwIRRR.js +0 -30
- package/dist/chunks/config-Ch0TH9wN.js +0 -42
- package/dist/chunks/config-ClPYX-LP.js +0 -24
- package/dist/chunks/config-DA3cYUSo.js +0 -8
- package/dist/chunks/config-DAiP4yeJ.js +0 -8
- package/dist/chunks/config-DG_de8vE.js +0 -15
- package/dist/chunks/config-DIgvSIEs.js +0 -9
- package/dist/chunks/config-DJ7xDo-q.js +0 -16
- package/dist/chunks/config-DSFnRpu82.js +0 -19
- package/dist/chunks/config-DVHe_id-.js +0 -22
- package/dist/chunks/config-DoT3gzx7.js +0 -9
- package/dist/chunks/config-DuaBaVyF.js +0 -34
- package/dist/chunks/config-F4Bb6hVJ.js +0 -30
- package/dist/chunks/config-aUoIf7kK.js +0 -28
- package/dist/chunks/config-cKk87ycz2.js +0 -14
- package/dist/chunks/config-kfb3OyGZ.js +0 -24
- package/dist/chunks/config-oDjY8ZrP2.js +0 -8
- package/dist/chunks/config-panSV6Wo.js +0 -9
- package/dist/chunks/dsDialogStyles-C7QOvzmt.js +0 -11
- package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +0 -9
- package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +0 -16
- package/dist/chunks/dsModalStyles-C7E5kJ1o.js +0 -54
- package/dist/chunks/dsSelectStyles-Bym0uW4f.js +0 -82
- package/dist/chunks/preset-DBXBjf5u.js +0 -2235
- package/dist/components/DsAlert/styles.css +0 -386
- package/dist/components/DsAvatar/styles.css +0 -373
- package/dist/components/DsBadge/styles.css +0 -422
- package/dist/components/DsBadgeWrap/styles.css +0 -378
- package/dist/components/DsBottomNav/styles.css +0 -388
- package/dist/components/DsButton/styles.css +0 -633
- package/dist/components/DsButton/tokens.css +0 -96
- package/dist/components/DsButtonGroup/styles.css +0 -23
- package/dist/components/DsCard/styles.css +0 -365
- package/dist/components/DsCheckbox/styles.css +0 -394
- package/dist/components/DsCollapse/styles.css +0 -399
- package/dist/components/DsConfirmDialog/styles.css +0 -595
- package/dist/components/DsDataTable/styles.css +0 -387
- package/dist/components/DsDialog/styles.css +0 -592
- package/dist/components/DsDrawer/styles.css +0 -579
- package/dist/components/DsDropdown/styles.css +0 -392
- package/dist/components/DsDropdownMenu/styles.css +0 -430
- package/dist/components/DsEmptyState/styles.css +0 -380
- package/dist/components/DsFileUpload/styles.css +0 -403
- package/dist/components/DsFormField/styles.css +0 -365
- package/dist/components/DsFormFile/styles.css +0 -555
- package/dist/components/DsFormSection/styles.css +0 -365
- package/dist/components/DsIcon/styles.css +0 -20
- package/dist/components/DsIcon/tokens.css +0 -3
- package/dist/components/DsImageViewer/styles.css +0 -465
- package/dist/components/DsInput/styles.css +0 -416
- package/dist/components/DsInputTag/styles.css +0 -498
- package/dist/components/DsLink/styles.css +0 -390
- package/dist/components/DsList/styles.css +0 -376
- package/dist/components/DsLoading/styles.css +0 -381
- package/dist/components/DsModal/styles.css +0 -404
- package/dist/components/DsNavbar/styles.css +0 -549
- package/dist/components/DsNumberInput/styles.css +0 -428
- package/dist/components/DsPagination/styles.css +0 -637
- package/dist/components/DsProgressBar/styles.css +0 -398
- package/dist/components/DsProgressBar/tokens.css +0 -23
- package/dist/components/DsPromptDialog/styles.css +0 -622
- package/dist/components/DsRadio/styles.css +0 -558
- package/dist/components/DsRadioGroup/styles.css +0 -560
- package/dist/components/DsSegmented/styles.css +0 -422
- package/dist/components/DsSegmented/tokens.css +0 -9
- package/dist/components/DsSelect/styles.css +0 -483
- package/dist/components/DsSidebar/styles.css +0 -370
- package/dist/components/DsSkeleton/styles.css +0 -363
- package/dist/components/DsSwitch/styles.css +0 -393
- package/dist/components/DsTable/styles.css +0 -369
- package/dist/components/DsTabs/styles.css +0 -390
- package/dist/components/DsTextarea/styles.css +0 -382
- package/dist/components/DsToaster/styles.css +0 -558
- package/dist/components/DsTooltip/styles.css +0 -388
- package/dist/components/DsTree/styles.css +0 -375
- package/dist/components/DsTreeSelect/styles.css +0 -466
- package/dist/composables/useTheme.js +0 -44
- package/dist/composables/useToast.js +0 -37
- package/dist/directives/autofocus.js +0 -46
- package/dist/directives/autosize.js +0 -62
- package/dist/directives/clickOutside.js +0 -82
- package/dist/directives/dropzone.js +0 -110
- package/dist/directives/globalDirectives.js +0 -0
- package/dist/directives/hotkey.js +0 -104
- package/dist/directives/loading.js +0 -125
- package/dist/directives.js +0 -7
- package/dist/foundation.css +0 -358
- package/dist/i18n.js +0 -9
- package/dist/package.json +0 -297
- package/dist/styles/base.css +0 -33
- package/dist/styles/themes/dark.css +0 -102
- package/dist/styles/themes/light.css +0 -98
- package/dist/styles/tokens.css +0 -118
- package/dist/styles.css +0 -1134
- package/dist/types/src/components/DsAlert/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButton/styles.css.d.ts +0 -4
- package/dist/types/src/components/DsButtonGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsCard/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCollapse/safelist.d.ts +0 -1
- package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDataTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +0 -1
- package/dist/types/src/components/DsEmptyState/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFileUpload/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +0 -1
- package/dist/types/src/components/DsFormFile/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormSection/safelist.d.ts +0 -1
- package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +0 -2
- package/dist/types/src/components/DsIcon/styles.css.d.ts +0 -5
- package/dist/types/src/components/DsImageViewer/safelist.d.ts +0 -1
- package/dist/types/src/components/DsList/safelist.d.ts +0 -1
- package/dist/types/src/components/DsModal/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsNavbar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPagination/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsRadioGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSelect/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsSidebar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSkeleton/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTabs/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTooltip/safelist.d.ts +0 -1
- package/dist/types/src/registry/componentConfig.d.ts +0 -17
- package/dist/types/src/registry/componentCss.d.ts +0 -3
- package/dist/types/src/registry/componentCss.node.d.ts +0 -5
- package/dist/types/src/registry/components.d.ts +0 -56
- package/dist/types/src/registry/safelist.d.ts +0 -11
- package/dist/types/src/theming/themeRegistry.d.ts +0 -19
- package/dist/types/src/theming/themeRegistry.node.d.ts +0 -14
- package/dist/types/src/unocss/preset.d.ts +0 -18
- package/dist/types/src/unocss/preset.node.d.ts +0 -15
- package/dist/types/src/unocss/rules/animation.d.ts +0 -3
- package/dist/types/src/unocss/rules/colorOpacity.d.ts +0 -2
- package/dist/types/src/unocss/rules/filters.d.ts +0 -8
- package/dist/types/src/unocss/rules/spacing.d.ts +0 -8
- package/dist/uno-node.js +0 -103
- package/dist/uno.js +0 -2
- package/web-types.json +0 -100
- /package/dist/chunks/{_plugin-vue_export-helper-DOgycIVc.js → _plugin-vue_export-helper-CHO2XVys.js} +0 -0
- /package/dist/chunks/{adapter-BKKNB3Ii.js → adapter-veOBOjv3.js} +0 -0
- /package/dist/chunks/{arrow-up-B4OlmAKz.js → arrow-up-Dv3dC3hu.js} +0 -0
- /package/dist/chunks/{info-CmLOtVnO.js → info-CNJnuTYC.js} +0 -0
- /package/dist/chunks/{loader-circle-DtXjkqR7.js → loader-circle-C5vCCMfB.js} +0 -0
- /package/dist/chunks/{x-dGjszOU2.js → x--kxrj3ez.js} +0 -0
- /package/dist/chunks/{x-circle-BZnfL2nz.js → x-circle-ChJ87u1v.js} +0 -0
- /package/dist/{chunks/DsBadgeWrap-UgP-TMdA.js → components/DsBadgeWrap/chunks/DsBadgeWrap-DO8TjFYg.js} +0 -0
- /package/dist/{chunks/DsBottomNav-Dze5cFVz.js → components/DsBottomNav/chunks/DsBottomNav-NRtHfcmQ.js} +0 -0
- /package/dist/{chunks/DsFormField-XVZK7YVU.js → components/DsFormField/chunks/DsFormField-QvWyAReX.js} +0 -0
- /package/dist/types/src/components/DsDialog/{dsDialogStyles.d.ts → safelist.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e,
|
|
2
|
-
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as ee, nextTick as s, normalizeClass as te, normalizeStyle as c, onBeforeUnmount as l, onMounted as ne, onUpdated as
|
|
1
|
+
import { i as e, r as t } from "../../../chunks/config-CtgK8aLQ.js";
|
|
2
|
+
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as ee, nextTick as s, normalizeClass as te, normalizeStyle as c, onBeforeUnmount as l, onMounted as ne, onUpdated as u, openBlock as d, ref as f, renderSlot as p, useSlots as m, withModifiers as h } from "vue";
|
|
3
3
|
//#region src/components/DsNumberInput/DsNumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
4
|
+
var re = [
|
|
5
5
|
"id",
|
|
6
6
|
"name",
|
|
7
7
|
"inputmode",
|
|
@@ -10,7 +10,7 @@ var m = [
|
|
|
10
10
|
"disabled",
|
|
11
11
|
"value",
|
|
12
12
|
"aria-invalid"
|
|
13
|
-
],
|
|
13
|
+
], ie = { class: "flex flex-col justify-center gap-1" }, g = ["disabled", "aria-label"], ae = ["disabled", "aria-label"], _ = ["disabled", "aria-label"], oe = ["disabled", "aria-label"], v = /* @__PURE__ */ o({
|
|
14
14
|
inheritAttrs: !1,
|
|
15
15
|
__name: "DsNumberInput",
|
|
16
16
|
props: {
|
|
@@ -44,10 +44,12 @@ var m = [
|
|
|
44
44
|
prefixMinWidth: { default: void 0 },
|
|
45
45
|
prefixMaxWidth: { default: void 0 },
|
|
46
46
|
suffixMinWidth: { default: void 0 },
|
|
47
|
-
suffixMaxWidth: { default: void 0 }
|
|
47
|
+
suffixMaxWidth: { default: void 0 },
|
|
48
|
+
increaseLabel: { default: "Increase" },
|
|
49
|
+
decreaseLabel: { default: "Decrease" }
|
|
48
50
|
},
|
|
49
51
|
emits: ["update:modelValue", "change"],
|
|
50
|
-
setup(o, { expose:
|
|
52
|
+
setup(o, { expose: v, emit: se }) {
|
|
51
53
|
let y = {
|
|
52
54
|
xs: 32,
|
|
53
55
|
sm: 36,
|
|
@@ -62,12 +64,12 @@ var m = [
|
|
|
62
64
|
function x(e) {
|
|
63
65
|
return `${e}px`;
|
|
64
66
|
}
|
|
65
|
-
let S = o, C =
|
|
67
|
+
let S = o, C = se, w = f(null);
|
|
66
68
|
function T() {
|
|
67
69
|
w.value?.focus();
|
|
68
70
|
}
|
|
69
|
-
|
|
70
|
-
let E =
|
|
71
|
+
v({ focus: T });
|
|
72
|
+
let E = m(), D = n(() => !!E.prefix), O = n(() => !!E.suffix), k = n(() => S.controls && S.controlsDirection === "horizontal"), A = n(() => S.controls && S.controlsDirection === "vertical"), j = n(() => y[S.size]), M = n(() => x(j.value)), N = n(() => b[S.size]), P = n(() => M.value), F = n(() => S.prefixMinWidth ?? P.value), I = n(() => S.suffixMinWidth ?? P.value), L = f(null), R = f(null), z = f(void 0), B = f(void 0), V = null, H = !1;
|
|
71
73
|
function U(e) {
|
|
72
74
|
if (!e) return;
|
|
73
75
|
let t = Math.ceil(e.getBoundingClientRect().width || 0);
|
|
@@ -84,7 +86,7 @@ var m = [
|
|
|
84
86
|
H = !1, W(), G();
|
|
85
87
|
}));
|
|
86
88
|
}
|
|
87
|
-
ne(() => K()),
|
|
89
|
+
ne(() => K()), u(() => K()), l(() => V?.disconnect());
|
|
88
90
|
function q(e, t) {
|
|
89
91
|
if (e === "0px") return t;
|
|
90
92
|
if (t === "0px") return e;
|
|
@@ -118,14 +120,14 @@ var m = [
|
|
|
118
120
|
size: S.size,
|
|
119
121
|
textAlign: S.textAlign
|
|
120
122
|
}));
|
|
121
|
-
function
|
|
123
|
+
function ge(e) {
|
|
122
124
|
return e >= "0" && e <= "9";
|
|
123
125
|
}
|
|
124
|
-
function
|
|
126
|
+
function Z(e) {
|
|
125
127
|
let t = S.decimalSeparator || ".", n = "", r = !1;
|
|
126
128
|
for (let i = 0; i < e.length; i++) {
|
|
127
129
|
let a = e[i];
|
|
128
|
-
if (
|
|
130
|
+
if (ge(a)) {
|
|
129
131
|
n += a;
|
|
130
132
|
continue;
|
|
131
133
|
}
|
|
@@ -133,7 +135,7 @@ var m = [
|
|
|
133
135
|
}
|
|
134
136
|
return n;
|
|
135
137
|
}
|
|
136
|
-
function
|
|
138
|
+
function Q(e) {
|
|
137
139
|
if (e.trim() === "") return null;
|
|
138
140
|
let t = S.decimalSeparator || ".", n = t === "." ? e : e.replace(t, "."), r = Number(n);
|
|
139
141
|
return Number.isFinite(r) ? r : null;
|
|
@@ -151,151 +153,163 @@ var m = [
|
|
|
151
153
|
return t !== "." && (r = r.replace(".", t)), r;
|
|
152
154
|
}
|
|
153
155
|
function be(e) {
|
|
154
|
-
let t = e.target, n =
|
|
156
|
+
let t = e.target, n = Z(t.value);
|
|
155
157
|
t.value !== n && (t.value = n), C("update:modelValue", n);
|
|
156
158
|
}
|
|
157
159
|
function xe(e) {
|
|
158
|
-
let t = e.target, n =
|
|
160
|
+
let t = e.target, n = Z(t.value);
|
|
159
161
|
t.value !== n && (t.value = n), C("change", n);
|
|
160
162
|
}
|
|
161
163
|
function $(e) {
|
|
162
164
|
if (S.disabled) return;
|
|
163
|
-
let t = ye(_e(ve((
|
|
165
|
+
let t = ye(_e(ve((Q(S.modelValue) ?? 0) + (S.step ?? 1) * e)));
|
|
164
166
|
C("update:modelValue", t), C("change", t), T();
|
|
165
167
|
}
|
|
166
|
-
return (e, t) => (
|
|
167
|
-
|
|
168
|
+
return (e, t) => (d(), i("div", {
|
|
169
|
+
"data-ds-number-input": "",
|
|
170
|
+
class: te(["relative w-full overflow-hidden rounded-md border bg-[var(--bg)] transition-colors duration-150 focus-within:ring-2 focus-within:ring-[var(--ring)]", me.value])
|
|
171
|
+
}, [
|
|
172
|
+
e.$slots.prefix ? (d(), i("div", {
|
|
168
173
|
key: 0,
|
|
169
174
|
ref_key: "prefixEl",
|
|
170
175
|
ref: L,
|
|
171
176
|
"data-testid": "number-input-prefix",
|
|
177
|
+
"data-ds-number-input-prefix": "",
|
|
172
178
|
class: "absolute inset-y-0 left-0 flex items-center justify-center border-r border-[var(--brd)] px-2 text-[var(--muted-fg)] pointer-events-none select-none truncate",
|
|
173
179
|
style: c(ue.value),
|
|
174
180
|
"aria-hidden": "true"
|
|
175
|
-
}, [
|
|
181
|
+
}, [p(e.$slots, "prefix")], 4)) : r("", !0),
|
|
176
182
|
a("input", ee({
|
|
177
|
-
id:
|
|
183
|
+
id: o.id,
|
|
178
184
|
ref_key: "inputEl",
|
|
179
185
|
ref: w
|
|
180
186
|
}, e.$attrs, {
|
|
181
|
-
name:
|
|
187
|
+
name: o.name,
|
|
182
188
|
type: "text",
|
|
183
|
-
inputmode:
|
|
184
|
-
autocomplete:
|
|
185
|
-
placeholder:
|
|
186
|
-
disabled:
|
|
187
|
-
value:
|
|
188
|
-
"aria-invalid":
|
|
189
|
+
inputmode: o.inputmode,
|
|
190
|
+
autocomplete: o.autocomplete,
|
|
191
|
+
placeholder: o.placeholder,
|
|
192
|
+
disabled: o.disabled,
|
|
193
|
+
value: o.modelValue,
|
|
194
|
+
"aria-invalid": o.invalid ? "true" : void 0,
|
|
189
195
|
class: ["w-full bg-transparent text-[var(--fg)] placeholder:text-[var(--muted-fg)] focus:placeholder:text-transparent focus:outline-none disabled:cursor-not-allowed", he.value],
|
|
190
196
|
style: ce.value,
|
|
191
197
|
onInput: be,
|
|
192
198
|
onChange: xe
|
|
193
|
-
}), null, 16,
|
|
194
|
-
e.$slots.suffix ? (
|
|
199
|
+
}), null, 16, re),
|
|
200
|
+
e.$slots.suffix ? (d(), i("div", {
|
|
195
201
|
key: 1,
|
|
196
202
|
ref_key: "suffixEl",
|
|
197
203
|
ref: R,
|
|
198
204
|
"data-testid": "number-input-suffix",
|
|
205
|
+
"data-ds-number-input-suffix": "",
|
|
199
206
|
class: "absolute inset-y-0 flex items-center justify-center border-l border-[var(--brd)] px-2 text-[var(--muted-fg)] pointer-events-none select-none truncate",
|
|
200
207
|
style: c(le.value),
|
|
201
208
|
"aria-hidden": "true"
|
|
202
|
-
}, [
|
|
203
|
-
A.value ? (
|
|
209
|
+
}, [p(e.$slots, "suffix")], 4)) : r("", !0),
|
|
210
|
+
A.value ? (d(), i("div", {
|
|
204
211
|
key: 2,
|
|
205
212
|
"data-testid": "number-input-controls-vertical",
|
|
213
|
+
"data-ds-number-input-controls": "vertical",
|
|
206
214
|
class: "absolute inset-y-0 flex items-center justify-center border-l border-[var(--brd)]",
|
|
207
215
|
style: c(de.value)
|
|
208
|
-
}, [a("div",
|
|
216
|
+
}, [a("div", ie, [a("button", {
|
|
209
217
|
type: "button",
|
|
210
218
|
class: "h-4 w-7 inline-flex items-center justify-center rounded text-[10px] text-[var(--muted-fg)] hover:bg-[var(--muted)] active:bg-[var(--muted)] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
211
|
-
disabled:
|
|
212
|
-
"aria-label":
|
|
213
|
-
onMousedown: t[0] ||=
|
|
219
|
+
disabled: o.disabled,
|
|
220
|
+
"aria-label": o.increaseLabel,
|
|
221
|
+
onMousedown: t[0] ||= h(() => {}, ["prevent"]),
|
|
214
222
|
onClick: t[1] ||= (e) => $(1)
|
|
215
223
|
}, [...t[8] ||= [a("svg", {
|
|
216
224
|
width: "12",
|
|
217
225
|
height: "12",
|
|
218
226
|
viewBox: "0 0 24 24",
|
|
219
227
|
fill: "none",
|
|
220
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
228
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
229
|
+
"aria-hidden": "true"
|
|
221
230
|
}, [a("path", {
|
|
222
231
|
d: "M7 14l5-5 5 5",
|
|
223
232
|
stroke: "currentColor",
|
|
224
233
|
"stroke-width": "2",
|
|
225
234
|
"stroke-linecap": "round",
|
|
226
235
|
"stroke-linejoin": "round"
|
|
227
|
-
})], -1)]], 40,
|
|
236
|
+
})], -1)]], 40, g), a("button", {
|
|
228
237
|
type: "button",
|
|
229
238
|
class: "h-4 w-7 inline-flex items-center justify-center rounded text-[10px] text-[var(--muted-fg)] hover:bg-[var(--muted)] active:bg-[var(--muted)] disabled:opacity-50 disabled:cursor-not-allowed",
|
|
230
|
-
disabled:
|
|
231
|
-
"aria-label":
|
|
232
|
-
onMousedown: t[2] ||=
|
|
239
|
+
disabled: o.disabled,
|
|
240
|
+
"aria-label": o.decreaseLabel,
|
|
241
|
+
onMousedown: t[2] ||= h(() => {}, ["prevent"]),
|
|
233
242
|
onClick: t[3] ||= (e) => $(-1)
|
|
234
243
|
}, [...t[9] ||= [a("svg", {
|
|
235
244
|
width: "12",
|
|
236
245
|
height: "12",
|
|
237
246
|
viewBox: "0 0 24 24",
|
|
238
247
|
fill: "none",
|
|
239
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
248
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
249
|
+
"aria-hidden": "true"
|
|
240
250
|
}, [a("path", {
|
|
241
251
|
d: "M7 10l5 5 5-5",
|
|
242
252
|
stroke: "currentColor",
|
|
243
253
|
"stroke-width": "2",
|
|
244
254
|
"stroke-linecap": "round",
|
|
245
255
|
"stroke-linejoin": "round"
|
|
246
|
-
})], -1)]], 40,
|
|
247
|
-
k.value ? (
|
|
256
|
+
})], -1)]], 40, ae)])], 4)) : r("", !0),
|
|
257
|
+
k.value ? (d(), i("div", {
|
|
248
258
|
key: 3,
|
|
249
259
|
"data-testid": "number-input-controls-horizontal-left",
|
|
260
|
+
"data-ds-number-input-controls": "horizontal-left",
|
|
250
261
|
class: "absolute inset-y-0 flex items-stretch justify-center border-r border-[var(--brd)]",
|
|
251
262
|
style: c(fe.value)
|
|
252
263
|
}, [a("button", {
|
|
253
264
|
type: "button",
|
|
254
265
|
class: "h-full w-full inline-flex items-center justify-center text-[var(--muted-fg)] hover:bg-[var(--muted)] active:bg-[var(--muted)] disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
255
|
-
disabled:
|
|
256
|
-
"aria-label":
|
|
257
|
-
onMousedown: t[4] ||=
|
|
266
|
+
disabled: o.disabled,
|
|
267
|
+
"aria-label": o.decreaseLabel,
|
|
268
|
+
onMousedown: t[4] ||= h(() => {}, ["prevent"]),
|
|
258
269
|
onClick: t[5] ||= (e) => $(-1)
|
|
259
270
|
}, [...t[10] ||= [a("svg", {
|
|
260
271
|
width: "12",
|
|
261
272
|
height: "12",
|
|
262
273
|
viewBox: "0 0 24 24",
|
|
263
274
|
fill: "none",
|
|
264
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
275
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
276
|
+
"aria-hidden": "true"
|
|
265
277
|
}, [a("path", {
|
|
266
278
|
d: "M14 7l-5 5 5 5",
|
|
267
279
|
stroke: "currentColor",
|
|
268
280
|
"stroke-width": "2",
|
|
269
281
|
"stroke-linecap": "round",
|
|
270
282
|
"stroke-linejoin": "round"
|
|
271
|
-
})], -1)]], 40,
|
|
272
|
-
k.value ? (
|
|
283
|
+
})], -1)]], 40, _)], 4)) : r("", !0),
|
|
284
|
+
k.value ? (d(), i("div", {
|
|
273
285
|
key: 4,
|
|
274
286
|
"data-testid": "number-input-controls-horizontal-right",
|
|
287
|
+
"data-ds-number-input-controls": "horizontal-right",
|
|
275
288
|
class: "absolute inset-y-0 flex items-stretch justify-center border-l border-[var(--brd)]",
|
|
276
289
|
style: c(pe.value)
|
|
277
290
|
}, [a("button", {
|
|
278
291
|
type: "button",
|
|
279
292
|
class: "h-full w-full inline-flex items-center justify-center text-[var(--muted-fg)] hover:bg-[var(--muted)] active:bg-[var(--muted)] disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
280
|
-
disabled:
|
|
281
|
-
"aria-label":
|
|
282
|
-
onMousedown: t[6] ||=
|
|
293
|
+
disabled: o.disabled,
|
|
294
|
+
"aria-label": o.increaseLabel,
|
|
295
|
+
onMousedown: t[6] ||= h(() => {}, ["prevent"]),
|
|
283
296
|
onClick: t[7] ||= (e) => $(1)
|
|
284
297
|
}, [...t[11] ||= [a("svg", {
|
|
285
298
|
width: "12",
|
|
286
299
|
height: "12",
|
|
287
300
|
viewBox: "0 0 24 24",
|
|
288
301
|
fill: "none",
|
|
289
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
302
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
303
|
+
"aria-hidden": "true"
|
|
290
304
|
}, [a("path", {
|
|
291
305
|
d: "M10 7l5 5-5 5",
|
|
292
306
|
stroke: "currentColor",
|
|
293
307
|
"stroke-width": "2",
|
|
294
308
|
"stroke-linecap": "round",
|
|
295
309
|
"stroke-linejoin": "round"
|
|
296
|
-
})], -1)]], 40,
|
|
310
|
+
})], -1)]], 40, oe)], 4)) : r("", !0)
|
|
297
311
|
], 2));
|
|
298
312
|
}
|
|
299
313
|
});
|
|
300
314
|
//#endregion
|
|
301
|
-
export {
|
|
315
|
+
export { v as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-CtgK8aLQ.js";
|
|
2
|
+
import { t as n } from "./chunks/DsNumberInput-BJTpcTRc.js";
|
|
3
3
|
export { n as DsNumberInput, n as default, t as dsNumberInputConfig, e as dsNumberInputSafelist };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import { t } from "
|
|
3
|
-
import { t as n } from "
|
|
1
|
+
import { t as e } from "../../DsButton/chunks/DsButton-9cB_fHZt.js";
|
|
2
|
+
import { t } from "../../../chunks/granularityI18n-DYNnonoE.js";
|
|
3
|
+
import { t as n } from "../../DsSelect/chunks/DsSelect-DN-vZIEG.js";
|
|
4
4
|
import { Fragment as r, computed as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
5
5
|
//#region src/components/DsPagination/DsPagination.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var g =
|
|
6
|
+
var g = ["aria-label"], _ = { class: "min-w-[100px]" }, v = { class: "flex items-center gap-1" }, y = [
|
|
7
|
+
"aria-current",
|
|
8
|
+
"aria-label",
|
|
9
|
+
"onClick"
|
|
10
|
+
], b = /* @__PURE__ */ l({
|
|
7
11
|
__name: "DsPagination",
|
|
8
12
|
props: {
|
|
9
13
|
page: {},
|
|
@@ -18,32 +22,37 @@ var g = { class: "flex flex-wrap items-center justify-end gap-3" }, _ = { class:
|
|
|
18
22
|
emits: ["update:page", "update:pageSize"],
|
|
19
23
|
setup(l, { emit: b }) {
|
|
20
24
|
let { t: x } = t(), S = l, C = b, w = i(() => Math.max(1, Math.ceil(S.total / S.pageSize))), T = i({
|
|
21
|
-
get: () => S.page,
|
|
22
|
-
set: (e) => C("update:page", e)
|
|
23
|
-
}), E = i({
|
|
24
25
|
get: () => String(S.pageSize),
|
|
25
26
|
set: (e) => C("update:pageSize", Number(e))
|
|
26
|
-
}),
|
|
27
|
+
}), E = i(() => S.pageSizes.map((e) => ({
|
|
27
28
|
value: String(e),
|
|
28
29
|
label: String(e)
|
|
29
|
-
}))),
|
|
30
|
+
}))), D = i(() => {
|
|
30
31
|
let e = w.value, t = S.page, n = Math.max(1, t - 2), r = Math.min(e, n + 5 - 1);
|
|
31
32
|
n = Math.max(1, r - 5 + 1);
|
|
32
33
|
let i = [];
|
|
33
34
|
for (let e = n; e <= r; e += 1) i.push(e);
|
|
34
35
|
return i;
|
|
35
36
|
});
|
|
37
|
+
function O(e) {
|
|
38
|
+
C("update:page", e);
|
|
39
|
+
}
|
|
36
40
|
function k() {
|
|
37
|
-
|
|
41
|
+
O(Math.max(1, S.page - 1));
|
|
38
42
|
}
|
|
39
43
|
function A() {
|
|
40
|
-
|
|
44
|
+
O(Math.min(w.value, S.page + 1));
|
|
41
45
|
}
|
|
42
|
-
return (t, i) => (d(), a("div",
|
|
46
|
+
return (t, i) => (d(), a("div", {
|
|
47
|
+
class: "flex flex-wrap items-center justify-end gap-3",
|
|
48
|
+
"data-ds-pagination": "",
|
|
49
|
+
role: "navigation",
|
|
50
|
+
"aria-label": m(x)("ds.pagination.pageSize", "Pagination")
|
|
51
|
+
}, [
|
|
43
52
|
o("div", _, [c(n, {
|
|
44
|
-
modelValue:
|
|
45
|
-
"onUpdate:modelValue": i[0] ||= (e) =>
|
|
46
|
-
options:
|
|
53
|
+
modelValue: T.value,
|
|
54
|
+
"onUpdate:modelValue": i[0] ||= (e) => T.value = e,
|
|
55
|
+
options: E.value,
|
|
47
56
|
"aria-label": m(x)("ds.pagination.pageSize", "Page size")
|
|
48
57
|
}, null, 8, [
|
|
49
58
|
"modelValue",
|
|
@@ -53,28 +62,31 @@ var g = { class: "flex flex-wrap items-center justify-end gap-3" }, _ = { class:
|
|
|
53
62
|
c(e, {
|
|
54
63
|
variant: "ghost",
|
|
55
64
|
size: "sm",
|
|
56
|
-
disabled:
|
|
65
|
+
disabled: l.page <= 1,
|
|
57
66
|
onClick: k
|
|
58
67
|
}, {
|
|
59
68
|
default: h(() => [s(p(m(x)("ds.pagination.prev", "Prev")), 1)]),
|
|
60
69
|
_: 1
|
|
61
70
|
}, 8, ["disabled"]),
|
|
62
|
-
o("div", v, [(d(!0), a(r, null, f(
|
|
71
|
+
o("div", v, [(d(!0), a(r, null, f(D.value, (e) => (d(), a("button", {
|
|
63
72
|
key: e,
|
|
64
73
|
type: "button",
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
"data-ds-pagination-page": "",
|
|
75
|
+
"aria-current": e === l.page ? "page" : void 0,
|
|
76
|
+
"aria-label": `Page ${e}`,
|
|
77
|
+
class: u(["h-8 min-w-8 px-2 rounded-md text-sm font-600 transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", e === l.page ? "bg-[var(--primary)] text-[var(--primary-fg)]" : "text-[var(--muted-fg)] hover:bg-[var(--muted)] hover:text-[var(--fg)]"]),
|
|
78
|
+
onClick: (t) => O(e)
|
|
67
79
|
}, p(e), 11, y))), 128))]),
|
|
68
80
|
c(e, {
|
|
69
81
|
variant: "ghost",
|
|
70
82
|
size: "sm",
|
|
71
|
-
disabled:
|
|
83
|
+
disabled: l.page >= w.value,
|
|
72
84
|
onClick: A
|
|
73
85
|
}, {
|
|
74
86
|
default: h(() => [s(p(m(x)("ds.pagination.next", "Next")), 1)]),
|
|
75
87
|
_: 1
|
|
76
88
|
}, 8, ["disabled"])
|
|
77
|
-
]));
|
|
89
|
+
], 8, g));
|
|
78
90
|
}
|
|
79
91
|
});
|
|
80
92
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsPagination, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsPagination-hw_-VMRK.js";
|
|
2
|
+
import { t } from "../../chunks/config-EhfVxSIR.js";
|
|
3
|
+
export { e as DsPagination, e as default, t as dsPaginationConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "../../../chunks/config-Bb8NpnGF.js";
|
|
2
2
|
import { computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s } from "vue";
|
|
3
3
|
//#region src/components/DsProgressBar/DsProgressBar.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var c = ["aria-label", "aria-valuenow"], l = /* @__PURE__ */ i({
|
|
@@ -11,13 +11,15 @@ var c = ["aria-label", "aria-valuenow"], l = /* @__PURE__ */ i({
|
|
|
11
11
|
setup(i) {
|
|
12
12
|
let l = i, u = t(() => Number.isNaN(l.value) ? 0 : Math.min(100, Math.max(0, l.value))), d = t(() => e(l.tone));
|
|
13
13
|
return (e, t) => (s(), n("div", {
|
|
14
|
+
"data-ds-progress-bar": "",
|
|
14
15
|
role: "progressbar",
|
|
15
|
-
"aria-label":
|
|
16
|
+
"aria-label": i.ariaLabel,
|
|
16
17
|
"aria-valuenow": u.value,
|
|
17
18
|
"aria-valuemin": "0",
|
|
18
19
|
"aria-valuemax": "100",
|
|
19
20
|
class: "h-2 w-full rounded-full bg-[var(--muted)] border border-[var(--brd)] overflow-hidden"
|
|
20
21
|
}, [r("div", {
|
|
22
|
+
"data-ds-progress-bar-fill": "",
|
|
21
23
|
class: a(["h-full", d.value]),
|
|
22
24
|
style: o({ width: `${u.value}%` })
|
|
23
25
|
}, null, 6)], 8, c));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-Bb8NpnGF.js";
|
|
2
|
+
import { t as n } from "./chunks/DsProgressBar-CgIQj39W.js";
|
|
3
3
|
export { n as DsProgressBar, n as default, t as dsProgressBarConfig, e as dsProgressBarSafelist };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import { t } from "
|
|
3
|
-
import { t as n } from "
|
|
4
|
-
import { t as r } from "
|
|
1
|
+
import { t as e } from "../../DsButton/chunks/DsButton-9cB_fHZt.js";
|
|
2
|
+
import { t } from "../../DsDialog/chunks/DsDialog-BH23MSq-.js";
|
|
3
|
+
import { t as n } from "../../DsFormField/chunks/DsFormField-QvWyAReX.js";
|
|
4
|
+
import { t as r } from "../../DsInput/chunks/DsInput-B8RhHkKQ.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, watch as g, withCtx as _ } from "vue";
|
|
6
6
|
//#region src/components/DsPromptDialog/DsPromptDialog.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var v = { class: "grid gap-4" }, y = {
|
|
@@ -20,12 +20,27 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
20
20
|
type: Boolean,
|
|
21
21
|
default: !0
|
|
22
22
|
},
|
|
23
|
+
closeOnEsc: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
showHeader: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
showCloseButton: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
23
35
|
size: { default: "md" },
|
|
24
36
|
headerConfig: { default: void 0 },
|
|
25
37
|
footerConfig: { default: void 0 },
|
|
38
|
+
bodyConfig: { default: void 0 },
|
|
39
|
+
closeLabel: { default: "Close" },
|
|
26
40
|
buttonSize: { default: void 0 },
|
|
27
41
|
confirmText: { default: "Confirm" },
|
|
28
42
|
cancelText: { default: "Cancel" },
|
|
43
|
+
requiredErrorText: { default: "Enter a value." },
|
|
29
44
|
confirmVariant: { default: "primary" },
|
|
30
45
|
confirmTone: { default: "primary" },
|
|
31
46
|
required: {
|
|
@@ -51,7 +66,7 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
51
66
|
e && (E.value = !1);
|
|
52
67
|
});
|
|
53
68
|
let O = i(() => S.required ? T.value.trim().length > 0 : !0), k = i(() => {
|
|
54
|
-
if (S.required && E.value) return T.value.trim().length > 0 ? void 0 :
|
|
69
|
+
if (S.required && E.value) return T.value.trim().length > 0 ? void 0 : S.requiredErrorText;
|
|
55
70
|
});
|
|
56
71
|
function A() {
|
|
57
72
|
C("cancel"), C("update:modelValue", !1);
|
|
@@ -67,25 +82,30 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
67
82
|
modelValue: w.value,
|
|
68
83
|
"onUpdate:modelValue": p[2] ||= (e) => w.value = e,
|
|
69
84
|
title: d.title,
|
|
70
|
-
size:
|
|
71
|
-
"close-on-backdrop":
|
|
72
|
-
"
|
|
73
|
-
"
|
|
85
|
+
size: d.size,
|
|
86
|
+
"close-on-backdrop": d.closeOnBackdrop,
|
|
87
|
+
"close-on-esc": d.closeOnEsc,
|
|
88
|
+
"show-header": d.showHeader,
|
|
89
|
+
"show-close-button": d.showCloseButton,
|
|
90
|
+
"header-config": d.headerConfig,
|
|
91
|
+
"footer-config": d.footerConfig,
|
|
92
|
+
"body-config": d.bodyConfig,
|
|
93
|
+
"close-label": d.closeLabel
|
|
74
94
|
}, {
|
|
75
95
|
footer: _(() => [m(i.$slots, "footer", {}, () => [c("div", b, [u(e, {
|
|
76
96
|
"data-testid": "ds-prompt-cancel",
|
|
77
97
|
variant: "outline",
|
|
78
|
-
size:
|
|
98
|
+
size: d.buttonSize,
|
|
79
99
|
onClick: A
|
|
80
100
|
}, {
|
|
81
101
|
default: _(() => [l(h(d.cancelText), 1)]),
|
|
82
102
|
_: 1
|
|
83
103
|
}, 8, ["size"]), u(e, {
|
|
84
104
|
"data-testid": "ds-prompt-confirm",
|
|
85
|
-
variant:
|
|
86
|
-
tone:
|
|
87
|
-
size:
|
|
88
|
-
disabled:
|
|
105
|
+
variant: d.confirmVariant,
|
|
106
|
+
tone: d.confirmTone,
|
|
107
|
+
size: d.buttonSize,
|
|
108
|
+
disabled: d.required && E.value && !O.value,
|
|
89
109
|
onClick: j
|
|
90
110
|
}, {
|
|
91
111
|
default: _(() => [l(h(d.confirmText), 1)]),
|
|
@@ -96,7 +116,7 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
96
116
|
"size",
|
|
97
117
|
"disabled"
|
|
98
118
|
])])])]),
|
|
99
|
-
default: _(() => [c("div", v, [m(i.$slots, "default", {}, () => [
|
|
119
|
+
default: _(() => [c("div", v, [m(i.$slots, "default", {}, () => [d.description ? (f(), s("div", y, h(d.description), 1)) : o("", !0)]), u(n, {
|
|
100
120
|
label: d.label,
|
|
101
121
|
error: k.value,
|
|
102
122
|
"for-id": "ds-prompt-input"
|
|
@@ -108,7 +128,7 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
108
128
|
modelValue: T.value,
|
|
109
129
|
"onUpdate:modelValue": p[0] ||= (e) => T.value = e,
|
|
110
130
|
"data-testid": "ds-prompt-input",
|
|
111
|
-
placeholder:
|
|
131
|
+
placeholder: d.placeholder,
|
|
112
132
|
invalid: !!k.value,
|
|
113
133
|
onBlur: p[1] ||= (e) => E.value = !0
|
|
114
134
|
}, null, 8, [
|
|
@@ -124,8 +144,13 @@ var v = { class: "grid gap-4" }, y = {
|
|
|
124
144
|
"title",
|
|
125
145
|
"size",
|
|
126
146
|
"close-on-backdrop",
|
|
147
|
+
"close-on-esc",
|
|
148
|
+
"show-header",
|
|
149
|
+
"show-close-button",
|
|
127
150
|
"header-config",
|
|
128
|
-
"footer-config"
|
|
151
|
+
"footer-config",
|
|
152
|
+
"body-config",
|
|
153
|
+
"close-label"
|
|
129
154
|
]));
|
|
130
155
|
}
|
|
131
156
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsPromptDialog, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsPromptDialog-_8v3Puaj.js";
|
|
2
|
+
import { t } from "../../chunks/config-DfTEy9G3.js";
|
|
3
|
+
export { e as DsPromptDialog, e as default, t as dsPromptDialogConfig };
|