@vuetify/nightly 3.8.6-master.2025-05-21 → 3.8.6-master.2025-05-22

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/vuetify.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.8.6-master.2025-05-21
2
+ * Vuetify v3.8.6-master.2025-05-22
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -618,6 +618,33 @@
618
618
  return target.getBoundingClientRect();
619
619
  }
620
620
  }
621
+ function getElementBox(el) {
622
+ if (el === document.documentElement) {
623
+ if (!visualViewport) {
624
+ return new Box({
625
+ x: 0,
626
+ y: 0,
627
+ width: document.documentElement.clientWidth,
628
+ height: document.documentElement.clientHeight
629
+ });
630
+ } else {
631
+ return new Box({
632
+ x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,
633
+ y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,
634
+ width: visualViewport.width * visualViewport.scale,
635
+ height: visualViewport.height * visualViewport.scale
636
+ });
637
+ }
638
+ } else {
639
+ const rect = el.getBoundingClientRect();
640
+ return new Box({
641
+ x: rect.x,
642
+ y: rect.y,
643
+ width: el.clientWidth,
644
+ height: el.clientHeight
645
+ });
646
+ }
647
+ }
621
648
 
622
649
  // Utilities
623
650
 
@@ -10278,11 +10305,19 @@
10278
10305
  vue.watch(() => props.locationStrategy, reset);
10279
10306
  vue.onScopeDispose(() => {
10280
10307
  window.removeEventListener('resize', onResize);
10308
+ visualViewport?.removeEventListener('resize', onVisualResize);
10309
+ visualViewport?.removeEventListener('scroll', onVisualScroll);
10281
10310
  updateLocation.value = undefined;
10282
10311
  });
10283
10312
  window.addEventListener('resize', onResize, {
10284
10313
  passive: true
10285
10314
  });
10315
+ visualViewport?.addEventListener('resize', onVisualResize, {
10316
+ passive: true
10317
+ });
10318
+ visualViewport?.addEventListener('scroll', onVisualScroll, {
10319
+ passive: true
10320
+ });
10286
10321
  if (typeof props.locationStrategy === 'function') {
10287
10322
  updateLocation.value = props.locationStrategy(data, props, contentStyles)?.updateLocation;
10288
10323
  } else {
@@ -10293,6 +10328,12 @@
10293
10328
  function onResize(e) {
10294
10329
  updateLocation.value?.(e);
10295
10330
  }
10331
+ function onVisualResize(e) {
10332
+ updateLocation.value?.(e);
10333
+ }
10334
+ function onVisualScroll(e) {
10335
+ updateLocation.value?.(e);
10336
+ }
10296
10337
  return {
10297
10338
  contentStyles,
10298
10339
  updateLocation
@@ -10444,13 +10485,7 @@
10444
10485
  }
10445
10486
  }
10446
10487
  const viewport = scrollParents.reduce((box, el) => {
10447
- const rect = el.getBoundingClientRect();
10448
- const scrollBox = new Box({
10449
- x: el === document.documentElement ? 0 : rect.x,
10450
- y: el === document.documentElement ? 0 : rect.y,
10451
- width: el.clientWidth,
10452
- height: el.clientHeight
10453
- });
10488
+ const scrollBox = getElementBox(el);
10454
10489
  if (box) {
10455
10490
  return new Box({
10456
10491
  x: Math.max(box.left, scrollBox.left),
@@ -29259,7 +29294,7 @@
29259
29294
  };
29260
29295
  });
29261
29296
  }
29262
- const version$1 = "3.8.6-master.2025-05-21";
29297
+ const version$1 = "3.8.6-master.2025-05-22";
29263
29298
  createVuetify$1.version = version$1;
29264
29299
 
29265
29300
  // Vue's inject() can only be used in setup
@@ -29284,7 +29319,7 @@
29284
29319
  ...options
29285
29320
  });
29286
29321
  };
29287
- const version = "3.8.6-master.2025-05-21";
29322
+ const version = "3.8.6-master.2025-05-22";
29288
29323
  createVuetify.version = version;
29289
29324
 
29290
29325
  exports.blueprints = index;