@vuetify/nightly 3.1.8-master-20230307.0 → 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 (105) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/dist/json/attributes.json +0 -528
  3. package/dist/json/importMap.json +90 -90
  4. package/dist/json/tags.json +2 -136
  5. package/dist/json/web-types.json +20 -1210
  6. package/dist/vuetify-labs.css +242 -99
  7. package/dist/vuetify-labs.esm.js +33 -32
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +33 -32
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +261 -118
  12. package/dist/vuetify.d.ts +27 -27
  13. package/dist/vuetify.esm.js +33 -32
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +33 -32
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +209 -210
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/components/VAlert/VAlert.css +1 -1
  21. package/lib/components/VAlert/VAlert.mjs.map +1 -1
  22. package/lib/components/VAlert/_variables.scss +1 -1
  23. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  24. package/lib/components/VBanner/VBanner.mjs.map +1 -1
  25. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  26. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
  27. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  28. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  29. package/lib/components/VCard/VCard.mjs.map +1 -1
  30. package/lib/components/VCard/VCardItem.mjs.map +1 -1
  31. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  32. package/lib/components/VChip/VChip.mjs.map +1 -1
  33. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  34. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  35. package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
  36. package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
  37. package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
  38. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  39. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  40. package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
  41. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
  42. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
  43. package/lib/components/VField/VField.mjs.map +1 -1
  44. package/lib/components/VFileInput/VFileInput.mjs +1 -0
  45. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  46. package/lib/components/VInput/VInput.mjs.map +1 -1
  47. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  48. package/lib/components/VList/VListGroup.mjs.map +1 -1
  49. package/lib/components/VList/VListItem.mjs.map +1 -1
  50. package/lib/components/VList/VListSubheader.mjs.map +1 -1
  51. package/lib/components/VMessages/VMessages.mjs.map +1 -1
  52. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  53. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  54. package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
  55. package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
  56. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  57. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  58. package/lib/components/VRating/VRating.mjs.map +1 -1
  59. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  60. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  61. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  62. package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
  63. package/lib/components/VSnackbar/VSnackbar.css +0 -2
  64. package/lib/components/VSnackbar/VSnackbar.mjs +6 -8
  65. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  66. package/lib/components/VSnackbar/VSnackbar.sass +0 -2
  67. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  68. package/lib/components/VTable/VTable.mjs.map +1 -1
  69. package/lib/components/VTabs/VTab.mjs.map +1 -1
  70. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  71. package/lib/components/VTextField/VTextField.mjs +1 -0
  72. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  73. package/lib/components/VTextarea/VTextarea.mjs +1 -0
  74. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  75. package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
  76. package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
  77. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  78. package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
  79. package/lib/components/transitions/createTransition.mjs +1 -1
  80. package/lib/components/transitions/createTransition.mjs.map +1 -1
  81. package/lib/composables/display.mjs +13 -10
  82. package/lib/composables/display.mjs.map +1 -1
  83. package/lib/composables/loader.mjs.map +1 -1
  84. package/lib/composables/theme.mjs +7 -10
  85. package/lib/composables/theme.mjs.map +1 -1
  86. package/lib/composables/variant.mjs.map +1 -1
  87. package/lib/entry-bundler.mjs +1 -1
  88. package/lib/entry-bundler.mjs.map +1 -1
  89. package/lib/framework.mjs +1 -1
  90. package/lib/framework.mjs.map +1 -1
  91. package/lib/index.d.ts +27 -27
  92. package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
  93. package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
  94. package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
  95. package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
  96. package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
  97. package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
  98. package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
  99. package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  100. package/lib/locale/index.mjs +1 -1
  101. package/lib/locale/index.mjs.map +1 -1
  102. package/lib/styles/elements/_global.sass +0 -4
  103. package/lib/styles/generic/_transitions.scss +111 -9
  104. package/lib/styles/main.css +212 -67
  105. package/package.json +16 -3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.8-master-20230307.0
2
+ * Vuetify v3.1.8
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1675,17 +1675,9 @@
1675
1675
  if (current.value.dark) {
1676
1676
  createCssClass(lines, ':root', ['color-scheme: dark']);
1677
1677
  }
1678
+ createCssClass(lines, ':root', genCssVariables(current.value));
1678
1679
  for (const [themeName, theme] of Object.entries(computedThemes.value)) {
1679
- const {
1680
- variables,
1681
- dark
1682
- } = theme;
1683
- createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${dark ? 'dark' : 'normal'}`, ...genCssVariables(theme), ...Object.keys(variables).map(key => {
1684
- const value = variables[key];
1685
- const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
1686
- const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
1687
- return `--v-${key}: ${rgb ?? value}`;
1688
- })]);
1680
+ createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${theme.dark ? 'dark' : 'normal'}`, ...genCssVariables(theme)]);
1689
1681
  }
1690
1682
  const bgLines = [];
1691
1683
  const fgLines = [];
@@ -1798,6 +1790,11 @@
1798
1790
  variables.push(`--v-theme-${key}-overlay-multiplier: ${getLuma(value) > 0.18 ? lightOverlay : darkOverlay}`);
1799
1791
  }
1800
1792
  }
1793
+ for (const [key, value] of Object.entries(theme.variables)) {
1794
+ const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
1795
+ const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
1796
+ variables.push(`--v-${key}: ${rgb ?? value}`);
1797
+ }
1801
1798
  return variables;
1802
1799
  }
1803
1800
 
@@ -2027,7 +2024,7 @@
2027
2024
  en: false,
2028
2025
  es: false,
2029
2026
  et: false,
2030
- fa: false,
2027
+ fa: true,
2031
2028
  fi: false,
2032
2029
  fr: false,
2033
2030
  hr: false,
@@ -2188,7 +2185,7 @@
2188
2185
  // Types
2189
2186
 
2190
2187
  function createCssTransition(name) {
2191
- let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top center 0';
2188
+ let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'center center';
2192
2189
  let mode = arguments.length > 2 ? arguments[2] : undefined;
2193
2190
  return genericComponent()({
2194
2191
  name,
@@ -6179,6 +6176,7 @@
6179
6176
  "id": id.value,
6180
6177
  "active": isActive.value || isDirty.value,
6181
6178
  "dirty": isDirty.value || props.dirty,
6179
+ "disabled": isDisabled.value,
6182
6180
  "focused": isFocused.value,
6183
6181
  "error": isValid.value === false
6184
6182
  }), {
@@ -9127,8 +9125,8 @@
9127
9125
  function getClientHeight(isHydrate) {
9128
9126
  return IN_BROWSER && !isHydrate ? window.innerHeight : 0;
9129
9127
  }
9130
- function getPlatform() {
9131
- const userAgent = IN_BROWSER ? window.navigator.userAgent : 'ssr';
9128
+ function getPlatform(isHydrate) {
9129
+ const userAgent = IN_BROWSER && !isHydrate ? window.navigator.userAgent : 'ssr';
9132
9130
  function match(regexp) {
9133
9131
  return Boolean(userAgent.match(regexp));
9134
9132
  }
@@ -9143,7 +9141,6 @@
9143
9141
  const win = match(/win/i);
9144
9142
  const mac = match(/mac/i);
9145
9143
  const linux = match(/linux/i);
9146
- const ssr = match(/ssr/i);
9147
9144
  return {
9148
9145
  android,
9149
9146
  ios,
@@ -9157,7 +9154,7 @@
9157
9154
  mac,
9158
9155
  linux,
9159
9156
  touch: SUPPORTS_TOUCH,
9160
- ssr
9157
+ ssr: userAgent === 'ssr'
9161
9158
  };
9162
9159
  }
9163
9160
  function createDisplay(options, ssr) {
@@ -9166,13 +9163,17 @@
9166
9163
  mobileBreakpoint
9167
9164
  } = parseDisplayOptions(options);
9168
9165
  const height = vue.ref(getClientHeight(ssr));
9169
- const platform = getPlatform();
9166
+ const platform = vue.shallowRef(getPlatform(ssr));
9170
9167
  const state = vue.reactive({});
9171
9168
  const width = vue.ref(getClientWidth(ssr));
9172
- function update() {
9169
+ function updateSize() {
9173
9170
  height.value = getClientHeight();
9174
9171
  width.value = getClientWidth();
9175
9172
  }
9173
+ function update() {
9174
+ updateSize();
9175
+ platform.value = getPlatform();
9176
+ }
9176
9177
 
9177
9178
  // eslint-disable-next-line max-statements
9178
9179
  vue.watchEffect(() => {
@@ -9184,7 +9185,7 @@
9184
9185
  const xxl = width.value >= thresholds.xxl;
9185
9186
  const name = xs ? 'xs' : sm ? 'sm' : md ? 'md' : lg ? 'lg' : xl ? 'xl' : 'xxl';
9186
9187
  const breakpointValue = typeof mobileBreakpoint === 'number' ? mobileBreakpoint : thresholds[mobileBreakpoint];
9187
- const mobile = !platform.ssr ? width.value < breakpointValue : platform.android || platform.ios || platform.opera;
9188
+ const mobile = width.value < breakpointValue;
9188
9189
  state.xs = xs;
9189
9190
  state.sm = sm;
9190
9191
  state.md = md;
@@ -9204,11 +9205,11 @@
9204
9205
  state.width = width.value;
9205
9206
  state.mobile = mobile;
9206
9207
  state.mobileBreakpoint = mobileBreakpoint;
9207
- state.platform = platform;
9208
+ state.platform = platform.value;
9208
9209
  state.thresholds = thresholds;
9209
9210
  });
9210
9211
  if (IN_BROWSER) {
9211
- window.addEventListener('resize', update, {
9212
+ window.addEventListener('resize', updateSize, {
9212
9213
  passive: true
9213
9214
  });
9214
9215
  }
@@ -14221,6 +14222,7 @@
14221
14222
  "id": id.value,
14222
14223
  "active": isDirty.value || isFocused.value,
14223
14224
  "dirty": isDirty.value,
14225
+ "disabled": isDisabled.value,
14224
14226
  "focused": isFocused.value,
14225
14227
  "error": isValid.value === false
14226
14228
  }), {
@@ -16857,19 +16859,17 @@
16857
16859
  "modelValue": isActive.value,
16858
16860
  "onUpdate:modelValue": $event => isActive.value = $event,
16859
16861
  "contentProps": vue.mergeProps({
16860
- style: locationStyles.value
16862
+ class: ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
16863
+ style: [locationStyles.value, colorStyles.value],
16864
+ onPointerenter,
16865
+ onPointerleave: startTimeout
16861
16866
  }, overlayProps.contentProps),
16862
16867
  "persistent": true,
16863
16868
  "noClickAnimation": true,
16864
16869
  "scrim": false,
16865
16870
  "scrollStrategy": "none"
16866
16871
  }, scopeId), {
16867
- default: () => [vue.createVNode("div", {
16868
- "class": ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
16869
- "style": [colorStyles.value],
16870
- "onPointerenter": onPointerenter,
16871
- "onPointerleave": startTimeout
16872
- }, [genOverlays(false, 'v-snackbar'), slots.default && vue.createVNode("div", {
16872
+ default: () => [genOverlays(false, 'v-snackbar'), slots.default && vue.createVNode("div", {
16873
16873
  "class": "v-snackbar__content",
16874
16874
  "role": "status",
16875
16875
  "aria-live": "polite"
@@ -16884,7 +16884,7 @@
16884
16884
  default: () => [vue.createVNode("div", {
16885
16885
  "class": "v-snackbar__actions"
16886
16886
  }, [slots.actions()])]
16887
- })])],
16887
+ })],
16888
16888
  activator: slots.activator
16889
16889
  });
16890
16890
  });
@@ -17486,6 +17486,7 @@
17486
17486
  }, fieldProps, {
17487
17487
  "active": isActive.value || isDirty.value,
17488
17488
  "dirty": isDirty.value || props.dirty,
17489
+ "disabled": isDisabled.value,
17489
17490
  "focused": isFocused.value,
17490
17491
  "error": isValid.value === false
17491
17492
  }), {
@@ -20031,7 +20032,7 @@
20031
20032
  locale
20032
20033
  };
20033
20034
  }
20034
- const version$1 = "3.1.8-master-20230307.0";
20035
+ const version$1 = "3.1.8";
20035
20036
  createVuetify$1.version = version$1;
20036
20037
 
20037
20038
  // Vue's inject() can only be used in setup
@@ -20043,7 +20044,7 @@
20043
20044
  }
20044
20045
  }
20045
20046
 
20046
- const version = "3.1.8-master-20230307.0";
20047
+ const version = "3.1.8";
20047
20048
 
20048
20049
  const createVuetify = function () {
20049
20050
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};