vuetify 3.1.7 → 3.1.8

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 (113) hide show
  1. package/dist/json/attributes.json +0 -528
  2. package/dist/json/importMap.json +4 -4
  3. package/dist/json/tags.json +2 -136
  4. package/dist/json/web-types.json +20 -1210
  5. package/dist/vuetify-labs.css +419 -276
  6. package/dist/vuetify-labs.esm.js +48 -37
  7. package/dist/vuetify-labs.esm.js.map +1 -1
  8. package/dist/vuetify-labs.js +48 -37
  9. package/dist/vuetify-labs.min.css +2 -2
  10. package/dist/vuetify.css +1413 -1270
  11. package/dist/vuetify.d.ts +1 -1
  12. package/dist/vuetify.esm.js +33 -32
  13. package/dist/vuetify.esm.js.map +1 -1
  14. package/dist/vuetify.js +33 -32
  15. package/dist/vuetify.js.map +1 -1
  16. package/dist/vuetify.min.css +2 -2
  17. package/dist/vuetify.min.js +209 -210
  18. package/dist/vuetify.min.js.map +1 -1
  19. package/lib/components/VAlert/VAlert.css +1 -1
  20. package/lib/components/VAlert/VAlert.mjs.map +1 -1
  21. package/lib/components/VAlert/_variables.scss +1 -1
  22. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  23. package/lib/components/VBanner/VBanner.mjs.map +1 -1
  24. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  25. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
  26. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  27. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  28. package/lib/components/VCard/VCard.mjs.map +1 -1
  29. package/lib/components/VCard/VCardItem.mjs.map +1 -1
  30. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  31. package/lib/components/VChip/VChip.mjs.map +1 -1
  32. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  33. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  34. package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
  35. package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
  36. package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
  37. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  38. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  39. package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
  40. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
  41. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
  42. package/lib/components/VField/VField.mjs.map +1 -1
  43. package/lib/components/VFileInput/VFileInput.mjs +1 -0
  44. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  45. package/lib/components/VInput/VInput.mjs.map +1 -1
  46. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  47. package/lib/components/VList/VListGroup.mjs.map +1 -1
  48. package/lib/components/VList/VListItem.mjs.map +1 -1
  49. package/lib/components/VList/VListSubheader.mjs.map +1 -1
  50. package/lib/components/VMessages/VMessages.mjs.map +1 -1
  51. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  52. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  53. package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
  54. package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
  55. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  56. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  57. package/lib/components/VRating/VRating.mjs.map +1 -1
  58. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  59. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  60. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  61. package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
  62. package/lib/components/VSnackbar/VSnackbar.css +0 -2
  63. package/lib/components/VSnackbar/VSnackbar.mjs +6 -8
  64. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  65. package/lib/components/VSnackbar/VSnackbar.sass +0 -2
  66. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  67. package/lib/components/VTable/VTable.mjs.map +1 -1
  68. package/lib/components/VTabs/VTab.mjs.map +1 -1
  69. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  70. package/lib/components/VTextField/VTextField.mjs +1 -0
  71. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  72. package/lib/components/VTextarea/VTextarea.mjs +1 -0
  73. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  74. package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
  75. package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
  76. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  77. package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
  78. package/lib/components/transitions/createTransition.mjs +1 -1
  79. package/lib/components/transitions/createTransition.mjs.map +1 -1
  80. package/lib/composables/display.mjs +13 -10
  81. package/lib/composables/display.mjs.map +1 -1
  82. package/lib/composables/loader.mjs.map +1 -1
  83. package/lib/composables/theme.mjs +7 -10
  84. package/lib/composables/theme.mjs.map +1 -1
  85. package/lib/composables/variant.mjs.map +1 -1
  86. package/lib/entry-bundler.mjs +1 -1
  87. package/lib/framework.mjs +1 -1
  88. package/lib/index.d.ts +1 -1
  89. package/lib/labs/VDataTable/VDataTable.mjs +4 -2
  90. package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
  91. package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
  92. package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
  93. package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
  94. package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
  95. package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
  96. package/lib/labs/VDataTable/VDataTableVirtual.mjs +4 -2
  97. package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
  98. package/lib/labs/VDataTable/composables/options.mjs +7 -1
  99. package/lib/labs/VDataTable/composables/options.mjs.map +1 -1
  100. package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  101. package/lib/locale/index.mjs +1 -1
  102. package/lib/locale/index.mjs.map +1 -1
  103. package/lib/styles/elements/_global.sass +0 -4
  104. package/lib/styles/generic/_index.scss +0 -1
  105. package/lib/styles/generic/_transitions.scss +111 -9
  106. package/lib/styles/main.css +312 -167
  107. package/lib/styles/tools/_sheet.sass +3 -6
  108. package/lib/styles/utilities/_display.sass +6 -5
  109. package/lib/styles/utilities/_elevation.scss +13 -0
  110. package/lib/styles/utilities/_index.sass +3 -2
  111. package/lib/styles/utilities/_screenreaders.sass +13 -11
  112. package/package.json +17 -4
  113. package/lib/styles/generic/_elevation.scss +0 -10
package/dist/vuetify.d.ts CHANGED
@@ -20161,8 +20161,8 @@ declare module '@vue/runtime-core' {
20161
20161
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
20162
20162
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
20163
20163
  VRating: typeof import('vuetify/components')['VRating']
20164
- VSelect: typeof import('vuetify/components')['VSelect']
20165
20164
  VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
20165
+ VSelect: typeof import('vuetify/components')['VSelect']
20166
20166
  VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
20167
20167
  VSheet: typeof import('vuetify/components')['VSheet']
20168
20168
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.7
2
+ * Vuetify v3.1.8
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1667,17 +1667,9 @@ function createTheme(options) {
1667
1667
  if (current.value.dark) {
1668
1668
  createCssClass(lines, ':root', ['color-scheme: dark']);
1669
1669
  }
1670
+ createCssClass(lines, ':root', genCssVariables(current.value));
1670
1671
  for (const [themeName, theme] of Object.entries(computedThemes.value)) {
1671
- const {
1672
- variables,
1673
- dark
1674
- } = theme;
1675
- createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${dark ? 'dark' : 'normal'}`, ...genCssVariables(theme), ...Object.keys(variables).map(key => {
1676
- const value = variables[key];
1677
- const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
1678
- const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
1679
- return `--v-${key}: ${rgb ?? value}`;
1680
- })]);
1672
+ createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${theme.dark ? 'dark' : 'normal'}`, ...genCssVariables(theme)]);
1681
1673
  }
1682
1674
  const bgLines = [];
1683
1675
  const fgLines = [];
@@ -1790,6 +1782,11 @@ function genCssVariables(theme) {
1790
1782
  variables.push(`--v-theme-${key}-overlay-multiplier: ${getLuma(value) > 0.18 ? lightOverlay : darkOverlay}`);
1791
1783
  }
1792
1784
  }
1785
+ for (const [key, value] of Object.entries(theme.variables)) {
1786
+ const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
1787
+ const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
1788
+ variables.push(`--v-${key}: ${rgb ?? value}`);
1789
+ }
1793
1790
  return variables;
1794
1791
  }
1795
1792
 
@@ -2019,7 +2016,7 @@ const defaultRtl = {
2019
2016
  en: false,
2020
2017
  es: false,
2021
2018
  et: false,
2022
- fa: false,
2019
+ fa: true,
2023
2020
  fi: false,
2024
2021
  fr: false,
2025
2022
  hr: false,
@@ -2180,7 +2177,7 @@ const VDefaultsProvider = genericComponent(false)({
2180
2177
  // Types
2181
2178
 
2182
2179
  function createCssTransition(name) {
2183
- let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top center 0';
2180
+ let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'center center';
2184
2181
  let mode = arguments.length > 2 ? arguments[2] : undefined;
2185
2182
  return genericComponent()({
2186
2183
  name,
@@ -6171,6 +6168,7 @@ const VTextField = genericComponent()({
6171
6168
  "id": id.value,
6172
6169
  "active": isActive.value || isDirty.value,
6173
6170
  "dirty": isDirty.value || props.dirty,
6171
+ "disabled": isDisabled.value,
6174
6172
  "focused": isFocused.value,
6175
6173
  "error": isValid.value === false
6176
6174
  }), {
@@ -9119,8 +9117,8 @@ function getClientWidth(isHydrate) {
9119
9117
  function getClientHeight(isHydrate) {
9120
9118
  return IN_BROWSER && !isHydrate ? window.innerHeight : 0;
9121
9119
  }
9122
- function getPlatform() {
9123
- const userAgent = IN_BROWSER ? window.navigator.userAgent : 'ssr';
9120
+ function getPlatform(isHydrate) {
9121
+ const userAgent = IN_BROWSER && !isHydrate ? window.navigator.userAgent : 'ssr';
9124
9122
  function match(regexp) {
9125
9123
  return Boolean(userAgent.match(regexp));
9126
9124
  }
@@ -9135,7 +9133,6 @@ function getPlatform() {
9135
9133
  const win = match(/win/i);
9136
9134
  const mac = match(/mac/i);
9137
9135
  const linux = match(/linux/i);
9138
- const ssr = match(/ssr/i);
9139
9136
  return {
9140
9137
  android,
9141
9138
  ios,
@@ -9149,7 +9146,7 @@ function getPlatform() {
9149
9146
  mac,
9150
9147
  linux,
9151
9148
  touch: SUPPORTS_TOUCH,
9152
- ssr
9149
+ ssr: userAgent === 'ssr'
9153
9150
  };
9154
9151
  }
9155
9152
  function createDisplay(options, ssr) {
@@ -9158,13 +9155,17 @@ function createDisplay(options, ssr) {
9158
9155
  mobileBreakpoint
9159
9156
  } = parseDisplayOptions(options);
9160
9157
  const height = ref(getClientHeight(ssr));
9161
- const platform = getPlatform();
9158
+ const platform = shallowRef(getPlatform(ssr));
9162
9159
  const state = reactive({});
9163
9160
  const width = ref(getClientWidth(ssr));
9164
- function update() {
9161
+ function updateSize() {
9165
9162
  height.value = getClientHeight();
9166
9163
  width.value = getClientWidth();
9167
9164
  }
9165
+ function update() {
9166
+ updateSize();
9167
+ platform.value = getPlatform();
9168
+ }
9168
9169
 
9169
9170
  // eslint-disable-next-line max-statements
9170
9171
  watchEffect(() => {
@@ -9176,7 +9177,7 @@ function createDisplay(options, ssr) {
9176
9177
  const xxl = width.value >= thresholds.xxl;
9177
9178
  const name = xs ? 'xs' : sm ? 'sm' : md ? 'md' : lg ? 'lg' : xl ? 'xl' : 'xxl';
9178
9179
  const breakpointValue = typeof mobileBreakpoint === 'number' ? mobileBreakpoint : thresholds[mobileBreakpoint];
9179
- const mobile = !platform.ssr ? width.value < breakpointValue : platform.android || platform.ios || platform.opera;
9180
+ const mobile = width.value < breakpointValue;
9180
9181
  state.xs = xs;
9181
9182
  state.sm = sm;
9182
9183
  state.md = md;
@@ -9196,11 +9197,11 @@ function createDisplay(options, ssr) {
9196
9197
  state.width = width.value;
9197
9198
  state.mobile = mobile;
9198
9199
  state.mobileBreakpoint = mobileBreakpoint;
9199
- state.platform = platform;
9200
+ state.platform = platform.value;
9200
9201
  state.thresholds = thresholds;
9201
9202
  });
9202
9203
  if (IN_BROWSER) {
9203
- window.addEventListener('resize', update, {
9204
+ window.addEventListener('resize', updateSize, {
9204
9205
  passive: true
9205
9206
  });
9206
9207
  }
@@ -14213,6 +14214,7 @@ const VFileInput = genericComponent()({
14213
14214
  "id": id.value,
14214
14215
  "active": isDirty.value || isFocused.value,
14215
14216
  "dirty": isDirty.value,
14217
+ "disabled": isDisabled.value,
14216
14218
  "focused": isFocused.value,
14217
14219
  "error": isValid.value === false
14218
14220
  }), {
@@ -16849,19 +16851,17 @@ const VSnackbar = genericComponent()({
16849
16851
  "modelValue": isActive.value,
16850
16852
  "onUpdate:modelValue": $event => isActive.value = $event,
16851
16853
  "contentProps": mergeProps({
16852
- style: locationStyles.value
16854
+ class: ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
16855
+ style: [locationStyles.value, colorStyles.value],
16856
+ onPointerenter,
16857
+ onPointerleave: startTimeout
16853
16858
  }, overlayProps.contentProps),
16854
16859
  "persistent": true,
16855
16860
  "noClickAnimation": true,
16856
16861
  "scrim": false,
16857
16862
  "scrollStrategy": "none"
16858
16863
  }, scopeId), {
16859
- default: () => [createVNode("div", {
16860
- "class": ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
16861
- "style": [colorStyles.value],
16862
- "onPointerenter": onPointerenter,
16863
- "onPointerleave": startTimeout
16864
- }, [genOverlays(false, 'v-snackbar'), slots.default && createVNode("div", {
16864
+ default: () => [genOverlays(false, 'v-snackbar'), slots.default && createVNode("div", {
16865
16865
  "class": "v-snackbar__content",
16866
16866
  "role": "status",
16867
16867
  "aria-live": "polite"
@@ -16876,7 +16876,7 @@ const VSnackbar = genericComponent()({
16876
16876
  default: () => [createVNode("div", {
16877
16877
  "class": "v-snackbar__actions"
16878
16878
  }, [slots.actions()])]
16879
- })])],
16879
+ })],
16880
16880
  activator: slots.activator
16881
16881
  });
16882
16882
  });
@@ -17478,6 +17478,7 @@ const VTextarea = genericComponent()({
17478
17478
  }, fieldProps, {
17479
17479
  "active": isActive.value || isDirty.value,
17480
17480
  "dirty": isDirty.value || props.dirty,
17481
+ "disabled": isDisabled.value,
17481
17482
  "focused": isFocused.value,
17482
17483
  "error": isValid.value === false
17483
17484
  }), {
@@ -18218,7 +18219,7 @@ function createVuetify$1() {
18218
18219
  locale
18219
18220
  };
18220
18221
  }
18221
- const version$1 = "3.1.7";
18222
+ const version$1 = "3.1.8";
18222
18223
  createVuetify$1.version = version$1;
18223
18224
 
18224
18225
  // Vue's inject() can only be used in setup
@@ -18238,7 +18239,7 @@ const createVuetify = function () {
18238
18239
  ...options
18239
18240
  });
18240
18241
  };
18241
- const version = "3.1.7";
18242
+ const version = "3.1.8";
18242
18243
  createVuetify.version = version;
18243
18244
 
18244
18245
  export { components, createVuetify, directives, useDisplay, useLayout, useLocale, useRtl, useTheme, version };