@vuetify/nightly 3.9.3-master.2025-08-03 → 3.9.3-master.2025-08-05

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 (81) hide show
  1. package/CHANGELOG.md +7 -6
  2. package/dist/json/attributes.json +3159 -3171
  3. package/dist/json/importMap-labs.json +42 -42
  4. package/dist/json/importMap.json +174 -174
  5. package/dist/json/tags.json +1 -4
  6. package/dist/json/web-types.json +5928 -6047
  7. package/dist/vuetify-labs.cjs +30 -71
  8. package/dist/vuetify-labs.css +3504 -3503
  9. package/dist/vuetify-labs.d.ts +86 -160
  10. package/dist/vuetify-labs.esm.js +30 -71
  11. package/dist/vuetify-labs.esm.js.map +1 -1
  12. package/dist/vuetify-labs.js +30 -71
  13. package/dist/vuetify-labs.min.css +2 -2
  14. package/dist/vuetify.cjs +26 -70
  15. package/dist/vuetify.cjs.map +1 -1
  16. package/dist/vuetify.css +4352 -4351
  17. package/dist/vuetify.d.ts +81 -132
  18. package/dist/vuetify.esm.js +26 -70
  19. package/dist/vuetify.esm.js.map +1 -1
  20. package/dist/vuetify.js +26 -70
  21. package/dist/vuetify.js.map +1 -1
  22. package/dist/vuetify.min.css +2 -2
  23. package/dist/vuetify.min.js +245 -251
  24. package/dist/vuetify.min.js.map +1 -1
  25. package/lib/components/VColorPicker/VColorPickerCanvas.css +1 -0
  26. package/lib/components/VColorPicker/VColorPickerCanvas.sass +1 -0
  27. package/lib/components/VDataIterator/VDataIterator.d.ts +2 -2
  28. package/lib/components/VDataIterator/VDataIterator.js +1 -1
  29. package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
  30. package/lib/components/VDataTable/VDataTable.d.ts +4 -6
  31. package/lib/components/VDataTable/VDataTable.js +1 -1
  32. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  33. package/lib/components/VDataTable/VDataTableRows.d.ts +11 -14
  34. package/lib/components/VDataTable/VDataTableRows.js +0 -9
  35. package/lib/components/VDataTable/VDataTableRows.js.map +1 -1
  36. package/lib/components/VDataTable/VDataTableServer.d.ts +2 -4
  37. package/lib/components/VDataTable/VDataTableServer.js +1 -1
  38. package/lib/components/VDataTable/VDataTableServer.js.map +1 -1
  39. package/lib/components/VDataTable/VDataTableVirtual.d.ts +2 -4
  40. package/lib/components/VDataTable/VDataTableVirtual.js +1 -1
  41. package/lib/components/VDataTable/VDataTableVirtual.js.map +1 -1
  42. package/lib/components/VDataTable/composables/group.d.ts +5 -13
  43. package/lib/components/VDataTable/composables/group.js +5 -11
  44. package/lib/components/VDataTable/composables/group.js.map +1 -1
  45. package/lib/components/VDataTable/composables/paginate.d.ts +3 -3
  46. package/lib/components/VDataTable/composables/paginate.js.map +1 -1
  47. package/lib/components/VDataTable/types.d.ts +1 -7
  48. package/lib/components/VDataTable/types.js.map +1 -1
  49. package/lib/components/VDatePicker/VDatePicker.d.ts +0 -25
  50. package/lib/components/VDatePicker/VDatePickerMonth.d.ts +0 -25
  51. package/lib/components/VOverlay/scrollStrategies.js +7 -7
  52. package/lib/components/VOverlay/scrollStrategies.js.map +1 -1
  53. package/lib/components/VTreeview/VTreeviewChildren.d.ts +2 -20
  54. package/lib/components/VTreeview/VTreeviewChildren.js +2 -7
  55. package/lib/components/VTreeview/VTreeviewChildren.js.map +1 -1
  56. package/lib/composables/calendar.d.ts +0 -12
  57. package/lib/composables/calendar.js +1 -5
  58. package/lib/composables/calendar.js.map +1 -1
  59. package/lib/composables/date/DateAdapter.d.ts +1 -1
  60. package/lib/composables/date/DateAdapter.js.map +1 -1
  61. package/lib/composables/date/adapters/string.d.ts +1 -1
  62. package/lib/composables/date/adapters/string.js +2 -2
  63. package/lib/composables/date/adapters/string.js.map +1 -1
  64. package/lib/composables/date/adapters/vuetify.d.ts +1 -1
  65. package/lib/composables/date/adapters/vuetify.js +5 -25
  66. package/lib/composables/date/adapters/vuetify.js.map +1 -1
  67. package/lib/composables/date/date.d.ts +1 -1
  68. package/lib/entry-bundler.d.ts +1 -1
  69. package/lib/entry-bundler.js +1 -1
  70. package/lib/framework.d.ts +66 -66
  71. package/lib/framework.js +1 -1
  72. package/lib/labs/VCalendar/VCalendar.d.ts +0 -25
  73. package/lib/labs/VDateInput/VDateInput.d.ts +0 -25
  74. package/lib/labs/VVideo/VVideo.css +3 -3
  75. package/lib/labs/VVideo/VVideo.d.ts +10 -0
  76. package/lib/labs/VVideo/VVideo.js +4 -1
  77. package/lib/labs/VVideo/VVideo.js.map +1 -1
  78. package/lib/labs/VVideo/VVideo.sass +2 -2
  79. package/lib/labs/VVideo/_variables.scss +3 -2
  80. package/lib/labs/entry-bundler.d.ts +1 -1
  81. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.9.3-master.2025-08-03
2
+ * Vuetify v3.9.3-master.2025-08-05
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -11169,11 +11169,11 @@ function closeScrollStrategy(data) {
11169
11169
  function onScroll(e) {
11170
11170
  data.isActive.value = false;
11171
11171
  }
11172
- bindScroll(data.target.value ?? data.contentEl.value, onScroll);
11172
+ bindScroll(getTargetEl(data.target.value, data.contentEl.value), onScroll);
11173
11173
  }
11174
11174
  function blockScrollStrategy(data, props) {
11175
11175
  const offsetParent = data.root.value?.offsetParent;
11176
- const target = Array.isArray(data.target.value) ? document.elementFromPoint(...data.target.value) : data.target.value;
11176
+ const target = getTargetEl(data.target.value, data.contentEl.value);
11177
11177
  const scrollElements = [...new Set([...getScrollParents(target, props.contained ? offsetParent : undefined), ...getScrollParents(data.contentEl.value, props.contained ? offsetParent : undefined)])].filter(el => !el.classList.contains('v-overlay-scroll-blocked'));
11178
11178
  const scrollbarWidth = window.innerWidth - document.documentElement.offsetWidth;
11179
11179
  const scrollableParent = (el => hasScrollbar(el) && el)(offsetParent || document.documentElement);
@@ -11221,7 +11221,7 @@ function repositionScrollStrategy(data, props, scope) {
11221
11221
  }
11222
11222
  ric = (typeof requestIdleCallback === 'undefined' ? cb => cb() : requestIdleCallback)(() => {
11223
11223
  scope.run(() => {
11224
- bindScroll(data.target.value ?? data.contentEl.value, e => {
11224
+ bindScroll(getTargetEl(data.target.value, data.contentEl.value), e => {
11225
11225
  if (slow) {
11226
11226
  // If the position calculation is slow,
11227
11227
  // defer updates until scrolling is finished.
@@ -11244,10 +11244,10 @@ function repositionScrollStrategy(data, props, scope) {
11244
11244
  cancelAnimationFrame(raf);
11245
11245
  });
11246
11246
  }
11247
-
11248
- /** @private */
11249
- function bindScroll(target, onScroll) {
11250
- const el = Array.isArray(target) ? document.elementFromPoint(...target) : target;
11247
+ function getTargetEl(target, contentEl) {
11248
+ return Array.isArray(target) ? document.elementsFromPoint(...target).find(el => !contentEl?.contains(el)) : target ?? contentEl;
11249
+ }
11250
+ function bindScroll(el, onScroll) {
11251
11251
  const scrollElements = [document, ...getScrollParents(el)];
11252
11252
  scrollElements.forEach(el => {
11253
11253
  el.addEventListener('scroll', onScroll, {
@@ -18201,35 +18201,16 @@ function getYear(date) {
18201
18201
  function getMonth(date) {
18202
18202
  return date.getMonth();
18203
18203
  }
18204
- function getWeek(date, locale, firstDayOfWeek, firstDayOfYear) {
18204
+ function getWeek(date, locale, firstDayOfWeek, firstWeekMinSize) {
18205
18205
  const weekInfoFromLocale = weekInfo(locale);
18206
18206
  const weekStart = firstDayOfWeek ?? weekInfoFromLocale?.firstDay ?? 0;
18207
- const minWeekSize = weekInfoFromLocale?.firstWeekSize ?? 1;
18208
- return firstDayOfYear !== undefined ? calculateWeekWithFirstDayOfYear(date, locale, weekStart, firstDayOfYear) : calculateWeekWithMinWeekSize(date, locale, weekStart, minWeekSize);
18209
- }
18210
- function calculateWeekWithFirstDayOfYear(date, locale, weekStart, firstDayOfYear) {
18211
- const firstDayOfYearOffset = (7 + firstDayOfYear - weekStart) % 7;
18212
- const currentWeekStart = startOfWeek(date, locale, weekStart);
18213
- const currentWeekEnd = addDays(currentWeekStart, 6);
18214
- function yearStartWeekdayOffset(year) {
18215
- return (7 + new Date(year, 0, 1).getDay() - weekStart) % 7;
18216
- }
18217
- let year = getYear(date);
18218
- if (year < getYear(currentWeekEnd) && yearStartWeekdayOffset(year + 1) <= firstDayOfYearOffset) {
18219
- year++;
18220
- }
18221
- const yearStart = new Date(year, 0, 1);
18222
- const offset = yearStartWeekdayOffset(year);
18223
- const d1w1 = offset <= firstDayOfYearOffset ? addDays(yearStart, -offset) : addDays(yearStart, 7 - offset);
18224
- return 1 + getDiff(endOfDay(date), startOfDay(d1w1), 'weeks');
18225
- }
18226
- function calculateWeekWithMinWeekSize(date, locale, weekStart, minWeekSize) {
18227
- const currentWeekEnd = addDays(startOfWeek(date, locale, weekStart), 6);
18207
+ const minWeekSize = firstWeekMinSize ?? weekInfoFromLocale?.firstWeekSize ?? 1;
18228
18208
  function firstWeekSize(year) {
18229
18209
  const yearStart = new Date(year, 0, 1);
18230
18210
  return 7 - getDiff(yearStart, startOfWeek(yearStart, locale, weekStart), 'days');
18231
18211
  }
18232
18212
  let year = getYear(date);
18213
+ const currentWeekEnd = addDays(startOfWeek(date, locale, weekStart), 6);
18233
18214
  if (year < getYear(currentWeekEnd) && firstWeekSize(year + 1) >= minWeekSize) {
18234
18215
  year++;
18235
18216
  }
@@ -18451,10 +18432,9 @@ class VuetifyDateAdapter {
18451
18432
  getMonth(date) {
18452
18433
  return getMonth(date);
18453
18434
  }
18454
- getWeek(date, firstDayOfWeek, firstDayOfYear) {
18435
+ getWeek(date, firstDayOfWeek, firstWeekMinSize) {
18455
18436
  const firstDay = firstDayOfWeek !== undefined ? Number(firstDayOfWeek) : undefined;
18456
- const firstWeekStart = firstDayOfYear !== undefined ? Number(firstDayOfYear) : undefined;
18457
- return getWeek(date, this.locale, firstDay, firstWeekStart);
18437
+ return getWeek(date, this.locale, firstDay, firstWeekMinSize);
18458
18438
  }
18459
18439
  getDate(date) {
18460
18440
  return getDate(date);
@@ -19822,7 +19802,7 @@ function groupItems(items, groupBy) {
19822
19802
  });
19823
19803
  return groups;
19824
19804
  }
19825
- function flattenItems(items, opened, hasSummary) {
19805
+ function flattenItems(items, opened) {
19826
19806
  const flatItems = [];
19827
19807
  for (const item of items) {
19828
19808
  // TODO: make this better
@@ -19831,13 +19811,7 @@ function flattenItems(items, opened, hasSummary) {
19831
19811
  flatItems.push(item);
19832
19812
  }
19833
19813
  if (opened.has(item.id) || item.value == null) {
19834
- flatItems.push(...flattenItems(item.items, opened, hasSummary));
19835
- if (hasSummary) {
19836
- flatItems.push({
19837
- ...item,
19838
- type: 'group-summary'
19839
- });
19840
- }
19814
+ flatItems.push(...flattenItems(item.items, opened));
19841
19815
  }
19842
19816
  } else {
19843
19817
  flatItems.push(item);
@@ -19845,11 +19819,11 @@ function flattenItems(items, opened, hasSummary) {
19845
19819
  }
19846
19820
  return flatItems;
19847
19821
  }
19848
- function useGroupedItems(items, groupBy, opened, hasSummary) {
19822
+ function useGroupedItems(items, groupBy, opened) {
19849
19823
  const flatItems = computed(() => {
19850
19824
  if (!groupBy.value.length) return items.value;
19851
19825
  const groupedItems = groupItems(items.value, groupBy.value.map(item => item.key));
19852
- return flattenItems(groupedItems, opened.value, toValue(hasSummary));
19826
+ return flattenItems(groupedItems, opened.value);
19853
19827
  });
19854
19828
  return {
19855
19829
  flatItems
@@ -20467,7 +20441,7 @@ const VDataIterator = genericComponent()({
20467
20441
  });
20468
20442
  const {
20469
20443
  flatItems
20470
- } = useGroupedItems(sortedItems, groupBy, opened, false);
20444
+ } = useGroupedItems(sortedItems, groupBy, opened);
20471
20445
  const itemsLength = toRef(() => flatItems.value.length);
20472
20446
  const {
20473
20447
  startIndex,
@@ -21918,15 +21892,6 @@ const VDataTableRows = genericComponent()({
21918
21892
  "item": item
21919
21893
  }, getPrefixedEventHandlers(attrs, ':group-header', () => slotProps)), slots);
21920
21894
  }
21921
- if (item.type === 'group-summary') {
21922
- const slotProps = {
21923
- index,
21924
- item,
21925
- columns: columns.value,
21926
- toggleGroup
21927
- };
21928
- return slots['group-summary']?.(slotProps) ?? '';
21929
- }
21930
21895
  const slotProps = {
21931
21896
  index,
21932
21897
  item: item.raw,
@@ -22185,7 +22150,7 @@ const VDataTable = genericComponent()({
22185
22150
  });
22186
22151
  const {
22187
22152
  flatItems
22188
- } = useGroupedItems(sortedItems, groupBy, opened, () => !!slots['group-summary']);
22153
+ } = useGroupedItems(sortedItems, groupBy, opened);
22189
22154
  const itemsLength = computed(() => flatItems.value.length);
22190
22155
  const {
22191
22156
  startIndex,
@@ -22373,7 +22338,7 @@ const VDataTableVirtual = genericComponent()({
22373
22338
  });
22374
22339
  const {
22375
22340
  flatItems
22376
- } = useGroupedItems(sortedItems, groupBy, opened, () => !!slots['group-summary']);
22341
+ } = useGroupedItems(sortedItems, groupBy, opened);
22377
22342
  const allItems = computed(() => extractRows(flatItems.value));
22378
22343
  const {
22379
22344
  isSelected,
@@ -22602,7 +22567,7 @@ const VDataTableServer = genericComponent()({
22602
22567
  });
22603
22568
  const {
22604
22569
  flatItems
22605
- } = useGroupedItems(items, groupBy, opened, () => !!slots['group-summary']);
22570
+ } = useGroupedItems(items, groupBy, opened);
22606
22571
  const {
22607
22572
  isSelected,
22608
22573
  select,
@@ -23194,10 +23159,6 @@ const makeCalendarProps = propsFactory({
23194
23159
  type: [Number, String],
23195
23160
  default: undefined
23196
23161
  },
23197
- firstDayOfYear: {
23198
- type: [Number, String],
23199
- default: undefined
23200
- },
23201
23162
  weekdayFormat: String
23202
23163
  }, 'calendar');
23203
23164
  function useCalendar(props) {
@@ -23289,7 +23250,7 @@ function useCalendar(props) {
23289
23250
  });
23290
23251
  const weekNumbers = computed(() => {
23291
23252
  return weeksInMonth.value.map(week => {
23292
- return week.length ? adapter.getWeek(week[0], props.firstDayOfWeek, props.firstDayOfYear) : null;
23253
+ return week.length ? adapter.getWeek(week[0], props.firstDayOfWeek) : null;
23293
23254
  });
23294
23255
  });
23295
23256
  function isDisabled(value) {
@@ -30880,19 +30841,14 @@ const VTreeviewChildren = genericComponent()({
30880
30841
  onToggleExpand: [() => checkChildren(item), activatorProps.onClick],
30881
30842
  onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : () => selectItem(activatorItems.value[index]?.select, !activatorItems.value[index]?.isSelected)
30882
30843
  };
30883
- return renderSlot(slots.header, {
30884
- props: listItemProps,
30885
- item: item.raw,
30886
- internalItem: item,
30887
- loading
30888
- }, () => createVNode(VTreeviewItem, mergeProps({
30844
+ return createVNode(VTreeviewItem, mergeProps({
30889
30845
  "ref": el => activatorItems.value[index] = el
30890
30846
  }, listItemProps, {
30891
30847
  "hideActions": props.hideActions,
30892
30848
  "indentLines": indentLines.node,
30893
30849
  "value": props.returnObject ? item.raw : itemProps.value,
30894
30850
  "loading": loading
30895
- }), slotsWithItem));
30851
+ }), slotsWithItem);
30896
30852
  },
30897
30853
  default: () => createVNode(VTreeviewChildren, mergeProps(treeviewChildrenProps, {
30898
30854
  "items": children,
@@ -31583,7 +31539,7 @@ function createVuetify$1() {
31583
31539
  };
31584
31540
  });
31585
31541
  }
31586
- const version$1 = "3.9.3-master.2025-08-03";
31542
+ const version$1 = "3.9.3-master.2025-08-05";
31587
31543
  createVuetify$1.version = version$1;
31588
31544
 
31589
31545
  // Vue's inject() can only be used in setup
@@ -31608,7 +31564,7 @@ const createVuetify = function () {
31608
31564
  ...options
31609
31565
  });
31610
31566
  };
31611
- const version = "3.9.3-master.2025-08-03";
31567
+ const version = "3.9.3-master.2025-08-05";
31612
31568
  createVuetify.version = version;
31613
31569
 
31614
31570
  export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useHotkey, useLayout, useLocale, useRtl, useTheme, version };