@pastweb/vue 2.0.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 +21 -0
- package/README.md +1455 -0
- package/dist/EntryAdapter/EntryAdapter.cjs +6 -0
- package/dist/EntryAdapter/EntryAdapter.cjs.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.js +7 -0
- package/dist/EntryAdapter/EntryAdapter.js.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.vue.d.cts +36 -0
- package/dist/EntryAdapter/EntryAdapter.vue.d.ts +37 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs +62 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs.map +1 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js +62 -0
- package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js.map +1 -0
- package/dist/EntryAdapter/constants.cjs +14 -0
- package/dist/EntryAdapter/constants.cjs.map +1 -0
- package/dist/EntryAdapter/constants.d.cts +14 -0
- package/dist/EntryAdapter/constants.d.ts +14 -0
- package/dist/EntryAdapter/constants.js +13 -0
- package/dist/EntryAdapter/constants.js.map +1 -0
- package/dist/EntryAdapter/index.cjs +3 -0
- package/dist/EntryAdapter/index.d.cts +2 -0
- package/dist/EntryAdapter/index.d.ts +2 -0
- package/dist/EntryAdapter/index.js +2 -0
- package/dist/EntryAdapter/types.cjs +0 -0
- package/dist/EntryAdapter/types.d.cts +44 -0
- package/dist/EntryAdapter/types.d.ts +44 -0
- package/dist/EntryAdapter/types.js +0 -0
- package/dist/EntryAdapter/utils.cjs +62 -0
- package/dist/EntryAdapter/utils.cjs.map +1 -0
- package/dist/EntryAdapter/utils.d.cts +36 -0
- package/dist/EntryAdapter/utils.d.ts +36 -0
- package/dist/EntryAdapter/utils.js +60 -0
- package/dist/EntryAdapter/utils.js.map +1 -0
- package/dist/Island/Island.cjs +6 -0
- package/dist/Island/Island.cjs.map +1 -0
- package/dist/Island/Island.js +7 -0
- package/dist/Island/Island.js.map +1 -0
- package/dist/Island/Island.vue.d.cts +22 -0
- package/dist/Island/Island.vue.d.ts +23 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs +145 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/Island/constants.cjs +12 -0
- package/dist/Island/constants.cjs.map +1 -0
- package/dist/Island/constants.d.cts +11 -0
- package/dist/Island/constants.d.ts +11 -0
- package/dist/Island/constants.js +10 -0
- package/dist/Island/constants.js.map +1 -0
- package/dist/Island/index.cjs +9 -0
- package/dist/Island/index.d.cts +5 -0
- package/dist/Island/index.d.ts +5 -0
- package/dist/Island/index.js +4 -0
- package/dist/Island/types.cjs +0 -0
- package/dist/Island/types.d.cts +18 -0
- package/dist/Island/types.d.ts +18 -0
- package/dist/Island/types.js +0 -0
- package/dist/Island/useIsland.cjs +23 -0
- package/dist/Island/useIsland.cjs.map +1 -0
- package/dist/Island/useIsland.d.cts +15 -0
- package/dist/Island/useIsland.d.ts +15 -0
- package/dist/Island/useIsland.js +21 -0
- package/dist/Island/useIsland.js.map +1 -0
- package/dist/Render/Render.cjs +6 -0
- package/dist/Render/Render.cjs.map +1 -0
- package/dist/Render/Render.js +7 -0
- package/dist/Render/Render.js.map +1 -0
- package/dist/Render/Render.vue.d.cts +10 -0
- package/dist/Render/Render.vue.d.ts +11 -0
- package/dist/Render/Render.vue_vue_type_script_lang.cjs +47 -0
- package/dist/Render/Render.vue_vue_type_script_lang.cjs.map +1 -0
- package/dist/Render/Render.vue_vue_type_script_lang.js +47 -0
- package/dist/Render/Render.vue_vue_type_script_lang.js.map +1 -0
- package/dist/Render/index.cjs +3 -0
- package/dist/Render/index.d.cts +3 -0
- package/dist/Render/index.d.ts +3 -0
- package/dist/Render/index.js +2 -0
- package/dist/Render/types.cjs +0 -0
- package/dist/Render/types.d.cts +21 -0
- package/dist/Render/types.d.ts +21 -0
- package/dist/Render/types.js +0 -0
- package/dist/Slot/Slot.cjs +89 -0
- package/dist/Slot/Slot.cjs.map +1 -0
- package/dist/Slot/Slot.d.cts +38 -0
- package/dist/Slot/Slot.d.ts +39 -0
- package/dist/Slot/Slot.js +89 -0
- package/dist/Slot/Slot.js.map +1 -0
- package/dist/Slot/index.cjs +3 -0
- package/dist/Slot/index.d.cts +3 -0
- package/dist/Slot/index.d.ts +3 -0
- package/dist/Slot/index.js +2 -0
- package/dist/Slot/types.cjs +0 -0
- package/dist/Slot/types.d.cts +17 -0
- package/dist/Slot/types.d.ts +17 -0
- package/dist/Slot/types.js +0 -0
- package/dist/_virtual/_rolldown/runtime.cjs +4 -0
- package/dist/api/hooks/index.cjs +20 -0
- package/dist/api/hooks/index.d.cts +12 -0
- package/dist/api/hooks/index.d.ts +12 -0
- package/dist/api/hooks/index.js +13 -0
- package/dist/api/hooks/reuseQuery/index.cjs +4 -0
- package/dist/api/hooks/reuseQuery/index.d.cts +2 -0
- package/dist/api/hooks/reuseQuery/index.d.ts +2 -0
- package/dist/api/hooks/reuseQuery/index.js +2 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.cjs +44 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.cjs.map +1 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.d.cts +37 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.d.ts +37 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.js +42 -0
- package/dist/api/hooks/reuseQuery/reuseQuery.js.map +1 -0
- package/dist/api/hooks/useApiQueryCache/index.cjs +3 -0
- package/dist/api/hooks/useApiQueryCache/index.d.cts +2 -0
- package/dist/api/hooks/useApiQueryCache/index.d.ts +2 -0
- package/dist/api/hooks/useApiQueryCache/index.js +2 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs +31 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs.map +1 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.cts +24 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.ts +24 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js +30 -0
- package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js.map +1 -0
- package/dist/api/hooks/useInfiniteQuery/index.cjs +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.d.cts +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.d.ts +3 -0
- package/dist/api/hooks/useInfiniteQuery/index.js +2 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs +34 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs.map +1 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.cts +29 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts +29 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js +33 -0
- package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js.map +1 -0
- package/dist/api/hooks/useMutation/index.cjs +3 -0
- package/dist/api/hooks/useMutation/index.d.cts +3 -0
- package/dist/api/hooks/useMutation/index.d.ts +3 -0
- package/dist/api/hooks/useMutation/index.js +2 -0
- package/dist/api/hooks/useMutation/useMutation.cjs +30 -0
- package/dist/api/hooks/useMutation/useMutation.cjs.map +1 -0
- package/dist/api/hooks/useMutation/useMutation.d.cts +25 -0
- package/dist/api/hooks/useMutation/useMutation.d.ts +25 -0
- package/dist/api/hooks/useMutation/useMutation.js +29 -0
- package/dist/api/hooks/useMutation/useMutation.js.map +1 -0
- package/dist/api/hooks/useQueries/index.cjs +3 -0
- package/dist/api/hooks/useQueries/index.d.cts +3 -0
- package/dist/api/hooks/useQueries/index.d.ts +3 -0
- package/dist/api/hooks/useQueries/index.js +2 -0
- package/dist/api/hooks/useQueries/useQueries.cjs +32 -0
- package/dist/api/hooks/useQueries/useQueries.cjs.map +1 -0
- package/dist/api/hooks/useQueries/useQueries.d.cts +28 -0
- package/dist/api/hooks/useQueries/useQueries.d.ts +28 -0
- package/dist/api/hooks/useQueries/useQueries.js +31 -0
- package/dist/api/hooks/useQueries/useQueries.js.map +1 -0
- package/dist/api/hooks/useQuery/index.cjs +3 -0
- package/dist/api/hooks/useQuery/index.d.cts +3 -0
- package/dist/api/hooks/useQuery/index.d.ts +3 -0
- package/dist/api/hooks/useQuery/index.js +2 -0
- package/dist/api/hooks/useQuery/useQuery.cjs +30 -0
- package/dist/api/hooks/useQuery/useQuery.cjs.map +1 -0
- package/dist/api/hooks/useQuery/useQuery.d.cts +25 -0
- package/dist/api/hooks/useQuery/useQuery.d.ts +25 -0
- package/dist/api/hooks/useQuery/useQuery.js +29 -0
- package/dist/api/hooks/useQuery/useQuery.js.map +1 -0
- package/dist/api/hooks/utils/index.cjs +4 -0
- package/dist/api/hooks/utils/index.d.cts +2 -0
- package/dist/api/hooks/utils/index.d.ts +2 -0
- package/dist/api/hooks/utils/index.js +2 -0
- package/dist/api/hooks/utils/useReactiveRender.cjs +56 -0
- package/dist/api/hooks/utils/useReactiveRender.cjs.map +1 -0
- package/dist/api/hooks/utils/useReactiveRender.d.cts +29 -0
- package/dist/api/hooks/utils/useReactiveRender.d.ts +29 -0
- package/dist/api/hooks/utils/useReactiveRender.js +54 -0
- package/dist/api/hooks/utils/useReactiveRender.js.map +1 -0
- package/dist/api/index.cjs +18 -0
- package/dist/api/index.d.cts +15 -0
- package/dist/api/index.d.ts +15 -0
- package/dist/api/index.js +10 -0
- package/dist/api/installApiCache/index.cjs +3 -0
- package/dist/api/installApiCache/index.d.cts +3 -0
- package/dist/api/installApiCache/index.d.ts +3 -0
- package/dist/api/installApiCache/index.js +2 -0
- package/dist/api/installApiCache/installApiCache.cjs +35 -0
- package/dist/api/installApiCache/installApiCache.cjs.map +1 -0
- package/dist/api/installApiCache/installApiCache.d.cts +29 -0
- package/dist/api/installApiCache/installApiCache.d.ts +29 -0
- package/dist/api/installApiCache/installApiCache.js +34 -0
- package/dist/api/installApiCache/installApiCache.js.map +1 -0
- package/dist/api/installApiCache/types.cjs +0 -0
- package/dist/api/installApiCache/types.d.cts +21 -0
- package/dist/api/installApiCache/types.d.ts +21 -0
- package/dist/api/installApiCache/types.js +0 -0
- package/dist/api/types.cjs +0 -0
- package/dist/api/types.d.cts +2 -0
- package/dist/api/types.d.ts +2 -0
- package/dist/api/types.js +0 -0
- package/dist/computed/computed.cjs +28 -0
- package/dist/computed/computed.cjs.map +1 -0
- package/dist/computed/computed.d.cts +25 -0
- package/dist/computed/computed.d.ts +25 -0
- package/dist/computed/computed.js +27 -0
- package/dist/computed/computed.js.map +1 -0
- package/dist/computed/index.cjs +3 -0
- package/dist/computed/index.d.cts +2 -0
- package/dist/computed/index.d.ts +2 -0
- package/dist/computed/index.js +2 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.cjs +6 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.js +7 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.js.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.cts +6 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.ts +7 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs +35 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/createEntry/UpdateEntry/Vnode.cjs +19 -0
- package/dist/createEntry/UpdateEntry/Vnode.cjs.map +1 -0
- package/dist/createEntry/UpdateEntry/Vnode.d.cts +20 -0
- package/dist/createEntry/UpdateEntry/Vnode.d.ts +20 -0
- package/dist/createEntry/UpdateEntry/Vnode.js +18 -0
- package/dist/createEntry/UpdateEntry/Vnode.js.map +1 -0
- package/dist/createEntry/UpdateEntry/index.cjs +3 -0
- package/dist/createEntry/UpdateEntry/index.d.cts +3 -0
- package/dist/createEntry/UpdateEntry/index.d.ts +3 -0
- package/dist/createEntry/UpdateEntry/index.js +2 -0
- package/dist/createEntry/UpdateEntry/types.cjs +0 -0
- package/dist/createEntry/UpdateEntry/types.d.cts +18 -0
- package/dist/createEntry/UpdateEntry/types.d.ts +18 -0
- package/dist/createEntry/UpdateEntry/types.js +0 -0
- package/dist/createEntry/WaitFor/WaitFor.cjs +6 -0
- package/dist/createEntry/WaitFor/WaitFor.cjs.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.js +7 -0
- package/dist/createEntry/WaitFor/WaitFor.js.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.vue.d.cts +6 -0
- package/dist/createEntry/WaitFor/WaitFor.vue.d.ts +7 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs +50 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/createEntry/WaitFor/index.cjs +3 -0
- package/dist/createEntry/WaitFor/index.d.cts +3 -0
- package/dist/createEntry/WaitFor/index.d.ts +3 -0
- package/dist/createEntry/WaitFor/index.js +2 -0
- package/dist/createEntry/WaitFor/types.cjs +0 -0
- package/dist/createEntry/WaitFor/types.d.cts +21 -0
- package/dist/createEntry/WaitFor/types.d.ts +21 -0
- package/dist/createEntry/WaitFor/types.js +0 -0
- package/dist/createEntry/createEntry.cjs +32 -0
- package/dist/createEntry/createEntry.cjs.map +1 -0
- package/dist/createEntry/createEntry.d.cts +17 -0
- package/dist/createEntry/createEntry.d.ts +17 -0
- package/dist/createEntry/createEntry.js +31 -0
- package/dist/createEntry/createEntry.js.map +1 -0
- package/dist/createEntry/createServerEntry.cjs +45 -0
- package/dist/createEntry/createServerEntry.cjs.map +1 -0
- package/dist/createEntry/createServerEntry.d.cts +17 -0
- package/dist/createEntry/createServerEntry.d.ts +17 -0
- package/dist/createEntry/createServerEntry.js +43 -0
- package/dist/createEntry/createServerEntry.js.map +1 -0
- package/dist/createEntry/index.cjs +5 -0
- package/dist/createEntry/index.d.cts +5 -0
- package/dist/createEntry/index.d.ts +5 -0
- package/dist/createEntry/index.js +3 -0
- package/dist/createEntry/types.cjs +0 -0
- package/dist/createEntry/types.d.cts +75 -0
- package/dist/createEntry/types.d.ts +75 -0
- package/dist/createEntry/types.js +0 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs +28 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs.map +1 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.cts +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.ts +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js +27 -0
- package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js.map +1 -0
- package/dist/createEntry/utils/createServerVueApp/index.cjs +3 -0
- package/dist/createEntry/utils/createServerVueApp/index.d.cts +2 -0
- package/dist/createEntry/utils/createServerVueApp/index.d.ts +2 -0
- package/dist/createEntry/utils/createServerVueApp/index.js +2 -0
- package/dist/createEntry/utils/createServerVueApp/types.cjs +0 -0
- package/dist/createEntry/utils/createServerVueApp/types.d.cts +7 -0
- package/dist/createEntry/utils/createServerVueApp/types.d.ts +7 -0
- package/dist/createEntry/utils/createServerVueApp/types.js +0 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.cjs +43 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.cjs.map +1 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.d.cts +22 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.d.ts +22 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.js +42 -0
- package/dist/createEntry/utils/createVueApp/createVueApp.js.map +1 -0
- package/dist/createEntry/utils/createVueApp/index.cjs +3 -0
- package/dist/createEntry/utils/createVueApp/index.d.cts +2 -0
- package/dist/createEntry/utils/createVueApp/index.d.ts +2 -0
- package/dist/createEntry/utils/createVueApp/index.js +2 -0
- package/dist/createEntry/utils/index.cjs +10 -0
- package/dist/createEntry/utils/index.d.cts +5 -0
- package/dist/createEntry/utils/index.d.ts +5 -0
- package/dist/createEntry/utils/index.js +6 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.cjs +3 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.d.cts +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.d.ts +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/index.js +2 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs +28 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs.map +1 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.cts +17 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.ts +17 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js +27 -0
- package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js.map +1 -0
- package/dist/createEntry/utils/setupVueEntry/index.cjs +3 -0
- package/dist/createEntry/utils/setupVueEntry/index.d.cts +2 -0
- package/dist/createEntry/utils/setupVueEntry/index.d.ts +2 -0
- package/dist/createEntry/utils/setupVueEntry/index.js +2 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs +31 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs.map +1 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.cts +17 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.ts +17 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js +30 -0
- package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js.map +1 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs +49 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs.map +1 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.cts +33 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.ts +33 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js +48 -0
- package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js.map +1 -0
- package/dist/createPiniaAsyncStore/index.cjs +3 -0
- package/dist/createPiniaAsyncStore/index.d.cts +3 -0
- package/dist/createPiniaAsyncStore/index.d.ts +3 -0
- package/dist/createPiniaAsyncStore/index.js +2 -0
- package/dist/createPiniaAsyncStore/types.cjs +0 -0
- package/dist/createPiniaAsyncStore/types.d.cts +22 -0
- package/dist/createPiniaAsyncStore/types.d.ts +22 -0
- package/dist/createPiniaAsyncStore/types.js +0 -0
- package/dist/getContext/getContext.cjs +29 -0
- package/dist/getContext/getContext.cjs.map +1 -0
- package/dist/getContext/getContext.d.cts +24 -0
- package/dist/getContext/getContext.d.ts +24 -0
- package/dist/getContext/getContext.js +28 -0
- package/dist/getContext/getContext.js.map +1 -0
- package/dist/getContext/index.cjs +3 -0
- package/dist/getContext/index.d.cts +2 -0
- package/dist/getContext/index.d.ts +2 -0
- package/dist/getContext/index.js +2 -0
- package/dist/getEventHandlers/getEventHandlers.cjs +65 -0
- package/dist/getEventHandlers/getEventHandlers.cjs.map +1 -0
- package/dist/getEventHandlers/getEventHandlers.d.cts +45 -0
- package/dist/getEventHandlers/getEventHandlers.d.ts +45 -0
- package/dist/getEventHandlers/getEventHandlers.js +64 -0
- package/dist/getEventHandlers/getEventHandlers.js.map +1 -0
- package/dist/getEventHandlers/index.cjs +3 -0
- package/dist/getEventHandlers/index.d.cts +3 -0
- package/dist/getEventHandlers/index.d.ts +3 -0
- package/dist/getEventHandlers/index.js +2 -0
- package/dist/getEventHandlers/types.cjs +0 -0
- package/dist/getEventHandlers/types.d.cts +7 -0
- package/dist/getEventHandlers/types.d.ts +7 -0
- package/dist/getEventHandlers/types.js +0 -0
- package/dist/index.cjs +104 -0
- package/dist/index.d.cts +61 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +62 -0
- package/dist/node_modules/@babel/parser/lib/index.cjs +12599 -0
- package/dist/node_modules/@babel/parser/lib/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +4832 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +4775 -0
- package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-core/index.cjs +18 -0
- package/dist/node_modules/@vue/compiler-core/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +665 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +447 -0
- package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-dom/index.cjs +18 -0
- package/dist/node_modules/@vue/compiler-dom/index.cjs.map +1 -0
- package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs +848 -0
- package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs +830 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs +605 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +532 -0
- package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/node_modules/@vue/server-renderer/index.cjs +18 -0
- package/dist/node_modules/@vue/server-renderer/index.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs +496 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +495 -0
- package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +1 -0
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +166 -0
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/node_modules/@vue/shared/index.cjs +18 -0
- package/dist/node_modules/@vue/shared/index.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs +81 -0
- package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/decode.cjs +474 -0
- package/dist/node_modules/entities/dist/commonjs/decode.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs +18 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs +18 -0
- package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs +32 -0
- package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs.map +1 -0
- package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs +26 -0
- package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs.map +1 -0
- package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs +254 -0
- package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/array-set.cjs +102 -0
- package/dist/node_modules/source-map-js/lib/array-set.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/base64-vlq.cjs +75 -0
- package/dist/node_modules/source-map-js/lib/base64-vlq.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/base64.cjs +42 -0
- package/dist/node_modules/source-map-js/lib/base64.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/binary-search.cjs +69 -0
- package/dist/node_modules/source-map-js/lib/binary-search.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/mapping-list.cjs +79 -0
- package/dist/node_modules/source-map-js/lib/mapping-list.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/quick-sort.cjs +90 -0
- package/dist/node_modules/source-map-js/lib/quick-sort.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs +790 -0
- package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-map-generator.cjs +297 -0
- package/dist/node_modules/source-map-js/lib/source-map-generator.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/source-node.cjs +295 -0
- package/dist/node_modules/source-map-js/lib/source-node.cjs.map +1 -0
- package/dist/node_modules/source-map-js/lib/util.cjs +353 -0
- package/dist/node_modules/source-map-js/lib/util.cjs.map +1 -0
- package/dist/node_modules/source-map-js/source-map.cjs +19 -0
- package/dist/node_modules/source-map-js/source-map.cjs.map +1 -0
- package/dist/portals/Portal/Portal.cjs +6 -0
- package/dist/portals/Portal/Portal.cjs.map +1 -0
- package/dist/portals/Portal/Portal.js +7 -0
- package/dist/portals/Portal/Portal.js.map +1 -0
- package/dist/portals/Portal/Portal.vue.d.cts +6 -0
- package/dist/portals/Portal/Portal.vue.d.ts +7 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs +56 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/portals/Portal/index.cjs +3 -0
- package/dist/portals/Portal/index.d.cts +3 -0
- package/dist/portals/Portal/index.d.ts +3 -0
- package/dist/portals/Portal/index.js +2 -0
- package/dist/portals/Portal/types.cjs +0 -0
- package/dist/portals/Portal/types.d.cts +19 -0
- package/dist/portals/Portal/types.d.ts +19 -0
- package/dist/portals/Portal/types.js +0 -0
- package/dist/portals/index.cjs +13 -0
- package/dist/portals/index.d.cts +8 -0
- package/dist/portals/index.d.ts +8 -0
- package/dist/portals/index.js +8 -0
- package/dist/portals/installPortals/index.cjs +3 -0
- package/dist/portals/installPortals/index.d.cts +3 -0
- package/dist/portals/installPortals/index.d.ts +3 -0
- package/dist/portals/installPortals/index.js +2 -0
- package/dist/portals/installPortals/installPortals.cjs +25 -0
- package/dist/portals/installPortals/installPortals.cjs.map +1 -0
- package/dist/portals/installPortals/installPortals.d.cts +25 -0
- package/dist/portals/installPortals/installPortals.d.ts +25 -0
- package/dist/portals/installPortals/installPortals.js +24 -0
- package/dist/portals/installPortals/installPortals.js.map +1 -0
- package/dist/portals/installPortals/types.cjs +0 -0
- package/dist/portals/installPortals/types.d.cts +23 -0
- package/dist/portals/installPortals/types.d.ts +23 -0
- package/dist/portals/installPortals/types.js +0 -0
- package/dist/portals/types.cjs +0 -0
- package/dist/portals/types.d.cts +40 -0
- package/dist/portals/types.d.ts +40 -0
- package/dist/portals/types.js +0 -0
- package/dist/portals/usePortal.cjs +44 -0
- package/dist/portals/usePortal.cjs.map +1 -0
- package/dist/portals/usePortal.d.cts +17 -0
- package/dist/portals/usePortal.d.ts +17 -0
- package/dist/portals/usePortal.js +43 -0
- package/dist/portals/usePortal.js.map +1 -0
- package/dist/portals/usePortalAnchors.cjs +21 -0
- package/dist/portals/usePortalAnchors.cjs.map +1 -0
- package/dist/portals/usePortalAnchors.d.cts +14 -0
- package/dist/portals/usePortalAnchors.d.ts +14 -0
- package/dist/portals/usePortalAnchors.js +20 -0
- package/dist/portals/usePortalAnchors.js.map +1 -0
- package/dist/portals/usePortals.cjs +21 -0
- package/dist/portals/usePortals.cjs.map +1 -0
- package/dist/portals/usePortals.d.cts +14 -0
- package/dist/portals/usePortals.d.ts +14 -0
- package/dist/portals/usePortals.js +20 -0
- package/dist/portals/usePortals.js.map +1 -0
- package/dist/router/RouterLink/RouterLink.cjs +6 -0
- package/dist/router/RouterLink/RouterLink.cjs.map +1 -0
- package/dist/router/RouterLink/RouterLink.js +7 -0
- package/dist/router/RouterLink/RouterLink.js.map +1 -0
- package/dist/router/RouterLink/RouterLink.vue.d.cts +18 -0
- package/dist/router/RouterLink/RouterLink.vue.d.ts +19 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs +59 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/router/RouterLink/index.cjs +3 -0
- package/dist/router/RouterLink/index.d.cts +3 -0
- package/dist/router/RouterLink/index.d.ts +3 -0
- package/dist/router/RouterLink/index.js +2 -0
- package/dist/router/RouterLink/types.cjs +0 -0
- package/dist/router/RouterLink/types.d.cts +11 -0
- package/dist/router/RouterLink/types.d.ts +11 -0
- package/dist/router/RouterLink/types.js +0 -0
- package/dist/router/RouterView/RouterView.cjs +6 -0
- package/dist/router/RouterView/RouterView.cjs.map +1 -0
- package/dist/router/RouterView/RouterView.js +7 -0
- package/dist/router/RouterView/RouterView.js.map +1 -0
- package/dist/router/RouterView/RouterView.vue.d.cts +6 -0
- package/dist/router/RouterView/RouterView.vue.d.ts +7 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs +58 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/router/RouterView/index.cjs +3 -0
- package/dist/router/RouterView/index.d.cts +2 -0
- package/dist/router/RouterView/index.d.ts +2 -0
- package/dist/router/RouterView/index.js +2 -0
- package/dist/router/RouterView/types.cjs +0 -0
- package/dist/router/RouterView/types.d.cts +15 -0
- package/dist/router/RouterView/types.d.ts +15 -0
- package/dist/router/RouterView/types.js +0 -0
- package/dist/router/index.cjs +28 -0
- package/dist/router/index.d.cts +12 -0
- package/dist/router/index.d.ts +12 -0
- package/dist/router/index.js +18 -0
- package/dist/router/installRouter.cjs +34 -0
- package/dist/router/installRouter.cjs.map +1 -0
- package/dist/router/installRouter.d.cts +14 -0
- package/dist/router/installRouter.d.ts +14 -0
- package/dist/router/installRouter.js +33 -0
- package/dist/router/installRouter.js.map +1 -0
- package/dist/router/types.cjs +1 -0
- package/dist/router/types.d.cts +21 -0
- package/dist/router/types.d.ts +21 -0
- package/dist/router/types.js +1 -0
- package/dist/router/useLocation/index.cjs +3 -0
- package/dist/router/useLocation/index.d.cts +2 -0
- package/dist/router/useLocation/index.d.ts +2 -0
- package/dist/router/useLocation/index.js +2 -0
- package/dist/router/useLocation/useLocation.cjs +24 -0
- package/dist/router/useLocation/useLocation.cjs.map +1 -0
- package/dist/router/useLocation/useLocation.d.cts +12 -0
- package/dist/router/useLocation/useLocation.d.ts +12 -0
- package/dist/router/useLocation/useLocation.js +23 -0
- package/dist/router/useLocation/useLocation.js.map +1 -0
- package/dist/router/useNavigate/index.cjs +3 -0
- package/dist/router/useNavigate/index.d.cts +2 -0
- package/dist/router/useNavigate/index.d.ts +2 -0
- package/dist/router/useNavigate/index.js +2 -0
- package/dist/router/useNavigate/useNavigate.cjs +17 -0
- package/dist/router/useNavigate/useNavigate.cjs.map +1 -0
- package/dist/router/useNavigate/useNavigate.d.cts +12 -0
- package/dist/router/useNavigate/useNavigate.d.ts +12 -0
- package/dist/router/useNavigate/useNavigate.js +16 -0
- package/dist/router/useNavigate/useNavigate.js.map +1 -0
- package/dist/router/usePaths/index.cjs +3 -0
- package/dist/router/usePaths/index.d.cts +2 -0
- package/dist/router/usePaths/index.d.ts +2 -0
- package/dist/router/usePaths/index.js +2 -0
- package/dist/router/usePaths/usePaths.cjs +27 -0
- package/dist/router/usePaths/usePaths.cjs.map +1 -0
- package/dist/router/usePaths/usePaths.d.cts +14 -0
- package/dist/router/usePaths/usePaths.d.ts +14 -0
- package/dist/router/usePaths/usePaths.js +26 -0
- package/dist/router/usePaths/usePaths.js.map +1 -0
- package/dist/router/useRoute/index.cjs +3 -0
- package/dist/router/useRoute/index.d.cts +2 -0
- package/dist/router/useRoute/index.d.ts +2 -0
- package/dist/router/useRoute/index.js +2 -0
- package/dist/router/useRoute/useRoute.cjs +28 -0
- package/dist/router/useRoute/useRoute.cjs.map +1 -0
- package/dist/router/useRoute/useRoute.d.cts +12 -0
- package/dist/router/useRoute/useRoute.d.ts +12 -0
- package/dist/router/useRoute/useRoute.js +27 -0
- package/dist/router/useRoute/useRoute.js.map +1 -0
- package/dist/router/useRouter/index.cjs +3 -0
- package/dist/router/useRouter/index.d.cts +2 -0
- package/dist/router/useRouter/index.d.ts +2 -0
- package/dist/router/useRouter/index.js +2 -0
- package/dist/router/useRouter/useRouter.cjs +17 -0
- package/dist/router/useRouter/useRouter.cjs.map +1 -0
- package/dist/router/useRouter/useRouter.d.cts +12 -0
- package/dist/router/useRouter/useRouter.d.ts +12 -0
- package/dist/router/useRouter/useRouter.js +16 -0
- package/dist/router/useRouter/useRouter.js.map +1 -0
- package/dist/router/useRouterLink/index.cjs +3 -0
- package/dist/router/useRouterLink/index.d.cts +3 -0
- package/dist/router/useRouterLink/index.d.ts +3 -0
- package/dist/router/useRouterLink/index.js +2 -0
- package/dist/router/useRouterLink/types.cjs +0 -0
- package/dist/router/useRouterLink/types.d.cts +2 -0
- package/dist/router/useRouterLink/types.d.ts +2 -0
- package/dist/router/useRouterLink/types.js +0 -0
- package/dist/router/useRouterLink/useRouterLink.cjs +37 -0
- package/dist/router/useRouterLink/useRouterLink.cjs.map +1 -0
- package/dist/router/useRouterLink/useRouterLink.d.cts +13 -0
- package/dist/router/useRouterLink/useRouterLink.d.ts +13 -0
- package/dist/router/useRouterLink/useRouterLink.js +36 -0
- package/dist/router/useRouterLink/useRouterLink.js.map +1 -0
- package/dist/router/useSearchParams/index.cjs +3 -0
- package/dist/router/useSearchParams/index.d.cts +2 -0
- package/dist/router/useSearchParams/index.d.ts +2 -0
- package/dist/router/useSearchParams/index.js +2 -0
- package/dist/router/useSearchParams/useSearchParams.cjs +29 -0
- package/dist/router/useSearchParams/useSearchParams.cjs.map +1 -0
- package/dist/router/useSearchParams/useSearchParams.d.cts +14 -0
- package/dist/router/useSearchParams/useSearchParams.d.ts +14 -0
- package/dist/router/useSearchParams/useSearchParams.js +28 -0
- package/dist/router/useSearchParams/useSearchParams.js.map +1 -0
- package/dist/setContext/index.cjs +3 -0
- package/dist/setContext/index.d.cts +2 -0
- package/dist/setContext/index.d.ts +2 -0
- package/dist/setContext/index.js +2 -0
- package/dist/setContext/setContext.cjs +29 -0
- package/dist/setContext/setContext.cjs.map +1 -0
- package/dist/setContext/setContext.d.cts +24 -0
- package/dist/setContext/setContext.d.ts +24 -0
- package/dist/setContext/setContext.js +28 -0
- package/dist/setContext/setContext.js.map +1 -0
- package/dist/useBeforeMount/index.cjs +3 -0
- package/dist/useBeforeMount/index.d.cts +2 -0
- package/dist/useBeforeMount/index.d.ts +2 -0
- package/dist/useBeforeMount/index.js +2 -0
- package/dist/useBeforeMount/useBeforeMount.cjs +29 -0
- package/dist/useBeforeMount/useBeforeMount.cjs.map +1 -0
- package/dist/useBeforeMount/useBeforeMount.d.cts +24 -0
- package/dist/useBeforeMount/useBeforeMount.d.ts +24 -0
- package/dist/useBeforeMount/useBeforeMount.js +28 -0
- package/dist/useBeforeMount/useBeforeMount.js.map +1 -0
- package/dist/useBeforeUnmount/index.cjs +3 -0
- package/dist/useBeforeUnmount/index.d.cts +2 -0
- package/dist/useBeforeUnmount/index.d.ts +2 -0
- package/dist/useBeforeUnmount/index.js +2 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.cjs +29 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.cjs.map +1 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.d.cts +24 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.d.ts +24 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.js +28 -0
- package/dist/useBeforeUnmount/useBeforeUnmount.js.map +1 -0
- package/dist/useChildren/index.cjs +3 -0
- package/dist/useChildren/index.d.cts +2 -0
- package/dist/useChildren/index.d.ts +2 -0
- package/dist/useChildren/index.js +2 -0
- package/dist/useChildren/useChildren.cjs +35 -0
- package/dist/useChildren/useChildren.cjs.map +1 -0
- package/dist/useChildren/useChildren.d.cts +26 -0
- package/dist/useChildren/useChildren.d.ts +26 -0
- package/dist/useChildren/useChildren.js +34 -0
- package/dist/useChildren/useChildren.js.map +1 -0
- package/dist/useColorScheme/index.cjs +3 -0
- package/dist/useColorScheme/index.d.cts +2 -0
- package/dist/useColorScheme/index.d.ts +2 -0
- package/dist/useColorScheme/index.js +2 -0
- package/dist/useColorScheme/useColorScheme.cjs +46 -0
- package/dist/useColorScheme/useColorScheme.cjs.map +1 -0
- package/dist/useColorScheme/useColorScheme.d.cts +29 -0
- package/dist/useColorScheme/useColorScheme.d.ts +29 -0
- package/dist/useColorScheme/useColorScheme.js +45 -0
- package/dist/useColorScheme/useColorScheme.js.map +1 -0
- package/dist/useMediator/index.cjs +3 -0
- package/dist/useMediator/index.d.cts +3 -0
- package/dist/useMediator/index.d.ts +3 -0
- package/dist/useMediator/index.js +2 -0
- package/dist/useMediator/types.cjs +0 -0
- package/dist/useMediator/types.d.cts +2 -0
- package/dist/useMediator/types.d.ts +2 -0
- package/dist/useMediator/types.js +0 -0
- package/dist/useMediator/useMediator.cjs +137 -0
- package/dist/useMediator/useMediator.cjs.map +1 -0
- package/dist/useMediator/useMediator.d.cts +61 -0
- package/dist/useMediator/useMediator.d.ts +61 -0
- package/dist/useMediator/useMediator.js +136 -0
- package/dist/useMediator/useMediator.js.map +1 -0
- package/dist/useMediator/utils.cjs +22 -0
- package/dist/useMediator/utils.cjs.map +1 -0
- package/dist/useMediator/utils.d.cts +14 -0
- package/dist/useMediator/utils.d.ts +14 -0
- package/dist/useMediator/utils.js +21 -0
- package/dist/useMediator/utils.js.map +1 -0
- package/dist/useMounted/index.cjs +3 -0
- package/dist/useMounted/index.d.cts +2 -0
- package/dist/useMounted/index.d.ts +2 -0
- package/dist/useMounted/index.js +2 -0
- package/dist/useMounted/useMounted.cjs +29 -0
- package/dist/useMounted/useMounted.cjs.map +1 -0
- package/dist/useMounted/useMounted.d.cts +24 -0
- package/dist/useMounted/useMounted.d.ts +24 -0
- package/dist/useMounted/useMounted.js +28 -0
- package/dist/useMounted/useMounted.js.map +1 -0
- package/dist/useRef/index.cjs +3 -0
- package/dist/useRef/index.d.cts +2 -0
- package/dist/useRef/index.d.ts +2 -0
- package/dist/useRef/index.js +2 -0
- package/dist/useRef/useRef.cjs +28 -0
- package/dist/useRef/useRef.cjs.map +1 -0
- package/dist/useRef/useRef.d.cts +25 -0
- package/dist/useRef/useRef.d.ts +25 -0
- package/dist/useRef/useRef.js +27 -0
- package/dist/useRef/useRef.js.map +1 -0
- package/dist/withDefaultProps/constants.cjs +10 -0
- package/dist/withDefaultProps/constants.cjs.map +1 -0
- package/dist/withDefaultProps/constants.d.cts +8 -0
- package/dist/withDefaultProps/constants.d.ts +8 -0
- package/dist/withDefaultProps/constants.js +9 -0
- package/dist/withDefaultProps/constants.js.map +1 -0
- package/dist/withDefaultProps/index.cjs +3 -0
- package/dist/withDefaultProps/index.d.cts +3 -0
- package/dist/withDefaultProps/index.d.ts +3 -0
- package/dist/withDefaultProps/index.js +2 -0
- package/dist/withDefaultProps/types.cjs +0 -0
- package/dist/withDefaultProps/types.d.cts +25 -0
- package/dist/withDefaultProps/types.d.ts +25 -0
- package/dist/withDefaultProps/types.js +0 -0
- package/dist/withDefaultProps/withDefaultProps.cjs +85 -0
- package/dist/withDefaultProps/withDefaultProps.cjs.map +1 -0
- package/dist/withDefaultProps/withDefaultProps.d.cts +48 -0
- package/dist/withDefaultProps/withDefaultProps.d.ts +48 -0
- package/dist/withDefaultProps/withDefaultProps.js +84 -0
- package/dist/withDefaultProps/withDefaultProps.js.map +1 -0
- package/dist/withDefaultPropsHandlers/constants.cjs +7 -0
- package/dist/withDefaultPropsHandlers/constants.cjs.map +1 -0
- package/dist/withDefaultPropsHandlers/constants.d.cts +5 -0
- package/dist/withDefaultPropsHandlers/constants.d.ts +5 -0
- package/dist/withDefaultPropsHandlers/constants.js +6 -0
- package/dist/withDefaultPropsHandlers/constants.js.map +1 -0
- package/dist/withDefaultPropsHandlers/index.cjs +3 -0
- package/dist/withDefaultPropsHandlers/index.d.cts +3 -0
- package/dist/withDefaultPropsHandlers/index.d.ts +3 -0
- package/dist/withDefaultPropsHandlers/index.js +2 -0
- package/dist/withDefaultPropsHandlers/types.cjs +0 -0
- package/dist/withDefaultPropsHandlers/types.d.cts +12 -0
- package/dist/withDefaultPropsHandlers/types.d.ts +12 -0
- package/dist/withDefaultPropsHandlers/types.js +0 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs +81 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs.map +1 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.cts +49 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.ts +49 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js +80 -0
- package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js.map +1 -0
- package/package.json +647 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.cjs","names":[],"sources":["../../../../node_modules/source-map-js/lib/util.js"],"sourcesContent":["/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n } else {\n throw new Error('\"' + aName + '\" is a required argument.');\n }\n}\nexports.getArg = getArg;\n\nvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.-]*)(?::(\\d+))?(.*)$/;\nvar dataUrlRegexp = /^data:.+\\,.+$/;\n\nfunction urlParse(aUrl) {\n var match = aUrl.match(urlRegexp);\n if (!match) {\n return null;\n }\n return {\n scheme: match[1],\n auth: match[2],\n host: match[3],\n port: match[4],\n path: match[5]\n };\n}\nexports.urlParse = urlParse;\n\nfunction urlGenerate(aParsedUrl) {\n var url = '';\n if (aParsedUrl.scheme) {\n url += aParsedUrl.scheme + ':';\n }\n url += '//';\n if (aParsedUrl.auth) {\n url += aParsedUrl.auth + '@';\n }\n if (aParsedUrl.host) {\n url += aParsedUrl.host;\n }\n if (aParsedUrl.port) {\n url += \":\" + aParsedUrl.port\n }\n if (aParsedUrl.path) {\n url += aParsedUrl.path;\n }\n return url;\n}\nexports.urlGenerate = urlGenerate;\n\nvar MAX_CACHED_INPUTS = 32;\n\n/**\n * Takes some function `f(input) -> result` and returns a memoized version of\n * `f`.\n *\n * We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The\n * memoization is a dumb-simple, linear least-recently-used cache.\n */\nfunction lruMemoize(f) {\n var cache = [];\n\n return function(input) {\n for (var i = 0; i < cache.length; i++) {\n if (cache[i].input === input) {\n var temp = cache[0];\n cache[0] = cache[i];\n cache[i] = temp;\n return cache[0].result;\n }\n }\n\n var result = f(input);\n\n cache.unshift({\n input,\n result,\n });\n\n if (cache.length > MAX_CACHED_INPUTS) {\n cache.pop();\n }\n\n return result;\n };\n}\n\n/**\n * Normalizes a path, or the path portion of a URL:\n *\n * - Replaces consecutive slashes with one slash.\n * - Removes unnecessary '.' parts.\n * - Removes unnecessary '<dir>/..' parts.\n *\n * Based on code in the Node.js 'path' core module.\n *\n * @param aPath The path or url to normalize.\n */\nvar normalize = lruMemoize(function normalize(aPath) {\n var path = aPath;\n var url = urlParse(aPath);\n if (url) {\n if (!url.path) {\n return aPath;\n }\n path = url.path;\n }\n var isAbsolute = exports.isAbsolute(path);\n // Split the path into parts between `/` characters. This is much faster than\n // using `.split(/\\/+/g)`.\n var parts = [];\n var start = 0;\n var i = 0;\n while (true) {\n start = i;\n i = path.indexOf(\"/\", start);\n if (i === -1) {\n parts.push(path.slice(start));\n break;\n } else {\n parts.push(path.slice(start, i));\n while (i < path.length && path[i] === \"/\") {\n i++;\n }\n }\n }\n\n for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n part = parts[i];\n if (part === '.') {\n parts.splice(i, 1);\n } else if (part === '..') {\n up++;\n } else if (up > 0) {\n if (part === '') {\n // The first part is blank if the path is absolute. Trying to go\n // above the root is a no-op. Therefore we can remove all '..' parts\n // directly after the root.\n parts.splice(i + 1, up);\n up = 0;\n } else {\n parts.splice(i, 2);\n up--;\n }\n }\n }\n path = parts.join('/');\n\n if (path === '') {\n path = isAbsolute ? '/' : '.';\n }\n\n if (url) {\n url.path = path;\n return urlGenerate(url);\n }\n return path;\n});\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be joined with the root.\n *\n * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n * first.\n * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n * is updated with the result and aRoot is returned. Otherwise the result\n * is returned.\n * - If aPath is absolute, the result is aPath.\n * - Otherwise the two paths are joined with a slash.\n * - Joining for example 'http://' and 'www.example.com' is also supported.\n */\nfunction join(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n if (aPath === \"\") {\n aPath = \".\";\n }\n var aPathUrl = urlParse(aPath);\n var aRootUrl = urlParse(aRoot);\n if (aRootUrl) {\n aRoot = aRootUrl.path || '/';\n }\n\n // `join(foo, '//www.example.org')`\n if (aPathUrl && !aPathUrl.scheme) {\n if (aRootUrl) {\n aPathUrl.scheme = aRootUrl.scheme;\n }\n return urlGenerate(aPathUrl);\n }\n\n if (aPathUrl || aPath.match(dataUrlRegexp)) {\n return aPath;\n }\n\n // `join('http://', 'www.example.com')`\n if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n aRootUrl.host = aPath;\n return urlGenerate(aRootUrl);\n }\n\n var joined = aPath.charAt(0) === '/'\n ? aPath\n : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\n if (aRootUrl) {\n aRootUrl.path = joined;\n return urlGenerate(aRootUrl);\n }\n return joined;\n}\nexports.join = join;\n\nexports.isAbsolute = function (aPath) {\n return aPath.charAt(0) === '/' || urlRegexp.test(aPath);\n};\n\n/**\n * Make a path relative to a URL or another path.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n */\nfunction relative(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n\n aRoot = aRoot.replace(/\\/$/, '');\n\n // It is possible for the path to be above the root. In this case, simply\n // checking whether the root is a prefix of the path won't work. Instead, we\n // need to remove components from the root one by one, until either we find\n // a prefix that fits, or we run out of components to remove.\n var level = 0;\n while (aPath.indexOf(aRoot + '/') !== 0) {\n var index = aRoot.lastIndexOf(\"/\");\n if (index < 0) {\n return aPath;\n }\n\n // If the only part of the root that is left is the scheme (i.e. http://,\n // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n // have exhausted all components, so the path is not relative to the root.\n aRoot = aRoot.slice(0, index);\n if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n return aPath;\n }\n\n ++level;\n }\n\n // Make sure we add a \"../\" for each component we removed from the root.\n return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n}\nexports.relative = relative;\n\nvar supportsNullProto = (function () {\n var obj = Object.create(null);\n return !('__proto__' in obj);\n}());\n\nfunction identity (s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return '$' + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n var length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */) {\n return false;\n }\n\n for (var i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Comparator between two mappings where the original positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same original source/line/column, but different generated\n * line and column the same. Useful when searching for a mapping with a\n * stubbed out mapping.\n */\nfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n var cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0 || onlyCompareOriginal) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByOriginalPositions = compareByOriginalPositions;\n\nfunction compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {\n var cmp\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0 || onlyCompareOriginal) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;\n\n/**\n * Comparator between two mappings with deflated source and name indices where\n * the generated positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same generated line and column, but different\n * source/name/original line and column the same. Useful when searching for a\n * mapping with a stubbed out mapping.\n */\nfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0 || onlyCompareGenerated) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\nfunction compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {\n var cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0 || onlyCompareGenerated) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 === null) {\n return 1; // aStr2 !== null\n }\n\n if (aStr2 === null) {\n return -1; // aStr1 !== null\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n\n/**\n * Strip any JSON XSSI avoidance prefix from the string (as documented\n * in the source maps specification), and then parse the string as\n * JSON.\n */\nfunction parseSourceMapInput(str) {\n return JSON.parse(str.replace(/^\\)]}'[^\\n]*\\n/, ''));\n}\nexports.parseSourceMapInput = parseSourceMapInput;\n\n/**\n * Compute the URL of a source given the the source root, the source's\n * URL, and the source map's URL.\n */\nfunction computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {\n sourceURL = sourceURL || '';\n\n if (sourceRoot) {\n // This follows what Chrome does.\n if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') {\n sourceRoot += '/';\n }\n // The spec says:\n // Line 4: An optional source root, useful for relocating source\n // files on a server or removing repeated values in the\n // “sources” entry. This value is prepended to the individual\n // entries in the “source” field.\n sourceURL = sourceRoot + sourceURL;\n }\n\n // Historically, SourceMapConsumer did not take the sourceMapURL as\n // a parameter. This mode is still somewhat supported, which is why\n // this code block is conditional. However, it's preferable to pass\n // the source map URL to SourceMapConsumer, so that this function\n // can implement the source URL resolution algorithm as outlined in\n // the spec. This block is basically the equivalent of:\n // new URL(sourceURL, sourceMapURL).toString()\n // ... except it avoids using URL, which wasn't available in the\n // older releases of node still supported by this library.\n //\n // The spec says:\n // If the sources are not absolute URLs after prepending of the\n // “sourceRoot”, the sources are resolved relative to the\n // SourceMap (like resolving script src in a html document).\n if (sourceMapURL) {\n var parsed = urlParse(sourceMapURL);\n if (!parsed) {\n throw new Error(\"sourceMapURL could not be parsed\");\n }\n if (parsed.path) {\n // Strip the last path component, but keep the \"/\".\n var index = parsed.path.lastIndexOf('/');\n if (index >= 0) {\n parsed.path = parsed.path.substring(0, index + 1);\n }\n }\n sourceURL = join(urlGenerate(parsed), sourceURL);\n }\n\n return normalize(sourceURL);\n}\nexports.computeSourceURL = computeSourceURL;\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_source_map_generator$1 = require("./lib/source-map-generator.cjs");
|
|
3
|
+
const require_source_map_consumer$1 = require("./lib/source-map-consumer.cjs");
|
|
4
|
+
const require_source_node$1 = require("./lib/source-node.cjs");
|
|
5
|
+
//#region node_modules/source-map-js/source-map.js
|
|
6
|
+
var require_source_map = /* @__PURE__ */ require_runtime.__commonJSMin(((exports) => {
|
|
7
|
+
exports.SourceMapGenerator = require_source_map_generator$1.default.SourceMapGenerator;
|
|
8
|
+
exports.SourceMapConsumer = require_source_map_consumer$1.default.SourceMapConsumer;
|
|
9
|
+
exports.SourceNode = require_source_node$1.default.SourceNode;
|
|
10
|
+
}));
|
|
11
|
+
//#endregion
|
|
12
|
+
Object.defineProperty(exports, "default", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return require_source_map();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=source-map.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-map.cjs","names":[],"sources":["../../../node_modules/source-map-js/source-map.js"],"sourcesContent":["/*\n * Copyright 2009-2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE.txt or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\nexports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;\nexports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;\nexports.SourceNode = require('./lib/source-node').SourceNode;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CAKA,QAAQ,qBAAA,+BAAA,QAA2D;CACnE,QAAQ,oBAAA,8BAAA,QAAyD;CACjE,QAAQ,aAAA,sBAAA,QAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Portal.cjs","names":[],"sources":["../../../src/portals/Portal/Portal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { watchEffect, h, useSlots } from 'vue';\n import { isPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\n import { select } from '@pastweb/tools/select';\n import { useRef } from '../../useRef';\n import { usePortals } from '../usePortals';\n import type { PortalProps, Portals } from './types';\n\n const props = defineProps<PortalProps>();\n\n if (!isPortalHandler(props.use)) {\n throw Error('Portal error - the \"use\" property must be a PortalHandler Object.');\n }\n\n const portals = usePortals() as Portals;\n const entryId = useRef<string | false>(false);\n const handler = useRef<PortalHandler | null>(null);\n const slots = useSlots();\n\n watchEffect(() => {\n const { path, use } = props;\n const component = h((slots as any).default()[0]);\n\n use.open = () => {\n const createHandler = select(portals, path);\n handler.value = createHandler(component);\n const h = handler.value as PortalHandler;\n\n h.onRemove(() => {\n use.id = false;\n entryId.value = false;\n });\n\n use.update = h.update;\n use.close = () => h.close();\n use.remove = () => h.remove();\n\n const id = h.open();\n use.id = id;\n entryId.value = id;\n\n return id;\n };\n\n use.isReady();\n });\n</script>\n\n<template />\n \n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Portal_vue_vue_type_script_setup_true_lang_default from "./Portal.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/portals/Portal/Portal.vue
|
|
3
|
+
var Portal_default = Portal_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Portal_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=Portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Portal.js","names":[],"sources":["../../../src/portals/Portal/Portal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { watchEffect, h, useSlots } from 'vue';\n import { isPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\n import { select } from '@pastweb/tools/select';\n import { useRef } from '../../useRef';\n import { usePortals } from '../usePortals';\n import type { PortalProps, Portals } from './types';\n\n const props = defineProps<PortalProps>();\n\n if (!isPortalHandler(props.use)) {\n throw Error('Portal error - the \"use\" property must be a PortalHandler Object.');\n }\n\n const portals = usePortals() as Portals;\n const entryId = useRef<string | false>(false);\n const handler = useRef<PortalHandler | null>(null);\n const slots = useSlots();\n\n watchEffect(() => {\n const { path, use } = props;\n const component = h((slots as any).default()[0]);\n\n use.open = () => {\n const createHandler = select(portals, path);\n handler.value = createHandler(component);\n const h = handler.value as PortalHandler;\n\n h.onRemove(() => {\n use.id = false;\n entryId.value = false;\n });\n\n use.update = h.update;\n use.close = () => h.close();\n use.remove = () => h.remove();\n\n const id = h.open();\n use.id = id;\n entryId.value = id;\n\n return id;\n };\n\n use.isReady();\n });\n</script>\n\n<template />\n \n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PortalProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/Portal/Portal.vue.d.ts
|
|
4
|
+
declare const _default: import("vue").DefineComponent<PortalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PortalProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export = _default;
|
|
6
|
+
//# sourceMappingURL=Portal.vue.d.cts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PortalProps } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/Portal/Portal.vue.d.ts
|
|
4
|
+
declare const _default: import("vue").DefineComponent<PortalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PortalProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { _default as default };
|
|
7
|
+
//# sourceMappingURL=Portal.vue.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const require_portals_usePortals = require("../usePortals.cjs");
|
|
2
|
+
const require_useRef_useRef = require("../../useRef/useRef.cjs");
|
|
3
|
+
require("../../useRef/index.cjs");
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
let _pastweb_tools_portals = require("@pastweb/tools/portals");
|
|
6
|
+
let _pastweb_tools_select = require("@pastweb/tools/select");
|
|
7
|
+
//#region src/portals/Portal/Portal.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var Portal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
9
|
+
__name: "Portal",
|
|
10
|
+
props: {
|
|
11
|
+
path: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
use: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
if (!(0, _pastweb_tools_portals.isPortalHandler)(props.use)) throw Error("Portal error - the \"use\" property must be a PortalHandler Object.");
|
|
23
|
+
const portals = require_portals_usePortals.usePortals();
|
|
24
|
+
const entryId = require_useRef_useRef.useRef(false);
|
|
25
|
+
const handler = require_useRef_useRef.useRef(null);
|
|
26
|
+
const slots = (0, vue.useSlots)();
|
|
27
|
+
(0, vue.watchEffect)(() => {
|
|
28
|
+
const { path, use } = props;
|
|
29
|
+
const component = (0, vue.h)(slots.default()[0]);
|
|
30
|
+
use.open = () => {
|
|
31
|
+
const createHandler = (0, _pastweb_tools_select.select)(portals, path);
|
|
32
|
+
handler.value = createHandler(component);
|
|
33
|
+
const h = handler.value;
|
|
34
|
+
h.onRemove(() => {
|
|
35
|
+
use.id = false;
|
|
36
|
+
entryId.value = false;
|
|
37
|
+
});
|
|
38
|
+
use.update = h.update;
|
|
39
|
+
use.close = () => h.close();
|
|
40
|
+
use.remove = () => h.remove();
|
|
41
|
+
const id = h.open();
|
|
42
|
+
use.id = id;
|
|
43
|
+
entryId.value = id;
|
|
44
|
+
return id;
|
|
45
|
+
};
|
|
46
|
+
use.isReady();
|
|
47
|
+
});
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
exports.default = Portal_vue_vue_type_script_setup_true_lang_default;
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=Portal.vue_vue_type_script_setup_true_lang.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Portal.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/portals/Portal/Portal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { watchEffect, h, useSlots } from 'vue';\n import { isPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\n import { select } from '@pastweb/tools/select';\n import { useRef } from '../../useRef';\n import { usePortals } from '../usePortals';\n import type { PortalProps, Portals } from './types';\n\n const props = defineProps<PortalProps>();\n\n if (!isPortalHandler(props.use)) {\n throw Error('Portal error - the \"use\" property must be a PortalHandler Object.');\n }\n\n const portals = usePortals() as Portals;\n const entryId = useRef<string | false>(false);\n const handler = useRef<PortalHandler | null>(null);\n const slots = useSlots();\n\n watchEffect(() => {\n const { path, use } = props;\n const component = h((slots as any).default()[0]);\n\n use.open = () => {\n const createHandler = select(portals, path);\n handler.value = createHandler(component);\n const h = handler.value as PortalHandler;\n\n h.onRemove(() => {\n use.id = false;\n entryId.value = false;\n });\n\n use.update = h.update;\n use.close = () => h.close();\n use.remove = () => h.remove();\n\n const id = h.open();\n use.id = id;\n entryId.value = id;\n\n return id;\n };\n\n use.isReady();\n });\n</script>\n\n<template />\n \n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAQE,MAAM,QAAQ;EAEd,IAAI,EAAA,GAAA,uBAAA,gBAAA,CAAiB,MAAM,GAAG,GAC5B,MAAM,MAAM,qEAAmE;EAGjF,MAAM,UAAU,2BAAA,WAAW;EAC3B,MAAM,UAAU,sBAAA,OAAuB,KAAK;EAC5C,MAAM,UAAU,sBAAA,OAA6B,IAAI;EACjD,MAAM,SAAA,GAAA,IAAA,SAAA,CAAiB;EAEvB,CAAA,GAAA,IAAA,YAAA,OAAkB;GAChB,MAAM,EAAE,MAAM,QAAQ;GACtB,MAAM,aAAA,GAAA,IAAA,EAAA,CAAe,MAAc,QAAQ,CAAC,CAAC,EAAE;GAE/C,IAAI,aAAa;IACf,MAAM,iBAAA,GAAA,sBAAA,OAAA,CAAuB,SAAS,IAAI;IAC1C,QAAQ,QAAQ,cAAc,SAAS;IACvC,MAAM,IAAI,QAAQ;IAElB,EAAE,eAAe;KACf,IAAI,KAAK;KACT,QAAQ,QAAQ;IAClB,CAAC;IAED,IAAI,SAAS,EAAE;IACf,IAAI,cAAc,EAAE,MAAM;IAC1B,IAAI,eAAe,EAAE,OAAO;IAE5B,MAAM,KAAK,EAAE,KAAK;IAClB,IAAI,KAAK;IACT,QAAQ,QAAQ;IAEhB,OAAO;GACT;GAEA,IAAI,QAAQ;EACd,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { usePortals } from "../usePortals.js";
|
|
2
|
+
import { useRef } from "../../useRef/useRef.js";
|
|
3
|
+
import "../../useRef/index.js";
|
|
4
|
+
import { defineComponent, h, useSlots, watchEffect } from "vue";
|
|
5
|
+
import { isPortalHandler } from "@pastweb/tools/portals";
|
|
6
|
+
import { select } from "@pastweb/tools/select";
|
|
7
|
+
//#region src/portals/Portal/Portal.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var Portal_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "Portal",
|
|
10
|
+
props: {
|
|
11
|
+
path: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
use: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
if (!isPortalHandler(props.use)) throw Error("Portal error - the \"use\" property must be a PortalHandler Object.");
|
|
23
|
+
const portals = usePortals();
|
|
24
|
+
const entryId = useRef(false);
|
|
25
|
+
const handler = useRef(null);
|
|
26
|
+
const slots = useSlots();
|
|
27
|
+
watchEffect(() => {
|
|
28
|
+
const { path, use } = props;
|
|
29
|
+
const component = h(slots.default()[0]);
|
|
30
|
+
use.open = () => {
|
|
31
|
+
const createHandler = select(portals, path);
|
|
32
|
+
handler.value = createHandler(component);
|
|
33
|
+
const h = handler.value;
|
|
34
|
+
h.onRemove(() => {
|
|
35
|
+
use.id = false;
|
|
36
|
+
entryId.value = false;
|
|
37
|
+
});
|
|
38
|
+
use.update = h.update;
|
|
39
|
+
use.close = () => h.close();
|
|
40
|
+
use.remove = () => h.remove();
|
|
41
|
+
const id = h.open();
|
|
42
|
+
use.id = id;
|
|
43
|
+
entryId.value = id;
|
|
44
|
+
return id;
|
|
45
|
+
};
|
|
46
|
+
use.isReady();
|
|
47
|
+
});
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { Portal_vue_vue_type_script_setup_true_lang_default as default };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=Portal.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Portal.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/portals/Portal/Portal.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { watchEffect, h, useSlots } from 'vue';\n import { isPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\n import { select } from '@pastweb/tools/select';\n import { useRef } from '../../useRef';\n import { usePortals } from '../usePortals';\n import type { PortalProps, Portals } from './types';\n\n const props = defineProps<PortalProps>();\n\n if (!isPortalHandler(props.use)) {\n throw Error('Portal error - the \"use\" property must be a PortalHandler Object.');\n }\n\n const portals = usePortals() as Portals;\n const entryId = useRef<string | false>(false);\n const handler = useRef<PortalHandler | null>(null);\n const slots = useSlots();\n\n watchEffect(() => {\n const { path, use } = props;\n const component = h((slots as any).default()[0]);\n\n use.open = () => {\n const createHandler = select(portals, path);\n handler.value = createHandler(component);\n const h = handler.value as PortalHandler;\n\n h.onRemove(() => {\n use.id = false;\n entryId.value = false;\n });\n\n use.update = h.update;\n use.close = () => h.close();\n use.remove = () => h.remove();\n\n const id = h.open();\n use.id = id;\n entryId.value = id;\n\n return id;\n };\n\n use.isReady();\n });\n</script>\n\n<template />\n \n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAQE,MAAM,QAAQ;EAEd,IAAI,CAAC,gBAAgB,MAAM,GAAG,GAC5B,MAAM,MAAM,qEAAmE;EAGjF,MAAM,UAAU,WAAW;EAC3B,MAAM,UAAU,OAAuB,KAAK;EAC5C,MAAM,UAAU,OAA6B,IAAI;EACjD,MAAM,QAAQ,SAAS;EAEvB,kBAAkB;GAChB,MAAM,EAAE,MAAM,QAAQ;GACtB,MAAM,YAAY,EAAG,MAAc,QAAQ,CAAC,CAAC,EAAE;GAE/C,IAAI,aAAa;IACf,MAAM,gBAAgB,OAAO,SAAS,IAAI;IAC1C,QAAQ,QAAQ,cAAc,SAAS;IACvC,MAAM,IAAI,QAAQ;IAElB,EAAE,eAAe;KACf,IAAI,KAAK;KACT,QAAQ,QAAQ;IAClB,CAAC;IAED,IAAI,SAAS,EAAE;IACf,IAAI,cAAc,EAAE,MAAM;IAC1B,IAAI,eAAe,EAAE,OAAO;IAE5B,MAAM,KAAK,EAAE,KAAK;IAClB,IAAI,KAAK;IACT,QAAQ,QAAQ;IAEhB,OAAO;GACT;GAEA,IAAI,QAAQ;EACd,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Portal, PortalHandler } from "@pastweb/tools/portals";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/Portal/types.d.ts
|
|
4
|
+
/** Props for the Vue {@link Portal} component. */
|
|
5
|
+
interface PortalProps {
|
|
6
|
+
/** Dot-separated path into the installed portal descriptor map. */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Handler returned by {@link usePortal}. */
|
|
9
|
+
use: PortalHandler & {
|
|
10
|
+
isReady: () => void;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Nested portal descriptor map. */
|
|
14
|
+
interface Portals {
|
|
15
|
+
[name: string]: Portal | Portals;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { PortalProps, Portals };
|
|
19
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Portal, PortalHandler } from "@pastweb/tools/portals";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/Portal/types.d.ts
|
|
4
|
+
/** Props for the Vue {@link Portal} component. */
|
|
5
|
+
interface PortalProps {
|
|
6
|
+
/** Dot-separated path into the installed portal descriptor map. */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Handler returned by {@link usePortal}. */
|
|
9
|
+
use: PortalHandler & {
|
|
10
|
+
isReady: () => void;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Nested portal descriptor map. */
|
|
14
|
+
interface Portals {
|
|
15
|
+
[name: string]: Portal | Portals;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { PortalProps, Portals };
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_portals_installPortals_installPortals = require("./installPortals/installPortals.cjs");
|
|
3
|
+
require("./installPortals/index.cjs");
|
|
4
|
+
const require_portals_usePortals = require("./usePortals.cjs");
|
|
5
|
+
const require_portals_usePortal = require("./usePortal.cjs");
|
|
6
|
+
const require_portals_usePortalAnchors = require("./usePortalAnchors.cjs");
|
|
7
|
+
const require_Portal = require("./Portal/Portal.cjs");
|
|
8
|
+
require("./Portal/index.cjs");
|
|
9
|
+
exports.Portal = require_Portal.default;
|
|
10
|
+
exports.installPortals = require_portals_installPortals_installPortals.installPortals;
|
|
11
|
+
exports.usePortal = require_portals_usePortal.usePortal;
|
|
12
|
+
exports.usePortalAnchors = require_portals_usePortalAnchors.usePortalAnchors;
|
|
13
|
+
exports.usePortals = require_portals_usePortals.usePortals;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { installPortals } from "./installPortals/installPortals.cjs";
|
|
2
|
+
import { usePortals } from "./usePortals.cjs";
|
|
3
|
+
import { usePortal } from "./usePortal.cjs";
|
|
4
|
+
import { usePortalAnchors } from "./usePortalAnchors.cjs";
|
|
5
|
+
import { PortalProps } from "./Portal/types.cjs";
|
|
6
|
+
import _default from "./Portal/Portal.vue.cjs";
|
|
7
|
+
import { EntryDescriptor, PortalFunction, PortalsDescriptor } from "./types.cjs";
|
|
8
|
+
export { type EntryDescriptor, _default as Portal, type PortalFunction, type PortalProps, type PortalsDescriptor, installPortals, usePortal, usePortalAnchors, usePortals };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { installPortals } from "./installPortals/installPortals.js";
|
|
2
|
+
import { usePortals } from "./usePortals.js";
|
|
3
|
+
import { usePortal } from "./usePortal.js";
|
|
4
|
+
import { usePortalAnchors } from "./usePortalAnchors.js";
|
|
5
|
+
import { PortalProps } from "./Portal/types.js";
|
|
6
|
+
import _default from "./Portal/Portal.vue.js";
|
|
7
|
+
import { EntryDescriptor, PortalFunction, PortalsDescriptor } from "./types.js";
|
|
8
|
+
export { type EntryDescriptor, _default as Portal, type PortalFunction, type PortalProps, type PortalsDescriptor, installPortals, usePortal, usePortalAnchors, usePortals };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { installPortals } from "./installPortals/installPortals.js";
|
|
2
|
+
import "./installPortals/index.js";
|
|
3
|
+
import { usePortals } from "./usePortals.js";
|
|
4
|
+
import { usePortal } from "./usePortal.js";
|
|
5
|
+
import { usePortalAnchors } from "./usePortalAnchors.js";
|
|
6
|
+
import Portal_default from "./Portal/Portal.js";
|
|
7
|
+
import "./Portal/index.js";
|
|
8
|
+
export { Portal_default as Portal, installPortals, usePortal, usePortalAnchors, usePortals };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _pastweb_tools_createIdCache = require("@pastweb/tools/createIdCache");
|
|
3
|
+
let _pastweb_tools_portals = require("@pastweb/tools/portals");
|
|
4
|
+
//#region src/portals/installPortals/installPortals.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Vue plugin that installs portal descriptors and anchor ids.
|
|
7
|
+
*
|
|
8
|
+
* The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are
|
|
9
|
+
* provided under the shared tools context keys. Components can then read them
|
|
10
|
+
* with {@link usePortals} and {@link usePortalAnchors}.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Portal installation options.
|
|
13
|
+
* @returns Vue plugin that provides portal descriptors and anchor ids.
|
|
14
|
+
*/
|
|
15
|
+
function installPortals({ anchorsIds, getEntry, idChahe = _pastweb_tools_createIdCache.currentIdCache, portalsCache = _pastweb_tools_portals.currentPortalsCache }) {
|
|
16
|
+
return { install(app) {
|
|
17
|
+
const portals = (0, _pastweb_tools_portals.anchorsSetup)(getEntry, anchorsIds, idChahe, portalsCache);
|
|
18
|
+
app.provide(_pastweb_tools_portals.PORTALS_CONTEXT_KEY, portals);
|
|
19
|
+
app.provide(_pastweb_tools_portals.PORTAL_ANCHORS_CONTEXT_KEY, anchorsIds);
|
|
20
|
+
} };
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.installPortals = installPortals;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=installPortals.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installPortals.cjs","names":["currentIdCache","currentPortalsCache","PORTALS_CONTEXT_KEY","PORTAL_ANCHORS_CONTEXT_KEY"],"sources":["../../../src/portals/installPortals/installPortals.ts"],"sourcesContent":["import { currentIdCache } from '@pastweb/tools/createIdCache';\nimport { anchorsSetup, currentPortalsCache, PORTALS_CONTEXT_KEY, PORTAL_ANCHORS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport type { App } from 'vue';\nimport type{ PortalsOptions } from './types';\n\n/**\n * Creates a Vue plugin that installs portal descriptors and anchor ids.\n *\n * The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are\n * provided under the shared tools context keys. Components can then read them\n * with {@link usePortals} and {@link usePortalAnchors}.\n *\n * @param options - Portal installation options.\n * @returns Vue plugin that provides portal descriptors and anchor ids.\n */\nexport function installPortals({\n anchorsIds,\n getEntry,\n idChahe = currentIdCache,\n portalsCache = currentPortalsCache,\n}: PortalsOptions) {\n return {\n install(app: App) {\n const portals = anchorsSetup(getEntry, anchorsIds, idChahe, portalsCache);\n\n app.provide(PORTALS_CONTEXT_KEY, portals as typeof portals);\n app.provide(PORTAL_ANCHORS_CONTEXT_KEY, anchorsIds);\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,eAAe,EAC7B,YACA,UACA,UAAUA,6BAAAA,gBACV,eAAeC,uBAAAA,uBACE;CACjB,OAAO,EACL,QAAQ,KAAU;EAChB,MAAM,WAAA,GAAA,uBAAA,aAAA,CAAuB,UAAU,YAAY,SAAS,YAAY;EAExE,IAAI,QAAQC,uBAAAA,qBAAqB,OAAyB;EAC1D,IAAI,QAAQC,uBAAAA,4BAA4B,UAAU;CACpD,EACF;AACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PortalsOptions } from "./types.cjs";
|
|
2
|
+
import { App } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/portals/installPortals/installPortals.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Vue plugin that installs portal descriptors and anchor ids.
|
|
7
|
+
*
|
|
8
|
+
* The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are
|
|
9
|
+
* provided under the shared tools context keys. Components can then read them
|
|
10
|
+
* with {@link usePortals} and {@link usePortalAnchors}.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Portal installation options.
|
|
13
|
+
* @returns Vue plugin that provides portal descriptors and anchor ids.
|
|
14
|
+
*/
|
|
15
|
+
declare function installPortals({
|
|
16
|
+
anchorsIds,
|
|
17
|
+
getEntry,
|
|
18
|
+
idChahe,
|
|
19
|
+
portalsCache
|
|
20
|
+
}: PortalsOptions): {
|
|
21
|
+
install(app: App): void;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { installPortals };
|
|
25
|
+
//# sourceMappingURL=installPortals.d.cts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PortalsOptions } from "./types.js";
|
|
2
|
+
import { App } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/portals/installPortals/installPortals.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a Vue plugin that installs portal descriptors and anchor ids.
|
|
7
|
+
*
|
|
8
|
+
* The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are
|
|
9
|
+
* provided under the shared tools context keys. Components can then read them
|
|
10
|
+
* with {@link usePortals} and {@link usePortalAnchors}.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Portal installation options.
|
|
13
|
+
* @returns Vue plugin that provides portal descriptors and anchor ids.
|
|
14
|
+
*/
|
|
15
|
+
declare function installPortals({
|
|
16
|
+
anchorsIds,
|
|
17
|
+
getEntry,
|
|
18
|
+
idChahe,
|
|
19
|
+
portalsCache
|
|
20
|
+
}: PortalsOptions): {
|
|
21
|
+
install(app: App): void;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { installPortals };
|
|
25
|
+
//# sourceMappingURL=installPortals.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { currentIdCache } from "@pastweb/tools/createIdCache";
|
|
2
|
+
import { PORTALS_CONTEXT_KEY, PORTAL_ANCHORS_CONTEXT_KEY, anchorsSetup, currentPortalsCache } from "@pastweb/tools/portals";
|
|
3
|
+
//#region src/portals/installPortals/installPortals.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Vue plugin that installs portal descriptors and anchor ids.
|
|
6
|
+
*
|
|
7
|
+
* The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are
|
|
8
|
+
* provided under the shared tools context keys. Components can then read them
|
|
9
|
+
* with {@link usePortals} and {@link usePortalAnchors}.
|
|
10
|
+
*
|
|
11
|
+
* @param options - Portal installation options.
|
|
12
|
+
* @returns Vue plugin that provides portal descriptors and anchor ids.
|
|
13
|
+
*/
|
|
14
|
+
function installPortals({ anchorsIds, getEntry, idChahe = currentIdCache, portalsCache = currentPortalsCache }) {
|
|
15
|
+
return { install(app) {
|
|
16
|
+
const portals = anchorsSetup(getEntry, anchorsIds, idChahe, portalsCache);
|
|
17
|
+
app.provide(PORTALS_CONTEXT_KEY, portals);
|
|
18
|
+
app.provide(PORTAL_ANCHORS_CONTEXT_KEY, anchorsIds);
|
|
19
|
+
} };
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { installPortals };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=installPortals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installPortals.js","names":[],"sources":["../../../src/portals/installPortals/installPortals.ts"],"sourcesContent":["import { currentIdCache } from '@pastweb/tools/createIdCache';\nimport { anchorsSetup, currentPortalsCache, PORTALS_CONTEXT_KEY, PORTAL_ANCHORS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport type { App } from 'vue';\nimport type{ PortalsOptions } from './types';\n\n/**\n * Creates a Vue plugin that installs portal descriptors and anchor ids.\n *\n * The descriptors are created by `anchorsSetup` from `@pastweb/tools` and are\n * provided under the shared tools context keys. Components can then read them\n * with {@link usePortals} and {@link usePortalAnchors}.\n *\n * @param options - Portal installation options.\n * @returns Vue plugin that provides portal descriptors and anchor ids.\n */\nexport function installPortals({\n anchorsIds,\n getEntry,\n idChahe = currentIdCache,\n portalsCache = currentPortalsCache,\n}: PortalsOptions) {\n return {\n install(app: App) {\n const portals = anchorsSetup(getEntry, anchorsIds, idChahe, portalsCache);\n\n app.provide(PORTALS_CONTEXT_KEY, portals as typeof portals);\n app.provide(PORTAL_ANCHORS_CONTEXT_KEY, anchorsIds);\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;AAeA,SAAgB,eAAe,EAC7B,YACA,UACA,UAAU,gBACV,eAAe,uBACE;CACjB,OAAO,EACL,QAAQ,KAAU;EAChB,MAAM,UAAU,aAAa,UAAU,YAAY,SAAS,YAAY;EAExE,IAAI,QAAQ,qBAAqB,OAAyB;EAC1D,IAAI,QAAQ,4BAA4B,UAAU;CACpD,EACF;AACF"}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VueEntry } from "../../createEntry/types.cjs";
|
|
2
|
+
import { Component, VNode } from "vue";
|
|
3
|
+
import { IdCache } from "@pastweb/tools/createIdCache";
|
|
4
|
+
import { PortalAnchorsIds, Portals } from "@pastweb/tools/portals";
|
|
5
|
+
|
|
6
|
+
//#region src/portals/installPortals/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Options used to install Vue portal descriptors into app-level dependency
|
|
9
|
+
* injection.
|
|
10
|
+
*/
|
|
11
|
+
interface PortalsOptions {
|
|
12
|
+
/** Anchor ids keyed by portal path. */
|
|
13
|
+
anchorsIds: PortalAnchorsIds;
|
|
14
|
+
/** Factory that creates a Vue entry for each opened portal. */
|
|
15
|
+
getEntry: (props: Record<string, any>, component: Component | VNode | null) => VueEntry;
|
|
16
|
+
/** Optional id cache used by the tools portal layer. */
|
|
17
|
+
idChahe?: IdCache;
|
|
18
|
+
/** Optional portal cache used by the tools portal layer. */
|
|
19
|
+
portalsCache?: Portals;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PortalsOptions };
|
|
23
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VueEntry } from "../../createEntry/types.js";
|
|
2
|
+
import { Component, VNode } from "vue";
|
|
3
|
+
import { IdCache } from "@pastweb/tools/createIdCache";
|
|
4
|
+
import { PortalAnchorsIds, Portals } from "@pastweb/tools/portals";
|
|
5
|
+
|
|
6
|
+
//#region src/portals/installPortals/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Options used to install Vue portal descriptors into app-level dependency
|
|
9
|
+
* injection.
|
|
10
|
+
*/
|
|
11
|
+
interface PortalsOptions {
|
|
12
|
+
/** Anchor ids keyed by portal path. */
|
|
13
|
+
anchorsIds: PortalAnchorsIds;
|
|
14
|
+
/** Factory that creates a Vue entry for each opened portal. */
|
|
15
|
+
getEntry: (props: Record<string, any>, component: Component | VNode | null) => VueEntry;
|
|
16
|
+
/** Optional id cache used by the tools portal layer. */
|
|
17
|
+
idChahe?: IdCache;
|
|
18
|
+
/** Optional portal cache used by the tools portal layer. */
|
|
19
|
+
portalsCache?: Portals;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PortalsOptions };
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component, VNode } from "vue";
|
|
2
|
+
import { Portal as Portal$1, PortalAnchorsIds, PortalHandler, Portals as PortalsCache } from "@pastweb/tools/portals";
|
|
3
|
+
|
|
4
|
+
//#region src/portals/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Vue-specialized portal descriptor.
|
|
7
|
+
*
|
|
8
|
+
* It keeps the framework-agnostic portal lifecycle from `@pastweb/tools`, but
|
|
9
|
+
* narrows `open` so Vue components and VNodes can be passed directly.
|
|
10
|
+
*/
|
|
11
|
+
type Portal = Omit<Portal$1, 'open'> & {
|
|
12
|
+
open: (component: Component | VNode | null, props?: Record<string, any> | (() => Record<string, any>), defaults?: Record<string, any>) => string | false;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Shape of a portal factory produced by `installPortals`.
|
|
16
|
+
*/
|
|
17
|
+
declare function portalFunction(component: Component | VNode | null, props?: Record<string, any> | (() => Record<string, any>), defaults?: Record<string, any>): PortalHandler;
|
|
18
|
+
declare namespace portalFunction {
|
|
19
|
+
const open: (component: Component | VNode | null, props?: Record<string, any> | (() => Record<string, any>) | undefined, defaults?: Record<string, any> | undefined) => string | false;
|
|
20
|
+
const update: (entryId: string, props: Record<string, any>) => boolean;
|
|
21
|
+
const close: (entryId: string) => void;
|
|
22
|
+
const remove: (entryId: string) => boolean;
|
|
23
|
+
const getEntryId: () => string;
|
|
24
|
+
const removeEntryId: (id: string) => void;
|
|
25
|
+
}
|
|
26
|
+
/** Function used by application code to create a portal handler for one anchor. */
|
|
27
|
+
type PortalFunction = typeof portalFunction;
|
|
28
|
+
/** Nested portal descriptor map keyed by portal path. */
|
|
29
|
+
interface PortalsDescriptor {
|
|
30
|
+
[pathName: string]: Portal | PortalsDescriptor | typeof portalFunction;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Vue entry factory passed to `installPortals`.
|
|
34
|
+
*
|
|
35
|
+
* The tools portal layer calls this function whenever a portal entry is opened.
|
|
36
|
+
*/
|
|
37
|
+
type EntryDescriptor = (props: Record<string, any>, component: Component | VNode | null) => any;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { EntryDescriptor, Portal, type PortalAnchorsIds, PortalFunction, type PortalsCache, PortalsDescriptor, portalFunction };
|
|
40
|
+
//# sourceMappingURL=types.d.cts.map
|