@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,24 @@
|
|
|
1
|
+
export type DsTab = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
badge?: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
tabs: DsTab[];
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: string) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTabsConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsTabs">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTabsSafelist: readonly ["inline-flex", "flex-wrap", "gap-1", "rounded-[var(--ds-radius-lg)]", "border", "border-[var(--brd)]", "bg-[var(--muted)]", "p-1", "h-9", "px-3", "rounded-[10px]", "text-sm", "font-600", "transition-colors", "focus:outline-none", "focus-visible:ring-2", "focus-visible:ring-[var(--ring)]", "bg-[var(--card)]", "text-[var(--fg)]", "text-[var(--muted-fg)]", "hover:text-[var(--fg)]", "hover:bg-[color-mix(in_srgb,var(--card)_70%,transparent)]", "items-center", "gap-2", "text-[11px]", "px-1.5", "py-0.5", "rounded-full", "bg-[var(--secondary)]", "text-[var(--secondary-fg)]"];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export type { DsTextareaState } from './dsTextareaStyles';
|
|
2
|
+
import { type DsTextareaState } from './dsTextareaStyles';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
autocomplete?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
state?: DsTextareaState;
|
|
10
|
+
name?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
rows?: number;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
15
|
+
placeholder: undefined;
|
|
16
|
+
autocomplete: undefined;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
invalid: boolean;
|
|
19
|
+
state: string;
|
|
20
|
+
name: undefined;
|
|
21
|
+
id: undefined;
|
|
22
|
+
rows: number;
|
|
23
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: string) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
26
|
+
placeholder: undefined;
|
|
27
|
+
autocomplete: undefined;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
invalid: boolean;
|
|
30
|
+
state: string;
|
|
31
|
+
name: undefined;
|
|
32
|
+
id: undefined;
|
|
33
|
+
rows: number;
|
|
34
|
+
}>>> & Readonly<{
|
|
35
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
name: string;
|
|
39
|
+
id: string;
|
|
40
|
+
rows: number;
|
|
41
|
+
invalid: boolean;
|
|
42
|
+
placeholder: string;
|
|
43
|
+
autocomplete: string;
|
|
44
|
+
state: DsTextareaState;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} : {
|
|
64
|
+
[K in keyof T as K]: T[K];
|
|
65
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTextareaConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsTextarea">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dsTextareaSafelist } from './dsTextareaStyles';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsToasterConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsToaster">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsToasterSafelist: readonly ["fixed", "right-4", "top-4", "z-50", "grid", "w-[360px]", "max-w-[calc(100vw-2rem)]", "gap-3", "rounded-[var(--ds-radius-lg)]", "border", "border-[var(--brd)]", "bg-[var(--card)]", "px-4", "py-3", "shadow-[var(--ds-shadow-2)]", "flex", "items-start", "h-5", "w-5", "mt-0.5", "min-w-0", "flex-1", "text-[13px]", "font-700", "ds-muted", "h-4", "w-4"];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text: string;
|
|
3
|
+
iconColor?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
10
|
+
iconColor: string;
|
|
11
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
12
|
+
iconColor: string;
|
|
13
|
+
}>>> & Readonly<{}>, {
|
|
14
|
+
iconColor: string;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
}> : P[K];
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} : {
|
|
40
|
+
[K in keyof T as K]: T[K];
|
|
41
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTooltipConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsTooltip">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTooltipSafelist: readonly ["group", "relative", "inline-flex", "items-center", "justify-center", "text-[var(--ds-tooltip-icon-color)]", "focus:outline-none", "h-4", "w-4", "pointer-events-none", "absolute", "bottom-[calc(100%+8px)]", "left-1/2", "z-10", "-translate-x-1/2", "whitespace-nowrap", "rounded-md", "border", "border-[var(--brd)]", "bg-[var(--popover)]", "px-2", "py-1", "text-[12px]", "text-[var(--popover-fg)]", "opacity-0", "shadow-[var(--ds-shadow-1)]", "transition-opacity", "duration-150", "group-hover:opacity-100", "group-focus-within:opacity-100"];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { DsTreeInstance, DsTreeNode, DsTreeNodeDropType } from './dsTreeTypes';
|
|
2
|
+
import type { DsTreeProps } from './dsTreeProps';
|
|
3
|
+
declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<DsTreeProps<T> & {
|
|
5
|
+
onNodeClick?: ((data: T, node: DsTreeNode<T>) => any) | undefined;
|
|
6
|
+
onNodeExpand?: ((data: T, node: DsTreeNode<T>) => any) | undefined;
|
|
7
|
+
onNodeCollapse?: ((data: T, node: DsTreeNode<T>) => any) | undefined;
|
|
8
|
+
onNodeDrop?: ((draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, dropType: DsTreeNodeDropType) => any) | undefined;
|
|
9
|
+
}> & (typeof globalThis extends {
|
|
10
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
11
|
+
} ? P : {});
|
|
12
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<DsTreeInstance<T>>) => void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: {
|
|
15
|
+
default?: (props: {
|
|
16
|
+
node: DsTreeNode<T>;
|
|
17
|
+
data: T;
|
|
18
|
+
}) => any;
|
|
19
|
+
};
|
|
20
|
+
emit: {
|
|
21
|
+
(event: "nodeClick", data: T, node: DsTreeNode<T>): void;
|
|
22
|
+
(event: "nodeExpand", data: T, node: DsTreeNode<T>): void;
|
|
23
|
+
(event: "nodeCollapse", data: T, node: DsTreeNode<T>): void;
|
|
24
|
+
(event: "nodeDrop", draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, dropType: DsTreeNodeDropType): void;
|
|
25
|
+
};
|
|
26
|
+
}>) => import("vue").VNode & {
|
|
27
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} : {
|
|
34
|
+
[K in keyof T as K]: T[K];
|
|
35
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTreeConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsTree">;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DsTreeKey } from './dsTreeTypes';
|
|
2
|
+
import type { DsTreeDataProps } from './dsTreeProps';
|
|
3
|
+
export type DsTreeDataAdapterOptions<T extends object> = Pick<DsTreeDataProps<T>, 'props' | 'nodeKey'>;
|
|
4
|
+
export type DsTreeDataAdapter<T extends object> = {
|
|
5
|
+
hasNodeKey: () => boolean;
|
|
6
|
+
getChildrenKey: () => string;
|
|
7
|
+
getLabelKey: () => string;
|
|
8
|
+
getLabel: (data: T) => string;
|
|
9
|
+
getChildren: (data: T) => T[];
|
|
10
|
+
ensureChildren: (data: T) => T[];
|
|
11
|
+
getNodeKey: (data: T, index: number, parentKey: DsTreeKey | undefined) => DsTreeKey;
|
|
12
|
+
getExplicitNodeKey: (data: T) => DsTreeKey | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare function createDsTreeDataAdapter<T extends Record<string, any> = any>(options: DsTreeDataAdapterOptions<T>): DsTreeDataAdapter<T>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Ref, ShallowRef } from 'vue';
|
|
2
|
+
import type { DsTreeAllowDropType, DsTreeKey, DsTreeNode, DsTreeNodeDropType } from './dsTreeTypes';
|
|
3
|
+
export type DsTreeDropTarget = {
|
|
4
|
+
key: DsTreeKey;
|
|
5
|
+
type: DsTreeNodeDropType;
|
|
6
|
+
allowed: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type DsTreeInteractionOptions<T> = {
|
|
9
|
+
draggable?: boolean;
|
|
10
|
+
allowDrop?: (draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, type: DsTreeAllowDropType) => boolean;
|
|
11
|
+
allowDrag?: (draggingNode: DsTreeNode<T>) => boolean;
|
|
12
|
+
};
|
|
13
|
+
export type DsTreeInteractionEmitters<T> = {
|
|
14
|
+
emitNodeClick: (data: T, node: DsTreeNode<T>) => void;
|
|
15
|
+
emitNodeExpand: (data: T, node: DsTreeNode<T>) => void;
|
|
16
|
+
emitNodeCollapse: (data: T, node: DsTreeNode<T>) => void;
|
|
17
|
+
emitNodeDrop: (draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, dropType: DsTreeNodeDropType) => void;
|
|
18
|
+
};
|
|
19
|
+
export type DsTreeInteractionContext<T> = {
|
|
20
|
+
hoveredKey: Ref<DsTreeKey | undefined>;
|
|
21
|
+
draggingNode: ShallowRef<DsTreeNode<T> | null>;
|
|
22
|
+
dropTarget: ShallowRef<DsTreeDropTarget | null>;
|
|
23
|
+
canDrag: (node: DsTreeNode<T>) => boolean;
|
|
24
|
+
canDrop: (drag: DsTreeNode<T>, target: DsTreeNode<T>, type: DsTreeAllowDropType) => boolean;
|
|
25
|
+
resetDragState: () => void;
|
|
26
|
+
emitNodeClick: (data: T, node: DsTreeNode<T>) => void;
|
|
27
|
+
emitNodeExpand: (data: T, node: DsTreeNode<T>) => void;
|
|
28
|
+
emitNodeCollapse: (data: T, node: DsTreeNode<T>) => void;
|
|
29
|
+
emitNodeDrop: (draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, dropType: DsTreeNodeDropType) => void;
|
|
30
|
+
};
|
|
31
|
+
export declare function createDsTreeInteractionContext<T>(options: DsTreeInteractionOptions<T>, emitters: DsTreeInteractionEmitters<T>): DsTreeInteractionContext<T>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { DsTreeInteractionContext } from './dsTreeInteractionContext';
|
|
3
|
+
import type { DsTreeStore } from './dsTreeStore';
|
|
4
|
+
import type { DsTreeAllowDropType, DsTreeKey, DsTreeNode } from './dsTreeTypes';
|
|
5
|
+
export type NodeKeyProp<T extends object> = Extract<keyof T, string>;
|
|
6
|
+
export type DsTreePropsMap = {
|
|
7
|
+
children?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
10
|
+
export type DsTreeFilterNodeMethod<T extends object = any> = (value: string, data: T, node?: DsTreeNode<T>) => boolean;
|
|
11
|
+
export type DsTreeBranchLineColor<T extends object = any> = string | ((node: DsTreeNode<T>) => string | undefined | null);
|
|
12
|
+
export type DsTreeVisibleRow<T extends object> = {
|
|
13
|
+
node: DsTreeNode<T>;
|
|
14
|
+
isExpanded: boolean;
|
|
15
|
+
isLeaf: boolean;
|
|
16
|
+
isMatched: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type DsTreeVisibleTreeRow<T extends object> = DsTreeVisibleRow<T> & {
|
|
19
|
+
children: DsTreeVisibleTreeRow<T>[];
|
|
20
|
+
};
|
|
21
|
+
export type DsTreeClassValue = HTMLAttributes['class'];
|
|
22
|
+
export type DsTreeNodeClass<T extends object> = DsTreeClassValue | ((row: DsTreeVisibleRow<T>) => DsTreeClassValue);
|
|
23
|
+
export type DsTreeDataProps<T extends object> = {
|
|
24
|
+
data: T[];
|
|
25
|
+
props?: DsTreePropsMap;
|
|
26
|
+
nodeKey?: NodeKeyProp<T> | 'id';
|
|
27
|
+
defaultExpandedKeys?: DsTreeKey[];
|
|
28
|
+
filterNodeMethod?: DsTreeFilterNodeMethod<T>;
|
|
29
|
+
};
|
|
30
|
+
export type DsTreeViewProps<T extends object> = {
|
|
31
|
+
highlightCurrent?: boolean;
|
|
32
|
+
expandIcon?: string;
|
|
33
|
+
collapseIcon?: string;
|
|
34
|
+
toggleIconRotate?: boolean;
|
|
35
|
+
branchLine?: boolean;
|
|
36
|
+
branchLineColor?: DsTreeBranchLineColor<T>;
|
|
37
|
+
branchLineActiveColor?: DsTreeBranchLineColor<T>;
|
|
38
|
+
rowClass?: DsTreeNodeClass<T>;
|
|
39
|
+
dragHandleClass?: DsTreeNodeClass<T>;
|
|
40
|
+
toggleClass?: DsTreeNodeClass<T>;
|
|
41
|
+
toggleIconClass?: DsTreeNodeClass<T>;
|
|
42
|
+
toggleSpacerClass?: DsTreeNodeClass<T>;
|
|
43
|
+
contentClass?: DsTreeNodeClass<T>;
|
|
44
|
+
};
|
|
45
|
+
export type DsTreeInteractionProps<T extends object> = {
|
|
46
|
+
draggable?: boolean;
|
|
47
|
+
dragHandleIcon?: string;
|
|
48
|
+
allowDrop?: (draggingNode: DsTreeNode<T>, dropNode: DsTreeNode<T>, type: DsTreeAllowDropType) => boolean;
|
|
49
|
+
allowDrag?: (draggingNode: DsTreeNode<T>) => boolean;
|
|
50
|
+
};
|
|
51
|
+
export type DsTreeInternalProps<T extends object> = {
|
|
52
|
+
internalRows?: DsTreeVisibleTreeRow<T>[];
|
|
53
|
+
internalNested?: boolean;
|
|
54
|
+
internalStore?: DsTreeStore<T>;
|
|
55
|
+
internalInteractionContext?: DsTreeInteractionContext<T>;
|
|
56
|
+
};
|
|
57
|
+
export type DsTreeProps<T extends object> = DsTreeDataProps<T> & DsTreeViewProps<T> & DsTreeInteractionProps<T> & DsTreeInternalProps<T>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ComputedRef, MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
|
|
2
|
+
import type { DsTreeKey, DsTreeNode, DsTreeNodeDropType, DsTreeNodeTarget } from './dsTreeTypes';
|
|
3
|
+
import type { DsTreeDataAdapter } from './dsTreeDataAdapter';
|
|
4
|
+
import type { DsTreeDataProps, DsTreeFilterNodeMethod } from './dsTreeProps';
|
|
5
|
+
type TreeModel<T extends object> = {
|
|
6
|
+
roots: DsTreeNode<T>[];
|
|
7
|
+
byKey: Map<DsTreeKey, DsTreeNode<T>>;
|
|
8
|
+
byData: WeakMap<T, DsTreeNode<T>>;
|
|
9
|
+
};
|
|
10
|
+
type FilterInfo = {
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
subtreeHasMatch: Map<DsTreeKey, boolean>;
|
|
13
|
+
matchedKeys: Set<DsTreeKey>;
|
|
14
|
+
autoExpandKeys: Set<DsTreeKey>;
|
|
15
|
+
};
|
|
16
|
+
export type DsTreeStoreOptions<T extends object> = {
|
|
17
|
+
data: MaybeRefOrGetter<DsTreeDataProps<T>['data']>;
|
|
18
|
+
defaultExpandedKeys?: MaybeRefOrGetter<DsTreeDataProps<T>['defaultExpandedKeys']>;
|
|
19
|
+
filterNodeMethod?: MaybeRefOrGetter<DsTreeFilterNodeMethod<T> | undefined>;
|
|
20
|
+
adapter: DsTreeDataAdapter<T>;
|
|
21
|
+
};
|
|
22
|
+
export type DsTreeStore<T extends object> = {
|
|
23
|
+
filterValue: Ref<string>;
|
|
24
|
+
expandedKeys: ShallowRef<Set<DsTreeKey>>;
|
|
25
|
+
currentKey: Ref<DsTreeKey | undefined>;
|
|
26
|
+
treeModel: ComputedRef<TreeModel<T>>;
|
|
27
|
+
filterInfo: ComputedRef<FilterInfo>;
|
|
28
|
+
filter: (value: string) => void;
|
|
29
|
+
isExpandedKey: (key: DsTreeKey) => boolean;
|
|
30
|
+
setExpandedKey: (key: DsTreeKey, expanded: boolean) => void;
|
|
31
|
+
toggleExpand: (node: DsTreeNode<T>) => void;
|
|
32
|
+
setCurrentKey: (key?: DsTreeKey) => void;
|
|
33
|
+
getCurrentKey: () => DsTreeKey | undefined;
|
|
34
|
+
getCurrentNode: () => DsTreeNode<T> | undefined;
|
|
35
|
+
setCurrentNode: (node?: DsTreeNodeTarget<T>) => boolean;
|
|
36
|
+
getNode: (key: DsTreeKey) => DsTreeNode<T> | undefined;
|
|
37
|
+
canMoveNode: (node: DsTreeNodeTarget<T>, referenceNode: DsTreeNodeTarget<T>, dropType: DsTreeNodeDropType) => boolean;
|
|
38
|
+
moveNode: (node: DsTreeNodeTarget<T>, referenceNode: DsTreeNodeTarget<T>, dropType: DsTreeNodeDropType) => DsTreeNode<T> | undefined;
|
|
39
|
+
appendNode: (data: T, parent: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
40
|
+
removeNode: (node: DsTreeNodeTarget<T>) => boolean;
|
|
41
|
+
insertNodeBefore: (data: T, referenceNode: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
42
|
+
insertNodeAfter: (data: T, referenceNode: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
43
|
+
};
|
|
44
|
+
export declare function createDsTreeStore<T extends Record<string, any> = any>(options: DsTreeStoreOptions<T>): DsTreeStore<T>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type DsTreeKey = string | number;
|
|
2
|
+
export type DsTreeNodeDropType = 'prev' | 'inner' | 'next';
|
|
3
|
+
export type DsTreeAllowDropType = DsTreeNodeDropType;
|
|
4
|
+
export type DsTreeNode<T = any> = {
|
|
5
|
+
key: DsTreeKey;
|
|
6
|
+
label: string;
|
|
7
|
+
data: T;
|
|
8
|
+
level: number;
|
|
9
|
+
parent?: DsTreeNode<T>;
|
|
10
|
+
childNodes: DsTreeNode<T>[];
|
|
11
|
+
};
|
|
12
|
+
export type DsTreeNodeTarget<T = any> = DsTreeKey | DsTreeNode<T> | T;
|
|
13
|
+
export type DsTreeInstance<T = any> = {
|
|
14
|
+
filter: (value: string) => void;
|
|
15
|
+
setCurrentKey: (key?: DsTreeKey) => void;
|
|
16
|
+
getCurrentKey: () => DsTreeKey | undefined;
|
|
17
|
+
appendNode: (data: T, parent: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
18
|
+
removeNode: (node: DsTreeNodeTarget<T>) => boolean;
|
|
19
|
+
insertNodeBefore: (data: T, referenceNode: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
20
|
+
insertNodeAfter: (data: T, referenceNode: DsTreeNodeTarget<T>) => DsTreeNode<T> | undefined;
|
|
21
|
+
getCurrentNode: () => DsTreeNode<T> | undefined;
|
|
22
|
+
setCurrentNode: (node?: DsTreeNodeTarget<T>) => boolean;
|
|
23
|
+
getNode: (key: DsTreeKey) => DsTreeNode<T> | undefined;
|
|
24
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './DsTree.vue';
|
|
2
|
+
export { default as DsTree } from './DsTree.vue';
|
|
3
|
+
export type { DsTreeAllowDropType, DsTreeInstance, DsTreeKey, DsTreeNode, DsTreeNodeDropType, DsTreeNodeTarget, } from './dsTreeTypes';
|
|
4
|
+
export type { DsTreeBranchLineColor, DsTreeFilterNodeMethod, DsTreeNodeClass, DsTreeProps, DsTreePropsMap, DsTreeVisibleRow, DsTreeVisibleTreeRow, } from './dsTreeProps';
|
|
5
|
+
export { dsTreeConfig } from './config';
|
|
6
|
+
export { dsTreeSafelist } from './safelist';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTreeSafelist: readonly ["py-2", "px-2", "ml-6", "i-lucide-chevron-right", "i-lucide-grip-vertical"];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'vue';
|
|
2
|
+
import { type DsInputSize } from '../DsInput/DsInput.vue';
|
|
3
|
+
import { type DsTreeFilterNodeMethod, type DsTreePropsMap, type DsTreeKey, type DsTreeNode } from '../DsTree';
|
|
4
|
+
import type { DsTreeSelectModelValue, DsTreeSelectValueDisplay } from './dsTreeSelectTypes';
|
|
5
|
+
import { type DsTreeSelectState } from './dsTreeSelectStyles';
|
|
6
|
+
declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
+
props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<{
|
|
8
|
+
modelValue: DsTreeSelectModelValue;
|
|
9
|
+
data: T[];
|
|
10
|
+
props?: DsTreePropsMap;
|
|
11
|
+
nodeKey?: (keyof T & string) | "id";
|
|
12
|
+
defaultExpandedKeys?: DsTreeKey[];
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
size?: DsInputSize;
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
state?: DsTreeSelectState;
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
clearable?: boolean;
|
|
20
|
+
/** Как отображать выбранное значение в single-режиме. */
|
|
21
|
+
valueDisplay?: DsTreeSelectValueDisplay;
|
|
22
|
+
filterable?: boolean;
|
|
23
|
+
filterPlaceholder?: string;
|
|
24
|
+
filterInputmode?: InputHTMLAttributes["inputmode"];
|
|
25
|
+
filterNodeMethod?: DsTreeFilterNodeMethod<T>;
|
|
26
|
+
closeOnSelect?: boolean;
|
|
27
|
+
dropdownMaxHeight?: number;
|
|
28
|
+
} & {
|
|
29
|
+
"onUpdate:modelValue"?: ((value: DsTreeSelectModelValue) => any) | undefined;
|
|
30
|
+
onChange?: ((value: DsTreeSelectModelValue) => any) | undefined;
|
|
31
|
+
onClear?: (() => any) | undefined;
|
|
32
|
+
onNodeClick?: ((data: T, node: DsTreeNode<T>) => any) | undefined;
|
|
33
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
34
|
+
}> & (typeof globalThis extends {
|
|
35
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
36
|
+
} ? P : {});
|
|
37
|
+
expose: (exposed: {}) => void;
|
|
38
|
+
attrs: any;
|
|
39
|
+
slots: {
|
|
40
|
+
/** Рендер значения внутри триггера (вместо дефолтного текста). */
|
|
41
|
+
value?: (props: {
|
|
42
|
+
value: DsTreeSelectModelValue;
|
|
43
|
+
labels: string[];
|
|
44
|
+
displayValue: string;
|
|
45
|
+
pathLabels?: string[];
|
|
46
|
+
}) => any;
|
|
47
|
+
/** Рендер строки дерева. */
|
|
48
|
+
node?: (props: {
|
|
49
|
+
node: DsTreeNode<T>;
|
|
50
|
+
data: T;
|
|
51
|
+
selected: boolean;
|
|
52
|
+
}) => any;
|
|
53
|
+
/** Содержимое пустого состояния (когда нет данных). */
|
|
54
|
+
empty?: () => any;
|
|
55
|
+
};
|
|
56
|
+
emit: {
|
|
57
|
+
(e: "update:modelValue", value: DsTreeSelectModelValue): void;
|
|
58
|
+
(e: "change", value: DsTreeSelectModelValue): void;
|
|
59
|
+
(e: "visibleChange", visible: boolean): void;
|
|
60
|
+
(e: "clear"): void;
|
|
61
|
+
(e: "nodeClick", data: T, node: DsTreeNode<T>): void;
|
|
62
|
+
};
|
|
63
|
+
}>) => import("vue").VNode & {
|
|
64
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
65
|
+
};
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|
|
68
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
69
|
+
[K in keyof T]: T[K];
|
|
70
|
+
} : {
|
|
71
|
+
[K in keyof T as K]: T[K];
|
|
72
|
+
}) & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dsTreeSelectConfig: import("../../registry/componentConfig").GranularityComponentConfig<"DsTreeSelect">;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DsInputSize } from '../DsInput';
|
|
2
|
+
export type DsTreeSelectState = 'default' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export declare function dsTreeSelectClass(options: {
|
|
4
|
+
size: DsInputSize;
|
|
5
|
+
state: DsTreeSelectState;
|
|
6
|
+
invalid: boolean;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare const dsTreeSelectPanelClass = "rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] overflow-hidden";
|
|
9
|
+
export declare const dsTreeSelectSafelist: string[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './DsTreeSelect.vue';
|
|
2
|
+
export { default as DsTreeSelect } from './DsTreeSelect.vue';
|
|
3
|
+
export type { DsTreeSelectModelValue, DsTreeSelectValueDisplay } from './dsTreeSelectTypes';
|
|
4
|
+
export { dsTreeSelectConfig } from './config';
|
|
5
|
+
export { dsTreeSelectSafelist } from './safelist';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dsTreeSelectSafelist } from './dsTreeSelectStyles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function splitClassTokens(value: string): string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type ThemeName = 'light' | 'dark';
|
|
2
|
+
export type UseThemeOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Ключ для хранения выбранной темы в localStorage.
|
|
5
|
+
* По умолчанию: `fint-ds-theme`.
|
|
6
|
+
*/
|
|
7
|
+
storageKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Если `false` — не читать/не писать localStorage (полезно для SSR/embedded сценариев).
|
|
10
|
+
* По умолчанию: `true`.
|
|
11
|
+
*/
|
|
12
|
+
persist?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Для применения темы максимально рано (до монтирования Vue), чтобы избежать "мигания".
|
|
16
|
+
*/
|
|
17
|
+
export declare function initThemeEarly(options?: UseThemeOptions): void;
|
|
18
|
+
export declare function useTheme(options?: UseThemeOptions): {
|
|
19
|
+
theme: import("vue").Ref<ThemeName, ThemeName>;
|
|
20
|
+
isDark: import("vue").ComputedRef<boolean>;
|
|
21
|
+
setTheme: (next: ThemeName) => void;
|
|
22
|
+
toggleTheme: () => void;
|
|
23
|
+
initTheme: () => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ToastVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
2
|
+
export type ToastInput = {
|
|
3
|
+
title: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
variant?: ToastVariant;
|
|
6
|
+
timeoutMs?: number;
|
|
7
|
+
};
|
|
8
|
+
export type Toast = {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
variant: ToastVariant;
|
|
13
|
+
};
|
|
14
|
+
export declare function useToast(): {
|
|
15
|
+
list: import("vue").ComputedRef<import("vue").Reactive<Toast[]>>;
|
|
16
|
+
push: (input: ToastInput) => string;
|
|
17
|
+
dismiss: (id: string) => void;
|
|
18
|
+
clear: () => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
export type AutofocusBindingValue = boolean | string | {
|
|
3
|
+
selector?: string;
|
|
4
|
+
preventScroll?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* `v-autofocus` — универсальный автофокус.
|
|
9
|
+
* Работает как на нативных элементах, так и на компонентах-обёртках (фокусирует вложенный `input/textarea/...`).
|
|
10
|
+
*/
|
|
11
|
+
export declare const vAutofocus: Directive<HTMLElement, AutofocusBindingValue>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
export type AutosizeBindingValue = boolean | {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* `v-autosize` — автоподстройка высоты `textarea`.
|
|
7
|
+
*
|
|
8
|
+
* Пример:
|
|
9
|
+
* ```vue
|
|
10
|
+
* <textarea v-autosize />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const vAutosize: Directive<HTMLElement, AutosizeBindingValue>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
export type ClickOutsideHandler = (event: MouseEvent | TouchEvent | PointerEvent) => void;
|
|
3
|
+
export type ClickOutsideExclude = HTMLElement | string | (() => HTMLElement | null | undefined);
|
|
4
|
+
export type ClickOutsideBindingValue = ClickOutsideHandler | {
|
|
5
|
+
handler: ClickOutsideHandler;
|
|
6
|
+
/** По умолчанию `true`. */
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
/** По умолчанию `true` (слушаем в capture, чтобы stopPropagation внутри не ломал закрытие). */
|
|
9
|
+
capture?: boolean;
|
|
10
|
+
/** Список событий. По умолчанию `['click']`. */
|
|
11
|
+
events?: Array<'click' | 'mousedown' | 'touchstart' | 'pointerdown'>;
|
|
12
|
+
/** Элементы/селекторы, клики по которым считаются "внутри". */
|
|
13
|
+
exclude?: ClickOutsideExclude[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* `v-click-outside` — обработчик клика вне элемента (например, закрытие дропдауна/модалки).
|
|
17
|
+
*/
|
|
18
|
+
export declare const vClickOutside: Directive<HTMLElement, ClickOutsideBindingValue>;
|