@vuetify/v0 0.0.20 → 0.0.22
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/README.md +4 -1
- package/dist/browser/index.js +6043 -4758
- package/dist/components/index.d.mts +4 -4
- package/dist/components/index.mjs +5 -5
- package/dist/{components-D590hSY0.mjs → components-mxRTI3xB.mjs} +336 -26
- package/dist/composables/index.d.mts +4 -4
- package/dist/composables/index.mjs +4 -5
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{globals-exvZ8fiO.mjs → globals-B0yp-n-D.mjs} +2 -1
- package/dist/{index-Gr6XPRWt.d.mts → index-Bby5ljat.d.mts} +57 -57
- package/dist/{index-CjzlIAtF.d.mts → index-D3xuqKI0.d.mts} +6 -28
- package/dist/{index-DahjxaTj.d.mts → index-DF1O-1ZO.d.mts} +614 -164
- package/dist/{index-BYyEPh1S.d.mts → index-Dr-ge3ZA.d.mts} +182 -55
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +6 -7
- package/dist/types/index.d.mts +1 -1
- package/dist/useClickOutside-bbFXLr1p.mjs +6750 -0
- package/dist/utilities/index.d.mts +3 -3
- package/dist/utilities/index.mjs +2 -2
- package/dist/{utilities-BrFKLHFS.mjs → utilities-CKvM4p7S.mjs} +28 -9
- package/package.json +1 -19
- package/dist/composables-FE6B8JUW.mjs +0 -2832
- package/dist/useStep-Dw7XloDM.mjs +0 -2968
- /package/dist/{constants-DypzAkYp.mjs → constants-3l8TGg5J.mjs} +0 -0
- /package/dist/{index-B9mKi4pr.d.mts → index-DMQJJUrv.d.mts} +0 -0
- /package/dist/{index-4jSy8KIt.d.mts → index-DYSwiS9k.d.mts} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { _ as
|
|
3
|
-
export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
|
1
|
+
import "../index-DYSwiS9k.mjs";
|
|
2
|
+
import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../index-D3xuqKI0.mjs";
|
|
3
|
+
export { clamp, debounce, genId, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as isUndefined, a as genId, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as debounce, l as isNaN, m as isPrimitive, n as instanceName, o as isArray, p as isObject, r as clamp, s as isBoolean, t as instanceExists, u as isNull, v as mergeDeep, y as range } from "../utilities-CKvM4p7S.mjs";
|
|
2
2
|
|
|
3
|
-
export { clamp, debounce, genId, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
|
3
|
+
export { clamp, debounce, genId, instanceExists, instanceName, isArray, isBoolean, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isUndefined, mergeDeep, range };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as Vue from "vue";
|
|
2
|
+
|
|
1
3
|
//#region src/utilities/helpers.ts
|
|
2
4
|
/**
|
|
3
5
|
* Checks if a value is a function
|
|
@@ -256,18 +258,24 @@ function isNaN(item) {
|
|
|
256
258
|
* mergeDeep({ arr: [1, 2] }, { arr: [3] }) // { arr: [3] }
|
|
257
259
|
* ```
|
|
258
260
|
*/
|
|
261
|
+
const UNSAFE_KEYS = new Set([
|
|
262
|
+
"__proto__",
|
|
263
|
+
"constructor",
|
|
264
|
+
"prototype"
|
|
265
|
+
]);
|
|
259
266
|
/* @__NO_SIDE_EFFECTS__ */
|
|
260
267
|
function mergeDeep(target, ...sources) {
|
|
261
268
|
if (sources.length === 0) return target;
|
|
262
269
|
const source = sources.shift();
|
|
263
|
-
if (/* @__PURE__ */ isObject(target) && /* @__PURE__ */ isObject(source)) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
270
|
+
if (/* @__PURE__ */ isObject(target) && /* @__PURE__ */ isObject(source)) for (const key in source) {
|
|
271
|
+
if (UNSAFE_KEYS.has(key)) continue;
|
|
272
|
+
if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
|
|
273
|
+
const sourceValue = source[key];
|
|
274
|
+
const targetValue = target[key];
|
|
275
|
+
if (/* @__PURE__ */ isObject(sourceValue)) {
|
|
276
|
+
if (!/* @__PURE__ */ isObject(targetValue)) Object.assign(target, { [key]: {} });
|
|
277
|
+
target[key];
|
|
278
|
+
} else Object.assign(target, { [key]: sourceValue });
|
|
271
279
|
}
|
|
272
280
|
return /* @__PURE__ */ mergeDeep(target, ...sources);
|
|
273
281
|
}
|
|
@@ -360,4 +368,15 @@ function debounce(fn, delay) {
|
|
|
360
368
|
}
|
|
361
369
|
|
|
362
370
|
//#endregion
|
|
363
|
-
|
|
371
|
+
//#region src/utilities/instance.ts
|
|
372
|
+
function instanceExists() {
|
|
373
|
+
if (Vue.version.startsWith("3.6.")) return Vue.currentInstance !== null;
|
|
374
|
+
return Vue.getCurrentInstance() !== null;
|
|
375
|
+
}
|
|
376
|
+
function instanceName() {
|
|
377
|
+
if (Vue.version.startsWith("3.6.")) return Vue.currentInstance?.type?.name;
|
|
378
|
+
return Vue.getCurrentInstance()?.type?.name;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
//#endregion
|
|
382
|
+
export { isUndefined as _, genId as a, isFunction as c, isNullOrUndefined as d, isNumber as f, isSymbol as g, isString as h, debounce as i, isNaN as l, isPrimitive as m, instanceName as n, isArray as o, isObject as p, clamp as r, isBoolean as s, instanceExists as t, isNull as u, mergeDeep as v, range as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/v0",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Vuetify0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -16,26 +16,8 @@
|
|
|
16
16
|
"directory": "packages/0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"markdown": "^0.5.0",
|
|
20
|
-
"markdown-it": "^14.1.0",
|
|
21
|
-
"marked": "^16.1.1",
|
|
22
|
-
"micromark": "^4.0.2",
|
|
23
19
|
"vue": ">=3.3.0"
|
|
24
20
|
},
|
|
25
|
-
"peerDependenciesMeta": {
|
|
26
|
-
"markdown": {
|
|
27
|
-
"optional": true
|
|
28
|
-
},
|
|
29
|
-
"markdown-it": {
|
|
30
|
-
"optional": true
|
|
31
|
-
},
|
|
32
|
-
"marked": {
|
|
33
|
-
"optional": true
|
|
34
|
-
},
|
|
35
|
-
"micromark": {
|
|
36
|
-
"optional": true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
21
|
"devDependencies": {
|
|
40
22
|
"@vue/test-utils": "^2.4.6",
|
|
41
23
|
"tsdown": "^0.16.1",
|