@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.
- package/CHANGELOG.md +10 -2
- package/dist/json/attributes.json +0 -528
- package/dist/json/importMap.json +90 -90
- package/dist/json/tags.json +2 -136
- package/dist/json/web-types.json +20 -1210
- package/dist/vuetify-labs.css +242 -99
- package/dist/vuetify-labs.esm.js +33 -32
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +33 -32
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +261 -118
- package/dist/vuetify.d.ts +27 -27
- package/dist/vuetify.esm.js +33 -32
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +33 -32
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +209 -210
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +1 -1
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.mjs +1 -0
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +0 -2
- package/lib/components/VSnackbar/VSnackbar.mjs +6 -8
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +0 -2
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.mjs +1 -0
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.mjs +1 -0
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/transitions/createTransition.mjs +1 -1
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/composables/display.mjs +13 -10
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/loader.mjs.map +1 -1
- package/lib/composables/theme.mjs +7 -10
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.ts +27 -27
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/locale/index.mjs +1 -1
- package/lib/locale/index.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +0 -4
- package/lib/styles/generic/_transitions.scss +111 -9
- package/lib/styles/main.css +212 -67
- package/package.json +16 -3
package/dist/vuetify-labs.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.1.8
|
|
2
|
+
* Vuetify v3.1.8
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1671,17 +1671,9 @@ function createTheme(options) {
|
|
|
1671
1671
|
if (current.value.dark) {
|
|
1672
1672
|
createCssClass(lines, ':root', ['color-scheme: dark']);
|
|
1673
1673
|
}
|
|
1674
|
+
createCssClass(lines, ':root', genCssVariables(current.value));
|
|
1674
1675
|
for (const [themeName, theme] of Object.entries(computedThemes.value)) {
|
|
1675
|
-
|
|
1676
|
-
variables,
|
|
1677
|
-
dark
|
|
1678
|
-
} = theme;
|
|
1679
|
-
createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${dark ? 'dark' : 'normal'}`, ...genCssVariables(theme), ...Object.keys(variables).map(key => {
|
|
1680
|
-
const value = variables[key];
|
|
1681
|
-
const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
|
|
1682
|
-
const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
|
|
1683
|
-
return `--v-${key}: ${rgb ?? value}`;
|
|
1684
|
-
})]);
|
|
1676
|
+
createCssClass(lines, `.v-theme--${themeName}`, [`color-scheme: ${theme.dark ? 'dark' : 'normal'}`, ...genCssVariables(theme)]);
|
|
1685
1677
|
}
|
|
1686
1678
|
const bgLines = [];
|
|
1687
1679
|
const fgLines = [];
|
|
@@ -1794,6 +1786,11 @@ function genCssVariables(theme) {
|
|
|
1794
1786
|
variables.push(`--v-theme-${key}-overlay-multiplier: ${getLuma(value) > 0.18 ? lightOverlay : darkOverlay}`);
|
|
1795
1787
|
}
|
|
1796
1788
|
}
|
|
1789
|
+
for (const [key, value] of Object.entries(theme.variables)) {
|
|
1790
|
+
const color = typeof value === 'string' && value.startsWith('#') ? parseColor$1(value) : undefined;
|
|
1791
|
+
const rgb = color ? `${color.r}, ${color.g}, ${color.b}` : undefined;
|
|
1792
|
+
variables.push(`--v-${key}: ${rgb ?? value}`);
|
|
1793
|
+
}
|
|
1797
1794
|
return variables;
|
|
1798
1795
|
}
|
|
1799
1796
|
|
|
@@ -2023,7 +2020,7 @@ const defaultRtl = {
|
|
|
2023
2020
|
en: false,
|
|
2024
2021
|
es: false,
|
|
2025
2022
|
et: false,
|
|
2026
|
-
fa:
|
|
2023
|
+
fa: true,
|
|
2027
2024
|
fi: false,
|
|
2028
2025
|
fr: false,
|
|
2029
2026
|
hr: false,
|
|
@@ -2184,7 +2181,7 @@ const VDefaultsProvider = genericComponent(false)({
|
|
|
2184
2181
|
// Types
|
|
2185
2182
|
|
|
2186
2183
|
function createCssTransition(name) {
|
|
2187
|
-
let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '
|
|
2184
|
+
let origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'center center';
|
|
2188
2185
|
let mode = arguments.length > 2 ? arguments[2] : undefined;
|
|
2189
2186
|
return genericComponent()({
|
|
2190
2187
|
name,
|
|
@@ -6175,6 +6172,7 @@ const VTextField = genericComponent()({
|
|
|
6175
6172
|
"id": id.value,
|
|
6176
6173
|
"active": isActive.value || isDirty.value,
|
|
6177
6174
|
"dirty": isDirty.value || props.dirty,
|
|
6175
|
+
"disabled": isDisabled.value,
|
|
6178
6176
|
"focused": isFocused.value,
|
|
6179
6177
|
"error": isValid.value === false
|
|
6180
6178
|
}), {
|
|
@@ -9123,8 +9121,8 @@ function getClientWidth(isHydrate) {
|
|
|
9123
9121
|
function getClientHeight(isHydrate) {
|
|
9124
9122
|
return IN_BROWSER && !isHydrate ? window.innerHeight : 0;
|
|
9125
9123
|
}
|
|
9126
|
-
function getPlatform() {
|
|
9127
|
-
const userAgent = IN_BROWSER ? window.navigator.userAgent : 'ssr';
|
|
9124
|
+
function getPlatform(isHydrate) {
|
|
9125
|
+
const userAgent = IN_BROWSER && !isHydrate ? window.navigator.userAgent : 'ssr';
|
|
9128
9126
|
function match(regexp) {
|
|
9129
9127
|
return Boolean(userAgent.match(regexp));
|
|
9130
9128
|
}
|
|
@@ -9139,7 +9137,6 @@ function getPlatform() {
|
|
|
9139
9137
|
const win = match(/win/i);
|
|
9140
9138
|
const mac = match(/mac/i);
|
|
9141
9139
|
const linux = match(/linux/i);
|
|
9142
|
-
const ssr = match(/ssr/i);
|
|
9143
9140
|
return {
|
|
9144
9141
|
android,
|
|
9145
9142
|
ios,
|
|
@@ -9153,7 +9150,7 @@ function getPlatform() {
|
|
|
9153
9150
|
mac,
|
|
9154
9151
|
linux,
|
|
9155
9152
|
touch: SUPPORTS_TOUCH,
|
|
9156
|
-
ssr
|
|
9153
|
+
ssr: userAgent === 'ssr'
|
|
9157
9154
|
};
|
|
9158
9155
|
}
|
|
9159
9156
|
function createDisplay(options, ssr) {
|
|
@@ -9162,13 +9159,17 @@ function createDisplay(options, ssr) {
|
|
|
9162
9159
|
mobileBreakpoint
|
|
9163
9160
|
} = parseDisplayOptions(options);
|
|
9164
9161
|
const height = ref(getClientHeight(ssr));
|
|
9165
|
-
const platform = getPlatform();
|
|
9162
|
+
const platform = shallowRef(getPlatform(ssr));
|
|
9166
9163
|
const state = reactive({});
|
|
9167
9164
|
const width = ref(getClientWidth(ssr));
|
|
9168
|
-
function
|
|
9165
|
+
function updateSize() {
|
|
9169
9166
|
height.value = getClientHeight();
|
|
9170
9167
|
width.value = getClientWidth();
|
|
9171
9168
|
}
|
|
9169
|
+
function update() {
|
|
9170
|
+
updateSize();
|
|
9171
|
+
platform.value = getPlatform();
|
|
9172
|
+
}
|
|
9172
9173
|
|
|
9173
9174
|
// eslint-disable-next-line max-statements
|
|
9174
9175
|
watchEffect(() => {
|
|
@@ -9180,7 +9181,7 @@ function createDisplay(options, ssr) {
|
|
|
9180
9181
|
const xxl = width.value >= thresholds.xxl;
|
|
9181
9182
|
const name = xs ? 'xs' : sm ? 'sm' : md ? 'md' : lg ? 'lg' : xl ? 'xl' : 'xxl';
|
|
9182
9183
|
const breakpointValue = typeof mobileBreakpoint === 'number' ? mobileBreakpoint : thresholds[mobileBreakpoint];
|
|
9183
|
-
const mobile =
|
|
9184
|
+
const mobile = width.value < breakpointValue;
|
|
9184
9185
|
state.xs = xs;
|
|
9185
9186
|
state.sm = sm;
|
|
9186
9187
|
state.md = md;
|
|
@@ -9200,11 +9201,11 @@ function createDisplay(options, ssr) {
|
|
|
9200
9201
|
state.width = width.value;
|
|
9201
9202
|
state.mobile = mobile;
|
|
9202
9203
|
state.mobileBreakpoint = mobileBreakpoint;
|
|
9203
|
-
state.platform = platform;
|
|
9204
|
+
state.platform = platform.value;
|
|
9204
9205
|
state.thresholds = thresholds;
|
|
9205
9206
|
});
|
|
9206
9207
|
if (IN_BROWSER) {
|
|
9207
|
-
window.addEventListener('resize',
|
|
9208
|
+
window.addEventListener('resize', updateSize, {
|
|
9208
9209
|
passive: true
|
|
9209
9210
|
});
|
|
9210
9211
|
}
|
|
@@ -14217,6 +14218,7 @@ const VFileInput = genericComponent()({
|
|
|
14217
14218
|
"id": id.value,
|
|
14218
14219
|
"active": isDirty.value || isFocused.value,
|
|
14219
14220
|
"dirty": isDirty.value,
|
|
14221
|
+
"disabled": isDisabled.value,
|
|
14220
14222
|
"focused": isFocused.value,
|
|
14221
14223
|
"error": isValid.value === false
|
|
14222
14224
|
}), {
|
|
@@ -16853,19 +16855,17 @@ const VSnackbar = genericComponent()({
|
|
|
16853
16855
|
"modelValue": isActive.value,
|
|
16854
16856
|
"onUpdate:modelValue": $event => isActive.value = $event,
|
|
16855
16857
|
"contentProps": mergeProps({
|
|
16856
|
-
|
|
16858
|
+
class: ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
|
|
16859
|
+
style: [locationStyles.value, colorStyles.value],
|
|
16860
|
+
onPointerenter,
|
|
16861
|
+
onPointerleave: startTimeout
|
|
16857
16862
|
}, overlayProps.contentProps),
|
|
16858
16863
|
"persistent": true,
|
|
16859
16864
|
"noClickAnimation": true,
|
|
16860
16865
|
"scrim": false,
|
|
16861
16866
|
"scrollStrategy": "none"
|
|
16862
16867
|
}, scopeId), {
|
|
16863
|
-
default: () => [createVNode("div", {
|
|
16864
|
-
"class": ['v-snackbar__wrapper', themeClasses.value, colorClasses.value, roundedClasses.value, variantClasses.value],
|
|
16865
|
-
"style": [colorStyles.value],
|
|
16866
|
-
"onPointerenter": onPointerenter,
|
|
16867
|
-
"onPointerleave": startTimeout
|
|
16868
|
-
}, [genOverlays(false, 'v-snackbar'), slots.default && createVNode("div", {
|
|
16868
|
+
default: () => [genOverlays(false, 'v-snackbar'), slots.default && createVNode("div", {
|
|
16869
16869
|
"class": "v-snackbar__content",
|
|
16870
16870
|
"role": "status",
|
|
16871
16871
|
"aria-live": "polite"
|
|
@@ -16880,7 +16880,7 @@ const VSnackbar = genericComponent()({
|
|
|
16880
16880
|
default: () => [createVNode("div", {
|
|
16881
16881
|
"class": "v-snackbar__actions"
|
|
16882
16882
|
}, [slots.actions()])]
|
|
16883
|
-
})]
|
|
16883
|
+
})],
|
|
16884
16884
|
activator: slots.activator
|
|
16885
16885
|
});
|
|
16886
16886
|
});
|
|
@@ -17482,6 +17482,7 @@ const VTextarea = genericComponent()({
|
|
|
17482
17482
|
}, fieldProps, {
|
|
17483
17483
|
"active": isActive.value || isDirty.value,
|
|
17484
17484
|
"dirty": isDirty.value || props.dirty,
|
|
17485
|
+
"disabled": isDisabled.value,
|
|
17485
17486
|
"focused": isFocused.value,
|
|
17486
17487
|
"error": isValid.value === false
|
|
17487
17488
|
}), {
|
|
@@ -20027,7 +20028,7 @@ function createVuetify$1() {
|
|
|
20027
20028
|
locale
|
|
20028
20029
|
};
|
|
20029
20030
|
}
|
|
20030
|
-
const version$1 = "3.1.8
|
|
20031
|
+
const version$1 = "3.1.8";
|
|
20031
20032
|
createVuetify$1.version = version$1;
|
|
20032
20033
|
|
|
20033
20034
|
// Vue's inject() can only be used in setup
|
|
@@ -20039,7 +20040,7 @@ function inject(key) {
|
|
|
20039
20040
|
}
|
|
20040
20041
|
}
|
|
20041
20042
|
|
|
20042
|
-
const version = "3.1.8
|
|
20043
|
+
const version = "3.1.8";
|
|
20043
20044
|
|
|
20044
20045
|
const createVuetify = function () {
|
|
20045
20046
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|