vuetify 3.6.10 → 3.6.12
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/json/attributes.json +60 -72
- package/dist/json/importMap-labs.json +24 -24
- package/dist/json/importMap.json +170 -170
- package/dist/json/tags.json +4 -7
- package/dist/json/web-types.json +102 -121
- package/dist/vuetify-labs.css +1949 -1927
- package/dist/vuetify-labs.d.ts +658 -781
- package/dist/vuetify-labs.esm.js +141 -141
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +141 -141
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1153 -1131
- package/dist/vuetify.d.ts +619 -712
- package/dist/vuetify.esm.js +71 -60
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +71 -60
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +62 -57
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.mts +3 -3
- package/lib/blueprints/md1.d.mts +3 -3
- package/lib/blueprints/md2.d.mts +3 -3
- package/lib/blueprints/md3.d.mts +3 -3
- package/lib/components/VAutocomplete/index.d.mts +25 -31
- package/lib/components/VBottomSheet/index.d.mts +10 -10
- package/lib/components/VCheckbox/index.d.mts +2 -8
- package/lib/components/VCombobox/index.d.mts +25 -31
- package/lib/components/VDataTable/VDataTableFooter.mjs +5 -4
- package/lib/components/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +108 -108
- package/lib/components/VDatePicker/VDatePickerControls.mjs +5 -4
- package/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +70 -55
- package/lib/components/VDialog/index.d.mts +28 -28
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs +6 -2
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +48 -66
- package/lib/components/VField/VField.css +11 -6
- package/lib/components/VField/VField.mjs +5 -7
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +6 -2
- package/lib/components/VField/index.d.mts +6 -12
- package/lib/components/VFileInput/index.d.mts +6 -12
- package/lib/components/VInput/VInput.css +5 -5
- package/lib/components/VInput/VInput.mjs +1 -4
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.sass +1 -1
- package/lib/components/VInput/index.d.mts +2 -8
- package/lib/components/VMenu/index.d.mts +32 -32
- package/lib/components/VOverlay/VOverlay.mjs +7 -2
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +10 -10
- package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.css +17 -0
- package/lib/components/VProgressLinear/VProgressLinear.mjs +6 -5
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +11 -0
- package/lib/components/VRadio/VRadio.mjs +8 -5
- package/lib/components/VRadio/VRadio.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.mts +2 -8
- package/lib/components/VRangeSlider/index.d.mts +2 -8
- package/lib/components/VSelect/index.d.mts +25 -31
- package/lib/components/VSlider/index.d.mts +2 -8
- package/lib/components/VSnackbar/index.d.mts +28 -28
- package/lib/components/VSpeedDial/index.d.mts +14 -14
- package/lib/components/VSwitch/index.d.mts +2 -8
- package/lib/components/VTextField/VTextField.mjs +1 -1
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.mts +18 -24
- package/lib/components/VTextarea/VTextarea.mjs +5 -5
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.mts +72 -87
- package/lib/components/VTooltip/index.d.mts +32 -32
- package/lib/components/index.d.mts +646 -739
- package/lib/composables/calendar.mjs +10 -4
- package/lib/composables/calendar.mjs.map +1 -1
- package/lib/composables/date/DateAdapter.mjs.map +1 -1
- package/lib/composables/date/adapters/vuetify.mjs +15 -13
- package/lib/composables/date/adapters/vuetify.mjs.map +1 -1
- package/lib/composables/teleport.mjs +2 -2
- package/lib/composables/teleport.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +63 -63
- package/lib/labs/VCalendar/VCalendar.mjs +7 -6
- package/lib/labs/VCalendar/VCalendar.mjs.map +1 -1
- package/lib/labs/VCalendar/index.d.mts +6 -0
- package/lib/labs/VDateInput/index.d.mts +39 -39
- package/lib/labs/VNumberInput/VNumberInput.mjs +49 -56
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/index.d.mts +6 -12
- package/lib/labs/VSnackbarQueue/index.d.mts +37 -37
- package/lib/labs/VStepperVertical/VStepperVertical.mjs +2 -0
- package/lib/labs/VStepperVertical/VStepperVertical.mjs.map +1 -1
- package/lib/labs/VStepperVertical/index.d.mts +0 -18
- package/lib/labs/VTimePicker/VTimePicker.mjs +5 -5
- package/lib/labs/VTimePicker/VTimePicker.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.mjs +2 -2
- package/lib/labs/VTimePicker/VTimePickerClock.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +2 -2
- package/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
- package/lib/labs/VTimePicker/index.d.mts +18 -18
- package/lib/labs/VTreeview/VTreeview.mjs +5 -12
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +18 -30
- package/lib/labs/components.d.mts +124 -154
- package/package.json +2 -2
package/dist/vuetify.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.6.
|
|
2
|
+
* Vuetify v3.6.12
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -5209,6 +5209,7 @@ const VProgressLinear = genericComponent()({
|
|
|
5209
5209
|
const normalizedValue = computed(() => clamp(parseFloat(progress.value) / max.value * 100, 0, 100));
|
|
5210
5210
|
const isReversed = computed(() => isRtl.value !== props.reverse);
|
|
5211
5211
|
const transition = computed(() => props.indeterminate ? 'fade-transition' : 'slide-x-transition');
|
|
5212
|
+
const isForcedColorsModeActive = IN_BROWSER && window.matchMedia?.('(forced-colors: active)').matches;
|
|
5212
5213
|
function handleClick(e) {
|
|
5213
5214
|
if (!intersectionRef.value) return;
|
|
5214
5215
|
const {
|
|
@@ -5256,13 +5257,13 @@ const VProgressLinear = genericComponent()({
|
|
|
5256
5257
|
'--v-progress-linear-stream-to': convertToUnit(height.value * (isReversed.value ? 1 : -1))
|
|
5257
5258
|
}
|
|
5258
5259
|
}, null), createVNode("div", {
|
|
5259
|
-
"class": ['v-progress-linear__background', backgroundColorClasses.value],
|
|
5260
|
+
"class": ['v-progress-linear__background', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
|
|
5260
5261
|
"style": [backgroundColorStyles.value, {
|
|
5261
5262
|
opacity: parseFloat(props.bgOpacity),
|
|
5262
5263
|
width: props.stream ? 0 : undefined
|
|
5263
5264
|
}]
|
|
5264
5265
|
}, null), createVNode("div", {
|
|
5265
|
-
"class": ['v-progress-linear__buffer', bufferColorClasses.value],
|
|
5266
|
+
"class": ['v-progress-linear__buffer', !isForcedColorsModeActive ? bufferColorClasses.value : undefined],
|
|
5266
5267
|
"style": [bufferColorStyles.value, {
|
|
5267
5268
|
opacity: parseFloat(props.bufferOpacity),
|
|
5268
5269
|
width: convertToUnit(normalizedBuffer.value, '%')
|
|
@@ -5271,7 +5272,7 @@ const VProgressLinear = genericComponent()({
|
|
|
5271
5272
|
"name": transition.value
|
|
5272
5273
|
}, {
|
|
5273
5274
|
default: () => [!props.indeterminate ? createVNode("div", {
|
|
5274
|
-
"class": ['v-progress-linear__determinate', barColorClasses.value],
|
|
5275
|
+
"class": ['v-progress-linear__determinate', !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
|
5275
5276
|
"style": [barColorStyles.value, {
|
|
5276
5277
|
width: convertToUnit(normalizedValue.value, '%')
|
|
5277
5278
|
}]
|
|
@@ -5279,7 +5280,7 @@ const VProgressLinear = genericComponent()({
|
|
|
5279
5280
|
"class": "v-progress-linear__indeterminate"
|
|
5280
5281
|
}, [['long', 'short'].map(bar => createVNode("div", {
|
|
5281
5282
|
"key": bar,
|
|
5282
|
-
"class": ['v-progress-linear__indeterminate', bar, barColorClasses.value],
|
|
5283
|
+
"class": ['v-progress-linear__indeterminate', bar, !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
|
5283
5284
|
"style": barColorStyles.value
|
|
5284
5285
|
}, null))])]
|
|
5285
5286
|
}), slots.default && createVNode("div", {
|
|
@@ -7039,10 +7040,7 @@ function useValidation(props) {
|
|
|
7039
7040
|
const makeVInputProps = propsFactory({
|
|
7040
7041
|
id: String,
|
|
7041
7042
|
appendIcon: IconValue,
|
|
7042
|
-
centerAffix:
|
|
7043
|
-
type: Boolean,
|
|
7044
|
-
default: true
|
|
7045
|
-
},
|
|
7043
|
+
centerAffix: Boolean,
|
|
7046
7044
|
prependIcon: IconValue,
|
|
7047
7045
|
hideDetails: [Boolean, String],
|
|
7048
7046
|
hideSpinButtons: Boolean,
|
|
@@ -10833,12 +10831,9 @@ function useStack(isActive, zIndex, disableGlobalStack) {
|
|
|
10833
10831
|
}
|
|
10834
10832
|
|
|
10835
10833
|
// Utilities
|
|
10836
|
-
|
|
10837
|
-
// Types
|
|
10838
|
-
|
|
10839
10834
|
function useTeleport(target) {
|
|
10840
10835
|
const teleportTarget = computed(() => {
|
|
10841
|
-
const _target = target
|
|
10836
|
+
const _target = target();
|
|
10842
10837
|
if (_target === true || !IN_BROWSER) return undefined;
|
|
10843
10838
|
const targetElement = _target === false ? document.body : typeof _target === 'string' ? document.querySelector(_target) : _target;
|
|
10844
10839
|
if (targetElement == null) {
|
|
@@ -11059,10 +11054,15 @@ const VOverlay = genericComponent()({
|
|
|
11059
11054
|
isActive,
|
|
11060
11055
|
isTop: localTop
|
|
11061
11056
|
});
|
|
11062
|
-
const potentialShadowDomRoot = computed(() => activatorEl?.value?.getRootNode());
|
|
11063
11057
|
const {
|
|
11064
11058
|
teleportTarget
|
|
11065
|
-
} = useTeleport(
|
|
11059
|
+
} = useTeleport(() => {
|
|
11060
|
+
const target = props.attach || props.contained;
|
|
11061
|
+
if (target) return target;
|
|
11062
|
+
const rootNode = activatorEl?.value?.getRootNode();
|
|
11063
|
+
if (rootNode instanceof ShadowRoot) return rootNode;
|
|
11064
|
+
return false;
|
|
11065
|
+
});
|
|
11066
11066
|
const {
|
|
11067
11067
|
dimensionStyles
|
|
11068
11068
|
} = useDimension(props);
|
|
@@ -11555,10 +11555,7 @@ const makeVFieldProps = propsFactory({
|
|
|
11555
11555
|
default: '$clear'
|
|
11556
11556
|
},
|
|
11557
11557
|
active: Boolean,
|
|
11558
|
-
centerAffix:
|
|
11559
|
-
type: Boolean,
|
|
11560
|
-
default: undefined
|
|
11561
|
-
},
|
|
11558
|
+
centerAffix: Boolean,
|
|
11562
11559
|
color: String,
|
|
11563
11560
|
baseColor: String,
|
|
11564
11561
|
dirty: Boolean,
|
|
@@ -11625,8 +11622,9 @@ const VField = genericComponent()({
|
|
|
11625
11622
|
const {
|
|
11626
11623
|
rtlClasses
|
|
11627
11624
|
} = useRtl();
|
|
11625
|
+
const isSingleLine = computed(() => props.singleLine || props.centerAffix);
|
|
11628
11626
|
const isActive = computed(() => props.dirty || props.active);
|
|
11629
|
-
const hasLabel = computed(() => !
|
|
11627
|
+
const hasLabel = computed(() => !isSingleLine.value && !!(props.label || slots.label));
|
|
11630
11628
|
const uid = getUid();
|
|
11631
11629
|
const id = computed(() => props.id || `input-${uid}`);
|
|
11632
11630
|
const messagesId = computed(() => `${id.value}-messages`);
|
|
@@ -11715,7 +11713,7 @@ const VField = genericComponent()({
|
|
|
11715
11713
|
"class": ['v-field', {
|
|
11716
11714
|
'v-field--active': isActive.value,
|
|
11717
11715
|
'v-field--appended': hasAppend,
|
|
11718
|
-
'v-field--center-affix': props.centerAffix
|
|
11716
|
+
'v-field--center-affix': props.centerAffix,
|
|
11719
11717
|
'v-field--disabled': props.disabled,
|
|
11720
11718
|
'v-field--dirty': props.dirty,
|
|
11721
11719
|
'v-field--error': props.error,
|
|
@@ -11724,7 +11722,7 @@ const VField = genericComponent()({
|
|
|
11724
11722
|
'v-field--persistent-clear': props.persistentClear,
|
|
11725
11723
|
'v-field--prepended': hasPrepend,
|
|
11726
11724
|
'v-field--reverse': props.reverse,
|
|
11727
|
-
'v-field--single-line':
|
|
11725
|
+
'v-field--single-line': isSingleLine.value,
|
|
11728
11726
|
'v-field--no-label': !label(),
|
|
11729
11727
|
[`v-field--variant-${props.variant}`]: true
|
|
11730
11728
|
}, themeClasses.value, backgroundColorClasses.value, focusClasses.value, loaderClasses.value, roundedClasses.value, rtlClasses.value, props.class],
|
|
@@ -11959,7 +11957,6 @@ const VTextField = genericComponent()({
|
|
|
11959
11957
|
}, props.class],
|
|
11960
11958
|
"style": props.style
|
|
11961
11959
|
}, rootAttrs, inputProps, {
|
|
11962
|
-
"centerAffix": !isPlainOrUnderlined.value,
|
|
11963
11960
|
"focused": isFocused.value
|
|
11964
11961
|
}), {
|
|
11965
11962
|
...slots,
|
|
@@ -11985,6 +11982,7 @@ const VTextField = genericComponent()({
|
|
|
11985
11982
|
"dirty": isDirty.value || props.dirty,
|
|
11986
11983
|
"disabled": isDisabled.value,
|
|
11987
11984
|
"focused": isFocused.value,
|
|
11985
|
+
"centerAffix": props.centerAffix,
|
|
11988
11986
|
"error": isValid.value === false
|
|
11989
11987
|
}), {
|
|
11990
11988
|
...slots,
|
|
@@ -17502,13 +17500,14 @@ const firstDay = {
|
|
|
17502
17500
|
ZA: 0,
|
|
17503
17501
|
ZW: 0
|
|
17504
17502
|
};
|
|
17505
|
-
function getWeekArray(date, locale) {
|
|
17503
|
+
function getWeekArray(date, locale, firstDayOfWeek) {
|
|
17506
17504
|
const weeks = [];
|
|
17507
17505
|
let currentWeek = [];
|
|
17508
17506
|
const firstDayOfMonth = startOfMonth(date);
|
|
17509
17507
|
const lastDayOfMonth = endOfMonth(date);
|
|
17510
|
-
const
|
|
17511
|
-
const
|
|
17508
|
+
const first = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
|
17509
|
+
const firstDayWeekIndex = (firstDayOfMonth.getDay() - first + 7) % 7;
|
|
17510
|
+
const lastDayWeekIndex = (lastDayOfMonth.getDay() - first + 7) % 7;
|
|
17512
17511
|
for (let i = 0; i < firstDayWeekIndex; i++) {
|
|
17513
17512
|
const adjacentDay = new Date(firstDayOfMonth);
|
|
17514
17513
|
adjacentDay.setDate(adjacentDay.getDate() - (firstDayWeekIndex - i));
|
|
@@ -17536,9 +17535,10 @@ function getWeekArray(date, locale) {
|
|
|
17536
17535
|
}
|
|
17537
17536
|
return weeks;
|
|
17538
17537
|
}
|
|
17539
|
-
function startOfWeek(date, locale) {
|
|
17538
|
+
function startOfWeek(date, locale, firstDayOfWeek) {
|
|
17539
|
+
const day = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
|
17540
17540
|
const d = new Date(date);
|
|
17541
|
-
while (d.getDay() !==
|
|
17541
|
+
while (d.getDay() !== day) {
|
|
17542
17542
|
d.setDate(d.getDate() - 1);
|
|
17543
17543
|
}
|
|
17544
17544
|
return d;
|
|
@@ -17579,8 +17579,8 @@ function date(value) {
|
|
|
17579
17579
|
return null;
|
|
17580
17580
|
}
|
|
17581
17581
|
const sundayJanuarySecond2000 = new Date(2000, 0, 2);
|
|
17582
|
-
function getWeekdays(locale) {
|
|
17583
|
-
const daysFromSunday = firstDay[locale.slice(-2).toUpperCase()];
|
|
17582
|
+
function getWeekdays(locale, firstDayOfWeek) {
|
|
17583
|
+
const daysFromSunday = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
|
17584
17584
|
return createRange(7).map(i => {
|
|
17585
17585
|
const weekday = new Date(sundayJanuarySecond2000);
|
|
17586
17586
|
weekday.setDate(sundayJanuarySecond2000.getDate() + daysFromSunday + i);
|
|
@@ -17978,11 +17978,11 @@ class VuetifyDateAdapter {
|
|
|
17978
17978
|
addMonths(date, amount) {
|
|
17979
17979
|
return addMonths(date, amount);
|
|
17980
17980
|
}
|
|
17981
|
-
getWeekArray(date) {
|
|
17982
|
-
return getWeekArray(date, this.locale);
|
|
17981
|
+
getWeekArray(date, firstDayOfWeek) {
|
|
17982
|
+
return getWeekArray(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
|
17983
17983
|
}
|
|
17984
|
-
startOfWeek(date) {
|
|
17985
|
-
return startOfWeek(date, this.locale);
|
|
17984
|
+
startOfWeek(date, firstDayOfWeek) {
|
|
17985
|
+
return startOfWeek(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
|
17986
17986
|
}
|
|
17987
17987
|
endOfWeek(date) {
|
|
17988
17988
|
return endOfWeek(date, this.locale);
|
|
@@ -18041,8 +18041,8 @@ class VuetifyDateAdapter {
|
|
|
18041
18041
|
getDiff(date, comparing, unit) {
|
|
18042
18042
|
return getDiff(date, comparing, unit);
|
|
18043
18043
|
}
|
|
18044
|
-
getWeekdays() {
|
|
18045
|
-
return getWeekdays(this.locale);
|
|
18044
|
+
getWeekdays(firstDayOfWeek) {
|
|
18045
|
+
return getWeekdays(this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
|
18046
18046
|
}
|
|
18047
18047
|
getYear(date) {
|
|
18048
18048
|
return getYear(date);
|
|
@@ -19463,19 +19463,19 @@ const VPagination = genericComponent()({
|
|
|
19463
19463
|
|
|
19464
19464
|
const makeVDataTableFooterProps = propsFactory({
|
|
19465
19465
|
prevIcon: {
|
|
19466
|
-
type:
|
|
19466
|
+
type: IconValue,
|
|
19467
19467
|
default: '$prev'
|
|
19468
19468
|
},
|
|
19469
19469
|
nextIcon: {
|
|
19470
|
-
type:
|
|
19470
|
+
type: IconValue,
|
|
19471
19471
|
default: '$next'
|
|
19472
19472
|
},
|
|
19473
19473
|
firstIcon: {
|
|
19474
|
-
type:
|
|
19474
|
+
type: IconValue,
|
|
19475
19475
|
default: '$first'
|
|
19476
19476
|
},
|
|
19477
19477
|
lastIcon: {
|
|
19478
|
-
type:
|
|
19478
|
+
type: IconValue,
|
|
19479
19479
|
default: '$last'
|
|
19480
19480
|
},
|
|
19481
19481
|
itemsPerPageText: {
|
|
@@ -21410,15 +21410,15 @@ const makeVDatePickerControlsProps = propsFactory({
|
|
|
21410
21410
|
default: false
|
|
21411
21411
|
},
|
|
21412
21412
|
nextIcon: {
|
|
21413
|
-
type:
|
|
21413
|
+
type: IconValue,
|
|
21414
21414
|
default: '$next'
|
|
21415
21415
|
},
|
|
21416
21416
|
prevIcon: {
|
|
21417
|
-
type:
|
|
21417
|
+
type: IconValue,
|
|
21418
21418
|
default: '$prev'
|
|
21419
21419
|
},
|
|
21420
21420
|
modeIcon: {
|
|
21421
|
-
type:
|
|
21421
|
+
type: IconValue,
|
|
21422
21422
|
default: '$subgroup'
|
|
21423
21423
|
},
|
|
21424
21424
|
text: String,
|
|
@@ -21604,7 +21604,8 @@ const makeCalendarProps = propsFactory({
|
|
|
21604
21604
|
weeksInMonth: {
|
|
21605
21605
|
type: String,
|
|
21606
21606
|
default: 'dynamic'
|
|
21607
|
-
}
|
|
21607
|
+
},
|
|
21608
|
+
firstDayOfWeek: [Number, String]
|
|
21608
21609
|
}, 'calendar');
|
|
21609
21610
|
function useCalendar(props) {
|
|
21610
21611
|
const adapter = useDate();
|
|
@@ -21625,8 +21626,12 @@ function useCalendar(props) {
|
|
|
21625
21626
|
const date = adapter.setYear(adapter.startOfMonth(adapter.date()), adapter.getYear(year.value));
|
|
21626
21627
|
return adapter.setMonth(date, value);
|
|
21627
21628
|
}, v => adapter.getMonth(v));
|
|
21629
|
+
const weekDays = computed(() => {
|
|
21630
|
+
const firstDayOfWeek = Number(props.firstDayOfWeek ?? 0);
|
|
21631
|
+
return props.weekdays.map(day => (day + firstDayOfWeek) % 7);
|
|
21632
|
+
});
|
|
21628
21633
|
const weeksInMonth = computed(() => {
|
|
21629
|
-
const weeks = adapter.getWeekArray(month.value);
|
|
21634
|
+
const weeks = adapter.getWeekArray(month.value, props.firstDayOfWeek);
|
|
21630
21635
|
const days = weeks.flat();
|
|
21631
21636
|
|
|
21632
21637
|
// Make sure there's always 6 weeks in month (6 * 7 days)
|
|
@@ -21647,7 +21652,7 @@ function useCalendar(props) {
|
|
|
21647
21652
|
});
|
|
21648
21653
|
function genDays(days, today) {
|
|
21649
21654
|
return days.filter(date => {
|
|
21650
|
-
return
|
|
21655
|
+
return weekDays.value.includes(adapter.toJsDate(date).getDay());
|
|
21651
21656
|
}).map((date, index) => {
|
|
21652
21657
|
const isoDate = adapter.toISO(date);
|
|
21653
21658
|
const isAdjacent = !adapter.isSameMonth(date, month.value);
|
|
@@ -21675,7 +21680,7 @@ function useCalendar(props) {
|
|
|
21675
21680
|
});
|
|
21676
21681
|
}
|
|
21677
21682
|
const daysInWeek = computed(() => {
|
|
21678
|
-
const lastDay = adapter.startOfWeek(displayValue.value);
|
|
21683
|
+
const lastDay = adapter.startOfWeek(displayValue.value, props.firstDayOfWeek);
|
|
21679
21684
|
const week = [];
|
|
21680
21685
|
for (let day = 0; day <= 6; day++) {
|
|
21681
21686
|
week.push(adapter.addDays(lastDay, day));
|
|
@@ -21713,6 +21718,7 @@ function useCalendar(props) {
|
|
|
21713
21718
|
genDays,
|
|
21714
21719
|
model,
|
|
21715
21720
|
weeksInMonth,
|
|
21721
|
+
weekDays,
|
|
21716
21722
|
weekNumbers
|
|
21717
21723
|
};
|
|
21718
21724
|
}
|
|
@@ -21843,7 +21849,7 @@ const VDatePickerMonth = genericComponent()({
|
|
|
21843
21849
|
"ref": daysRef,
|
|
21844
21850
|
"key": daysInMonth.value[0].date?.toString(),
|
|
21845
21851
|
"class": "v-date-picker-month__days"
|
|
21846
|
-
}, [!props.hideWeekdays && adapter.getWeekdays().map(weekDay => createVNode("div", {
|
|
21852
|
+
}, [!props.hideWeekdays && adapter.getWeekdays(props.firstDayOfWeek).map(weekDay => createVNode("div", {
|
|
21847
21853
|
"class": ['v-date-picker-month__day', 'v-date-picker-month__weekday']
|
|
21848
21854
|
}, [weekDay])), daysInMonth.value.map((item, i) => {
|
|
21849
21855
|
const slotProps = {
|
|
@@ -22713,8 +22719,10 @@ const allowedVariants = ['default', 'accordion', 'inset', 'popout'];
|
|
|
22713
22719
|
const makeVExpansionPanelsProps = propsFactory({
|
|
22714
22720
|
flat: Boolean,
|
|
22715
22721
|
...makeGroupProps(),
|
|
22716
|
-
...makeVExpansionPanelProps(),
|
|
22722
|
+
...pick(makeVExpansionPanelProps(), ['bgColor', 'collapseIcon', 'color', 'eager', 'elevation', 'expandIcon', 'focusable', 'hideActions', 'readonly', 'ripple', 'rounded', 'tile', 'static']),
|
|
22717
22723
|
...makeThemeProps(),
|
|
22724
|
+
...makeComponentProps(),
|
|
22725
|
+
...makeTagProps(),
|
|
22718
22726
|
variant: {
|
|
22719
22727
|
type: String,
|
|
22720
22728
|
default: 'default',
|
|
@@ -24671,11 +24679,14 @@ const VRadio = genericComponent()({
|
|
|
24671
24679
|
let {
|
|
24672
24680
|
slots
|
|
24673
24681
|
} = _ref;
|
|
24674
|
-
useRender(() =>
|
|
24675
|
-
|
|
24676
|
-
|
|
24677
|
-
|
|
24678
|
-
|
|
24682
|
+
useRender(() => {
|
|
24683
|
+
const controlProps = VSelectionControl.filterProps(props);
|
|
24684
|
+
return createVNode(VSelectionControl, mergeProps(controlProps, {
|
|
24685
|
+
"class": ['v-radio', props.class],
|
|
24686
|
+
"style": props.style,
|
|
24687
|
+
"type": "radio"
|
|
24688
|
+
}), slots);
|
|
24689
|
+
});
|
|
24679
24690
|
return {};
|
|
24680
24691
|
}
|
|
24681
24692
|
});
|
|
@@ -26998,8 +27009,8 @@ const makeVTextareaProps = propsFactory({
|
|
|
26998
27009
|
},
|
|
26999
27010
|
suffix: String,
|
|
27000
27011
|
modelModifiers: Object,
|
|
27001
|
-
...makeVInputProps(),
|
|
27002
|
-
...makeVFieldProps()
|
|
27012
|
+
...omit(makeVInputProps(), ['centerAffix']),
|
|
27013
|
+
...omit(makeVFieldProps(), ['centerAffix'])
|
|
27003
27014
|
}, 'VTextarea');
|
|
27004
27015
|
const VTextarea = genericComponent()({
|
|
27005
27016
|
name: 'VTextarea',
|
|
@@ -27138,7 +27149,7 @@ const VTextarea = genericComponent()({
|
|
|
27138
27149
|
}, props.class],
|
|
27139
27150
|
"style": props.style
|
|
27140
27151
|
}, rootAttrs, inputProps, {
|
|
27141
|
-
"centerAffix":
|
|
27152
|
+
"centerAffix": false,
|
|
27142
27153
|
"focused": isFocused.value
|
|
27143
27154
|
}), {
|
|
27144
27155
|
...slots,
|
|
@@ -27163,7 +27174,7 @@ const VTextarea = genericComponent()({
|
|
|
27163
27174
|
}, fieldProps, {
|
|
27164
27175
|
"id": id.value,
|
|
27165
27176
|
"active": isActive.value || isDirty.value,
|
|
27166
|
-
"centerAffix":
|
|
27177
|
+
"centerAffix": false,
|
|
27167
27178
|
"dirty": isDirty.value || props.dirty,
|
|
27168
27179
|
"disabled": isDisabled.value,
|
|
27169
27180
|
"focused": isFocused.value,
|
|
@@ -28095,7 +28106,7 @@ function createVuetify$1() {
|
|
|
28095
28106
|
goTo
|
|
28096
28107
|
};
|
|
28097
28108
|
}
|
|
28098
|
-
const version$1 = "3.6.
|
|
28109
|
+
const version$1 = "3.6.12";
|
|
28099
28110
|
createVuetify$1.version = version$1;
|
|
28100
28111
|
|
|
28101
28112
|
// Vue's inject() can only be used in setup
|
|
@@ -28120,7 +28131,7 @@ const createVuetify = function () {
|
|
|
28120
28131
|
...options
|
|
28121
28132
|
});
|
|
28122
28133
|
};
|
|
28123
|
-
const version = "3.6.
|
|
28134
|
+
const version = "3.6.12";
|
|
28124
28135
|
createVuetify.version = version;
|
|
28125
28136
|
|
|
28126
28137
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|