@vuetify/nightly 3.6.11-master.2024-07-08 → 3.6.12-master.2024-07-11
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 +3 -4
- package/dist/json/attributes.json +57 -45
- package/dist/json/importMap.json +146 -146
- package/dist/json/tags.json +4 -1
- package/dist/json/web-types.json +97 -62
- package/dist/vuetify-labs.css +2977 -2955
- package/dist/vuetify-labs.d.ts +614 -688
- package/dist/vuetify-labs.esm.js +95 -74
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +95 -74
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +4804 -4782
- package/dist/vuetify.d.ts +579 -653
- package/dist/vuetify.esm.js +78 -58
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +78 -58
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +67 -65
- 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/VDataIterator/index.d.mts +1 -0
- package/lib/components/VDataTable/VDataTable.mjs +6 -2
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableFooter.mjs +5 -4
- package/lib/components/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +6 -2
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +6 -2
- package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/components/VDataTable/composables/group.mjs +2 -1
- package/lib/components/VDataTable/composables/group.mjs.map +1 -1
- package/lib/components/VDataTable/composables/sort.mjs +1 -1
- package/lib/components/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +130 -129
- 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/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/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 +530 -604
- 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/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +49 -49
- 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 +1 -1
- 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/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/components.d.mts +106 -106
- package/package.json +1 -1
package/dist/vuetify.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.6.
|
2
|
+
* Vuetify v3.6.12-master.2024-07-11
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -5213,6 +5213,7 @@
|
|
5213
5213
|
const normalizedValue = vue.computed(() => clamp(parseFloat(progress.value) / max.value * 100, 0, 100));
|
5214
5214
|
const isReversed = vue.computed(() => isRtl.value !== props.reverse);
|
5215
5215
|
const transition = vue.computed(() => props.indeterminate ? 'fade-transition' : 'slide-x-transition');
|
5216
|
+
const isForcedColorsModeActive = IN_BROWSER && window.matchMedia?.('(forced-colors: active)').matches;
|
5216
5217
|
function handleClick(e) {
|
5217
5218
|
if (!intersectionRef.value) return;
|
5218
5219
|
const {
|
@@ -5260,13 +5261,13 @@
|
|
5260
5261
|
'--v-progress-linear-stream-to': convertToUnit(height.value * (isReversed.value ? 1 : -1))
|
5261
5262
|
}
|
5262
5263
|
}, null), vue.createVNode("div", {
|
5263
|
-
"class": ['v-progress-linear__background', backgroundColorClasses.value],
|
5264
|
+
"class": ['v-progress-linear__background', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
|
5264
5265
|
"style": [backgroundColorStyles.value, {
|
5265
5266
|
opacity: parseFloat(props.bgOpacity),
|
5266
5267
|
width: props.stream ? 0 : undefined
|
5267
5268
|
}]
|
5268
5269
|
}, null), vue.createVNode("div", {
|
5269
|
-
"class": ['v-progress-linear__buffer', bufferColorClasses.value],
|
5270
|
+
"class": ['v-progress-linear__buffer', !isForcedColorsModeActive ? bufferColorClasses.value : undefined],
|
5270
5271
|
"style": [bufferColorStyles.value, {
|
5271
5272
|
opacity: parseFloat(props.bufferOpacity),
|
5272
5273
|
width: convertToUnit(normalizedBuffer.value, '%')
|
@@ -5275,7 +5276,7 @@
|
|
5275
5276
|
"name": transition.value
|
5276
5277
|
}, {
|
5277
5278
|
default: () => [!props.indeterminate ? vue.createVNode("div", {
|
5278
|
-
"class": ['v-progress-linear__determinate', barColorClasses.value],
|
5279
|
+
"class": ['v-progress-linear__determinate', !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
5279
5280
|
"style": [barColorStyles.value, {
|
5280
5281
|
width: convertToUnit(normalizedValue.value, '%')
|
5281
5282
|
}]
|
@@ -5283,7 +5284,7 @@
|
|
5283
5284
|
"class": "v-progress-linear__indeterminate"
|
5284
5285
|
}, [['long', 'short'].map(bar => vue.createVNode("div", {
|
5285
5286
|
"key": bar,
|
5286
|
-
"class": ['v-progress-linear__indeterminate', bar, barColorClasses.value],
|
5287
|
+
"class": ['v-progress-linear__indeterminate', bar, !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
5287
5288
|
"style": barColorStyles.value
|
5288
5289
|
}, null))])]
|
5289
5290
|
}), slots.default && vue.createVNode("div", {
|
@@ -7043,10 +7044,7 @@
|
|
7043
7044
|
const makeVInputProps = propsFactory({
|
7044
7045
|
id: String,
|
7045
7046
|
appendIcon: IconValue,
|
7046
|
-
centerAffix:
|
7047
|
-
type: Boolean,
|
7048
|
-
default: true
|
7049
|
-
},
|
7047
|
+
centerAffix: Boolean,
|
7050
7048
|
prependIcon: IconValue,
|
7051
7049
|
hideDetails: [Boolean, String],
|
7052
7050
|
hideSpinButtons: Boolean,
|
@@ -11561,10 +11559,7 @@
|
|
11561
11559
|
default: '$clear'
|
11562
11560
|
},
|
11563
11561
|
active: Boolean,
|
11564
|
-
centerAffix:
|
11565
|
-
type: Boolean,
|
11566
|
-
default: undefined
|
11567
|
-
},
|
11562
|
+
centerAffix: Boolean,
|
11568
11563
|
color: String,
|
11569
11564
|
baseColor: String,
|
11570
11565
|
dirty: Boolean,
|
@@ -11631,8 +11626,9 @@
|
|
11631
11626
|
const {
|
11632
11627
|
rtlClasses
|
11633
11628
|
} = useRtl();
|
11629
|
+
const isSingleLine = vue.computed(() => props.singleLine || props.centerAffix);
|
11634
11630
|
const isActive = vue.computed(() => props.dirty || props.active);
|
11635
|
-
const hasLabel = vue.computed(() => !
|
11631
|
+
const hasLabel = vue.computed(() => !isSingleLine.value && !!(props.label || slots.label));
|
11636
11632
|
const uid = getUid();
|
11637
11633
|
const id = vue.computed(() => props.id || `input-${uid}`);
|
11638
11634
|
const messagesId = vue.computed(() => `${id.value}-messages`);
|
@@ -11721,7 +11717,7 @@
|
|
11721
11717
|
"class": ['v-field', {
|
11722
11718
|
'v-field--active': isActive.value,
|
11723
11719
|
'v-field--appended': hasAppend,
|
11724
|
-
'v-field--center-affix': props.centerAffix
|
11720
|
+
'v-field--center-affix': props.centerAffix,
|
11725
11721
|
'v-field--disabled': props.disabled,
|
11726
11722
|
'v-field--dirty': props.dirty,
|
11727
11723
|
'v-field--error': props.error,
|
@@ -11730,7 +11726,7 @@
|
|
11730
11726
|
'v-field--persistent-clear': props.persistentClear,
|
11731
11727
|
'v-field--prepended': hasPrepend,
|
11732
11728
|
'v-field--reverse': props.reverse,
|
11733
|
-
'v-field--single-line':
|
11729
|
+
'v-field--single-line': isSingleLine.value,
|
11734
11730
|
'v-field--no-label': !label(),
|
11735
11731
|
[`v-field--variant-${props.variant}`]: true
|
11736
11732
|
}, themeClasses.value, backgroundColorClasses.value, focusClasses.value, loaderClasses.value, roundedClasses.value, rtlClasses.value, props.class],
|
@@ -11965,7 +11961,6 @@
|
|
11965
11961
|
}, props.class],
|
11966
11962
|
"style": props.style
|
11967
11963
|
}, rootAttrs, inputProps, {
|
11968
|
-
"centerAffix": !isPlainOrUnderlined.value,
|
11969
11964
|
"focused": isFocused.value
|
11970
11965
|
}), {
|
11971
11966
|
...slots,
|
@@ -11991,6 +11986,7 @@
|
|
11991
11986
|
"dirty": isDirty.value || props.dirty,
|
11992
11987
|
"disabled": isDisabled.value,
|
11993
11988
|
"focused": isFocused.value,
|
11989
|
+
"centerAffix": props.centerAffix,
|
11994
11990
|
"error": isValid.value === false
|
11995
11991
|
}), {
|
11996
11992
|
...slots,
|
@@ -17508,13 +17504,14 @@
|
|
17508
17504
|
ZA: 0,
|
17509
17505
|
ZW: 0
|
17510
17506
|
};
|
17511
|
-
function getWeekArray(date, locale) {
|
17507
|
+
function getWeekArray(date, locale, firstDayOfWeek) {
|
17512
17508
|
const weeks = [];
|
17513
17509
|
let currentWeek = [];
|
17514
17510
|
const firstDayOfMonth = startOfMonth(date);
|
17515
17511
|
const lastDayOfMonth = endOfMonth(date);
|
17516
|
-
const
|
17517
|
-
const
|
17512
|
+
const first = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17513
|
+
const firstDayWeekIndex = (firstDayOfMonth.getDay() - first + 7) % 7;
|
17514
|
+
const lastDayWeekIndex = (lastDayOfMonth.getDay() - first + 7) % 7;
|
17518
17515
|
for (let i = 0; i < firstDayWeekIndex; i++) {
|
17519
17516
|
const adjacentDay = new Date(firstDayOfMonth);
|
17520
17517
|
adjacentDay.setDate(adjacentDay.getDate() - (firstDayWeekIndex - i));
|
@@ -17542,9 +17539,10 @@
|
|
17542
17539
|
}
|
17543
17540
|
return weeks;
|
17544
17541
|
}
|
17545
|
-
function startOfWeek(date, locale) {
|
17542
|
+
function startOfWeek(date, locale, firstDayOfWeek) {
|
17543
|
+
const day = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17546
17544
|
const d = new Date(date);
|
17547
|
-
while (d.getDay() !==
|
17545
|
+
while (d.getDay() !== day) {
|
17548
17546
|
d.setDate(d.getDate() - 1);
|
17549
17547
|
}
|
17550
17548
|
return d;
|
@@ -17585,8 +17583,8 @@
|
|
17585
17583
|
return null;
|
17586
17584
|
}
|
17587
17585
|
const sundayJanuarySecond2000 = new Date(2000, 0, 2);
|
17588
|
-
function getWeekdays(locale) {
|
17589
|
-
const daysFromSunday = firstDay[locale.slice(-2).toUpperCase()];
|
17586
|
+
function getWeekdays(locale, firstDayOfWeek) {
|
17587
|
+
const daysFromSunday = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17590
17588
|
return createRange(7).map(i => {
|
17591
17589
|
const weekday = new Date(sundayJanuarySecond2000);
|
17592
17590
|
weekday.setDate(sundayJanuarySecond2000.getDate() + daysFromSunday + i);
|
@@ -17984,11 +17982,11 @@
|
|
17984
17982
|
addMonths(date, amount) {
|
17985
17983
|
return addMonths(date, amount);
|
17986
17984
|
}
|
17987
|
-
getWeekArray(date) {
|
17988
|
-
return getWeekArray(date, this.locale);
|
17985
|
+
getWeekArray(date, firstDayOfWeek) {
|
17986
|
+
return getWeekArray(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
17989
17987
|
}
|
17990
|
-
startOfWeek(date) {
|
17991
|
-
return startOfWeek(date, this.locale);
|
17988
|
+
startOfWeek(date, firstDayOfWeek) {
|
17989
|
+
return startOfWeek(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
17992
17990
|
}
|
17993
17991
|
endOfWeek(date) {
|
17994
17992
|
return endOfWeek(date, this.locale);
|
@@ -18047,8 +18045,8 @@
|
|
18047
18045
|
getDiff(date, comparing, unit) {
|
18048
18046
|
return getDiff(date, comparing, unit);
|
18049
18047
|
}
|
18050
|
-
getWeekdays() {
|
18051
|
-
return getWeekdays(this.locale);
|
18048
|
+
getWeekdays(firstDayOfWeek) {
|
18049
|
+
return getWeekdays(this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
18052
18050
|
}
|
18053
18051
|
getYear(date) {
|
18054
18052
|
return getYear(date);
|
@@ -18329,6 +18327,7 @@
|
|
18329
18327
|
}
|
18330
18328
|
function provideGroupBy(options) {
|
18331
18329
|
const {
|
18330
|
+
disableSort,
|
18332
18331
|
groupBy,
|
18333
18332
|
sortBy
|
18334
18333
|
} = options;
|
@@ -18337,7 +18336,7 @@
|
|
18337
18336
|
return groupBy.value.map(val => ({
|
18338
18337
|
...val,
|
18339
18338
|
order: val.order ?? false
|
18340
|
-
})).concat(sortBy.value);
|
18339
|
+
})).concat(disableSort?.value ? [] : sortBy.value);
|
18341
18340
|
});
|
18342
18341
|
function isGroupOpen(group) {
|
18343
18342
|
return opened.value.has(group.id);
|
@@ -18846,7 +18845,7 @@
|
|
18846
18845
|
function useSortedItems(props, items, sortBy, options) {
|
18847
18846
|
const locale = useLocale();
|
18848
18847
|
const sortedItems = vue.computed(() => {
|
18849
|
-
if (!sortBy.value.length
|
18848
|
+
if (!sortBy.value.length) return items.value;
|
18850
18849
|
return sortItems(items.value, sortBy.value, locale.current.value, {
|
18851
18850
|
transform: options?.transform,
|
18852
18851
|
sortFunctions: {
|
@@ -19469,19 +19468,19 @@
|
|
19469
19468
|
|
19470
19469
|
const makeVDataTableFooterProps = propsFactory({
|
19471
19470
|
prevIcon: {
|
19472
|
-
type:
|
19471
|
+
type: IconValue,
|
19473
19472
|
default: '$prev'
|
19474
19473
|
},
|
19475
19474
|
nextIcon: {
|
19476
|
-
type:
|
19475
|
+
type: IconValue,
|
19477
19476
|
default: '$next'
|
19478
19477
|
},
|
19479
19478
|
firstIcon: {
|
19480
|
-
type:
|
19479
|
+
type: IconValue,
|
19481
19480
|
default: '$first'
|
19482
19481
|
},
|
19483
19482
|
lastIcon: {
|
19484
|
-
type:
|
19483
|
+
type: IconValue,
|
19485
19484
|
default: '$last'
|
19486
19485
|
},
|
19487
19486
|
itemsPerPageText: {
|
@@ -20598,6 +20597,9 @@
|
|
20598
20597
|
page,
|
20599
20598
|
itemsPerPage
|
20600
20599
|
} = createPagination(props);
|
20600
|
+
const {
|
20601
|
+
disableSort
|
20602
|
+
} = vue.toRefs(props);
|
20601
20603
|
const {
|
20602
20604
|
columns,
|
20603
20605
|
headers,
|
@@ -20635,7 +20637,8 @@
|
|
20635
20637
|
toggleGroup
|
20636
20638
|
} = provideGroupBy({
|
20637
20639
|
groupBy,
|
20638
|
-
sortBy
|
20640
|
+
sortBy,
|
20641
|
+
disableSort
|
20639
20642
|
});
|
20640
20643
|
const {
|
20641
20644
|
sortedItems
|
@@ -20778,6 +20781,9 @@
|
|
20778
20781
|
multiSort,
|
20779
20782
|
mustSort
|
20780
20783
|
} = createSort(props);
|
20784
|
+
const {
|
20785
|
+
disableSort
|
20786
|
+
} = vue.toRefs(props);
|
20781
20787
|
const {
|
20782
20788
|
columns,
|
20783
20789
|
headers,
|
@@ -20814,7 +20820,8 @@
|
|
20814
20820
|
toggleGroup
|
20815
20821
|
} = provideGroupBy({
|
20816
20822
|
groupBy,
|
20817
|
-
sortBy
|
20823
|
+
sortBy,
|
20824
|
+
disableSort
|
20818
20825
|
});
|
20819
20826
|
const {
|
20820
20827
|
sortedItems
|
@@ -21003,6 +21010,9 @@
|
|
21003
21010
|
page,
|
21004
21011
|
itemsPerPage
|
21005
21012
|
} = createPagination(props);
|
21013
|
+
const {
|
21014
|
+
disableSort
|
21015
|
+
} = vue.toRefs(props);
|
21006
21016
|
const itemsLength = vue.computed(() => parseInt(props.itemsLength, 10));
|
21007
21017
|
const {
|
21008
21018
|
columns,
|
@@ -21030,7 +21040,8 @@
|
|
21030
21040
|
extractRows
|
21031
21041
|
} = provideGroupBy({
|
21032
21042
|
groupBy,
|
21033
|
-
sortBy
|
21043
|
+
sortBy,
|
21044
|
+
disableSort
|
21034
21045
|
});
|
21035
21046
|
const {
|
21036
21047
|
pageCount,
|
@@ -21416,15 +21427,15 @@
|
|
21416
21427
|
default: false
|
21417
21428
|
},
|
21418
21429
|
nextIcon: {
|
21419
|
-
type:
|
21430
|
+
type: IconValue,
|
21420
21431
|
default: '$next'
|
21421
21432
|
},
|
21422
21433
|
prevIcon: {
|
21423
|
-
type:
|
21434
|
+
type: IconValue,
|
21424
21435
|
default: '$prev'
|
21425
21436
|
},
|
21426
21437
|
modeIcon: {
|
21427
|
-
type:
|
21438
|
+
type: IconValue,
|
21428
21439
|
default: '$subgroup'
|
21429
21440
|
},
|
21430
21441
|
text: String,
|
@@ -21610,7 +21621,8 @@
|
|
21610
21621
|
weeksInMonth: {
|
21611
21622
|
type: String,
|
21612
21623
|
default: 'dynamic'
|
21613
|
-
}
|
21624
|
+
},
|
21625
|
+
firstDayOfWeek: [Number, String]
|
21614
21626
|
}, 'calendar');
|
21615
21627
|
function useCalendar(props) {
|
21616
21628
|
const adapter = useDate();
|
@@ -21631,8 +21643,12 @@
|
|
21631
21643
|
const date = adapter.setYear(adapter.startOfMonth(adapter.date()), adapter.getYear(year.value));
|
21632
21644
|
return adapter.setMonth(date, value);
|
21633
21645
|
}, v => adapter.getMonth(v));
|
21646
|
+
const weekDays = vue.computed(() => {
|
21647
|
+
const firstDayOfWeek = Number(props.firstDayOfWeek ?? 0);
|
21648
|
+
return props.weekdays.map(day => (day + firstDayOfWeek) % 7);
|
21649
|
+
});
|
21634
21650
|
const weeksInMonth = vue.computed(() => {
|
21635
|
-
const weeks = adapter.getWeekArray(month.value);
|
21651
|
+
const weeks = adapter.getWeekArray(month.value, props.firstDayOfWeek);
|
21636
21652
|
const days = weeks.flat();
|
21637
21653
|
|
21638
21654
|
// Make sure there's always 6 weeks in month (6 * 7 days)
|
@@ -21653,7 +21669,7 @@
|
|
21653
21669
|
});
|
21654
21670
|
function genDays(days, today) {
|
21655
21671
|
return days.filter(date => {
|
21656
|
-
return
|
21672
|
+
return weekDays.value.includes(adapter.toJsDate(date).getDay());
|
21657
21673
|
}).map((date, index) => {
|
21658
21674
|
const isoDate = adapter.toISO(date);
|
21659
21675
|
const isAdjacent = !adapter.isSameMonth(date, month.value);
|
@@ -21681,7 +21697,7 @@
|
|
21681
21697
|
});
|
21682
21698
|
}
|
21683
21699
|
const daysInWeek = vue.computed(() => {
|
21684
|
-
const lastDay = adapter.startOfWeek(displayValue.value);
|
21700
|
+
const lastDay = adapter.startOfWeek(displayValue.value, props.firstDayOfWeek);
|
21685
21701
|
const week = [];
|
21686
21702
|
for (let day = 0; day <= 6; day++) {
|
21687
21703
|
week.push(adapter.addDays(lastDay, day));
|
@@ -21719,6 +21735,7 @@
|
|
21719
21735
|
genDays,
|
21720
21736
|
model,
|
21721
21737
|
weeksInMonth,
|
21738
|
+
weekDays,
|
21722
21739
|
weekNumbers
|
21723
21740
|
};
|
21724
21741
|
}
|
@@ -21849,7 +21866,7 @@
|
|
21849
21866
|
"ref": daysRef,
|
21850
21867
|
"key": daysInMonth.value[0].date?.toString(),
|
21851
21868
|
"class": "v-date-picker-month__days"
|
21852
|
-
}, [!props.hideWeekdays && adapter.getWeekdays().map(weekDay => vue.createVNode("div", {
|
21869
|
+
}, [!props.hideWeekdays && adapter.getWeekdays(props.firstDayOfWeek).map(weekDay => vue.createVNode("div", {
|
21853
21870
|
"class": ['v-date-picker-month__day', 'v-date-picker-month__weekday']
|
21854
21871
|
}, [weekDay])), daysInMonth.value.map((item, i) => {
|
21855
21872
|
const slotProps = {
|
@@ -24679,11 +24696,14 @@
|
|
24679
24696
|
let {
|
24680
24697
|
slots
|
24681
24698
|
} = _ref;
|
24682
|
-
useRender(() =>
|
24683
|
-
|
24684
|
-
|
24685
|
-
|
24686
|
-
|
24699
|
+
useRender(() => {
|
24700
|
+
const controlProps = VSelectionControl.filterProps(props);
|
24701
|
+
return vue.createVNode(VSelectionControl, vue.mergeProps(controlProps, {
|
24702
|
+
"class": ['v-radio', props.class],
|
24703
|
+
"style": props.style,
|
24704
|
+
"type": "radio"
|
24705
|
+
}), slots);
|
24706
|
+
});
|
24687
24707
|
return {};
|
24688
24708
|
}
|
24689
24709
|
});
|
@@ -27006,8 +27026,8 @@
|
|
27006
27026
|
},
|
27007
27027
|
suffix: String,
|
27008
27028
|
modelModifiers: Object,
|
27009
|
-
...makeVInputProps(),
|
27010
|
-
...makeVFieldProps()
|
27029
|
+
...omit(makeVInputProps(), ['centerAffix']),
|
27030
|
+
...omit(makeVFieldProps(), ['centerAffix'])
|
27011
27031
|
}, 'VTextarea');
|
27012
27032
|
const VTextarea = genericComponent()({
|
27013
27033
|
name: 'VTextarea',
|
@@ -27146,7 +27166,7 @@
|
|
27146
27166
|
}, props.class],
|
27147
27167
|
"style": props.style
|
27148
27168
|
}, rootAttrs, inputProps, {
|
27149
|
-
"centerAffix":
|
27169
|
+
"centerAffix": false,
|
27150
27170
|
"focused": isFocused.value
|
27151
27171
|
}), {
|
27152
27172
|
...slots,
|
@@ -27171,7 +27191,7 @@
|
|
27171
27191
|
}, fieldProps, {
|
27172
27192
|
"id": id.value,
|
27173
27193
|
"active": isActive.value || isDirty.value,
|
27174
|
-
"centerAffix":
|
27194
|
+
"centerAffix": false,
|
27175
27195
|
"dirty": isDirty.value || props.dirty,
|
27176
27196
|
"disabled": isDisabled.value,
|
27177
27197
|
"focused": isFocused.value,
|
@@ -28103,7 +28123,7 @@
|
|
28103
28123
|
goTo
|
28104
28124
|
};
|
28105
28125
|
}
|
28106
|
-
const version$1 = "3.6.
|
28126
|
+
const version$1 = "3.6.12-master.2024-07-11";
|
28107
28127
|
createVuetify$1.version = version$1;
|
28108
28128
|
|
28109
28129
|
// Vue's inject() can only be used in setup
|
@@ -28128,7 +28148,7 @@
|
|
28128
28148
|
...options
|
28129
28149
|
});
|
28130
28150
|
};
|
28131
|
-
const version = "3.6.
|
28151
|
+
const version = "3.6.12-master.2024-07-11";
|
28132
28152
|
createVuetify.version = version;
|
28133
28153
|
|
28134
28154
|
exports.blueprints = index;
|