@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,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.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_useRef_useRef = require("../useRef/useRef.cjs");
|
|
3
|
+
require("../useRef/index.cjs");
|
|
4
|
+
let _pastweb_tools_portals = require("@pastweb/tools/portals");
|
|
5
|
+
//#region src/portals/usePortal.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates a portal handler that can be passed to the {@link Portal} component.
|
|
8
|
+
*
|
|
9
|
+
* Calls made before the `Portal` component binds the real handler are queued
|
|
10
|
+
* and replayed when `isReady()` runs.
|
|
11
|
+
*
|
|
12
|
+
* @returns A portal handler with an internal `isReady` flush method.
|
|
13
|
+
*/
|
|
14
|
+
function usePortal() {
|
|
15
|
+
const portal = require_useRef_useRef.useRef({});
|
|
16
|
+
const called = {};
|
|
17
|
+
portal.value = (0, _pastweb_tools_portals.setAsPortalHandler)({
|
|
18
|
+
id: false,
|
|
19
|
+
open: () => {
|
|
20
|
+
called.open = true;
|
|
21
|
+
},
|
|
22
|
+
update: (props) => {
|
|
23
|
+
called.update = props;
|
|
24
|
+
},
|
|
25
|
+
close: () => {
|
|
26
|
+
called.close = true;
|
|
27
|
+
},
|
|
28
|
+
remove: () => {
|
|
29
|
+
called.remove = true;
|
|
30
|
+
},
|
|
31
|
+
isReady: () => {
|
|
32
|
+
const p = portal.value;
|
|
33
|
+
Object.entries({ ...called }).forEach(([key, val]) => {
|
|
34
|
+
setTimeout(() => p[key](val), 16);
|
|
35
|
+
delete called[key];
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return portal.value;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.usePortal = usePortal;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=usePortal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortal.cjs","names":["useRef"],"sources":["../../src/portals/usePortal.ts"],"sourcesContent":["import { setAsPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\nimport { useRef } from '../useRef';\n\n/**\n * Creates a portal handler that can be passed to the {@link Portal} component.\n *\n * Calls made before the `Portal` component binds the real handler are queued\n * and replayed when `isReady()` runs.\n *\n * @returns A portal handler with an internal `isReady` flush method.\n */\nexport function usePortal(): PortalHandler & { isReady: () => void } {\n const portal = useRef({});\n\n const called: Record<string, any> = {};\n\n const handler = setAsPortalHandler({\n id: false,\n open: () => { called.open = true; },\n update: (props: Record<string, any>) => { called.update = props; },\n close: () => { called.close = true; },\n remove: () => { called.remove = true; },\n isReady: () => {\n const p = portal.value as PortalHandler;\n\n Object.entries({ ...called }).forEach(([key, val]: [string, Record<string, any>]) => {\n setTimeout(() => (p as unknown as Record<string, Function>)[key](val), 16);\n delete called[key];\n });\n },\n });\n\n portal.value = handler;\n\n return portal.value as PortalHandler & { isReady: () => void };\n}\n"],"mappings":";;;;;;;;;;;;;AAWA,SAAgB,YAAqD;CACnE,MAAM,SAASA,sBAAAA,OAAO,CAAC,CAAC;CAExB,MAAM,SAA8B,CAAC;CAkBrC,OAAO,SAAA,GAAA,uBAAA,mBAAA,CAhB4B;EACjC,IAAI;EACJ,YAAY;GAAE,OAAO,OAAO;EAAM;EAClC,SAAS,UAA+B;GAAE,OAAO,SAAS;EAAO;EACjE,aAAa;GAAE,OAAO,QAAQ;EAAM;EACpC,cAAc;GAAE,OAAO,SAAS;EAAM;EACtC,eAAe;GACb,MAAM,IAAI,OAAO;GAEjB,OAAO,QAAQ,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,SAAwC;IACnF,iBAAkB,EAA0C,IAAI,CAAC,GAAG,GAAG,EAAE;IACzE,OAAO,OAAO;GAChB,CAAC;EACH;CACF,CAEqB;CAErB,OAAO,OAAO;AAChB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PortalHandler } from "@pastweb/tools/portals";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/usePortal.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a portal handler that can be passed to the {@link Portal} component.
|
|
6
|
+
*
|
|
7
|
+
* Calls made before the `Portal` component binds the real handler are queued
|
|
8
|
+
* and replayed when `isReady()` runs.
|
|
9
|
+
*
|
|
10
|
+
* @returns A portal handler with an internal `isReady` flush method.
|
|
11
|
+
*/
|
|
12
|
+
declare function usePortal(): PortalHandler & {
|
|
13
|
+
isReady: () => void;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { usePortal };
|
|
17
|
+
//# sourceMappingURL=usePortal.d.cts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PortalHandler } from "@pastweb/tools/portals";
|
|
2
|
+
|
|
3
|
+
//#region src/portals/usePortal.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates a portal handler that can be passed to the {@link Portal} component.
|
|
6
|
+
*
|
|
7
|
+
* Calls made before the `Portal` component binds the real handler are queued
|
|
8
|
+
* and replayed when `isReady()` runs.
|
|
9
|
+
*
|
|
10
|
+
* @returns A portal handler with an internal `isReady` flush method.
|
|
11
|
+
*/
|
|
12
|
+
declare function usePortal(): PortalHandler & {
|
|
13
|
+
isReady: () => void;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { usePortal };
|
|
17
|
+
//# sourceMappingURL=usePortal.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useRef } from "../useRef/useRef.js";
|
|
2
|
+
import "../useRef/index.js";
|
|
3
|
+
import { setAsPortalHandler } from "@pastweb/tools/portals";
|
|
4
|
+
//#region src/portals/usePortal.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates a portal handler that can be passed to the {@link Portal} component.
|
|
7
|
+
*
|
|
8
|
+
* Calls made before the `Portal` component binds the real handler are queued
|
|
9
|
+
* and replayed when `isReady()` runs.
|
|
10
|
+
*
|
|
11
|
+
* @returns A portal handler with an internal `isReady` flush method.
|
|
12
|
+
*/
|
|
13
|
+
function usePortal() {
|
|
14
|
+
const portal = useRef({});
|
|
15
|
+
const called = {};
|
|
16
|
+
portal.value = setAsPortalHandler({
|
|
17
|
+
id: false,
|
|
18
|
+
open: () => {
|
|
19
|
+
called.open = true;
|
|
20
|
+
},
|
|
21
|
+
update: (props) => {
|
|
22
|
+
called.update = props;
|
|
23
|
+
},
|
|
24
|
+
close: () => {
|
|
25
|
+
called.close = true;
|
|
26
|
+
},
|
|
27
|
+
remove: () => {
|
|
28
|
+
called.remove = true;
|
|
29
|
+
},
|
|
30
|
+
isReady: () => {
|
|
31
|
+
const p = portal.value;
|
|
32
|
+
Object.entries({ ...called }).forEach(([key, val]) => {
|
|
33
|
+
setTimeout(() => p[key](val), 16);
|
|
34
|
+
delete called[key];
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return portal.value;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { usePortal };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=usePortal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortal.js","names":[],"sources":["../../src/portals/usePortal.ts"],"sourcesContent":["import { setAsPortalHandler, type PortalHandler } from '@pastweb/tools/portals';\nimport { useRef } from '../useRef';\n\n/**\n * Creates a portal handler that can be passed to the {@link Portal} component.\n *\n * Calls made before the `Portal` component binds the real handler are queued\n * and replayed when `isReady()` runs.\n *\n * @returns A portal handler with an internal `isReady` flush method.\n */\nexport function usePortal(): PortalHandler & { isReady: () => void } {\n const portal = useRef({});\n\n const called: Record<string, any> = {};\n\n const handler = setAsPortalHandler({\n id: false,\n open: () => { called.open = true; },\n update: (props: Record<string, any>) => { called.update = props; },\n close: () => { called.close = true; },\n remove: () => { called.remove = true; },\n isReady: () => {\n const p = portal.value as PortalHandler;\n\n Object.entries({ ...called }).forEach(([key, val]: [string, Record<string, any>]) => {\n setTimeout(() => (p as unknown as Record<string, Function>)[key](val), 16);\n delete called[key];\n });\n },\n });\n\n portal.value = handler;\n\n return portal.value as PortalHandler & { isReady: () => void };\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,YAAqD;CACnE,MAAM,SAAS,OAAO,CAAC,CAAC;CAExB,MAAM,SAA8B,CAAC;CAkBrC,OAAO,QAhBS,mBAAmB;EACjC,IAAI;EACJ,YAAY;GAAE,OAAO,OAAO;EAAM;EAClC,SAAS,UAA+B;GAAE,OAAO,SAAS;EAAO;EACjE,aAAa;GAAE,OAAO,QAAQ;EAAM;EACpC,cAAc;GAAE,OAAO,SAAS;EAAM;EACtC,eAAe;GACb,MAAM,IAAI,OAAO;GAEjB,OAAO,QAAQ,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,SAAwC;IACnF,iBAAkB,EAA0C,IAAI,CAAC,GAAG,GAAG,EAAE;IACzE,OAAO,OAAO;GAChB,CAAC;EACH;CACF,CAEqB;CAErB,OAAO,OAAO;AAChB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_getContext_getContext = require("../getContext/getContext.cjs");
|
|
3
|
+
require("../getContext/index.cjs");
|
|
4
|
+
let _pastweb_tools_portals = require("@pastweb/tools/portals");
|
|
5
|
+
//#region src/portals/usePortalAnchors.ts
|
|
6
|
+
/**
|
|
7
|
+
* Reads the installed portal anchor ids.
|
|
8
|
+
*
|
|
9
|
+
* The value is provided by {@link installPortals} under the shared
|
|
10
|
+
* `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Expected anchor id map shape.
|
|
13
|
+
* @returns The current portal anchor ids.
|
|
14
|
+
*/
|
|
15
|
+
function usePortalAnchors() {
|
|
16
|
+
return require_getContext_getContext.getContext(_pastweb_tools_portals.PORTAL_ANCHORS_CONTEXT_KEY);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.usePortalAnchors = usePortalAnchors;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=usePortalAnchors.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortalAnchors.cjs","names":["getContext","PORTAL_ANCHORS_CONTEXT_KEY"],"sources":["../../src/portals/usePortalAnchors.ts"],"sourcesContent":["import { PORTAL_ANCHORS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport { getContext } from '../getContext';\n\n/**\n * Reads the installed portal anchor ids.\n *\n * The value is provided by {@link installPortals} under the shared\n * `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.\n *\n * @typeParam T - Expected anchor id map shape.\n * @returns The current portal anchor ids.\n */\nexport function usePortalAnchors<T>(): T {\n return getContext<T>(PORTAL_ANCHORS_CONTEXT_KEY);\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,SAAgB,mBAAyB;CACvC,OAAOA,8BAAAA,WAAcC,uBAAAA,0BAA0B;AACjD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/portals/usePortalAnchors.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads the installed portal anchor ids.
|
|
4
|
+
*
|
|
5
|
+
* The value is provided by {@link installPortals} under the shared
|
|
6
|
+
* `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - Expected anchor id map shape.
|
|
9
|
+
* @returns The current portal anchor ids.
|
|
10
|
+
*/
|
|
11
|
+
declare function usePortalAnchors<T>(): T;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePortalAnchors };
|
|
14
|
+
//# sourceMappingURL=usePortalAnchors.d.cts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/portals/usePortalAnchors.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads the installed portal anchor ids.
|
|
4
|
+
*
|
|
5
|
+
* The value is provided by {@link installPortals} under the shared
|
|
6
|
+
* `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - Expected anchor id map shape.
|
|
9
|
+
* @returns The current portal anchor ids.
|
|
10
|
+
*/
|
|
11
|
+
declare function usePortalAnchors<T>(): T;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePortalAnchors };
|
|
14
|
+
//# sourceMappingURL=usePortalAnchors.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getContext } from "../getContext/getContext.js";
|
|
2
|
+
import "../getContext/index.js";
|
|
3
|
+
import { PORTAL_ANCHORS_CONTEXT_KEY } from "@pastweb/tools/portals";
|
|
4
|
+
//#region src/portals/usePortalAnchors.ts
|
|
5
|
+
/**
|
|
6
|
+
* Reads the installed portal anchor ids.
|
|
7
|
+
*
|
|
8
|
+
* The value is provided by {@link installPortals} under the shared
|
|
9
|
+
* `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Expected anchor id map shape.
|
|
12
|
+
* @returns The current portal anchor ids.
|
|
13
|
+
*/
|
|
14
|
+
function usePortalAnchors() {
|
|
15
|
+
return getContext(PORTAL_ANCHORS_CONTEXT_KEY);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { usePortalAnchors };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=usePortalAnchors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortalAnchors.js","names":[],"sources":["../../src/portals/usePortalAnchors.ts"],"sourcesContent":["import { PORTAL_ANCHORS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport { getContext } from '../getContext';\n\n/**\n * Reads the installed portal anchor ids.\n *\n * The value is provided by {@link installPortals} under the shared\n * `PORTAL_ANCHORS_CONTEXT_KEY` from `@pastweb/tools`.\n *\n * @typeParam T - Expected anchor id map shape.\n * @returns The current portal anchor ids.\n */\nexport function usePortalAnchors<T>(): T {\n return getContext<T>(PORTAL_ANCHORS_CONTEXT_KEY);\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,mBAAyB;CACvC,OAAO,WAAc,0BAA0B;AACjD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_getContext_getContext = require("../getContext/getContext.cjs");
|
|
3
|
+
require("../getContext/index.cjs");
|
|
4
|
+
let _pastweb_tools_portals = require("@pastweb/tools/portals");
|
|
5
|
+
//#region src/portals/usePortals.ts
|
|
6
|
+
/**
|
|
7
|
+
* Reads the installed portal descriptor map.
|
|
8
|
+
*
|
|
9
|
+
* The value is provided by {@link installPortals} under the shared
|
|
10
|
+
* `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Expected portal descriptor shape.
|
|
13
|
+
* @returns The current portal descriptor map.
|
|
14
|
+
*/
|
|
15
|
+
function usePortals() {
|
|
16
|
+
return require_getContext_getContext.getContext(_pastweb_tools_portals.PORTALS_CONTEXT_KEY);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.usePortals = usePortals;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=usePortals.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortals.cjs","names":["getContext","PORTALS_CONTEXT_KEY"],"sources":["../../src/portals/usePortals.ts"],"sourcesContent":["import { PORTALS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport { getContext } from '../getContext';\n\n/**\n * Reads the installed portal descriptor map.\n *\n * The value is provided by {@link installPortals} under the shared\n * `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.\n *\n * @typeParam T - Expected portal descriptor shape.\n * @returns The current portal descriptor map.\n */\nexport function usePortals<T>(): T {\n return getContext<T>(PORTALS_CONTEXT_KEY);\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,SAAgB,aAAmB;CACjC,OAAOA,8BAAAA,WAAcC,uBAAAA,mBAAmB;AAC1C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/portals/usePortals.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads the installed portal descriptor map.
|
|
4
|
+
*
|
|
5
|
+
* The value is provided by {@link installPortals} under the shared
|
|
6
|
+
* `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - Expected portal descriptor shape.
|
|
9
|
+
* @returns The current portal descriptor map.
|
|
10
|
+
*/
|
|
11
|
+
declare function usePortals<T>(): T;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePortals };
|
|
14
|
+
//# sourceMappingURL=usePortals.d.cts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/portals/usePortals.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads the installed portal descriptor map.
|
|
4
|
+
*
|
|
5
|
+
* The value is provided by {@link installPortals} under the shared
|
|
6
|
+
* `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - Expected portal descriptor shape.
|
|
9
|
+
* @returns The current portal descriptor map.
|
|
10
|
+
*/
|
|
11
|
+
declare function usePortals<T>(): T;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePortals };
|
|
14
|
+
//# sourceMappingURL=usePortals.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getContext } from "../getContext/getContext.js";
|
|
2
|
+
import "../getContext/index.js";
|
|
3
|
+
import { PORTALS_CONTEXT_KEY } from "@pastweb/tools/portals";
|
|
4
|
+
//#region src/portals/usePortals.ts
|
|
5
|
+
/**
|
|
6
|
+
* Reads the installed portal descriptor map.
|
|
7
|
+
*
|
|
8
|
+
* The value is provided by {@link installPortals} under the shared
|
|
9
|
+
* `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Expected portal descriptor shape.
|
|
12
|
+
* @returns The current portal descriptor map.
|
|
13
|
+
*/
|
|
14
|
+
function usePortals() {
|
|
15
|
+
return getContext(PORTALS_CONTEXT_KEY);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { usePortals };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=usePortals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePortals.js","names":[],"sources":["../../src/portals/usePortals.ts"],"sourcesContent":["import { PORTALS_CONTEXT_KEY } from '@pastweb/tools/portals';\nimport { getContext } from '../getContext';\n\n/**\n * Reads the installed portal descriptor map.\n *\n * The value is provided by {@link installPortals} under the shared\n * `PORTALS_CONTEXT_KEY` from `@pastweb/tools`.\n *\n * @typeParam T - Expected portal descriptor shape.\n * @returns The current portal descriptor map.\n */\nexport function usePortals<T>(): T {\n return getContext<T>(PORTALS_CONTEXT_KEY);\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,aAAmB;CACjC,OAAO,WAAc,mBAAmB;AAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.cjs","names":[],"sources":["../../../src/router/RouterLink/RouterLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { useRef } from '../../useRef';\n import { useRouterLink } from '../useRouterLink';\n import type { RouterLinkProps } from './types';\n\n const props = defineProps<RouterLinkProps>();\n const link = useRouterLink(props);\n const ref = useRef<HTMLElement | null>(null);\n\n defineExpose({ ref });\n\n function onClick(e: MouseEvent) {\n e.preventDefault();\n if (!props.preventNavigate) link.navigate();\n }\n</script>\n\n<template>\n <a ref=\"ref\" :href=\"link.pathname\" :class=\"props.className\" @click=\"onClick\">\n <slot />\n </a>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import RouterLink_vue_vue_type_script_setup_true_lang_default from "./RouterLink.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/router/RouterLink/RouterLink.vue
|
|
3
|
+
var RouterLink_default = RouterLink_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { RouterLink_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=RouterLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.js","names":[],"sources":["../../../src/router/RouterLink/RouterLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { useRef } from '../../useRef';\n import { useRouterLink } from '../useRouterLink';\n import type { RouterLinkProps } from './types';\n\n const props = defineProps<RouterLinkProps>();\n const link = useRouterLink(props);\n const ref = useRef<HTMLElement | null>(null);\n\n defineExpose({ ref });\n\n function onClick(e: MouseEvent) {\n e.preventDefault();\n if (!props.preventNavigate) link.navigate();\n }\n</script>\n\n<template>\n <a ref=\"ref\" :href=\"link.pathname\" :class=\"props.className\" @click=\"onClick\">\n <slot />\n </a>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RouterLinkProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/router/RouterLink/RouterLink.vue.d.ts
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps, {
|
|
9
|
+
ref: import("vue").Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export = _default;
|
|
18
|
+
//# sourceMappingURL=RouterLink.vue.d.cts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RouterLinkProps } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/router/RouterLink/RouterLink.vue.d.ts
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<RouterLinkProps, {
|
|
9
|
+
ref: import("vue").Ref<HTMLElement | null | undefined, HTMLElement | null | undefined>;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default as default };
|
|
19
|
+
//# sourceMappingURL=RouterLink.vue.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const require_useRef_useRef = require("../../useRef/useRef.cjs");
|
|
2
|
+
require("../../useRef/index.cjs");
|
|
3
|
+
const require_router_useRouterLink_useRouterLink = require("../useRouterLink/useRouterLink.cjs");
|
|
4
|
+
require("../useRouterLink/index.cjs");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
//#region src/router/RouterLink/RouterLink.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
const _hoisted_1 = ["href"];
|
|
8
|
+
var RouterLink_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
9
|
+
__name: "RouterLink",
|
|
10
|
+
props: {
|
|
11
|
+
path: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
params: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
searchParams: {
|
|
20
|
+
type: null,
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
hash: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false
|
|
26
|
+
},
|
|
27
|
+
className: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
preventNavigate: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(__props, { expose: __expose }) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const link = require_router_useRouterLink_useRouterLink.useRouterLink(props);
|
|
39
|
+
const ref = require_useRef_useRef.useRef(null);
|
|
40
|
+
__expose({ ref });
|
|
41
|
+
function onClick(e) {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
if (!props.preventNavigate) link.navigate();
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("a", {
|
|
47
|
+
ref_key: "ref",
|
|
48
|
+
ref,
|
|
49
|
+
href: (0, vue.unref)(link).pathname,
|
|
50
|
+
class: (0, vue.normalizeClass)(props.className),
|
|
51
|
+
onClick
|
|
52
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
exports.default = RouterLink_vue_vue_type_script_setup_true_lang_default;
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=RouterLink.vue_vue_type_script_setup_true_lang.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../../src/router/RouterLink/RouterLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { useRef } from '../../useRef';\n import { useRouterLink } from '../useRouterLink';\n import type { RouterLinkProps } from './types';\n\n const props = defineProps<RouterLinkProps>();\n const link = useRouterLink(props);\n const ref = useRef<HTMLElement | null>(null);\n\n defineExpose({ ref });\n\n function onClick(e: MouseEvent) {\n e.preventDefault();\n if (!props.preventNavigate) link.navigate();\n }\n</script>\n\n<template>\n <a ref=\"ref\" :href=\"link.pathname\" :class=\"props.className\" @click=\"onClick\">\n <slot />\n </a>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKE,MAAM,QAAQ;EACd,MAAM,OAAO,2CAAA,cAAc,KAAK;EAChC,MAAM,MAAM,sBAAA,OAA2B,IAAI;EAE3C,SAAa,EAAE,IAAI,CAAC;EAEpB,SAAS,QAAQ,GAAe;GAC9B,EAAE,eAAe;GACjB,IAAI,CAAC,MAAM,iBAAiB,KAAK,SAAS;EAC5C;;4DAMI,KAAA;aAFG;IAAA;IAAO,OAAA,GAAA,IAAA,MAAA,CAAM,IAAA,CAAI,CAAC;IAAW,QAAA,GAAA,IAAA,eAAA,CAAO,MAAM,SAAS;IAAU;2BAC1D,KAAA,QAAA,SAAA,CAAA,GAAA,IAAA,UAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useRef } from "../../useRef/useRef.js";
|
|
2
|
+
import "../../useRef/index.js";
|
|
3
|
+
import { useRouterLink } from "../useRouterLink/useRouterLink.js";
|
|
4
|
+
import "../useRouterLink/index.js";
|
|
5
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
6
|
+
//#region src/router/RouterLink/RouterLink.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
const _hoisted_1 = ["href"];
|
|
8
|
+
var RouterLink_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "RouterLink",
|
|
10
|
+
props: {
|
|
11
|
+
path: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
params: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
searchParams: {
|
|
20
|
+
type: null,
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
hash: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false
|
|
26
|
+
},
|
|
27
|
+
className: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
preventNavigate: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(__props, { expose: __expose }) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const link = useRouterLink(props);
|
|
39
|
+
const ref = useRef(null);
|
|
40
|
+
__expose({ ref });
|
|
41
|
+
function onClick(e) {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
if (!props.preventNavigate) link.navigate();
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createElementBlock("a", {
|
|
47
|
+
ref_key: "ref",
|
|
48
|
+
ref,
|
|
49
|
+
href: unref(link).pathname,
|
|
50
|
+
class: normalizeClass(props.className),
|
|
51
|
+
onClick
|
|
52
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { RouterLink_vue_vue_type_script_setup_true_lang_default as default };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=RouterLink.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/router/RouterLink/RouterLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { useRef } from '../../useRef';\n import { useRouterLink } from '../useRouterLink';\n import type { RouterLinkProps } from './types';\n\n const props = defineProps<RouterLinkProps>();\n const link = useRouterLink(props);\n const ref = useRef<HTMLElement | null>(null);\n\n defineExpose({ ref });\n\n function onClick(e: MouseEvent) {\n e.preventDefault();\n if (!props.preventNavigate) link.navigate();\n }\n</script>\n\n<template>\n <a ref=\"ref\" :href=\"link.pathname\" :class=\"props.className\" @click=\"onClick\">\n <slot />\n </a>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKE,MAAM,QAAQ;EACd,MAAM,OAAO,cAAc,KAAK;EAChC,MAAM,MAAM,OAA2B,IAAI;EAE3C,SAAa,EAAE,IAAI,CAAC;EAEpB,SAAS,QAAQ,GAAe;GAC9B,EAAE,eAAe;GACjB,IAAI,CAAC,MAAM,iBAAiB,KAAK,SAAS;EAC5C;;uBAIA,mBAEI,KAAA;aAFG;IAAA;IAAO,MAAM,MAAA,IAAA,CAAI,CAAC;IAAW,OAAK,eAAE,MAAM,SAAS;IAAU;OAClE,WAAQ,KAAA,QAAA,SAAA,CAAA,GAAA,IAAA,UAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RouterLinkOptions } from "@pastweb/tools/createViewRouter/types";
|
|
2
|
+
|
|
3
|
+
//#region src/router/RouterLink/types.d.ts
|
|
4
|
+
/** Props for the Vue `RouterLink` component. */
|
|
5
|
+
type RouterLinkProps = RouterLinkOptions & {
|
|
6
|
+
/** Optional CSS class applied to the rendered anchor. */className?: string; /** When true, click events do not call router navigation. */
|
|
7
|
+
preventNavigate?: boolean;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RouterLinkProps };
|
|
11
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RouterLinkOptions } from "@pastweb/tools/createViewRouter/types";
|
|
2
|
+
|
|
3
|
+
//#region src/router/RouterLink/types.d.ts
|
|
4
|
+
/** Props for the Vue `RouterLink` component. */
|
|
5
|
+
type RouterLinkProps = RouterLinkOptions & {
|
|
6
|
+
/** Optional CSS class applied to the rendered anchor. */className?: string; /** When true, click events do not call router navigation. */
|
|
7
|
+
preventNavigate?: boolean;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RouterLinkProps };
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterView.cjs","names":[],"sources":["../../../src/router/RouterView/RouterView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { shallowReactive, watch } from 'vue';\n import { ROUTE_DEPTH_CONTEXT_KEY } from '@pastweb/tools/createViewRouter/constants';\n import { routeDive } from '@pastweb/tools/createViewRouter/utils/routeDive';\n import { useMounted } from '../../useMounted';\n import { getContext } from '../../getContext';\n import { setContext } from '../../setContext';\n import { useRouter } from '../useRouter';\n import { useRoute } from '../useRoute';\n import type { RouterViewProps, RouterViewState } from './types';\n\n const props = defineProps<RouterViewProps>();\n \n const state = shallowReactive<RouterViewState>({\n component: null,\n props: {},\n });\n \n const router = useRouter();\n const route = useRoute();\n const depth = getContext<number>(ROUTE_DEPTH_CONTEXT_KEY) + 1;\n\n setContext(ROUTE_DEPTH_CONTEXT_KEY, depth);\n\n async function loadComponent() {\n const { meta, views } = routeDive(route, depth);\n const { name = 'default' } = props;\n let view = views[name];\n \n if (view) {\n if (typeof view === 'function') {\n state.component = router.preloader || null;\n view = await view().default;\n }\n \n state.component = view;\n state.props = meta.props || {};\n }\n }\n\n useMounted(() => {\n const { preloader } = router;\n state.component = preloader || null;\n\n loadComponent();\n });\n\n watch(route, () => loadComponent());\n</script>\n\n<template>\n <component :is=\"state.component\" v-bind=\"state.props\" />\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import RouterView_vue_vue_type_script_setup_true_lang_default from "./RouterView.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
//#region src/router/RouterView/RouterView.vue
|
|
3
|
+
var RouterView_default = RouterView_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { RouterView_default as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=RouterView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterView.js","names":[],"sources":["../../../src/router/RouterView/RouterView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { shallowReactive, watch } from 'vue';\n import { ROUTE_DEPTH_CONTEXT_KEY } from '@pastweb/tools/createViewRouter/constants';\n import { routeDive } from '@pastweb/tools/createViewRouter/utils/routeDive';\n import { useMounted } from '../../useMounted';\n import { getContext } from '../../getContext';\n import { setContext } from '../../setContext';\n import { useRouter } from '../useRouter';\n import { useRoute } from '../useRoute';\n import type { RouterViewProps, RouterViewState } from './types';\n\n const props = defineProps<RouterViewProps>();\n \n const state = shallowReactive<RouterViewState>({\n component: null,\n props: {},\n });\n \n const router = useRouter();\n const route = useRoute();\n const depth = getContext<number>(ROUTE_DEPTH_CONTEXT_KEY) + 1;\n\n setContext(ROUTE_DEPTH_CONTEXT_KEY, depth);\n\n async function loadComponent() {\n const { meta, views } = routeDive(route, depth);\n const { name = 'default' } = props;\n let view = views[name];\n \n if (view) {\n if (typeof view === 'function') {\n state.component = router.preloader || null;\n view = await view().default;\n }\n \n state.component = view;\n state.props = meta.props || {};\n }\n }\n\n useMounted(() => {\n const { preloader } = router;\n state.component = preloader || null;\n\n loadComponent();\n });\n\n watch(route, () => loadComponent());\n</script>\n\n<template>\n <component :is=\"state.component\" v-bind=\"state.props\" />\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RouterViewProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/router/RouterView/RouterView.vue.d.ts
|
|
4
|
+
declare const _default: import("vue").DefineComponent<RouterViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouterViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export = _default;
|
|
6
|
+
//# sourceMappingURL=RouterView.vue.d.cts.map
|