@vuetify/v0 0.0.3 → 0.0.7
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/dist/browser/index.js +2718 -1496
- package/dist/components/index.d.ts +4 -7
- package/dist/components/index.js +6 -7
- package/dist/{components-DVuB4lnH.js → components-ClYPFhaF.js} +164 -8
- package/dist/composables/index.d.ts +3 -7
- package/dist/composables/index.js +4 -7
- package/dist/composables-DkRocfS_.js +3753 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +3 -3
- package/dist/{globals-DZvNEOB4.js → globals-BQnaatWT.js} +2 -2
- package/dist/{htmlElements-SjqYu0am.js → htmlElements-lF7PGahL.js} +1 -1
- package/dist/{index-DVKeyWc5.d.ts → index-BKc0YiL1.d.ts} +2 -2
- package/dist/index-BVouO8cc.d.ts +410 -0
- package/dist/index-BoDCUSPn.d.ts +2765 -0
- package/dist/{index-LBy5OPMu.d.ts → index-C_lAPFXS.d.ts} +1 -1
- package/dist/{index-BozA2pze.d.ts → index-DIX3zaZG.d.ts} +3 -10
- package/dist/index.d.ts +6 -7
- package/dist/index.js +7 -10
- package/dist/types/index.d.ts +1 -1
- package/dist/utilities/index.d.ts +3 -3
- package/dist/utilities/index.js +2 -2
- package/dist/{utilities-D9rWEgQK.js → utilities-rsKHgU2m.js} +5 -32
- package/package.json +1 -3
- package/dist/composables-yeVk-ULz.js +0 -1270
- package/dist/factories/index.d.ts +0 -2
- package/dist/factories/index.js +0 -3
- package/dist/factories-BEpawPUw.js +0 -96
- package/dist/index-Ckt12ON6.d.ts +0 -75
- package/dist/index-D0L_ydyW.d.ts +0 -1396
- package/dist/index-tUyghL98.d.ts +0 -19
- package/dist/transformers/index.d.ts +0 -2
- package/dist/transformers/index.js +0 -4
- package/dist/transformers-CWrxLIkw.js +0 -122
- package/dist/useTheme-DCXkw_kv.js +0 -1208
- /package/dist/{constants-DiTCgvMU.js → constants-De5c3_aB.js} +0 -0
package/dist/index-tUyghL98.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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 };
|
|
@@ -1,122 +0,0 @@
|
|
|
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;
|
|
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 };
|