@vuetify/v0 1.2.0 → 1.2.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.
- package/README.md +34 -0
- package/dist/{adapter-TiGrumDi.mjs → adapter-B6R54NMr.mjs} +1 -1
- package/dist/{adapter-D5nT3bLw.d.mts → adapter-BC1VWu0H.d.mts} +0 -1
- package/dist/{adapter-PDTe5nFT.d.mts → adapter-BP7jNtvH.d.mts} +3 -4
- package/dist/{adapter-CqS8xexO.d.mts → adapter-Bi799Zn7.d.mts} +2 -3
- package/dist/{adapter-ClB-53_F.d.mts → adapter-CbkRdMju.d.mts} +0 -1
- package/dist/{adapter-BiQV5j8B.mjs → adapter-DMzQI6ma.mjs} +8 -6
- package/dist/{adapter-BXunW_mw.d.mts → adapter-w8SEWO2v.d.mts} +1 -2
- package/dist/{adapter-BuSfpxur.mjs → adapter-z5dFxm0f.mjs} +1 -1
- package/dist/browser/index.d.ts +1288 -1112
- package/dist/browser/index.js +619 -523
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/{components-DBhVg-t1.mjs → components-CSFzUH3d.mjs} +407 -384
- package/dist/composables/index.d.mts +22 -22
- package/dist/composables/index.mjs +40 -40
- package/dist/{composables-ZGhVN2EJ.mjs → composables-CLNFa1uu.mjs} +55 -47
- package/dist/{consola-cad-VEV2.mjs → consola-B9K6H_EB.mjs} +1 -1
- package/dist/{consola-CdMU53rU.d.mts → consola-BGm_oQkS.d.mts} +1 -2
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +2 -2
- package/dist/{createDataTable-VmQEDn-7.mjs → createDataTable-CfJCltDt.mjs} +15 -13
- package/dist/{createGroup-B_LL7xRr.mjs → createGroup-CKE5o-VH.mjs} +17 -5
- package/dist/{createPlugin-Oo6t-vBw.mjs → createPlugin-YYkwbiUd.mjs} +3 -2
- package/dist/{createRegistry-DVdvep0v.mjs → createRegistry-D31hPifx.mjs} +10 -7
- package/dist/{createSelection-BNdDz8oY.mjs → createSelection-DdTgggyM.mjs} +5 -3
- package/dist/{createSingle-DHyIQ9Cj.mjs → createSingle-hQWwVTVX.mjs} +4 -3
- package/dist/{createTokens-DoISbwd7.mjs → createTokens-DuZrXRfN.mjs} +6 -5
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.d.mts +6 -5
- package/dist/data-table/adapters/index.mjs +4 -4
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.d.mts +6 -6
- package/dist/data-table/index.mjs +5 -5
- package/dist/date/index.d.mts +1 -2
- package/dist/date/index.mjs +3 -3
- package/dist/features/adapters/flagsmith/index.d.mts +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +1 -1
- package/dist/features/adapters/launchdarkly/index.d.mts +1 -1
- package/dist/features/adapters/launchdarkly/index.mjs +2 -1
- package/dist/features/adapters/posthog/index.d.mts +1 -1
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +3 -3
- package/dist/features/index.mjs +2 -2
- package/dist/{flagsmith-DcIDrI7_.d.mts → flagsmith-BA8q5LAx.d.mts} +1 -2
- package/dist/{globals-DaoKtIGF.mjs → globals-DVcr1oW0.mjs} +1 -1
- package/dist/{htmlElements-CHXZfsZu.mjs → htmlElements-Bt1XN_d8.mjs} +1 -1
- package/dist/{index-H_hl6-4b.d.mts → index-ClUa0Bl7.d.mts} +0 -1
- package/dist/{index-Cx0cWGlx.d.mts → index-Ct0Pmzpx.d.mts} +182 -64
- package/dist/{index-Di9e8sOm.d.mts → index-DDwX_0Um.d.mts} +6 -6
- package/dist/{index-DjRE4lLl.d.mts → index-DMQv04YO.d.mts} +19 -12
- package/dist/{index-D0ub61GV.d.mts → index-Dlr9_rf1.d.mts} +2 -3
- package/dist/index-DmDf_FmM.d.mts +4 -0
- package/dist/{index-Cm6CbqI6.d.mts → index-DqAML7MT.d.mts} +1103 -1059
- package/dist/{index-DtiaWx5U.d.mts → index-XNZrgWCq.d.mts} +1 -2
- package/dist/{index-DSPkZ0ql.d.mts → index-Y6VfllT2.d.mts} +26 -21
- package/dist/index-h87SNntw.d.mts +2 -0
- package/dist/index.d.mts +25 -25
- package/dist/index.mjs +43 -43
- package/dist/json/attributes.json +14 -2
- package/dist/json/tags.json +3 -0
- package/dist/json/web-types.json +32 -3
- package/dist/{launchdarkly-CUzunYol.d.mts → launchdarkly-CWhPi3lZ.d.mts} +1 -2
- package/dist/locale/adapters/index.d.mts +4 -3
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/adapters/vue-i18n/index.d.mts +1 -2
- package/dist/locale/adapters/vue-i18n/index.mjs +1 -1
- package/dist/locale/index.d.mts +4 -4
- package/dist/locale/index.mjs +3 -3
- package/dist/locale/messages/en/index.d.mts +3 -0
- package/dist/locale/messages/en/index.mjs +1 -0
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/consola/index.mjs +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +4 -4
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +6 -6
- package/dist/logger/index.mjs +5 -5
- package/dist/notifications/index.d.mts +1 -2
- package/dist/notifications/index.mjs +4 -2
- package/dist/palettes/ant/generate/index.d.mts +0 -1
- package/dist/palettes/ant/generate/index.mjs +1 -1
- package/dist/palettes/ant/index.d.mts +1 -2
- package/dist/palettes/index.d.mts +3 -4
- package/dist/palettes/leonardo/generate/index.d.mts +0 -1
- package/dist/palettes/leonardo/generate/index.mjs +1 -1
- package/dist/palettes/material/generate/index.d.mts +0 -1
- package/dist/palettes/material/generate/index.mjs +1 -1
- package/dist/palettes/material/index.d.mts +1 -2
- package/dist/palettes/md1/index.d.mts +1 -2
- package/dist/palettes/md2/index.d.mts +1 -2
- package/dist/palettes/radix/index.d.mts +1 -2
- package/dist/palettes/tailwind/index.d.mts +1 -2
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/index.mjs +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +2 -2
- package/dist/{pino-BscMO3RR.mjs → pino-DOI2Y-WP.mjs} +1 -1
- package/dist/{pino-DjeWBFnj.d.mts → pino-cSCLlizQ.d.mts} +1 -2
- package/dist/popover/adapters/floating-ui/index.d.mts +1 -2
- package/dist/popover/adapters/floating-ui/index.mjs +4 -3
- package/dist/popover/index.d.mts +3 -3
- package/dist/popover/index.mjs +2 -2
- package/dist/{posthog-CJAYssdr.d.mts → posthog-Bzaj2Jbd.d.mts} +1 -2
- package/dist/rules/index.d.mts +2 -2
- package/dist/rules/index.mjs +1 -1
- package/dist/{server-m7iD1vOr.mjs → server-CSXNc-my.mjs} +1 -1
- package/dist/{server-5vbJ7GGs.d.mts → server-bE0UxPFS.d.mts} +1 -2
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/index.mjs +1 -1
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/adapters/memory/index.mjs +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/storage/index.mjs +2 -2
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +3 -3
- package/dist/theme/adapters/unhead/index.d.mts +1 -1
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +4 -4
- package/dist/{toArray-MY9Kb1Qy.mjs → toArray-DCZRopC6.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/{unhead-C8zbWr45.mjs → unhead-hPXFvbDX.mjs} +2 -2
- package/dist/{useEventListener-2eAMwUdw.mjs → useEventListener-DI-1-WPJ.mjs} +2 -2
- package/dist/{useFeatures-DLafCOWt.mjs → useFeatures-CuTiM9YA.mjs} +4 -4
- package/dist/{useLocale-K_45ulPt.mjs → useLocale-OjumdVbi.mjs} +4 -4
- package/dist/{useLogger-YyWuYvrH.mjs → useLogger-CuGy-g9B.mjs} +3 -3
- package/dist/{useNotifications-Kh_KvM7j.mjs → useNotifications-BuZuDxSy.mjs} +6 -5
- package/dist/{usePermissions-BCGwsOES.mjs → usePermissions-CabbzZd_.mjs} +4 -4
- package/dist/{usePopover-BTo0AGIQ.mjs → usePopover-7WMiJ9Zt.mjs} +15 -12
- package/dist/{useRovingFocus-CkRnVmJ1.mjs → useRovingFocus-DuYBgzOA.mjs} +132 -94
- package/dist/{useRules-BuE5ffOJ.mjs → useRules-Bg7yBYP5.mjs} +5 -5
- package/dist/{useStorage-BT8-mjVs.mjs → useStorage-BtuW9p_Q.mjs} +7 -6
- package/dist/{useTheme-DkK6tPqY.mjs → useTheme-CfrtMZFH.mjs} +6 -6
- package/dist/{useTimer-CGVXk397.mjs → useTimer-aOp5haHg.mjs} +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +66 -43
- package/dist/{v0-D0Exc2bO.mjs → v0-B9gSaems.mjs} +2 -2
- package/dist/{v0-SuxTihEe.mjs → v0-BusOrX6s.mjs} +2 -2
- package/dist/{v0-GI9U-rPA.d.mts → v0-CMqoGujd.d.mts} +1 -2
- package/dist/{v0-yZ2ZUtVF.mjs → v0-DoHWpAZn.mjs} +1 -1
- package/dist/{v0-CDW1Ktk-.d.mts → v0-IFGH9KS0.d.mts} +1 -2
- package/dist/{v0-B_53w7Fu.mjs → v0-Lo13oRUf.mjs} +2 -2
- package/dist/{v0-DfFK-p4X.d.mts → v0-QlSKvaAH.d.mts} +1 -2
- package/dist/{virtual-Bbu26O_h.mjs → virtual-Bsnip0cm.mjs} +1 -1
- package/dist/{virtual-JIdFLpTQ.d.mts → virtual-DrLIdUr1.d.mts} +1 -2
- package/package.json +10 -10
- package/dist/index-CX869wwk.d.mts +0 -1
- package/dist/index-CsuikFeJ.d.mts +0 -1
- /package/dist/{adapter-Chznb9Ju.mjs → adapter-B5mEUP5W.mjs} +0 -0
- /package/dist/{adapter-CrRJuxRk.mjs → adapter-B5teFrQH.mjs} +0 -0
- /package/dist/{adapter-D8zizQVP.mjs → adapter-BTNELv6-.mjs} +0 -0
- /package/dist/{adapter-ryk5H6YZ.d.mts → adapter-CHvvxw4c.d.mts} +0 -0
- /package/dist/{adapter-8UADsA3-.mjs → adapter-CxCiZYZO.mjs} +0 -0
- /package/dist/{createTrinity-z-3q9QWR.mjs → createTrinity-DJROWgXU.mjs} +0 -0
- /package/dist/{index-u_qSc2xS.d.mts → index-Bmr3SnAx.d.mts} +0 -0
- /package/dist/{index-Djhiy3nS.d.mts → index-Cyv2jtYx.d.mts} +0 -0
- /package/dist/{memory-CR6zvuaP.mjs → memory-C-Hi69Zc.mjs} +0 -0
- /package/dist/{memory-B7z1RR9r.d.mts → memory-DyA22X2q.d.mts} +0 -0
- /package/dist/{v0-Ch0yBKEj.mjs → v0-C4TLCYZJ.mjs} +0 -0
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-DVcr1oW0.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
5
|
-
/*
|
|
5
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
6
6
|
function hexToRgb(hex) {
|
|
7
7
|
const clean = hex.startsWith("#") ? hex.slice(1) : hex;
|
|
8
8
|
if (clean.length === 3 || clean.length === 4) {
|
|
@@ -36,7 +36,7 @@ function hexToRgb(hex) {
|
|
|
36
36
|
a
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
/*
|
|
39
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
40
40
|
function rgbToHex({ r, g, b, a }) {
|
|
41
41
|
const hex = "#" + [
|
|
42
42
|
r,
|
|
@@ -72,7 +72,7 @@ function luminance(rgb) {
|
|
|
72
72
|
function clamp$1(y) {
|
|
73
73
|
return y > blkThrs ? y : y + Math.pow(blkThrs - y, blkClmp);
|
|
74
74
|
}
|
|
75
|
-
/*
|
|
75
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
76
76
|
function apca(text, background) {
|
|
77
77
|
const txtY = clamp$1(luminance(text));
|
|
78
78
|
const bgY = clamp$1(luminance(background));
|
|
@@ -83,7 +83,7 @@ function apca(text, background) {
|
|
|
83
83
|
return contrast < loBoWoffset ? 0 : (contrast - loBoWoffset) * 100;
|
|
84
84
|
} else {
|
|
85
85
|
contrast = (Math.pow(bgY, revBG) - Math.pow(txtY, revTXT)) * scaleWoB;
|
|
86
|
-
return contrast >
|
|
86
|
+
return contrast > -.027 ? 0 : (contrast + loWoBoffset) * 100;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
const BLACK = {
|
|
@@ -96,7 +96,7 @@ const WHITE = {
|
|
|
96
96
|
g: 255,
|
|
97
97
|
b: 255
|
|
98
98
|
};
|
|
99
|
-
/*
|
|
99
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
100
100
|
function foreground(hex) {
|
|
101
101
|
const rgb = /* @__PURE__ */ hexToRgb(hex);
|
|
102
102
|
return Math.abs(/* @__PURE__ */ apca(BLACK, rgb)) > Math.abs(/* @__PURE__ */ apca(WHITE, rgb)) ? "#000000" : "#ffffff";
|
|
@@ -184,11 +184,38 @@ function project(ranges, map) {
|
|
|
184
184
|
}
|
|
185
185
|
return projected;
|
|
186
186
|
}
|
|
187
|
+
function search(text, query, ignoreCase, foldQuery, foldTarget, matchAll) {
|
|
188
|
+
const folded = foldQuery ? fold(query) : query;
|
|
189
|
+
const needle = ignoreCase ? lower(folded) : folded;
|
|
190
|
+
if (needle.length === 0) return [];
|
|
191
|
+
if (!foldTarget) {
|
|
192
|
+
if (!ignoreCase) return collect(text, needle, matchAll);
|
|
193
|
+
const lowered = lower(text);
|
|
194
|
+
if (lowered.length === text.length) return collect(lowered, needle, matchAll);
|
|
195
|
+
}
|
|
196
|
+
const { folded: haystack, map } = foldWithMap(text, ignoreCase, foldTarget);
|
|
197
|
+
return project(collect(haystack, needle, matchAll), map);
|
|
198
|
+
}
|
|
199
|
+
function mergeRanges(a, b) {
|
|
200
|
+
const combined = [...a, ...b].toSorted((x, y) => x[0] - y[0] || x[1] - y[1]);
|
|
201
|
+
const merged = [];
|
|
202
|
+
for (const range of combined) {
|
|
203
|
+
const last = merged.at(-1);
|
|
204
|
+
if (last && range[0] < last[1]) continue;
|
|
205
|
+
merged.push(range);
|
|
206
|
+
}
|
|
207
|
+
return merged;
|
|
208
|
+
}
|
|
187
209
|
/**
|
|
188
210
|
* Finds `[start, end]` index pairs where `query` occurs in `text`, optionally
|
|
189
211
|
* folding accents on either side. Returned indices always address the original
|
|
190
212
|
* `text`, even when folding or case-conversion changed its length.
|
|
191
213
|
*
|
|
214
|
+
* Directional folding (`'query'` or `'target'`) only transforms one side, but
|
|
215
|
+
* a spelling that's already identical on both sides — accents and all — is
|
|
216
|
+
* merged in verbatim, so folding one side never hides a match the other side
|
|
217
|
+
* already has.
|
|
218
|
+
*
|
|
192
219
|
* @param text The string to search.
|
|
193
220
|
* @param query The term to look for. An empty query yields no ranges.
|
|
194
221
|
* @param options Optional `ignoreCase`, `ignoreAccents`, `matchAll`.
|
|
@@ -203,23 +230,19 @@ function project(ranges, map) {
|
|
|
203
230
|
*
|
|
204
231
|
* findMatchRanges('Łódź', 'Lo', { ignoreAccents: 'target' })
|
|
205
232
|
* // [[0, 2]]
|
|
233
|
+
*
|
|
234
|
+
* findMatchRanges('… Kraków …', 'Kraków', { ignoreAccents: 'query' })
|
|
235
|
+
* // [[2, 8]] — typing the exact accented name always finds itself
|
|
206
236
|
* ```
|
|
207
237
|
*/
|
|
208
|
-
/*
|
|
238
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
209
239
|
function findMatchRanges(text, query, options = {}) {
|
|
210
240
|
const { ignoreCase = false, ignoreAccents = false, matchAll = false } = options;
|
|
211
241
|
const foldQuery = ignoreAccents === true || ignoreAccents === "query";
|
|
212
242
|
const foldTarget = ignoreAccents === true || ignoreAccents === "target";
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
if (!foldTarget) {
|
|
217
|
-
if (!ignoreCase) return collect(text, needle, matchAll);
|
|
218
|
-
const lowered = lower(text);
|
|
219
|
-
if (lowered.length === text.length) return collect(lowered, needle, matchAll);
|
|
220
|
-
}
|
|
221
|
-
const { folded: haystack, map } = foldWithMap(text, ignoreCase, foldTarget);
|
|
222
|
-
return project(collect(haystack, needle, matchAll), map);
|
|
243
|
+
if (foldQuery === foldTarget) return search(text, query, ignoreCase, foldQuery, foldTarget, matchAll);
|
|
244
|
+
const merged = mergeRanges(search(text, query, ignoreCase, false, false, true), search(text, query, ignoreCase, foldQuery, foldTarget, true));
|
|
245
|
+
return matchAll ? merged : merged.slice(0, 1);
|
|
223
246
|
}
|
|
224
247
|
//#endregion
|
|
225
248
|
//#region src/utilities/instance.ts
|
|
@@ -239,11 +262,11 @@ function getInstanceCompat() {
|
|
|
239
262
|
if (INSTANCE_KEY in vueExports) return vueExports[INSTANCE_KEY];
|
|
240
263
|
return Vue.getCurrentInstance();
|
|
241
264
|
}
|
|
242
|
-
/*
|
|
265
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
243
266
|
function instanceExists() {
|
|
244
267
|
return !/* @__PURE__ */ isNull(getInstanceCompat());
|
|
245
268
|
}
|
|
246
|
-
/*
|
|
269
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
247
270
|
function instanceName() {
|
|
248
271
|
return getInstanceCompat()?.type?.name;
|
|
249
272
|
}
|
|
@@ -268,7 +291,7 @@ function instanceName() {
|
|
|
268
291
|
* isFunction('string') // false
|
|
269
292
|
* ```
|
|
270
293
|
*/
|
|
271
|
-
/*
|
|
294
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
272
295
|
function isFunction(item) {
|
|
273
296
|
return typeof item === "function";
|
|
274
297
|
}
|
|
@@ -284,7 +307,7 @@ function isFunction(item) {
|
|
|
284
307
|
* isString(123) // false
|
|
285
308
|
* ```
|
|
286
309
|
*/
|
|
287
|
-
/*
|
|
310
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
288
311
|
function isString(item) {
|
|
289
312
|
return typeof item === "string";
|
|
290
313
|
}
|
|
@@ -303,7 +326,7 @@ function isString(item) {
|
|
|
303
326
|
*
|
|
304
327
|
* @see {@link isNaN} to check for NaN specifically
|
|
305
328
|
*/
|
|
306
|
-
/*
|
|
329
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
307
330
|
function isNumber(item) {
|
|
308
331
|
return typeof item === "number";
|
|
309
332
|
}
|
|
@@ -320,7 +343,7 @@ function isNumber(item) {
|
|
|
320
343
|
* isBoolean(0) // false
|
|
321
344
|
* ```
|
|
322
345
|
*/
|
|
323
|
-
/*
|
|
346
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
324
347
|
function isBoolean(item) {
|
|
325
348
|
return typeof item === "boolean";
|
|
326
349
|
}
|
|
@@ -350,7 +373,7 @@ function isBoolean(item) {
|
|
|
350
373
|
* @see {@link isArray} to check for arrays
|
|
351
374
|
* @see {@link isNull} to check for null
|
|
352
375
|
*/
|
|
353
|
-
/*
|
|
376
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
354
377
|
function isObject(item) {
|
|
355
378
|
return typeof item === "object" && item !== null && !Array.isArray(item);
|
|
356
379
|
}
|
|
@@ -374,7 +397,7 @@ function isObject(item) {
|
|
|
374
397
|
* supported. If you specifically want native Promise instances, use
|
|
375
398
|
* `instanceof Promise` directly.
|
|
376
399
|
*/
|
|
377
|
-
/*
|
|
400
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
378
401
|
function isThenable(item) {
|
|
379
402
|
return /* @__PURE__ */ isObject(item) && "then" in item && /* @__PURE__ */ isFunction(item.then);
|
|
380
403
|
}
|
|
@@ -406,7 +429,7 @@ function isThenable(item) {
|
|
|
406
429
|
* first branch (a predicate must be assignable to its parameter's type) without
|
|
407
430
|
* letting an array argument capture the inference site.
|
|
408
431
|
*/
|
|
409
|
-
/*
|
|
432
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
410
433
|
function isArray(item) {
|
|
411
434
|
return Array.isArray(item);
|
|
412
435
|
}
|
|
@@ -423,7 +446,7 @@ function isArray(item) {
|
|
|
423
446
|
* isElement(null) // false
|
|
424
447
|
* ```
|
|
425
448
|
*/
|
|
426
|
-
/*
|
|
449
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
427
450
|
function isElement(item) {
|
|
428
451
|
return typeof Element !== "undefined" && item instanceof Element;
|
|
429
452
|
}
|
|
@@ -441,9 +464,9 @@ function isElement(item) {
|
|
|
441
464
|
* const active = getActiveElement()
|
|
442
465
|
* ```
|
|
443
466
|
*/
|
|
444
|
-
/*
|
|
467
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
445
468
|
function getActiveElement() {
|
|
446
|
-
if (
|
|
469
|
+
if (!IN_BROWSER) return null;
|
|
447
470
|
let active = document.activeElement;
|
|
448
471
|
while (active?.shadowRoot?.activeElement) active = active.shadowRoot.activeElement;
|
|
449
472
|
return active;
|
|
@@ -463,7 +486,7 @@ function getActiveElement() {
|
|
|
463
486
|
* @see {@link isUndefined} to check for undefined
|
|
464
487
|
* @see {@link isNullOrUndefined} to check for either
|
|
465
488
|
*/
|
|
466
|
-
/*
|
|
489
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
467
490
|
function isNull(item) {
|
|
468
491
|
return item === null;
|
|
469
492
|
}
|
|
@@ -487,7 +510,7 @@ function isNull(item) {
|
|
|
487
510
|
* @see {@link isNull} to check for null only
|
|
488
511
|
* @see {@link isUndefined} to check for undefined only
|
|
489
512
|
*/
|
|
490
|
-
/*
|
|
513
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
491
514
|
function isNullOrUndefined(item) {
|
|
492
515
|
return item == null;
|
|
493
516
|
}
|
|
@@ -506,7 +529,7 @@ function isNullOrUndefined(item) {
|
|
|
506
529
|
* @see {@link isNull} to check for null
|
|
507
530
|
* @see {@link isNullOrUndefined} to check for either
|
|
508
531
|
*/
|
|
509
|
-
/*
|
|
532
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
510
533
|
function isUndefined(item) {
|
|
511
534
|
return item === void 0;
|
|
512
535
|
}
|
|
@@ -525,7 +548,7 @@ function isUndefined(item) {
|
|
|
525
548
|
* isPrimitive(null) // false
|
|
526
549
|
* ```
|
|
527
550
|
*/
|
|
528
|
-
/*
|
|
551
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
529
552
|
function isPrimitive(item) {
|
|
530
553
|
return typeof item === "string" || typeof item === "number" || typeof item === "boolean";
|
|
531
554
|
}
|
|
@@ -541,7 +564,7 @@ function isPrimitive(item) {
|
|
|
541
564
|
* isSymbol('symbol') // false
|
|
542
565
|
* ```
|
|
543
566
|
*/
|
|
544
|
-
/*
|
|
567
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
545
568
|
function isSymbol(item) {
|
|
546
569
|
return typeof item === "symbol";
|
|
547
570
|
}
|
|
@@ -565,7 +588,7 @@ function isSymbol(item) {
|
|
|
565
588
|
*
|
|
566
589
|
* @see {@link isNumber} to check if a value is a number type
|
|
567
590
|
*/
|
|
568
|
-
/*
|
|
591
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
569
592
|
function isNaN(item) {
|
|
570
593
|
return /* @__PURE__ */ isNumber(item) && Number.isNaN(item);
|
|
571
594
|
}
|
|
@@ -606,7 +629,7 @@ function isPlainObject(value) {
|
|
|
606
629
|
* mergeDeep({ arr: [1, 2] }, { arr: [3] }) // { arr: [3] }
|
|
607
630
|
* ```
|
|
608
631
|
*/
|
|
609
|
-
/*
|
|
632
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
610
633
|
function mergeDeep(target, ...sources) {
|
|
611
634
|
const out = {};
|
|
612
635
|
for (const key in target) if (Object.hasOwn(target, key)) out[key] = target[key];
|
|
@@ -645,7 +668,7 @@ let idCounter = 0;
|
|
|
645
668
|
* const id = useId() // 'v0-0', 'v0-1', etc.
|
|
646
669
|
* ```
|
|
647
670
|
*/
|
|
648
|
-
/*
|
|
671
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
649
672
|
function useId() {
|
|
650
673
|
if (/* @__PURE__ */ instanceExists()) return useId$1();
|
|
651
674
|
if (typeof (process.env.NODE_ENV !== "production") !== "undefined" && process.env.NODE_ENV !== "production" && !IN_BROWSER) console.warn("[v0 warn] useId() called outside component context during SSR. Provide explicit ID to avoid hydration mismatch.");
|
|
@@ -666,7 +689,7 @@ function useId() {
|
|
|
666
689
|
* clamp(15, 0, 10) // 10
|
|
667
690
|
* ```
|
|
668
691
|
*/
|
|
669
|
-
/*
|
|
692
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
670
693
|
function clamp(value, min = 0, max = 1) {
|
|
671
694
|
if (!Number.isFinite(value)) return min;
|
|
672
695
|
return Math.max(min, Math.min(max, value));
|
|
@@ -686,7 +709,7 @@ function clamp(value, min = 0, max = 1) {
|
|
|
686
709
|
* range(0) // []
|
|
687
710
|
* ```
|
|
688
711
|
*/
|
|
689
|
-
/*
|
|
712
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
690
713
|
function range(length, start = 0) {
|
|
691
714
|
return Array.from({ length }, (_, index) => start + index);
|
|
692
715
|
}
|
|
@@ -722,7 +745,7 @@ function range(length, start = 0) {
|
|
|
722
745
|
* pxToNumber('0px', 100) // 0
|
|
723
746
|
* ```
|
|
724
747
|
*/
|
|
725
|
-
/*
|
|
748
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
726
749
|
function pxToNumber(value, fallback = 0) {
|
|
727
750
|
if (!/* @__PURE__ */ isString(value)) return fallback;
|
|
728
751
|
const parsed = Number.parseFloat(value);
|
|
@@ -734,7 +757,7 @@ function pxToNumber(value, fallback = 0) {
|
|
|
734
757
|
*
|
|
735
758
|
* @internal
|
|
736
759
|
*/
|
|
737
|
-
/*
|
|
760
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
738
761
|
function resolveIds(ids, getter) {
|
|
739
762
|
const result = [];
|
|
740
763
|
for (const id of ids) {
|
|
@@ -748,7 +771,7 @@ function resolveIds(ids, getter) {
|
|
|
748
771
|
*
|
|
749
772
|
* @internal
|
|
750
773
|
*/
|
|
751
|
-
/*
|
|
774
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
752
775
|
function resolveIndexes(items) {
|
|
753
776
|
const result = [];
|
|
754
777
|
for (const item of items) {
|
|
@@ -870,7 +893,7 @@ var V0Error = class extends Error {
|
|
|
870
893
|
* }
|
|
871
894
|
* ```
|
|
872
895
|
*/
|
|
873
|
-
/*
|
|
896
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
874
897
|
function isV0Error(value, code) {
|
|
875
898
|
if (!(value instanceof V0Error)) return false;
|
|
876
899
|
return /* @__PURE__ */ isUndefined(code) || value.code === code;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
3
|
-
import { t as LocaleAdapter } from "./adapter-
|
|
3
|
+
import { t as LocaleAdapter } from "./adapter-BTNELv6-.mjs";
|
|
4
4
|
//#region src/composables/useLocale/adapters/v0.ts
|
|
5
5
|
/**
|
|
6
6
|
* Default locale adapter for @vuetify/v0.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isFunction } from "./utilities/index.mjs";
|
|
3
|
-
import { t as LoggerAdapter } from "./adapter-
|
|
3
|
+
import { t as LoggerAdapter } from "./adapter-B5mEUP5W.mjs";
|
|
4
4
|
//#region src/composables/useLogger/adapters/v0.ts
|
|
5
5
|
/**
|
|
6
6
|
* V0 logger adapter implementation
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-
|
|
2
|
-
|
|
1
|
+
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-BP7jNtvH.mjs";
|
|
3
2
|
//#region src/composables/createDataTable/adapters/v0.d.ts
|
|
4
3
|
declare class ClientDataTableAdapter<T extends object> extends DataTableAdapter<T> {
|
|
5
4
|
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createPagination, t as DataTableAdapter } from "./adapter-
|
|
1
|
+
import { n as createPagination, t as DataTableAdapter } from "./adapter-DMzQI6ma.mjs";
|
|
2
2
|
import { computed, toRef, watch } from "vue";
|
|
3
3
|
//#region src/composables/createDataTable/adapters/v0.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as LocaleAdapterContext, t as LocaleAdapter } from "./adapter-
|
|
2
|
-
|
|
1
|
+
import { n as LocaleAdapterContext, t as LocaleAdapter } from "./adapter-Bi799Zn7.mjs";
|
|
3
2
|
//#region src/composables/useLocale/adapters/v0.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Default locale adapter for @vuetify/v0.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-DVcr1oW0.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-B6R54NMr.mjs";
|
|
4
4
|
import { watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/v0.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createPagination, t as DataTableAdapter } from "./adapter-
|
|
1
|
+
import { n as createPagination, t as DataTableAdapter } from "./adapter-DMzQI6ma.mjs";
|
|
2
2
|
import { toRef, watch } from "vue";
|
|
3
3
|
//#region src/composables/createDataTable/adapters/virtual.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-
|
|
2
|
-
|
|
1
|
+
import { n as DataTableAdapterContext, r as DataTableAdapterResult, t as DataTableAdapter } from "./adapter-BP7jNtvH.mjs";
|
|
3
2
|
//#region src/composables/createDataTable/adapters/virtual.d.ts
|
|
4
3
|
declare class VirtualDataTableAdapter<T extends object> extends DataTableAdapter<T> {
|
|
5
4
|
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/v0",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Headless, unstyled, accessible Vue 3 primitives and composables — a meta UI framework for building applications, component libraries, and design systems",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -95,18 +95,18 @@
|
|
|
95
95
|
"@js-temporal/polyfill": "0.5.1",
|
|
96
96
|
"@material/material-color-utilities": "^0.4.0",
|
|
97
97
|
"@testing-library/vue": "^8.1.0",
|
|
98
|
-
"@vitest/browser-playwright": "4.1.
|
|
99
|
-
"@vue/compiler-dom": "^3.5.
|
|
100
|
-
"@vue/test-utils": "^2.
|
|
101
|
-
"axe-core": "^4.
|
|
102
|
-
"launchdarkly-js-client-sdk": "^3.9.
|
|
103
|
-
"posthog-js": "^1.
|
|
104
|
-
"tsdown": "^0.
|
|
98
|
+
"@vitest/browser-playwright": "4.1.11",
|
|
99
|
+
"@vue/compiler-dom": "^3.5.42",
|
|
100
|
+
"@vue/test-utils": "^2.5.0",
|
|
101
|
+
"axe-core": "^4.13.0",
|
|
102
|
+
"launchdarkly-js-client-sdk": "^3.9.5",
|
|
103
|
+
"posthog-js": "^1.418.5",
|
|
104
|
+
"tsdown": "^0.22.14",
|
|
105
105
|
"typescript": "6.0.3",
|
|
106
106
|
"unplugin-vue": "^7.2.0",
|
|
107
|
-
"vue": "3.5.
|
|
107
|
+
"vue": "3.5.42",
|
|
108
108
|
"vue-component-meta": "3.2.7",
|
|
109
|
-
"vue-i18n": "^11.4.
|
|
109
|
+
"vue-i18n": "^11.4.8"
|
|
110
110
|
},
|
|
111
111
|
"imports": {
|
|
112
112
|
"#v0/*": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|