@vuetify/v0 0.0.2-beta.3 → 0.0.2

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.
@@ -0,0 +1,23 @@
1
+ import { DeepPartial } from "./index-LBy5OPMu.js";
2
+
3
+ //#region src/utilities/benchmark.d.ts
4
+ interface BenchmarkResult {
5
+ readonly name: string;
6
+ readonly duration: number;
7
+ readonly ops: number;
8
+ }
9
+ declare function run(name: string, fn: () => void, samples?: number): Promise<BenchmarkResult>;
10
+ //#endregion
11
+ //#region src/utilities/helpers.d.ts
12
+ declare function isFunction(item: unknown): item is Function;
13
+ declare function isString(item: unknown): item is string;
14
+ declare function isNumber(item: unknown): item is number;
15
+ declare function isBoolean(item: unknown): item is boolean;
16
+ declare function isObject(item: unknown): item is Record<string, unknown>;
17
+ declare function isArray(item: unknown): item is unknown[];
18
+ declare function isNullOrUndefined(item: unknown): item is null;
19
+ declare function isPrimitive(item: unknown): item is string | number | boolean;
20
+ declare function mergeDeep<T extends object>(target: T, ...sources: DeepPartial<T>[]): T;
21
+ declare function genId(): string;
22
+ //#endregion
23
+ export { genId, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, mergeDeep, run };
@@ -0,0 +1,61 @@
1
+ import { App, InjectionKey } from "vue";
2
+
3
+ //#region src/factories/createPlugin/index.d.ts
4
+ interface PluginOptions {
5
+ namespace: string;
6
+ provide: (app: App) => void;
7
+ setup?: (app: App) => void;
8
+ }
9
+ interface Plugin {
10
+ install: (app: App, ...options: any[]) => void;
11
+ }
12
+ /**
13
+ * A universal plugin factory to reduce boilerplate code for Vue plugin creation
14
+ * @param options Configurable object with namespace and provide/setup methods
15
+ * @returns A Vue plugin object with install method that runs app w/ context
16
+ *
17
+ * @see https://vuejs.org/api/application.html#app-runwithcontext
18
+ * @see https://0.vuetifyjs.com/factories/create-plugin
19
+ */
20
+ declare function createPlugin<Z extends Plugin = Plugin>(options: PluginOptions): Z;
21
+ //#endregion
22
+ //#region src/factories/createContext/index.d.ts
23
+ type ContextKey<Z> = InjectionKey<Z> | string;
24
+ /**
25
+ * A simple wrapper for tapping into a v0 namespace
26
+ * @param key The provided string or InjectionKey
27
+ * @template Z The type values for the context.
28
+ * @returns A function that retrieves context
29
+ * @throws Error if namespace is not found.
30
+ *
31
+ * @see https://vuejs.org/api/composition-api-dependency-injection.html#inject
32
+ */
33
+ declare function useContext<Z>(key: ContextKey<Z>): (namespace?: string) => Z;
34
+ /**
35
+ * A simple wrapper for Vues provide & inject systems
36
+ * to create context for managing application state
37
+ * @param key The provided string or InjectionKey
38
+ * @template Z The type values for the context.
39
+ * @returns A tuple containing provide/inject
40
+ *
41
+ * @see https://vuejs.org/api/composition-api-dependency-injection.html#provide
42
+ * @see https://0.vuetifyjs.com/composables/foundation/create-context
43
+ */
44
+ declare function createContext<Z>(key: ContextKey<Z>): readonly [(namespace?: string) => Z, (context: Z, app?: App) => Z];
45
+ //#endregion
46
+ //#region src/factories/createTrinity/index.d.ts
47
+ type ContextTrinity<Z = unknown> = readonly [() => Z, (context?: Z, app?: App) => Z, Z];
48
+ /**
49
+ * A tuple containing Vue's provide/inject and a context object
50
+ * @param createContext The function that creates the context
51
+ * @param provideContext The function that provides context
52
+ * @param context The underlying context object singleton
53
+ * @template Z The type parameter for the context value
54
+ * @template E The vmodel type for the context state.
55
+ * @returns [createContext, provideContext, context]
56
+ *
57
+ * @see https://0.vuetifyjs.com/composables/foundation/create-trinity
58
+ */
59
+ declare function createTrinity<Z = unknown>(createContext: () => Z, provideContext: (_context?: Z, app?: App) => Z, context: Z): ContextTrinity<Z>;
60
+ //#endregion
61
+ export { ContextKey, ContextTrinity, Plugin, PluginOptions, createContext, createPlugin, createTrinity, useContext };
@@ -0,0 +1,11 @@
1
+ import { h } from "vue";
2
+
3
+ //#region src/types/index.d.ts
4
+ type DOMElement = Parameters<typeof h>[0];
5
+ type GenericObject = Record<string, any>;
6
+ type UnknownObject = Record<string, unknown>;
7
+ type ID = string | number;
8
+ type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
9
+ type MaybeArray<T> = T | T[];
10
+ //#endregion
11
+ export { DOMElement, DeepPartial, GenericObject, ID, MaybeArray, UnknownObject };
@@ -0,0 +1,19 @@
1
+ import { MaybeRef, UnwrapNestedRefs } from "vue";
2
+
3
+ //#region src/transformers/toArray/index.d.ts
4
+ declare function toArray<T>(value: T | T[]): T[];
5
+ //#endregion
6
+ //#region src/transformers/toReactive/index.d.ts
7
+ /**
8
+ * Converts an object to a reactive reference using Vue's reactivity system.
9
+ * This function creates a reactive version of the provided object,
10
+ * making its properties automatically track dependencies and trigger re-renders
11
+ * when they change.
12
+ *
13
+ * @param objectRef - A reference to an object that should be made reactive.
14
+ * @template Z The type of the object that extends object.
15
+ * @returns A reactive reference to the object.
16
+ */
17
+ declare function toReactive<Z extends object>(objectRef: MaybeRef<Z>): UnwrapNestedRefs<Z>;
18
+ //#endregion
19
+ export { toArray, toReactive };
@@ -0,0 +1,79 @@
1
+ //#region src/constants/globals.d.ts
2
+ declare const IN_BROWSER: boolean;
3
+ declare const SUPPORTS_TOUCH: boolean;
4
+ declare const SUPPORTS_MATCH_MEDIA: boolean;
5
+ declare const SUPPORTS_OBSERVER: boolean;
6
+ declare const SUPPORTS_INTERSECTION_OBSERVER: boolean;
7
+ declare const SUPPORTS_MUTATION_OBSERVER: boolean;
8
+ declare const version: any;
9
+ declare const __LOGGER_ENABLED__: any;
10
+ //#endregion
11
+ //#region src/constants/htmlElements.d.ts
12
+ declare const selfClosingTags: ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr"];
13
+ /**
14
+ * Set of HTML elements that are self-closing (void elements)
15
+ * These elements cannot have children and don't need closing tags
16
+ */
17
+ declare const SELF_CLOSING_TAGS: Set<"area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "link" | "meta" | "source" | "track" | "wbr">;
18
+ /**
19
+ * Common HTML element types for polymorphic components
20
+ */
21
+ declare const COMMON_ELEMENTS: {
22
+ readonly DIV: "div";
23
+ readonly SPAN: "span";
24
+ readonly SECTION: "section";
25
+ readonly ARTICLE: "article";
26
+ readonly ASIDE: "aside";
27
+ readonly HEADER: "header";
28
+ readonly FOOTER: "footer";
29
+ readonly MAIN: "main";
30
+ readonly NAV: "nav";
31
+ readonly P: "p";
32
+ readonly H1: "h1";
33
+ readonly H2: "h2";
34
+ readonly H3: "h3";
35
+ readonly H4: "h4";
36
+ readonly H5: "h5";
37
+ readonly H6: "h6";
38
+ readonly BUTTON: "button";
39
+ readonly A: "a";
40
+ readonly INPUT: "input";
41
+ readonly TEXTAREA: "textarea";
42
+ readonly SELECT: "select";
43
+ readonly LABEL: "label";
44
+ readonly UL: "ul";
45
+ readonly OL: "ol";
46
+ readonly LI: "li";
47
+ readonly DL: "dl";
48
+ readonly DT: "dt";
49
+ readonly DD: "dd";
50
+ readonly IMG: "img";
51
+ readonly VIDEO: "video";
52
+ readonly AUDIO: "audio";
53
+ readonly CANVAS: "canvas";
54
+ readonly SVG: "svg";
55
+ readonly TABLE: "table";
56
+ readonly THEAD: "thead";
57
+ readonly TBODY: "tbody";
58
+ readonly TFOOT: "tfoot";
59
+ readonly TR: "tr";
60
+ readonly TH: "th";
61
+ readonly TD: "td";
62
+ readonly FORM: "form";
63
+ readonly FIELDSET: "fieldset";
64
+ readonly LEGEND: "legend";
65
+ };
66
+ /**
67
+ * Check if an element is self-closing
68
+ */
69
+ declare function isSelfClosingTag(tag: keyof HTMLElementTagNameMap): boolean;
70
+ /**
71
+ * Type for all valid HTML element names
72
+ */
73
+ type HTMLElementName = keyof HTMLElementTagNameMap;
74
+ /**
75
+ * Type for self-closing HTML elements
76
+ */
77
+ type SelfClosingElement = keyof typeof selfClosingTags;
78
+ //#endregion
79
+ export { COMMON_ELEMENTS, HTMLElementName, IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, SelfClosingElement, __LOGGER_ENABLED__, isSelfClosingTag, version };
@@ -0,0 +1,7 @@
1
+ import "./index-LBy5OPMu.js";
2
+ import { AtomExpose, AtomProps, AtomSlots, BreakpointName, Breakpoints, BreakpointsContext, BreakpointsOptions, CleanupFunction, Colors, ConsolaLoggerAdapter, Context, EventHandler, FilterFunction, FilterItem, FilterMode, FilterQuery, FlatTokenCollection, FormContext, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, Group, GroupContext, GroupItemProps, GroupItemSlots, GroupOptions, GroupRootProps, GroupRootSlots, GroupTicket, HydrationContext, IntersectionObserverEntry, IntersectionObserverOptions, KeyHandler, LayoutContext, LayoutLocation, LayoutOptions, LayoutTicket, LocaleContext, LocaleOptions, LocalePluginOptions, LocaleTicket, LogLevel, LoggerAdapter, LoggerContext, LoggerOptions, MutationObserverRecord, PinoLoggerAdapter, Popover, PopoverAnchorProps, PopoverContentEmits, PopoverContentProps, PopoverContext, PopoverRootProps, Primitive, ProxyModelOptions, RegistryContext, RegistryOptions, RegistryTicket, ResizeObserverEntry, ResizeObserverOptions, SelectionContext, SelectionOptions, SelectionTicket, SingleContext, SingleOptions, SingleTicket, Step, StepContext, StepItemProps, StepItemSlots, StepOptions, StepRootProps, StepRootSlots, StepTicket, StorageContext, StorageOptions, Theme, ThemeColors, ThemeContext, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeRootProps, ThemeRootSlots, ThemeSlots, ThemeTicket, TokenAlias, TokenCollection, TokenContext, TokenPrimitive, TokenTicket, TokenValue, UseFilterOptions, UseFilterResult, UseMutationObserverOptions, Vuetify0LoggerAdapter, _default as _default$2, _default$1, _default$2 as _default, createBreakpoints, createBreakpointsPlugin, createHydration, createHydrationPlugin, createLocale, createLocalePlugin, createLogger, createLoggerPlugin, createRegistryContext, createStorage, createStoragePlugin, createTheme, createThemePlugin, createTokensContext, provideBreakpointsContext, provideHydrationContext, providePopoverContext, provideStorageContext, useBreakpoints, useBreakpointsContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useFilter, useForm, useGroup, useHydration, useHydrationContext, useIntersectionObserver, useKeydown, useLayout, useLocale, useLogger, useMutationObserver, usePopoverContext, useProxyModel, useRegistry, useResizeObserver, useSelection, useSingle, useStep, useStorage, useStorageContext, useTheme, useTokens, useWindowEventListener } from "./index-BnsMFYhs.js";
3
+ import { ContextKey, ContextTrinity, Plugin, PluginOptions, createContext, createPlugin, createTrinity, useContext } from "./index-BqrLvboW.js";
4
+ import { COMMON_ELEMENTS, HTMLElementName, IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, SelfClosingElement, __LOGGER_ENABLED__, isSelfClosingTag, version } from "./index-z_zwVNP8.js";
5
+ import { toArray, toReactive } from "./index-tUyghL98.js";
6
+ import { genId, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, mergeDeep, run } from "./index-BozA2pze.js";
7
+ export { _default as Atom, AtomExpose, AtomProps, AtomSlots, BreakpointName, Breakpoints, BreakpointsContext, BreakpointsOptions, COMMON_ELEMENTS, CleanupFunction, Colors, ConsolaLoggerAdapter, Context, ContextKey, ContextTrinity, EventHandler, FilterFunction, FilterItem, FilterMode, FilterQuery, FlatTokenCollection, FormContext, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, Group, GroupContext, GroupItemProps, GroupItemSlots, GroupOptions, GroupRootProps, GroupRootSlots, GroupTicket, HTMLElementName, _default$1 as Hydration, HydrationContext, _default$2 as HydrationRoot, IN_BROWSER, IntersectionObserverEntry, IntersectionObserverOptions, KeyHandler, LayoutContext, LayoutLocation, LayoutOptions, LayoutTicket, LocaleContext, LocaleOptions, LocalePluginOptions, LocaleTicket, LogLevel, LoggerAdapter, LoggerContext, LoggerOptions, MutationObserverRecord, PinoLoggerAdapter, Plugin, PluginOptions, Popover, PopoverAnchorProps, PopoverContentEmits, PopoverContentProps, PopoverContext, PopoverRootProps, Primitive, ProxyModelOptions, RegistryContext, RegistryOptions, RegistryTicket, ResizeObserverEntry, ResizeObserverOptions, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, SelectionContext, SelectionOptions, SelectionTicket, SelfClosingElement, SingleContext, SingleOptions, SingleTicket, Step, StepContext, StepItemProps, StepItemSlots, StepOptions, StepRootProps, StepRootSlots, StepTicket, StorageContext, StorageOptions, Theme, ThemeColors, ThemeContext, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeRootProps, ThemeRootSlots, ThemeSlots, ThemeTicket, TokenAlias, TokenCollection, TokenContext, TokenPrimitive, TokenTicket, TokenValue, UseFilterOptions, UseFilterResult, UseMutationObserverOptions, Vuetify0LoggerAdapter, __LOGGER_ENABLED__, createBreakpoints, createBreakpointsPlugin, createContext, createHydration, createHydrationPlugin, createLocale, createLocalePlugin, createLogger, createLoggerPlugin, createPlugin, createRegistryContext, createStorage, createStoragePlugin, createTheme, createThemePlugin, createTokensContext, createTrinity, genId, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, mergeDeep, provideBreakpointsContext, provideHydrationContext, providePopoverContext, provideStorageContext, run, toArray, toReactive, useBreakpoints, useBreakpointsContext, useContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useFilter, useForm, useGroup, useHydration, useHydrationContext, useIntersectionObserver, useKeydown, useLayout, useLocale, useLogger, useMutationObserver, usePopoverContext, useProxyModel, useRegistry, useResizeObserver, useSelection, useSingle, useStep, useStorage, useStorageContext, useTheme, useTokens, useWindowEventListener, version };
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { COMMON_ELEMENTS, SELF_CLOSING_TAGS, isSelfClosingTag } from "./htmlElements-SjqYu0am.js";
2
+ import { Atom_default, Breakpoints, Context, Group, HydrationRoot_default, Hydration_default, Popover, Step, Theme, providePopoverContext, usePopoverContext } from "./components-Cc48kKWf.js";
3
+ import { createContext, createPlugin, createTrinity, useContext } from "./factories-CPq2yMlr.js";
4
+ import { ConsolaLoggerAdapter, PinoLoggerAdapter, Vuetify0LoggerAdapter, createBreakpoints, createBreakpointsPlugin, createHydration, createHydrationPlugin, createLogger, createLoggerPlugin, createRegistryContext, createTheme, createThemePlugin, createTokensContext, provideBreakpointsContext, provideHydrationContext, useBreakpoints, useBreakpointsContext, useGroup, useHydration, useHydrationContext, useLogger, useRegistry, useSelection, useSingle, useStep, useTheme, useTokens } from "./useTheme-DSYiiz0R.js";
5
+ import { genId, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, mergeDeep, run } from "./utilities-D9rWEgQK.js";
6
+ import { IN_BROWSER, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, __LOGGER_ENABLED__, version } from "./globals--2b7sF4-.js";
7
+ import { toArray, toReactive } from "./transformers-BAeg3QJF.js";
8
+ import { createLocale, createLocalePlugin, createStorage, createStoragePlugin, provideStorageContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useFilter, useForm, useIntersectionObserver, useKeydown, useLayout, useLocale, useMutationObserver, useProxyModel, useResizeObserver, useStorage, useStorageContext, useWindowEventListener } from "./composables-7Cbs2sdO.js";
9
+ import "./constants-DiTCgvMU.js";
10
+
11
+ export { Atom_default as Atom, Breakpoints, COMMON_ELEMENTS, ConsolaLoggerAdapter, Context, Group, Hydration_default as Hydration, HydrationRoot_default as HydrationRoot, IN_BROWSER, PinoLoggerAdapter, Popover, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, Step, Theme, Vuetify0LoggerAdapter, __LOGGER_ENABLED__, createBreakpoints, createBreakpointsPlugin, createContext, createHydration, createHydrationPlugin, createLocale, createLocalePlugin, createLogger, createLoggerPlugin, createPlugin, createRegistryContext, createStorage, createStoragePlugin, createTheme, createThemePlugin, createTokensContext, createTrinity, genId, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isPrimitive, isSelfClosingTag, isString, mergeDeep, provideBreakpointsContext, provideHydrationContext, providePopoverContext, provideStorageContext, run, toArray, toReactive, useBreakpoints, useBreakpointsContext, useContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useFilter, useForm, useGroup, useHydration, useHydrationContext, useIntersectionObserver, useKeydown, useLayout, useLocale, useLogger, useMutationObserver, usePopoverContext, useProxyModel, useRegistry, useResizeObserver, useSelection, useSingle, useStep, useStorage, useStorageContext, useTheme, useTokens, useWindowEventListener, version };
@@ -0,0 +1,2 @@
1
+ import { toArray, toReactive } from "../index-tUyghL98.js";
2
+ export { toArray, toReactive };
@@ -0,0 +1,4 @@
1
+ import "../utilities-D9rWEgQK.js";
2
+ import { toArray, toReactive } from "../transformers-BAeg3QJF.js";
3
+
4
+ export { toArray, toReactive };
@@ -0,0 +1,122 @@
1
+ import { isNullOrUndefined } from "./utilities-D9rWEgQK.js";
2
+ import { isRef, reactive, unref } from "vue";
3
+
4
+ //#region src/transformers/toArray/index.ts
5
+ /* @__NO_SIDE_EFFECTS__ */
6
+ function toArray(value) {
7
+ return isNullOrUndefined(value) ? [] : Array.isArray(value) ? value : [value];
8
+ }
9
+
10
+ //#endregion
11
+ //#region src/transformers/toReactive/index.ts
12
+ /**
13
+ * Converts an object to a reactive reference using Vue's reactivity system.
14
+ * This function creates a reactive version of the provided object,
15
+ * making its properties automatically track dependencies and trigger re-renders
16
+ * when they change.
17
+ *
18
+ * @param objectRef - A reference to an object that should be made reactive.
19
+ * @template Z The type of the object that extends object.
20
+ * @returns A reactive reference to the object.
21
+ */
22
+ function toReactive(objectRef) {
23
+ if (!isRef(objectRef)) return reactive(objectRef);
24
+ const target = objectRef.value;
25
+ if (target instanceof Map) {
26
+ const mapProxy = new Proxy(/* @__PURE__ */ new Map(), { get(_, p) {
27
+ const map = objectRef.value;
28
+ if (p === "get") return (key) => unref(map.get(key));
29
+ if (p === "set") return (key, value) => {
30
+ const existingValue = map.get(key);
31
+ if (isRef(existingValue)) existingValue.value = unref(value);
32
+ else map.set(key, value);
33
+ return mapProxy;
34
+ };
35
+ if (p === "has") return (key) => map.has(key);
36
+ if (p === "delete") return (key) => map.delete(key);
37
+ if (p === "clear") return () => map.clear();
38
+ if (p === "size") return map.size;
39
+ if (p === "keys") return () => map.keys();
40
+ if (p === "values") return function* () {
41
+ for (const value of map.values()) yield unref(value);
42
+ };
43
+ if (p === "entries") return function* () {
44
+ for (const [key, value] of map.entries()) yield [key, unref(value)];
45
+ };
46
+ if (p === "forEach") return (callback, thisArg) => {
47
+ for (const [key, value] of map.entries()) callback.call(thisArg, unref(value), key, mapProxy);
48
+ };
49
+ if (p === Symbol.iterator) return function* () {
50
+ for (const [key, value] of map.entries()) yield [key, unref(value)];
51
+ };
52
+ return Reflect.get(map, p);
53
+ } });
54
+ return reactive(mapProxy);
55
+ }
56
+ if (target instanceof Set) {
57
+ const setProxy = new Proxy(/* @__PURE__ */ new Set(), { get(_, p) {
58
+ const set = objectRef.value;
59
+ if (p === "add") return (value) => {
60
+ set.add(value);
61
+ return setProxy;
62
+ };
63
+ if (p === "has") return (value) => set.has(value);
64
+ if (p === "delete") return (value) => set.delete(value);
65
+ if (p === "clear") return () => set.clear();
66
+ if (p === "size") return set.size;
67
+ if (p === "keys" || p === "values") return function* () {
68
+ for (const value of set.values()) yield unref(value);
69
+ };
70
+ if (p === "entries") return function* () {
71
+ for (const value of set.values()) {
72
+ const unreffedValue = unref(value);
73
+ yield [unreffedValue, unreffedValue];
74
+ }
75
+ };
76
+ if (p === "forEach") return (callback, thisArg) => {
77
+ for (const value of set) {
78
+ const unreffedValue = unref(value);
79
+ callback.call(thisArg, unreffedValue, unreffedValue, setProxy);
80
+ }
81
+ };
82
+ if (p === Symbol.iterator) return function* () {
83
+ for (const value of set.values()) yield unref(value);
84
+ };
85
+ return Reflect.get(set, p);
86
+ } });
87
+ return reactive(setProxy);
88
+ }
89
+ const proxy = new Proxy({}, {
90
+ get(_, p, receiver) {
91
+ return unref(Reflect.get(objectRef.value, p, receiver));
92
+ },
93
+ set(_, p, value) {
94
+ const currentTarget = objectRef.value;
95
+ currentTarget[p] = value;
96
+ return true;
97
+ },
98
+ deleteProperty(_, p) {
99
+ return Reflect.deleteProperty(objectRef.value, p);
100
+ },
101
+ has(_, p) {
102
+ return Reflect.has(objectRef.value, p);
103
+ },
104
+ ownKeys() {
105
+ return Object.keys(objectRef.value);
106
+ },
107
+ getOwnPropertyDescriptor(_, p) {
108
+ const desc = Reflect.getOwnPropertyDescriptor(objectRef.value, p);
109
+ if (!desc) return void 0;
110
+ const newDesc = {
111
+ ...desc,
112
+ configurable: true
113
+ };
114
+ if ("value" in newDesc) newDesc.value = unref(newDesc.value);
115
+ return newDesc;
116
+ }
117
+ });
118
+ return reactive(proxy);
119
+ }
120
+
121
+ //#endregion
122
+ export { toArray, toReactive };
@@ -0,0 +1,2 @@
1
+ import { DOMElement, DeepPartial, GenericObject, ID, MaybeArray, UnknownObject } from "../index-LBy5OPMu.js";
2
+ export { DOMElement, DeepPartial, GenericObject, ID, MaybeArray, UnknownObject };
@@ -0,0 +1 @@
1
+ export { };