@vuetify/v0 0.0.14 → 0.0.15
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 +2439 -820
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.mjs +5 -5
- package/dist/{components-CziOUEkN.mjs → components-Cf1h368z.mjs} +570 -44
- package/dist/composables/index.d.mts +2 -3
- package/dist/composables/index.mjs +4 -4
- package/dist/{composables-CGvbvF3U.mjs → composables-CrW3IMUM.mjs} +1813 -792
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{globals-D7kNBw5Q.mjs → globals-CqryJ9G3.mjs} +1 -1
- package/dist/index-BPAr2atm.d.mts +70 -0
- package/dist/index-CQcSUYj_.d.mts +1120 -0
- package/dist/{index-CQjOW_w5.d.mts → index-CkmnMjE3.d.mts} +1754 -162
- package/dist/index.d.mts +5 -6
- package/dist/index.mjs +5 -5
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +2 -2
- package/dist/utilities-C6o-keMm.mjs +135 -0
- package/package.json +1 -1
- package/dist/index-CSdGoUCI.d.mts +0 -17
- package/dist/index-CUnI4hGb.d.mts +0 -815
- package/dist/index-D-EP6KrS.d.mts +0 -812
- package/dist/utilities-C26nB74O.mjs +0 -63
- /package/dist/{index-8AIxAM2d.d.mts → index-BmxOG13-.d.mts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "../index-
|
|
1
|
+
import { a as isSelfClosingTag, c as SUPPORTS_MATCH_MEDIA, d as SUPPORTS_TOUCH, f as __LOGGER_ENABLED__, i as SelfClosingElement, l as SUPPORTS_MUTATION_OBSERVER, n as HTMLElementName, o as IN_BROWSER, p as version, r as SELF_CLOSING_TAGS, s as SUPPORTS_INTERSECTION_OBSERVER, t as COMMON_ELEMENTS, u as SUPPORTS_OBSERVER } from "../index-BmxOG13-.mjs";
|
|
2
2
|
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 };
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as SELF_CLOSING_TAGS, r as isSelfClosingTag, t as COMMON_ELEMENTS } from "../htmlElements-BYo-fMlZ.mjs";
|
|
2
|
-
import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-
|
|
2
|
+
import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-CqryJ9G3.mjs";
|
|
3
3
|
import "../constants-Xfszzyok.mjs";
|
|
4
4
|
|
|
5
5
|
export { COMMON_ELEMENTS, IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, __LOGGER_ENABLED__, isSelfClosingTag, version };
|
|
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
|
|
|
5
5
|
const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
|
|
6
6
|
const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
|
|
7
7
|
const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
|
|
8
|
-
const version = "0.0.
|
|
8
|
+
const version = "0.0.15";
|
|
9
9
|
const __LOGGER_ENABLED__ = process.env.NODE_ENV !== "production" || process.env.VITE_LOGGER_ENABLED === "true";
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { n as DeepPartial } from "./index-DY7-T630.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/utilities/helpers.d.ts
|
|
4
|
+
declare function isFunction(item: unknown): item is Function;
|
|
5
|
+
declare function isString(item: unknown): item is string;
|
|
6
|
+
declare function isNumber(item: unknown): item is number;
|
|
7
|
+
declare function isBoolean(item: unknown): item is boolean;
|
|
8
|
+
declare function isObject(item: unknown): item is Record<string, unknown>;
|
|
9
|
+
declare function isArray(item: unknown): item is unknown[];
|
|
10
|
+
declare function isNull(item: unknown): item is null;
|
|
11
|
+
declare function isNullOrUndefined(item: unknown): item is null | undefined;
|
|
12
|
+
declare function isUndefined(item: unknown): item is undefined;
|
|
13
|
+
declare function isPrimitive(item: unknown): item is string | number | boolean;
|
|
14
|
+
declare function isNaN(item: unknown): item is number;
|
|
15
|
+
declare function mergeDeep<T extends object>(target: T, ...sources: DeepPartial<T>[]): T;
|
|
16
|
+
declare function genId(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Clamps a value between a minimum and maximum
|
|
19
|
+
*
|
|
20
|
+
* @param value The value to clamp
|
|
21
|
+
* @param min The minimum value (default: 0)
|
|
22
|
+
* @param max The maximum value (default: 1)
|
|
23
|
+
* @returns The clamped value
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* clamp(5, 0, 10) // 5
|
|
28
|
+
* clamp(-5, 0, 10) // 0
|
|
29
|
+
* clamp(15, 0, 10) // 10
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare function clamp(value: number, min?: number, max?: number): number;
|
|
33
|
+
/**
|
|
34
|
+
* Creates an array of sequential numbers
|
|
35
|
+
*
|
|
36
|
+
* @param length The length of the array to create
|
|
37
|
+
* @param start The starting index (default: 0)
|
|
38
|
+
* @returns An array of sequential numbers
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* range(3) // [0, 1, 2]
|
|
43
|
+
* range(3, 1) // [1, 2, 3]
|
|
44
|
+
* range(5, 10) // [10, 11, 12, 13, 14]
|
|
45
|
+
* range(0) // []
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function range(length: number, start?: number): number[];
|
|
49
|
+
/**
|
|
50
|
+
* Debounces a function call by the specified delay
|
|
51
|
+
*
|
|
52
|
+
* @param fn The function to debounce
|
|
53
|
+
* @param delay The delay in milliseconds
|
|
54
|
+
* @returns A debounced function with clear and immediate methods
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const debouncedFn = debounce(() => console.log('called'), 500)
|
|
59
|
+
* debouncedFn() // Will call after 500ms
|
|
60
|
+
* debouncedFn.clear() // Cancel pending call
|
|
61
|
+
* debouncedFn.immediate() // Call immediately
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): {
|
|
65
|
+
(...args: Parameters<T>): void;
|
|
66
|
+
clear(): void;
|
|
67
|
+
immediate(...args: Parameters<T>): void;
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
export { isBoolean as a, isNull as c, isObject as d, isPrimitive as f, range as g, mergeDeep as h, isArray as i, isNullOrUndefined as l, isUndefined as m, debounce as n, isFunction as o, isString as p, genId as r, isNaN as s, clamp as t, isNumber as u };
|