@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,17 @@
|
|
|
1
|
+
import { VueEntryNormalizedOptions } from "../../types.cjs";
|
|
2
|
+
import { App } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/createEntry/utils/setupVueEntry/setupVueEntry.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Applies Vue entry plugins, components, and directives to an app instance.
|
|
7
|
+
*
|
|
8
|
+
* Plugin descriptors can pass one or more options to `app.use`. Registered
|
|
9
|
+
* components and directives are installed globally on the entry app.
|
|
10
|
+
*
|
|
11
|
+
* @param app - Vue app instance to configure.
|
|
12
|
+
* @param options - Normalized Vue entry options.
|
|
13
|
+
*/
|
|
14
|
+
declare function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { setupVueEntry };
|
|
17
|
+
//# sourceMappingURL=setupVueEntry.d.cts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VueEntryNormalizedOptions } from "../../types.js";
|
|
2
|
+
import { App } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/createEntry/utils/setupVueEntry/setupVueEntry.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Applies Vue entry plugins, components, and directives to an app instance.
|
|
7
|
+
*
|
|
8
|
+
* Plugin descriptors can pass one or more options to `app.use`. Registered
|
|
9
|
+
* components and directives are installed globally on the entry app.
|
|
10
|
+
*
|
|
11
|
+
* @param app - Vue app instance to configure.
|
|
12
|
+
* @param options - Normalized Vue entry options.
|
|
13
|
+
*/
|
|
14
|
+
declare function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { setupVueEntry };
|
|
17
|
+
//# sourceMappingURL=setupVueEntry.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/createEntry/utils/setupVueEntry/setupVueEntry.ts
|
|
2
|
+
/**
|
|
3
|
+
* Applies Vue entry plugins, components, and directives to an app instance.
|
|
4
|
+
*
|
|
5
|
+
* Plugin descriptors can pass one or more options to `app.use`. Registered
|
|
6
|
+
* components and directives are installed globally on the entry app.
|
|
7
|
+
*
|
|
8
|
+
* @param app - Vue app instance to configure.
|
|
9
|
+
* @param options - Normalized Vue entry options.
|
|
10
|
+
*/
|
|
11
|
+
function setupVueEntry(app, options) {
|
|
12
|
+
const { use, register } = options;
|
|
13
|
+
use.forEach((_plugin) => {
|
|
14
|
+
const plugin = _plugin.plugin || _plugin;
|
|
15
|
+
let options = [];
|
|
16
|
+
if (_plugin.options) options = Array.isArray(_plugin.options) ? _plugin.options : [_plugin.options];
|
|
17
|
+
app.use(plugin, ...options);
|
|
18
|
+
});
|
|
19
|
+
const { component, directive } = register;
|
|
20
|
+
Object.entries(component).forEach(([name, component]) => {
|
|
21
|
+
app.component(name, component);
|
|
22
|
+
});
|
|
23
|
+
Object.entries(directive).forEach(([name, directive]) => {
|
|
24
|
+
app.directive(name, directive);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { setupVueEntry };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=setupVueEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupVueEntry.js","names":[],"sources":["../../../../src/createEntry/utils/setupVueEntry/setupVueEntry.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\nimport type { VueEntryNormalizedOptions, PluginDescriptor } from '../../types';\n\n/**\n * Applies Vue entry plugins, components, and directives to an app instance.\n *\n * Plugin descriptors can pass one or more options to `app.use`. Registered\n * components and directives are installed globally on the entry app.\n *\n * @param app - Vue app instance to configure.\n * @param options - Normalized Vue entry options.\n */\nexport function setupVueEntry(app: App<any>, options: VueEntryNormalizedOptions): void {\n const { use, register } = options;\n\n use.forEach((_plugin: Plugin | PluginDescriptor) => {\n const plugin = (_plugin as PluginDescriptor).plugin || _plugin as Plugin;\n let options: any[] = [];\n \n if ((_plugin as PluginDescriptor).options) {\n options = Array.isArray((_plugin as PluginDescriptor).options) ?\n (_plugin as PluginDescriptor).options :\n [ (_plugin as PluginDescriptor).options ];\n }\n\n app.use(plugin, ...options);\n });\n \n const { component, directive } = register;\n\n Object.entries(component).forEach(([name, component]) => {\n app.component(name, component);\n });\n\n Object.entries(directive).forEach(([name, directive]) => {\n app.directive(name, directive);\n });\n}\n"],"mappings":";;;;;;;;;;AAYA,SAAgB,cAAc,KAAe,SAA0C;CACrF,MAAM,EAAE,KAAK,aAAa;CAE1B,IAAI,SAAS,YAAuC;EAClD,MAAM,SAAU,QAA6B,UAAU;EACvD,IAAI,UAAiB,CAAC;EAEtB,IAAK,QAA6B,SAChC,UAAU,MAAM,QAAS,QAA6B,OAAO,IAC1D,QAA6B,UAC9B,CAAG,QAA6B,OAAQ;EAG5C,IAAI,IAAI,QAAQ,GAAG,OAAO;CAC5B,CAAC;CAED,MAAM,EAAE,WAAW,cAAc;CAEjC,OAAO,QAAQ,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,eAAe;EACvD,IAAI,UAAU,MAAM,SAAS;CAC/B,CAAC;CAED,OAAO,QAAQ,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,eAAe;EACvD,IAAI,UAAU,MAAM,SAAS;CAC/B,CAAC;AACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _pastweb_tools_createAsyncStore = require("@pastweb/tools/createAsyncStore");
|
|
3
|
+
let _pastweb_tools_noop = require("@pastweb/tools/noop");
|
|
4
|
+
let pinia = require("pinia");
|
|
5
|
+
//#region src/createPiniaAsyncStore/createPiniaAsyncStore.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates an async Pinia store wrapper.
|
|
8
|
+
*
|
|
9
|
+
* The returned object is a tools async store with a Pinia instance attached as
|
|
10
|
+
* `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
|
|
11
|
+
* instance and marks the async store as ready when the callback resolves.
|
|
12
|
+
*
|
|
13
|
+
* @param options - Async Pinia store options.
|
|
14
|
+
* @param options.name - Optional name suffix used for the underlying async store.
|
|
15
|
+
* @param options.onInit - Optional initialization callback that receives the Pinia instance.
|
|
16
|
+
* @returns Async store with a Pinia instance attached.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
|
|
21
|
+
*
|
|
22
|
+
* const piniaStore = createPiniaAsyncStore({
|
|
23
|
+
* name: 'app',
|
|
24
|
+
* async onInit(pinia) {
|
|
25
|
+
* app.use(pinia);
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* await piniaStore.init();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function createPiniaAsyncStore(options) {
|
|
33
|
+
const asyncStore = (0, _pastweb_tools_createAsyncStore.createAsyncStore)({
|
|
34
|
+
...options,
|
|
35
|
+
name: `PiniaAsyncStore${options.name ? `:${options.name}` : ""}`
|
|
36
|
+
});
|
|
37
|
+
const store = (0, pinia.createPinia)();
|
|
38
|
+
asyncStore.store = store;
|
|
39
|
+
asyncStore.init = async () => {
|
|
40
|
+
const { onInit = _pastweb_tools_noop.noop } = asyncStore.options;
|
|
41
|
+
await onInit(store);
|
|
42
|
+
asyncStore.setStoreReady();
|
|
43
|
+
};
|
|
44
|
+
return asyncStore;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.createPiniaAsyncStore = createPiniaAsyncStore;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=createPiniaAsyncStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPiniaAsyncStore.cjs","names":["noop"],"sources":["../../src/createPiniaAsyncStore/createPiniaAsyncStore.ts"],"sourcesContent":["import { createAsyncStore } from '@pastweb/tools/createAsyncStore';\nimport { noop } from '@pastweb/tools/noop';\nimport { createPinia } from 'pinia';\nimport type { PiniaAsyncStore, PiniaStoreOptions } from './types';\n\n/**\n * Creates an async Pinia store wrapper.\n *\n * The returned object is a tools async store with a Pinia instance attached as\n * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia\n * instance and marks the async store as ready when the callback resolves.\n *\n * @param options - Async Pinia store options.\n * @param options.name - Optional name suffix used for the underlying async store.\n * @param options.onInit - Optional initialization callback that receives the Pinia instance.\n * @returns Async store with a Pinia instance attached.\n *\n * @example\n * ```ts\n * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';\n *\n * const piniaStore = createPiniaAsyncStore({\n * name: 'app',\n * async onInit(pinia) {\n * app.use(pinia);\n * },\n * });\n *\n * await piniaStore.init();\n * ```\n */\nexport function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore {\n const asyncStore = createAsyncStore<PiniaAsyncStore>({\n ...options,\n name: `PiniaAsyncStore${options.name ? `:${options.name}` : ''}`,\n });\n\n const store = createPinia();\n\n asyncStore.store = store;\n\n asyncStore.init = async () => {\n const { onInit = noop } = asyncStore.options as PiniaStoreOptions;\n await onInit(store);\n asyncStore.setStoreReady();\n };\n\n return asyncStore;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,sBAAsB,SAA6C;CACjF,MAAM,cAAA,GAAA,gCAAA,iBAAA,CAA+C;EACnD,GAAG;EACH,MAAM,kBAAkB,QAAQ,OAAO,IAAI,QAAQ,SAAS;CAC9D,CAAC;CAED,MAAM,SAAA,GAAA,MAAA,YAAA,CAAoB;CAE1B,WAAW,QAAQ;CAEnB,WAAW,OAAO,YAAY;EAC5B,MAAM,EAAE,SAASA,oBAAAA,SAAS,WAAW;EACrC,MAAM,OAAO,KAAK;EAClB,WAAW,cAAc;CAC3B;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PiniaAsyncStore, PiniaStoreOptions } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/createPiniaAsyncStore/createPiniaAsyncStore.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates an async Pinia store wrapper.
|
|
6
|
+
*
|
|
7
|
+
* The returned object is a tools async store with a Pinia instance attached as
|
|
8
|
+
* `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
|
|
9
|
+
* instance and marks the async store as ready when the callback resolves.
|
|
10
|
+
*
|
|
11
|
+
* @param options - Async Pinia store options.
|
|
12
|
+
* @param options.name - Optional name suffix used for the underlying async store.
|
|
13
|
+
* @param options.onInit - Optional initialization callback that receives the Pinia instance.
|
|
14
|
+
* @returns Async store with a Pinia instance attached.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
|
|
19
|
+
*
|
|
20
|
+
* const piniaStore = createPiniaAsyncStore({
|
|
21
|
+
* name: 'app',
|
|
22
|
+
* async onInit(pinia) {
|
|
23
|
+
* app.use(pinia);
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* await piniaStore.init();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
declare function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { createPiniaAsyncStore };
|
|
33
|
+
//# sourceMappingURL=createPiniaAsyncStore.d.cts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PiniaAsyncStore, PiniaStoreOptions } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/createPiniaAsyncStore/createPiniaAsyncStore.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Creates an async Pinia store wrapper.
|
|
6
|
+
*
|
|
7
|
+
* The returned object is a tools async store with a Pinia instance attached as
|
|
8
|
+
* `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
|
|
9
|
+
* instance and marks the async store as ready when the callback resolves.
|
|
10
|
+
*
|
|
11
|
+
* @param options - Async Pinia store options.
|
|
12
|
+
* @param options.name - Optional name suffix used for the underlying async store.
|
|
13
|
+
* @param options.onInit - Optional initialization callback that receives the Pinia instance.
|
|
14
|
+
* @returns Async store with a Pinia instance attached.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
|
|
19
|
+
*
|
|
20
|
+
* const piniaStore = createPiniaAsyncStore({
|
|
21
|
+
* name: 'app',
|
|
22
|
+
* async onInit(pinia) {
|
|
23
|
+
* app.use(pinia);
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* await piniaStore.init();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
declare function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { createPiniaAsyncStore };
|
|
33
|
+
//# sourceMappingURL=createPiniaAsyncStore.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createAsyncStore } from "@pastweb/tools/createAsyncStore";
|
|
2
|
+
import { noop } from "@pastweb/tools/noop";
|
|
3
|
+
import { createPinia } from "pinia";
|
|
4
|
+
//#region src/createPiniaAsyncStore/createPiniaAsyncStore.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates an async Pinia store wrapper.
|
|
7
|
+
*
|
|
8
|
+
* The returned object is a tools async store with a Pinia instance attached as
|
|
9
|
+
* `store`. Calling `init()` runs the optional `onInit` callback with that Pinia
|
|
10
|
+
* instance and marks the async store as ready when the callback resolves.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Async Pinia store options.
|
|
13
|
+
* @param options.name - Optional name suffix used for the underlying async store.
|
|
14
|
+
* @param options.onInit - Optional initialization callback that receives the Pinia instance.
|
|
15
|
+
* @returns Async store with a Pinia instance attached.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';
|
|
20
|
+
*
|
|
21
|
+
* const piniaStore = createPiniaAsyncStore({
|
|
22
|
+
* name: 'app',
|
|
23
|
+
* async onInit(pinia) {
|
|
24
|
+
* app.use(pinia);
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
*
|
|
28
|
+
* await piniaStore.init();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
function createPiniaAsyncStore(options) {
|
|
32
|
+
const asyncStore = createAsyncStore({
|
|
33
|
+
...options,
|
|
34
|
+
name: `PiniaAsyncStore${options.name ? `:${options.name}` : ""}`
|
|
35
|
+
});
|
|
36
|
+
const store = createPinia();
|
|
37
|
+
asyncStore.store = store;
|
|
38
|
+
asyncStore.init = async () => {
|
|
39
|
+
const { onInit = noop } = asyncStore.options;
|
|
40
|
+
await onInit(store);
|
|
41
|
+
asyncStore.setStoreReady();
|
|
42
|
+
};
|
|
43
|
+
return asyncStore;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { createPiniaAsyncStore };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=createPiniaAsyncStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPiniaAsyncStore.js","names":[],"sources":["../../src/createPiniaAsyncStore/createPiniaAsyncStore.ts"],"sourcesContent":["import { createAsyncStore } from '@pastweb/tools/createAsyncStore';\nimport { noop } from '@pastweb/tools/noop';\nimport { createPinia } from 'pinia';\nimport type { PiniaAsyncStore, PiniaStoreOptions } from './types';\n\n/**\n * Creates an async Pinia store wrapper.\n *\n * The returned object is a tools async store with a Pinia instance attached as\n * `store`. Calling `init()` runs the optional `onInit` callback with that Pinia\n * instance and marks the async store as ready when the callback resolves.\n *\n * @param options - Async Pinia store options.\n * @param options.name - Optional name suffix used for the underlying async store.\n * @param options.onInit - Optional initialization callback that receives the Pinia instance.\n * @returns Async store with a Pinia instance attached.\n *\n * @example\n * ```ts\n * import { createPiniaAsyncStore } from '@pastweb/vue/createPiniaAsyncStore';\n *\n * const piniaStore = createPiniaAsyncStore({\n * name: 'app',\n * async onInit(pinia) {\n * app.use(pinia);\n * },\n * });\n *\n * await piniaStore.init();\n * ```\n */\nexport function createPiniaAsyncStore(options: PiniaStoreOptions): PiniaAsyncStore {\n const asyncStore = createAsyncStore<PiniaAsyncStore>({\n ...options,\n name: `PiniaAsyncStore${options.name ? `:${options.name}` : ''}`,\n });\n\n const store = createPinia();\n\n asyncStore.store = store;\n\n asyncStore.init = async () => {\n const { onInit = noop } = asyncStore.options as PiniaStoreOptions;\n await onInit(store);\n asyncStore.setStoreReady();\n };\n\n return asyncStore;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,sBAAsB,SAA6C;CACjF,MAAM,aAAa,iBAAkC;EACnD,GAAG;EACH,MAAM,kBAAkB,QAAQ,OAAO,IAAI,QAAQ,SAAS;CAC9D,CAAC;CAED,MAAM,QAAQ,YAAY;CAE1B,WAAW,QAAQ;CAEnB,WAAW,OAAO,YAAY;EAC5B,MAAM,EAAE,SAAS,SAAS,WAAW;EACrC,MAAM,OAAO,KAAK;EAClB,WAAW,cAAc;CAC3B;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_createPiniaAsyncStore_createPiniaAsyncStore = require("./createPiniaAsyncStore.cjs");
|
|
3
|
+
exports.createPiniaAsyncStore = require_createPiniaAsyncStore_createPiniaAsyncStore.createPiniaAsyncStore;
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsyncStore, AsyncStoreOptions } from "@pastweb/tools";
|
|
2
|
+
import { Pinia } from "pinia";
|
|
3
|
+
|
|
4
|
+
//#region src/createPiniaAsyncStore/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Options accepted by {@link createPiniaAsyncStore}.
|
|
7
|
+
*/
|
|
8
|
+
interface PiniaStoreOptions {
|
|
9
|
+
/** Optional name suffix appended to the underlying async store name. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** Callback executed by `init` with the created Pinia instance. */
|
|
12
|
+
onInit?: (pinia: Pinia) => Promise<void> | void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Tools async store enhanced with a Pinia instance.
|
|
16
|
+
*/
|
|
17
|
+
type PiniaAsyncStore = AsyncStore<AsyncStoreOptions & PiniaStoreOptions> & {
|
|
18
|
+
/** Pinia instance created by `createPinia`. */store: Pinia;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { PiniaAsyncStore, PiniaStoreOptions };
|
|
22
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Pinia } from "pinia";
|
|
2
|
+
import { AsyncStore, AsyncStoreOptions } from "@pastweb/tools";
|
|
3
|
+
|
|
4
|
+
//#region src/createPiniaAsyncStore/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Options accepted by {@link createPiniaAsyncStore}.
|
|
7
|
+
*/
|
|
8
|
+
interface PiniaStoreOptions {
|
|
9
|
+
/** Optional name suffix appended to the underlying async store name. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** Callback executed by `init` with the created Pinia instance. */
|
|
12
|
+
onInit?: (pinia: Pinia) => Promise<void> | void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Tools async store enhanced with a Pinia instance.
|
|
16
|
+
*/
|
|
17
|
+
type PiniaAsyncStore = AsyncStore<AsyncStoreOptions & PiniaStoreOptions> & {
|
|
18
|
+
/** Pinia instance created by `createPinia`. */store: Pinia;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { PiniaAsyncStore, PiniaStoreOptions };
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/getContext/getContext.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads a value from the active Vue dependency-injection context.
|
|
6
|
+
*
|
|
7
|
+
* Use this helper instead of importing `inject` directly inside package
|
|
8
|
+
* composables so context access stays consistent across the Vue integration.
|
|
9
|
+
* It must be called during component setup, or from a composable that runs
|
|
10
|
+
* during setup.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - Expected value type for the provided context value.
|
|
13
|
+
* @param key - String key used when the value was provided with {@link setContext}.
|
|
14
|
+
* @returns The injected value cast to `T`, or `undefined` when no provider exists.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { getContext } from '@pastweb/vue';
|
|
19
|
+
*
|
|
20
|
+
* const session = getContext<{ userId: string }>('session');
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function getContext(key) {
|
|
24
|
+
return (0, vue.inject)(key, void 0);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.getContext = getContext;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=getContext.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContext.cjs","names":[],"sources":["../../src/getContext/getContext.ts"],"sourcesContent":["import { inject } from 'vue';\n\n/**\n * Reads a value from the active Vue dependency-injection context.\n *\n * Use this helper instead of importing `inject` directly inside package\n * composables so context access stays consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Expected value type for the provided context value.\n * @param key - String key used when the value was provided with {@link setContext}.\n * @returns The injected value cast to `T`, or `undefined` when no provider exists.\n *\n * @example\n * ```ts\n * import { getContext } from '@pastweb/vue';\n *\n * const session = getContext<{ userId: string }>('session');\n * ```\n */\nexport function getContext<T = any>(key: string): T {\n return inject(key, undefined) as T;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAAoB,KAAgB;CAClD,QAAA,GAAA,IAAA,OAAA,CAAc,KAAK,KAAA,CAAS;AAC9B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/getContext/getContext.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads a value from the active Vue dependency-injection context.
|
|
4
|
+
*
|
|
5
|
+
* Use this helper instead of importing `inject` directly inside package
|
|
6
|
+
* composables so context access stays consistent across the Vue integration.
|
|
7
|
+
* It must be called during component setup, or from a composable that runs
|
|
8
|
+
* during setup.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam T - Expected value type for the provided context value.
|
|
11
|
+
* @param key - String key used when the value was provided with {@link setContext}.
|
|
12
|
+
* @returns The injected value cast to `T`, or `undefined` when no provider exists.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { getContext } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const session = getContext<{ userId: string }>('session');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function getContext<T = any>(key: string): T;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { getContext };
|
|
24
|
+
//# sourceMappingURL=getContext.d.cts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/getContext/getContext.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Reads a value from the active Vue dependency-injection context.
|
|
4
|
+
*
|
|
5
|
+
* Use this helper instead of importing `inject` directly inside package
|
|
6
|
+
* composables so context access stays consistent across the Vue integration.
|
|
7
|
+
* It must be called during component setup, or from a composable that runs
|
|
8
|
+
* during setup.
|
|
9
|
+
*
|
|
10
|
+
* @typeParam T - Expected value type for the provided context value.
|
|
11
|
+
* @param key - String key used when the value was provided with {@link setContext}.
|
|
12
|
+
* @returns The injected value cast to `T`, or `undefined` when no provider exists.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { getContext } from '@pastweb/vue';
|
|
17
|
+
*
|
|
18
|
+
* const session = getContext<{ userId: string }>('session');
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function getContext<T = any>(key: string): T;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { getContext };
|
|
24
|
+
//# sourceMappingURL=getContext.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { inject } from "vue";
|
|
2
|
+
//#region src/getContext/getContext.ts
|
|
3
|
+
/**
|
|
4
|
+
* Reads a value from the active Vue dependency-injection context.
|
|
5
|
+
*
|
|
6
|
+
* Use this helper instead of importing `inject` directly inside package
|
|
7
|
+
* composables so context access stays consistent across the Vue integration.
|
|
8
|
+
* It must be called during component setup, or from a composable that runs
|
|
9
|
+
* during setup.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam T - Expected value type for the provided context value.
|
|
12
|
+
* @param key - String key used when the value was provided with {@link setContext}.
|
|
13
|
+
* @returns The injected value cast to `T`, or `undefined` when no provider exists.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { getContext } from '@pastweb/vue';
|
|
18
|
+
*
|
|
19
|
+
* const session = getContext<{ userId: string }>('session');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getContext(key) {
|
|
23
|
+
return inject(key, void 0);
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { getContext };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=getContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContext.js","names":[],"sources":["../../src/getContext/getContext.ts"],"sourcesContent":["import { inject } from 'vue';\n\n/**\n * Reads a value from the active Vue dependency-injection context.\n *\n * Use this helper instead of importing `inject` directly inside package\n * composables so context access stays consistent across the Vue integration.\n * It must be called during component setup, or from a composable that runs\n * during setup.\n *\n * @typeParam T - Expected value type for the provided context value.\n * @param key - String key used when the value was provided with {@link setContext}.\n * @returns The injected value cast to `T`, or `undefined` when no provider exists.\n *\n * @example\n * ```ts\n * import { getContext } from '@pastweb/vue';\n *\n * const session = getContext<{ userId: string }>('session');\n * ```\n */\nexport function getContext<T = any>(key: string): T {\n return inject(key, undefined) as T;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,WAAoB,KAAgB;CAClD,OAAO,OAAO,KAAK,KAAA,CAAS;AAC9B"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/getEventHandlers/getEventHandlers.ts
|
|
3
|
+
const EVENT_HANDLER_PROP_RE = /^on[A-Z]/;
|
|
4
|
+
/**
|
|
5
|
+
* Converts Vue-style event handler properties from a props object into a plain
|
|
6
|
+
* object suitable for Vue's `v-on` directive binding.
|
|
7
|
+
*
|
|
8
|
+
* Handler props must start with `on` followed by an uppercase character, such
|
|
9
|
+
* as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
|
|
10
|
+
* such as `online` or `once` from being treated as events. The helper strips
|
|
11
|
+
* the `on` prefix and converts camelCase to kebab-case (for example,
|
|
12
|
+
* `onMyCustomEvent` becomes `my-custom-event`).
|
|
13
|
+
*
|
|
14
|
+
* @param props - The object containing component props and event handlers
|
|
15
|
+
* (e.g. `{ title: string, onClick: Function, onChange: Function }`)
|
|
16
|
+
* @param options - Configuration options
|
|
17
|
+
* @param options.exclude - Event names (without "on" prefix) to exclude.
|
|
18
|
+
* Can be a string, RegExp, or array of both.
|
|
19
|
+
* Exclusion is matched against the kebab-cased event name.
|
|
20
|
+
*
|
|
21
|
+
* @returns An object with event names as keys and handler functions as values,
|
|
22
|
+
* ready to be used with `v-on="events"`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const props = {
|
|
27
|
+
* title: "Hello",
|
|
28
|
+
* disabled: false,
|
|
29
|
+
* onClick: () => console.log('clicked'),
|
|
30
|
+
* onChange: (value: string) => console.log(value),
|
|
31
|
+
* onMyCustomEvent: (payload: any) => {},
|
|
32
|
+
* onUpdateModelValue: (val: any) => {},
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* const events = getEventHandlers(props, {
|
|
36
|
+
* exclude: ['update:model-value', /^my-/]
|
|
37
|
+
* })
|
|
38
|
+
*
|
|
39
|
+
* // Result: { click: fn, change: fn }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
function getEventHandlers(props, options = {}) {
|
|
43
|
+
const events = {};
|
|
44
|
+
const { exclude } = options;
|
|
45
|
+
const shouldExclude = (eventName) => {
|
|
46
|
+
if (!exclude) return false;
|
|
47
|
+
return (Array.isArray(exclude) ? exclude : [exclude]).some((rule) => {
|
|
48
|
+
if (typeof rule === "string") return eventName === rule;
|
|
49
|
+
if (rule instanceof RegExp) return rule.test(eventName);
|
|
50
|
+
return false;
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
for (const [key, value] of Object.entries(props)) {
|
|
54
|
+
if (!EVENT_HANDLER_PROP_RE.test(key) || typeof value !== "function") continue;
|
|
55
|
+
let eventName = key.slice(2);
|
|
56
|
+
eventName = eventName.replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
57
|
+
if (shouldExclude(eventName)) continue;
|
|
58
|
+
events[eventName] = value;
|
|
59
|
+
}
|
|
60
|
+
return events;
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
exports.getEventHandlers = getEventHandlers;
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=getEventHandlers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEventHandlers.cjs","names":[],"sources":["../../src/getEventHandlers/getEventHandlers.ts"],"sourcesContent":["import type { GetEventHandlersOptions } from './types'\n\nconst EVENT_HANDLER_PROP_RE = /^on[A-Z]/\n\n/**\n * Converts Vue-style event handler properties from a props object into a plain\n * object suitable for Vue's `v-on` directive binding.\n *\n * Handler props must start with `on` followed by an uppercase character, such\n * as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props\n * such as `online` or `once` from being treated as events. The helper strips\n * the `on` prefix and converts camelCase to kebab-case (for example,\n * `onMyCustomEvent` becomes `my-custom-event`).\n *\n * @param props - The object containing component props and event handlers\n * (e.g. `{ title: string, onClick: Function, onChange: Function }`)\n * @param options - Configuration options\n * @param options.exclude - Event names (without \"on\" prefix) to exclude.\n * Can be a string, RegExp, or array of both.\n * Exclusion is matched against the kebab-cased event name.\n *\n * @returns An object with event names as keys and handler functions as values,\n * ready to be used with `v-on=\"events\"`\n *\n * @example\n * ```ts\n * const props = {\n * title: \"Hello\",\n * disabled: false,\n * onClick: () => console.log('clicked'),\n * onChange: (value: string) => console.log(value),\n * onMyCustomEvent: (payload: any) => {},\n * onUpdateModelValue: (val: any) => {},\n * }\n *\n * const events = getEventHandlers(props, {\n * exclude: ['update:model-value', /^my-/]\n * })\n *\n * // Result: { click: fn, change: fn }\n * ```\n */\nexport function getEventHandlers(props: Record<string, any>, options: GetEventHandlersOptions = {}): Record<string, Function> {\n const events: Record<string, Function> = {}\n const { exclude } = options\n\n const shouldExclude = (eventName: string): boolean => {\n if (!exclude) return false\n\n const excludes = Array.isArray(exclude) ? exclude : [exclude]\n\n return excludes.some((rule) => {\n if (typeof rule === 'string') {\n return eventName === rule\n }\n if (rule instanceof RegExp) {\n return rule.test(eventName)\n }\n return false\n })\n }\n\n for (const [key, value] of Object.entries(props)) {\n if (!EVENT_HANDLER_PROP_RE.test(key) || typeof value !== 'function') {\n continue\n }\n\n // Remove \"on\" prefix\n let eventName = key.slice(2)\n\n // Convert to kebab-case (e.g., MyCustomEvent → my-custom-event)\n eventName = eventName\n .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .toLowerCase()\n\n // Check exclusion (applied to the name without \"on\")\n if (shouldExclude(eventName)) {\n continue\n }\n\n events[eventName] = value\n }\n\n return events\n}\n"],"mappings":";;AAEA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwC9B,SAAgB,iBAAiB,OAA4B,UAAmC,CAAC,GAA6B;CAC5H,MAAM,SAAmC,CAAC;CAC1C,MAAM,EAAE,YAAY;CAEpB,MAAM,iBAAiB,cAA+B;EACpD,IAAI,CAAC,SAAS,OAAO;EAIrB,QAFiB,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO,EAAA,CAE5C,MAAM,SAAS;GAC7B,IAAI,OAAO,SAAS,UAClB,OAAO,cAAc;GAEvB,IAAI,gBAAgB,QAClB,OAAO,KAAK,KAAK,SAAS;GAE5B,OAAO;EACT,CAAC;CACH;CAEA,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAAG;EAChD,IAAI,CAAC,sBAAsB,KAAK,GAAG,KAAK,OAAO,UAAU,YACvD;EAIF,IAAI,YAAY,IAAI,MAAM,CAAC;EAG3B,YAAY,UACT,QAAQ,yBAAyB,OAAO,CAAC,CACzC,QAAQ,sBAAsB,OAAO,CAAC,CACtC,YAAY;EAGf,IAAI,cAAc,SAAS,GACzB;EAGF,OAAO,aAAa;CACtB;CAEA,OAAO;AACT"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GetEventHandlersOptions } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/getEventHandlers/getEventHandlers.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Converts Vue-style event handler properties from a props object into a plain
|
|
6
|
+
* object suitable for Vue's `v-on` directive binding.
|
|
7
|
+
*
|
|
8
|
+
* Handler props must start with `on` followed by an uppercase character, such
|
|
9
|
+
* as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
|
|
10
|
+
* such as `online` or `once` from being treated as events. The helper strips
|
|
11
|
+
* the `on` prefix and converts camelCase to kebab-case (for example,
|
|
12
|
+
* `onMyCustomEvent` becomes `my-custom-event`).
|
|
13
|
+
*
|
|
14
|
+
* @param props - The object containing component props and event handlers
|
|
15
|
+
* (e.g. `{ title: string, onClick: Function, onChange: Function }`)
|
|
16
|
+
* @param options - Configuration options
|
|
17
|
+
* @param options.exclude - Event names (without "on" prefix) to exclude.
|
|
18
|
+
* Can be a string, RegExp, or array of both.
|
|
19
|
+
* Exclusion is matched against the kebab-cased event name.
|
|
20
|
+
*
|
|
21
|
+
* @returns An object with event names as keys and handler functions as values,
|
|
22
|
+
* ready to be used with `v-on="events"`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const props = {
|
|
27
|
+
* title: "Hello",
|
|
28
|
+
* disabled: false,
|
|
29
|
+
* onClick: () => console.log('clicked'),
|
|
30
|
+
* onChange: (value: string) => console.log(value),
|
|
31
|
+
* onMyCustomEvent: (payload: any) => {},
|
|
32
|
+
* onUpdateModelValue: (val: any) => {},
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* const events = getEventHandlers(props, {
|
|
36
|
+
* exclude: ['update:model-value', /^my-/]
|
|
37
|
+
* })
|
|
38
|
+
*
|
|
39
|
+
* // Result: { click: fn, change: fn }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function getEventHandlers(props: Record<string, any>, options?: GetEventHandlersOptions): Record<string, Function>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { getEventHandlers };
|
|
45
|
+
//# sourceMappingURL=getEventHandlers.d.cts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GetEventHandlersOptions } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/getEventHandlers/getEventHandlers.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Converts Vue-style event handler properties from a props object into a plain
|
|
6
|
+
* object suitable for Vue's `v-on` directive binding.
|
|
7
|
+
*
|
|
8
|
+
* Handler props must start with `on` followed by an uppercase character, such
|
|
9
|
+
* as `onClick`, `onChange`, or `onUpdateModelValue`. This keeps ordinary props
|
|
10
|
+
* such as `online` or `once` from being treated as events. The helper strips
|
|
11
|
+
* the `on` prefix and converts camelCase to kebab-case (for example,
|
|
12
|
+
* `onMyCustomEvent` becomes `my-custom-event`).
|
|
13
|
+
*
|
|
14
|
+
* @param props - The object containing component props and event handlers
|
|
15
|
+
* (e.g. `{ title: string, onClick: Function, onChange: Function }`)
|
|
16
|
+
* @param options - Configuration options
|
|
17
|
+
* @param options.exclude - Event names (without "on" prefix) to exclude.
|
|
18
|
+
* Can be a string, RegExp, or array of both.
|
|
19
|
+
* Exclusion is matched against the kebab-cased event name.
|
|
20
|
+
*
|
|
21
|
+
* @returns An object with event names as keys and handler functions as values,
|
|
22
|
+
* ready to be used with `v-on="events"`
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const props = {
|
|
27
|
+
* title: "Hello",
|
|
28
|
+
* disabled: false,
|
|
29
|
+
* onClick: () => console.log('clicked'),
|
|
30
|
+
* onChange: (value: string) => console.log(value),
|
|
31
|
+
* onMyCustomEvent: (payload: any) => {},
|
|
32
|
+
* onUpdateModelValue: (val: any) => {},
|
|
33
|
+
* }
|
|
34
|
+
*
|
|
35
|
+
* const events = getEventHandlers(props, {
|
|
36
|
+
* exclude: ['update:model-value', /^my-/]
|
|
37
|
+
* })
|
|
38
|
+
*
|
|
39
|
+
* // Result: { click: fn, change: fn }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function getEventHandlers(props: Record<string, any>, options?: GetEventHandlersOptions): Record<string, Function>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { getEventHandlers };
|
|
45
|
+
//# sourceMappingURL=getEventHandlers.d.ts.map
|