@vuetify/v0 1.0.0-beta.0 → 1.0.0-beta.1
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/{adapter-oM18AdUc.mjs → adapter-DdTval2R.mjs} +1 -1
- package/dist/{adapters-BxrTL8E3.mjs → adapters-B350nY4t.mjs} +1 -1
- package/dist/adapters-DKWBbvCe.mjs +4 -0
- package/dist/adapters-Da2jxCo7.mjs +2 -0
- package/dist/browser/index.js +132 -77
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{components-_uxZ_Zo3.mjs → components-B210m9Ye.mjs} +20 -12
- package/dist/composables/index.mjs +18 -18
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-DlFQyBTN.mjs → createDataTable-B-Fo-uuL.mjs} +3 -3
- package/dist/{createGroup-DsKJMuRd.mjs → createGroup-CpaW7zEJ.mjs} +25 -13
- package/dist/{createRegistry-tJ1PPNIr.mjs → createRegistry-8FryYQC-.mjs} +55 -40
- package/dist/{createSelection-DEqhvdoj.mjs → createSelection-DPOvmJ5q.mjs} +1 -1
- package/dist/{createSingle-ClzWqRCe.mjs → createSingle-CYi0RuOy.mjs} +3 -3
- package/dist/{createTokens-mNxs8DQ3.mjs → createTokens-DaJ_SYE7.mjs} +11 -4
- package/dist/data-table/index.mjs +1 -1
- package/dist/date/index.mjs +1 -1
- package/dist/features/adapters/posthog/index.mjs +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-DB-krEA-.mjs → globals-BBqmW3dM.mjs} +1 -1
- package/dist/{index-B3PDLk_Y.d.mts → index-BpDzW6zC.d.mts} +107 -107
- package/dist/{index-ATZqco03.d.mts → index-y-dyBzAF.d.mts} +2 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +22 -22
- package/dist/json/web-types.json +1 -1
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/index.mjs +2 -2
- package/dist/logger/adapters/index.mjs +2 -2
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.mjs +2 -2
- package/dist/notifications/index.mjs +2 -2
- package/dist/permissions/index.mjs +1 -1
- package/dist/{posthog-B5s_KGhy.mjs → posthog-DPe6ewqN.mjs} +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/storage/index.mjs +1 -1
- package/dist/theme/adapters/index.mjs +4 -4
- package/dist/theme/adapters/unhead/index.mjs +1 -1
- package/dist/theme/adapters/v0/index.mjs +1 -1
- package/dist/theme/index.mjs +3 -3
- package/dist/{unhead-CG672gKh.mjs → unhead-l-ZLWtSR.mjs} +2 -2
- package/dist/{useClickOutside-DoOgNtrj.mjs → useClickOutside-BurEbsu3.mjs} +37 -29
- package/dist/{useFeatures-B-A-eOo-.mjs → useFeatures-BWC23LA6.mjs} +4 -4
- package/dist/{useLocale-CbpoxbVU.mjs → useLocale-yXLswxYa.mjs} +5 -5
- package/dist/{useLogger-CTgAedNH.mjs → useLogger-JwRA-DZ7.mjs} +3 -3
- package/dist/{useNotifications-BkKGUl_1.mjs → useNotifications-8qt26Ha9.mjs} +3 -3
- package/dist/{usePermissions-BYOrKcnk.mjs → usePermissions-Bc1-N-lO.mjs} +11 -5
- package/dist/{useRules-mD_DY9dy.mjs → useRules-Dg-pFO8r.mjs} +2 -2
- package/dist/{useTheme-B1lUya5B.mjs → useTheme-TpMOisy2.mjs} +5 -5
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.mjs +3 -3
- package/dist/{v0-CHK79mZX.mjs → v0-BfZc5TNn.mjs} +1 -1
- package/dist/{v0-CG9o3on7.mjs → v0-C7j3bzRU.mjs} +1 -1
- package/dist/{v0-Bx5Mi7qE.mjs → v0-eRmUaRpH.mjs} +2 -2
- package/package.json +1 -1
- package/dist/adapters-BHD1lc-K.mjs +0 -4
- package/dist/adapters-CBgBd7VE.mjs +0 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { a as SUPPORTS_OBSERVER, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { a as SUPPORTS_OBSERVER, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { V0Error, clamp, instanceExists, isArray, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isString, isThenable, isUndefined, mergeDeep, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, n as createContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
4
|
-
import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-
|
|
5
|
-
import { t as createRegistry } from "./createRegistry-
|
|
6
|
-
import { i as createModel, t as createSelection } from "./createSelection-
|
|
7
|
-
import { t as createSingle } from "./createSingle-
|
|
8
|
-
import "./createTokens-
|
|
9
|
-
import { a as useLocale } from "./useLocale-
|
|
10
|
-
import { c as useTimer } from "./useNotifications-
|
|
4
|
+
import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-8FryYQC-.mjs";
|
|
6
|
+
import { i as createModel, t as createSelection } from "./createSelection-DPOvmJ5q.mjs";
|
|
7
|
+
import { t as createSingle } from "./createSingle-CYi0RuOy.mjs";
|
|
8
|
+
import "./createTokens-DaJ_SYE7.mjs";
|
|
9
|
+
import { a as useLocale } from "./useLocale-yXLswxYa.mjs";
|
|
10
|
+
import { c as useTimer } from "./useNotifications-8qt26Ha9.mjs";
|
|
11
11
|
import { t as toArray } from "./toArray-CD2-OxAz.mjs";
|
|
12
12
|
import { a as createFilter } from "./adapter-BCVxBtDp.mjs";
|
|
13
|
-
import { t as createGroup } from "./createGroup-
|
|
14
|
-
import { a as extractLeaves, t as createDataTable } from "./createDataTable-
|
|
15
|
-
import { a as useRules, o as isStandardSchema } from "./useRules-
|
|
16
|
-
import "./useFeatures-
|
|
17
|
-
import "./usePermissions-
|
|
13
|
+
import { t as createGroup } from "./createGroup-CpaW7zEJ.mjs";
|
|
14
|
+
import { a as extractLeaves, t as createDataTable } from "./createDataTable-B-Fo-uuL.mjs";
|
|
15
|
+
import { a as useRules, o as isStandardSchema } from "./useRules-Dg-pFO8r.mjs";
|
|
16
|
+
import "./useFeatures-BWC23LA6.mjs";
|
|
17
|
+
import "./usePermissions-Bc1-N-lO.mjs";
|
|
18
18
|
import { t as MemoryStorageAdapter } from "./memory-BMpJcQjQ.mjs";
|
|
19
|
-
import "./useTheme-
|
|
19
|
+
import "./useTheme-TpMOisy2.mjs";
|
|
20
20
|
import { computed, effectScope, hasInjectionContext, isReadonly, isRef, nextTick, onMounted, onScopeDispose, onWatcherCleanup, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, unref, watch, watchEffect } from "vue";
|
|
21
21
|
//#region src/composables/createBreadcrumbs/index.ts
|
|
22
22
|
/**
|
|
@@ -2028,7 +2028,7 @@ function createForm(options = {}) {
|
|
|
2028
2028
|
for (const ticket of registry.values()) ticket.value.reset();
|
|
2029
2029
|
}
|
|
2030
2030
|
async function submit(id) {
|
|
2031
|
-
const ids =
|
|
2031
|
+
const ids = /* @__PURE__ */ isUndefined(id) ? [...registry.keys()] : /* @__PURE__ */ toArray(id);
|
|
2032
2032
|
return (await Promise.all(ids.map(async (key) => {
|
|
2033
2033
|
const ticket = registry.get(key);
|
|
2034
2034
|
if (!ticket) return true;
|
|
@@ -2177,14 +2177,18 @@ function createValidation(_options = {}) {
|
|
|
2177
2177
|
return group.batch(() => rules.map((r) => register(r)));
|
|
2178
2178
|
}
|
|
2179
2179
|
async function validate(_value = UNSET, silent = false) {
|
|
2180
|
+
const gen = ++generation;
|
|
2180
2181
|
const val = _value === UNSET ? toValue(valueSource) : _value;
|
|
2181
2182
|
const activeRules = [];
|
|
2182
2183
|
for (const ticket of group.selectedItems.value) activeRules.push(ticket.value);
|
|
2183
2184
|
if (activeRules.length === 0) {
|
|
2184
|
-
if (!silent)
|
|
2185
|
+
if (!silent) {
|
|
2186
|
+
errors.value = [];
|
|
2187
|
+
isValid.value = true;
|
|
2188
|
+
isValidating.value = false;
|
|
2189
|
+
}
|
|
2185
2190
|
return true;
|
|
2186
2191
|
}
|
|
2187
|
-
const gen = ++generation;
|
|
2188
2192
|
if (!silent) isValidating.value = true;
|
|
2189
2193
|
try {
|
|
2190
2194
|
const results = await Promise.all(activeRules.map((rule) => rule(val)));
|
|
@@ -2818,7 +2822,11 @@ function createNested(_options = {}) {
|
|
|
2818
2822
|
while (!/* @__PURE__ */ isUndefined(parentId)) {
|
|
2819
2823
|
const childIds = children.get(parentId);
|
|
2820
2824
|
if (childIds && childIds.length > 0) {
|
|
2821
|
-
const
|
|
2825
|
+
const enabledIds = childIds.filter((cid) => {
|
|
2826
|
+
const child = group.get(cid);
|
|
2827
|
+
return !child || !toValue(child.disabled);
|
|
2828
|
+
});
|
|
2829
|
+
const allSelected = enabledIds.length > 0 && enabledIds.every((cid) => selectedIds.has(cid));
|
|
2822
2830
|
const someSelected = !allSelected && childIds.some((cid) => selectedIds.has(cid) || mixedIds.has(cid));
|
|
2823
2831
|
if (allSelected) {
|
|
2824
2832
|
mixedIds.delete(parentId);
|
|
@@ -4353,6 +4361,7 @@ function useProgress(namespace = "v0:progress") {
|
|
|
4353
4361
|
* console.log(rating.value.value) // 4
|
|
4354
4362
|
* ```
|
|
4355
4363
|
*/
|
|
4364
|
+
const MAX_SIZE = 1e3;
|
|
4356
4365
|
/**
|
|
4357
4366
|
* Creates a rating instance.
|
|
4358
4367
|
*
|
|
@@ -4409,7 +4418,7 @@ function createRating(_options = {}) {
|
|
|
4409
4418
|
value,
|
|
4410
4419
|
items: computed(() => {
|
|
4411
4420
|
const current = value.value;
|
|
4412
|
-
return (/* @__PURE__ */ range(toValue(_size), 1)).map((i) => ({
|
|
4421
|
+
return (/* @__PURE__ */ range(/* @__PURE__ */ clamp(Math.floor(toValue(_size)), 0, MAX_SIZE), 1)).map((i) => ({
|
|
4413
4422
|
value: i,
|
|
4414
4423
|
state: getState(i, current)
|
|
4415
4424
|
}));
|
|
@@ -4600,18 +4609,16 @@ function createSlider(options = {}) {
|
|
|
4600
4609
|
pending = snapped;
|
|
4601
4610
|
return;
|
|
4602
4611
|
}
|
|
4603
|
-
|
|
4612
|
+
const gap = minStepsBetweenThumbs * step;
|
|
4613
|
+
let written;
|
|
4614
|
+
for (const [index, element] of snapped.entries()) {
|
|
4604
4615
|
const ticket = thumbs.value[index];
|
|
4605
4616
|
if (!ticket || !isRef(ticket.value)) continue;
|
|
4606
|
-
let constrained =
|
|
4607
|
-
if (!crossover)
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
if (!/* @__PURE__ */ isUndefined(prev)) constrained = Math.max(constrained, prev + gap);
|
|
4612
|
-
if (!/* @__PURE__ */ isUndefined(following)) constrained = Math.min(constrained, following - gap);
|
|
4613
|
-
}
|
|
4614
|
-
ticket.value.value = /* @__PURE__ */ clamp(constrained, min, max);
|
|
4617
|
+
let constrained = element;
|
|
4618
|
+
if (!crossover && !/* @__PURE__ */ isUndefined(written)) constrained = Math.max(constrained, written + gap);
|
|
4619
|
+
constrained = /* @__PURE__ */ clamp(constrained, min, max);
|
|
4620
|
+
ticket.value.value = constrained;
|
|
4621
|
+
written = constrained;
|
|
4615
4622
|
}
|
|
4616
4623
|
}
|
|
4617
4624
|
function set(index, value) {
|
|
@@ -6666,6 +6673,7 @@ function useDragDrop(options = {}) {
|
|
|
6666
6673
|
..._zones,
|
|
6667
6674
|
register(registration) {
|
|
6668
6675
|
const id = registration.id ?? /* @__PURE__ */ useId$1();
|
|
6676
|
+
if (_zones.has(id)) return _zones.register(registration);
|
|
6669
6677
|
const el = toRef(() => toValue(registration.el));
|
|
6670
6678
|
const isOver = toRef(() => active.value?.over === id);
|
|
6671
6679
|
const willAccept = toRef(() => safeAccept(registration.accept, active.value));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isArray, isBoolean, isFunction, isObject } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as createGroup } from "./createGroup-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-DaJ_SYE7.mjs";
|
|
4
|
+
import { t as createGroup } from "./createGroup-CpaW7zEJ.mjs";
|
|
5
5
|
import "./flagsmith-Cu93hUIF.mjs";
|
|
6
6
|
import "./launchdarkly-CLGtJCsI.mjs";
|
|
7
|
-
import "./posthog-
|
|
7
|
+
import "./posthog-DPe6ewqN.mjs";
|
|
8
8
|
//#region src/composables/useFeatures/index.ts
|
|
9
9
|
/**
|
|
10
10
|
* @module useFeatures
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as createPluginContext } from "./useLogger-
|
|
2
|
-
import { t as createSingle } from "./createSingle-
|
|
3
|
-
import { r as flatten, t as createTokens } from "./createTokens-
|
|
4
|
-
import { t as V0LocaleAdapter } from "./v0-
|
|
5
|
-
import "./adapters-
|
|
1
|
+
import { o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
2
|
+
import { t as createSingle } from "./createSingle-CYi0RuOy.mjs";
|
|
3
|
+
import { r as flatten, t as createTokens } from "./createTokens-DaJ_SYE7.mjs";
|
|
4
|
+
import { t as V0LocaleAdapter } from "./v0-BfZc5TNn.mjs";
|
|
5
|
+
import "./adapters-Da2jxCo7.mjs";
|
|
6
6
|
//#region src/composables/useLocale/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module useLocale
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { isNullOrUndefined, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
4
|
-
import { t as V0LoggerAdapter } from "./v0-
|
|
5
|
-
import "./adapters-
|
|
4
|
+
import { t as V0LoggerAdapter } from "./v0-C7j3bzRU.mjs";
|
|
5
|
+
import "./adapters-B350nY4t.mjs";
|
|
6
6
|
import { hasInjectionContext, inject, watch } from "vue";
|
|
7
7
|
//#region src/composables/createPlugin/index.ts
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { isFunction, isNull, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
|
|
4
|
-
import { o as createPluginContext } from "./useLogger-
|
|
5
|
-
import { t as createRegistry } from "./createRegistry-
|
|
4
|
+
import { o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-8FryYQC-.mjs";
|
|
6
6
|
import { onScopeDispose, shallowRef, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useTimer/index.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UNSAFE_KEYS } from "./utilities/index.mjs";
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-DaJ_SYE7.mjs";
|
|
3
4
|
import { t as toArray } from "./toArray-CD2-OxAz.mjs";
|
|
4
5
|
import { t as V0PermissionsAdapter } from "./v0-Dvu8fMl3.mjs";
|
|
5
6
|
import "./adapters-D64TORDu.mjs";
|
|
@@ -56,10 +57,15 @@ function createPermissions(_options = {}) {
|
|
|
56
57
|
const { adapter = new V0PermissionsAdapter(), permissions = {}, ...options } = _options;
|
|
57
58
|
const record = {};
|
|
58
59
|
for (const role in permissions) {
|
|
60
|
+
if (UNSAFE_KEYS.has(role)) continue;
|
|
59
61
|
if (!record[role]) record[role] = {};
|
|
60
|
-
for (const [actions, subjects, condition = true] of permissions[role]) for (const action of /* @__PURE__ */ toArray(actions))
|
|
61
|
-
if (
|
|
62
|
-
|
|
62
|
+
for (const [actions, subjects, condition = true] of permissions[role]) for (const action of /* @__PURE__ */ toArray(actions)) {
|
|
63
|
+
if (UNSAFE_KEYS.has(action)) continue;
|
|
64
|
+
for (const subject of /* @__PURE__ */ toArray(subjects)) {
|
|
65
|
+
if (UNSAFE_KEYS.has(subject)) continue;
|
|
66
|
+
if (!record[role][action]) record[role][action] = {};
|
|
67
|
+
record[role][action][subject] = condition;
|
|
68
|
+
}
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
const tokens = createTokens(record, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { instanceExists, isFunction, isObject } from "./utilities/index.mjs";
|
|
2
|
-
import { i as useLogger, o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { a as useLocale } from "./useLocale-
|
|
2
|
+
import { i as useLogger, o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
3
|
+
import { a as useLocale } from "./useLocale-yXLswxYa.mjs";
|
|
4
4
|
//#region src/composables/useRules/adapters/standard.ts
|
|
5
5
|
/**
|
|
6
6
|
* Type guard for Standard Schema objects.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { foreground } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createSingle } from "./createSingle-
|
|
4
|
-
import { r as flatten, t as createTokens } from "./createTokens-
|
|
5
|
-
import { t as V0StyleSheetThemeAdapter } from "./v0-
|
|
6
|
-
import "./adapters-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-JwRA-DZ7.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-CYi0RuOy.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-DaJ_SYE7.mjs";
|
|
5
|
+
import { t as V0StyleSheetThemeAdapter } from "./v0-eRmUaRpH.mjs";
|
|
6
|
+
import "./adapters-DKWBbvCe.mjs";
|
|
7
7
|
import { computed, shallowRef, toRef } from "vue";
|
|
8
8
|
//#region src/composables/useTheme/index.ts
|
|
9
9
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { RGB, V0Error, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, isV0Error, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
1
|
+
import { A as rgbToHex, C as useId, D as foreground, E as apca, O as RGB, S as resolveIndexes, T as isV0Error, _ as isThenable, a as isArray, b as range, c as isFunction, d as isNullOrUndefined, f as isNumber, g as isSymbol, h as isString, i as clamp, k as hexToRgb, l as isNaN, m as isPrimitive, n as instanceName, o as isBoolean, p as isObject, r as UNSAFE_KEYS, s as isElement, t as instanceExists, u as isNull, v as isUndefined, w as V0Error, x as resolveIds, y as mergeDeep } from "../index-y-dyBzAF.mjs";
|
|
2
|
+
export { RGB, UNSAFE_KEYS, V0Error, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, isV0Error, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "../globals-
|
|
1
|
+
import { t as IN_BROWSER } from "../globals-BBqmW3dM.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
@@ -285,7 +285,7 @@ function isArray(item) {
|
|
|
285
285
|
*/
|
|
286
286
|
/* @__NO_SIDE_EFFECTS__ */
|
|
287
287
|
function isElement(item) {
|
|
288
|
-
return item instanceof Element;
|
|
288
|
+
return typeof Element !== "undefined" && item instanceof Element;
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
291
|
* Checks if a value is null
|
|
@@ -657,4 +657,4 @@ function isV0Error(value, code) {
|
|
|
657
657
|
return /* @__PURE__ */ isUndefined(code) || value.code === code;
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
660
|
-
export { V0Error, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, isV0Error, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
660
|
+
export { UNSAFE_KEYS, V0Error, apca, clamp, foreground, hexToRgb, instanceExists, instanceName, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isString, isSymbol, isThenable, isUndefined, isV0Error, mergeDeep, range, resolveIds, resolveIndexes, rgbToHex, useId };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { t as LocaleAdapter } from "./adapter-D8zizQVP.mjs";
|
|
4
4
|
//#region src/composables/useLocale/adapters/v0.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { isFunction } from "./utilities/index.mjs";
|
|
3
3
|
import { t as LoggerAdapter } from "./adapter-Chznb9Ju.mjs";
|
|
4
4
|
//#region src/composables/useLogger/adapters/v0.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BBqmW3dM.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-DdTval2R.mjs";
|
|
4
4
|
import { onScopeDispose, watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/v0.ts
|
|
6
6
|
/**
|
package/package.json
CHANGED