@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.
@@ -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
  */
@@ -695,6 +695,33 @@
695
695
  return target.getBoundingClientRect();
696
696
  }
697
697
  }
698
+ function getElementBox(el) {
699
+ if (el === document.documentElement) {
700
+ if (!visualViewport) {
701
+ return new Box({
702
+ x: 0,
703
+ y: 0,
704
+ width: document.documentElement.clientWidth,
705
+ height: document.documentElement.clientHeight
706
+ });
707
+ } else {
708
+ return new Box({
709
+ x: visualViewport.scale > 1 ? 0 : visualViewport.offsetLeft,
710
+ y: visualViewport.scale > 1 ? 0 : visualViewport.offsetTop,
711
+ width: visualViewport.width * visualViewport.scale,
712
+ height: visualViewport.height * visualViewport.scale
713
+ });
714
+ }
715
+ } else {
716
+ const rect = el.getBoundingClientRect();
717
+ return new Box({
718
+ x: rect.x,
719
+ y: rect.y,
720
+ width: el.clientWidth,
721
+ height: el.clientHeight
722
+ });
723
+ }
724
+ }
698
725
 
699
726
  // Utilities
700
727
 
@@ -10000,11 +10027,19 @@
10000
10027
  vue.watch(() => props.locationStrategy, reset);
10001
10028
  vue.onScopeDispose(() => {
10002
10029
  window.removeEventListener('resize', onResize);
10030
+ visualViewport?.removeEventListener('resize', onVisualResize);
10031
+ visualViewport?.removeEventListener('scroll', onVisualScroll);
10003
10032
  updateLocation.value = undefined;
10004
10033
  });
10005
10034
  window.addEventListener('resize', onResize, {
10006
10035
  passive: true
10007
10036
  });
10037
+ visualViewport?.addEventListener('resize', onVisualResize, {
10038
+ passive: true
10039
+ });
10040
+ visualViewport?.addEventListener('scroll', onVisualScroll, {
10041
+ passive: true
10042
+ });
10008
10043
  if (typeof props.locationStrategy === 'function') {
10009
10044
  updateLocation.value = props.locationStrategy(data, props, contentStyles)?.updateLocation;
10010
10045
  } else {
@@ -10015,6 +10050,12 @@
10015
10050
  function onResize(e) {
10016
10051
  updateLocation.value?.(e);
10017
10052
  }
10053
+ function onVisualResize(e) {
10054
+ updateLocation.value?.(e);
10055
+ }
10056
+ function onVisualScroll(e) {
10057
+ updateLocation.value?.(e);
10058
+ }
10018
10059
  return {
10019
10060
  contentStyles,
10020
10061
  updateLocation
@@ -10166,13 +10207,7 @@
10166
10207
  }
10167
10208
  }
10168
10209
  const viewport = scrollParents.reduce((box, el) => {
10169
- const rect = el.getBoundingClientRect();
10170
- const scrollBox = new Box({
10171
- x: el === document.documentElement ? 0 : rect.x,
10172
- y: el === document.documentElement ? 0 : rect.y,
10173
- width: el.clientWidth,
10174
- height: el.clientHeight
10175
- });
10210
+ const scrollBox = getElementBox(el);
10176
10211
  if (box) {
10177
10212
  return new Box({
10178
10213
  x: Math.max(box.left, scrollBox.left),
@@ -31954,7 +31989,7 @@
31954
31989
  };
31955
31990
  });
31956
31991
  }
31957
- const version$1 = "3.8.6-master.2025-05-21";
31992
+ const version$1 = "3.8.6-master.2025-05-22";
31958
31993
  createVuetify$1.version = version$1;
31959
31994
 
31960
31995
  // Vue's inject() can only be used in setup
@@ -32252,7 +32287,7 @@
32252
32287
 
32253
32288
  /* eslint-disable local-rules/sort-imports */
32254
32289
 
32255
- const version = "3.8.6-master.2025-05-21";
32290
+ const version = "3.8.6-master.2025-05-22";
32256
32291
 
32257
32292
  /* eslint-disable local-rules/sort-imports */
32258
32293