@vuetify/v0 1.0.1 → 1.0.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/dist/browser/index.d.ts +405 -262
- package/dist/browser/index.js +551 -353
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/{components-BGEPbuSG.mjs → components-EPI-OV3g.mjs} +323 -211
- package/dist/composables/index.d.mts +1 -1
- package/dist/composables/index.mjs +21 -21
- package/dist/{composables-CfcQp7UD.mjs → composables-Ce3inP9P.mjs} +9 -9
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-BQKvmkfj.mjs → createDataTable-BnL2eb_0.mjs} +3 -3
- package/dist/{createGroup-63cIJS__.mjs → createGroup-CJjPnhGu.mjs} +1 -1
- package/dist/{createRegistry-DMIsLVfQ.mjs → createRegistry-BCyeTWME.mjs} +1 -1
- package/dist/{createSelection-BHnOqlJY.mjs → createSelection-MKYbRsRh.mjs} +1 -1
- package/dist/{createSingle-Rh6cR-G_.mjs → createSingle-BqTldaCh.mjs} +1 -1
- package/dist/{createTokens-BD-AGGzk.mjs → createTokens-1CBBjmzi.mjs} +2 -2
- 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.d.mts +1 -1
- package/dist/features/index.mjs +1 -1
- package/dist/{globals-CM2GpI-A.mjs → globals-BVulH1kl.mjs} +1 -1
- package/dist/{index-Bhzo6qwv.d.mts → index-0Wnlny_C.d.mts} +44 -0
- package/dist/{index-C0GDmRHJ.d.mts → index-DBm7uM6h.d.mts} +241 -162
- package/dist/{index-u0Sy6Dif.d.mts → index-DF0tMI2_.d.mts} +22 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +24 -24
- package/dist/json/attributes.json +12 -0
- package/dist/json/importMap.json +4 -0
- package/dist/json/tags.json +144 -47
- package/dist/json/web-types.json +243 -1
- package/dist/locale/adapters/index.mjs +1 -1
- package/dist/locale/adapters/v0/index.mjs +1 -1
- package/dist/locale/index.d.mts +1 -1
- package/dist/locale/index.mjs +2 -2
- package/dist/locale/messages/en/index.d.mts +1 -0
- package/dist/locale/messages/en/index.mjs +4 -1
- 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/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 +2 -2
- 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 +3 -3
- package/dist/{unhead-DVB3cg3m.mjs → unhead-OxL9-io3.mjs} +1 -1
- package/dist/{useEventListener-DO9cWwJS.mjs → useEventListener-DvBy0REl.mjs} +1 -1
- package/dist/{useFeatures-DYsDqjFv.mjs → useFeatures-BzLoyh-D.mjs} +3 -3
- package/dist/{useLocale-CIMTKTN0.mjs → useLocale-6nnyjL_b.mjs} +4 -4
- package/dist/{useLogger-eTRi_LkE.mjs → useLogger-SKBSf2Ry.mjs} +2 -2
- package/dist/{useNotifications-BWSWV7A6.mjs → useNotifications-CD7VNgfs.mjs} +3 -3
- package/dist/{usePermissions-QP0GIGdO.mjs → usePermissions-CT4nIEtD.mjs} +2 -2
- package/dist/{useRovingFocus-CK50J09j.mjs → useRovingFocus-DPa2z5II.mjs} +91 -25
- package/dist/{useRules-DhQuZ66P.mjs → useRules-DhN_Glen.mjs} +2 -2
- package/dist/{useStorage-Cs-eTm7F.mjs → useStorage-vwbN1KlV.mjs} +3 -3
- package/dist/{useTheme-oWWN_lkE.mjs → useTheme-HbZK7iGf.mjs} +4 -4
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +21 -1
- package/dist/{v0-DfAHWKPZ.mjs → v0-C2JHbe3R.mjs} +1 -1
- package/dist/{v0-BQDezfA9.mjs → v0-CvlDO4sB.mjs} +1 -1
- package/dist/{v0-SlPjHjDu.mjs → v0-D-N-Egmx.mjs} +1 -1
- package/package.json +25 -3
|
@@ -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-0Wnlny_C.mjs";
|
|
2
2
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as ThemeAdapter } from "../../adapter-lS_VpRow.mjs";
|
|
2
|
-
import { t as V0StyleSheetThemeAdapter } from "../../v0-
|
|
3
|
-
import { t as V0UnheadThemeAdapter } from "../../unhead-
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../../v0-C2JHbe3R.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../../unhead-OxL9-io3.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-0Wnlny_C.mjs";
|
|
2
2
|
export { V0UnheadThemeAdapter, V0UnheadThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0UnheadThemeAdapter } from "../../../unhead-
|
|
1
|
+
import { t as V0UnheadThemeAdapter } from "../../../unhead-OxL9-io3.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-0Wnlny_C.mjs";
|
|
2
2
|
export { V0StyleSheetThemeAdapter, Vuetify0ThemeOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as V0StyleSheetThemeAdapter } from "../../../v0-
|
|
1
|
+
import { t as V0StyleSheetThemeAdapter } from "../../../v0-C2JHbe3R.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-0Wnlny_C.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
1
|
import { t as ThemeAdapter } from "../adapter-lS_VpRow.mjs";
|
|
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-
|
|
2
|
+
import { t as V0StyleSheetThemeAdapter } from "../v0-C2JHbe3R.mjs";
|
|
3
|
+
import { t as V0UnheadThemeAdapter } from "../unhead-OxL9-io3.mjs";
|
|
4
|
+
import { i as useTheme, n as createThemeContext, r as createThemePlugin, t as createTheme } from "../useTheme-HbZK7iGf.mjs";
|
|
5
5
|
export { ThemeAdapter, V0StyleSheetThemeAdapter, V0UnheadThemeAdapter, createTheme, createThemeContext, createThemePlugin, useTheme };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BVulH1kl.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-SKBSf2Ry.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-1CBBjmzi.mjs";
|
|
4
|
+
import { t as createGroup } from "./createGroup-CJjPnhGu.mjs";
|
|
5
5
|
//#region src/composables/useFeatures/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @module useFeatures
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isNumber, isString } 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 V0LocaleAdapter } from "./v0-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-SKBSf2Ry.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-BqTldaCh.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-1CBBjmzi.mjs";
|
|
5
|
+
import { t as V0LocaleAdapter } from "./v0-D-N-Egmx.mjs";
|
|
6
6
|
//#region src/composables/useLocale/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* @module useLocale
|
|
@@ -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-BVulH1kl.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-CvlDO4sB.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-BVulH1kl.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-SKBSf2Ry.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-BCyeTWME.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-SKBSf2Ry.mjs";
|
|
3
|
+
import { t as createTokens } from "./createTokens-1CBBjmzi.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-
|
|
2
|
-
import { clamp, instanceExists, isArray, isElement, isFunction, isNull, isNullOrUndefined, isObject, isString, isUndefined, range, resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
|
|
1
|
+
import { a as SUPPORTS_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, t as IN_BROWSER } from "./globals-BVulH1kl.mjs";
|
|
2
|
+
import { clamp, instanceExists, isArray, isElement, isFunction, isNaN, 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-SKBSf2Ry.mjs";
|
|
5
|
+
import { t as createRegistry } from "./createRegistry-BCyeTWME.mjs";
|
|
6
|
+
import { i as createModel, t as createSelection } from "./createSelection-MKYbRsRh.mjs";
|
|
7
|
+
import { t as createSingle } from "./createSingle-BqTldaCh.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-DvBy0REl.mjs";
|
|
10
|
+
import { t as createGroup } from "./createGroup-CJjPnhGu.mjs";
|
|
11
|
+
import { c as useTimer } from "./useNotifications-CD7VNgfs.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-DhN_Glen.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
|
/**
|
|
@@ -927,6 +927,7 @@ function createObserver(target, userCallback, config) {
|
|
|
927
927
|
* - SSR-safe (checks SUPPORTS_OBSERVER)
|
|
928
928
|
* - Hydration-aware
|
|
929
929
|
* - Box model options (content-box/border-box)
|
|
930
|
+
* - Reports `borderBoxSize` and `contentBoxSize` alongside `contentRect`
|
|
930
931
|
*
|
|
931
932
|
* Perfect for responsive components and size-based rendering.
|
|
932
933
|
*
|
|
@@ -941,6 +942,66 @@ function createObserver(target, userCallback, config) {
|
|
|
941
942
|
* })
|
|
942
943
|
* ```
|
|
943
944
|
*/
|
|
945
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
946
|
+
function pxToNumber(value, fallback = 0) {
|
|
947
|
+
if (!/* @__PURE__ */ isString(value)) return fallback;
|
|
948
|
+
const parsed = Number.parseFloat(value);
|
|
949
|
+
return /* @__PURE__ */ isNaN(parsed) ? fallback : parsed;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Synthesize the entry the observer would report for `el`, for the `immediate`
|
|
953
|
+
* callback that fires before the observer's own first delivery.
|
|
954
|
+
*
|
|
955
|
+
* The box sizes come from `getComputedStyle` rather than
|
|
956
|
+
* `getBoundingClientRect` because resolved lengths are layout values — like the
|
|
957
|
+
* observer, and unlike a client rect, they are not scaled by CSS transforms.
|
|
958
|
+
* `contentRect` keeps its existing client-rect source so callers reading it see
|
|
959
|
+
* no change.
|
|
960
|
+
*
|
|
961
|
+
* Every read is written to tolerate a partial style declaration: an element
|
|
962
|
+
* with no layout box resolves its lengths to `''`, and this runs on whatever
|
|
963
|
+
* `getComputedStyle` returns.
|
|
964
|
+
*/
|
|
965
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
966
|
+
function measure(el) {
|
|
967
|
+
const rect = el.getBoundingClientRect();
|
|
968
|
+
const style = getComputedStyle(el);
|
|
969
|
+
const paddingX = /* @__PURE__ */ pxToNumber(style.paddingLeft) + /* @__PURE__ */ pxToNumber(style.paddingRight);
|
|
970
|
+
const paddingY = /* @__PURE__ */ pxToNumber(style.paddingTop) + /* @__PURE__ */ pxToNumber(style.paddingBottom);
|
|
971
|
+
const borderX = /* @__PURE__ */ pxToNumber(style.borderLeftWidth) + /* @__PURE__ */ pxToNumber(style.borderRightWidth);
|
|
972
|
+
const borderY = /* @__PURE__ */ pxToNumber(style.borderTopWidth) + /* @__PURE__ */ pxToNumber(style.borderBottomWidth);
|
|
973
|
+
const outer = style.boxSizing === "border-box";
|
|
974
|
+
const resolvedX = /* @__PURE__ */ pxToNumber(style.width, rect.width);
|
|
975
|
+
const resolvedY = /* @__PURE__ */ pxToNumber(style.height, rect.height);
|
|
976
|
+
const width = {
|
|
977
|
+
border: outer ? resolvedX : resolvedX + paddingX + borderX,
|
|
978
|
+
content: Math.max(0, outer ? resolvedX - paddingX - borderX : resolvedX)
|
|
979
|
+
};
|
|
980
|
+
const height = {
|
|
981
|
+
border: outer ? resolvedY : resolvedY + paddingY + borderY,
|
|
982
|
+
content: Math.max(0, outer ? resolvedY - paddingY - borderY : resolvedY)
|
|
983
|
+
};
|
|
984
|
+
const vertical = /* @__PURE__ */ isString(style.writingMode) && style.writingMode.startsWith("vertical");
|
|
985
|
+
const inline = vertical ? height : width;
|
|
986
|
+
const block = vertical ? width : height;
|
|
987
|
+
return {
|
|
988
|
+
contentRect: {
|
|
989
|
+
width: rect.width,
|
|
990
|
+
height: rect.height,
|
|
991
|
+
top: rect.top,
|
|
992
|
+
left: rect.left
|
|
993
|
+
},
|
|
994
|
+
borderBoxSize: [{
|
|
995
|
+
inlineSize: inline.border,
|
|
996
|
+
blockSize: block.border
|
|
997
|
+
}],
|
|
998
|
+
contentBoxSize: [{
|
|
999
|
+
inlineSize: inline.content,
|
|
1000
|
+
blockSize: block.content
|
|
1001
|
+
}],
|
|
1002
|
+
target: el
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
944
1005
|
/**
|
|
945
1006
|
* A composable that uses the Resize Observer API to detect when an element's
|
|
946
1007
|
* size changes.
|
|
@@ -981,6 +1042,15 @@ function createObserver(target, userCallback, config) {
|
|
|
981
1042
|
* // Resume observation
|
|
982
1043
|
* resume()
|
|
983
1044
|
* ```
|
|
1045
|
+
*
|
|
1046
|
+
* @example
|
|
1047
|
+
* Measuring the border box — padding and borders included:
|
|
1048
|
+
*
|
|
1049
|
+
* ```ts
|
|
1050
|
+
* useResizeObserver(el, ([entry]) => {
|
|
1051
|
+
* height.value = entry.borderBoxSize[0].blockSize
|
|
1052
|
+
* }, { box: 'border-box' })
|
|
1053
|
+
* ```
|
|
984
1054
|
*/
|
|
985
1055
|
function useResizeObserver(target, callback, options = {}) {
|
|
986
1056
|
return createObserver(target, callback, {
|
|
@@ -994,22 +1064,13 @@ function useResizeObserver(target, callback, options = {}) {
|
|
|
994
1064
|
top: e.contentRect.top,
|
|
995
1065
|
left: e.contentRect.left
|
|
996
1066
|
},
|
|
1067
|
+
borderBoxSize: e.borderBoxSize,
|
|
1068
|
+
contentBoxSize: e.contentBoxSize,
|
|
997
1069
|
target: e.target
|
|
998
1070
|
})));
|
|
999
1071
|
}),
|
|
1000
1072
|
observe: (obs, el) => obs.observe(el, { box: options.box ?? "content-box" }),
|
|
1001
|
-
immediate: options.immediate ? (el) =>
|
|
1002
|
-
const rect = el.getBoundingClientRect();
|
|
1003
|
-
return [{
|
|
1004
|
-
contentRect: {
|
|
1005
|
-
width: rect.width,
|
|
1006
|
-
height: rect.height,
|
|
1007
|
-
top: rect.top,
|
|
1008
|
-
left: rect.left
|
|
1009
|
-
},
|
|
1010
|
-
target: el
|
|
1011
|
-
}];
|
|
1012
|
-
} : void 0
|
|
1073
|
+
immediate: options.immediate ? (el) => [/* @__PURE__ */ measure(el)] : void 0
|
|
1013
1074
|
});
|
|
1014
1075
|
}
|
|
1015
1076
|
/**
|
|
@@ -1609,11 +1670,14 @@ function useProxyModel(context, model, options) {
|
|
|
1609
1670
|
}
|
|
1610
1671
|
const applyOptions = toValue(multiple) === toValue(context.multiple ?? false) ? void 0 : { multiple: toValue(multiple) };
|
|
1611
1672
|
const pending = /* @__PURE__ */ new Set();
|
|
1673
|
+
function deferred(value) {
|
|
1674
|
+
return !context.browse?.(value)?.length;
|
|
1675
|
+
}
|
|
1612
1676
|
function reconcile(values) {
|
|
1613
1677
|
context.apply(values, applyOptions);
|
|
1614
1678
|
const selected = new Set(context.selectedValues.value);
|
|
1615
1679
|
pending.clear();
|
|
1616
|
-
for (const value of values) if (!selected.has(value)) pending.add(value);
|
|
1680
|
+
for (const value of values) if (!selected.has(value) && deferred(value)) pending.add(value);
|
|
1617
1681
|
}
|
|
1618
1682
|
reconcile(transformIn(model));
|
|
1619
1683
|
let syncing = false;
|
|
@@ -1635,8 +1699,10 @@ function useProxyModel(context, model, options) {
|
|
|
1635
1699
|
syncing = true;
|
|
1636
1700
|
contextWatch.pause();
|
|
1637
1701
|
reconcile(transformIn(val));
|
|
1638
|
-
|
|
1639
|
-
|
|
1702
|
+
if (pending.size === 0) {
|
|
1703
|
+
const actual = transformOut(Array.from(context.selectedValues.value));
|
|
1704
|
+
if (!shallowEqual(val, actual)) model.value = actual;
|
|
1705
|
+
}
|
|
1640
1706
|
contextWatch.resume();
|
|
1641
1707
|
syncing = false;
|
|
1642
1708
|
}, {
|
|
@@ -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-SKBSf2Ry.mjs";
|
|
3
|
+
import { a as useLocale } from "./useLocale-6nnyjL_b.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-BVulH1kl.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-SKBSf2Ry.mjs";
|
|
4
|
+
import { r as useWindowEventListener } from "./useEventListener-DvBy0REl.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
1
|
import { foreground, isNumber, isString } 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-
|
|
2
|
+
import { o as createPluginContext } from "./useLogger-SKBSf2Ry.mjs";
|
|
3
|
+
import { t as createSingle } from "./createSingle-BqTldaCh.mjs";
|
|
4
|
+
import { r as flatten, t as createTokens } from "./createTokens-1CBBjmzi.mjs";
|
|
5
|
+
import { t as V0StyleSheetThemeAdapter } from "./v0-C2JHbe3R.mjs";
|
|
6
6
|
import { computed, shallowRef, toRef } from "vue";
|
|
7
7
|
//#region src/composables/useTheme/index.ts
|
|
8
8
|
/**
|
|
@@ -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-DF0tMI2_.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-BVulH1kl.mjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { useId as useId$1 } from "vue";
|
|
4
4
|
//#region src/utilities/color.ts
|
|
@@ -214,6 +214,11 @@ function isBoolean(item) {
|
|
|
214
214
|
* Returns false for null and arrays, even though `typeof null === 'object'`
|
|
215
215
|
* and `typeof [] === 'object'` in JavaScript.
|
|
216
216
|
*
|
|
217
|
+
* `Record<string, any>` is load-bearing: TypeScript does not grant interfaces
|
|
218
|
+
* an implicit index signature, so `Record<string, unknown>` destroys known
|
|
219
|
+
* property types on interface-typed values and fails to subtract
|
|
220
|
+
* `Record<string, any>` members in the negative branch.
|
|
221
|
+
*
|
|
217
222
|
* @example
|
|
218
223
|
* ```ts
|
|
219
224
|
* isObject({}) // true
|
|
@@ -265,6 +270,21 @@ function isThenable(item) {
|
|
|
265
270
|
* isArray([1, 2, 3]) // true
|
|
266
271
|
* isArray('string') // false
|
|
267
272
|
* ```
|
|
273
|
+
*
|
|
274
|
+
* @remarks The guard keeps whichever array constituents the input already had —
|
|
275
|
+
* element types, tuple arity and `readonly` all survive, and the `else` branch
|
|
276
|
+
* drops exactly those constituents. Three branches, in order:
|
|
277
|
+
*
|
|
278
|
+
* 1. `0 extends (1 & T)` detects an `any` input and yields `T[]` (`any[]`),
|
|
279
|
+
* matching `Array.isArray` so callback parameters stay contextually typed.
|
|
280
|
+
* 2. Nothing array-shaped to extract (an `unknown` value, say) falls back to
|
|
281
|
+
* `unknown[]`, reproducing the previous narrowing so mutation and assignment
|
|
282
|
+
* to `unknown[]` keep compiling.
|
|
283
|
+
* 3. Otherwise the array constituents of `T` pass through untouched.
|
|
284
|
+
*
|
|
285
|
+
* `NoInfer<T[]>` widens the parameter just enough for TypeScript to accept the
|
|
286
|
+
* first branch (a predicate must be assignable to its parameter's type) without
|
|
287
|
+
* letting an array argument capture the inference site.
|
|
268
288
|
*/
|
|
269
289
|
/* @__NO_SIDE_EFFECTS__ */
|
|
270
290
|
function isArray(item) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BVulH1kl.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,4 +1,4 @@
|
|
|
1
|
-
import { t as IN_BROWSER } from "./globals-
|
|
1
|
+
import { t as IN_BROWSER } from "./globals-BVulH1kl.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
|
package/package.json
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuetify/v0",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Headless, unstyled, accessible Vue 3 primitives and composables — a meta UI framework for building applications, component libraries, and design systems",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"vue",
|
|
7
|
+
"vue3",
|
|
8
|
+
"headless",
|
|
9
|
+
"headless-ui",
|
|
10
|
+
"unstyled",
|
|
11
|
+
"composables",
|
|
12
|
+
"primitives",
|
|
13
|
+
"accessible",
|
|
14
|
+
"accessibility",
|
|
15
|
+
"a11y",
|
|
16
|
+
"wai-aria",
|
|
17
|
+
"design-system",
|
|
18
|
+
"component-library",
|
|
19
|
+
"ui",
|
|
20
|
+
"vuetify"
|
|
21
|
+
],
|
|
22
|
+
"homepage": "https://0.vuetifyjs.com",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://issues.vuetifyjs.com/?repo=vuetify0&type=bug"
|
|
25
|
+
},
|
|
5
26
|
"license": "MIT",
|
|
6
27
|
"funding": [
|
|
7
28
|
{
|
|
@@ -33,7 +54,7 @@
|
|
|
33
54
|
"@material/material-color-utilities": ">=0.3.0",
|
|
34
55
|
"launchdarkly-js-client-sdk": "^3.0.0",
|
|
35
56
|
"posthog-js": "^1.0.0",
|
|
36
|
-
"vue": ">=3.5.0",
|
|
57
|
+
"vue": ">=3.5.0 || >=3.6.0-0",
|
|
37
58
|
"vue-i18n": ">=10.0.0"
|
|
38
59
|
},
|
|
39
60
|
"peerDependenciesMeta": {
|
|
@@ -72,6 +93,7 @@
|
|
|
72
93
|
"@vitest/browser-playwright": "4.1.10",
|
|
73
94
|
"@vue/compiler-dom": "^3.5.39",
|
|
74
95
|
"@vue/test-utils": "^2.4.11",
|
|
96
|
+
"axe-core": "^4.12.1",
|
|
75
97
|
"launchdarkly-js-client-sdk": "^3.9.3",
|
|
76
98
|
"posthog-js": "^1.398.0",
|
|
77
99
|
"tsdown": "^0.21.10",
|