@vc-shell/framework 1.1.99-alpha.1 → 1.2.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/core/api/platform.ts +9883 -9883
- package/core/composables/useDynamicProperties/index.ts +16 -10
- package/core/composables/useNotifications/index.ts +1 -32
- package/core/composables/useSettings/index.ts +3 -8
- package/core/composables/useUser/index.ts +171 -74
- package/core/composables/useUserManagement/index.ts +25 -67
- package/core/interceptors/index.ts +56 -19
- package/core/plugins/signalR/index.ts +1 -27
- package/core/types/index.ts +0 -2
- package/dist/core/api/platform.d.ts +1 -1
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +9 -18
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/composables/useUserManagement/index.d.ts +7 -7
- package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts +1 -2
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts +0 -2
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +1 -2
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +10 -10
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +1 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
- package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
- package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
- package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +1 -1
- package/package.json +5 -7
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
- package/shared/components/sign-in/useExternalProvider.ts +1 -11
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
- package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
- package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
- package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
- package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
- package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
- package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
- package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
- package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
- package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
- package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
- package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
- package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
- package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
- package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
- package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
- package/ui/components/molecules/index.ts +1 -0
- package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
- package/ui/components/molecules/vc-accordion/index.ts +11 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
- package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
- package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
- package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
- package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
- package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
- package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
- package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
- package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
- package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
- package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
- package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
- package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
- package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
- package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
- package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
- package/ui/components/organisms/vc-app/vc-app.vue +2 -20
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
- package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
- package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
- package/core/providers/README.md +0 -176
- package/core/providers/auth-provider-manager.ts +0 -74
- package/core/providers/auth-provider-utils.ts +0 -26
- package/core/providers/example-custom-auth-provider.ts +0 -162
- package/core/providers/index.ts +0 -3
- package/core/providers/platform-auth-provider.ts +0 -207
- package/core/types/auth-provider.ts +0 -40
- package/dist/assets/042c75b764bc78a7.svg +0 -1
- package/dist/assets/0ba156439a339f2a.svg +0 -1
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0f590f8a94577092.svg +0 -1
- package/dist/assets/0fc5820f8be53a1b.svg +0 -1
- package/dist/assets/105efd028edc1dfe.woff +0 -0
- package/dist/assets/10768e2cc79fc60b.svg +0 -1
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +0 -1
- package/dist/assets/15e91cdd649cde9a.svg +0 -1
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +0 -1
- package/dist/assets/1ea01de36eb5491b.svg +0 -1
- package/dist/assets/204eaf512fde2023.svg +0 -1
- package/dist/assets/2088983edf42e153.svg +0 -1
- package/dist/assets/208f810a9321a327.svg +0 -1
- package/dist/assets/21220a9d10e6c558.svg +0 -1
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +0 -1
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +0 -1
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +0 -1
- package/dist/assets/2857c513073467da.svg +0 -1
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +0 -1
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +0 -1
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +0 -1
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/489710fb710e73f0.woff +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +0 -1
- package/dist/assets/4e43c74354534fb3.svg +0 -1
- package/dist/assets/4fe75f5117100705.svg +0 -1
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/54cda5482c6c9218.woff +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +0 -1
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/67230f05dc94a265.svg +0 -1
- package/dist/assets/6798e4dd4add9b48.svg +0 -1
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +0 -1
- package/dist/assets/72de3a63bc0b70dd.svg +0 -1
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +0 -1
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +0 -1
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +0 -1
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +0 -1
- package/dist/assets/91fe94e424323d61.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +0 -1
- package/dist/assets/9392bf1d591e1abb.svg +0 -1
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a03cdcd8da5bb987.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +0 -1
- package/dist/assets/a2017fe7f0a26510.svg +0 -1
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +0 -1
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +0 -1
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +0 -1
- package/dist/assets/b372390551ca2fa1.svg +0 -1
- package/dist/assets/b5bb1e8fc975decd.svg +0 -1
- package/dist/assets/b645a4a2181b9dc1.svg +0 -1
- package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
- package/dist/assets/b94421fadd23b0f2.svg +0 -1
- package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +0 -1
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/d084bda16abe8a56.svg +0 -1
- package/dist/assets/d32b129cae2fffd6.svg +0 -1
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +0 -1
- package/dist/assets/d5a5b8630120073d.svg +0 -1
- package/dist/assets/d5f9664ebbfb104b.svg +0 -1
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/dceaf3b39091e6a4.woff +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
- package/dist/assets/e2ad5b3428289141.woff +0 -0
- package/dist/assets/e38acaa1757232e0.svg +0 -1
- package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
- package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +0 -1
- package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/assets/f09d89268e4c0317.svg +0 -1
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +0 -1
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/core/providers/auth-provider-manager.d.ts +0 -34
- package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
- package/dist/core/providers/auth-provider-utils.d.ts +0 -17
- package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
- package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
- package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
- package/dist/core/providers/index.d.ts +0 -3
- package/dist/core/providers/index.d.ts.map +0 -1
- package/dist/core/providers/platform-auth-provider.d.ts +0 -34
- package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
- package/dist/core/types/auth-provider.d.ts +0 -27
- package/dist/core/types/auth-provider.d.ts.map +0 -1
- package/dist/framework.js +0 -25048
- package/dist/index.css +0 -9
- package/dist/vendor-boolbase-A_-Pp38P.js +0 -23
- package/dist/vendor-cheerio-C46iBpCu.js +0 -1053
- package/dist/vendor-cheerio-select-C8emRZsx.js +0 -191
- package/dist/vendor-core-js-DDuR6YMQ.js +0 -1206
- package/dist/vendor-css-select-DR9bp36p.js +0 -622
- package/dist/vendor-css-what-CZZaquJM.js +0 -267
- package/dist/vendor-cypress-signalr-mock-DjBxJHA6.js +0 -769
- package/dist/vendor-date-fns-sZ1zMzTH.js +0 -3008
- package/dist/vendor-dom-serializer-Sk3xHhQk.js +0 -213
- package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
- package/dist/vendor-domhandler-CL40eeX9.js +0 -311
- package/dist/vendor-dompurify-BuxjWxA2.js +0 -553
- package/dist/vendor-domutils-BiVCXO8c.js +0 -386
- package/dist/vendor-entities-CCReaWqU.js +0 -364
- package/dist/vendor-floating-ui-core-Cl9nBI4j.js +0 -349
- package/dist/vendor-floating-ui-dom-3z44E4mf.js +0 -395
- package/dist/vendor-floating-ui-utils-D2sT7feD.js +0 -259
- package/dist/vendor-floating-ui-vue-ClrgkeO5.js +0 -107
- package/dist/vendor-headlessui-vue-D7tzx4PC.js +0 -961
- package/dist/vendor-htmlparser2-CpQu33io.js +0 -735
- package/dist/vendor-intlify-core-base-Da62SG4M.js +0 -1130
- package/dist/vendor-intlify-message-compiler-CHvGSH2u.js +0 -952
- package/dist/vendor-intlify-shared-jWBPd9WB.js +0 -144
- package/dist/vendor-iso-639-1-BJO6WZAt.js +0 -781
- package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
- package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
- package/dist/vendor-lodash-es-BqkGj3Jl.js +0 -4816
- package/dist/vendor-lucide-vue-next-m0L4DzUL.js +0 -29780
- package/dist/vendor-markdown-it-Czg9qJTh.js +0 -2263
- package/dist/vendor-markdown-it-task-lists-BxLwscWK.js +0 -69
- package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
- package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +0 -1207
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js +0 -261
- package/dist/vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js +0 -1822
- package/dist/vendor-microsoft-applicationinsights-common-OjU3Zs6r.js +0 -1921
- package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +0 -4276
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js +0 -1407
- package/dist/vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js +0 -572
- package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +0 -43
- package/dist/vendor-microsoft-applicationinsights-web-9yeJ0EZv.js +0 -487
- package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +0 -147
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
- package/dist/vendor-moment-DMLRxgRE.js +0 -2589
- package/dist/vendor-nevware21-ts-async-CdMc_sGt.js +0 -261
- package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +0 -853
- package/dist/vendor-nth-check-CS1D-zr5.js +0 -45
- package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js +0 -143
- package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
- package/dist/vendor-prettier-cZc5sCiS.js +0 -4875
- package/dist/vendor-prosemirror-commands-Cu1q5ZDk.js +0 -385
- package/dist/vendor-prosemirror-dropcursor-BuGmFgFS.js +0 -86
- package/dist/vendor-prosemirror-gapcursor-CyYcCWVK.js +0 -203
- package/dist/vendor-prosemirror-history-DzRcbrCw.js +0 -248
- package/dist/vendor-prosemirror-keymap-KfbdOEJw.js +0 -62
- package/dist/vendor-prosemirror-markdown-OyxRuawK.js +0 -650
- package/dist/vendor-prosemirror-model-DFp4ML7B.js +0 -2730
- package/dist/vendor-prosemirror-schema-list-CwCUArvx.js +0 -87
- package/dist/vendor-prosemirror-state-DHaVEu5h.js +0 -821
- package/dist/vendor-prosemirror-tables-mYok4vGT.js +0 -1711
- package/dist/vendor-prosemirror-transform-CAHmg-qG.js +0 -1508
- package/dist/vendor-prosemirror-view-CspJa44O.js +0 -3751
- package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
- package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
- package/dist/vendor-semver-Dar8oU3V.js +0 -1023
- package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
- package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
- package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
- package/dist/vendor-tiptap-extension-blockquote-r1MBx4hD.js +0 -54
- package/dist/vendor-tiptap-extension-bold-BjLI4i8b.js +0 -74
- package/dist/vendor-tiptap-extension-code-D5-kDnMW.js +0 -52
- package/dist/vendor-tiptap-extension-code-block-RjEb0zPA.js +0 -215
- package/dist/vendor-tiptap-extension-document--PLOxIdq.js +0 -12
- package/dist/vendor-tiptap-extension-hard-break-9cxC2YOS.js +0 -59
- package/dist/vendor-tiptap-extension-heading-2w0TutHn.js +0 -63
- package/dist/vendor-tiptap-extension-horizontal-rule-CFowa_lc.js +0 -56
- package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
- package/dist/vendor-tiptap-extension-italic-Bn-6saY0.js +0 -73
- package/dist/vendor-tiptap-extension-link-BmcG1_k-.js +0 -298
- package/dist/vendor-tiptap-extension-list-BrNBJ45n.js +0 -707
- package/dist/vendor-tiptap-extension-paragraph-DAiYhwUB.js +0 -41
- package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
- package/dist/vendor-tiptap-extension-strike-DqbXPfos.js +0 -64
- package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
- package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
- package/dist/vendor-tiptap-extension-text-BFnfj70b.js +0 -13
- package/dist/vendor-tiptap-extension-text-style-Darua3qr.js +0 -235
- package/dist/vendor-tiptap-extension-underline-QyVnBqQZ.js +0 -65
- package/dist/vendor-tiptap-extensions-CU-D7bfm.js +0 -290
- package/dist/vendor-tiptap-markdown-BwATYN5A.js +0 -826
- package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
- package/dist/vendor-tiptap-starter-kit-5luf7zzS.js +0 -28
- package/dist/vendor-tiptap-vue-3-CFBErZGb.js +0 -157
- package/dist/vendor-truncate-html-DYC0Lj9o.js +0 -145
- package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
- package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
- package/dist/vendor-vue-currency-input-BqaYAdhD.js +0 -317
- package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
- package/dist/vendor-vue-i18n-CO5LWKE0.js +0 -1370
- package/dist/vendor-vue3-application-insights-BKiiWnf2.js +0 -69
- package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
- package/dist/vendor-vuepic-vue-datepicker-CaY_xSnG.js +0 -4998
- package/dist/vendor-vueuse-components-sgKpNzof.js +0 -542
- package/dist/vendor-vueuse-core-D0cN7FqY.js +0 -5130
- package/dist/vendor-vueuse-shared-Pt0UEStA.js +0 -1169
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
|
@@ -1,961 +0,0 @@
|
|
|
1
|
-
import * as Be from "vue";
|
|
2
|
-
import { watchEffect as C, computed as h, ref as g, cloneVNode as ft, h as S, Fragment as _e, defineComponent as $, inject as D, provide as x, onMounted as T, onUnmounted as N, watch as z, shallowRef as pt, unref as vt, getCurrentInstance as mt, Teleport as ht, reactive as gt, nextTick as yt, normalizeClass as wt } from "vue";
|
|
3
|
-
function Ne(e) {
|
|
4
|
-
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
5
|
-
throw t;
|
|
6
|
-
}));
|
|
7
|
-
}
|
|
8
|
-
function te() {
|
|
9
|
-
let e = [], t = { addEventListener(n, r, l, a) {
|
|
10
|
-
return n.addEventListener(r, l, a), t.add(() => n.removeEventListener(r, l, a));
|
|
11
|
-
}, requestAnimationFrame(...n) {
|
|
12
|
-
let r = requestAnimationFrame(...n);
|
|
13
|
-
t.add(() => cancelAnimationFrame(r));
|
|
14
|
-
}, nextFrame(...n) {
|
|
15
|
-
t.requestAnimationFrame(() => {
|
|
16
|
-
t.requestAnimationFrame(...n);
|
|
17
|
-
});
|
|
18
|
-
}, setTimeout(...n) {
|
|
19
|
-
let r = setTimeout(...n);
|
|
20
|
-
t.add(() => clearTimeout(r));
|
|
21
|
-
}, microTask(...n) {
|
|
22
|
-
let r = { current: !0 };
|
|
23
|
-
return Ne(() => {
|
|
24
|
-
r.current && n[0]();
|
|
25
|
-
}), t.add(() => {
|
|
26
|
-
r.current = !1;
|
|
27
|
-
});
|
|
28
|
-
}, style(n, r, l) {
|
|
29
|
-
let a = n.style.getPropertyValue(r);
|
|
30
|
-
return Object.assign(n.style, { [r]: l }), this.add(() => {
|
|
31
|
-
Object.assign(n.style, { [r]: a });
|
|
32
|
-
});
|
|
33
|
-
}, group(n) {
|
|
34
|
-
let r = te();
|
|
35
|
-
return n(r), this.add(() => r.dispose());
|
|
36
|
-
}, add(n) {
|
|
37
|
-
return e.push(n), () => {
|
|
38
|
-
let r = e.indexOf(n);
|
|
39
|
-
if (r >= 0) for (let l of e.splice(r, 1)) l();
|
|
40
|
-
};
|
|
41
|
-
}, dispose() {
|
|
42
|
-
for (let n of e.splice(0)) n();
|
|
43
|
-
} };
|
|
44
|
-
return t;
|
|
45
|
-
}
|
|
46
|
-
var Ie;
|
|
47
|
-
let bt = Symbol("headlessui.useid"), Et = 0;
|
|
48
|
-
const G = (Ie = Be.useId) != null ? Ie : function() {
|
|
49
|
-
return Be.inject(bt, () => `${++Et}`)();
|
|
50
|
-
};
|
|
51
|
-
function E(e) {
|
|
52
|
-
var t;
|
|
53
|
-
if (e == null || e.value == null) return null;
|
|
54
|
-
let n = (t = e.value.$el) != null ? t : e.value;
|
|
55
|
-
return n instanceof Node ? n : null;
|
|
56
|
-
}
|
|
57
|
-
function M(e, t, ...n) {
|
|
58
|
-
if (e in t) {
|
|
59
|
-
let l = t[e];
|
|
60
|
-
return typeof l == "function" ? l(...n) : l;
|
|
61
|
-
}
|
|
62
|
-
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((l) => `"${l}"`).join(", ")}.`);
|
|
63
|
-
throw Error.captureStackTrace && Error.captureStackTrace(r, M), r;
|
|
64
|
-
}
|
|
65
|
-
var St = Object.defineProperty, Tt = (e, t, n) => t in e ? St(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ue = (e, t, n) => (Tt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
66
|
-
let $t = class {
|
|
67
|
-
constructor() {
|
|
68
|
-
Ue(this, "current", this.detect()), Ue(this, "currentId", 0);
|
|
69
|
-
}
|
|
70
|
-
set(t) {
|
|
71
|
-
this.current !== t && (this.currentId = 0, this.current = t);
|
|
72
|
-
}
|
|
73
|
-
reset() {
|
|
74
|
-
this.set(this.detect());
|
|
75
|
-
}
|
|
76
|
-
nextId() {
|
|
77
|
-
return ++this.currentId;
|
|
78
|
-
}
|
|
79
|
-
get isServer() {
|
|
80
|
-
return this.current === "server";
|
|
81
|
-
}
|
|
82
|
-
get isClient() {
|
|
83
|
-
return this.current === "client";
|
|
84
|
-
}
|
|
85
|
-
detect() {
|
|
86
|
-
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
87
|
-
}
|
|
88
|
-
}, ne = new $t();
|
|
89
|
-
function X(e) {
|
|
90
|
-
if (ne.isServer) return null;
|
|
91
|
-
if (e instanceof Node) return e.ownerDocument;
|
|
92
|
-
if (e != null && e.hasOwnProperty("value")) {
|
|
93
|
-
let t = E(e);
|
|
94
|
-
if (t) return t.ownerDocument;
|
|
95
|
-
}
|
|
96
|
-
return document;
|
|
97
|
-
}
|
|
98
|
-
let $e = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
99
|
-
var B = ((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))(B || {}), Ge = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Ge || {}), Lt = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Lt || {});
|
|
100
|
-
function Ot(e = document.body) {
|
|
101
|
-
return e == null ? [] : Array.from(e.querySelectorAll($e)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
102
|
-
}
|
|
103
|
-
var Ye = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Ye || {});
|
|
104
|
-
function Pt(e, t = 0) {
|
|
105
|
-
var n;
|
|
106
|
-
return e === ((n = X(e)) == null ? void 0 : n.body) ? !1 : M(t, { 0() {
|
|
107
|
-
return e.matches($e);
|
|
108
|
-
}, 1() {
|
|
109
|
-
let r = e;
|
|
110
|
-
for (; r !== null; ) {
|
|
111
|
-
if (r.matches($e)) return !0;
|
|
112
|
-
r = r.parentElement;
|
|
113
|
-
}
|
|
114
|
-
return !1;
|
|
115
|
-
} });
|
|
116
|
-
}
|
|
117
|
-
var Ft = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Ft || {});
|
|
118
|
-
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
119
|
-
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
120
|
-
}, !0), document.addEventListener("click", (e) => {
|
|
121
|
-
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
122
|
-
}, !0));
|
|
123
|
-
function _(e) {
|
|
124
|
-
e?.focus({ preventScroll: !0 });
|
|
125
|
-
}
|
|
126
|
-
let At = ["textarea", "input"].join(",");
|
|
127
|
-
function Dt(e) {
|
|
128
|
-
var t, n;
|
|
129
|
-
return (n = (t = e?.matches) == null ? void 0 : t.call(e, At)) != null ? n : !1;
|
|
130
|
-
}
|
|
131
|
-
function Ct(e, t = (n) => n) {
|
|
132
|
-
return e.slice().sort((n, r) => {
|
|
133
|
-
let l = t(n), a = t(r);
|
|
134
|
-
if (l === null || a === null) return 0;
|
|
135
|
-
let u = l.compareDocumentPosition(a);
|
|
136
|
-
return u & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : u & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function pe(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: l = [] } = {}) {
|
|
140
|
-
var a;
|
|
141
|
-
let u = (a = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e?.ownerDocument) != null ? a : document, o = Array.isArray(e) ? n ? Ct(e) : e : Ot(e);
|
|
142
|
-
l.length > 0 && o.length > 1 && (o = o.filter((f) => !l.includes(f))), r = r ?? u.activeElement;
|
|
143
|
-
let i = (() => {
|
|
144
|
-
if (t & 5) return 1;
|
|
145
|
-
if (t & 10) return -1;
|
|
146
|
-
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
147
|
-
})(), s = (() => {
|
|
148
|
-
if (t & 1) return 0;
|
|
149
|
-
if (t & 2) return Math.max(0, o.indexOf(r)) - 1;
|
|
150
|
-
if (t & 4) return Math.max(0, o.indexOf(r)) + 1;
|
|
151
|
-
if (t & 8) return o.length - 1;
|
|
152
|
-
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
153
|
-
})(), d = t & 32 ? { preventScroll: !0 } : {}, v = 0, c = o.length, p;
|
|
154
|
-
do {
|
|
155
|
-
if (v >= c || v + c <= 0) return 0;
|
|
156
|
-
let f = s + v;
|
|
157
|
-
if (t & 16) f = (f + c) % c;
|
|
158
|
-
else {
|
|
159
|
-
if (f < 0) return 3;
|
|
160
|
-
if (f >= c) return 1;
|
|
161
|
-
}
|
|
162
|
-
p = o[f], p?.focus(d), v += i;
|
|
163
|
-
} while (p !== u.activeElement);
|
|
164
|
-
return t & 6 && Dt(p) && p.select(), 2;
|
|
165
|
-
}
|
|
166
|
-
function Ke() {
|
|
167
|
-
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
168
|
-
}
|
|
169
|
-
function Nt() {
|
|
170
|
-
return /Android/gi.test(window.navigator.userAgent);
|
|
171
|
-
}
|
|
172
|
-
function kt() {
|
|
173
|
-
return Ke() || Nt();
|
|
174
|
-
}
|
|
175
|
-
function de(e, t, n) {
|
|
176
|
-
ne.isServer || C((r) => {
|
|
177
|
-
document.addEventListener(e, t, n), r(() => document.removeEventListener(e, t, n));
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function ze(e, t, n) {
|
|
181
|
-
ne.isServer || C((r) => {
|
|
182
|
-
window.addEventListener(e, t, n), r(() => window.removeEventListener(e, t, n));
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
function jt(e, t, n = h(() => !0)) {
|
|
186
|
-
function r(a, u) {
|
|
187
|
-
if (!n.value || a.defaultPrevented) return;
|
|
188
|
-
let o = u(a);
|
|
189
|
-
if (o === null || !o.getRootNode().contains(o)) return;
|
|
190
|
-
let i = (function s(d) {
|
|
191
|
-
return typeof d == "function" ? s(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
192
|
-
})(e);
|
|
193
|
-
for (let s of i) {
|
|
194
|
-
if (s === null) continue;
|
|
195
|
-
let d = s instanceof HTMLElement ? s : E(s);
|
|
196
|
-
if (d != null && d.contains(o) || a.composed && a.composedPath().includes(d)) return;
|
|
197
|
-
}
|
|
198
|
-
return !Pt(o, Ye.Loose) && o.tabIndex !== -1 && a.preventDefault(), t(a, o);
|
|
199
|
-
}
|
|
200
|
-
let l = g(null);
|
|
201
|
-
de("pointerdown", (a) => {
|
|
202
|
-
var u, o;
|
|
203
|
-
n.value && (l.value = ((o = (u = a.composedPath) == null ? void 0 : u.call(a)) == null ? void 0 : o[0]) || a.target);
|
|
204
|
-
}, !0), de("mousedown", (a) => {
|
|
205
|
-
var u, o;
|
|
206
|
-
n.value && (l.value = ((o = (u = a.composedPath) == null ? void 0 : u.call(a)) == null ? void 0 : o[0]) || a.target);
|
|
207
|
-
}, !0), de("click", (a) => {
|
|
208
|
-
kt() || l.value && (r(a, () => l.value), l.value = null);
|
|
209
|
-
}, !0), de("touchend", (a) => r(a, () => a.target instanceof HTMLElement ? a.target : null), !0), ze("blur", (a) => r(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
210
|
-
}
|
|
211
|
-
var ve = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ve || {}), I = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(I || {});
|
|
212
|
-
function P({ visible: e = !0, features: t = 0, ourProps: n, theirProps: r, ...l }) {
|
|
213
|
-
var a;
|
|
214
|
-
let u = Qe(r, n), o = Object.assign(l, { props: u });
|
|
215
|
-
if (e || t & 2 && u.static) return Ee(o);
|
|
216
|
-
if (t & 1) {
|
|
217
|
-
let i = (a = u.unmount) == null || a ? 0 : 1;
|
|
218
|
-
return M(i, { 0() {
|
|
219
|
-
return null;
|
|
220
|
-
}, 1() {
|
|
221
|
-
return Ee({ ...l, props: { ...u, hidden: !0, style: { display: "none" } } });
|
|
222
|
-
} });
|
|
223
|
-
}
|
|
224
|
-
return Ee(o);
|
|
225
|
-
}
|
|
226
|
-
function Ee({ props: e, attrs: t, slots: n, slot: r, name: l }) {
|
|
227
|
-
var a, u;
|
|
228
|
-
let { as: o, ...i } = Ze(e, ["unmount", "static"]), s = (a = n.default) == null ? void 0 : a.call(n, r), d = {};
|
|
229
|
-
if (r) {
|
|
230
|
-
let v = !1, c = [];
|
|
231
|
-
for (let [p, f] of Object.entries(r)) typeof f == "boolean" && (v = !0), f === !0 && c.push(p);
|
|
232
|
-
v && (d["data-headlessui-state"] = c.join(" "));
|
|
233
|
-
}
|
|
234
|
-
if (o === "template") {
|
|
235
|
-
if (s = Xe(s ?? []), Object.keys(i).length > 0 || Object.keys(t).length > 0) {
|
|
236
|
-
let [v, ...c] = s ?? [];
|
|
237
|
-
if (!xt(v) || c.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(t)).map((m) => m.trim()).filter((m, w, k) => k.indexOf(m) === w).sort((m, w) => m.localeCompare(w)).map((m) => ` - ${m}`).join(`
|
|
238
|
-
`), "", "You can apply a few solutions:", ['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((m) => ` - ${m}`).join(`
|
|
239
|
-
`)].join(`
|
|
240
|
-
`));
|
|
241
|
-
let p = Qe((u = v.props) != null ? u : {}, i, d), f = ft(v, p, !0);
|
|
242
|
-
for (let m in p) m.startsWith("on") && (f.props || (f.props = {}), f.props[m] = p[m]);
|
|
243
|
-
return f;
|
|
244
|
-
}
|
|
245
|
-
return Array.isArray(s) && s.length === 1 ? s[0] : s;
|
|
246
|
-
}
|
|
247
|
-
return S(o, Object.assign({}, i, d), { default: () => s });
|
|
248
|
-
}
|
|
249
|
-
function Xe(e) {
|
|
250
|
-
return e.flatMap((t) => t.type === _e ? Xe(t.children) : [t]);
|
|
251
|
-
}
|
|
252
|
-
function Qe(...e) {
|
|
253
|
-
if (e.length === 0) return {};
|
|
254
|
-
if (e.length === 1) return e[0];
|
|
255
|
-
let t = {}, n = {};
|
|
256
|
-
for (let r of e) for (let l in r) l.startsWith("on") && typeof r[l] == "function" ? (n[l] != null || (n[l] = []), n[l].push(r[l])) : t[l] = r[l];
|
|
257
|
-
if (t.disabled || t["aria-disabled"]) return Object.assign(t, Object.fromEntries(Object.keys(n).map((r) => [r, void 0])));
|
|
258
|
-
for (let r in n) Object.assign(t, { [r](l, ...a) {
|
|
259
|
-
let u = n[r];
|
|
260
|
-
for (let o of u) {
|
|
261
|
-
if (l instanceof Event && l.defaultPrevented) return;
|
|
262
|
-
o(l, ...a);
|
|
263
|
-
}
|
|
264
|
-
} });
|
|
265
|
-
return t;
|
|
266
|
-
}
|
|
267
|
-
function Ze(e, t = []) {
|
|
268
|
-
let n = Object.assign({}, e);
|
|
269
|
-
for (let r of t) r in n && delete n[r];
|
|
270
|
-
return n;
|
|
271
|
-
}
|
|
272
|
-
function xt(e) {
|
|
273
|
-
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
274
|
-
}
|
|
275
|
-
var me = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(me || {});
|
|
276
|
-
let Le = $({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
|
|
277
|
-
return () => {
|
|
278
|
-
var r;
|
|
279
|
-
let { features: l, ...a } = e, u = { "aria-hidden": (l & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
|
|
280
|
-
return P({ ourProps: u, theirProps: a, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
281
|
-
};
|
|
282
|
-
} }), Je = Symbol("Context");
|
|
283
|
-
var O = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(O || {});
|
|
284
|
-
function Mt() {
|
|
285
|
-
return ke() !== null;
|
|
286
|
-
}
|
|
287
|
-
function ke() {
|
|
288
|
-
return D(Je, null);
|
|
289
|
-
}
|
|
290
|
-
function Rt(e) {
|
|
291
|
-
x(Je, e);
|
|
292
|
-
}
|
|
293
|
-
var et = ((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))(et || {});
|
|
294
|
-
function Ht(e) {
|
|
295
|
-
function t() {
|
|
296
|
-
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
297
|
-
}
|
|
298
|
-
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
299
|
-
}
|
|
300
|
-
let V = [];
|
|
301
|
-
Ht(() => {
|
|
302
|
-
function e(t) {
|
|
303
|
-
t.target instanceof HTMLElement && t.target !== document.body && V[0] !== t.target && (V.unshift(t.target), V = V.filter((n) => n != null && n.isConnected), V.splice(10));
|
|
304
|
-
}
|
|
305
|
-
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 });
|
|
306
|
-
});
|
|
307
|
-
function tt(e, t, n, r) {
|
|
308
|
-
ne.isServer || C((l) => {
|
|
309
|
-
e = e ?? window, e.addEventListener(t, n, r), l(() => e.removeEventListener(t, n, r));
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
var ee = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(ee || {});
|
|
313
|
-
function Bt() {
|
|
314
|
-
let e = g(0);
|
|
315
|
-
return ze("keydown", (t) => {
|
|
316
|
-
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
317
|
-
}), e;
|
|
318
|
-
}
|
|
319
|
-
function nt(e) {
|
|
320
|
-
if (!e) return /* @__PURE__ */ new Set();
|
|
321
|
-
if (typeof e == "function") return new Set(e());
|
|
322
|
-
let t = /* @__PURE__ */ new Set();
|
|
323
|
-
for (let n of e.value) {
|
|
324
|
-
let r = E(n);
|
|
325
|
-
r instanceof HTMLElement && t.add(r);
|
|
326
|
-
}
|
|
327
|
-
return t;
|
|
328
|
-
}
|
|
329
|
-
var rt = ((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))(rt || {});
|
|
330
|
-
let Z = Object.assign($({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: g(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
331
|
-
let l = g(null);
|
|
332
|
-
r({ el: l, $el: l });
|
|
333
|
-
let a = h(() => X(l)), u = g(!1);
|
|
334
|
-
T(() => u.value = !0), N(() => u.value = !1), Ut({ ownerDocument: a }, h(() => u.value && !!(e.features & 16)));
|
|
335
|
-
let o = Wt({ ownerDocument: a, container: l, initialFocus: h(() => e.initialFocus) }, h(() => u.value && !!(e.features & 2)));
|
|
336
|
-
Vt({ ownerDocument: a, container: l, containers: e.containers, previousActiveElement: o }, h(() => u.value && !!(e.features & 8)));
|
|
337
|
-
let i = Bt();
|
|
338
|
-
function s(p) {
|
|
339
|
-
let f = E(l);
|
|
340
|
-
f && ((m) => m())(() => {
|
|
341
|
-
M(i.value, { [ee.Forwards]: () => {
|
|
342
|
-
pe(f, B.First, { skipElements: [p.relatedTarget] });
|
|
343
|
-
}, [ee.Backwards]: () => {
|
|
344
|
-
pe(f, B.Last, { skipElements: [p.relatedTarget] });
|
|
345
|
-
} });
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
let d = g(!1);
|
|
349
|
-
function v(p) {
|
|
350
|
-
p.key === "Tab" && (d.value = !0, requestAnimationFrame(() => {
|
|
351
|
-
d.value = !1;
|
|
352
|
-
}));
|
|
353
|
-
}
|
|
354
|
-
function c(p) {
|
|
355
|
-
if (!u.value) return;
|
|
356
|
-
let f = nt(e.containers);
|
|
357
|
-
E(l) instanceof HTMLElement && f.add(E(l));
|
|
358
|
-
let m = p.relatedTarget;
|
|
359
|
-
m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (lt(f, m) || (d.value ? pe(E(l), M(i.value, { [ee.Forwards]: () => B.Next, [ee.Backwards]: () => B.Previous }) | B.WrapAround, { relativeTo: p.target }) : p.target instanceof HTMLElement && _(p.target)));
|
|
360
|
-
}
|
|
361
|
-
return () => {
|
|
362
|
-
let p = {}, f = { ref: l, onKeydown: v, onFocusout: c }, { features: m, initialFocus: w, containers: k, ...L } = e;
|
|
363
|
-
return S(_e, [!!(m & 4) && S(Le, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: me.Focusable }), P({ ourProps: f, theirProps: { ...t, ...L }, slot: p, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && S(Le, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: me.Focusable })]);
|
|
364
|
-
};
|
|
365
|
-
} }), { features: rt });
|
|
366
|
-
function It(e) {
|
|
367
|
-
let t = g(V.slice());
|
|
368
|
-
return z([e], ([n], [r]) => {
|
|
369
|
-
r === !0 && n === !1 ? Ne(() => {
|
|
370
|
-
t.value.splice(0);
|
|
371
|
-
}) : r === !1 && n === !0 && (t.value = V.slice());
|
|
372
|
-
}, { flush: "post" }), () => {
|
|
373
|
-
var n;
|
|
374
|
-
return (n = t.value.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
function Ut({ ownerDocument: e }, t) {
|
|
378
|
-
let n = It(t);
|
|
379
|
-
T(() => {
|
|
380
|
-
C(() => {
|
|
381
|
-
var r, l;
|
|
382
|
-
t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((l = e.value) == null ? void 0 : l.body) && _(n());
|
|
383
|
-
}, { flush: "post" });
|
|
384
|
-
}), N(() => {
|
|
385
|
-
t.value && _(n());
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
function Wt({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
389
|
-
let l = g(null), a = g(!1);
|
|
390
|
-
return T(() => a.value = !0), N(() => a.value = !1), T(() => {
|
|
391
|
-
z([t, n, r], (u, o) => {
|
|
392
|
-
if (u.every((s, d) => o?.[d] === s) || !r.value) return;
|
|
393
|
-
let i = E(t);
|
|
394
|
-
i && Ne(() => {
|
|
395
|
-
var s, d;
|
|
396
|
-
if (!a.value) return;
|
|
397
|
-
let v = E(n), c = (s = e.value) == null ? void 0 : s.activeElement;
|
|
398
|
-
if (v) {
|
|
399
|
-
if (v === c) {
|
|
400
|
-
l.value = c;
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
} else if (i.contains(c)) {
|
|
404
|
-
l.value = c;
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
v ? _(v) : pe(i, B.First | B.NoScroll) === Ge.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), l.value = (d = e.value) == null ? void 0 : d.activeElement;
|
|
408
|
-
});
|
|
409
|
-
}, { immediate: !0, flush: "post" });
|
|
410
|
-
}), l;
|
|
411
|
-
}
|
|
412
|
-
function Vt({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, l) {
|
|
413
|
-
var a;
|
|
414
|
-
tt((a = e.value) == null ? void 0 : a.defaultView, "focus", (u) => {
|
|
415
|
-
if (!l.value) return;
|
|
416
|
-
let o = nt(n);
|
|
417
|
-
E(t) instanceof HTMLElement && o.add(E(t));
|
|
418
|
-
let i = r.value;
|
|
419
|
-
if (!i) return;
|
|
420
|
-
let s = u.target;
|
|
421
|
-
s && s instanceof HTMLElement ? lt(o, s) ? (r.value = s, _(s)) : (u.preventDefault(), u.stopPropagation(), _(i)) : _(r.value);
|
|
422
|
-
}, !0);
|
|
423
|
-
}
|
|
424
|
-
function lt(e, t) {
|
|
425
|
-
for (let n of e) if (n.contains(t)) return !0;
|
|
426
|
-
return !1;
|
|
427
|
-
}
|
|
428
|
-
function qt(e) {
|
|
429
|
-
let t = pt(e.getSnapshot());
|
|
430
|
-
return N(e.subscribe(() => {
|
|
431
|
-
t.value = e.getSnapshot();
|
|
432
|
-
})), t;
|
|
433
|
-
}
|
|
434
|
-
function _t(e, t) {
|
|
435
|
-
let n = e(), r = /* @__PURE__ */ new Set();
|
|
436
|
-
return { getSnapshot() {
|
|
437
|
-
return n;
|
|
438
|
-
}, subscribe(l) {
|
|
439
|
-
return r.add(l), () => r.delete(l);
|
|
440
|
-
}, dispatch(l, ...a) {
|
|
441
|
-
let u = t[l].call(n, ...a);
|
|
442
|
-
u && (n = u, r.forEach((o) => o()));
|
|
443
|
-
} };
|
|
444
|
-
}
|
|
445
|
-
function Gt() {
|
|
446
|
-
let e;
|
|
447
|
-
return { before({ doc: t }) {
|
|
448
|
-
var n;
|
|
449
|
-
let r = t.documentElement;
|
|
450
|
-
e = ((n = t.defaultView) != null ? n : window).innerWidth - r.clientWidth;
|
|
451
|
-
}, after({ doc: t, d: n }) {
|
|
452
|
-
let r = t.documentElement, l = r.clientWidth - r.offsetWidth, a = e - l;
|
|
453
|
-
n.style(r, "paddingRight", `${a}px`);
|
|
454
|
-
} };
|
|
455
|
-
}
|
|
456
|
-
function Yt() {
|
|
457
|
-
return Ke() ? { before({ doc: e, d: t, meta: n }) {
|
|
458
|
-
function r(l) {
|
|
459
|
-
return n.containers.flatMap((a) => a()).some((a) => a.contains(l));
|
|
460
|
-
}
|
|
461
|
-
t.microTask(() => {
|
|
462
|
-
var l;
|
|
463
|
-
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
464
|
-
let o = te();
|
|
465
|
-
o.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => o.dispose()));
|
|
466
|
-
}
|
|
467
|
-
let a = (l = window.scrollY) != null ? l : window.pageYOffset, u = null;
|
|
468
|
-
t.addEventListener(e, "click", (o) => {
|
|
469
|
-
if (o.target instanceof HTMLElement) try {
|
|
470
|
-
let i = o.target.closest("a");
|
|
471
|
-
if (!i) return;
|
|
472
|
-
let { hash: s } = new URL(i.href), d = e.querySelector(s);
|
|
473
|
-
d && !r(d) && (u = d);
|
|
474
|
-
} catch {
|
|
475
|
-
}
|
|
476
|
-
}, !0), t.addEventListener(e, "touchstart", (o) => {
|
|
477
|
-
if (o.target instanceof HTMLElement) if (r(o.target)) {
|
|
478
|
-
let i = o.target;
|
|
479
|
-
for (; i.parentElement && r(i.parentElement); ) i = i.parentElement;
|
|
480
|
-
t.style(i, "overscrollBehavior", "contain");
|
|
481
|
-
} else t.style(o.target, "touchAction", "none");
|
|
482
|
-
}), t.addEventListener(e, "touchmove", (o) => {
|
|
483
|
-
if (o.target instanceof HTMLElement) {
|
|
484
|
-
if (o.target.tagName === "INPUT") return;
|
|
485
|
-
if (r(o.target)) {
|
|
486
|
-
let i = o.target;
|
|
487
|
-
for (; i.parentElement && i.dataset.headlessuiPortal !== "" && !(i.scrollHeight > i.clientHeight || i.scrollWidth > i.clientWidth); ) i = i.parentElement;
|
|
488
|
-
i.dataset.headlessuiPortal === "" && o.preventDefault();
|
|
489
|
-
} else o.preventDefault();
|
|
490
|
-
}
|
|
491
|
-
}, { passive: !1 }), t.add(() => {
|
|
492
|
-
var o;
|
|
493
|
-
let i = (o = window.scrollY) != null ? o : window.pageYOffset;
|
|
494
|
-
a !== i && window.scrollTo(0, a), u && u.isConnected && (u.scrollIntoView({ block: "nearest" }), u = null);
|
|
495
|
-
});
|
|
496
|
-
});
|
|
497
|
-
} } : {};
|
|
498
|
-
}
|
|
499
|
-
function Kt() {
|
|
500
|
-
return { before({ doc: e, d: t }) {
|
|
501
|
-
t.style(e.documentElement, "overflow", "hidden");
|
|
502
|
-
} };
|
|
503
|
-
}
|
|
504
|
-
function zt(e) {
|
|
505
|
-
let t = {};
|
|
506
|
-
for (let n of e) Object.assign(t, n(t));
|
|
507
|
-
return t;
|
|
508
|
-
}
|
|
509
|
-
let q = _t(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
510
|
-
var n;
|
|
511
|
-
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: te(), meta: /* @__PURE__ */ new Set() };
|
|
512
|
-
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
513
|
-
}, POP(e, t) {
|
|
514
|
-
let n = this.get(e);
|
|
515
|
-
return n && (n.count--, n.meta.delete(t)), this;
|
|
516
|
-
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
517
|
-
let r = { doc: e, d: t, meta: zt(n) }, l = [Yt(), Gt(), Kt()];
|
|
518
|
-
l.forEach(({ before: a }) => a?.(r)), l.forEach(({ after: a }) => a?.(r));
|
|
519
|
-
}, SCROLL_ALLOW({ d: e }) {
|
|
520
|
-
e.dispose();
|
|
521
|
-
}, TEARDOWN({ doc: e }) {
|
|
522
|
-
this.delete(e);
|
|
523
|
-
} });
|
|
524
|
-
q.subscribe(() => {
|
|
525
|
-
let e = q.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
526
|
-
for (let [n] of e) t.set(n, n.documentElement.style.overflow);
|
|
527
|
-
for (let n of e.values()) {
|
|
528
|
-
let r = t.get(n.doc) === "hidden", l = n.count !== 0;
|
|
529
|
-
(l && !r || !l && r) && q.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && q.dispatch("TEARDOWN", n);
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
function Xt(e, t, n) {
|
|
533
|
-
let r = qt(q), l = h(() => {
|
|
534
|
-
let a = e.value ? r.value.get(e.value) : void 0;
|
|
535
|
-
return a ? a.count > 0 : !1;
|
|
536
|
-
});
|
|
537
|
-
return z([e, t], ([a, u], [o], i) => {
|
|
538
|
-
if (!a || !u) return;
|
|
539
|
-
q.dispatch("PUSH", a, n);
|
|
540
|
-
let s = !1;
|
|
541
|
-
i(() => {
|
|
542
|
-
s || (q.dispatch("POP", o ?? a, n), s = !0);
|
|
543
|
-
});
|
|
544
|
-
}, { immediate: !0 }), l;
|
|
545
|
-
}
|
|
546
|
-
let Se = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map();
|
|
547
|
-
function We(e, t = g(!0)) {
|
|
548
|
-
C((n) => {
|
|
549
|
-
var r;
|
|
550
|
-
if (!t.value) return;
|
|
551
|
-
let l = E(e);
|
|
552
|
-
if (!l) return;
|
|
553
|
-
n(function() {
|
|
554
|
-
var u;
|
|
555
|
-
if (!l) return;
|
|
556
|
-
let o = (u = J.get(l)) != null ? u : 1;
|
|
557
|
-
if (o === 1 ? J.delete(l) : J.set(l, o - 1), o !== 1) return;
|
|
558
|
-
let i = Se.get(l);
|
|
559
|
-
i && (i["aria-hidden"] === null ? l.removeAttribute("aria-hidden") : l.setAttribute("aria-hidden", i["aria-hidden"]), l.inert = i.inert, Se.delete(l));
|
|
560
|
-
});
|
|
561
|
-
let a = (r = J.get(l)) != null ? r : 0;
|
|
562
|
-
J.set(l, a + 1), a === 0 && (Se.set(l, { "aria-hidden": l.getAttribute("aria-hidden"), inert: l.inert }), l.setAttribute("aria-hidden", "true"), l.inert = !0);
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
function Qt({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
566
|
-
let r = g(null), l = X(r);
|
|
567
|
-
function a() {
|
|
568
|
-
var u, o, i;
|
|
569
|
-
let s = [];
|
|
570
|
-
for (let d of e) d !== null && (d instanceof HTMLElement ? s.push(d) : "value" in d && d.value instanceof HTMLElement && s.push(d.value));
|
|
571
|
-
if (t != null && t.value) for (let d of t.value) s.push(d);
|
|
572
|
-
for (let d of (u = l?.querySelectorAll("html > *, body > *")) != null ? u : []) d !== document.body && d !== document.head && d instanceof HTMLElement && d.id !== "headlessui-portal-root" && (d.contains(E(r)) || d.contains((i = (o = E(r)) == null ? void 0 : o.getRootNode()) == null ? void 0 : i.host) || s.some((v) => d.contains(v)) || s.push(d));
|
|
573
|
-
return s;
|
|
574
|
-
}
|
|
575
|
-
return { resolveContainers: a, contains(u) {
|
|
576
|
-
return a().some((o) => o.contains(u));
|
|
577
|
-
}, mainTreeNodeRef: r, MainTreeNode() {
|
|
578
|
-
return n != null ? null : S(Le, { features: me.Hidden, ref: r });
|
|
579
|
-
} };
|
|
580
|
-
}
|
|
581
|
-
let at = Symbol("ForcePortalRootContext");
|
|
582
|
-
function Zt() {
|
|
583
|
-
return D(at, !1);
|
|
584
|
-
}
|
|
585
|
-
let Oe = $({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
|
|
586
|
-
return x(at, e.force), () => {
|
|
587
|
-
let { force: r, ...l } = e;
|
|
588
|
-
return P({ theirProps: l, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
|
|
589
|
-
};
|
|
590
|
-
} }), ot = Symbol("StackContext");
|
|
591
|
-
var Pe = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Pe || {});
|
|
592
|
-
function Jt() {
|
|
593
|
-
return D(ot, () => {
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
function en({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
597
|
-
let l = Jt();
|
|
598
|
-
function a(...u) {
|
|
599
|
-
r?.(...u), l(...u);
|
|
600
|
-
}
|
|
601
|
-
T(() => {
|
|
602
|
-
z(t, (u, o) => {
|
|
603
|
-
u ? a(0, e, n) : o === !0 && a(1, e, n);
|
|
604
|
-
}, { immediate: !0, flush: "sync" });
|
|
605
|
-
}), N(() => {
|
|
606
|
-
t.value && a(1, e, n);
|
|
607
|
-
}), x(ot, a);
|
|
608
|
-
}
|
|
609
|
-
let ut = Symbol("DescriptionContext");
|
|
610
|
-
function tn() {
|
|
611
|
-
let e = D(ut, null);
|
|
612
|
-
if (e === null) throw new Error("Missing parent");
|
|
613
|
-
return e;
|
|
614
|
-
}
|
|
615
|
-
function nn({ slot: e = g({}), name: t = "Description", props: n = {} } = {}) {
|
|
616
|
-
let r = g([]);
|
|
617
|
-
function l(a) {
|
|
618
|
-
return r.value.push(a), () => {
|
|
619
|
-
let u = r.value.indexOf(a);
|
|
620
|
-
u !== -1 && r.value.splice(u, 1);
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
return x(ut, { register: l, slot: e, name: t, props: n }), h(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
624
|
-
}
|
|
625
|
-
$({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
626
|
-
var r;
|
|
627
|
-
let l = (r = e.id) != null ? r : `headlessui-description-${G()}`, a = tn();
|
|
628
|
-
return T(() => N(a.register(l))), () => {
|
|
629
|
-
let { name: u = "Description", slot: o = g({}), props: i = {} } = a, { ...s } = e, d = { ...Object.entries(i).reduce((v, [c, p]) => Object.assign(v, { [c]: vt(p) }), {}), id: l };
|
|
630
|
-
return P({ ourProps: d, theirProps: s, slot: o.value, attrs: t, slots: n, name: u });
|
|
631
|
-
};
|
|
632
|
-
} });
|
|
633
|
-
function rn(e) {
|
|
634
|
-
let t = X(e);
|
|
635
|
-
if (!t) {
|
|
636
|
-
if (e === null) return null;
|
|
637
|
-
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
638
|
-
}
|
|
639
|
-
let n = t.getElementById("headlessui-portal-root");
|
|
640
|
-
if (n) return n;
|
|
641
|
-
let r = t.createElement("div");
|
|
642
|
-
return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
|
|
643
|
-
}
|
|
644
|
-
const Fe = /* @__PURE__ */ new WeakMap();
|
|
645
|
-
function ln(e) {
|
|
646
|
-
var t;
|
|
647
|
-
return (t = Fe.get(e)) != null ? t : 0;
|
|
648
|
-
}
|
|
649
|
-
function Ve(e, t) {
|
|
650
|
-
let n = t(ln(e));
|
|
651
|
-
return n <= 0 ? Fe.delete(e) : Fe.set(e, n), n;
|
|
652
|
-
}
|
|
653
|
-
let it = $({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
654
|
-
let r = g(null), l = h(() => X(r)), a = Zt(), u = D(st, null), o = g(a === !0 || u == null ? rn(r.value) : u.resolveTarget());
|
|
655
|
-
o.value && Ve(o.value, (c) => c + 1);
|
|
656
|
-
let i = g(!1);
|
|
657
|
-
T(() => {
|
|
658
|
-
i.value = !0;
|
|
659
|
-
}), C(() => {
|
|
660
|
-
a || u != null && (o.value = u.resolveTarget());
|
|
661
|
-
});
|
|
662
|
-
let s = D(Ae, null), d = !1, v = mt();
|
|
663
|
-
return z(r, () => {
|
|
664
|
-
if (d || !s) return;
|
|
665
|
-
let c = E(r);
|
|
666
|
-
c && (N(s.register(c), v), d = !0);
|
|
667
|
-
}), N(() => {
|
|
668
|
-
var c, p;
|
|
669
|
-
let f = (c = l.value) == null ? void 0 : c.getElementById("headlessui-portal-root");
|
|
670
|
-
!f || o.value !== f || Ve(o.value, (m) => m - 1) || o.value.children.length > 0 || (p = o.value.parentElement) == null || p.removeChild(o.value);
|
|
671
|
-
}), () => {
|
|
672
|
-
if (!i.value || o.value === null) return null;
|
|
673
|
-
let c = { ref: r, "data-headlessui-portal": "" };
|
|
674
|
-
return S(ht, { to: o.value }, P({ ourProps: c, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
675
|
-
};
|
|
676
|
-
} }), Ae = Symbol("PortalParentContext");
|
|
677
|
-
function an() {
|
|
678
|
-
let e = D(Ae, null), t = g([]);
|
|
679
|
-
function n(a) {
|
|
680
|
-
return t.value.push(a), e && e.register(a), () => r(a);
|
|
681
|
-
}
|
|
682
|
-
function r(a) {
|
|
683
|
-
let u = t.value.indexOf(a);
|
|
684
|
-
u !== -1 && t.value.splice(u, 1), e && e.unregister(a);
|
|
685
|
-
}
|
|
686
|
-
let l = { register: n, unregister: r, portals: t };
|
|
687
|
-
return [t, $({ name: "PortalWrapper", setup(a, { slots: u }) {
|
|
688
|
-
return x(Ae, l), () => {
|
|
689
|
-
var o;
|
|
690
|
-
return (o = u.default) == null ? void 0 : o.call(u);
|
|
691
|
-
};
|
|
692
|
-
} })];
|
|
693
|
-
}
|
|
694
|
-
let st = Symbol("PortalGroupContext"), on = $({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
695
|
-
let r = gt({ resolveTarget() {
|
|
696
|
-
return e.target;
|
|
697
|
-
} });
|
|
698
|
-
return x(st, r), () => {
|
|
699
|
-
let { target: l, ...a } = e;
|
|
700
|
-
return P({ theirProps: a, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
|
|
701
|
-
};
|
|
702
|
-
} });
|
|
703
|
-
var un = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(un || {});
|
|
704
|
-
let De = Symbol("DialogContext");
|
|
705
|
-
function re(e) {
|
|
706
|
-
let t = D(De, null);
|
|
707
|
-
if (t === null) {
|
|
708
|
-
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
709
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n, re), n;
|
|
710
|
-
}
|
|
711
|
-
return t;
|
|
712
|
-
}
|
|
713
|
-
let ce = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bn = $({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: ce }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: l }) {
|
|
714
|
-
var a, u;
|
|
715
|
-
let o = (a = e.id) != null ? a : `headlessui-dialog-${G()}`, i = g(!1);
|
|
716
|
-
T(() => {
|
|
717
|
-
i.value = !0;
|
|
718
|
-
});
|
|
719
|
-
let s = !1, d = h(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (s || (s = !0, console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), v = g(0), c = ke(), p = h(() => e.open === ce && c !== null ? (c.value & O.Open) === O.Open : e.open), f = g(null), m = h(() => X(f));
|
|
720
|
-
if (l({ el: f, $el: f }), !(e.open !== ce || c !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
721
|
-
if (typeof p.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value === ce ? void 0 : e.open}`);
|
|
722
|
-
let w = h(() => i.value && p.value ? 0 : 1), k = h(() => w.value === 0), L = h(() => v.value > 1), U = D(De, null) !== null, [le, ae] = an(), { resolveContainers: Y, mainTreeNodeRef: oe, MainTreeNode: ue } = Qt({ portals: le, defaultContainers: [h(() => {
|
|
723
|
-
var y;
|
|
724
|
-
return (y = K.panelRef.value) != null ? y : f.value;
|
|
725
|
-
})] }), ge = h(() => L.value ? "parent" : "leaf"), ie = h(() => c !== null ? (c.value & O.Closing) === O.Closing : !1), ye = h(() => U || ie.value ? !1 : k.value), we = h(() => {
|
|
726
|
-
var y, b, F;
|
|
727
|
-
return (F = Array.from((b = (y = m.value) == null ? void 0 : y.querySelectorAll("body > *")) != null ? b : []).find((A) => A.id === "headlessui-portal-root" ? !1 : A.contains(E(oe)) && A instanceof HTMLElement)) != null ? F : null;
|
|
728
|
-
});
|
|
729
|
-
We(we, ye);
|
|
730
|
-
let j = h(() => L.value ? !0 : k.value), Q = h(() => {
|
|
731
|
-
var y, b, F;
|
|
732
|
-
return (F = Array.from((b = (y = m.value) == null ? void 0 : y.querySelectorAll("[data-headlessui-portal]")) != null ? b : []).find((A) => A.contains(E(oe)) && A instanceof HTMLElement)) != null ? F : null;
|
|
733
|
-
});
|
|
734
|
-
We(Q, j), en({ type: "Dialog", enabled: h(() => w.value === 0), element: f, onUpdate: (y, b) => {
|
|
735
|
-
if (b === "Dialog") return M(y, { [Pe.Add]: () => v.value += 1, [Pe.Remove]: () => v.value -= 1 });
|
|
736
|
-
} });
|
|
737
|
-
let R = nn({ name: "DialogDescription", slot: h(() => ({ open: p.value })) }), H = g(null), K = { titleId: H, panelRef: g(null), dialogState: w, setTitleId(y) {
|
|
738
|
-
H.value !== y && (H.value = y);
|
|
739
|
-
}, close() {
|
|
740
|
-
t("close", !1);
|
|
741
|
-
} };
|
|
742
|
-
x(De, K);
|
|
743
|
-
let Me = h(() => !(!k.value || L.value));
|
|
744
|
-
jt(Y, (y, b) => {
|
|
745
|
-
y.preventDefault(), K.close(), yt(() => b?.focus());
|
|
746
|
-
}, Me);
|
|
747
|
-
let Re = h(() => !(L.value || w.value !== 0));
|
|
748
|
-
tt((u = m.value) == null ? void 0 : u.defaultView, "keydown", (y) => {
|
|
749
|
-
Re.value && (y.defaultPrevented || y.key === et.Escape && (y.preventDefault(), y.stopPropagation(), K.close()));
|
|
750
|
-
});
|
|
751
|
-
let He = h(() => !(ie.value || w.value !== 0 || U));
|
|
752
|
-
return Xt(m, He, (y) => {
|
|
753
|
-
var b;
|
|
754
|
-
return { containers: [...(b = y.containers) != null ? b : [], Y] };
|
|
755
|
-
}), C((y) => {
|
|
756
|
-
if (w.value !== 0) return;
|
|
757
|
-
let b = E(f);
|
|
758
|
-
if (!b) return;
|
|
759
|
-
let F = new ResizeObserver((A) => {
|
|
760
|
-
for (let be of A) {
|
|
761
|
-
let se = be.target.getBoundingClientRect();
|
|
762
|
-
se.x === 0 && se.y === 0 && se.width === 0 && se.height === 0 && K.close();
|
|
763
|
-
}
|
|
764
|
-
});
|
|
765
|
-
F.observe(b), y(() => F.disconnect());
|
|
766
|
-
}), () => {
|
|
767
|
-
let { open: y, initialFocus: b, ...F } = e, A = { ...n, ref: f, id: o, role: d.value, "aria-modal": w.value === 0 ? !0 : void 0, "aria-labelledby": H.value, "aria-describedby": R.value }, be = { open: w.value === 0 };
|
|
768
|
-
return S(Oe, { force: !0 }, () => [S(it, () => S(on, { target: f.value }, () => S(Oe, { force: !1 }, () => S(Z, { initialFocus: b, containers: Y, features: k.value ? M(ge.value, { parent: Z.features.RestoreFocus, leaf: Z.features.All & ~Z.features.FocusLock }) : Z.features.None }, () => S(ae, {}, () => P({ ourProps: A, theirProps: { ...F, ...n }, slot: be, attrs: n, slots: r, visible: w.value === 0, features: ve.RenderStrategy | ve.Static, name: "Dialog" })))))), S(ue)]);
|
|
769
|
-
};
|
|
770
|
-
} });
|
|
771
|
-
$({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
772
|
-
var r;
|
|
773
|
-
let l = (r = e.id) != null ? r : `headlessui-dialog-overlay-${G()}`, a = re("DialogOverlay");
|
|
774
|
-
function u(o) {
|
|
775
|
-
o.target === o.currentTarget && (o.preventDefault(), o.stopPropagation(), a.close());
|
|
776
|
-
}
|
|
777
|
-
return () => {
|
|
778
|
-
let { ...o } = e;
|
|
779
|
-
return P({ ourProps: { id: l, "aria-hidden": !0, onClick: u }, theirProps: o, slot: { open: a.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogOverlay" });
|
|
780
|
-
};
|
|
781
|
-
} });
|
|
782
|
-
$({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
783
|
-
var l;
|
|
784
|
-
let a = (l = e.id) != null ? l : `headlessui-dialog-backdrop-${G()}`, u = re("DialogBackdrop"), o = g(null);
|
|
785
|
-
return r({ el: o, $el: o }), T(() => {
|
|
786
|
-
if (u.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
787
|
-
}), () => {
|
|
788
|
-
let { ...i } = e, s = { id: a, ref: o, "aria-hidden": !0 };
|
|
789
|
-
return S(Oe, { force: !0 }, () => S(it, () => P({ ourProps: s, theirProps: { ...t, ...i }, slot: { open: u.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
|
|
790
|
-
};
|
|
791
|
-
} });
|
|
792
|
-
let En = $({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
793
|
-
var l;
|
|
794
|
-
let a = (l = e.id) != null ? l : `headlessui-dialog-panel-${G()}`, u = re("DialogPanel");
|
|
795
|
-
r({ el: u.panelRef, $el: u.panelRef });
|
|
796
|
-
function o(i) {
|
|
797
|
-
i.stopPropagation();
|
|
798
|
-
}
|
|
799
|
-
return () => {
|
|
800
|
-
let { ...i } = e, s = { id: a, ref: u.panelRef, onClick: o };
|
|
801
|
-
return P({ ourProps: s, theirProps: i, slot: { open: u.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
|
|
802
|
-
};
|
|
803
|
-
} }), Sn = $({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
804
|
-
var r;
|
|
805
|
-
let l = (r = e.id) != null ? r : `headlessui-dialog-title-${G()}`, a = re("DialogTitle");
|
|
806
|
-
return T(() => {
|
|
807
|
-
a.setTitleId(l), N(() => a.setTitleId(null));
|
|
808
|
-
}), () => {
|
|
809
|
-
let { ...u } = e;
|
|
810
|
-
return P({ ourProps: { id: l }, theirProps: u, slot: { open: a.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
|
|
811
|
-
};
|
|
812
|
-
} });
|
|
813
|
-
function sn(e) {
|
|
814
|
-
let t = { called: !1 };
|
|
815
|
-
return (...n) => {
|
|
816
|
-
if (!t.called) return t.called = !0, e(...n);
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
function Te(e, ...t) {
|
|
820
|
-
e && t.length > 0 && e.classList.add(...t);
|
|
821
|
-
}
|
|
822
|
-
function fe(e, ...t) {
|
|
823
|
-
e && t.length > 0 && e.classList.remove(...t);
|
|
824
|
-
}
|
|
825
|
-
var Ce = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Ce || {});
|
|
826
|
-
function dn(e, t) {
|
|
827
|
-
let n = te();
|
|
828
|
-
if (!e) return n.dispose;
|
|
829
|
-
let { transitionDuration: r, transitionDelay: l } = getComputedStyle(e), [a, u] = [r, l].map((o) => {
|
|
830
|
-
let [i = 0] = o.split(",").filter(Boolean).map((s) => s.includes("ms") ? parseFloat(s) : parseFloat(s) * 1e3).sort((s, d) => d - s);
|
|
831
|
-
return i;
|
|
832
|
-
});
|
|
833
|
-
return a !== 0 ? n.setTimeout(() => t("finished"), a + u) : t("finished"), n.add(() => t("cancelled")), n.dispose;
|
|
834
|
-
}
|
|
835
|
-
function qe(e, t, n, r, l, a) {
|
|
836
|
-
let u = te(), o = a !== void 0 ? sn(a) : () => {
|
|
837
|
-
};
|
|
838
|
-
return fe(e, ...l), Te(e, ...t, ...n), u.nextFrame(() => {
|
|
839
|
-
fe(e, ...n), Te(e, ...r), u.add(dn(e, (i) => (fe(e, ...r, ...t), Te(e, ...l), o(i))));
|
|
840
|
-
}), u.add(() => fe(e, ...t, ...n, ...r, ...l)), u.add(() => o("cancelled")), u.dispose;
|
|
841
|
-
}
|
|
842
|
-
function W(e = "") {
|
|
843
|
-
return e.split(/\s+/).filter((t) => t.length > 1);
|
|
844
|
-
}
|
|
845
|
-
let je = Symbol("TransitionContext");
|
|
846
|
-
var cn = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(cn || {});
|
|
847
|
-
function fn() {
|
|
848
|
-
return D(je, null) !== null;
|
|
849
|
-
}
|
|
850
|
-
function pn() {
|
|
851
|
-
let e = D(je, null);
|
|
852
|
-
if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
853
|
-
return e;
|
|
854
|
-
}
|
|
855
|
-
function vn() {
|
|
856
|
-
let e = D(xe, null);
|
|
857
|
-
if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
858
|
-
return e;
|
|
859
|
-
}
|
|
860
|
-
let xe = Symbol("NestingContext");
|
|
861
|
-
function he(e) {
|
|
862
|
-
return "children" in e ? he(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
|
|
863
|
-
}
|
|
864
|
-
function dt(e) {
|
|
865
|
-
let t = g([]), n = g(!1);
|
|
866
|
-
T(() => n.value = !0), N(() => n.value = !1);
|
|
867
|
-
function r(a, u = I.Hidden) {
|
|
868
|
-
let o = t.value.findIndex(({ id: i }) => i === a);
|
|
869
|
-
o !== -1 && (M(u, { [I.Unmount]() {
|
|
870
|
-
t.value.splice(o, 1);
|
|
871
|
-
}, [I.Hidden]() {
|
|
872
|
-
t.value[o].state = "hidden";
|
|
873
|
-
} }), !he(t) && n.value && e?.());
|
|
874
|
-
}
|
|
875
|
-
function l(a) {
|
|
876
|
-
let u = t.value.find(({ id: o }) => o === a);
|
|
877
|
-
return u ? u.state !== "visible" && (u.state = "visible") : t.value.push({ id: a, state: "visible" }), () => r(a, I.Unmount);
|
|
878
|
-
}
|
|
879
|
-
return { children: t, register: l, unregister: r };
|
|
880
|
-
}
|
|
881
|
-
let ct = ve.RenderStrategy, mn = $({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: l }) {
|
|
882
|
-
let a = g(0);
|
|
883
|
-
function u() {
|
|
884
|
-
a.value |= O.Opening, t("beforeEnter");
|
|
885
|
-
}
|
|
886
|
-
function o() {
|
|
887
|
-
a.value &= ~O.Opening, t("afterEnter");
|
|
888
|
-
}
|
|
889
|
-
function i() {
|
|
890
|
-
a.value |= O.Closing, t("beforeLeave");
|
|
891
|
-
}
|
|
892
|
-
function s() {
|
|
893
|
-
a.value &= ~O.Closing, t("afterLeave");
|
|
894
|
-
}
|
|
895
|
-
if (!fn() && Mt()) return () => S(gn, { ...e, onBeforeEnter: u, onAfterEnter: o, onBeforeLeave: i, onAfterLeave: s }, r);
|
|
896
|
-
let d = g(null), v = h(() => e.unmount ? I.Unmount : I.Hidden);
|
|
897
|
-
l({ el: d, $el: d });
|
|
898
|
-
let { show: c, appear: p } = pn(), { register: f, unregister: m } = vn(), w = g(c.value ? "visible" : "hidden"), k = { value: !0 }, L = G(), U = { value: !1 }, le = dt(() => {
|
|
899
|
-
!U.value && w.value !== "hidden" && (w.value = "hidden", m(L), s());
|
|
900
|
-
});
|
|
901
|
-
T(() => {
|
|
902
|
-
let j = f(L);
|
|
903
|
-
N(j);
|
|
904
|
-
}), C(() => {
|
|
905
|
-
if (v.value === I.Hidden && L) {
|
|
906
|
-
if (c.value && w.value !== "visible") {
|
|
907
|
-
w.value = "visible";
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
M(w.value, { hidden: () => m(L), visible: () => f(L) });
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
let ae = W(e.enter), Y = W(e.enterFrom), oe = W(e.enterTo), ue = W(e.entered), ge = W(e.leave), ie = W(e.leaveFrom), ye = W(e.leaveTo);
|
|
914
|
-
T(() => {
|
|
915
|
-
C(() => {
|
|
916
|
-
if (w.value === "visible") {
|
|
917
|
-
let j = E(d);
|
|
918
|
-
if (j instanceof Comment && j.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
919
|
-
}
|
|
920
|
-
});
|
|
921
|
-
});
|
|
922
|
-
function we(j) {
|
|
923
|
-
let Q = k.value && !p.value, R = E(d);
|
|
924
|
-
!R || !(R instanceof HTMLElement) || Q || (U.value = !0, c.value && u(), c.value || i(), j(c.value ? qe(R, ae, Y, oe, ue, (H) => {
|
|
925
|
-
U.value = !1, H === Ce.Finished && o();
|
|
926
|
-
}) : qe(R, ge, ie, ye, ue, (H) => {
|
|
927
|
-
U.value = !1, H === Ce.Finished && (he(le) || (w.value = "hidden", m(L), s()));
|
|
928
|
-
})));
|
|
929
|
-
}
|
|
930
|
-
return T(() => {
|
|
931
|
-
z([c], (j, Q, R) => {
|
|
932
|
-
we(R), k.value = !1;
|
|
933
|
-
}, { immediate: !0 });
|
|
934
|
-
}), x(xe, le), Rt(h(() => M(w.value, { visible: O.Open, hidden: O.Closed }) | a.value)), () => {
|
|
935
|
-
let { appear: j, show: Q, enter: R, enterFrom: H, enterTo: K, entered: Me, leave: Re, leaveFrom: He, leaveTo: y, ...b } = e, F = { ref: d }, A = { ...b, ...p.value && c.value && ne.isServer ? { class: wt([n.class, b.class, ...ae, ...Y]) } : {} };
|
|
936
|
-
return P({ theirProps: A, ourProps: F, slot: {}, slots: r, attrs: n, features: ct, visible: w.value === "visible", name: "TransitionChild" });
|
|
937
|
-
};
|
|
938
|
-
} }), hn = mn, gn = $({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
|
|
939
|
-
let l = ke(), a = h(() => e.show === null && l !== null ? (l.value & O.Open) === O.Open : e.show);
|
|
940
|
-
C(() => {
|
|
941
|
-
if (![!0, !1].includes(a.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
942
|
-
});
|
|
943
|
-
let u = g(a.value ? "visible" : "hidden"), o = dt(() => {
|
|
944
|
-
u.value = "hidden";
|
|
945
|
-
}), i = g(!0), s = { show: a, appear: h(() => e.appear || !i.value) };
|
|
946
|
-
return T(() => {
|
|
947
|
-
C(() => {
|
|
948
|
-
i.value = !1, a.value ? u.value = "visible" : he(o) || (u.value = "hidden");
|
|
949
|
-
});
|
|
950
|
-
}), x(xe, o), x(je, s), () => {
|
|
951
|
-
let d = Ze(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), v = { unmount: e.unmount };
|
|
952
|
-
return P({ ourProps: { ...v, as: "template" }, theirProps: {}, slot: {}, slots: { ...r, default: () => [S(hn, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...v, ...d }, r.default)] }, attrs: {}, features: ct, visible: u.value === "visible", name: "Transition" });
|
|
953
|
-
};
|
|
954
|
-
} });
|
|
955
|
-
export {
|
|
956
|
-
En as G,
|
|
957
|
-
gn as S,
|
|
958
|
-
Sn as V,
|
|
959
|
-
bn as Y,
|
|
960
|
-
mn as h
|
|
961
|
-
};
|