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