@feugene/granularity 0.1.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/LICENSE +201 -0
- package/README.md +79 -0
- package/dist/assets/granularity-2oOxNk_f.css +2 -0
- package/dist/chunks/DsAlert-r_Ed-JrB.js +129 -0
- package/dist/chunks/DsAvatar-cyMI8jUi.js +32 -0
- package/dist/chunks/DsBadge-Dnd7_I-K.js +27 -0
- package/dist/chunks/DsBadgeWrap-UgP-TMdA.js +26 -0
- package/dist/chunks/DsBottomNav-Dze5cFVz.js +21 -0
- package/dist/chunks/DsButton-CA18Fha-.js +67 -0
- package/dist/chunks/DsButtonGroup-Ceat9ADe.js +16 -0
- package/dist/chunks/DsCard-GtapCsjq.js +10 -0
- package/dist/chunks/DsCheckbox-Afg94qUm.js +101 -0
- package/dist/chunks/DsCollapse-DWfip4gp.js +144 -0
- package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +87 -0
- package/dist/chunks/DsDataTable-DgBkEgDK.js +91 -0
- package/dist/chunks/DsDialog-BAGAa9DN.js +178 -0
- package/dist/chunks/DsDrawer-gmVF_0I0.js +112 -0
- package/dist/chunks/DsDropdown-BcFjxaMe.js +106 -0
- package/dist/chunks/DsDropdownMenu-CA7259h5.js +218 -0
- package/dist/chunks/DsEmptyState-BdLoQ0-z.js +46 -0
- package/dist/chunks/DsFileUpload-IwtpKocj.js +282 -0
- package/dist/chunks/DsFormField-XVZK7YVU.js +28 -0
- package/dist/chunks/DsFormFile-C5ldcCAs.js +219 -0
- package/dist/chunks/DsFormSection-DmIDIQg7.js +18 -0
- package/dist/chunks/DsIcon-Q-KQGAQU.js +25 -0
- package/dist/chunks/DsImageViewer-C9NZ42St.js +313 -0
- package/dist/chunks/DsInput-DeoAkT6R.js +159 -0
- package/dist/chunks/DsInputTag-DWip_-Cr.js +201 -0
- package/dist/chunks/DsLink-CWpVQ0ij.js +56 -0
- package/dist/chunks/DsList-XI8AAk9b.js +31 -0
- package/dist/chunks/DsLoading-ogfmbPE4.js +53 -0
- package/dist/chunks/DsModal-Bl9r6v33.js +75 -0
- package/dist/chunks/DsNavbar-DJ4bv_MR.js +54 -0
- package/dist/chunks/DsNumberInput-D-m5QoQJ.js +301 -0
- package/dist/chunks/DsPagination-B28ms0hc.js +81 -0
- package/dist/chunks/DsProgressBar-Bkuqudkg.js +27 -0
- package/dist/chunks/DsPromptDialog-DdSca52S.js +133 -0
- package/dist/chunks/DsRadio-x2vmEUCv.js +141 -0
- package/dist/chunks/DsRadioGroup-CzlzJF2E.js +63 -0
- package/dist/chunks/DsSegmented-BwQ8VnOZ.js +250 -0
- package/dist/chunks/DsSelect-DEHGeICn.js +304 -0
- package/dist/chunks/DsSidebar-BNLaBCYD.js +18 -0
- package/dist/chunks/DsSkeleton-BcXabaQ7.js +25 -0
- package/dist/chunks/DsSwitch-DBdjltGz.js +60 -0
- package/dist/chunks/DsTable-apqrsbxV.js +10 -0
- package/dist/chunks/DsTabs-B1kkklFS.js +47 -0
- package/dist/chunks/DsTextarea-DVSsoqi3.js +56 -0
- package/dist/chunks/DsToaster-B9u2x_Ii.js +48 -0
- package/dist/chunks/DsTooltip-BqNVJw2f.js +27 -0
- package/dist/chunks/DsTree-Bz37FcIb.js +602 -0
- package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +319 -0
- package/dist/chunks/_plugin-vue_export-helper-DOgycIVc.js +8 -0
- package/dist/chunks/adapter-BKKNB3Ii.js +4 -0
- package/dist/chunks/arrow-up-B4OlmAKz.js +23 -0
- package/dist/chunks/classTokens-CT1tqF2j.js +6 -0
- package/dist/chunks/componentConfig-CQndJxd1.js +14 -0
- package/dist/chunks/config-4vrmi-D0.js +9 -0
- package/dist/chunks/config-ANT_Zf3l.js +18 -0
- package/dist/chunks/config-B-tMv4PT.js +66 -0
- package/dist/chunks/config-B75oSW74.js +18 -0
- package/dist/chunks/config-B7HAOCA1.js +33 -0
- package/dist/chunks/config-B7yrZO9u.js +18 -0
- package/dist/chunks/config-B98-jCfY.js +9 -0
- package/dist/chunks/config-BDJ2JaFs.js +9 -0
- package/dist/chunks/config-BEzNFZ_R.js +10 -0
- package/dist/chunks/config-BKpHj94n.js +13 -0
- package/dist/chunks/config-BLYxW-WQ.js +9 -0
- package/dist/chunks/config-BS0vLD_L.js +41 -0
- package/dist/chunks/config-BXlW2GSa.js +33 -0
- package/dist/chunks/config-BY6edpDp.js +9 -0
- package/dist/chunks/config-BZDKypuQ.js +8 -0
- package/dist/chunks/config-BeJEy8yN.js +9 -0
- package/dist/chunks/config-BnryTLnh.js +47 -0
- package/dist/chunks/config-BqaCteFh2.js +9 -0
- package/dist/chunks/config-BrwOndwO.js +9 -0
- package/dist/chunks/config-BusLdkqX.js +8 -0
- package/dist/chunks/config-CBo4aVMV.js +8 -0
- package/dist/chunks/config-CLyDbB2M.js +14 -0
- package/dist/chunks/config-CML-WrGM.js +10 -0
- package/dist/chunks/config-CMuBf0u72.js +33 -0
- package/dist/chunks/config-CTGjkM7q.js +140 -0
- package/dist/chunks/config-CVEwIRRR.js +30 -0
- package/dist/chunks/config-Ch0TH9wN.js +42 -0
- package/dist/chunks/config-ClPYX-LP.js +24 -0
- package/dist/chunks/config-DA3cYUSo.js +8 -0
- package/dist/chunks/config-DAiP4yeJ.js +8 -0
- package/dist/chunks/config-DG_de8vE.js +15 -0
- package/dist/chunks/config-DIgvSIEs.js +9 -0
- package/dist/chunks/config-DJ7xDo-q.js +16 -0
- package/dist/chunks/config-DSFnRpu82.js +19 -0
- package/dist/chunks/config-DVHe_id-.js +22 -0
- package/dist/chunks/config-DoT3gzx7.js +9 -0
- package/dist/chunks/config-DuaBaVyF.js +34 -0
- package/dist/chunks/config-F4Bb6hVJ.js +30 -0
- package/dist/chunks/config-G7h6ftb62.js +39 -0
- package/dist/chunks/config-aUoIf7kK.js +28 -0
- package/dist/chunks/config-cKk87ycz2.js +14 -0
- package/dist/chunks/config-kfb3OyGZ.js +24 -0
- package/dist/chunks/config-oDjY8ZrP2.js +8 -0
- package/dist/chunks/config-panSV6Wo.js +9 -0
- package/dist/chunks/config-qlwX-rLq.js +42 -0
- package/dist/chunks/config-tQBoBLph.js +26 -0
- package/dist/chunks/dsBadgeStyles-yLd1GFUa.js +52 -0
- package/dist/chunks/dsButtonStyles-C1c_j958.js +207 -0
- package/dist/chunks/dsDialogStyles-C7QOvzmt.js +11 -0
- package/dist/chunks/dsDropdownStyles-DXGN-A-d.js +37 -0
- package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +9 -0
- package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +16 -0
- package/dist/chunks/dsModalStyles-C7E5kJ1o.js +54 -0
- package/dist/chunks/dsSelectStyles-Bym0uW4f.js +82 -0
- package/dist/chunks/en-CKkdzd7q.js +39 -0
- package/dist/chunks/es-CPXSlGMa.js +39 -0
- package/dist/chunks/fileValidation-gR8aUBMZ.js +193 -0
- package/dist/chunks/granularityI18n-DBuOHekC.js +24 -0
- package/dist/chunks/info-CmLOtVnO.js +26 -0
- package/dist/chunks/loader-circle-DtXjkqR7.js +23 -0
- package/dist/chunks/preset-DBXBjf5u.js +2235 -0
- package/dist/chunks/ru-D7AyvUyA.js +39 -0
- package/dist/chunks/transition-CT9vsWnT.js +1617 -0
- package/dist/chunks/x-circle-BZnfL2nz.js +61 -0
- package/dist/chunks/x-dGjszOU2.js +23 -0
- package/dist/components/DsAlert/index.js +3 -0
- package/dist/components/DsAlert/styles.css +386 -0
- package/dist/components/DsAvatar/index.js +3 -0
- package/dist/components/DsAvatar/styles.css +373 -0
- package/dist/components/DsBadge/index.js +4 -0
- package/dist/components/DsBadge/styles.css +422 -0
- package/dist/components/DsBadgeWrap/index.js +3 -0
- package/dist/components/DsBadgeWrap/styles.css +378 -0
- package/dist/components/DsBottomNav/index.js +3 -0
- package/dist/components/DsBottomNav/styles.css +388 -0
- package/dist/components/DsButton/index.js +4 -0
- package/dist/components/DsButton/styles.css +633 -0
- package/dist/components/DsButton/tokens.css +96 -0
- package/dist/components/DsButtonGroup/index.js +3 -0
- package/dist/components/DsButtonGroup/styles.css +23 -0
- package/dist/components/DsCard/index.js +3 -0
- package/dist/components/DsCard/styles.css +365 -0
- package/dist/components/DsCheckbox/index.js +3 -0
- package/dist/components/DsCheckbox/styles.css +394 -0
- package/dist/components/DsCollapse/index.js +3 -0
- package/dist/components/DsCollapse/styles.css +399 -0
- package/dist/components/DsConfirmDialog/index.js +3 -0
- package/dist/components/DsConfirmDialog/styles.css +595 -0
- package/dist/components/DsDataTable/index.js +3 -0
- package/dist/components/DsDataTable/styles.css +387 -0
- package/dist/components/DsDialog/index.js +3 -0
- package/dist/components/DsDialog/styles.css +592 -0
- package/dist/components/DsDrawer/index.js +3 -0
- package/dist/components/DsDrawer/styles.css +579 -0
- package/dist/components/DsDropdown/index.js +4 -0
- package/dist/components/DsDropdown/styles.css +392 -0
- package/dist/components/DsDropdownMenu/index.js +3 -0
- package/dist/components/DsDropdownMenu/styles.css +430 -0
- package/dist/components/DsEmptyState/index.js +3 -0
- package/dist/components/DsEmptyState/styles.css +380 -0
- package/dist/components/DsFileUpload/index.js +4 -0
- package/dist/components/DsFileUpload/styles.css +403 -0
- package/dist/components/DsFormField/index.js +3 -0
- package/dist/components/DsFormField/styles.css +365 -0
- package/dist/components/DsFormFile/index.js +3 -0
- package/dist/components/DsFormFile/styles.css +555 -0
- package/dist/components/DsFormSection/index.js +3 -0
- package/dist/components/DsFormSection/styles.css +365 -0
- package/dist/components/DsIcon/index.js +3 -0
- package/dist/components/DsIcon/styles.css +20 -0
- package/dist/components/DsIcon/tokens.css +3 -0
- package/dist/components/DsImageViewer/index.js +3 -0
- package/dist/components/DsImageViewer/styles.css +465 -0
- package/dist/components/DsInput/index.js +3 -0
- package/dist/components/DsInput/styles.css +416 -0
- package/dist/components/DsInputTag/index.js +3 -0
- package/dist/components/DsInputTag/styles.css +498 -0
- package/dist/components/DsLink/index.js +3 -0
- package/dist/components/DsLink/styles.css +390 -0
- package/dist/components/DsList/index.js +3 -0
- package/dist/components/DsList/styles.css +376 -0
- package/dist/components/DsLoading/index.js +4 -0
- package/dist/components/DsLoading/styles.css +381 -0
- package/dist/components/DsModal/index.js +4 -0
- package/dist/components/DsModal/styles.css +404 -0
- package/dist/components/DsNavbar/index.js +3 -0
- package/dist/components/DsNavbar/styles.css +549 -0
- package/dist/components/DsNumberInput/index.js +3 -0
- package/dist/components/DsNumberInput/styles.css +428 -0
- package/dist/components/DsPagination/index.js +3 -0
- package/dist/components/DsPagination/styles.css +637 -0
- package/dist/components/DsProgressBar/index.js +3 -0
- package/dist/components/DsProgressBar/styles.css +398 -0
- package/dist/components/DsProgressBar/tokens.css +23 -0
- package/dist/components/DsPromptDialog/index.js +3 -0
- package/dist/components/DsPromptDialog/styles.css +622 -0
- package/dist/components/DsRadio/index.js +3 -0
- package/dist/components/DsRadio/styles.css +558 -0
- package/dist/components/DsRadioGroup/index.js +3 -0
- package/dist/components/DsRadioGroup/styles.css +560 -0
- package/dist/components/DsSegmented/index.js +3 -0
- package/dist/components/DsSegmented/styles.css +422 -0
- package/dist/components/DsSegmented/tokens.css +9 -0
- package/dist/components/DsSelect/index.js +4 -0
- package/dist/components/DsSelect/styles.css +483 -0
- package/dist/components/DsSidebar/index.js +3 -0
- package/dist/components/DsSidebar/styles.css +370 -0
- package/dist/components/DsSkeleton/index.js +3 -0
- package/dist/components/DsSkeleton/styles.css +363 -0
- package/dist/components/DsSwitch/index.js +3 -0
- package/dist/components/DsSwitch/styles.css +393 -0
- package/dist/components/DsTable/index.js +3 -0
- package/dist/components/DsTable/styles.css +369 -0
- package/dist/components/DsTabs/index.js +3 -0
- package/dist/components/DsTabs/styles.css +390 -0
- package/dist/components/DsTextarea/index.js +3 -0
- package/dist/components/DsTextarea/styles.css +382 -0
- package/dist/components/DsToaster/index.js +3 -0
- package/dist/components/DsToaster/styles.css +558 -0
- package/dist/components/DsTooltip/index.js +3 -0
- package/dist/components/DsTooltip/styles.css +388 -0
- package/dist/components/DsTree/index.js +3 -0
- package/dist/components/DsTree/styles.css +375 -0
- package/dist/components/DsTreeSelect/index.js +3 -0
- package/dist/components/DsTreeSelect/styles.css +466 -0
- package/dist/composables/useTheme.js +44 -0
- package/dist/composables/useToast.js +37 -0
- package/dist/directives/autofocus.js +46 -0
- package/dist/directives/autosize.js +62 -0
- package/dist/directives/clickOutside.js +82 -0
- package/dist/directives/dropzone.js +110 -0
- package/dist/directives/globalDirectives.js +0 -0
- package/dist/directives/hotkey.js +104 -0
- package/dist/directives/loading.js +125 -0
- package/dist/directives.js +7 -0
- package/dist/fileValidation.js +2 -0
- package/dist/foundation.css +358 -0
- package/dist/i18n.js +9 -0
- package/dist/index.js +124 -0
- package/dist/package.json +293 -0
- package/dist/styles/base.css +33 -0
- package/dist/styles/themes/dark.css +102 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +118 -0
- package/dist/styles.css +1134 -0
- package/dist/types/src/components/DsAlert/DsAlert.vue.d.ts +70 -0
- package/dist/types/src/components/DsAlert/config.d.ts +1 -0
- package/dist/types/src/components/DsAlert/index.d.ts +5 -0
- package/dist/types/src/components/DsAlert/safelist.d.ts +1 -0
- package/dist/types/src/components/DsAvatar/DsAvatar.vue.d.ts +53 -0
- package/dist/types/src/components/DsAvatar/config.d.ts +1 -0
- package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +6 -0
- package/dist/types/src/components/DsAvatar/index.d.ts +5 -0
- package/dist/types/src/components/DsAvatar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBadge/DsBadge.vue.d.ts +54 -0
- package/dist/types/src/components/DsBadge/config.d.ts +1 -0
- package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +10 -0
- package/dist/types/src/components/DsBadge/index.d.ts +5 -0
- package/dist/types/src/components/DsBadge/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBadgeWrap/DsBadgeWrap.vue.d.ts +44 -0
- package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -0
- package/dist/types/src/components/DsBadgeWrap/index.d.ts +4 -0
- package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBottomNav/DsBottomNav.vue.d.ts +23 -0
- package/dist/types/src/components/DsBottomNav/config.d.ts +1 -0
- package/dist/types/src/components/DsBottomNav/index.d.ts +5 -0
- package/dist/types/src/components/DsBottomNav/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButton/DsButton.vue.d.ts +70 -0
- package/dist/types/src/components/DsButton/config.d.ts +1 -0
- package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -0
- package/dist/types/src/components/DsButton/index.d.ts +5 -0
- package/dist/types/src/components/DsButton/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButton/styles.css.d.ts +4 -0
- package/dist/types/src/components/DsButtonGroup/DsButtonGroup.vue.d.ts +40 -0
- package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -0
- package/dist/types/src/components/DsButtonGroup/index.d.ts +4 -0
- package/dist/types/src/components/DsButtonGroup/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +3 -0
- package/dist/types/src/components/DsCard/DsCard.vue.d.ts +13 -0
- package/dist/types/src/components/DsCard/config.d.ts +1 -0
- package/dist/types/src/components/DsCard/index.d.ts +4 -0
- package/dist/types/src/components/DsCard/safelist.d.ts +1 -0
- package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +64 -0
- package/dist/types/src/components/DsCheckbox/config.d.ts +1 -0
- package/dist/types/src/components/DsCheckbox/index.d.ts +4 -0
- package/dist/types/src/components/DsCheckbox/safelist.d.ts +1 -0
- package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +59 -0
- package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +51 -0
- package/dist/types/src/components/DsCollapse/config.d.ts +1 -0
- package/dist/types/src/components/DsCollapse/dsCollapseContext.d.ts +10 -0
- package/dist/types/src/components/DsCollapse/index.d.ts +7 -0
- package/dist/types/src/components/DsCollapse/safelist.d.ts +1 -0
- package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +93 -0
- package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsConfirmDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +58 -0
- package/dist/types/src/components/DsDataTable/config.d.ts +1 -0
- package/dist/types/src/components/DsDataTable/index.d.ts +5 -0
- package/dist/types/src/components/DsDataTable/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +76 -0
- package/dist/types/src/components/DsDialog/DsDialogCloseButton.vue.d.ts +7 -0
- package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +41 -0
- package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +54 -0
- package/dist/types/src/components/DsDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsDialog/dialogShared.d.ts +10 -0
- package/dist/types/src/components/DsDialog/dsDialogStyles.d.ts +1 -0
- package/dist/types/src/components/DsDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +61 -0
- package/dist/types/src/components/DsDrawer/config.d.ts +1 -0
- package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +21 -0
- package/dist/types/src/components/DsDrawer/index.d.ts +4 -0
- package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +67 -0
- package/dist/types/src/components/DsDropdown/config.d.ts +1 -0
- package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +6 -0
- package/dist/types/src/components/DsDropdown/index.d.ts +4 -0
- package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +78 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +40 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +40 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +30 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +53 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +49 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +55 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +48 -0
- package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -0
- package/dist/types/src/components/DsDropdownMenu/index.d.ts +14 -0
- package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +1 -0
- package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +41 -0
- package/dist/types/src/components/DsEmptyState/config.d.ts +1 -0
- package/dist/types/src/components/DsEmptyState/index.d.ts +4 -0
- package/dist/types/src/components/DsEmptyState/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +136 -0
- package/dist/types/src/components/DsFileUpload/FileValidationError.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/acceptValidator.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/config.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/index.d.ts +5 -0
- package/dist/types/src/components/DsFileUpload/matchAccept.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/maxSizeMbValidator.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/runFileValidators.d.ts +2 -0
- package/dist/types/src/components/DsFileUpload/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/types.d.ts +1 -0
- package/dist/types/src/components/DsFormField/DsFormField.vue.d.ts +53 -0
- package/dist/types/src/components/DsFormField/config.d.ts +1 -0
- package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +1 -0
- package/dist/types/src/components/DsFormField/index.d.ts +3 -0
- package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +102 -0
- package/dist/types/src/components/DsFormFile/config.d.ts +1 -0
- package/dist/types/src/components/DsFormFile/index.d.ts +5 -0
- package/dist/types/src/components/DsFormFile/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +41 -0
- package/dist/types/src/components/DsFormSection/config.d.ts +1 -0
- package/dist/types/src/components/DsFormSection/index.d.ts +4 -0
- package/dist/types/src/components/DsFormSection/safelist.d.ts +1 -0
- package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +26 -0
- package/dist/types/src/components/DsIcon/config.d.ts +1 -0
- package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +2 -0
- package/dist/types/src/components/DsIcon/index.d.ts +5 -0
- package/dist/types/src/components/DsIcon/styles.css.d.ts +5 -0
- package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +121 -0
- package/dist/types/src/components/DsImageViewer/config.d.ts +1 -0
- package/dist/types/src/components/DsImageViewer/index.d.ts +4 -0
- package/dist/types/src/components/DsImageViewer/safelist.d.ts +1 -0
- package/dist/types/src/components/DsInput/DsInput.vue.d.ts +109 -0
- package/dist/types/src/components/DsInput/config.d.ts +1 -0
- package/dist/types/src/components/DsInput/dsInputStyles.d.ts +1 -0
- package/dist/types/src/components/DsInput/index.d.ts +5 -0
- package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +123 -0
- package/dist/types/src/components/DsInputTag/config.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +11 -0
- package/dist/types/src/components/DsInputTag/index.d.ts +5 -0
- package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -0
- package/dist/types/src/components/DsLink/DsLink.vue.d.ts +76 -0
- package/dist/types/src/components/DsLink/config.d.ts +1 -0
- package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +10 -0
- package/dist/types/src/components/DsLink/index.d.ts +5 -0
- package/dist/types/src/components/DsLink/safelist.d.ts +1 -0
- package/dist/types/src/components/DsList/DsList.vue.d.ts +40 -0
- package/dist/types/src/components/DsList/DsListItem.vue.d.ts +25 -0
- package/dist/types/src/components/DsList/config.d.ts +1 -0
- package/dist/types/src/components/DsList/index.d.ts +5 -0
- package/dist/types/src/components/DsList/safelist.d.ts +1 -0
- package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +59 -0
- package/dist/types/src/components/DsLoading/config.d.ts +1 -0
- package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -0
- package/dist/types/src/components/DsLoading/index.d.ts +4 -0
- package/dist/types/src/components/DsLoading/safelist.d.ts +1 -0
- package/dist/types/src/components/DsModal/DsModal.vue.d.ts +51 -0
- package/dist/types/src/components/DsModal/config.d.ts +1 -0
- package/dist/types/src/components/DsModal/dsModalStyles.d.ts +17 -0
- package/dist/types/src/components/DsModal/index.d.ts +5 -0
- package/dist/types/src/components/DsModal/safelist.d.ts +1 -0
- package/dist/types/src/components/DsModal/styles.css.d.ts +3 -0
- package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +52 -0
- package/dist/types/src/components/DsNavbar/config.d.ts +1 -0
- package/dist/types/src/components/DsNavbar/index.d.ts +4 -0
- package/dist/types/src/components/DsNavbar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +135 -0
- package/dist/types/src/components/DsNumberInput/config.d.ts +1 -0
- package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +15 -0
- package/dist/types/src/components/DsNumberInput/index.d.ts +5 -0
- package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +39 -0
- package/dist/types/src/components/DsPagination/config.d.ts +1 -0
- package/dist/types/src/components/DsPagination/index.d.ts +4 -0
- package/dist/types/src/components/DsPagination/safelist.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +36 -0
- package/dist/types/src/components/DsProgressBar/config.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +6 -0
- package/dist/types/src/components/DsProgressBar/index.d.ts +4 -0
- package/dist/types/src/components/DsProgressBar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +108 -0
- package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsPromptDialog/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +1 -0
- package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +94 -0
- package/dist/types/src/components/DsRadio/config.d.ts +1 -0
- package/dist/types/src/components/DsRadio/dsRadioGroupContext.d.ts +10 -0
- package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +16 -0
- package/dist/types/src/components/DsRadio/index.d.ts +7 -0
- package/dist/types/src/components/DsRadio/safelist.d.ts +1 -0
- package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +69 -0
- package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -0
- package/dist/types/src/components/DsRadioGroup/index.d.ts +5 -0
- package/dist/types/src/components/DsRadioGroup/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +77 -0
- package/dist/types/src/components/DsSegmented/config.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +45 -0
- package/dist/types/src/components/DsSegmented/index.d.ts +5 -0
- package/dist/types/src/components/DsSegmented/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +132 -0
- package/dist/types/src/components/DsSelect/config.d.ts +1 -0
- package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +35 -0
- package/dist/types/src/components/DsSelect/index.d.ts +5 -0
- package/dist/types/src/components/DsSelect/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSelect/styles.css.d.ts +1 -0
- package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +41 -0
- package/dist/types/src/components/DsSidebar/config.d.ts +1 -0
- package/dist/types/src/components/DsSidebar/index.d.ts +4 -0
- package/dist/types/src/components/DsSidebar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +38 -0
- package/dist/types/src/components/DsSkeleton/config.d.ts +1 -0
- package/dist/types/src/components/DsSkeleton/index.d.ts +4 -0
- package/dist/types/src/components/DsSkeleton/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +63 -0
- package/dist/types/src/components/DsSwitch/config.d.ts +1 -0
- package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +19 -0
- package/dist/types/src/components/DsSwitch/index.d.ts +5 -0
- package/dist/types/src/components/DsSwitch/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTable/DsTable.vue.d.ts +15 -0
- package/dist/types/src/components/DsTable/config.d.ts +1 -0
- package/dist/types/src/components/DsTable/index.d.ts +4 -0
- package/dist/types/src/components/DsTable/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +24 -0
- package/dist/types/src/components/DsTabs/config.d.ts +1 -0
- package/dist/types/src/components/DsTabs/index.d.ts +5 -0
- package/dist/types/src/components/DsTabs/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +65 -0
- package/dist/types/src/components/DsTextarea/config.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +6 -0
- package/dist/types/src/components/DsTextarea/index.d.ts +5 -0
- package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -0
- package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +3 -0
- package/dist/types/src/components/DsToaster/config.d.ts +1 -0
- package/dist/types/src/components/DsToaster/index.d.ts +4 -0
- package/dist/types/src/components/DsToaster/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +41 -0
- package/dist/types/src/components/DsTooltip/config.d.ts +1 -0
- package/dist/types/src/components/DsTooltip/index.d.ts +4 -0
- package/dist/types/src/components/DsTooltip/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTree/DsTree.vue.d.ts +35 -0
- package/dist/types/src/components/DsTree/config.d.ts +1 -0
- package/dist/types/src/components/DsTree/dsTreeDataAdapter.d.ts +14 -0
- package/dist/types/src/components/DsTree/dsTreeInteractionContext.d.ts +31 -0
- package/dist/types/src/components/DsTree/dsTreeProps.d.ts +57 -0
- package/dist/types/src/components/DsTree/dsTreeStore.d.ts +45 -0
- package/dist/types/src/components/DsTree/dsTreeTypes.d.ts +24 -0
- package/dist/types/src/components/DsTree/index.d.ts +6 -0
- package/dist/types/src/components/DsTree/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +72 -0
- package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -0
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +9 -0
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +3 -0
- package/dist/types/src/components/DsTreeSelect/index.d.ts +5 -0
- package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -0
- package/dist/types/src/components/shared/classTokens.d.ts +1 -0
- package/dist/types/src/composables/useTheme.d.ts +24 -0
- package/dist/types/src/composables/useToast.d.ts +19 -0
- package/dist/types/src/directives/autofocus.d.ts +11 -0
- package/dist/types/src/directives/autosize.d.ts +13 -0
- package/dist/types/src/directives/clickOutside.d.ts +18 -0
- package/dist/types/src/directives/dropzone.d.ts +30 -0
- package/dist/types/src/directives/globalDirectives.d.ts +18 -0
- package/dist/types/src/directives/hotkey.d.ts +25 -0
- package/dist/types/src/directives/index.d.ts +13 -0
- package/dist/types/src/directives/loading.d.ts +38 -0
- package/dist/types/src/fileValidation/FileValidationError.d.ts +7 -0
- package/dist/types/src/fileValidation/acceptValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/allowedExtensionsValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/allowedMimeTypesValidator.d.ts +9 -0
- package/dist/types/src/fileValidation/index.d.ts +11 -0
- package/dist/types/src/fileValidation/matchAccept.d.ts +1 -0
- package/dist/types/src/fileValidation/maxFileSizeBytesValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/maxSizeMbValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/maxTotalSizeBytesValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/runFileValidators.d.ts +7 -0
- package/dist/types/src/fileValidation/types.d.ts +27 -0
- package/dist/types/src/i18n/adapter.d.ts +8 -0
- package/dist/types/src/i18n/index.d.ts +2 -0
- package/dist/types/src/i18n/messages.d.ts +268 -0
- package/dist/types/src/index.d.ts +59 -0
- package/dist/types/src/internal/granularityI18n.d.ts +8 -0
- package/dist/types/src/registry/componentConfig.d.ts +17 -0
- package/dist/types/src/registry/componentCss.d.ts +3 -0
- package/dist/types/src/registry/componentCss.node.d.ts +5 -0
- package/dist/types/src/registry/components.d.ts +56 -0
- package/dist/types/src/registry/safelist.d.ts +11 -0
- package/dist/types/src/theming/themeRegistry.d.ts +19 -0
- package/dist/types/src/theming/themeRegistry.node.d.ts +14 -0
- package/dist/types/src/unocss/preset.d.ts +18 -0
- package/dist/types/src/unocss/preset.node.d.ts +15 -0
- package/dist/types/src/unocss/rules/animation.d.ts +3 -0
- package/dist/types/src/unocss/rules/colorOpacity.d.ts +2 -0
- package/dist/types/src/unocss/rules/filters.d.ts +8 -0
- package/dist/types/src/unocss/rules/spacing.d.ts +8 -0
- package/dist/uno-node.js +103 -0
- package/dist/uno.js +2 -0
- package/package.json +367 -0
- package/web-types.json +100 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { n as e } from "./config-Ch0TH9wN.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, mergeProps as i, openBlock as a, renderSlot as o, unref as s, useAttrs as c } from "vue";
|
|
3
|
+
//#region src/components/DsLink/DsLink.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = [
|
|
5
|
+
"href",
|
|
6
|
+
"target",
|
|
7
|
+
"rel",
|
|
8
|
+
"aria-label"
|
|
9
|
+
], u = ["aria-label", "aria-disabled"], d = /* @__PURE__ */ r({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "DsLink",
|
|
12
|
+
props: {
|
|
13
|
+
href: { default: void 0 },
|
|
14
|
+
external: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
target: { default: void 0 },
|
|
19
|
+
rel: { default: void 0 },
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
ariaLabel: { default: void 0 },
|
|
25
|
+
variant: { default: "primary" },
|
|
26
|
+
underline: { default: "auto" },
|
|
27
|
+
size: { default: "sm" }
|
|
28
|
+
},
|
|
29
|
+
setup(r) {
|
|
30
|
+
let d = r, f = c(), p = t(() => !!d.href && !d.disabled), m = t(() => {
|
|
31
|
+
if (d.target) return d.target;
|
|
32
|
+
if (d.external) return "_blank";
|
|
33
|
+
}), h = t(() => {
|
|
34
|
+
if (d.rel) return d.rel;
|
|
35
|
+
if (d.external) return "noopener noreferrer";
|
|
36
|
+
}), g = t(() => e({
|
|
37
|
+
size: d.size,
|
|
38
|
+
underline: d.underline,
|
|
39
|
+
variant: d.variant,
|
|
40
|
+
disabled: d.disabled
|
|
41
|
+
}));
|
|
42
|
+
return (e, t) => p.value ? (a(), n("a", i({ key: 0 }, s(f), {
|
|
43
|
+
href: d.href,
|
|
44
|
+
target: m.value,
|
|
45
|
+
rel: h.value,
|
|
46
|
+
"aria-label": d.ariaLabel,
|
|
47
|
+
class: ["inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", g.value]
|
|
48
|
+
}), [o(e.$slots, "default")], 16, l)) : (a(), n("span", i({ key: 1 }, s(f), {
|
|
49
|
+
"aria-label": d.ariaLabel,
|
|
50
|
+
"aria-disabled": d.disabled ? "true" : void 0,
|
|
51
|
+
class: ["inline-flex items-center gap-1 rounded-[6px] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", g.value]
|
|
52
|
+
}), [o(e.$slots, "default")], 16, u));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { d as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./DsCard-GtapCsjq.js";
|
|
2
|
+
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, withCtx as d } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/DsList/DsList.vue
|
|
5
|
+
var f = /* @__PURE__ */ a({
|
|
6
|
+
__name: "DsList",
|
|
7
|
+
props: { divided: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !0
|
|
10
|
+
} },
|
|
11
|
+
setup(n) {
|
|
12
|
+
return (r, a) => (s(), t(u(e), null, {
|
|
13
|
+
default: d(() => [i("div", { class: o(n.divided ? "divide-y divide-[var(--brd)]" : "") }, [c(r.$slots, "default")], 2)]),
|
|
14
|
+
_: 3
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
}), p = { class: "px-4 py-3 flex items-start justify-between gap-4" }, m = { class: "min-w-0" }, h = { class: "text-[13px] font-700" }, g = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "text-[13px] ds-muted mt-0.5"
|
|
20
|
+
}, _ = { class: "shrink-0" }, v = /* @__PURE__ */ a({
|
|
21
|
+
__name: "DsListItem",
|
|
22
|
+
props: {
|
|
23
|
+
title: {},
|
|
24
|
+
description: {}
|
|
25
|
+
},
|
|
26
|
+
setup(e) {
|
|
27
|
+
return (t, a) => (s(), r("div", p, [i("div", m, [i("div", h, l(e.title), 1), e.description ? (s(), r("div", g, l(e.description), 1)) : n("", !0)]), i("div", _, [c(t.$slots, "default")])]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { f as n, v as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { t as e } from "./loader-circle-DtXjkqR7.js";
|
|
2
|
+
import { t } from "./dsLoadingStyles-B2ScgHwn.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, resolveDynamicComponent as d, toDisplayString as f } from "vue";
|
|
4
|
+
//#region src/components/DsLoading/DsLoading.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var p = { class: "flex flex-col items-center justify-center gap-2 px-4 text-center" }, m = {
|
|
6
|
+
key: 2,
|
|
7
|
+
class: "text-sm ds-muted"
|
|
8
|
+
}, h = "Loading...", g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "DsLoading",
|
|
10
|
+
props: {
|
|
11
|
+
text: { default: void 0 },
|
|
12
|
+
spinner: { default: void 0 },
|
|
13
|
+
spinnerClass: { default: void 0 },
|
|
14
|
+
animated: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
background: { default: void 0 },
|
|
19
|
+
fullscreen: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
zIndex: { default: void 0 },
|
|
24
|
+
customClass: { default: void 0 }
|
|
25
|
+
},
|
|
26
|
+
setup(s) {
|
|
27
|
+
let g = s, _ = n(() => g.spinner ?? e), v = n(() => g.text === void 0 ? h : g.text), y = n(() => t({
|
|
28
|
+
fullscreen: g.fullscreen,
|
|
29
|
+
hasBackground: g.background !== void 0,
|
|
30
|
+
customClass: g.customClass
|
|
31
|
+
})), b = n(() => ({
|
|
32
|
+
backgroundColor: g.background,
|
|
33
|
+
zIndex: g.zIndex == null ? void 0 : String(g.zIndex)
|
|
34
|
+
})), x = n(() => g.spinnerClass);
|
|
35
|
+
return (e, t) => (u(), a("div", {
|
|
36
|
+
"data-ds-loading": "",
|
|
37
|
+
class: c(["flex items-center justify-center cursor-wait select-none pointer-events-auto", y.value]),
|
|
38
|
+
style: l(b.value),
|
|
39
|
+
role: "status",
|
|
40
|
+
"aria-live": "polite"
|
|
41
|
+
}, [o("div", p, [g.animated ? (u(), r(d(_.value), {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: c(["ds-loading__spinner ds-loading__spinner--animated h-7 w-7 text-[var(--muted-fg)]", x.value]),
|
|
44
|
+
"aria-hidden": "true"
|
|
45
|
+
}, null, 8, ["class"])) : (u(), r(d(_.value), {
|
|
46
|
+
key: 1,
|
|
47
|
+
class: c(["ds-loading__spinner h-7 w-7 text-[var(--muted-fg)]", x.value]),
|
|
48
|
+
"aria-hidden": "true"
|
|
49
|
+
}, null, 8, ["class"])), v.value ? (u(), a("div", m, f(v.value), 1)) : i("", !0)])], 6));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { g as t };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { a as e, n as t, r as n, t as r } from "./transition-CT9vsWnT.js";
|
|
2
|
+
import { r as i } from "./dsModalStyles-C7E5kJ1o.js";
|
|
3
|
+
import { Teleport as a, computed as o, createBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderSlot as p, unref as m, withCtx as h, withKeys as g, withModifiers as _ } from "vue";
|
|
4
|
+
//#region src/components/DsModal/DsModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var v = { class: "fixed inset-0 overflow-y-auto p-4 sm:p-6" }, y = { class: "min-h-full flex items-center justify-center" }, b = /* @__PURE__ */ u({
|
|
6
|
+
__name: "DsModal",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { type: Boolean },
|
|
9
|
+
closeOnBackdrop: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !0
|
|
12
|
+
},
|
|
13
|
+
size: { default: "md" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(u, { emit: b }) {
|
|
17
|
+
let x = u, S = b, C = o(() => x.modelValue), w = o(() => i(x.size));
|
|
18
|
+
function T() {
|
|
19
|
+
S("update:modelValue", !1);
|
|
20
|
+
}
|
|
21
|
+
function E() {
|
|
22
|
+
x.closeOnBackdrop && T();
|
|
23
|
+
}
|
|
24
|
+
return (i, o) => (f(), s(a, { to: "body" }, [l(m(r), {
|
|
25
|
+
show: C.value,
|
|
26
|
+
as: "template"
|
|
27
|
+
}, {
|
|
28
|
+
default: h(() => [l(m(e), {
|
|
29
|
+
as: "div",
|
|
30
|
+
class: "fixed inset-0 z-50",
|
|
31
|
+
onClose: E,
|
|
32
|
+
onKeydown: g(_(T, ["stop", "prevent"]), ["esc"])
|
|
33
|
+
}, {
|
|
34
|
+
default: h(() => [c("div", v, [c("div", y, [l(m(t), {
|
|
35
|
+
as: "template",
|
|
36
|
+
enter: "duration-200 ease-out",
|
|
37
|
+
"enter-from": "opacity-0",
|
|
38
|
+
"enter-to": "opacity-100",
|
|
39
|
+
leave: "duration-150 ease-in",
|
|
40
|
+
"leave-from": "opacity-100",
|
|
41
|
+
"leave-to": "opacity-0"
|
|
42
|
+
}, {
|
|
43
|
+
default: h(() => [...o[0] ||= [c("div", {
|
|
44
|
+
"data-ds-modal-overlay": "",
|
|
45
|
+
class: "fixed inset-0 z-0 bg-black/40",
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}, null, -1)]]),
|
|
48
|
+
_: 1
|
|
49
|
+
}), l(m(t), {
|
|
50
|
+
as: "template",
|
|
51
|
+
enter: "duration-200 ease-out",
|
|
52
|
+
"enter-from": "opacity-0 translate-y-2 sm:translate-y-0 sm:scale-95",
|
|
53
|
+
"enter-to": "opacity-100 translate-y-0 sm:scale-100",
|
|
54
|
+
leave: "duration-150 ease-in",
|
|
55
|
+
"leave-from": "opacity-100 translate-y-0 sm:scale-100",
|
|
56
|
+
"leave-to": "opacity-0 translate-y-2 sm:translate-y-0 sm:scale-95"
|
|
57
|
+
}, {
|
|
58
|
+
default: h(() => [l(m(n), {
|
|
59
|
+
"data-ds-modal-panel": "",
|
|
60
|
+
tabindex: "-1",
|
|
61
|
+
class: d(w.value)
|
|
62
|
+
}, {
|
|
63
|
+
default: h(() => [p(i.$slots, "default")]),
|
|
64
|
+
_: 3
|
|
65
|
+
}, 8, ["class"])]),
|
|
66
|
+
_: 3
|
|
67
|
+
})])])]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["onKeydown"])]),
|
|
70
|
+
_: 3
|
|
71
|
+
}, 8, ["show"])]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { b as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./DsButton-CA18Fha-.js";
|
|
2
|
+
import { t } from "./granularityI18n-DBuOHekC.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, markRaw as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
4
|
+
//#region ~icons/lucide/menu
|
|
5
|
+
var _ = {
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
width: "1.2em",
|
|
8
|
+
height: "1.2em"
|
|
9
|
+
};
|
|
10
|
+
function v(e, t) {
|
|
11
|
+
return f(), a("svg", _, [...t[0] ||= [o("path", {
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round",
|
|
16
|
+
"stroke-width": "2",
|
|
17
|
+
d: "M4 5h16M4 12h16M4 19h16"
|
|
18
|
+
}, null, -1)]]);
|
|
19
|
+
}
|
|
20
|
+
var y = u({
|
|
21
|
+
name: "lucide-menu",
|
|
22
|
+
render: v
|
|
23
|
+
}), b = { class: "h-[56px] border-b border-[var(--brd)] bg-[var(--bg)] flex items-center justify-between px-4 sm:px-6" }, x = { class: "flex items-center gap-3" }, S = { class: "text-[14px] font-700" }, C = { class: "flex items-center gap-3" }, w = /* @__PURE__ */ l({
|
|
24
|
+
__name: "DsNavbar",
|
|
25
|
+
props: {
|
|
26
|
+
title: {},
|
|
27
|
+
showMenuButton: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
menuButtonClass: { default: "" }
|
|
32
|
+
},
|
|
33
|
+
emits: ["menu"],
|
|
34
|
+
setup(l, { emit: u }) {
|
|
35
|
+
let { t: _ } = t(), v = u, w = n(() => _("ds.navbar.openMenu", "Open menu"));
|
|
36
|
+
return (t, n) => (f(), a("header", b, [o("div", x, [l.showMenuButton ? (f(), r(e, {
|
|
37
|
+
key: 0,
|
|
38
|
+
variant: "ghost",
|
|
39
|
+
size: "sm",
|
|
40
|
+
square: "",
|
|
41
|
+
"aria-label": w.value,
|
|
42
|
+
class: d(l.menuButtonClass),
|
|
43
|
+
onClick: n[0] ||= (e) => v("menu")
|
|
44
|
+
}, {
|
|
45
|
+
default: g(() => [c(h(y), {
|
|
46
|
+
class: "h-4 w-4",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
})]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["aria-label", "class"])) : i("", !0), o("div", S, [p(t.$slots, "title", {}, () => [s(m(l.title), 1)])])]), o("div", C, [p(t.$slots, "default")])]));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { w as t };
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { i as e, n as t } from "./config-BnryTLnh.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 re, openBlock as u, ref as d, renderSlot as f, useSlots as ie, withModifiers as p } from "vue";
|
|
3
|
+
//#region src/components/DsNumberInput/DsNumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = [
|
|
5
|
+
"id",
|
|
6
|
+
"name",
|
|
7
|
+
"inputmode",
|
|
8
|
+
"autocomplete",
|
|
9
|
+
"placeholder",
|
|
10
|
+
"disabled",
|
|
11
|
+
"value",
|
|
12
|
+
"aria-invalid"
|
|
13
|
+
], ae = { class: "flex flex-col justify-center gap-1" }, oe = ["disabled"], h = ["disabled"], g = ["disabled"], se = ["disabled"], _ = /* @__PURE__ */ o({
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
__name: "DsNumberInput",
|
|
16
|
+
props: {
|
|
17
|
+
modelValue: {},
|
|
18
|
+
placeholder: { default: void 0 },
|
|
19
|
+
autocomplete: { default: void 0 },
|
|
20
|
+
inputmode: { default: "decimal" },
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
invalid: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
state: { default: "default" },
|
|
30
|
+
name: { default: void 0 },
|
|
31
|
+
id: { default: void 0 },
|
|
32
|
+
size: { default: "md" },
|
|
33
|
+
textAlign: { default: "left" },
|
|
34
|
+
decimalSeparator: { default: "." },
|
|
35
|
+
step: { default: 1 },
|
|
36
|
+
min: { default: void 0 },
|
|
37
|
+
max: { default: void 0 },
|
|
38
|
+
precision: { default: void 0 },
|
|
39
|
+
controls: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
controlsDirection: { default: "vertical" },
|
|
44
|
+
prefixMinWidth: { default: void 0 },
|
|
45
|
+
prefixMaxWidth: { default: void 0 },
|
|
46
|
+
suffixMinWidth: { default: void 0 },
|
|
47
|
+
suffixMaxWidth: { default: void 0 }
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue", "change"],
|
|
50
|
+
setup(o, { expose: _, emit: v }) {
|
|
51
|
+
let y = {
|
|
52
|
+
xs: 32,
|
|
53
|
+
sm: 36,
|
|
54
|
+
md: 40,
|
|
55
|
+
lg: 48
|
|
56
|
+
}, b = {
|
|
57
|
+
xs: "10px",
|
|
58
|
+
sm: "12px",
|
|
59
|
+
md: "12px",
|
|
60
|
+
lg: "16px"
|
|
61
|
+
};
|
|
62
|
+
function x(e) {
|
|
63
|
+
return `${e}px`;
|
|
64
|
+
}
|
|
65
|
+
let S = o, C = v, w = d(null);
|
|
66
|
+
function T() {
|
|
67
|
+
w.value?.focus();
|
|
68
|
+
}
|
|
69
|
+
_({ focus: T });
|
|
70
|
+
let E = ie(), 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 = d(null), R = d(null), z = d(void 0), B = d(void 0), V = null, H = !1;
|
|
71
|
+
function U(e) {
|
|
72
|
+
if (!e) return;
|
|
73
|
+
let t = Math.ceil(e.getBoundingClientRect().width || 0);
|
|
74
|
+
if (!(t <= 0)) return `${t}px`;
|
|
75
|
+
}
|
|
76
|
+
function W() {
|
|
77
|
+
z.value = D.value ? U(L.value) : void 0, B.value = O.value ? U(R.value) : void 0;
|
|
78
|
+
}
|
|
79
|
+
function G() {
|
|
80
|
+
typeof ResizeObserver > "u" || (V ||= new ResizeObserver(() => W()), V.disconnect(), L.value && V.observe(L.value), R.value && V.observe(R.value));
|
|
81
|
+
}
|
|
82
|
+
function K() {
|
|
83
|
+
H || (H = !0, s(() => {
|
|
84
|
+
H = !1, W(), G();
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
ne(() => K()), re(() => K()), l(() => V?.disconnect());
|
|
88
|
+
function q(e, t) {
|
|
89
|
+
if (e === "0px") return t;
|
|
90
|
+
if (t === "0px") return e;
|
|
91
|
+
let n = e.endsWith("px") ? Number(e.slice(0, -2)) : null, r = t.endsWith("px") ? Number(t.slice(0, -2)) : null;
|
|
92
|
+
return n !== null && Number.isFinite(n) && r !== null && Number.isFinite(r) ? `${n + r}px` : `calc(${e} + ${t})`;
|
|
93
|
+
}
|
|
94
|
+
let J = n(() => D.value ? z.value ?? F.value : "0px"), Y = n(() => O.value ? B.value ?? I.value : "0px");
|
|
95
|
+
function X(e, t) {
|
|
96
|
+
return {
|
|
97
|
+
width: M.value,
|
|
98
|
+
[e]: t
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
let ce = n(() => {
|
|
102
|
+
let e = k.value ? M.value : "0px", t = +!!k.value + +!!A.value, n = t > 0 ? x(j.value * t) : "0px", r = q(J.value, e), i = q(Y.value, n);
|
|
103
|
+
return {
|
|
104
|
+
paddingLeft: D.value || k.value ? q(r, N.value) : void 0,
|
|
105
|
+
paddingRight: O.value || t > 0 ? q(i, N.value) : void 0
|
|
106
|
+
};
|
|
107
|
+
}), le = n(() => ({
|
|
108
|
+
right: "0px",
|
|
109
|
+
minWidth: I.value,
|
|
110
|
+
maxWidth: S.suffixMaxWidth
|
|
111
|
+
})), ue = n(() => ({
|
|
112
|
+
minWidth: F.value,
|
|
113
|
+
maxWidth: S.prefixMaxWidth
|
|
114
|
+
})), de = n(() => X("right", Y.value)), fe = n(() => X("left", J.value)), pe = n(() => X("right", Y.value)), me = n(() => e({
|
|
115
|
+
disabled: S.disabled,
|
|
116
|
+
state: S.invalid ? "danger" : S.state
|
|
117
|
+
})), he = n(() => t({
|
|
118
|
+
size: S.size,
|
|
119
|
+
textAlign: S.textAlign
|
|
120
|
+
}));
|
|
121
|
+
function Z(e) {
|
|
122
|
+
return e >= "0" && e <= "9";
|
|
123
|
+
}
|
|
124
|
+
function Q(e) {
|
|
125
|
+
let t = S.decimalSeparator || ".", n = "", r = !1;
|
|
126
|
+
for (let i = 0; i < e.length; i++) {
|
|
127
|
+
let a = e[i];
|
|
128
|
+
if (Z(a)) {
|
|
129
|
+
n += a;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
(a === t || a === "." || a === ",") && !r && (n += t, r = !0);
|
|
133
|
+
}
|
|
134
|
+
return n;
|
|
135
|
+
}
|
|
136
|
+
function ge(e) {
|
|
137
|
+
if (e.trim() === "") return null;
|
|
138
|
+
let t = S.decimalSeparator || ".", n = t === "." ? e : e.replace(t, "."), r = Number(n);
|
|
139
|
+
return Number.isFinite(r) ? r : null;
|
|
140
|
+
}
|
|
141
|
+
function _e(e) {
|
|
142
|
+
return S.min !== void 0 && (e = Math.max(S.min, e)), S.max !== void 0 && (e = Math.min(S.max, e)), e;
|
|
143
|
+
}
|
|
144
|
+
function ve(e) {
|
|
145
|
+
if (S.precision === void 0) return e;
|
|
146
|
+
let t = Math.max(0, S.precision);
|
|
147
|
+
return Number(e.toFixed(t));
|
|
148
|
+
}
|
|
149
|
+
function ye(e) {
|
|
150
|
+
let t = S.decimalSeparator || ".", n = S.precision, r = n === void 0 ? String(e) : e.toFixed(Math.max(0, n));
|
|
151
|
+
return t !== "." && (r = r.replace(".", t)), r;
|
|
152
|
+
}
|
|
153
|
+
function be(e) {
|
|
154
|
+
let t = e.target, n = Q(t.value);
|
|
155
|
+
t.value !== n && (t.value = n), C("update:modelValue", n);
|
|
156
|
+
}
|
|
157
|
+
function xe(e) {
|
|
158
|
+
let t = e.target, n = Q(t.value);
|
|
159
|
+
t.value !== n && (t.value = n), C("change", n);
|
|
160
|
+
}
|
|
161
|
+
function $(e) {
|
|
162
|
+
if (S.disabled) return;
|
|
163
|
+
let t = ye(_e(ve((ge(S.modelValue) ?? 0) + (S.step ?? 1) * e)));
|
|
164
|
+
C("update:modelValue", t), C("change", t), T();
|
|
165
|
+
}
|
|
166
|
+
return (e, t) => (u(), i("div", { 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]) }, [
|
|
167
|
+
e.$slots.prefix ? (u(), i("div", {
|
|
168
|
+
key: 0,
|
|
169
|
+
ref_key: "prefixEl",
|
|
170
|
+
ref: L,
|
|
171
|
+
"data-testid": "number-input-prefix",
|
|
172
|
+
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
|
+
style: c(ue.value),
|
|
174
|
+
"aria-hidden": "true"
|
|
175
|
+
}, [f(e.$slots, "prefix")], 4)) : r("", !0),
|
|
176
|
+
a("input", ee({
|
|
177
|
+
id: S.id,
|
|
178
|
+
ref_key: "inputEl",
|
|
179
|
+
ref: w
|
|
180
|
+
}, e.$attrs, {
|
|
181
|
+
name: S.name,
|
|
182
|
+
type: "text",
|
|
183
|
+
inputmode: S.inputmode,
|
|
184
|
+
autocomplete: S.autocomplete,
|
|
185
|
+
placeholder: S.placeholder,
|
|
186
|
+
disabled: S.disabled,
|
|
187
|
+
value: S.modelValue,
|
|
188
|
+
"aria-invalid": S.invalid ? "true" : void 0,
|
|
189
|
+
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
|
+
style: ce.value,
|
|
191
|
+
onInput: be,
|
|
192
|
+
onChange: xe
|
|
193
|
+
}), null, 16, m),
|
|
194
|
+
e.$slots.suffix ? (u(), i("div", {
|
|
195
|
+
key: 1,
|
|
196
|
+
ref_key: "suffixEl",
|
|
197
|
+
ref: R,
|
|
198
|
+
"data-testid": "number-input-suffix",
|
|
199
|
+
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
|
+
style: c(le.value),
|
|
201
|
+
"aria-hidden": "true"
|
|
202
|
+
}, [f(e.$slots, "suffix")], 4)) : r("", !0),
|
|
203
|
+
A.value ? (u(), i("div", {
|
|
204
|
+
key: 2,
|
|
205
|
+
"data-testid": "number-input-controls-vertical",
|
|
206
|
+
class: "absolute inset-y-0 flex items-center justify-center border-l border-[var(--brd)]",
|
|
207
|
+
style: c(de.value)
|
|
208
|
+
}, [a("div", ae, [a("button", {
|
|
209
|
+
type: "button",
|
|
210
|
+
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: S.disabled,
|
|
212
|
+
"aria-label": "Increase",
|
|
213
|
+
onMousedown: t[0] ||= p(() => {}, ["prevent"]),
|
|
214
|
+
onClick: t[1] ||= (e) => $(1)
|
|
215
|
+
}, [...t[8] ||= [a("svg", {
|
|
216
|
+
width: "12",
|
|
217
|
+
height: "12",
|
|
218
|
+
viewBox: "0 0 24 24",
|
|
219
|
+
fill: "none",
|
|
220
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
221
|
+
}, [a("path", {
|
|
222
|
+
d: "M7 14l5-5 5 5",
|
|
223
|
+
stroke: "currentColor",
|
|
224
|
+
"stroke-width": "2",
|
|
225
|
+
"stroke-linecap": "round",
|
|
226
|
+
"stroke-linejoin": "round"
|
|
227
|
+
})], -1)]], 40, oe), a("button", {
|
|
228
|
+
type: "button",
|
|
229
|
+
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: S.disabled,
|
|
231
|
+
"aria-label": "Decrease",
|
|
232
|
+
onMousedown: t[2] ||= p(() => {}, ["prevent"]),
|
|
233
|
+
onClick: t[3] ||= (e) => $(-1)
|
|
234
|
+
}, [...t[9] ||= [a("svg", {
|
|
235
|
+
width: "12",
|
|
236
|
+
height: "12",
|
|
237
|
+
viewBox: "0 0 24 24",
|
|
238
|
+
fill: "none",
|
|
239
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
240
|
+
}, [a("path", {
|
|
241
|
+
d: "M7 10l5 5 5-5",
|
|
242
|
+
stroke: "currentColor",
|
|
243
|
+
"stroke-width": "2",
|
|
244
|
+
"stroke-linecap": "round",
|
|
245
|
+
"stroke-linejoin": "round"
|
|
246
|
+
})], -1)]], 40, h)])], 4)) : r("", !0),
|
|
247
|
+
k.value ? (u(), i("div", {
|
|
248
|
+
key: 3,
|
|
249
|
+
"data-testid": "number-input-controls-horizontal-left",
|
|
250
|
+
class: "absolute inset-y-0 flex items-stretch justify-center border-r border-[var(--brd)]",
|
|
251
|
+
style: c(fe.value)
|
|
252
|
+
}, [a("button", {
|
|
253
|
+
type: "button",
|
|
254
|
+
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: S.disabled,
|
|
256
|
+
"aria-label": "Decrease",
|
|
257
|
+
onMousedown: t[4] ||= p(() => {}, ["prevent"]),
|
|
258
|
+
onClick: t[5] ||= (e) => $(-1)
|
|
259
|
+
}, [...t[10] ||= [a("svg", {
|
|
260
|
+
width: "12",
|
|
261
|
+
height: "12",
|
|
262
|
+
viewBox: "0 0 24 24",
|
|
263
|
+
fill: "none",
|
|
264
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
265
|
+
}, [a("path", {
|
|
266
|
+
d: "M14 7l-5 5 5 5",
|
|
267
|
+
stroke: "currentColor",
|
|
268
|
+
"stroke-width": "2",
|
|
269
|
+
"stroke-linecap": "round",
|
|
270
|
+
"stroke-linejoin": "round"
|
|
271
|
+
})], -1)]], 40, g)], 4)) : r("", !0),
|
|
272
|
+
k.value ? (u(), i("div", {
|
|
273
|
+
key: 4,
|
|
274
|
+
"data-testid": "number-input-controls-horizontal-right",
|
|
275
|
+
class: "absolute inset-y-0 flex items-stretch justify-center border-l border-[var(--brd)]",
|
|
276
|
+
style: c(pe.value)
|
|
277
|
+
}, [a("button", {
|
|
278
|
+
type: "button",
|
|
279
|
+
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: S.disabled,
|
|
281
|
+
"aria-label": "Increase",
|
|
282
|
+
onMousedown: t[6] ||= p(() => {}, ["prevent"]),
|
|
283
|
+
onClick: t[7] ||= (e) => $(1)
|
|
284
|
+
}, [...t[11] ||= [a("svg", {
|
|
285
|
+
width: "12",
|
|
286
|
+
height: "12",
|
|
287
|
+
viewBox: "0 0 24 24",
|
|
288
|
+
fill: "none",
|
|
289
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
290
|
+
}, [a("path", {
|
|
291
|
+
d: "M10 7l5 5-5 5",
|
|
292
|
+
stroke: "currentColor",
|
|
293
|
+
"stroke-width": "2",
|
|
294
|
+
"stroke-linecap": "round",
|
|
295
|
+
"stroke-linejoin": "round"
|
|
296
|
+
})], -1)]], 40, se)], 4)) : r("", !0)
|
|
297
|
+
], 2));
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
//#endregion
|
|
301
|
+
export { _ as t };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { t as e } from "./DsButton-CA18Fha-.js";
|
|
2
|
+
import { t } from "./granularityI18n-DBuOHekC.js";
|
|
3
|
+
import { t as n } from "./DsSelect-DEHGeICn.js";
|
|
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
|
+
//#region src/components/DsPagination/DsPagination.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = { class: "flex flex-wrap items-center justify-end gap-3" }, _ = { class: "min-w-[100px]" }, v = { class: "flex items-center gap-1" }, y = ["onClick"], b = /* @__PURE__ */ l({
|
|
7
|
+
__name: "DsPagination",
|
|
8
|
+
props: {
|
|
9
|
+
page: {},
|
|
10
|
+
pageSize: {},
|
|
11
|
+
total: {},
|
|
12
|
+
pageSizes: { default: () => [
|
|
13
|
+
10,
|
|
14
|
+
20,
|
|
15
|
+
50
|
|
16
|
+
] }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:page", "update:pageSize"],
|
|
19
|
+
setup(l, { emit: b }) {
|
|
20
|
+
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
|
+
get: () => String(S.pageSize),
|
|
25
|
+
set: (e) => C("update:pageSize", Number(e))
|
|
26
|
+
}), D = i(() => S.pageSizes.map((e) => ({
|
|
27
|
+
value: String(e),
|
|
28
|
+
label: String(e)
|
|
29
|
+
}))), O = i(() => {
|
|
30
|
+
let e = w.value, t = S.page, n = Math.max(1, t - 2), r = Math.min(e, n + 5 - 1);
|
|
31
|
+
n = Math.max(1, r - 5 + 1);
|
|
32
|
+
let i = [];
|
|
33
|
+
for (let e = n; e <= r; e += 1) i.push(e);
|
|
34
|
+
return i;
|
|
35
|
+
});
|
|
36
|
+
function k() {
|
|
37
|
+
C("update:page", Math.max(1, S.page - 1));
|
|
38
|
+
}
|
|
39
|
+
function A() {
|
|
40
|
+
C("update:page", Math.min(w.value, S.page + 1));
|
|
41
|
+
}
|
|
42
|
+
return (t, i) => (d(), a("div", g, [
|
|
43
|
+
o("div", _, [c(n, {
|
|
44
|
+
modelValue: E.value,
|
|
45
|
+
"onUpdate:modelValue": i[0] ||= (e) => E.value = e,
|
|
46
|
+
options: D.value,
|
|
47
|
+
"aria-label": m(x)("ds.pagination.pageSize", "Page size")
|
|
48
|
+
}, null, 8, [
|
|
49
|
+
"modelValue",
|
|
50
|
+
"options",
|
|
51
|
+
"aria-label"
|
|
52
|
+
])]),
|
|
53
|
+
c(e, {
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
size: "sm",
|
|
56
|
+
disabled: S.page <= 1,
|
|
57
|
+
onClick: k
|
|
58
|
+
}, {
|
|
59
|
+
default: h(() => [s(p(m(x)("ds.pagination.prev", "Prev")), 1)]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["disabled"]),
|
|
62
|
+
o("div", v, [(d(!0), a(r, null, f(O.value, (e) => (d(), a("button", {
|
|
63
|
+
key: e,
|
|
64
|
+
type: "button",
|
|
65
|
+
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 === S.page ? "bg-[var(--primary)] text-[var(--primary-fg)]" : "text-[var(--muted-fg)] hover:bg-[var(--muted)] hover:text-[var(--fg)]"]),
|
|
66
|
+
onClick: (t) => T.value = e
|
|
67
|
+
}, p(e), 11, y))), 128))]),
|
|
68
|
+
c(e, {
|
|
69
|
+
variant: "ghost",
|
|
70
|
+
size: "sm",
|
|
71
|
+
disabled: S.page >= w.value,
|
|
72
|
+
onClick: A
|
|
73
|
+
}, {
|
|
74
|
+
default: h(() => [s(p(m(x)("ds.pagination.next", "Next")), 1)]),
|
|
75
|
+
_: 1
|
|
76
|
+
}, 8, ["disabled"])
|
|
77
|
+
]));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
//#endregion
|
|
81
|
+
export { b as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as e } from "./config-tQBoBLph.js";
|
|
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
|
+
//#region src/components/DsProgressBar/DsProgressBar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = ["aria-label", "aria-valuenow"], l = /* @__PURE__ */ i({
|
|
5
|
+
__name: "DsProgressBar",
|
|
6
|
+
props: {
|
|
7
|
+
value: {},
|
|
8
|
+
ariaLabel: { default: void 0 },
|
|
9
|
+
tone: { default: "primary" }
|
|
10
|
+
},
|
|
11
|
+
setup(i) {
|
|
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
|
+
return (e, t) => (s(), n("div", {
|
|
14
|
+
role: "progressbar",
|
|
15
|
+
"aria-label": l.ariaLabel,
|
|
16
|
+
"aria-valuenow": u.value,
|
|
17
|
+
"aria-valuemin": "0",
|
|
18
|
+
"aria-valuemax": "100",
|
|
19
|
+
class: "h-2 w-full rounded-full bg-[var(--muted)] border border-[var(--brd)] overflow-hidden"
|
|
20
|
+
}, [r("div", {
|
|
21
|
+
class: a(["h-full", d.value]),
|
|
22
|
+
style: o({ width: `${u.value}%` })
|
|
23
|
+
}, null, 6)], 8, c));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as t };
|