@vuetify/v0 1.0.0-beta.5 → 1.0.0-rc.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/README.md +2 -15
- package/dist/{adapter-BI-oyZCe.d.mts → adapter-CMdKyFLz.d.mts} +1 -1
- package/dist/{adapter-CJY6aQIS.mjs → adapter-lS_VpRow.mjs} +1 -1
- package/dist/browser/index.d.ts +112 -110
- package/dist/browser/index.js +46 -26
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{components-Uq92vRyo.mjs → components-D87gpuRI.mjs} +11 -11
- package/dist/composables/index.d.mts +6 -6
- package/dist/composables/index.mjs +22 -22
- package/dist/{composables-CzjEAc-O.mjs → composables-DAc4DbYb.mjs} +11 -11
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-BT9WcHvw.mjs → createDataTable-C86TFzxJ.mjs} +3 -3
- package/dist/{createGroup-CJt-oMxs.mjs → createGroup-DKVmhWJZ.mjs} +1 -1
- package/dist/{createRegistry-C-izE3Un.mjs → createRegistry-DaRYxox5.mjs} +20 -19
- package/dist/{createSelection-rmz4G5IG.mjs → createSelection-CZFfJnBv.mjs} +4 -2
- package/dist/{createSingle-DDri2UEO.mjs → createSingle-D08Et-36.mjs} +1 -1
- package/dist/{createTokens-D_EYIf_-.mjs → createTokens-BY_7TedA.mjs} +2 -2
- package/dist/data-table/index.d.mts +1 -1
- package/dist/data-table/index.mjs +1 -1
- package/dist/date/index.mjs +1 -1
- package/dist/features/adapters/flagsmith/index.mjs +2 -1
- package/dist/features/adapters/launchdarkly/index.mjs +8 -5
- package/dist/features/adapters/posthog/index.mjs +3 -2
- package/dist/features/index.d.mts +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-od-0-rj0.mjs → globals-Djy_aCgG.mjs} +1 -1
- package/dist/{index-CV7bOS7B.d.mts → index-B5ybQyJO.d.mts} +14 -14
- package/dist/{index-CfHm03dg.d.mts → index-CIf2yTGR.d.mts} +1 -1
- package/dist/{index-DF1gnhPy.d.mts → index-CUdlfMMw.d.mts} +99 -99
- package/dist/{index-DgPFPx_7.d.mts → index-CfSenWTN.d.mts} +1 -1
- package/dist/{index-pM8UX1XI.d.mts → index-DTYOP7ci.d.mts} +2 -2
- package/dist/{index-BBJnOUyA.d.mts → index-u0Sy6Dif.d.mts} +2 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +24 -24
- package/dist/json/web-types.json +1 -1
- package/dist/locale/adapters/index.d.mts +2 -2
- package/dist/locale/adapters/index.mjs +1 -1
- 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 -1
- package/dist/locale/index.d.mts +3 -3
- package/dist/locale/index.mjs +2 -2
- package/dist/logger/adapters/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.mjs +1 -1
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +2 -2
- package/dist/notifications/index.d.mts +1 -1
- package/dist/notifications/index.mjs +2 -2
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +2 -2
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +1 -1
- 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/{unhead-BnxPl6sY.mjs → unhead-CAPMhSV7.mjs} +2 -2
- package/dist/{useEventListener-CfEGMcjz.mjs → useEventListener-BtOsc1qg.mjs} +1 -1
- package/dist/{useFeatures-B_u-9E7R.mjs → useFeatures-B5I-8W8H.mjs} +3 -3
- package/dist/{useLocale-BXtMJeow.mjs → useLocale-AKOyyv43.mjs} +8 -5
- package/dist/{useLogger-DX5_7Oxx.mjs → useLogger-bHW-Guij.mjs} +2 -2
- package/dist/{useNotifications-DeNMmeZF.mjs → useNotifications-P-1VQHi8.mjs} +3 -3
- package/dist/{usePermissions-DPIFes9l.mjs → usePermissions-nuWucbL_.mjs} +2 -2
- package/dist/{useRovingFocus-BLPMBFFW.mjs → useRovingFocus-BfbmLJoo.mjs} +9 -9
- package/dist/{useRules-2M0JbQHv.mjs → useRules-SLj8Le-M.mjs} +2 -2
- package/dist/{useStorage-CHx6ZSjw.mjs → useStorage-B4eV6lZZ.mjs} +3 -3
- package/dist/{useTheme-DqtxOIDJ.mjs → useTheme-SVM2VmlS.mjs} +6 -6
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +19 -4
- package/dist/{v0-D4InK1of.mjs → v0-BoEyw8RC.mjs} +1 -1
- package/dist/{v0-DXr8lzQK.mjs → v0-D5BwU_Up.mjs} +1 -1
- package/dist/{v0-Cf5DZ4lw.d.mts → v0-DcTsWvzJ.d.mts} +1 -1
- package/dist/{v0-KsDsXr6T.mjs → v0-gVrU_ObF.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as PermissionsAdapter } from "../v0-UNyykD27.mjs";
|
|
2
|
-
import { i as usePermissions, n as createPermissionsContext, r as createPermissionsPlugin, t as createPermissions } from "../usePermissions-
|
|
2
|
+
import { i as usePermissions, n as createPermissionsContext, r as createPermissionsPlugin, t as createPermissions } from "../usePermissions-nuWucbL_.mjs";
|
|
3
3
|
export { PermissionsAdapter, createPermissions, createPermissionsContext, createPermissionsPlugin, usePermissions };
|
package/dist/rules/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-
|
|
1
|
+
import { Ao as RulesOptions, Do as RuleInput, Eo as RuleAliases, Fo as useRules, Io as StandardSchemaV1, Lo as isStandardSchema, Mo as createRulesContext, No as createRulesFallback, Oo as RulesContext, Po as createRulesPlugin, To as RuleAlias, jo as createRules, ko as RulesContextOptions } from "../index-B5ybQyJO.mjs";
|
|
2
2
|
export { RuleAlias, RuleAliases, RuleInput, RulesContext, RulesContextOptions, RulesOptions, StandardSchemaV1, createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
package/dist/rules/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-
|
|
1
|
+
import { a as useRules, i as createRulesPlugin, n as createRulesContext, o as isStandardSchema, r as createRulesFallback, t as createRules } from "../useRules-SLj8Le-M.mjs";
|
|
2
2
|
export { createRules, createRulesContext, createRulesFallback, createRulesPlugin, isStandardSchema, useRules };
|
package/dist/storage/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as StoragePluginOptions, I as createStorage, L as createStorageContext, M as StorageContext, N as StorageContextOptions, P as StorageOptions, R as createStoragePlugin, z as useStorage } from "../index-
|
|
1
|
+
import { F as StoragePluginOptions, I as createStorage, L as createStorageContext, M as StorageContext, N as StorageContextOptions, P as StorageOptions, R as createStoragePlugin, z as useStorage } from "../index-B5ybQyJO.mjs";
|
|
2
2
|
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-DbyZeNjg.mjs";
|
|
3
3
|
import { t as StorageType } from "../index-DidZKN6S.mjs";
|
|
4
4
|
export { MemoryStorageAdapter, StorageAdapter, StorageContext, StorageContextOptions, StorageOptions, StoragePluginOptions, StorageType, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
package/dist/storage/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as StorageAdapter, t as MemoryStorageAdapter } from "../memory-BJjkQzxs.mjs";
|
|
2
|
-
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-
|
|
2
|
+
import { i as useStorage, n as createStorageContext, r as createStoragePlugin, t as createStorage } from "../useStorage-B4eV6lZZ.mjs";
|
|
3
3
|
export { MemoryStorageAdapter, StorageAdapter, createStorage, createStorageContext, createStoragePlugin, useStorage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as V0UnheadThemeAdapter, j as ThemeAdapter, k as V0StyleSheetThemeAdapter } from "../../index-
|
|
1
|
+
import { D as V0UnheadThemeAdapter, j as ThemeAdapter, k as V0StyleSheetThemeAdapter } from "../../index-B5ybQyJO.mjs";
|
|
2
2
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ThemeAdapter } from "../../adapter-
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../../unhead-
|
|
1
|
+
import { t as ThemeAdapter } from "../../adapter-lS_VpRow.mjs";
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../../v0-gVrU_ObF.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../../unhead-CAPMhSV7.mjs";
|
|
4
4
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as V0UnheadThemeAdapter, O as V0UnheadThemeOptions } from "../../../index-
|
|
1
|
+
import { D as V0UnheadThemeAdapter, O as V0UnheadThemeOptions } from "../../../index-B5ybQyJO.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter, V0UnheadThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0UnheadThemeAdapter } from "../../../unhead-
|
|
1
|
+
import { t as V0UnheadThemeAdapter } from "../../../unhead-CAPMhSV7.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Vuetify0ThemeOptions, k as V0StyleSheetThemeAdapter } from "../../../index-
|
|
1
|
+
import { A as Vuetify0ThemeOptions, k as V0StyleSheetThemeAdapter } from "../../../index-B5ybQyJO.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter, Vuetify0ThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0StyleSheetThemeAdapter } from "../../../v0-
|
|
1
|
+
import { t as V0StyleSheetThemeAdapter } from "../../../v0-gVrU_ObF.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter };
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as createTheme, D as V0UnheadThemeAdapter, E as useTheme, S as ThemeTicketInput, T as createThemePlugin, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, j as ThemeAdapter, k as V0StyleSheetThemeAdapter, m as Colors, v as ThemeOptions, w as createThemeContext, x as ThemeTicket, y as ThemePluginOptions } from "../index-
|
|
1
|
+
import { C as createTheme, D as V0UnheadThemeAdapter, E as useTheme, S as ThemeTicketInput, T as createThemePlugin, _ as ThemeContextOptions, b as ThemeRecord, g as ThemeContext, h as ThemeColors, j as ThemeAdapter, k as V0StyleSheetThemeAdapter, m as Colors, v as ThemeOptions, w as createThemeContext, x as ThemeTicket, y as ThemePluginOptions } from "../index-B5ybQyJO.mjs";
|
|
2
2
|
export { Colors, ThemeAdapter, ThemeColors, ThemeContext, ThemeContextOptions, ThemeOptions, ThemePluginOptions, ThemeRecord, ThemeTicket, ThemeTicketInput, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
package/dist/theme/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ThemeAdapter } from "../adapter-
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../unhead-
|
|
4
|
-
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-
|
|
1
|
+
import { t as ThemeAdapter } from "../adapter-lS_VpRow.mjs";
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../v0-gVrU_ObF.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../unhead-CAPMhSV7.mjs";
|
|
4
|
+
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-SVM2VmlS.mjs";
|
|
5
5
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-Djy_aCgG.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-lS_VpRow.mjs";
|
|
4
4
|
import { watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/unhead.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-Djy_aCgG.mjs";
|
|
2
2
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
3
3
|
import { onScopeDispose, toValue, unref, watch } from "vue";
|
|
4
4
|
//#region src/composables/useEventListener/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
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-bHW-Guij.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-BY_7TedA.mjs";
|
|
4
|
+
import { t as createGroup } from "./createGroup-DKVmhWJZ.mjs";
|
|
5
5
|
//#region src/composables/useFeatures/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module useFeatures
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { isNumber, isString } from "./utilities/index.mjs";
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-bHW-Guij.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-D08Et-36.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-BY_7TedA.mjs";
|
|
5
|
+
import { t as V0LocaleAdapter } from "./v0-BoEyw8RC.mjs";
|
|
5
6
|
//#region src/composables/useLocale/index.ts
|
|
6
7
|
/**
|
|
7
8
|
* @module useLocale
|
|
@@ -90,7 +91,9 @@ function createLocaleFallback() {
|
|
|
90
91
|
const [createLocaleContext, createLocalePlugin, useLocale] = createPluginContext("v0:locale", (options) => createLocale(options), {
|
|
91
92
|
fallback: () => createLocaleFallback(),
|
|
92
93
|
persist: (ctx) => ctx.selectedId.value,
|
|
93
|
-
restore: (ctx, saved) =>
|
|
94
|
+
restore: (ctx, saved) => {
|
|
95
|
+
if (/* @__PURE__ */ isString(saved) || /* @__PURE__ */ isNumber(saved)) ctx.select(saved);
|
|
96
|
+
}
|
|
94
97
|
});
|
|
95
98
|
//#endregion
|
|
96
99
|
export { useLocale as a, createLocalePlugin as i, createLocaleContext as n, createLocaleFallback as r, createLocale as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { s as __LOGGER_ENABLED__, t as IN_BROWSER } from "./globals-Djy_aCgG.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-
|
|
4
|
+
import { t as V0LoggerAdapter } from "./v0-D5BwU_Up.mjs";
|
|
5
5
|
import { hasInjectionContext, inject, watch } from "vue";
|
|
6
6
|
//#region src/composables/createPlugin/index.ts
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-Djy_aCgG.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-bHW-Guij.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-DaRYxox5.mjs";
|
|
6
6
|
import { onScopeDispose, shallowRef, toValue } from "vue";
|
|
7
7
|
//#region src/composables/useTimer/index.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UNSAFE_KEYS } from "./utilities/index.mjs";
|
|
2
|
-
import { o as createPluginContext } from "./useLogger-
|
|
3
|
-
import { t as createTokens } from "./createTokens-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-bHW-Guij.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-BY_7TedA.mjs";
|
|
4
4
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
5
5
|
import { t as V0PermissionsAdapter } from "./v0-UNyykD27.mjs";
|
|
6
6
|
//#region src/composables/usePermissions/index.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-Djy_aCgG.mjs";
|
|
2
2
|
import { clamp, instanceExists, isArray, isElement, isFunction, isNull, isNullOrUndefined, isObject, isString, isUndefined, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
3
3
|
import { i as useContext, 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-
|
|
4
|
+
import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-bHW-Guij.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-DaRYxox5.mjs";
|
|
6
|
+
import { i as createModel, t as createSelection } from "./createSelection-CZFfJnBv.mjs";
|
|
7
|
+
import { t as createSingle } from "./createSingle-D08Et-36.mjs";
|
|
8
8
|
import { t as toArray } from "./toArray-C89ZaEuF.mjs";
|
|
9
|
-
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-
|
|
10
|
-
import { t as createGroup } from "./createGroup-
|
|
11
|
-
import { c as useTimer } from "./useNotifications-
|
|
9
|
+
import { n as useEventListener, r as useWindowEventListener, t as useDocumentEventListener } from "./useEventListener-BtOsc1qg.mjs";
|
|
10
|
+
import { t as createGroup } from "./createGroup-DKVmhWJZ.mjs";
|
|
11
|
+
import { c as useTimer } from "./useNotifications-P-1VQHi8.mjs";
|
|
12
12
|
import { i as createFilter } from "./createPagination-B5dfqY-a.mjs";
|
|
13
|
-
import { a as useRules, o as isStandardSchema } from "./useRules-
|
|
13
|
+
import { a as useRules, o as isStandardSchema } from "./useRules-SLj8Le-M.mjs";
|
|
14
14
|
import { computed, effectScope, hasInjectionContext, isReadonly, isRef, nextTick, onMounted, onScopeDispose, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, watch } from "vue";
|
|
15
15
|
//#region src/composables/useClickOutside/index.ts
|
|
16
16
|
/**
|
|
@@ -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-bHW-Guij.mjs";
|
|
3
|
+
import { a as useLocale } from "./useLocale-AKOyyv43.mjs";
|
|
4
4
|
//#region src/composables/useRules/adapters/standard.ts
|
|
5
5
|
/**
|
|
6
6
|
* Type guard for Standard Schema objects.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-Djy_aCgG.mjs";
|
|
2
2
|
import { isArray, isNullOrUndefined, isObject } from "./utilities/index.mjs";
|
|
3
|
-
import { i as useLogger, o as createPluginContext } from "./useLogger-
|
|
4
|
-
import { r as useWindowEventListener } from "./useEventListener-
|
|
3
|
+
import { i as useLogger, o as createPluginContext } from "./useLogger-bHW-Guij.mjs";
|
|
4
|
+
import { r as useWindowEventListener } from "./useEventListener-BtOsc1qg.mjs";
|
|
5
5
|
import { t as MemoryStorageAdapter } from "./memory-BJjkQzxs.mjs";
|
|
6
6
|
import { ref, watch } from "vue";
|
|
7
7
|
//#region src/composables/useStorage/index.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
1
|
+
import { foreground, isNumber, isString } from "./utilities/index.mjs";
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-bHW-Guij.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-D08Et-36.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-BY_7TedA.mjs";
|
|
5
|
+
import { t as V0StyleSheetThemeAdapter } from "./v0-gVrU_ObF.mjs";
|
|
6
6
|
import { computed, shallowRef, toRef } from "vue";
|
|
7
7
|
//#region src/composables/useTheme/index.ts
|
|
8
8
|
/**
|
|
@@ -155,7 +155,7 @@ const [createThemeContext, createThemePlugin, useTheme] = createPluginContext("v
|
|
|
155
155
|
},
|
|
156
156
|
persist: (ctx) => ctx.selectedId.value,
|
|
157
157
|
restore: (ctx, saved) => {
|
|
158
|
-
if (
|
|
158
|
+
if (/* @__PURE__ */ isString(saved) || /* @__PURE__ */ isNumber(saved)) ctx.select(saved);
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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-u0Sy6Dif.mjs";
|
|
2
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-Djy_aCgG.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
@@ -472,6 +472,8 @@ let idCounter = 0;
|
|
|
472
472
|
* - In component setup/lifecycle: Uses Vue's `useId()` for SSR-safe hydration
|
|
473
473
|
* - Outside components: Falls back to sequential counter (`v0-0`, `v0-1`, ...)
|
|
474
474
|
* - Vapor mode compatible
|
|
475
|
+
* - IDs are sequential and predictable — intended for DOM `id`/ARIA wiring only.
|
|
476
|
+
* Never use them as security tokens (CSRF tokens, session ids, capabilities).
|
|
475
477
|
*
|
|
476
478
|
* @example
|
|
477
479
|
* ```ts
|
|
@@ -535,7 +537,12 @@ function range(length, start = 0) {
|
|
|
535
537
|
*/
|
|
536
538
|
/* @__NO_SIDE_EFFECTS__ */
|
|
537
539
|
function resolveIds(ids, getter) {
|
|
538
|
-
|
|
540
|
+
const result = [];
|
|
541
|
+
for (const id of ids) {
|
|
542
|
+
const item = getter(id);
|
|
543
|
+
if (!/* @__PURE__ */ isUndefined(item)) result.push(item);
|
|
544
|
+
}
|
|
545
|
+
return result;
|
|
539
546
|
}
|
|
540
547
|
/**
|
|
541
548
|
* Extracts defined index values from an iterable of items.
|
|
@@ -544,7 +551,12 @@ function resolveIds(ids, getter) {
|
|
|
544
551
|
*/
|
|
545
552
|
/* @__NO_SIDE_EFFECTS__ */
|
|
546
553
|
function resolveIndexes(items) {
|
|
547
|
-
|
|
554
|
+
const result = [];
|
|
555
|
+
for (const item of items) {
|
|
556
|
+
const index = item?.index;
|
|
557
|
+
if (!/* @__PURE__ */ isUndefined(index)) result.push(index);
|
|
558
|
+
}
|
|
559
|
+
return result;
|
|
548
560
|
}
|
|
549
561
|
//#endregion
|
|
550
562
|
//#region src/utilities/errors.ts
|
|
@@ -625,7 +637,10 @@ var V0Error = class extends Error {
|
|
|
625
637
|
const { cause, ...rest } = details;
|
|
626
638
|
super(message, /* @__PURE__ */ isUndefined(cause) ? void 0 : { cause });
|
|
627
639
|
this.code = details.code;
|
|
628
|
-
Object.
|
|
640
|
+
for (const [key, value] of Object.entries(rest)) {
|
|
641
|
+
if (UNSAFE_KEYS.has(key)) continue;
|
|
642
|
+
this[key] = value;
|
|
643
|
+
}
|
|
629
644
|
}
|
|
630
645
|
};
|
|
631
646
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-Djy_aCgG.mjs";
|
|
2
2
|
import { isObject, isString, isUndefined } from "./utilities/index.mjs";
|
|
3
3
|
import { t as LocaleAdapter } from "./adapter-bwZo7b5p.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-Djy_aCgG.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-Djy_aCgG.mjs";
|
|
2
2
|
import { isNull, isString } from "./utilities/index.mjs";
|
|
3
|
-
import { t as ThemeAdapter } from "./adapter-
|
|
3
|
+
import { t as ThemeAdapter } from "./adapter-lS_VpRow.mjs";
|
|
4
4
|
import { watch } from "vue";
|
|
5
5
|
//#region src/composables/useTheme/adapters/v0.ts
|
|
6
6
|
/**
|