@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,1617 @@
|
|
|
1
|
+
import * as e from "vue";
|
|
2
|
+
import { Fragment as t, Teleport as n, cloneVNode as r, computed as i, defineComponent as a, getCurrentInstance as o, h as s, inject as c, nextTick as l, normalizeClass as u, onMounted as d, onUnmounted as f, provide as p, reactive as m, ref as h, shallowRef as g, unref as _, watch as v, watchEffect as y } from "vue";
|
|
3
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/micro-task.js
|
|
4
|
+
function b(e) {
|
|
5
|
+
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((e) => setTimeout(() => {
|
|
6
|
+
throw e;
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/disposables.js
|
|
11
|
+
function x() {
|
|
12
|
+
let e = [], t = {
|
|
13
|
+
addEventListener(e, n, r, i) {
|
|
14
|
+
return e.addEventListener(n, r, i), t.add(() => e.removeEventListener(n, r, i));
|
|
15
|
+
},
|
|
16
|
+
requestAnimationFrame(...e) {
|
|
17
|
+
let n = requestAnimationFrame(...e);
|
|
18
|
+
t.add(() => cancelAnimationFrame(n));
|
|
19
|
+
},
|
|
20
|
+
nextFrame(...e) {
|
|
21
|
+
t.requestAnimationFrame(() => {
|
|
22
|
+
t.requestAnimationFrame(...e);
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
setTimeout(...e) {
|
|
26
|
+
let n = setTimeout(...e);
|
|
27
|
+
t.add(() => clearTimeout(n));
|
|
28
|
+
},
|
|
29
|
+
microTask(...e) {
|
|
30
|
+
let n = { current: !0 };
|
|
31
|
+
return b(() => {
|
|
32
|
+
n.current && e[0]();
|
|
33
|
+
}), t.add(() => {
|
|
34
|
+
n.current = !1;
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
style(e, t, n) {
|
|
38
|
+
let r = e.style.getPropertyValue(t);
|
|
39
|
+
return Object.assign(e.style, { [t]: n }), this.add(() => {
|
|
40
|
+
Object.assign(e.style, { [t]: r });
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
group(e) {
|
|
44
|
+
let t = x();
|
|
45
|
+
return e(t), this.add(() => t.dispose());
|
|
46
|
+
},
|
|
47
|
+
add(t) {
|
|
48
|
+
return e.push(t), () => {
|
|
49
|
+
let n = e.indexOf(t);
|
|
50
|
+
if (n >= 0) for (let t of e.splice(n, 1)) t();
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
dispose() {
|
|
54
|
+
for (let t of e.splice(0)) t();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-id.js
|
|
61
|
+
var S = Symbol("headlessui.useid"), C = 0, w = e.useId ?? function() {
|
|
62
|
+
return e.inject(S, () => `${++C}`)();
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/dom.js
|
|
66
|
+
function T(e) {
|
|
67
|
+
if (e == null || e.value == null) return null;
|
|
68
|
+
let t = e.value.$el ?? e.value;
|
|
69
|
+
return t instanceof Node ? t : null;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/match.js
|
|
73
|
+
function E(e, t, ...n) {
|
|
74
|
+
if (e in t) {
|
|
75
|
+
let r = t[e];
|
|
76
|
+
return typeof r == "function" ? r(...n) : r;
|
|
77
|
+
}
|
|
78
|
+
let r = /* @__PURE__ */ Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e) => `"${e}"`).join(", ")}.`);
|
|
79
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, E), r;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/env.js
|
|
83
|
+
var D = Object.defineProperty, O = (e, t, n) => t in e ? D(e, t, {
|
|
84
|
+
enumerable: !0,
|
|
85
|
+
configurable: !0,
|
|
86
|
+
writable: !0,
|
|
87
|
+
value: n
|
|
88
|
+
}) : e[t] = n, k = (e, t, n) => (O(e, typeof t == "symbol" ? t : t + "", n), n), A = new class {
|
|
89
|
+
constructor() {
|
|
90
|
+
k(this, "current", this.detect()), k(this, "currentId", 0);
|
|
91
|
+
}
|
|
92
|
+
set(e) {
|
|
93
|
+
this.current !== e && (this.currentId = 0, this.current = e);
|
|
94
|
+
}
|
|
95
|
+
reset() {
|
|
96
|
+
this.set(this.detect());
|
|
97
|
+
}
|
|
98
|
+
nextId() {
|
|
99
|
+
return ++this.currentId;
|
|
100
|
+
}
|
|
101
|
+
get isServer() {
|
|
102
|
+
return this.current === "server";
|
|
103
|
+
}
|
|
104
|
+
get isClient() {
|
|
105
|
+
return this.current === "client";
|
|
106
|
+
}
|
|
107
|
+
detect() {
|
|
108
|
+
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
109
|
+
}
|
|
110
|
+
}();
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/owner.js
|
|
113
|
+
function j(e) {
|
|
114
|
+
if (A.isServer) return null;
|
|
115
|
+
if (e instanceof Node) return e.ownerDocument;
|
|
116
|
+
if (e != null && e.hasOwnProperty("value")) {
|
|
117
|
+
let t = T(e);
|
|
118
|
+
if (t) return t.ownerDocument;
|
|
119
|
+
}
|
|
120
|
+
return document;
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/focus-management.js
|
|
124
|
+
var M = [
|
|
125
|
+
"[contentEditable=true]",
|
|
126
|
+
"[tabindex]",
|
|
127
|
+
"a[href]",
|
|
128
|
+
"area[href]",
|
|
129
|
+
"button:not([disabled])",
|
|
130
|
+
"iframe",
|
|
131
|
+
"input:not([disabled])",
|
|
132
|
+
"select:not([disabled])",
|
|
133
|
+
"textarea:not([disabled])"
|
|
134
|
+
].map((e) => `${e}:not([tabindex='-1'])`).join(","), N = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(N || {}), P = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(P || {}), ee = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ee || {});
|
|
135
|
+
function F(e = document.body) {
|
|
136
|
+
return e == null ? [] : Array.from(e.querySelectorAll(M)).sort((e, t) => Math.sign((e.tabIndex || 2 ** 53 - 1) - (t.tabIndex || 2 ** 53 - 1)));
|
|
137
|
+
}
|
|
138
|
+
var I = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(I || {});
|
|
139
|
+
function te(e, t = 0) {
|
|
140
|
+
return e === j(e)?.body ? !1 : E(t, {
|
|
141
|
+
0() {
|
|
142
|
+
return e.matches(M);
|
|
143
|
+
},
|
|
144
|
+
1() {
|
|
145
|
+
let t = e;
|
|
146
|
+
for (; t !== null;) {
|
|
147
|
+
if (t.matches(M)) return !0;
|
|
148
|
+
t = t.parentElement;
|
|
149
|
+
}
|
|
150
|
+
return !1;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
var ne = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(ne || {});
|
|
155
|
+
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
156
|
+
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
157
|
+
}, !0), document.addEventListener("click", (e) => {
|
|
158
|
+
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
159
|
+
}, !0));
|
|
160
|
+
function L(e) {
|
|
161
|
+
e?.focus({ preventScroll: !0 });
|
|
162
|
+
}
|
|
163
|
+
var R = ["textarea", "input"].join(",");
|
|
164
|
+
function re(e) {
|
|
165
|
+
return (e?.matches)?.call(e, R) ?? !1;
|
|
166
|
+
}
|
|
167
|
+
function ie(e, t = (e) => e) {
|
|
168
|
+
return e.slice().sort((e, n) => {
|
|
169
|
+
let r = t(e), i = t(n);
|
|
170
|
+
if (r === null || i === null) return 0;
|
|
171
|
+
let a = r.compareDocumentPosition(i);
|
|
172
|
+
return a & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : a & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function ae(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: i = [] } = {}) {
|
|
176
|
+
let a = (Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e?.ownerDocument) ?? document, o = Array.isArray(e) ? n ? ie(e) : e : F(e);
|
|
177
|
+
i.length > 0 && o.length > 1 && (o = o.filter((e) => !i.includes(e))), r ??= a.activeElement;
|
|
178
|
+
let s = (() => {
|
|
179
|
+
if (t & 5) return 1;
|
|
180
|
+
if (t & 10) return -1;
|
|
181
|
+
throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
182
|
+
})(), c = (() => {
|
|
183
|
+
if (t & 1) return 0;
|
|
184
|
+
if (t & 2) return Math.max(0, o.indexOf(r)) - 1;
|
|
185
|
+
if (t & 4) return Math.max(0, o.indexOf(r)) + 1;
|
|
186
|
+
if (t & 8) return o.length - 1;
|
|
187
|
+
throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
188
|
+
})(), l = t & 32 ? { preventScroll: !0 } : {}, u = 0, d = o.length, f;
|
|
189
|
+
do {
|
|
190
|
+
if (u >= d || u + d <= 0) return 0;
|
|
191
|
+
let e = c + u;
|
|
192
|
+
if (t & 16) e = (e + d) % d;
|
|
193
|
+
else {
|
|
194
|
+
if (e < 0) return 3;
|
|
195
|
+
if (e >= d) return 1;
|
|
196
|
+
}
|
|
197
|
+
f = o[e], f?.focus(l), u += s;
|
|
198
|
+
} while (f !== a.activeElement);
|
|
199
|
+
return t & 6 && re(f) && f.select(), 2;
|
|
200
|
+
}
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/platform.js
|
|
203
|
+
function oe() {
|
|
204
|
+
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
205
|
+
}
|
|
206
|
+
function se() {
|
|
207
|
+
return /Android/gi.test(window.navigator.userAgent);
|
|
208
|
+
}
|
|
209
|
+
function ce() {
|
|
210
|
+
return oe() || se();
|
|
211
|
+
}
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-document-event.js
|
|
214
|
+
function z(e, t, n) {
|
|
215
|
+
A.isServer || y((r) => {
|
|
216
|
+
document.addEventListener(e, t, n), r(() => document.removeEventListener(e, t, n));
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-window-event.js
|
|
221
|
+
function le(e, t, n) {
|
|
222
|
+
A.isServer || y((r) => {
|
|
223
|
+
window.addEventListener(e, t, n), r(() => window.removeEventListener(e, t, n));
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-outside-click.js
|
|
228
|
+
function ue(e, t, n = i(() => !0)) {
|
|
229
|
+
function r(r, i) {
|
|
230
|
+
if (!n.value || r.defaultPrevented) return;
|
|
231
|
+
let a = i(r);
|
|
232
|
+
if (a === null || !a.getRootNode().contains(a)) return;
|
|
233
|
+
let o = function e(t) {
|
|
234
|
+
return typeof t == "function" ? e(t()) : Array.isArray(t) || t instanceof Set ? t : [t];
|
|
235
|
+
}(e);
|
|
236
|
+
for (let e of o) {
|
|
237
|
+
if (e === null) continue;
|
|
238
|
+
let t = e instanceof HTMLElement ? e : T(e);
|
|
239
|
+
if (t != null && t.contains(a) || r.composed && r.composedPath().includes(t)) return;
|
|
240
|
+
}
|
|
241
|
+
return !te(a, I.Loose) && a.tabIndex !== -1 && r.preventDefault(), t(r, a);
|
|
242
|
+
}
|
|
243
|
+
let a = h(null);
|
|
244
|
+
z("pointerdown", (e) => {
|
|
245
|
+
n.value && (a.value = e.composedPath?.call(e)?.[0] || e.target);
|
|
246
|
+
}, !0), z("mousedown", (e) => {
|
|
247
|
+
n.value && (a.value = e.composedPath?.call(e)?.[0] || e.target);
|
|
248
|
+
}, !0), z("click", (e) => {
|
|
249
|
+
ce() || (a.value &&= (r(e, () => a.value), null));
|
|
250
|
+
}, !0), z("touchend", (e) => r(e, () => e.target instanceof HTMLElement ? e.target : null), !0), le("blur", (e) => r(e, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/render.js
|
|
254
|
+
var B = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(B || {}), V = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(V || {});
|
|
255
|
+
function H({ visible: e = !0, features: t = 0, ourProps: n, theirProps: r, ...i }) {
|
|
256
|
+
var a;
|
|
257
|
+
let o = pe(r, n), s = Object.assign(i, { props: o });
|
|
258
|
+
return e || t & 2 && o.static ? de(s) : t & 1 ? E((a = o.unmount) == null || a ? 0 : 1, {
|
|
259
|
+
0() {
|
|
260
|
+
return null;
|
|
261
|
+
},
|
|
262
|
+
1() {
|
|
263
|
+
return de({
|
|
264
|
+
...i,
|
|
265
|
+
props: {
|
|
266
|
+
...o,
|
|
267
|
+
hidden: !0,
|
|
268
|
+
style: { display: "none" }
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
}) : de(s);
|
|
273
|
+
}
|
|
274
|
+
function de({ props: e, attrs: t, slots: n, slot: i, name: a }) {
|
|
275
|
+
let { as: o, ...c } = me(e, ["unmount", "static"]), l = n.default?.call(n, i), u = {};
|
|
276
|
+
if (i) {
|
|
277
|
+
let e = !1, t = [];
|
|
278
|
+
for (let [n, r] of Object.entries(i)) typeof r == "boolean" && (e = !0), r === !0 && t.push(n);
|
|
279
|
+
e && (u["data-headlessui-state"] = t.join(" "));
|
|
280
|
+
}
|
|
281
|
+
if (o === "template") {
|
|
282
|
+
if (l = fe(l ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
|
|
283
|
+
let [e, ...n] = l ?? [];
|
|
284
|
+
if (!he(e) || n.length > 0) throw Error([
|
|
285
|
+
"Passing props on \"template\"!",
|
|
286
|
+
"",
|
|
287
|
+
`The current component <${a} /> is rendering a "template".`,
|
|
288
|
+
"However we need to passthrough the following props:",
|
|
289
|
+
Object.keys(c).concat(Object.keys(t)).map((e) => e.trim()).filter((e, t, n) => n.indexOf(e) === t).sort((e, t) => e.localeCompare(t)).map((e) => ` - ${e}`).join("\n"),
|
|
290
|
+
"",
|
|
291
|
+
"You can apply a few solutions:",
|
|
292
|
+
["Add an `as=\"...\"` prop, to ensure that we render an actual element instead of a \"template\".", "Render a single element as the child so that we can forward the props onto that element."].map((e) => ` - ${e}`).join("\n")
|
|
293
|
+
].join("\n"));
|
|
294
|
+
let i = pe(e.props ?? {}, c, u), o = r(e, i, !0);
|
|
295
|
+
for (let e in i) e.startsWith("on") && (o.props ||= {}, o.props[e] = i[e]);
|
|
296
|
+
return o;
|
|
297
|
+
}
|
|
298
|
+
return Array.isArray(l) && l.length === 1 ? l[0] : l;
|
|
299
|
+
}
|
|
300
|
+
return s(o, Object.assign({}, c, u), { default: () => l });
|
|
301
|
+
}
|
|
302
|
+
function fe(e) {
|
|
303
|
+
return e.flatMap((e) => e.type === t ? fe(e.children) : [e]);
|
|
304
|
+
}
|
|
305
|
+
function pe(...e) {
|
|
306
|
+
if (e.length === 0) return {};
|
|
307
|
+
if (e.length === 1) return e[0];
|
|
308
|
+
let t = {}, n = {};
|
|
309
|
+
for (let r of e) for (let e in r) e.startsWith("on") && typeof r[e] == "function" ? (n[e] ?? (n[e] = []), n[e].push(r[e])) : t[e] = r[e];
|
|
310
|
+
if (t.disabled || t["aria-disabled"]) return Object.assign(t, Object.fromEntries(Object.keys(n).map((e) => [e, void 0])));
|
|
311
|
+
for (let e in n) Object.assign(t, { [e](t, ...r) {
|
|
312
|
+
let i = n[e];
|
|
313
|
+
for (let e of i) {
|
|
314
|
+
if (t instanceof Event && t.defaultPrevented) return;
|
|
315
|
+
e(t, ...r);
|
|
316
|
+
}
|
|
317
|
+
} });
|
|
318
|
+
return t;
|
|
319
|
+
}
|
|
320
|
+
function me(e, t = []) {
|
|
321
|
+
let n = Object.assign({}, e);
|
|
322
|
+
for (let e of t) e in n && delete n[e];
|
|
323
|
+
return n;
|
|
324
|
+
}
|
|
325
|
+
function he(e) {
|
|
326
|
+
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
327
|
+
}
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region ../../node_modules/@headlessui/vue/dist/internal/hidden.js
|
|
330
|
+
var U = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(U || {}), ge = a({
|
|
331
|
+
name: "Hidden",
|
|
332
|
+
props: {
|
|
333
|
+
as: {
|
|
334
|
+
type: [Object, String],
|
|
335
|
+
default: "div"
|
|
336
|
+
},
|
|
337
|
+
features: {
|
|
338
|
+
type: Number,
|
|
339
|
+
default: 1
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
setup(e, { slots: t, attrs: n }) {
|
|
343
|
+
return () => {
|
|
344
|
+
let { features: r, ...i } = e;
|
|
345
|
+
return H({
|
|
346
|
+
ourProps: {
|
|
347
|
+
"aria-hidden": (r & 2) == 2 ? !0 : i["aria-hidden"] ?? void 0,
|
|
348
|
+
hidden: (r & 4) == 4 ? !0 : void 0,
|
|
349
|
+
style: {
|
|
350
|
+
position: "fixed",
|
|
351
|
+
top: 1,
|
|
352
|
+
left: 1,
|
|
353
|
+
width: 1,
|
|
354
|
+
height: 0,
|
|
355
|
+
padding: 0,
|
|
356
|
+
margin: -1,
|
|
357
|
+
overflow: "hidden",
|
|
358
|
+
clip: "rect(0, 0, 0, 0)",
|
|
359
|
+
whiteSpace: "nowrap",
|
|
360
|
+
borderWidth: "0",
|
|
361
|
+
...(r & 4) == 4 && (r & 2) != 2 && { display: "none" }
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
theirProps: i,
|
|
365
|
+
slot: {},
|
|
366
|
+
attrs: n,
|
|
367
|
+
slots: t,
|
|
368
|
+
name: "Hidden"
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
}), _e = Symbol("Context"), W = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(W || {});
|
|
373
|
+
function ve() {
|
|
374
|
+
return ye() !== null;
|
|
375
|
+
}
|
|
376
|
+
function ye() {
|
|
377
|
+
return c(_e, null);
|
|
378
|
+
}
|
|
379
|
+
function be(e) {
|
|
380
|
+
p(_e, e);
|
|
381
|
+
}
|
|
382
|
+
//#endregion
|
|
383
|
+
//#region ../../node_modules/@headlessui/vue/dist/keyboard.js
|
|
384
|
+
var xe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(xe || {});
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/document-ready.js
|
|
387
|
+
function Se(e) {
|
|
388
|
+
function t() {
|
|
389
|
+
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
390
|
+
}
|
|
391
|
+
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/active-element-history.js
|
|
395
|
+
var G = [];
|
|
396
|
+
Se(() => {
|
|
397
|
+
function e(e) {
|
|
398
|
+
e.target instanceof HTMLElement && e.target !== document.body && G[0] !== e.target && (G.unshift(e.target), G = G.filter((e) => e != null && e.isConnected), G.splice(10));
|
|
399
|
+
}
|
|
400
|
+
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
401
|
+
});
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-event-listener.js
|
|
404
|
+
function Ce(e, t, n, r) {
|
|
405
|
+
A.isServer || y((i) => {
|
|
406
|
+
e ??= window, e.addEventListener(t, n, r), i(() => e.removeEventListener(t, n, r));
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-tab-direction.js
|
|
411
|
+
var K = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(K || {});
|
|
412
|
+
function we() {
|
|
413
|
+
let e = h(0);
|
|
414
|
+
return le("keydown", (t) => {
|
|
415
|
+
t.key === "Tab" && (e.value = +!!t.shiftKey);
|
|
416
|
+
}), e;
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region ../../node_modules/@headlessui/vue/dist/components/focus-trap/focus-trap.js
|
|
420
|
+
function Te(e) {
|
|
421
|
+
if (!e) return /* @__PURE__ */ new Set();
|
|
422
|
+
if (typeof e == "function") return new Set(e());
|
|
423
|
+
let t = /* @__PURE__ */ new Set();
|
|
424
|
+
for (let n of e.value) {
|
|
425
|
+
let e = T(n);
|
|
426
|
+
e instanceof HTMLElement && t.add(e);
|
|
427
|
+
}
|
|
428
|
+
return t;
|
|
429
|
+
}
|
|
430
|
+
var Ee = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(Ee || {}), q = Object.assign(a({
|
|
431
|
+
name: "FocusTrap",
|
|
432
|
+
props: {
|
|
433
|
+
as: {
|
|
434
|
+
type: [Object, String],
|
|
435
|
+
default: "div"
|
|
436
|
+
},
|
|
437
|
+
initialFocus: {
|
|
438
|
+
type: Object,
|
|
439
|
+
default: null
|
|
440
|
+
},
|
|
441
|
+
features: {
|
|
442
|
+
type: Number,
|
|
443
|
+
default: 30
|
|
444
|
+
},
|
|
445
|
+
containers: {
|
|
446
|
+
type: [Object, Function],
|
|
447
|
+
default: h(/* @__PURE__ */ new Set())
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
inheritAttrs: !1,
|
|
451
|
+
setup(e, { attrs: n, slots: r, expose: a }) {
|
|
452
|
+
let o = h(null);
|
|
453
|
+
a({
|
|
454
|
+
el: o,
|
|
455
|
+
$el: o
|
|
456
|
+
});
|
|
457
|
+
let c = i(() => j(o)), l = h(!1);
|
|
458
|
+
d(() => l.value = !0), f(() => l.value = !1), Oe({ ownerDocument: c }, i(() => l.value && !!(e.features & 16)));
|
|
459
|
+
let u = ke({
|
|
460
|
+
ownerDocument: c,
|
|
461
|
+
container: o,
|
|
462
|
+
initialFocus: i(() => e.initialFocus)
|
|
463
|
+
}, i(() => l.value && !!(e.features & 2)));
|
|
464
|
+
Ae({
|
|
465
|
+
ownerDocument: c,
|
|
466
|
+
container: o,
|
|
467
|
+
containers: e.containers,
|
|
468
|
+
previousActiveElement: u
|
|
469
|
+
}, i(() => l.value && !!(e.features & 8)));
|
|
470
|
+
let p = we();
|
|
471
|
+
function m(e) {
|
|
472
|
+
let t = T(o);
|
|
473
|
+
t && ((e) => e())(() => {
|
|
474
|
+
E(p.value, {
|
|
475
|
+
[K.Forwards]: () => {
|
|
476
|
+
ae(t, N.First, { skipElements: [e.relatedTarget] });
|
|
477
|
+
},
|
|
478
|
+
[K.Backwards]: () => {
|
|
479
|
+
ae(t, N.Last, { skipElements: [e.relatedTarget] });
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
let g = h(!1);
|
|
485
|
+
function _(e) {
|
|
486
|
+
e.key === "Tab" && (g.value = !0, requestAnimationFrame(() => {
|
|
487
|
+
g.value = !1;
|
|
488
|
+
}));
|
|
489
|
+
}
|
|
490
|
+
function v(t) {
|
|
491
|
+
if (!l.value) return;
|
|
492
|
+
let n = Te(e.containers);
|
|
493
|
+
T(o) instanceof HTMLElement && n.add(T(o));
|
|
494
|
+
let r = t.relatedTarget;
|
|
495
|
+
r instanceof HTMLElement && r.dataset.headlessuiFocusGuard !== "true" && (je(n, r) || (g.value ? ae(T(o), E(p.value, {
|
|
496
|
+
[K.Forwards]: () => N.Next,
|
|
497
|
+
[K.Backwards]: () => N.Previous
|
|
498
|
+
}) | N.WrapAround, { relativeTo: t.target }) : t.target instanceof HTMLElement && L(t.target)));
|
|
499
|
+
}
|
|
500
|
+
return () => {
|
|
501
|
+
let i = {}, a = {
|
|
502
|
+
ref: o,
|
|
503
|
+
onKeydown: _,
|
|
504
|
+
onFocusout: v
|
|
505
|
+
}, { features: c, initialFocus: l, containers: u, ...d } = e;
|
|
506
|
+
return s(t, [
|
|
507
|
+
!!(c & 4) && s(ge, {
|
|
508
|
+
as: "button",
|
|
509
|
+
type: "button",
|
|
510
|
+
"data-headlessui-focus-guard": !0,
|
|
511
|
+
onFocus: m,
|
|
512
|
+
features: U.Focusable
|
|
513
|
+
}),
|
|
514
|
+
H({
|
|
515
|
+
ourProps: a,
|
|
516
|
+
theirProps: {
|
|
517
|
+
...n,
|
|
518
|
+
...d
|
|
519
|
+
},
|
|
520
|
+
slot: i,
|
|
521
|
+
attrs: n,
|
|
522
|
+
slots: r,
|
|
523
|
+
name: "FocusTrap"
|
|
524
|
+
}),
|
|
525
|
+
!!(c & 4) && s(ge, {
|
|
526
|
+
as: "button",
|
|
527
|
+
type: "button",
|
|
528
|
+
"data-headlessui-focus-guard": !0,
|
|
529
|
+
onFocus: m,
|
|
530
|
+
features: U.Focusable
|
|
531
|
+
})
|
|
532
|
+
]);
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
}), { features: Ee });
|
|
536
|
+
function De(e) {
|
|
537
|
+
let t = h(G.slice());
|
|
538
|
+
return v([e], ([e], [n]) => {
|
|
539
|
+
n === !0 && e === !1 ? b(() => {
|
|
540
|
+
t.value.splice(0);
|
|
541
|
+
}) : n === !1 && e === !0 && (t.value = G.slice());
|
|
542
|
+
}, { flush: "post" }), () => t.value.find((e) => e != null && e.isConnected) ?? null;
|
|
543
|
+
}
|
|
544
|
+
function Oe({ ownerDocument: e }, t) {
|
|
545
|
+
let n = De(t);
|
|
546
|
+
d(() => {
|
|
547
|
+
y(() => {
|
|
548
|
+
t.value || e.value?.activeElement === e.value?.body && L(n());
|
|
549
|
+
}, { flush: "post" });
|
|
550
|
+
}), f(() => {
|
|
551
|
+
t.value && L(n());
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
function ke({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
555
|
+
let i = h(null), a = h(!1);
|
|
556
|
+
return d(() => a.value = !0), f(() => a.value = !1), d(() => {
|
|
557
|
+
v([
|
|
558
|
+
t,
|
|
559
|
+
n,
|
|
560
|
+
r
|
|
561
|
+
], (o, s) => {
|
|
562
|
+
if (o.every((e, t) => s?.[t] === e) || !r.value) return;
|
|
563
|
+
let c = T(t);
|
|
564
|
+
c && b(() => {
|
|
565
|
+
if (!a.value) return;
|
|
566
|
+
let t = T(n), r = e.value?.activeElement;
|
|
567
|
+
if (t) {
|
|
568
|
+
if (t === r) {
|
|
569
|
+
i.value = r;
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
} else if (c.contains(r)) {
|
|
573
|
+
i.value = r;
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
t ? L(t) : ae(c, N.First | N.NoScroll) === P.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), i.value = e.value?.activeElement;
|
|
577
|
+
});
|
|
578
|
+
}, {
|
|
579
|
+
immediate: !0,
|
|
580
|
+
flush: "post"
|
|
581
|
+
});
|
|
582
|
+
}), i;
|
|
583
|
+
}
|
|
584
|
+
function Ae({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, i) {
|
|
585
|
+
Ce(e.value?.defaultView, "focus", (e) => {
|
|
586
|
+
if (!i.value) return;
|
|
587
|
+
let a = Te(n);
|
|
588
|
+
T(t) instanceof HTMLElement && a.add(T(t));
|
|
589
|
+
let o = r.value;
|
|
590
|
+
if (!o) return;
|
|
591
|
+
let s = e.target;
|
|
592
|
+
s && s instanceof HTMLElement ? je(a, s) ? (r.value = s, L(s)) : (e.preventDefault(), e.stopPropagation(), L(o)) : L(r.value);
|
|
593
|
+
}, !0);
|
|
594
|
+
}
|
|
595
|
+
function je(e, t) {
|
|
596
|
+
for (let n of e) if (n.contains(t)) return !0;
|
|
597
|
+
return !1;
|
|
598
|
+
}
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-store.js
|
|
601
|
+
function Me(e) {
|
|
602
|
+
let t = g(e.getSnapshot());
|
|
603
|
+
return f(e.subscribe(() => {
|
|
604
|
+
t.value = e.getSnapshot();
|
|
605
|
+
})), t;
|
|
606
|
+
}
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/store.js
|
|
609
|
+
function Ne(e, t) {
|
|
610
|
+
let n = e(), r = /* @__PURE__ */ new Set();
|
|
611
|
+
return {
|
|
612
|
+
getSnapshot() {
|
|
613
|
+
return n;
|
|
614
|
+
},
|
|
615
|
+
subscribe(e) {
|
|
616
|
+
return r.add(e), () => r.delete(e);
|
|
617
|
+
},
|
|
618
|
+
dispatch(e, ...i) {
|
|
619
|
+
let a = t[e].call(n, ...i);
|
|
620
|
+
a && (n = a, r.forEach((e) => e()));
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/document-overflow/adjust-scrollbar-padding.js
|
|
626
|
+
function Pe() {
|
|
627
|
+
let e;
|
|
628
|
+
return {
|
|
629
|
+
before({ doc: t }) {
|
|
630
|
+
let n = t.documentElement;
|
|
631
|
+
e = (t.defaultView ?? window).innerWidth - n.clientWidth;
|
|
632
|
+
},
|
|
633
|
+
after({ doc: t, d: n }) {
|
|
634
|
+
let r = t.documentElement, i = r.clientWidth - r.offsetWidth, a = e - i;
|
|
635
|
+
n.style(r, "paddingRight", `${a}px`);
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
//#endregion
|
|
640
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/document-overflow/handle-ios-locking.js
|
|
641
|
+
function Fe() {
|
|
642
|
+
return oe() ? { before({ doc: e, d: t, meta: n }) {
|
|
643
|
+
function r(e) {
|
|
644
|
+
return n.containers.flatMap((e) => e()).some((t) => t.contains(e));
|
|
645
|
+
}
|
|
646
|
+
t.microTask(() => {
|
|
647
|
+
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
648
|
+
let n = x();
|
|
649
|
+
n.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => n.dispose()));
|
|
650
|
+
}
|
|
651
|
+
let n = window.scrollY ?? window.pageYOffset, i = null;
|
|
652
|
+
t.addEventListener(e, "click", (t) => {
|
|
653
|
+
if (t.target instanceof HTMLElement) try {
|
|
654
|
+
let n = t.target.closest("a");
|
|
655
|
+
if (!n) return;
|
|
656
|
+
let { hash: a } = new URL(n.href), o = e.querySelector(a);
|
|
657
|
+
o && !r(o) && (i = o);
|
|
658
|
+
} catch {}
|
|
659
|
+
}, !0), t.addEventListener(e, "touchstart", (e) => {
|
|
660
|
+
if (e.target instanceof HTMLElement) if (r(e.target)) {
|
|
661
|
+
let n = e.target;
|
|
662
|
+
for (; n.parentElement && r(n.parentElement);) n = n.parentElement;
|
|
663
|
+
t.style(n, "overscrollBehavior", "contain");
|
|
664
|
+
} else t.style(e.target, "touchAction", "none");
|
|
665
|
+
}), t.addEventListener(e, "touchmove", (e) => {
|
|
666
|
+
if (e.target instanceof HTMLElement) {
|
|
667
|
+
if (e.target.tagName === "INPUT") return;
|
|
668
|
+
if (r(e.target)) {
|
|
669
|
+
let t = e.target;
|
|
670
|
+
for (; t.parentElement && t.dataset.headlessuiPortal !== "" && !(t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth);) t = t.parentElement;
|
|
671
|
+
t.dataset.headlessuiPortal === "" && e.preventDefault();
|
|
672
|
+
} else e.preventDefault();
|
|
673
|
+
}
|
|
674
|
+
}, { passive: !1 }), t.add(() => {
|
|
675
|
+
n !== (window.scrollY ?? window.pageYOffset) && window.scrollTo(0, n), i && i.isConnected && (i.scrollIntoView({ block: "nearest" }), i = null);
|
|
676
|
+
});
|
|
677
|
+
});
|
|
678
|
+
} } : {};
|
|
679
|
+
}
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/document-overflow/prevent-scroll.js
|
|
682
|
+
function Ie() {
|
|
683
|
+
return { before({ doc: e, d: t }) {
|
|
684
|
+
t.style(e.documentElement, "overflow", "hidden");
|
|
685
|
+
} };
|
|
686
|
+
}
|
|
687
|
+
//#endregion
|
|
688
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/document-overflow/overflow-store.js
|
|
689
|
+
function Le(e) {
|
|
690
|
+
let t = {};
|
|
691
|
+
for (let n of e) Object.assign(t, n(t));
|
|
692
|
+
return t;
|
|
693
|
+
}
|
|
694
|
+
var J = Ne(() => /* @__PURE__ */ new Map(), {
|
|
695
|
+
PUSH(e, t) {
|
|
696
|
+
let n = this.get(e) ?? {
|
|
697
|
+
doc: e,
|
|
698
|
+
count: 0,
|
|
699
|
+
d: x(),
|
|
700
|
+
meta: /* @__PURE__ */ new Set()
|
|
701
|
+
};
|
|
702
|
+
return n.count++, n.meta.add(t), this.set(e, n), this;
|
|
703
|
+
},
|
|
704
|
+
POP(e, t) {
|
|
705
|
+
let n = this.get(e);
|
|
706
|
+
return n && (n.count--, n.meta.delete(t)), this;
|
|
707
|
+
},
|
|
708
|
+
SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
709
|
+
let r = {
|
|
710
|
+
doc: e,
|
|
711
|
+
d: t,
|
|
712
|
+
meta: Le(n)
|
|
713
|
+
}, i = [
|
|
714
|
+
Fe(),
|
|
715
|
+
Pe(),
|
|
716
|
+
Ie()
|
|
717
|
+
];
|
|
718
|
+
i.forEach(({ before: e }) => e?.(r)), i.forEach(({ after: e }) => e?.(r));
|
|
719
|
+
},
|
|
720
|
+
SCROLL_ALLOW({ d: e }) {
|
|
721
|
+
e.dispose();
|
|
722
|
+
},
|
|
723
|
+
TEARDOWN({ doc: e }) {
|
|
724
|
+
this.delete(e);
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
J.subscribe(() => {
|
|
728
|
+
let e = J.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
729
|
+
for (let [n] of e) t.set(n, n.documentElement.style.overflow);
|
|
730
|
+
for (let n of e.values()) {
|
|
731
|
+
let e = t.get(n.doc) === "hidden", r = n.count !== 0;
|
|
732
|
+
(r && !e || !r && e) && J.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && J.dispatch("TEARDOWN", n);
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/document-overflow/use-document-overflow.js
|
|
737
|
+
function Re(e, t, n) {
|
|
738
|
+
let r = Me(J), a = i(() => {
|
|
739
|
+
let t = e.value ? r.value.get(e.value) : void 0;
|
|
740
|
+
return t ? t.count > 0 : !1;
|
|
741
|
+
});
|
|
742
|
+
return v([e, t], ([e, t], [r], i) => {
|
|
743
|
+
if (!e || !t) return;
|
|
744
|
+
J.dispatch("PUSH", e, n);
|
|
745
|
+
let a = !1;
|
|
746
|
+
i(() => {
|
|
747
|
+
a ||= (J.dispatch("POP", r ?? e, n), !0);
|
|
748
|
+
});
|
|
749
|
+
}, { immediate: !0 }), a;
|
|
750
|
+
}
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-inert.js
|
|
753
|
+
var ze = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
754
|
+
function Be(e, t = h(!0)) {
|
|
755
|
+
y((n) => {
|
|
756
|
+
if (!t.value) return;
|
|
757
|
+
let r = T(e);
|
|
758
|
+
if (!r) return;
|
|
759
|
+
n(function() {
|
|
760
|
+
if (!r) return;
|
|
761
|
+
let e = Y.get(r) ?? 1;
|
|
762
|
+
if (e === 1 ? Y.delete(r) : Y.set(r, e - 1), e !== 1) return;
|
|
763
|
+
let t = ze.get(r);
|
|
764
|
+
t && (t["aria-hidden"] === null ? r.removeAttribute("aria-hidden") : r.setAttribute("aria-hidden", t["aria-hidden"]), r.inert = t.inert, ze.delete(r));
|
|
765
|
+
});
|
|
766
|
+
let i = Y.get(r) ?? 0;
|
|
767
|
+
Y.set(r, i + 1), i === 0 && (ze.set(r, {
|
|
768
|
+
"aria-hidden": r.getAttribute("aria-hidden"),
|
|
769
|
+
inert: r.inert
|
|
770
|
+
}), r.setAttribute("aria-hidden", "true"), r.inert = !0);
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region ../../node_modules/@headlessui/vue/dist/hooks/use-root-containers.js
|
|
775
|
+
function Ve({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
776
|
+
let r = h(null), i = j(r);
|
|
777
|
+
function a() {
|
|
778
|
+
let n = [];
|
|
779
|
+
for (let t of e) t !== null && (t instanceof HTMLElement ? n.push(t) : "value" in t && t.value instanceof HTMLElement && n.push(t.value));
|
|
780
|
+
if (t != null && t.value) for (let e of t.value) n.push(e);
|
|
781
|
+
for (let e of i?.querySelectorAll("html > *, body > *") ?? []) e !== document.body && e !== document.head && e instanceof HTMLElement && e.id !== "headlessui-portal-root" && (e.contains(T(r)) || e.contains(T(r)?.getRootNode()?.host) || n.some((t) => e.contains(t)) || n.push(e));
|
|
782
|
+
return n;
|
|
783
|
+
}
|
|
784
|
+
return {
|
|
785
|
+
resolveContainers: a,
|
|
786
|
+
contains(e) {
|
|
787
|
+
return a().some((t) => t.contains(e));
|
|
788
|
+
},
|
|
789
|
+
mainTreeNodeRef: r,
|
|
790
|
+
MainTreeNode() {
|
|
791
|
+
return n == null ? s(ge, {
|
|
792
|
+
features: U.Hidden,
|
|
793
|
+
ref: r
|
|
794
|
+
}) : null;
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
//#endregion
|
|
799
|
+
//#region ../../node_modules/@headlessui/vue/dist/internal/portal-force-root.js
|
|
800
|
+
var He = Symbol("ForcePortalRootContext");
|
|
801
|
+
function Ue() {
|
|
802
|
+
return c(He, !1);
|
|
803
|
+
}
|
|
804
|
+
var We = a({
|
|
805
|
+
name: "ForcePortalRoot",
|
|
806
|
+
props: {
|
|
807
|
+
as: {
|
|
808
|
+
type: [Object, String],
|
|
809
|
+
default: "template"
|
|
810
|
+
},
|
|
811
|
+
force: {
|
|
812
|
+
type: Boolean,
|
|
813
|
+
default: !1
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
setup(e, { slots: t, attrs: n }) {
|
|
817
|
+
return p(He, e.force), () => {
|
|
818
|
+
let { force: r, ...i } = e;
|
|
819
|
+
return H({
|
|
820
|
+
theirProps: i,
|
|
821
|
+
ourProps: {},
|
|
822
|
+
slot: {},
|
|
823
|
+
slots: t,
|
|
824
|
+
attrs: n,
|
|
825
|
+
name: "ForcePortalRoot"
|
|
826
|
+
});
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
}), Ge = Symbol("StackContext"), Ke = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Ke || {});
|
|
830
|
+
function qe() {
|
|
831
|
+
return c(Ge, () => {});
|
|
832
|
+
}
|
|
833
|
+
function Je({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
834
|
+
let i = qe();
|
|
835
|
+
function a(...e) {
|
|
836
|
+
r?.(...e), i(...e);
|
|
837
|
+
}
|
|
838
|
+
d(() => {
|
|
839
|
+
v(t, (t, r) => {
|
|
840
|
+
t ? a(0, e, n) : r === !0 && a(1, e, n);
|
|
841
|
+
}, {
|
|
842
|
+
immediate: !0,
|
|
843
|
+
flush: "sync"
|
|
844
|
+
});
|
|
845
|
+
}), f(() => {
|
|
846
|
+
t.value && a(1, e, n);
|
|
847
|
+
}), p(Ge, a);
|
|
848
|
+
}
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region ../../node_modules/@headlessui/vue/dist/components/description/description.js
|
|
851
|
+
var Ye = Symbol("DescriptionContext");
|
|
852
|
+
function Xe() {
|
|
853
|
+
let e = c(Ye, null);
|
|
854
|
+
if (e === null) throw Error("Missing parent");
|
|
855
|
+
return e;
|
|
856
|
+
}
|
|
857
|
+
function Ze({ slot: e = h({}), name: t = "Description", props: n = {} } = {}) {
|
|
858
|
+
let r = h([]);
|
|
859
|
+
function a(e) {
|
|
860
|
+
return r.value.push(e), () => {
|
|
861
|
+
let t = r.value.indexOf(e);
|
|
862
|
+
t !== -1 && r.value.splice(t, 1);
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
return p(Ye, {
|
|
866
|
+
register: a,
|
|
867
|
+
slot: e,
|
|
868
|
+
name: t,
|
|
869
|
+
props: n
|
|
870
|
+
}), i(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
871
|
+
}
|
|
872
|
+
a({
|
|
873
|
+
name: "Description",
|
|
874
|
+
props: {
|
|
875
|
+
as: {
|
|
876
|
+
type: [Object, String],
|
|
877
|
+
default: "p"
|
|
878
|
+
},
|
|
879
|
+
id: {
|
|
880
|
+
type: String,
|
|
881
|
+
default: null
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
setup(e, { attrs: t, slots: n }) {
|
|
885
|
+
let r = e.id ?? `headlessui-description-${w()}`, i = Xe();
|
|
886
|
+
return d(() => f(i.register(r))), () => {
|
|
887
|
+
let { name: a = "Description", slot: o = h({}), props: s = {} } = i, { ...c } = e;
|
|
888
|
+
return H({
|
|
889
|
+
ourProps: {
|
|
890
|
+
...Object.entries(s).reduce((e, [t, n]) => Object.assign(e, { [t]: _(n) }), {}),
|
|
891
|
+
id: r
|
|
892
|
+
},
|
|
893
|
+
theirProps: c,
|
|
894
|
+
slot: o.value,
|
|
895
|
+
attrs: t,
|
|
896
|
+
slots: n,
|
|
897
|
+
name: a
|
|
898
|
+
});
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region ../../node_modules/@headlessui/vue/dist/components/portal/portal.js
|
|
904
|
+
function Qe(e) {
|
|
905
|
+
let t = j(e);
|
|
906
|
+
if (!t) {
|
|
907
|
+
if (e === null) return null;
|
|
908
|
+
throw Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
909
|
+
}
|
|
910
|
+
let n = t.getElementById("headlessui-portal-root");
|
|
911
|
+
if (n) return n;
|
|
912
|
+
let r = t.createElement("div");
|
|
913
|
+
return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
|
|
914
|
+
}
|
|
915
|
+
var $e = /* @__PURE__ */ new WeakMap();
|
|
916
|
+
function et(e) {
|
|
917
|
+
return $e.get(e) ?? 0;
|
|
918
|
+
}
|
|
919
|
+
function tt(e, t) {
|
|
920
|
+
let n = t(et(e));
|
|
921
|
+
return n <= 0 ? $e.delete(e) : $e.set(e, n), n;
|
|
922
|
+
}
|
|
923
|
+
var nt = a({
|
|
924
|
+
name: "Portal",
|
|
925
|
+
props: { as: {
|
|
926
|
+
type: [Object, String],
|
|
927
|
+
default: "div"
|
|
928
|
+
} },
|
|
929
|
+
setup(e, { slots: t, attrs: r }) {
|
|
930
|
+
let a = h(null), l = i(() => j(a)), u = Ue(), p = c(at, null), m = h(u === !0 || p == null ? Qe(a.value) : p.resolveTarget());
|
|
931
|
+
m.value && tt(m.value, (e) => e + 1);
|
|
932
|
+
let g = h(!1);
|
|
933
|
+
d(() => {
|
|
934
|
+
g.value = !0;
|
|
935
|
+
}), y(() => {
|
|
936
|
+
u || p != null && (m.value = p.resolveTarget());
|
|
937
|
+
});
|
|
938
|
+
let _ = c(rt, null), b = !1, x = o();
|
|
939
|
+
return v(a, () => {
|
|
940
|
+
if (b || !_) return;
|
|
941
|
+
let e = T(a);
|
|
942
|
+
e && (f(_.register(e), x), b = !0);
|
|
943
|
+
}), f(() => {
|
|
944
|
+
var e;
|
|
945
|
+
let t = l.value?.getElementById("headlessui-portal-root");
|
|
946
|
+
!t || m.value !== t || tt(m.value, (e) => e - 1) || m.value.children.length > 0 || (e = m.value.parentElement) == null || e.removeChild(m.value);
|
|
947
|
+
}), () => {
|
|
948
|
+
if (!g.value || m.value === null) return null;
|
|
949
|
+
let i = {
|
|
950
|
+
ref: a,
|
|
951
|
+
"data-headlessui-portal": ""
|
|
952
|
+
};
|
|
953
|
+
return s(n, { to: m.value }, H({
|
|
954
|
+
ourProps: i,
|
|
955
|
+
theirProps: e,
|
|
956
|
+
slot: {},
|
|
957
|
+
attrs: r,
|
|
958
|
+
slots: t,
|
|
959
|
+
name: "Portal"
|
|
960
|
+
}));
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
}), rt = Symbol("PortalParentContext");
|
|
964
|
+
function it() {
|
|
965
|
+
let e = c(rt, null), t = h([]);
|
|
966
|
+
function n(n) {
|
|
967
|
+
return t.value.push(n), e && e.register(n), () => r(n);
|
|
968
|
+
}
|
|
969
|
+
function r(n) {
|
|
970
|
+
let r = t.value.indexOf(n);
|
|
971
|
+
r !== -1 && t.value.splice(r, 1), e && e.unregister(n);
|
|
972
|
+
}
|
|
973
|
+
let i = {
|
|
974
|
+
register: n,
|
|
975
|
+
unregister: r,
|
|
976
|
+
portals: t
|
|
977
|
+
};
|
|
978
|
+
return [t, a({
|
|
979
|
+
name: "PortalWrapper",
|
|
980
|
+
setup(e, { slots: t }) {
|
|
981
|
+
return p(rt, i), () => t.default?.call(t);
|
|
982
|
+
}
|
|
983
|
+
})];
|
|
984
|
+
}
|
|
985
|
+
var at = Symbol("PortalGroupContext"), ot = a({
|
|
986
|
+
name: "PortalGroup",
|
|
987
|
+
props: {
|
|
988
|
+
as: {
|
|
989
|
+
type: [Object, String],
|
|
990
|
+
default: "template"
|
|
991
|
+
},
|
|
992
|
+
target: {
|
|
993
|
+
type: Object,
|
|
994
|
+
default: null
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
setup(e, { attrs: t, slots: n }) {
|
|
998
|
+
return p(at, m({ resolveTarget() {
|
|
999
|
+
return e.target;
|
|
1000
|
+
} })), () => {
|
|
1001
|
+
let { target: r, ...i } = e;
|
|
1002
|
+
return H({
|
|
1003
|
+
theirProps: i,
|
|
1004
|
+
ourProps: {},
|
|
1005
|
+
slot: {},
|
|
1006
|
+
attrs: t,
|
|
1007
|
+
slots: n,
|
|
1008
|
+
name: "PortalGroup"
|
|
1009
|
+
});
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
}), st = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(st || {}), ct = Symbol("DialogContext");
|
|
1013
|
+
function X(e) {
|
|
1014
|
+
let t = c(ct, null);
|
|
1015
|
+
if (t === null) {
|
|
1016
|
+
let t = /* @__PURE__ */ Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
1017
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, X), t;
|
|
1018
|
+
}
|
|
1019
|
+
return t;
|
|
1020
|
+
}
|
|
1021
|
+
var Z = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", lt = a({
|
|
1022
|
+
name: "Dialog",
|
|
1023
|
+
inheritAttrs: !1,
|
|
1024
|
+
props: {
|
|
1025
|
+
as: {
|
|
1026
|
+
type: [Object, String],
|
|
1027
|
+
default: "div"
|
|
1028
|
+
},
|
|
1029
|
+
static: {
|
|
1030
|
+
type: Boolean,
|
|
1031
|
+
default: !1
|
|
1032
|
+
},
|
|
1033
|
+
unmount: {
|
|
1034
|
+
type: Boolean,
|
|
1035
|
+
default: !0
|
|
1036
|
+
},
|
|
1037
|
+
open: {
|
|
1038
|
+
type: [Boolean, String],
|
|
1039
|
+
default: Z
|
|
1040
|
+
},
|
|
1041
|
+
initialFocus: {
|
|
1042
|
+
type: Object,
|
|
1043
|
+
default: null
|
|
1044
|
+
},
|
|
1045
|
+
id: {
|
|
1046
|
+
type: String,
|
|
1047
|
+
default: null
|
|
1048
|
+
},
|
|
1049
|
+
role: {
|
|
1050
|
+
type: String,
|
|
1051
|
+
default: "dialog"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
emits: { close: (e) => !0 },
|
|
1055
|
+
setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
|
|
1056
|
+
let o = e.id ?? `headlessui-dialog-${w()}`, u = h(!1);
|
|
1057
|
+
d(() => {
|
|
1058
|
+
u.value = !0;
|
|
1059
|
+
});
|
|
1060
|
+
let f = !1, m = i(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (f || (f = !0, console.warn(`Invalid role [${m}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), g = h(0), _ = ye(), v = i(() => e.open === Z && _ !== null ? (_.value & W.Open) === W.Open : e.open), b = h(null), x = i(() => j(b));
|
|
1061
|
+
if (a({
|
|
1062
|
+
el: b,
|
|
1063
|
+
$el: b
|
|
1064
|
+
}), !(e.open !== Z || _ !== null)) throw Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1065
|
+
if (typeof v.value != "boolean") throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value === Z ? void 0 : e.open}`);
|
|
1066
|
+
let S = i(() => u.value && v.value ? 0 : 1), C = i(() => S.value === 0), D = i(() => g.value > 1), O = c(ct, null) !== null, [k, A] = it(), { resolveContainers: M, mainTreeNodeRef: N, MainTreeNode: P } = Ve({
|
|
1067
|
+
portals: k,
|
|
1068
|
+
defaultContainers: [i(() => R.panelRef.value ?? b.value)]
|
|
1069
|
+
}), ee = i(() => D.value ? "parent" : "leaf"), F = i(() => _ === null ? !1 : (_.value & W.Closing) === W.Closing), I = i(() => O || F.value ? !1 : C.value);
|
|
1070
|
+
Be(i(() => Array.from(x.value?.querySelectorAll("body > *") ?? []).find((e) => e.id === "headlessui-portal-root" ? !1 : e.contains(T(N)) && e instanceof HTMLElement) ?? null), I);
|
|
1071
|
+
let te = i(() => D.value ? !0 : C.value);
|
|
1072
|
+
Be(i(() => Array.from(x.value?.querySelectorAll("[data-headlessui-portal]") ?? []).find((e) => e.contains(T(N)) && e instanceof HTMLElement) ?? null), te), Je({
|
|
1073
|
+
type: "Dialog",
|
|
1074
|
+
enabled: i(() => S.value === 0),
|
|
1075
|
+
element: b,
|
|
1076
|
+
onUpdate: (e, t) => {
|
|
1077
|
+
if (t === "Dialog") return E(e, {
|
|
1078
|
+
[Ke.Add]: () => g.value += 1,
|
|
1079
|
+
[Ke.Remove]: () => --g.value
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
});
|
|
1083
|
+
let ne = Ze({
|
|
1084
|
+
name: "DialogDescription",
|
|
1085
|
+
slot: i(() => ({ open: v.value }))
|
|
1086
|
+
}), L = h(null), R = {
|
|
1087
|
+
titleId: L,
|
|
1088
|
+
panelRef: h(null),
|
|
1089
|
+
dialogState: S,
|
|
1090
|
+
setTitleId(e) {
|
|
1091
|
+
L.value !== e && (L.value = e);
|
|
1092
|
+
},
|
|
1093
|
+
close() {
|
|
1094
|
+
t("close", !1);
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
p(ct, R), ue(M, (e, t) => {
|
|
1098
|
+
e.preventDefault(), R.close(), l(() => t?.focus());
|
|
1099
|
+
}, i(() => !(!C.value || D.value)));
|
|
1100
|
+
let re = i(() => !(D.value || S.value !== 0));
|
|
1101
|
+
return Ce(x.value?.defaultView, "keydown", (e) => {
|
|
1102
|
+
re.value && (e.defaultPrevented || e.key === xe.Escape && (e.preventDefault(), e.stopPropagation(), R.close()));
|
|
1103
|
+
}), Re(x, i(() => !(F.value || S.value !== 0 || O)), (e) => ({ containers: [...e.containers ?? [], M] })), y((e) => {
|
|
1104
|
+
if (S.value !== 0) return;
|
|
1105
|
+
let t = T(b);
|
|
1106
|
+
if (!t) return;
|
|
1107
|
+
let n = new ResizeObserver((e) => {
|
|
1108
|
+
for (let t of e) {
|
|
1109
|
+
let e = t.target.getBoundingClientRect();
|
|
1110
|
+
e.x === 0 && e.y === 0 && e.width === 0 && e.height === 0 && R.close();
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
n.observe(t), e(() => n.disconnect());
|
|
1114
|
+
}), () => {
|
|
1115
|
+
let { open: t, initialFocus: i, ...a } = e, c = {
|
|
1116
|
+
...n,
|
|
1117
|
+
ref: b,
|
|
1118
|
+
id: o,
|
|
1119
|
+
role: m.value,
|
|
1120
|
+
"aria-modal": S.value === 0 ? !0 : void 0,
|
|
1121
|
+
"aria-labelledby": L.value,
|
|
1122
|
+
"aria-describedby": ne.value
|
|
1123
|
+
}, l = { open: S.value === 0 };
|
|
1124
|
+
return s(We, { force: !0 }, () => [s(nt, () => s(ot, { target: b.value }, () => s(We, { force: !1 }, () => s(q, {
|
|
1125
|
+
initialFocus: i,
|
|
1126
|
+
containers: M,
|
|
1127
|
+
features: C.value ? E(ee.value, {
|
|
1128
|
+
parent: q.features.RestoreFocus,
|
|
1129
|
+
leaf: q.features.All & ~q.features.FocusLock
|
|
1130
|
+
}) : q.features.None
|
|
1131
|
+
}, () => s(A, {}, () => H({
|
|
1132
|
+
ourProps: c,
|
|
1133
|
+
theirProps: {
|
|
1134
|
+
...a,
|
|
1135
|
+
...n
|
|
1136
|
+
},
|
|
1137
|
+
slot: l,
|
|
1138
|
+
attrs: n,
|
|
1139
|
+
slots: r,
|
|
1140
|
+
visible: S.value === 0,
|
|
1141
|
+
features: B.RenderStrategy | B.Static,
|
|
1142
|
+
name: "Dialog"
|
|
1143
|
+
})))))), s(P)]);
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
a({
|
|
1148
|
+
name: "DialogOverlay",
|
|
1149
|
+
props: {
|
|
1150
|
+
as: {
|
|
1151
|
+
type: [Object, String],
|
|
1152
|
+
default: "div"
|
|
1153
|
+
},
|
|
1154
|
+
id: {
|
|
1155
|
+
type: String,
|
|
1156
|
+
default: null
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1160
|
+
let r = e.id ?? `headlessui-dialog-overlay-${w()}`, i = X("DialogOverlay");
|
|
1161
|
+
function a(e) {
|
|
1162
|
+
e.target === e.currentTarget && (e.preventDefault(), e.stopPropagation(), i.close());
|
|
1163
|
+
}
|
|
1164
|
+
return () => {
|
|
1165
|
+
let { ...o } = e;
|
|
1166
|
+
return H({
|
|
1167
|
+
ourProps: {
|
|
1168
|
+
id: r,
|
|
1169
|
+
"aria-hidden": !0,
|
|
1170
|
+
onClick: a
|
|
1171
|
+
},
|
|
1172
|
+
theirProps: o,
|
|
1173
|
+
slot: { open: i.dialogState.value === 0 },
|
|
1174
|
+
attrs: t,
|
|
1175
|
+
slots: n,
|
|
1176
|
+
name: "DialogOverlay"
|
|
1177
|
+
});
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
}), a({
|
|
1181
|
+
name: "DialogBackdrop",
|
|
1182
|
+
props: {
|
|
1183
|
+
as: {
|
|
1184
|
+
type: [Object, String],
|
|
1185
|
+
default: "div"
|
|
1186
|
+
},
|
|
1187
|
+
id: {
|
|
1188
|
+
type: String,
|
|
1189
|
+
default: null
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
inheritAttrs: !1,
|
|
1193
|
+
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
1194
|
+
let i = e.id ?? `headlessui-dialog-backdrop-${w()}`, a = X("DialogBackdrop"), o = h(null);
|
|
1195
|
+
return r({
|
|
1196
|
+
el: o,
|
|
1197
|
+
$el: o
|
|
1198
|
+
}), d(() => {
|
|
1199
|
+
if (a.panelRef.value === null) throw Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
1200
|
+
}), () => {
|
|
1201
|
+
let { ...r } = e, c = {
|
|
1202
|
+
id: i,
|
|
1203
|
+
ref: o,
|
|
1204
|
+
"aria-hidden": !0
|
|
1205
|
+
};
|
|
1206
|
+
return s(We, { force: !0 }, () => s(nt, () => H({
|
|
1207
|
+
ourProps: c,
|
|
1208
|
+
theirProps: {
|
|
1209
|
+
...t,
|
|
1210
|
+
...r
|
|
1211
|
+
},
|
|
1212
|
+
slot: { open: a.dialogState.value === 0 },
|
|
1213
|
+
attrs: t,
|
|
1214
|
+
slots: n,
|
|
1215
|
+
name: "DialogBackdrop"
|
|
1216
|
+
})));
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
var ut = a({
|
|
1221
|
+
name: "DialogPanel",
|
|
1222
|
+
props: {
|
|
1223
|
+
as: {
|
|
1224
|
+
type: [Object, String],
|
|
1225
|
+
default: "div"
|
|
1226
|
+
},
|
|
1227
|
+
id: {
|
|
1228
|
+
type: String,
|
|
1229
|
+
default: null
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
1233
|
+
let i = e.id ?? `headlessui-dialog-panel-${w()}`, a = X("DialogPanel");
|
|
1234
|
+
r({
|
|
1235
|
+
el: a.panelRef,
|
|
1236
|
+
$el: a.panelRef
|
|
1237
|
+
});
|
|
1238
|
+
function o(e) {
|
|
1239
|
+
e.stopPropagation();
|
|
1240
|
+
}
|
|
1241
|
+
return () => {
|
|
1242
|
+
let { ...r } = e;
|
|
1243
|
+
return H({
|
|
1244
|
+
ourProps: {
|
|
1245
|
+
id: i,
|
|
1246
|
+
ref: a.panelRef,
|
|
1247
|
+
onClick: o
|
|
1248
|
+
},
|
|
1249
|
+
theirProps: r,
|
|
1250
|
+
slot: { open: a.dialogState.value === 0 },
|
|
1251
|
+
attrs: t,
|
|
1252
|
+
slots: n,
|
|
1253
|
+
name: "DialogPanel"
|
|
1254
|
+
});
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
}), dt = a({
|
|
1258
|
+
name: "DialogTitle",
|
|
1259
|
+
props: {
|
|
1260
|
+
as: {
|
|
1261
|
+
type: [Object, String],
|
|
1262
|
+
default: "h2"
|
|
1263
|
+
},
|
|
1264
|
+
id: {
|
|
1265
|
+
type: String,
|
|
1266
|
+
default: null
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1270
|
+
let r = e.id ?? `headlessui-dialog-title-${w()}`, i = X("DialogTitle");
|
|
1271
|
+
return d(() => {
|
|
1272
|
+
i.setTitleId(r), f(() => i.setTitleId(null));
|
|
1273
|
+
}), () => {
|
|
1274
|
+
let { ...a } = e;
|
|
1275
|
+
return H({
|
|
1276
|
+
ourProps: { id: r },
|
|
1277
|
+
theirProps: a,
|
|
1278
|
+
slot: { open: i.dialogState.value === 0 },
|
|
1279
|
+
attrs: t,
|
|
1280
|
+
slots: n,
|
|
1281
|
+
name: "DialogTitle"
|
|
1282
|
+
});
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
//#endregion
|
|
1287
|
+
//#region ../../node_modules/@headlessui/vue/dist/utils/once.js
|
|
1288
|
+
function ft(e) {
|
|
1289
|
+
let t = { called: !1 };
|
|
1290
|
+
return (...n) => {
|
|
1291
|
+
if (!t.called) return t.called = !0, e(...n);
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1295
|
+
//#region ../../node_modules/@headlessui/vue/dist/components/transitions/utils/transition.js
|
|
1296
|
+
function pt(e, ...t) {
|
|
1297
|
+
e && t.length > 0 && e.classList.add(...t);
|
|
1298
|
+
}
|
|
1299
|
+
function Q(e, ...t) {
|
|
1300
|
+
e && t.length > 0 && e.classList.remove(...t);
|
|
1301
|
+
}
|
|
1302
|
+
var mt = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(mt || {});
|
|
1303
|
+
function ht(e, t) {
|
|
1304
|
+
let n = x();
|
|
1305
|
+
if (!e) return n.dispose;
|
|
1306
|
+
let { transitionDuration: r, transitionDelay: i } = getComputedStyle(e), [a, o] = [r, i].map((e) => {
|
|
1307
|
+
let [t = 0] = e.split(",").filter(Boolean).map((e) => e.includes("ms") ? parseFloat(e) : parseFloat(e) * 1e3).sort((e, t) => t - e);
|
|
1308
|
+
return t;
|
|
1309
|
+
});
|
|
1310
|
+
return a === 0 ? t("finished") : n.setTimeout(() => t("finished"), a + o), n.add(() => t("cancelled")), n.dispose;
|
|
1311
|
+
}
|
|
1312
|
+
function gt(e, t, n, r, i, a) {
|
|
1313
|
+
let o = x(), s = a === void 0 ? () => {} : ft(a);
|
|
1314
|
+
return Q(e, ...i), pt(e, ...t, ...n), o.nextFrame(() => {
|
|
1315
|
+
Q(e, ...n), pt(e, ...r), o.add(ht(e, (n) => (Q(e, ...r, ...t), pt(e, ...i), s(n))));
|
|
1316
|
+
}), o.add(() => Q(e, ...t, ...n, ...r, ...i)), o.add(() => s("cancelled")), o.dispose;
|
|
1317
|
+
}
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region ../../node_modules/@headlessui/vue/dist/components/transitions/transition.js
|
|
1320
|
+
function $(e = "") {
|
|
1321
|
+
return e.split(/\s+/).filter((e) => e.length > 1);
|
|
1322
|
+
}
|
|
1323
|
+
var _t = Symbol("TransitionContext"), vt = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(vt || {});
|
|
1324
|
+
function yt() {
|
|
1325
|
+
return c(_t, null) !== null;
|
|
1326
|
+
}
|
|
1327
|
+
function bt() {
|
|
1328
|
+
let e = c(_t, null);
|
|
1329
|
+
if (e === null) throw Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1330
|
+
return e;
|
|
1331
|
+
}
|
|
1332
|
+
function xt() {
|
|
1333
|
+
let e = c(St, null);
|
|
1334
|
+
if (e === null) throw Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1335
|
+
return e;
|
|
1336
|
+
}
|
|
1337
|
+
var St = Symbol("NestingContext");
|
|
1338
|
+
function Ct(e) {
|
|
1339
|
+
return "children" in e ? Ct(e.children) : e.value.filter(({ state: e }) => e === "visible").length > 0;
|
|
1340
|
+
}
|
|
1341
|
+
function wt(e) {
|
|
1342
|
+
let t = h([]), n = h(!1);
|
|
1343
|
+
d(() => n.value = !0), f(() => n.value = !1);
|
|
1344
|
+
function r(r, i = V.Hidden) {
|
|
1345
|
+
let a = t.value.findIndex(({ id: e }) => e === r);
|
|
1346
|
+
a !== -1 && (E(i, {
|
|
1347
|
+
[V.Unmount]() {
|
|
1348
|
+
t.value.splice(a, 1);
|
|
1349
|
+
},
|
|
1350
|
+
[V.Hidden]() {
|
|
1351
|
+
t.value[a].state = "hidden";
|
|
1352
|
+
}
|
|
1353
|
+
}), !Ct(t) && n.value && e?.());
|
|
1354
|
+
}
|
|
1355
|
+
function i(e) {
|
|
1356
|
+
let n = t.value.find(({ id: t }) => t === e);
|
|
1357
|
+
return n ? n.state !== "visible" && (n.state = "visible") : t.value.push({
|
|
1358
|
+
id: e,
|
|
1359
|
+
state: "visible"
|
|
1360
|
+
}), () => r(e, V.Unmount);
|
|
1361
|
+
}
|
|
1362
|
+
return {
|
|
1363
|
+
children: t,
|
|
1364
|
+
register: i,
|
|
1365
|
+
unregister: r
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1368
|
+
var Tt = B.RenderStrategy, Et = a({
|
|
1369
|
+
props: {
|
|
1370
|
+
as: {
|
|
1371
|
+
type: [Object, String],
|
|
1372
|
+
default: "div"
|
|
1373
|
+
},
|
|
1374
|
+
show: {
|
|
1375
|
+
type: [Boolean],
|
|
1376
|
+
default: null
|
|
1377
|
+
},
|
|
1378
|
+
unmount: {
|
|
1379
|
+
type: [Boolean],
|
|
1380
|
+
default: !0
|
|
1381
|
+
},
|
|
1382
|
+
appear: {
|
|
1383
|
+
type: [Boolean],
|
|
1384
|
+
default: !1
|
|
1385
|
+
},
|
|
1386
|
+
enter: {
|
|
1387
|
+
type: [String],
|
|
1388
|
+
default: ""
|
|
1389
|
+
},
|
|
1390
|
+
enterFrom: {
|
|
1391
|
+
type: [String],
|
|
1392
|
+
default: ""
|
|
1393
|
+
},
|
|
1394
|
+
enterTo: {
|
|
1395
|
+
type: [String],
|
|
1396
|
+
default: ""
|
|
1397
|
+
},
|
|
1398
|
+
entered: {
|
|
1399
|
+
type: [String],
|
|
1400
|
+
default: ""
|
|
1401
|
+
},
|
|
1402
|
+
leave: {
|
|
1403
|
+
type: [String],
|
|
1404
|
+
default: ""
|
|
1405
|
+
},
|
|
1406
|
+
leaveFrom: {
|
|
1407
|
+
type: [String],
|
|
1408
|
+
default: ""
|
|
1409
|
+
},
|
|
1410
|
+
leaveTo: {
|
|
1411
|
+
type: [String],
|
|
1412
|
+
default: ""
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
emits: {
|
|
1416
|
+
beforeEnter: () => !0,
|
|
1417
|
+
afterEnter: () => !0,
|
|
1418
|
+
beforeLeave: () => !0,
|
|
1419
|
+
afterLeave: () => !0
|
|
1420
|
+
},
|
|
1421
|
+
setup(e, { emit: t, attrs: n, slots: r, expose: a }) {
|
|
1422
|
+
let o = h(0);
|
|
1423
|
+
function c() {
|
|
1424
|
+
o.value |= W.Opening, t("beforeEnter");
|
|
1425
|
+
}
|
|
1426
|
+
function l() {
|
|
1427
|
+
o.value &= ~W.Opening, t("afterEnter");
|
|
1428
|
+
}
|
|
1429
|
+
function m() {
|
|
1430
|
+
o.value |= W.Closing, t("beforeLeave");
|
|
1431
|
+
}
|
|
1432
|
+
function g() {
|
|
1433
|
+
o.value &= ~W.Closing, t("afterLeave");
|
|
1434
|
+
}
|
|
1435
|
+
if (!yt() && ve()) return () => s(Ot, {
|
|
1436
|
+
...e,
|
|
1437
|
+
onBeforeEnter: c,
|
|
1438
|
+
onAfterEnter: l,
|
|
1439
|
+
onBeforeLeave: m,
|
|
1440
|
+
onAfterLeave: g
|
|
1441
|
+
}, r);
|
|
1442
|
+
let _ = h(null), b = i(() => e.unmount ? V.Unmount : V.Hidden);
|
|
1443
|
+
a({
|
|
1444
|
+
el: _,
|
|
1445
|
+
$el: _
|
|
1446
|
+
});
|
|
1447
|
+
let { show: x, appear: S } = bt(), { register: C, unregister: D } = xt(), O = h(x.value ? "visible" : "hidden"), k = { value: !0 }, j = w(), M = { value: !1 }, N = wt(() => {
|
|
1448
|
+
!M.value && O.value !== "hidden" && (O.value = "hidden", D(j), g());
|
|
1449
|
+
});
|
|
1450
|
+
d(() => {
|
|
1451
|
+
f(C(j));
|
|
1452
|
+
}), y(() => {
|
|
1453
|
+
if (b.value === V.Hidden && j) {
|
|
1454
|
+
if (x.value && O.value !== "visible") {
|
|
1455
|
+
O.value = "visible";
|
|
1456
|
+
return;
|
|
1457
|
+
}
|
|
1458
|
+
E(O.value, {
|
|
1459
|
+
hidden: () => D(j),
|
|
1460
|
+
visible: () => C(j)
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
let P = $(e.enter), ee = $(e.enterFrom), F = $(e.enterTo), I = $(e.entered), te = $(e.leave), ne = $(e.leaveFrom), L = $(e.leaveTo);
|
|
1465
|
+
d(() => {
|
|
1466
|
+
y(() => {
|
|
1467
|
+
if (O.value === "visible") {
|
|
1468
|
+
let e = T(_);
|
|
1469
|
+
if (e instanceof Comment && e.data === "") throw Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1472
|
+
});
|
|
1473
|
+
function R(e) {
|
|
1474
|
+
let t = k.value && !S.value, n = T(_);
|
|
1475
|
+
!n || !(n instanceof HTMLElement) || t || (M.value = !0, x.value && c(), x.value || m(), e(x.value ? gt(n, P, ee, F, I, (e) => {
|
|
1476
|
+
M.value = !1, e === mt.Finished && l();
|
|
1477
|
+
}) : gt(n, te, ne, L, I, (e) => {
|
|
1478
|
+
M.value = !1, e === mt.Finished && (Ct(N) || (O.value = "hidden", D(j), g()));
|
|
1479
|
+
})));
|
|
1480
|
+
}
|
|
1481
|
+
return d(() => {
|
|
1482
|
+
v([x], (e, t, n) => {
|
|
1483
|
+
R(n), k.value = !1;
|
|
1484
|
+
}, { immediate: !0 });
|
|
1485
|
+
}), p(St, N), be(i(() => E(O.value, {
|
|
1486
|
+
visible: W.Open,
|
|
1487
|
+
hidden: W.Closed
|
|
1488
|
+
}) | o.value)), () => {
|
|
1489
|
+
let { appear: t, show: i, enter: a, enterFrom: o, enterTo: s, entered: c, leave: l, leaveFrom: d, leaveTo: f, ...p } = e, m = { ref: _ };
|
|
1490
|
+
return H({
|
|
1491
|
+
theirProps: {
|
|
1492
|
+
...p,
|
|
1493
|
+
...S.value && x.value && A.isServer ? { class: u([
|
|
1494
|
+
n.class,
|
|
1495
|
+
p.class,
|
|
1496
|
+
...P,
|
|
1497
|
+
...ee
|
|
1498
|
+
]) } : {}
|
|
1499
|
+
},
|
|
1500
|
+
ourProps: m,
|
|
1501
|
+
slot: {},
|
|
1502
|
+
slots: r,
|
|
1503
|
+
attrs: n,
|
|
1504
|
+
features: Tt,
|
|
1505
|
+
visible: O.value === "visible",
|
|
1506
|
+
name: "TransitionChild"
|
|
1507
|
+
});
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
}), Dt = Et, Ot = a({
|
|
1511
|
+
inheritAttrs: !1,
|
|
1512
|
+
props: {
|
|
1513
|
+
as: {
|
|
1514
|
+
type: [Object, String],
|
|
1515
|
+
default: "div"
|
|
1516
|
+
},
|
|
1517
|
+
show: {
|
|
1518
|
+
type: [Boolean],
|
|
1519
|
+
default: null
|
|
1520
|
+
},
|
|
1521
|
+
unmount: {
|
|
1522
|
+
type: [Boolean],
|
|
1523
|
+
default: !0
|
|
1524
|
+
},
|
|
1525
|
+
appear: {
|
|
1526
|
+
type: [Boolean],
|
|
1527
|
+
default: !1
|
|
1528
|
+
},
|
|
1529
|
+
enter: {
|
|
1530
|
+
type: [String],
|
|
1531
|
+
default: ""
|
|
1532
|
+
},
|
|
1533
|
+
enterFrom: {
|
|
1534
|
+
type: [String],
|
|
1535
|
+
default: ""
|
|
1536
|
+
},
|
|
1537
|
+
enterTo: {
|
|
1538
|
+
type: [String],
|
|
1539
|
+
default: ""
|
|
1540
|
+
},
|
|
1541
|
+
entered: {
|
|
1542
|
+
type: [String],
|
|
1543
|
+
default: ""
|
|
1544
|
+
},
|
|
1545
|
+
leave: {
|
|
1546
|
+
type: [String],
|
|
1547
|
+
default: ""
|
|
1548
|
+
},
|
|
1549
|
+
leaveFrom: {
|
|
1550
|
+
type: [String],
|
|
1551
|
+
default: ""
|
|
1552
|
+
},
|
|
1553
|
+
leaveTo: {
|
|
1554
|
+
type: [String],
|
|
1555
|
+
default: ""
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
emits: {
|
|
1559
|
+
beforeEnter: () => !0,
|
|
1560
|
+
afterEnter: () => !0,
|
|
1561
|
+
beforeLeave: () => !0,
|
|
1562
|
+
afterLeave: () => !0
|
|
1563
|
+
},
|
|
1564
|
+
setup(e, { emit: t, attrs: n, slots: r }) {
|
|
1565
|
+
let a = ye(), o = i(() => e.show === null && a !== null ? (a.value & W.Open) === W.Open : e.show);
|
|
1566
|
+
y(() => {
|
|
1567
|
+
if (![!0, !1].includes(o.value)) throw Error("A <Transition /> is used but it is missing a `:show=\"true | false\"` prop.");
|
|
1568
|
+
});
|
|
1569
|
+
let c = h(o.value ? "visible" : "hidden"), l = wt(() => {
|
|
1570
|
+
c.value = "hidden";
|
|
1571
|
+
}), u = h(!0), f = {
|
|
1572
|
+
show: o,
|
|
1573
|
+
appear: i(() => e.appear || !u.value)
|
|
1574
|
+
};
|
|
1575
|
+
return d(() => {
|
|
1576
|
+
y(() => {
|
|
1577
|
+
u.value = !1, o.value ? c.value = "visible" : Ct(l) || (c.value = "hidden");
|
|
1578
|
+
});
|
|
1579
|
+
}), p(St, l), p(_t, f), () => {
|
|
1580
|
+
let i = me(e, [
|
|
1581
|
+
"show",
|
|
1582
|
+
"appear",
|
|
1583
|
+
"unmount",
|
|
1584
|
+
"onBeforeEnter",
|
|
1585
|
+
"onBeforeLeave",
|
|
1586
|
+
"onAfterEnter",
|
|
1587
|
+
"onAfterLeave"
|
|
1588
|
+
]), a = { unmount: e.unmount };
|
|
1589
|
+
return H({
|
|
1590
|
+
ourProps: {
|
|
1591
|
+
...a,
|
|
1592
|
+
as: "template"
|
|
1593
|
+
},
|
|
1594
|
+
theirProps: {},
|
|
1595
|
+
slot: {},
|
|
1596
|
+
slots: {
|
|
1597
|
+
...r,
|
|
1598
|
+
default: () => [s(Dt, {
|
|
1599
|
+
onBeforeEnter: () => t("beforeEnter"),
|
|
1600
|
+
onAfterEnter: () => t("afterEnter"),
|
|
1601
|
+
onBeforeLeave: () => t("beforeLeave"),
|
|
1602
|
+
onAfterLeave: () => t("afterLeave"),
|
|
1603
|
+
...n,
|
|
1604
|
+
...a,
|
|
1605
|
+
...i
|
|
1606
|
+
}, r.default)]
|
|
1607
|
+
},
|
|
1608
|
+
attrs: {},
|
|
1609
|
+
features: Tt,
|
|
1610
|
+
visible: c.value === "visible",
|
|
1611
|
+
name: "Transition"
|
|
1612
|
+
});
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
//#endregion
|
|
1617
|
+
export { lt as a, dt as i, Et as n, ut as r, Ot as t };
|