@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,133 @@
|
|
|
1
|
+
import { t as e } from "./DsButton-CA18Fha-.js";
|
|
2
|
+
import { t } from "./DsDialog-BAGAa9DN.js";
|
|
3
|
+
import { t as n } from "./DsFormField-XVZK7YVU.js";
|
|
4
|
+
import { t as r } from "./DsInput-DeoAkT6R.js";
|
|
5
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, watch as g, withCtx as _ } from "vue";
|
|
6
|
+
//#region src/components/DsPromptDialog/DsPromptDialog.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var v = { class: "grid gap-4" }, y = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "text-[14px] text-[var(--muted-fg)]"
|
|
10
|
+
}, b = { class: "flex items-center justify-end gap-3" }, x = /* @__PURE__ */ d({
|
|
11
|
+
__name: "DsPromptDialog",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: { type: Boolean },
|
|
14
|
+
value: {},
|
|
15
|
+
title: { default: "Prompt" },
|
|
16
|
+
description: { default: void 0 },
|
|
17
|
+
label: { default: "Value" },
|
|
18
|
+
placeholder: { default: void 0 },
|
|
19
|
+
closeOnBackdrop: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !0
|
|
22
|
+
},
|
|
23
|
+
size: { default: "md" },
|
|
24
|
+
headerConfig: { default: void 0 },
|
|
25
|
+
footerConfig: { default: void 0 },
|
|
26
|
+
buttonSize: { default: void 0 },
|
|
27
|
+
confirmText: { default: "Confirm" },
|
|
28
|
+
cancelText: { default: "Cancel" },
|
|
29
|
+
confirmVariant: { default: "primary" },
|
|
30
|
+
confirmTone: { default: "primary" },
|
|
31
|
+
required: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: [
|
|
37
|
+
"update:modelValue",
|
|
38
|
+
"update:value",
|
|
39
|
+
"confirm",
|
|
40
|
+
"cancel"
|
|
41
|
+
],
|
|
42
|
+
setup(d, { emit: x }) {
|
|
43
|
+
let S = d, C = x, w = i({
|
|
44
|
+
get: () => S.modelValue,
|
|
45
|
+
set: (e) => C("update:modelValue", e)
|
|
46
|
+
}), T = i({
|
|
47
|
+
get: () => S.value,
|
|
48
|
+
set: (e) => C("update:value", e)
|
|
49
|
+
}), E = p(!1), D = p(null);
|
|
50
|
+
g(() => S.modelValue, (e) => {
|
|
51
|
+
e && (E.value = !1);
|
|
52
|
+
});
|
|
53
|
+
let O = i(() => S.required ? T.value.trim().length > 0 : !0), k = i(() => {
|
|
54
|
+
if (S.required && E.value) return T.value.trim().length > 0 ? void 0 : "Enter a value.";
|
|
55
|
+
});
|
|
56
|
+
function A() {
|
|
57
|
+
C("cancel"), C("update:modelValue", !1);
|
|
58
|
+
}
|
|
59
|
+
function j() {
|
|
60
|
+
if (!O.value) {
|
|
61
|
+
E.value = !0, D.value?.focus();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
C("confirm", T.value), C("update:modelValue", !1);
|
|
65
|
+
}
|
|
66
|
+
return (i, p) => (f(), a(t, {
|
|
67
|
+
modelValue: w.value,
|
|
68
|
+
"onUpdate:modelValue": p[2] ||= (e) => w.value = e,
|
|
69
|
+
title: d.title,
|
|
70
|
+
size: S.size,
|
|
71
|
+
"close-on-backdrop": S.closeOnBackdrop,
|
|
72
|
+
"header-config": S.headerConfig,
|
|
73
|
+
"footer-config": S.footerConfig
|
|
74
|
+
}, {
|
|
75
|
+
footer: _(() => [m(i.$slots, "footer", {}, () => [c("div", b, [u(e, {
|
|
76
|
+
"data-testid": "ds-prompt-cancel",
|
|
77
|
+
variant: "outline",
|
|
78
|
+
size: S.buttonSize,
|
|
79
|
+
onClick: A
|
|
80
|
+
}, {
|
|
81
|
+
default: _(() => [l(h(d.cancelText), 1)]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["size"]), u(e, {
|
|
84
|
+
"data-testid": "ds-prompt-confirm",
|
|
85
|
+
variant: S.confirmVariant,
|
|
86
|
+
tone: S.confirmTone,
|
|
87
|
+
size: S.buttonSize,
|
|
88
|
+
disabled: S.required && E.value && !O.value,
|
|
89
|
+
onClick: j
|
|
90
|
+
}, {
|
|
91
|
+
default: _(() => [l(h(d.confirmText), 1)]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, [
|
|
94
|
+
"variant",
|
|
95
|
+
"tone",
|
|
96
|
+
"size",
|
|
97
|
+
"disabled"
|
|
98
|
+
])])])]),
|
|
99
|
+
default: _(() => [c("div", v, [m(i.$slots, "default", {}, () => [S.description ? (f(), s("div", y, h(S.description), 1)) : o("", !0)]), u(n, {
|
|
100
|
+
label: d.label,
|
|
101
|
+
error: k.value,
|
|
102
|
+
"for-id": "ds-prompt-input"
|
|
103
|
+
}, {
|
|
104
|
+
default: _(() => [u(r, {
|
|
105
|
+
id: "ds-prompt-input",
|
|
106
|
+
ref_key: "inputRef",
|
|
107
|
+
ref: D,
|
|
108
|
+
modelValue: T.value,
|
|
109
|
+
"onUpdate:modelValue": p[0] ||= (e) => T.value = e,
|
|
110
|
+
"data-testid": "ds-prompt-input",
|
|
111
|
+
placeholder: S.placeholder,
|
|
112
|
+
invalid: !!k.value,
|
|
113
|
+
onBlur: p[1] ||= (e) => E.value = !0
|
|
114
|
+
}, null, 8, [
|
|
115
|
+
"modelValue",
|
|
116
|
+
"placeholder",
|
|
117
|
+
"invalid"
|
|
118
|
+
])]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["label", "error"])])]),
|
|
121
|
+
_: 3
|
|
122
|
+
}, 8, [
|
|
123
|
+
"modelValue",
|
|
124
|
+
"title",
|
|
125
|
+
"size",
|
|
126
|
+
"close-on-backdrop",
|
|
127
|
+
"header-config",
|
|
128
|
+
"footer-config"
|
|
129
|
+
]));
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
//#endregion
|
|
133
|
+
export { x as t };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i } from "./config-BS0vLD_L.js";
|
|
2
|
+
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, inject as l, normalizeClass as u, openBlock as d, renderSlot as f, unref as p, withKeys as m, withModifiers as h } from "vue";
|
|
3
|
+
//#region src/components/DsRadio/dsRadioGroupContext.ts
|
|
4
|
+
var g = Symbol("DS_RADIO_GROUP_CONTEXT"), _ = [
|
|
5
|
+
"aria-checked",
|
|
6
|
+
"aria-label",
|
|
7
|
+
"aria-disabled",
|
|
8
|
+
"tabindex",
|
|
9
|
+
"onKeydown"
|
|
10
|
+
], v = [
|
|
11
|
+
"checked",
|
|
12
|
+
"disabled",
|
|
13
|
+
"name",
|
|
14
|
+
"value",
|
|
15
|
+
"required",
|
|
16
|
+
"form"
|
|
17
|
+
], y = [
|
|
18
|
+
"aria-checked",
|
|
19
|
+
"aria-label",
|
|
20
|
+
"aria-disabled",
|
|
21
|
+
"tabindex",
|
|
22
|
+
"onKeydown"
|
|
23
|
+
], b = [
|
|
24
|
+
"checked",
|
|
25
|
+
"disabled",
|
|
26
|
+
"name",
|
|
27
|
+
"value",
|
|
28
|
+
"required",
|
|
29
|
+
"form"
|
|
30
|
+
], x = { class: "text-sm text-[var(--muted-fg)]" }, S = /* @__PURE__ */ c({
|
|
31
|
+
__name: "DsRadio",
|
|
32
|
+
props: {
|
|
33
|
+
value: {},
|
|
34
|
+
modelValue: { default: void 0 },
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
name: { default: void 0 },
|
|
40
|
+
required: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
form: { default: void 0 },
|
|
45
|
+
size: { default: void 0 },
|
|
46
|
+
variant: { default: "radiobox" },
|
|
47
|
+
buttonVariant: { default: "outline" },
|
|
48
|
+
buttonTone: { default: "neutral" },
|
|
49
|
+
selectedButtonVariant: { default: "primary" },
|
|
50
|
+
selectedButtonTone: { default: "primary" },
|
|
51
|
+
ariaLabel: { default: void 0 }
|
|
52
|
+
},
|
|
53
|
+
emits: ["update:modelValue"],
|
|
54
|
+
setup(c, { emit: S }) {
|
|
55
|
+
let C = {
|
|
56
|
+
position: "absolute",
|
|
57
|
+
opacity: "0",
|
|
58
|
+
width: "0",
|
|
59
|
+
height: "0",
|
|
60
|
+
pointerEvents: "none"
|
|
61
|
+
}, w = c, T = S, E = l(g, null), D = a(() => w.modelValue === void 0 ? E?.modelValue.value ?? "" : w.modelValue), O = a(() => w.disabled === void 0 ? E?.disabled.value ?? !1 : w.disabled), k = a(() => w.name ? w.name : E?.name.value), A = a(() => w.size ? w.size : E?.size.value ?? "md"), j = a(() => D.value === w.value), M = a(() => n({
|
|
62
|
+
checked: j.value,
|
|
63
|
+
disabled: O.value,
|
|
64
|
+
size: A.value,
|
|
65
|
+
buttonVariant: w.buttonVariant,
|
|
66
|
+
buttonTone: w.buttonTone,
|
|
67
|
+
selectedButtonVariant: w.selectedButtonVariant,
|
|
68
|
+
selectedButtonTone: w.selectedButtonTone
|
|
69
|
+
})), N = a(() => r(O.value)), P = a(() => i(j.value)), F = a(() => e(j.value));
|
|
70
|
+
function I(e) {
|
|
71
|
+
if (!O.value) {
|
|
72
|
+
if (w.modelValue !== void 0) {
|
|
73
|
+
T("update:modelValue", e);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
E?.setValue(e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function L() {
|
|
80
|
+
I(w.value);
|
|
81
|
+
}
|
|
82
|
+
return (e, n) => w.variant === "button" ? (d(), o("div", {
|
|
83
|
+
key: 0,
|
|
84
|
+
"data-ds-button": "",
|
|
85
|
+
"data-ds-radio": "",
|
|
86
|
+
role: "radio",
|
|
87
|
+
"aria-checked": j.value ? "true" : "false",
|
|
88
|
+
"aria-label": w.ariaLabel,
|
|
89
|
+
"aria-disabled": O.value ? "true" : void 0,
|
|
90
|
+
tabindex: O.value ? -1 : 0,
|
|
91
|
+
class: u(M.value),
|
|
92
|
+
onClick: L,
|
|
93
|
+
onKeydown: [m(h(L, ["prevent"]), ["space"]), m(h(L, ["prevent"]), ["enter"])]
|
|
94
|
+
}, [s("input", {
|
|
95
|
+
type: "radio",
|
|
96
|
+
checked: j.value,
|
|
97
|
+
disabled: O.value,
|
|
98
|
+
name: k.value,
|
|
99
|
+
value: w.value,
|
|
100
|
+
required: w.required,
|
|
101
|
+
form: w.form,
|
|
102
|
+
tabindex: "-1",
|
|
103
|
+
"aria-hidden": "true",
|
|
104
|
+
style: C
|
|
105
|
+
}, null, 8, v), f(e.$slots, "default")], 42, _)) : (d(), o("div", {
|
|
106
|
+
key: 1,
|
|
107
|
+
"data-ds-radio": "",
|
|
108
|
+
role: "radio",
|
|
109
|
+
"aria-checked": j.value ? "true" : "false",
|
|
110
|
+
"aria-label": w.ariaLabel,
|
|
111
|
+
"aria-disabled": O.value ? "true" : void 0,
|
|
112
|
+
tabindex: O.value ? -1 : 0,
|
|
113
|
+
class: u(["inline-flex items-center gap-2 select-none focus-visible:outline-none focus-visible:rounded-[8px] focus-visible:shadow-[0_0_0_2px_var(--ring),0_0_0_4px_var(--bg)]", N.value]),
|
|
114
|
+
onClick: L,
|
|
115
|
+
onKeydown: [m(h(L, ["prevent"]), ["space"]), m(h(L, ["prevent"]), ["enter"])]
|
|
116
|
+
}, [
|
|
117
|
+
s("input", {
|
|
118
|
+
type: "radio",
|
|
119
|
+
checked: j.value,
|
|
120
|
+
disabled: O.value,
|
|
121
|
+
name: k.value,
|
|
122
|
+
value: w.value,
|
|
123
|
+
required: w.required,
|
|
124
|
+
form: w.form,
|
|
125
|
+
tabindex: "-1",
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
style: C
|
|
128
|
+
}, null, 8, b),
|
|
129
|
+
s("span", {
|
|
130
|
+
"aria-hidden": "true",
|
|
131
|
+
class: u(["h-4 w-4 rounded-full border flex items-center justify-center transition-colors duration-150", P.value])
|
|
132
|
+
}, [s("span", {
|
|
133
|
+
"data-ds-radio-dot": "",
|
|
134
|
+
class: u([p(t), F.value])
|
|
135
|
+
}, null, 2)], 2),
|
|
136
|
+
s("span", x, [f(e.$slots, "default")])
|
|
137
|
+
], 42, y));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
//#endregion
|
|
141
|
+
export { g as n, S as t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as e } from "./DsButtonGroup-Ceat9ADe.js";
|
|
2
|
+
import { n as t, t as n } from "./DsRadio-x2vmEUCv.js";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, createTextVNode as s, defineComponent as c, openBlock as l, provide as u, renderList as d, renderSlot as f, toDisplayString as p, withCtx as m } from "vue";
|
|
4
|
+
//#region src/components/DsRadioGroup/DsRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var h = ["aria-disabled"], g = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "grid gap-2"
|
|
8
|
+
}, _ = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "grid gap-2"
|
|
11
|
+
}, v = /* @__PURE__ */ c({
|
|
12
|
+
__name: "DsRadioGroup",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
options: { default: void 0 },
|
|
16
|
+
name: { default: void 0 },
|
|
17
|
+
disabled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
variant: { default: "radiobox" },
|
|
22
|
+
size: { default: "md" }
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:modelValue"],
|
|
25
|
+
setup(c, { emit: v }) {
|
|
26
|
+
let y = c, b = v;
|
|
27
|
+
function x(e) {
|
|
28
|
+
y.disabled || b("update:modelValue", e);
|
|
29
|
+
}
|
|
30
|
+
return u(t, {
|
|
31
|
+
modelValue: i(() => y.modelValue),
|
|
32
|
+
name: i(() => y.name),
|
|
33
|
+
disabled: i(() => y.disabled),
|
|
34
|
+
size: i(() => y.size),
|
|
35
|
+
setValue: x
|
|
36
|
+
}), (t, i) => (l(), o("div", {
|
|
37
|
+
role: "radiogroup",
|
|
38
|
+
"aria-disabled": y.disabled ? "true" : void 0
|
|
39
|
+
}, [t.$slots.default ? (l(), o(r, { key: 0 }, [y.variant === "button" ? (l(), a(e, { key: 0 }, {
|
|
40
|
+
default: m(() => [f(t.$slots, "default")]),
|
|
41
|
+
_: 3
|
|
42
|
+
})) : (l(), o("div", g, [f(t.$slots, "default")]))], 64)) : (l(), o(r, { key: 1 }, [y.variant === "button" ? (l(), a(e, { key: 0 }, {
|
|
43
|
+
default: m(() => [(l(!0), o(r, null, d(y.options ?? [], (e) => (l(), a(n, {
|
|
44
|
+
key: e.value,
|
|
45
|
+
value: e.value,
|
|
46
|
+
variant: "button",
|
|
47
|
+
size: y.size
|
|
48
|
+
}, {
|
|
49
|
+
default: m(() => [s(p(e.label), 1)]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, 1032, ["value", "size"]))), 128))]),
|
|
52
|
+
_: 1
|
|
53
|
+
})) : (l(), o("div", _, [(l(!0), o(r, null, d(y.options ?? [], (e) => (l(), a(n, {
|
|
54
|
+
key: e.value,
|
|
55
|
+
value: e.value
|
|
56
|
+
}, {
|
|
57
|
+
default: m(() => [s(p(e.label), 1)]),
|
|
58
|
+
_: 2
|
|
59
|
+
}, 1032, ["value"]))), 128))]))], 64))], 8, h));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//#endregion
|
|
63
|
+
export { v as t };
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a } from "./config-CTGjkM7q.js";
|
|
2
|
+
import { Fragment as o, computed as s, createBlock as ee, createCommentVNode as c, createElementBlock as l, createElementVNode as te, defineComponent as u, getCurrentInstance as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as ne, onMounted as re, openBlock as h, ref as g, renderList as _, renderSlot as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, watch as S } from "vue";
|
|
3
|
+
//#region src/components/DsSegmented/DsSegmented.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var C = [
|
|
5
|
+
"data-variant",
|
|
6
|
+
"aria-label",
|
|
7
|
+
"aria-disabled"
|
|
8
|
+
], ie = [
|
|
9
|
+
"data-value",
|
|
10
|
+
"aria-checked",
|
|
11
|
+
"aria-disabled",
|
|
12
|
+
"disabled",
|
|
13
|
+
"tabindex",
|
|
14
|
+
"onClick",
|
|
15
|
+
"onKeydown"
|
|
16
|
+
], ae = [
|
|
17
|
+
"name",
|
|
18
|
+
"value",
|
|
19
|
+
"checked",
|
|
20
|
+
"disabled"
|
|
21
|
+
], w = /* @__PURE__ */ u({
|
|
22
|
+
__name: "DsSegmented",
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: {},
|
|
25
|
+
options: {},
|
|
26
|
+
variant: { default: "pills" },
|
|
27
|
+
size: { default: "md" },
|
|
28
|
+
indicatorDuration: { default: 300 },
|
|
29
|
+
block: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
name: { default: void 0 },
|
|
38
|
+
ariaLabel: { default: void 0 }
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:modelValue", "change"],
|
|
41
|
+
setup(u, { emit: w }) {
|
|
42
|
+
let T = {
|
|
43
|
+
position: "absolute",
|
|
44
|
+
opacity: "0",
|
|
45
|
+
width: "0",
|
|
46
|
+
height: "0",
|
|
47
|
+
pointerEvents: "none"
|
|
48
|
+
}, E = u, D = w, O = `ds-segmented-${d()?.uid ?? Math.random()}`, k = g(null), A = g(/* @__PURE__ */ new Map()), j = g(null), M = g(!1), N = null, P = null, F = null, I = !1, L = s(() => E.options.findIndex((e) => e.value === E.modelValue)), R = s(() => E.options[L.value] ?? null), z = s(() => E.options.filter((e) => !J(e))), B = s(() => Math.max(0, Math.round(E.indicatorDuration))), V = s(() => r({
|
|
49
|
+
variant: E.variant,
|
|
50
|
+
block: E.block,
|
|
51
|
+
disabled: E.disabled
|
|
52
|
+
})), H = s(() => ({
|
|
53
|
+
...a({
|
|
54
|
+
variant: E.variant,
|
|
55
|
+
size: E.size
|
|
56
|
+
}),
|
|
57
|
+
gridTemplateColumns: E.options.length > 0 ? E.options.map(() => E.block ? "minmax(0,1fr)" : "minmax(0,max-content)").join(" ") : "none"
|
|
58
|
+
})), U = s(() => n(E.variant)), W = s(() => E.name ?? O), G = s(() => L.value !== -1 && j.value !== null), K = s(() => {
|
|
59
|
+
let e = j.value;
|
|
60
|
+
return e ? {
|
|
61
|
+
opacity: M.value ? "1" : "0",
|
|
62
|
+
width: `${e.width}px`,
|
|
63
|
+
height: `${e.height}px`,
|
|
64
|
+
transitionDuration: `${B.value}ms`,
|
|
65
|
+
transform: `translate3d(${e.x}px, ${e.y}px, 0)`
|
|
66
|
+
} : {
|
|
67
|
+
opacity: "0",
|
|
68
|
+
width: "0px",
|
|
69
|
+
height: "0px",
|
|
70
|
+
transitionDuration: `${B.value}ms`,
|
|
71
|
+
transform: "translate3d(0px, 0px, 0px)"
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
function q(e) {
|
|
75
|
+
return String(e);
|
|
76
|
+
}
|
|
77
|
+
function J(e) {
|
|
78
|
+
return E.disabled || !!e.disabled;
|
|
79
|
+
}
|
|
80
|
+
function Y(e) {
|
|
81
|
+
return e.value === E.modelValue;
|
|
82
|
+
}
|
|
83
|
+
function oe(e) {
|
|
84
|
+
return !!e.icon && !e.label;
|
|
85
|
+
}
|
|
86
|
+
function se(e, t) {
|
|
87
|
+
return J(e) ? !1 : Y(e) ? !0 : L.value === -1 ? z.value[0]?.value === E.options[t]?.value : !1;
|
|
88
|
+
}
|
|
89
|
+
function ce(e, t) {
|
|
90
|
+
let n = q(e);
|
|
91
|
+
if (!(t instanceof HTMLElement)) {
|
|
92
|
+
A.value.delete(n);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
A.value.set(n, t);
|
|
96
|
+
}
|
|
97
|
+
function le(e, t) {
|
|
98
|
+
return e === t ? !0 : !e || !t ? !1 : e.width === t.width && e.height === t.height && e.x === t.x && e.y === t.y;
|
|
99
|
+
}
|
|
100
|
+
function ue() {
|
|
101
|
+
let e = k.value, t = R.value;
|
|
102
|
+
if (!e || !t) {
|
|
103
|
+
j.value !== null && (j.value = null), M.value &&= !1;
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
let n = A.value.get(q(t.value));
|
|
107
|
+
if (!n) return;
|
|
108
|
+
let r = e.getBoundingClientRect(), i = n.getBoundingClientRect(), a = {
|
|
109
|
+
width: Math.max(Math.round(i.width), 0),
|
|
110
|
+
height: Math.max(Math.round(i.height), 0),
|
|
111
|
+
x: Math.round(i.left - r.left),
|
|
112
|
+
y: Math.max(Math.round(i.top - r.top) - 1, 0)
|
|
113
|
+
};
|
|
114
|
+
le(j.value, a) || (j.value = a);
|
|
115
|
+
let o = a.width > 0 && a.height > 0;
|
|
116
|
+
M.value !== o && (M.value = o);
|
|
117
|
+
}
|
|
118
|
+
function de() {
|
|
119
|
+
if (typeof ResizeObserver > "u") return;
|
|
120
|
+
let e = k.value, t = R.value, n = t ? A.value.get(q(t.value)) ?? null : null;
|
|
121
|
+
if (N ||= new ResizeObserver(() => X()), !e) {
|
|
122
|
+
N.disconnect(), P = null, F = null;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
P === e && F === n || (N.disconnect(), N.observe(e), n && N.observe(n), P = e, F = n);
|
|
126
|
+
}
|
|
127
|
+
function X() {
|
|
128
|
+
I || (I = !0, f(() => {
|
|
129
|
+
I = !1, ue(), de();
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
function Z(e) {
|
|
133
|
+
J(e) || e.value === E.modelValue || (D("update:modelValue", e.value), D("change", e.value, e));
|
|
134
|
+
}
|
|
135
|
+
function Q(e, t) {
|
|
136
|
+
if (E.options.length === 0) return -1;
|
|
137
|
+
let n = e;
|
|
138
|
+
for (let e = 0; e < E.options.length; e += 1) {
|
|
139
|
+
n = (n + t + E.options.length) % E.options.length;
|
|
140
|
+
let e = E.options[n];
|
|
141
|
+
if (e && !J(e)) return n;
|
|
142
|
+
}
|
|
143
|
+
return -1;
|
|
144
|
+
}
|
|
145
|
+
function $(e) {
|
|
146
|
+
let t = E.options[e];
|
|
147
|
+
t && A.value.get(q(t.value))?.focus();
|
|
148
|
+
}
|
|
149
|
+
function fe(e, t) {
|
|
150
|
+
if (!E.disabled) {
|
|
151
|
+
if (e.key === "ArrowRight" || e.key === "ArrowDown") {
|
|
152
|
+
e.preventDefault();
|
|
153
|
+
let n = Q(t, 1);
|
|
154
|
+
if (n === -1) return;
|
|
155
|
+
let r = E.options[n];
|
|
156
|
+
r && (Z(r), $(n));
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
let n = Q(t, -1);
|
|
162
|
+
if (n === -1) return;
|
|
163
|
+
let r = E.options[n];
|
|
164
|
+
r && (Z(r), $(n));
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
if (e.key === "Home") {
|
|
168
|
+
e.preventDefault();
|
|
169
|
+
let t = z.value[0];
|
|
170
|
+
if (!t) return;
|
|
171
|
+
Z(t), $(E.options.findIndex((e) => e.value === t.value));
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (e.key === "End") {
|
|
175
|
+
e.preventDefault();
|
|
176
|
+
let t = z.value.at(-1);
|
|
177
|
+
if (!t) return;
|
|
178
|
+
Z(t), $(E.options.findIndex((e) => e.value === t.value));
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (e.key === " " || e.key === "Enter") {
|
|
182
|
+
e.preventDefault();
|
|
183
|
+
let n = E.options[t];
|
|
184
|
+
n && Z(n);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return S(() => E.modelValue, () => X()), S(() => E.options, () => X(), { deep: !0 }), S(() => E.variant, () => X()), S(() => E.size, () => X()), S(() => E.block, () => X()), re(() => X()), ne(() => {
|
|
189
|
+
N?.disconnect(), P = null, F = null;
|
|
190
|
+
}), (n, r) => (h(), l("div", {
|
|
191
|
+
ref_key: "rootRef",
|
|
192
|
+
ref: k,
|
|
193
|
+
"data-ds-segmented": "",
|
|
194
|
+
"data-variant": E.variant,
|
|
195
|
+
role: "radiogroup",
|
|
196
|
+
"aria-label": E.ariaLabel,
|
|
197
|
+
"aria-disabled": E.disabled ? "true" : void 0,
|
|
198
|
+
class: p(V.value),
|
|
199
|
+
style: m(H.value)
|
|
200
|
+
}, [G.value ? (h(), l("span", {
|
|
201
|
+
key: 0,
|
|
202
|
+
"data-ds-segmented-indicator": "",
|
|
203
|
+
"aria-hidden": "true",
|
|
204
|
+
class: p(U.value),
|
|
205
|
+
style: m(K.value)
|
|
206
|
+
}, null, 6)) : c("", !0), (h(!0), l(o, null, _(E.options, (r, a) => (h(), l("button", {
|
|
207
|
+
key: r.value,
|
|
208
|
+
ref_for: !0,
|
|
209
|
+
ref: (e) => ce(r.value, e),
|
|
210
|
+
"data-ds-segmented-item": "",
|
|
211
|
+
"data-value": String(r.value),
|
|
212
|
+
type: "button",
|
|
213
|
+
role: "radio",
|
|
214
|
+
"aria-checked": Y(r) ? "true" : "false",
|
|
215
|
+
"aria-disabled": J(r) ? "true" : void 0,
|
|
216
|
+
disabled: J(r),
|
|
217
|
+
tabindex: se(r, a) ? 0 : -1,
|
|
218
|
+
class: p(x(i)({
|
|
219
|
+
variant: E.variant,
|
|
220
|
+
selected: Y(r),
|
|
221
|
+
disabled: J(r),
|
|
222
|
+
iconOnly: oe(r)
|
|
223
|
+
})),
|
|
224
|
+
onClick: (e) => Z(r),
|
|
225
|
+
onKeydown: (e) => fe(e, a)
|
|
226
|
+
}, [te("input", {
|
|
227
|
+
type: "radio",
|
|
228
|
+
tabindex: "-1",
|
|
229
|
+
"aria-hidden": "true",
|
|
230
|
+
name: W.value,
|
|
231
|
+
value: r.value,
|
|
232
|
+
checked: Y(r),
|
|
233
|
+
disabled: J(r),
|
|
234
|
+
style: T
|
|
235
|
+
}, null, 8, ae), v(n.$slots, "default", {
|
|
236
|
+
option: r,
|
|
237
|
+
selected: Y(r),
|
|
238
|
+
disabled: J(r)
|
|
239
|
+
}, () => [r.icon ? (h(), ee(y(r.icon), {
|
|
240
|
+
key: 0,
|
|
241
|
+
"aria-hidden": "true",
|
|
242
|
+
class: p(x(t))
|
|
243
|
+
}, null, 8, ["class"])) : c("", !0), r.label ? (h(), l("span", {
|
|
244
|
+
key: 1,
|
|
245
|
+
class: p(x(e))
|
|
246
|
+
}, b(r.label), 3)) : c("", !0)])], 42, ie))), 128))], 14, C));
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
//#endregion
|
|
250
|
+
export { w as t };
|