@vuetify/v0 1.0.3 → 1.0.5

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.
Files changed (73) hide show
  1. package/dist/adapter-BCtceV3b.mjs +66 -0
  2. package/dist/{adapter-C5F2huij.d.mts → adapter-Bc0yPSfo.d.mts} +6 -1
  3. package/dist/browser/index.d.ts +23 -7
  4. package/dist/browser/index.js +163 -73
  5. package/dist/components/index.d.mts +1 -1
  6. package/dist/components/index.mjs +1 -1
  7. package/dist/{components-CeyYdes9.mjs → components-OCsY4P1f.mjs} +50 -16
  8. package/dist/composables/index.d.mts +2 -2
  9. package/dist/composables/index.mjs +22 -22
  10. package/dist/{composables-Br-ApSWN.mjs → composables-xhcxXjuE.mjs} +44 -65
  11. package/dist/constants/index.mjs +1 -1
  12. package/dist/{createDataTable-B1uf_rZu.mjs → createDataTable-D38H0Zbp.mjs} +3 -3
  13. package/dist/{createGroup-Czt0x8tf.mjs → createGroup-CjUHFae5.mjs} +1 -1
  14. package/dist/{createRegistry-Cu1WQTyV.mjs → createRegistry-B8VqA-QF.mjs} +1 -1
  15. package/dist/{createSelection-kydb14hZ.mjs → createSelection-BXd5clS0.mjs} +1 -1
  16. package/dist/{createSingle-JWAjGQLk.mjs → createSingle-Bdkfht_B.mjs} +1 -1
  17. package/dist/{createTokens-BD7p5_XB.mjs → createTokens-vgyk_0vA.mjs} +2 -2
  18. package/dist/data-table/index.mjs +1 -1
  19. package/dist/date/index.d.mts +2 -2
  20. package/dist/date/index.mjs +7 -36
  21. package/dist/features/adapters/posthog/index.mjs +1 -1
  22. package/dist/features/index.d.mts +1 -1
  23. package/dist/features/index.mjs +1 -1
  24. package/dist/{globals-XB8xcQFv.mjs → globals-B7ejLnrz.mjs} +1 -1
  25. package/dist/{index-0Wnlny_C.d.mts → index-CrAgM2EJ.d.mts} +5 -3
  26. package/dist/{index-BS_OGRsE.d.mts → index-DY81ptHb.d.mts} +112 -103
  27. package/dist/index.d.mts +3 -3
  28. package/dist/index.mjs +24 -24
  29. package/dist/json/web-types.json +1 -1
  30. package/dist/locale/adapters/index.mjs +1 -1
  31. package/dist/locale/adapters/v0/index.mjs +1 -1
  32. package/dist/locale/index.d.mts +1 -1
  33. package/dist/locale/index.mjs +2 -2
  34. package/dist/logger/adapters/index.mjs +1 -1
  35. package/dist/logger/adapters/v0/index.mjs +1 -1
  36. package/dist/logger/index.d.mts +1 -1
  37. package/dist/logger/index.mjs +2 -2
  38. package/dist/notifications/index.d.mts +1 -1
  39. package/dist/notifications/index.mjs +2 -2
  40. package/dist/palettes/index.d.mts +1 -1
  41. package/dist/permissions/adapters/index.d.mts +1 -1
  42. package/dist/permissions/adapters/v0/index.d.mts +1 -1
  43. package/dist/permissions/index.d.mts +1 -1
  44. package/dist/permissions/index.mjs +1 -1
  45. package/dist/rules/index.d.mts +1 -1
  46. package/dist/rules/index.mjs +1 -1
  47. package/dist/storage/index.d.mts +1 -1
  48. package/dist/storage/index.mjs +1 -1
  49. package/dist/theme/adapters/index.d.mts +1 -1
  50. package/dist/theme/adapters/index.mjs +2 -2
  51. package/dist/theme/adapters/unhead/index.d.mts +1 -1
  52. package/dist/theme/adapters/unhead/index.mjs +1 -1
  53. package/dist/theme/adapters/v0/index.d.mts +1 -1
  54. package/dist/theme/adapters/v0/index.mjs +1 -1
  55. package/dist/theme/index.d.mts +1 -1
  56. package/dist/theme/index.mjs +3 -3
  57. package/dist/{unhead-VVWCVv5Z.mjs → unhead-DxiB3P5p.mjs} +1 -1
  58. package/dist/{useEventListener-DasgNSNh.mjs → useEventListener-BjWJPfYS.mjs} +1 -1
  59. package/dist/{useFeatures-SX-DoCwv.mjs → useFeatures-DcgU66KC.mjs} +3 -3
  60. package/dist/{useLocale-C8E7B4Il.mjs → useLocale-B2BAEieU.mjs} +4 -4
  61. package/dist/{useLogger-pEmKLFsd.mjs → useLogger-CXKIZhks.mjs} +2 -2
  62. package/dist/{useNotifications-C6xFiQsD.mjs → useNotifications-Czgbh8Ns.mjs} +3 -3
  63. package/dist/{usePermissions-CCA_18Be.mjs → usePermissions-BkndJNpk.mjs} +2 -2
  64. package/dist/{useRovingFocus-D2_aApXC.mjs → useRovingFocus-Cn96TXRw.mjs} +37 -21
  65. package/dist/{useRules-CWWsE2Xt.mjs → useRules-NzJChxfk.mjs} +2 -2
  66. package/dist/{useStorage-Dd_snxwm.mjs → useStorage-D6xihSHv.mjs} +3 -3
  67. package/dist/{useTheme-8qFLgTvi.mjs → useTheme-BuXEQdPz.mjs} +4 -4
  68. package/dist/utilities/index.mjs +1 -1
  69. package/dist/{v0-DYG-2UmI.mjs → v0-BFMaRqAx.mjs} +1 -1
  70. package/dist/{v0-Bdm1oHXK.mjs → v0-eZcJPyii.mjs} +1 -1
  71. package/dist/{v0-BLhsLm61.mjs → v0-gU93DxmF.mjs} +1 -1
  72. package/package.json +1 -1
  73. package/dist/adapter-Cy7wXVFe.mjs +0 -4
@@ -1,15 +1,16 @@
1
- import { i as SUPPORTS_MUTATION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, t as IN_BROWSER } from "./globals-XB8xcQFv.mjs";
1
+ import { i as SUPPORTS_MUTATION_OBSERVER, r as SUPPORTS_MATCH_MEDIA, t as IN_BROWSER } from "./globals-B7ejLnrz.mjs";
2
2
  import { V0Error, clamp, instanceExists, isArray, isBoolean, isElement, isFunction, isNaN, isNull, isNullOrUndefined, isNumber, isString, isThenable, isUndefined, mergeDeep, 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-pEmKLFsd.mjs";
5
- import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
6
- import { i as createModel } from "./createSelection-kydb14hZ.mjs";
7
- import { a as useLocale } from "./useLocale-C8E7B4Il.mjs";
4
+ import { a as createPlugin, i as useLogger, o as createPluginContext } from "./useLogger-CXKIZhks.mjs";
5
+ import { t as createRegistry } from "./createRegistry-B8VqA-QF.mjs";
6
+ import { i as createModel } from "./createSelection-BXd5clS0.mjs";
7
+ import { a as useLocale } from "./useLocale-B2BAEieU.mjs";
8
8
  import { t as toArray } from "./toArray-C89ZaEuF.mjs";
9
- import { n as useEventListener, r as useWindowEventListener } from "./useEventListener-DasgNSNh.mjs";
10
- import { J as useResizeObserver, M as ComboboxAdapter, Y as createObserver, b as createInput, et as useHydration, tt as useToggleScope } from "./useRovingFocus-D2_aApXC.mjs";
11
- import { i as useProxyRegistry, t as createGroup } from "./createGroup-Czt0x8tf.mjs";
12
- import { a as extractLeaves, t as createDataTable } from "./createDataTable-B1uf_rZu.mjs";
9
+ import { n as useEventListener, r as useWindowEventListener } from "./useEventListener-BjWJPfYS.mjs";
10
+ import { J as useResizeObserver, M as ComboboxAdapter, Y as createObserver, b as createInput, et as useHydration, tt as useToggleScope } from "./useRovingFocus-Cn96TXRw.mjs";
11
+ import { i as useProxyRegistry, t as createGroup } from "./createGroup-CjUHFae5.mjs";
12
+ import { a as extractLeaves, t as createDataTable } from "./createDataTable-D38H0Zbp.mjs";
13
+ import { n as deriveWeekInfo } from "./adapter-BCtceV3b.mjs";
13
14
  import { computed, effectScope, isRef, onScopeDispose, onWatcherCleanup, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRef, toValue, unref, watch, watchEffect } from "vue";
14
15
  //#region src/composables/createCombobox/adapters/server.ts
15
16
  /**
@@ -2386,19 +2387,6 @@ const defaultLocales = {
2386
2387
  ar: "ar-SA"
2387
2388
  };
2388
2389
  /**
2389
- * Derive firstDayOfWeek from an Intl locale string.
2390
- * Returns 0-6 (0=Sun) or 0 as fallback.
2391
- */
2392
- function deriveFirstDayOfWeek(locale) {
2393
- try {
2394
- const info = new Intl.Locale(locale).getWeekInfo?.();
2395
- /* v8 ignore next -- defensive: getWeekInfo always returns info in Node 22+ */
2396
- return info ? info.firstDay % 7 : 0;
2397
- } catch {
2398
- return 0;
2399
- }
2400
- }
2401
- /**
2402
2390
  * Creates a new date context.
2403
2391
  *
2404
2392
  * @param options Adapter and locale configuration.
@@ -2440,7 +2428,7 @@ function createDate(options) {
2440
2428
  const firstDayOfWeek = computed(() => {
2441
2429
  if (!/* @__PURE__ */ isUndefined(explicitFirstDay)) return explicitFirstDay;
2442
2430
  const loc = locale.value;
2443
- return loc ? deriveFirstDayOfWeek(loc) : 0;
2431
+ return loc ? (/* @__PURE__ */ deriveWeekInfo(loc)).firstDay : 0;
2444
2432
  });
2445
2433
  if (/* @__PURE__ */ instanceExists()) onScopeDispose(watchEffect(() => {
2446
2434
  const loc = locale.value;
@@ -2962,6 +2950,10 @@ var KeyboardAdapter = class extends DragDropAdapter {
2962
2950
  * Pure math for resolving where in an oriented zone a pointer would drop.
2963
2951
  * Internal — consumers rely on the `position.index` / `position.indicator`
2964
2952
  * fields delivered to `onDrop`.
2953
+ *
2954
+ * Assumes rects ascend along the axis (DOM order in normal flow). Reversed
2955
+ * layouts resolve arbitrary slots — always have — and sorting is not the fix:
2956
+ * the slot must stay the child's DOM index for consumers to splice by.
2965
2957
  */
2966
2958
  function resolveDropPosition(point, rects, orientation) {
2967
2959
  if (rects.length === 0) return null;
@@ -2969,49 +2961,19 @@ function resolveDropPosition(point, rects, orientation) {
2969
2961
  const start = orientation === "vertical" ? "top" : "left";
2970
2962
  const end = orientation === "vertical" ? "bottom" : "right";
2971
2963
  const coord = point[axis];
2972
- if (coord < rects[0][start]) return {
2973
- index: 0,
2964
+ let index = rects.length;
2965
+ for (const [at, rect] of rects.entries()) if (coord < rect[start] + (rect[end] - rect[start]) / 2) {
2966
+ index = at;
2967
+ break;
2968
+ }
2969
+ return index === 0 ? {
2970
+ index,
2974
2971
  edge: "before",
2975
2972
  rect: rects[0]
2976
- };
2977
- const last = rects.at(-1);
2978
- if (coord > last[end]) return {
2979
- index: rects.length,
2973
+ } : {
2974
+ index,
2980
2975
  edge: "after",
2981
- rect: last
2982
- };
2983
- for (const [index, rect] of rects.entries()) if (coord >= rect[start] && coord <= rect[end]) {
2984
- if (coord < rect[start] + (rect[end] - rect[start]) / 2) return {
2985
- index,
2986
- edge: "before",
2987
- rect
2988
- };
2989
- return {
2990
- index: index + 1,
2991
- edge: "after",
2992
- rect
2993
- };
2994
- }
2995
- for (let index = 0; index < rects.length - 1; index++) {
2996
- const a = rects[index];
2997
- const b = rects[index + 1];
2998
- if (coord > a[end] && coord < b[start]) {
2999
- if (coord <= (a[end] + b[start]) / 2) return {
3000
- index: index + 1,
3001
- edge: "after",
3002
- rect: a
3003
- };
3004
- return {
3005
- index: index + 1,
3006
- edge: "before",
3007
- rect: b
3008
- };
3009
- }
3010
- }
3011
- return {
3012
- index: rects.length,
3013
- edge: "after",
3014
- rect: last
2976
+ rect: rects[index - 1]
3015
2977
  };
3016
2978
  }
3017
2979
  /**
@@ -3124,7 +3086,11 @@ function useDragDrop(options = {}) {
3124
3086
  });
3125
3087
  const indicator = computed(() => {
3126
3088
  if (!registration.orientation || !isOver.value || !active.value) return null;
3127
- return resolveDropPosition(active.value.current, rects.value, registration.orientation);
3089
+ const resolved = resolveDropPosition(active.value.current, rects.value, registration.orientation);
3090
+ if (!resolved) return null;
3091
+ const from = home(el.value, active.value.id);
3092
+ if (from !== -1 && (resolved.index === from || resolved.index === from + 1)) return null;
3093
+ return resolved;
3128
3094
  });
3129
3095
  const input = {
3130
3096
  ...registration,
@@ -3150,6 +3116,16 @@ function useDragDrop(options = {}) {
3150
3116
  }
3151
3117
  return null;
3152
3118
  }
3119
+ function home(zoneEl, id) {
3120
+ const source = toValue(_draggables.get(id)?.el);
3121
+ if (!zoneEl || !source) return -1;
3122
+ for (let el = source.parentElement; el; el = el.parentElement) {
3123
+ if (!nodes.has(el)) continue;
3124
+ if (el !== zoneEl) return -1;
3125
+ break;
3126
+ }
3127
+ return Array.from(zoneEl.children).findIndex((child) => child.contains(source));
3128
+ }
3153
3129
  function position(zoneId, drag) {
3154
3130
  const zone = _zones.get(zoneId);
3155
3131
  const out = { pointer: drag.current };
@@ -3158,7 +3134,10 @@ function useDragDrop(options = {}) {
3158
3134
  if (resolved) {
3159
3135
  out.index = resolved.index;
3160
3136
  out.indicator = resolved;
3161
- } else out.index = 0;
3137
+ } else {
3138
+ const from = home(toValue(zone.el), drag.id);
3139
+ out.index = from === -1 ? 0 : from;
3140
+ }
3162
3141
  }
3163
3142
  return out;
3164
3143
  }
@@ -1,3 +1,3 @@
1
1
  import { n as isSelfClosingTag, t as SELF_CLOSING_TAGS } from "../htmlElements-CHXZfsZu.mjs";
2
- import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-XB8xcQFv.mjs";
2
+ import { a as SUPPORTS_OBSERVER, c as version, i as SUPPORTS_MUTATION_OBSERVER, n as SUPPORTS_INTERSECTION_OBSERVER, o as SUPPORTS_TOUCH, r as SUPPORTS_MATCH_MEDIA, s as __LOGGER_ENABLED__, t as IN_BROWSER } from "../globals-B7ejLnrz.mjs";
3
3
  export { IN_BROWSER, SELF_CLOSING_TAGS, SUPPORTS_INTERSECTION_OBSERVER, SUPPORTS_MATCH_MEDIA, SUPPORTS_MUTATION_OBSERVER, SUPPORTS_OBSERVER, SUPPORTS_TOUCH, __LOGGER_ENABLED__, isSelfClosingTag, version };
@@ -1,8 +1,8 @@
1
1
  import { isNullOrUndefined } from "./utilities/index.mjs";
2
2
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
3
- import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
4
- import { a as useLocale } from "./useLocale-C8E7B4Il.mjs";
5
- import { i as useProxyRegistry, t as createGroup } from "./createGroup-Czt0x8tf.mjs";
3
+ import { t as createRegistry } from "./createRegistry-B8VqA-QF.mjs";
4
+ import { a as useLocale } from "./useLocale-B2BAEieU.mjs";
5
+ import { i as useProxyRegistry, t as createGroup } from "./createGroup-CjUHFae5.mjs";
6
6
  import { t as ClientDataTableAdapter } from "./v0-A4GLojAr.mjs";
7
7
  import { computed, shallowReactive, shallowReadonly, shallowRef, toRef, watch } from "vue";
8
8
  //#region src/composables/createDataTable/columns.ts
@@ -1,6 +1,6 @@
1
1
  import { resolveIds, resolveIndexes, useId as useId$1 } from "./utilities/index.mjs";
2
2
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
3
- import { t as createSelection } from "./createSelection-kydb14hZ.mjs";
3
+ import { t as createSelection } from "./createSelection-BXd5clS0.mjs";
4
4
  import { t as toArray } from "./toArray-C89ZaEuF.mjs";
5
5
  import { computed, onScopeDispose, reactive, shallowReactive, shallowRef, toRef, toValue } from "vue";
6
6
  //#region src/composables/useProxyRegistry/index.ts
@@ -1,6 +1,6 @@
1
1
  import { clamp, isNullOrUndefined, isUndefined, useId as useId$1 } from "./utilities/index.mjs";
2
2
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
3
- import { i as useLogger } from "./useLogger-pEmKLFsd.mjs";
3
+ import { i as useLogger } from "./useLogger-CXKIZhks.mjs";
4
4
  import { shallowReactive, shallowRef } from "vue";
5
5
  //#region src/composables/createRegistry/index.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { isUndefined, resolveIds, useId as useId$1 } from "./utilities/index.mjs";
2
2
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
3
- import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
3
+ import { t as createRegistry } from "./createRegistry-B8VqA-QF.mjs";
4
4
  import { computed, isRef, shallowReactive, toRaw, toRef, toValue } from "vue";
5
5
  //#region src/composables/createModel/index.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
2
- import { t as createSelection } from "./createSelection-kydb14hZ.mjs";
2
+ import { t as createSelection } from "./createSelection-BXd5clS0.mjs";
3
3
  import { toRef } from "vue";
4
4
  //#region src/composables/createSingle/index.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { UNSAFE_KEYS, isObject, isString, isUndefined } from "./utilities/index.mjs";
2
2
  import { i as useContext, t as createTrinity } from "./createTrinity-z-3q9QWR.mjs";
3
- import { i as useLogger } from "./useLogger-pEmKLFsd.mjs";
4
- import { t as createRegistry } from "./createRegistry-Cu1WQTyV.mjs";
3
+ import { i as useLogger } from "./useLogger-CXKIZhks.mjs";
4
+ import { t as createRegistry } from "./createRegistry-B8VqA-QF.mjs";
5
5
  //#region src/composables/createTokens/index.ts
6
6
  /**
7
7
  * @module createTokens
@@ -1,6 +1,6 @@
1
1
  import { t as DataTableAdapter } from "../adapter-CVoWg0sw.mjs";
2
2
  import { t as ClientDataTableAdapter } from "../v0-A4GLojAr.mjs";
3
- import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-B1uf_rZu.mjs";
3
+ import { a as extractLeaves, i as computeDepth, n as createDataTableContext, o as resolveHeaders, r as useDataTable, t as createDataTable } from "../createDataTable-D38H0Zbp.mjs";
4
4
  import { t as ServerDataTableAdapter } from "../server-D5BJBjB0.mjs";
5
5
  import { t as VirtualDataTableAdapter } from "../virtual-DFvOoeG6.mjs";
6
6
  export { ClientDataTableAdapter, DataTableAdapter, ServerDataTableAdapter, VirtualDataTableAdapter, computeDepth, createDataTable, createDataTableContext, extractLeaves, resolveHeaders, useDataTable };
@@ -1,4 +1,4 @@
1
- import { t as DateAdapter } from "../adapter-C5F2huij.mjs";
1
+ import { t as DateAdapter } from "../adapter-Bc0yPSfo.mjs";
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
 
4
4
  //#region src/composables/useDate/adapters/v0.d.ts
@@ -106,7 +106,7 @@ declare class V0DateAdapter extends DateAdapter<PlainDateTime> {
106
106
  setMinutes(date: PlainDateTime, minutes: number): PlainDateTime;
107
107
  setSeconds(date: PlainDateTime, seconds: number): PlainDateTime;
108
108
  getWeekdays(format?: 'long' | 'short' | 'narrow'): string[];
109
- getWeekArray(date: PlainDateTime): PlainDateTime[][];
109
+ getWeekArray(date: PlainDateTime, fixedWeeks?: boolean): PlainDateTime[][];
110
110
  getMonthArray(date: PlainDateTime): PlainDateTime[];
111
111
  getYearRange(start: PlainDateTime, end: PlainDateTime): PlainDateTime[];
112
112
  getNextMonth(date: PlainDateTime): PlainDateTime;
@@ -1,6 +1,6 @@
1
- import { t as IN_BROWSER } from "../globals-XB8xcQFv.mjs";
2
- import { isFunction, isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
3
- import { t as DateAdapter } from "../adapter-Cy7wXVFe.mjs";
1
+ import { t as IN_BROWSER } from "../globals-B7ejLnrz.mjs";
2
+ import { isNull, isNullOrUndefined, isNumber, isString } from "../utilities/index.mjs";
3
+ import { n as deriveWeekInfo, t as DateAdapter } from "../adapter-BCtceV3b.mjs";
4
4
  import { Temporal } from "@js-temporal/polyfill";
5
5
  //#region src/composables/useDate/adapters/v0.ts
6
6
  /**
@@ -26,35 +26,6 @@ const Temporal$1 = globalThis.Temporal ?? Temporal;
26
26
  const FORMAT_TOKEN_REGEX = /YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|m|ss|s|A|a/g;
27
27
  /** Maximum cache size to prevent memory leaks */
28
28
  const MAX_CACHE_SIZE = 50;
29
- /**
30
- * Derive week info from locale.
31
- *
32
- * Uses Intl.Locale.getWeekInfo() when available, with a hardcoded
33
- * fallback table for minimalDays (not available in all runtimes).
34
- * Data sourced from CLDR via Intl.Locale.getWeekInfo() spec.
35
- */
36
- function deriveWeekInfo(locale) {
37
- try {
38
- const loc = new Intl.Locale(locale);
39
- /* v8 ignore next -- Intl.Locale.getWeekInfo always present in Node 22+, .weekInfo fallback is for legacy runtimes */
40
- const info = /* @__PURE__ */ isFunction(loc.getWeekInfo) ? loc.getWeekInfo() : loc.weekInfo;
41
- return {
42
- firstDay: info?.firstDay === 7 ? 0 : info?.firstDay ?? 0,
43
- minimalDays: info?.minimalDays ?? deriveMinimalDays(locale)
44
- };
45
- } catch {
46
- return {
47
- firstDay: 0,
48
- minimalDays: 1
49
- };
50
- }
51
- }
52
- /** Fallback minimalDays lookup when Intl.Locale doesn't provide it */
53
- function deriveMinimalDays(locale) {
54
- const code = locale.slice(-2).toUpperCase();
55
- if ("AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS IT LI LT LU MC MQ NL NO PL PT RE RU SE SK SM VA".includes(code)) return 4;
56
- return 1;
57
- }
58
29
  var V0DateAdapter = class extends DateAdapter {
59
30
  _locale;
60
31
  _firstDayOfWeek = 0;
@@ -66,7 +37,7 @@ var V0DateAdapter = class extends DateAdapter {
66
37
  constructor(locale = "en-US") {
67
38
  super();
68
39
  this._locale = locale;
69
- const info = deriveWeekInfo(locale);
40
+ const info = /* @__PURE__ */ deriveWeekInfo(locale);
70
41
  this._firstDayOfWeek = info.firstDay;
71
42
  this._minimalDays = info.minimalDays;
72
43
  }
@@ -80,7 +51,7 @@ var V0DateAdapter = class extends DateAdapter {
80
51
  set locale(value) {
81
52
  if (this._locale !== value) {
82
53
  this._locale = value;
83
- const info = deriveWeekInfo(value);
54
+ const info = /* @__PURE__ */ deriveWeekInfo(value);
84
55
  this._firstDayOfWeek = info.firstDay;
85
56
  this._minimalDays = info.minimalDays;
86
57
  this.formatCache.clear();
@@ -550,13 +521,13 @@ var V0DateAdapter = class extends DateAdapter {
550
521
  }
551
522
  return weekdays;
552
523
  }
553
- getWeekArray(date) {
524
+ getWeekArray(date, fixedWeeks = false) {
554
525
  const weeks = [];
555
526
  const monthStart = this.startOfMonth(date);
556
527
  const monthEnd = this.endOfMonth(date);
557
528
  let current = this.startOfWeek(monthStart);
558
529
  const end = this.endOfWeek(monthEnd);
559
- while (Temporal$1.PlainDateTime.compare(current, end) <= 0) {
530
+ while (Temporal$1.PlainDateTime.compare(current, end) <= 0 || fixedWeeks && weeks.length < 6) {
560
531
  const week = [];
561
532
  for (let i = 0; i < 7; i++) {
562
533
  week.push(current);
@@ -1,4 +1,4 @@
1
- import { t as IN_BROWSER } from "../../../globals-XB8xcQFv.mjs";
1
+ import { t as IN_BROWSER } from "../../../globals-B7ejLnrz.mjs";
2
2
  import { UNSAFE_KEYS, isBoolean, isNullOrUndefined } from "../../../utilities/index.mjs";
3
3
  import { t as FeaturesAdapter } from "../../../adapter-CTsckKAR.mjs";
4
4
  //#region src/composables/useFeatures/adapters/posthog.ts
@@ -1,3 +1,3 @@
1
- import { _r as createFeatures, br as useFeatures, dr as FeatureContext, fr as FeatureContextOptions, gr as FeatureTicketInput, hr as FeatureTicket, mr as FeaturePluginOptions, pr as FeatureOptions, vr as createFeaturesContext, yr as createFeaturesPlugin } from "../index-0Wnlny_C.mjs";
1
+ import { _r as createFeatures, br as useFeatures, dr as FeatureContext, fr as FeatureContextOptions, gr as FeatureTicketInput, hr as FeatureTicket, mr as FeaturePluginOptions, pr as FeatureOptions, vr as createFeaturesContext, yr as createFeaturesPlugin } from "../index-CrAgM2EJ.mjs";
2
2
  import { n as FeaturesAdapterFlags, r as FeaturesAdapterValue, t as FeaturesAdapter } from "../adapter-Butx_2UU.mjs";
3
3
  export { FeatureContext, FeatureContextOptions, FeatureOptions, FeaturePluginOptions, FeatureTicket, FeatureTicketInput, FeaturesAdapter, FeaturesAdapterFlags, FeaturesAdapterValue, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
@@ -1,3 +1,3 @@
1
1
  import { t as FeaturesAdapter } from "../adapter-CTsckKAR.mjs";
2
- import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-SX-DoCwv.mjs";
2
+ import { i as useFeatures, n as createFeaturesContext, r as createFeaturesPlugin, t as createFeatures } from "../useFeatures-DcgU66KC.mjs";
3
3
  export { FeaturesAdapter, createFeatures, createFeaturesContext, createFeaturesPlugin, useFeatures };
@@ -5,7 +5,7 @@ const SUPPORTS_MATCH_MEDIA = IN_BROWSER && "matchMedia" in window && typeof wind
5
5
  const SUPPORTS_OBSERVER = IN_BROWSER && "ResizeObserver" in window;
6
6
  const SUPPORTS_INTERSECTION_OBSERVER = IN_BROWSER && "IntersectionObserver" in window;
7
7
  const SUPPORTS_MUTATION_OBSERVER = IN_BROWSER && "MutationObserver" in window;
8
- const version = "1.0.3";
8
+ const version = "1.0.5";
9
9
  /* v8 ignore next -- build-time constant, __DEV__ short-circuits in tests */
10
10
  const __LOGGER_ENABLED__ = typeof (process.env.NODE_ENV !== "production") !== "undefined" && process.env.NODE_ENV !== "production" || typeof process.env.VITE_LOGGER_ENABLED !== "undefined" && process.env.VITE_LOGGER_ENABLED === "true";
11
11
  //#endregion
@@ -4,7 +4,7 @@ import { a as RegistryEventName, c as RegistryTicketInput, o as RegistryOptions,
4
4
  import { _ as FilterMode } from "./adapter-_srNCBEi.mjs";
5
5
  import { _ as ColumnNode, c as DataTableOptions, n as DataTableColumnTicketInput, r as DataTableContext, t as DataTableColumnTicket } from "./index-DCtHbY0a.mjs";
6
6
  import { c as TokenTicket, i as TokenContext, o as TokenOptions, r as TokenCollection } from "./index-QnpcDsV7.mjs";
7
- import { t as DateAdapter } from "./adapter-C5F2huij.mjs";
7
+ import { t as DateAdapter } from "./adapter-Bc0yPSfo.mjs";
8
8
  import { n as FeaturesAdapterFlags, t as FeaturesAdapter } from "./adapter-Butx_2UU.mjs";
9
9
  import { t as LocaleAdapter } from "./adapter-hq9YlPOF.mjs";
10
10
  import { t as LoggerAdapter } from "./adapter-BYzU4Ey5.mjs";
@@ -5623,8 +5623,10 @@ interface DropIndicator {
5623
5623
  rect: DOMRect;
5624
5624
  }
5625
5625
  /**
5626
- * Position passed to drop hooks. `index` and `indicator` are populated for
5627
- * oriented zones; unoriented zones receive only the pointer location.
5626
+ * Position passed to drop hooks. `index` is populated for oriented zones;
5627
+ * unoriented zones receive only the pointer location. `indicator` is absent
5628
+ * when no slot was proposed: an empty zone resolves `index` to `0`, a drop on
5629
+ * a slot flanking the drag's own position resolves to that position (a stay).
5628
5630
  *
5629
5631
  * @example
5630
5632
  * ```ts