@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-labs.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
|
*/
|
@@ -4980,6 +4980,7 @@
|
|
4980
4980
|
const normalizedValue = vue.computed(() => clamp(parseFloat(progress.value) / max.value * 100, 0, 100));
|
4981
4981
|
const isReversed = vue.computed(() => isRtl.value !== props.reverse);
|
4982
4982
|
const transition = vue.computed(() => props.indeterminate ? 'fade-transition' : 'slide-x-transition');
|
4983
|
+
const isForcedColorsModeActive = IN_BROWSER && window.matchMedia?.('(forced-colors: active)').matches;
|
4983
4984
|
function handleClick(e) {
|
4984
4985
|
if (!intersectionRef.value) return;
|
4985
4986
|
const {
|
@@ -5027,13 +5028,13 @@
|
|
5027
5028
|
'--v-progress-linear-stream-to': convertToUnit(height.value * (isReversed.value ? 1 : -1))
|
5028
5029
|
}
|
5029
5030
|
}, null), vue.createVNode("div", {
|
5030
|
-
"class": ['v-progress-linear__background', backgroundColorClasses.value],
|
5031
|
+
"class": ['v-progress-linear__background', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
|
5031
5032
|
"style": [backgroundColorStyles.value, {
|
5032
5033
|
opacity: parseFloat(props.bgOpacity),
|
5033
5034
|
width: props.stream ? 0 : undefined
|
5034
5035
|
}]
|
5035
5036
|
}, null), vue.createVNode("div", {
|
5036
|
-
"class": ['v-progress-linear__buffer', bufferColorClasses.value],
|
5037
|
+
"class": ['v-progress-linear__buffer', !isForcedColorsModeActive ? bufferColorClasses.value : undefined],
|
5037
5038
|
"style": [bufferColorStyles.value, {
|
5038
5039
|
opacity: parseFloat(props.bufferOpacity),
|
5039
5040
|
width: convertToUnit(normalizedBuffer.value, '%')
|
@@ -5042,7 +5043,7 @@
|
|
5042
5043
|
"name": transition.value
|
5043
5044
|
}, {
|
5044
5045
|
default: () => [!props.indeterminate ? vue.createVNode("div", {
|
5045
|
-
"class": ['v-progress-linear__determinate', barColorClasses.value],
|
5046
|
+
"class": ['v-progress-linear__determinate', !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
5046
5047
|
"style": [barColorStyles.value, {
|
5047
5048
|
width: convertToUnit(normalizedValue.value, '%')
|
5048
5049
|
}]
|
@@ -5050,7 +5051,7 @@
|
|
5050
5051
|
"class": "v-progress-linear__indeterminate"
|
5051
5052
|
}, [['long', 'short'].map(bar => vue.createVNode("div", {
|
5052
5053
|
"key": bar,
|
5053
|
-
"class": ['v-progress-linear__indeterminate', bar, barColorClasses.value],
|
5054
|
+
"class": ['v-progress-linear__indeterminate', bar, !isForcedColorsModeActive ? barColorClasses.value : undefined],
|
5054
5055
|
"style": barColorStyles.value
|
5055
5056
|
}, null))])]
|
5056
5057
|
}), slots.default && vue.createVNode("div", {
|
@@ -6810,10 +6811,7 @@
|
|
6810
6811
|
const makeVInputProps = propsFactory({
|
6811
6812
|
id: String,
|
6812
6813
|
appendIcon: IconValue,
|
6813
|
-
centerAffix:
|
6814
|
-
type: Boolean,
|
6815
|
-
default: true
|
6816
|
-
},
|
6814
|
+
centerAffix: Boolean,
|
6817
6815
|
prependIcon: IconValue,
|
6818
6816
|
hideDetails: [Boolean, String],
|
6819
6817
|
hideSpinButtons: Boolean,
|
@@ -11328,10 +11326,7 @@
|
|
11328
11326
|
default: '$clear'
|
11329
11327
|
},
|
11330
11328
|
active: Boolean,
|
11331
|
-
centerAffix:
|
11332
|
-
type: Boolean,
|
11333
|
-
default: undefined
|
11334
|
-
},
|
11329
|
+
centerAffix: Boolean,
|
11335
11330
|
color: String,
|
11336
11331
|
baseColor: String,
|
11337
11332
|
dirty: Boolean,
|
@@ -11398,8 +11393,9 @@
|
|
11398
11393
|
const {
|
11399
11394
|
rtlClasses
|
11400
11395
|
} = useRtl();
|
11396
|
+
const isSingleLine = vue.computed(() => props.singleLine || props.centerAffix);
|
11401
11397
|
const isActive = vue.computed(() => props.dirty || props.active);
|
11402
|
-
const hasLabel = vue.computed(() => !
|
11398
|
+
const hasLabel = vue.computed(() => !isSingleLine.value && !!(props.label || slots.label));
|
11403
11399
|
const uid = getUid();
|
11404
11400
|
const id = vue.computed(() => props.id || `input-${uid}`);
|
11405
11401
|
const messagesId = vue.computed(() => `${id.value}-messages`);
|
@@ -11488,7 +11484,7 @@
|
|
11488
11484
|
"class": ['v-field', {
|
11489
11485
|
'v-field--active': isActive.value,
|
11490
11486
|
'v-field--appended': hasAppend,
|
11491
|
-
'v-field--center-affix': props.centerAffix
|
11487
|
+
'v-field--center-affix': props.centerAffix,
|
11492
11488
|
'v-field--disabled': props.disabled,
|
11493
11489
|
'v-field--dirty': props.dirty,
|
11494
11490
|
'v-field--error': props.error,
|
@@ -11497,7 +11493,7 @@
|
|
11497
11493
|
'v-field--persistent-clear': props.persistentClear,
|
11498
11494
|
'v-field--prepended': hasPrepend,
|
11499
11495
|
'v-field--reverse': props.reverse,
|
11500
|
-
'v-field--single-line':
|
11496
|
+
'v-field--single-line': isSingleLine.value,
|
11501
11497
|
'v-field--no-label': !label(),
|
11502
11498
|
[`v-field--variant-${props.variant}`]: true
|
11503
11499
|
}, themeClasses.value, backgroundColorClasses.value, focusClasses.value, loaderClasses.value, roundedClasses.value, rtlClasses.value, props.class],
|
@@ -11732,7 +11728,6 @@
|
|
11732
11728
|
}, props.class],
|
11733
11729
|
"style": props.style
|
11734
11730
|
}, rootAttrs, inputProps, {
|
11735
|
-
"centerAffix": !isPlainOrUnderlined.value,
|
11736
11731
|
"focused": isFocused.value
|
11737
11732
|
}), {
|
11738
11733
|
...slots,
|
@@ -11758,6 +11753,7 @@
|
|
11758
11753
|
"dirty": isDirty.value || props.dirty,
|
11759
11754
|
"disabled": isDisabled.value,
|
11760
11755
|
"focused": isFocused.value,
|
11756
|
+
"centerAffix": props.centerAffix,
|
11761
11757
|
"error": isValid.value === false
|
11762
11758
|
}), {
|
11763
11759
|
...slots,
|
@@ -17275,13 +17271,14 @@
|
|
17275
17271
|
ZA: 0,
|
17276
17272
|
ZW: 0
|
17277
17273
|
};
|
17278
|
-
function getWeekArray(date, locale) {
|
17274
|
+
function getWeekArray(date, locale, firstDayOfWeek) {
|
17279
17275
|
const weeks = [];
|
17280
17276
|
let currentWeek = [];
|
17281
17277
|
const firstDayOfMonth = startOfMonth(date);
|
17282
17278
|
const lastDayOfMonth = endOfMonth(date);
|
17283
|
-
const
|
17284
|
-
const
|
17279
|
+
const first = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17280
|
+
const firstDayWeekIndex = (firstDayOfMonth.getDay() - first + 7) % 7;
|
17281
|
+
const lastDayWeekIndex = (lastDayOfMonth.getDay() - first + 7) % 7;
|
17285
17282
|
for (let i = 0; i < firstDayWeekIndex; i++) {
|
17286
17283
|
const adjacentDay = new Date(firstDayOfMonth);
|
17287
17284
|
adjacentDay.setDate(adjacentDay.getDate() - (firstDayWeekIndex - i));
|
@@ -17309,9 +17306,10 @@
|
|
17309
17306
|
}
|
17310
17307
|
return weeks;
|
17311
17308
|
}
|
17312
|
-
function startOfWeek(date, locale) {
|
17309
|
+
function startOfWeek(date, locale, firstDayOfWeek) {
|
17310
|
+
const day = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17313
17311
|
const d = new Date(date);
|
17314
|
-
while (d.getDay() !==
|
17312
|
+
while (d.getDay() !== day) {
|
17315
17313
|
d.setDate(d.getDate() - 1);
|
17316
17314
|
}
|
17317
17315
|
return d;
|
@@ -17352,8 +17350,8 @@
|
|
17352
17350
|
return null;
|
17353
17351
|
}
|
17354
17352
|
const sundayJanuarySecond2000 = new Date(2000, 0, 2);
|
17355
|
-
function getWeekdays(locale) {
|
17356
|
-
const daysFromSunday = firstDay[locale.slice(-2).toUpperCase()];
|
17353
|
+
function getWeekdays(locale, firstDayOfWeek) {
|
17354
|
+
const daysFromSunday = firstDayOfWeek ?? firstDay[locale.slice(-2).toUpperCase()] ?? 0;
|
17357
17355
|
return createRange(7).map(i => {
|
17358
17356
|
const weekday = new Date(sundayJanuarySecond2000);
|
17359
17357
|
weekday.setDate(sundayJanuarySecond2000.getDate() + daysFromSunday + i);
|
@@ -17751,11 +17749,11 @@
|
|
17751
17749
|
addMonths(date, amount) {
|
17752
17750
|
return addMonths(date, amount);
|
17753
17751
|
}
|
17754
|
-
getWeekArray(date) {
|
17755
|
-
return getWeekArray(date, this.locale);
|
17752
|
+
getWeekArray(date, firstDayOfWeek) {
|
17753
|
+
return getWeekArray(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
17756
17754
|
}
|
17757
|
-
startOfWeek(date) {
|
17758
|
-
return startOfWeek(date, this.locale);
|
17755
|
+
startOfWeek(date, firstDayOfWeek) {
|
17756
|
+
return startOfWeek(date, this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
17759
17757
|
}
|
17760
17758
|
endOfWeek(date) {
|
17761
17759
|
return endOfWeek(date, this.locale);
|
@@ -17814,8 +17812,8 @@
|
|
17814
17812
|
getDiff(date, comparing, unit) {
|
17815
17813
|
return getDiff(date, comparing, unit);
|
17816
17814
|
}
|
17817
|
-
getWeekdays() {
|
17818
|
-
return getWeekdays(this.locale);
|
17815
|
+
getWeekdays(firstDayOfWeek) {
|
17816
|
+
return getWeekdays(this.locale, firstDayOfWeek ? Number(firstDayOfWeek) : undefined);
|
17819
17817
|
}
|
17820
17818
|
getYear(date) {
|
17821
17819
|
return getYear(date);
|
@@ -18096,6 +18094,7 @@
|
|
18096
18094
|
}
|
18097
18095
|
function provideGroupBy(options) {
|
18098
18096
|
const {
|
18097
|
+
disableSort,
|
18099
18098
|
groupBy,
|
18100
18099
|
sortBy
|
18101
18100
|
} = options;
|
@@ -18104,7 +18103,7 @@
|
|
18104
18103
|
return groupBy.value.map(val => ({
|
18105
18104
|
...val,
|
18106
18105
|
order: val.order ?? false
|
18107
|
-
})).concat(sortBy.value);
|
18106
|
+
})).concat(disableSort?.value ? [] : sortBy.value);
|
18108
18107
|
});
|
18109
18108
|
function isGroupOpen(group) {
|
18110
18109
|
return opened.value.has(group.id);
|
@@ -18613,7 +18612,7 @@
|
|
18613
18612
|
function useSortedItems(props, items, sortBy, options) {
|
18614
18613
|
const locale = useLocale();
|
18615
18614
|
const sortedItems = vue.computed(() => {
|
18616
|
-
if (!sortBy.value.length
|
18615
|
+
if (!sortBy.value.length) return items.value;
|
18617
18616
|
return sortItems(items.value, sortBy.value, locale.current.value, {
|
18618
18617
|
transform: options?.transform,
|
18619
18618
|
sortFunctions: {
|
@@ -19236,19 +19235,19 @@
|
|
19236
19235
|
|
19237
19236
|
const makeVDataTableFooterProps = propsFactory({
|
19238
19237
|
prevIcon: {
|
19239
|
-
type:
|
19238
|
+
type: IconValue,
|
19240
19239
|
default: '$prev'
|
19241
19240
|
},
|
19242
19241
|
nextIcon: {
|
19243
|
-
type:
|
19242
|
+
type: IconValue,
|
19244
19243
|
default: '$next'
|
19245
19244
|
},
|
19246
19245
|
firstIcon: {
|
19247
|
-
type:
|
19246
|
+
type: IconValue,
|
19248
19247
|
default: '$first'
|
19249
19248
|
},
|
19250
19249
|
lastIcon: {
|
19251
|
-
type:
|
19250
|
+
type: IconValue,
|
19252
19251
|
default: '$last'
|
19253
19252
|
},
|
19254
19253
|
itemsPerPageText: {
|
@@ -20365,6 +20364,9 @@
|
|
20365
20364
|
page,
|
20366
20365
|
itemsPerPage
|
20367
20366
|
} = createPagination(props);
|
20367
|
+
const {
|
20368
|
+
disableSort
|
20369
|
+
} = vue.toRefs(props);
|
20368
20370
|
const {
|
20369
20371
|
columns,
|
20370
20372
|
headers,
|
@@ -20402,7 +20404,8 @@
|
|
20402
20404
|
toggleGroup
|
20403
20405
|
} = provideGroupBy({
|
20404
20406
|
groupBy,
|
20405
|
-
sortBy
|
20407
|
+
sortBy,
|
20408
|
+
disableSort
|
20406
20409
|
});
|
20407
20410
|
const {
|
20408
20411
|
sortedItems
|
@@ -20545,6 +20548,9 @@
|
|
20545
20548
|
multiSort,
|
20546
20549
|
mustSort
|
20547
20550
|
} = createSort(props);
|
20551
|
+
const {
|
20552
|
+
disableSort
|
20553
|
+
} = vue.toRefs(props);
|
20548
20554
|
const {
|
20549
20555
|
columns,
|
20550
20556
|
headers,
|
@@ -20581,7 +20587,8 @@
|
|
20581
20587
|
toggleGroup
|
20582
20588
|
} = provideGroupBy({
|
20583
20589
|
groupBy,
|
20584
|
-
sortBy
|
20590
|
+
sortBy,
|
20591
|
+
disableSort
|
20585
20592
|
});
|
20586
20593
|
const {
|
20587
20594
|
sortedItems
|
@@ -20770,6 +20777,9 @@
|
|
20770
20777
|
page,
|
20771
20778
|
itemsPerPage
|
20772
20779
|
} = createPagination(props);
|
20780
|
+
const {
|
20781
|
+
disableSort
|
20782
|
+
} = vue.toRefs(props);
|
20773
20783
|
const itemsLength = vue.computed(() => parseInt(props.itemsLength, 10));
|
20774
20784
|
const {
|
20775
20785
|
columns,
|
@@ -20797,7 +20807,8 @@
|
|
20797
20807
|
extractRows
|
20798
20808
|
} = provideGroupBy({
|
20799
20809
|
groupBy,
|
20800
|
-
sortBy
|
20810
|
+
sortBy,
|
20811
|
+
disableSort
|
20801
20812
|
});
|
20802
20813
|
const {
|
20803
20814
|
pageCount,
|
@@ -21183,15 +21194,15 @@
|
|
21183
21194
|
default: false
|
21184
21195
|
},
|
21185
21196
|
nextIcon: {
|
21186
|
-
type:
|
21197
|
+
type: IconValue,
|
21187
21198
|
default: '$next'
|
21188
21199
|
},
|
21189
21200
|
prevIcon: {
|
21190
|
-
type:
|
21201
|
+
type: IconValue,
|
21191
21202
|
default: '$prev'
|
21192
21203
|
},
|
21193
21204
|
modeIcon: {
|
21194
|
-
type:
|
21205
|
+
type: IconValue,
|
21195
21206
|
default: '$subgroup'
|
21196
21207
|
},
|
21197
21208
|
text: String,
|
@@ -21377,7 +21388,8 @@
|
|
21377
21388
|
weeksInMonth: {
|
21378
21389
|
type: String,
|
21379
21390
|
default: 'dynamic'
|
21380
|
-
}
|
21391
|
+
},
|
21392
|
+
firstDayOfWeek: [Number, String]
|
21381
21393
|
}, 'calendar');
|
21382
21394
|
function useCalendar(props) {
|
21383
21395
|
const adapter = useDate();
|
@@ -21398,8 +21410,12 @@
|
|
21398
21410
|
const date = adapter.setYear(adapter.startOfMonth(adapter.date()), adapter.getYear(year.value));
|
21399
21411
|
return adapter.setMonth(date, value);
|
21400
21412
|
}, v => adapter.getMonth(v));
|
21413
|
+
const weekDays = vue.computed(() => {
|
21414
|
+
const firstDayOfWeek = Number(props.firstDayOfWeek ?? 0);
|
21415
|
+
return props.weekdays.map(day => (day + firstDayOfWeek) % 7);
|
21416
|
+
});
|
21401
21417
|
const weeksInMonth = vue.computed(() => {
|
21402
|
-
const weeks = adapter.getWeekArray(month.value);
|
21418
|
+
const weeks = adapter.getWeekArray(month.value, props.firstDayOfWeek);
|
21403
21419
|
const days = weeks.flat();
|
21404
21420
|
|
21405
21421
|
// Make sure there's always 6 weeks in month (6 * 7 days)
|
@@ -21420,7 +21436,7 @@
|
|
21420
21436
|
});
|
21421
21437
|
function genDays(days, today) {
|
21422
21438
|
return days.filter(date => {
|
21423
|
-
return
|
21439
|
+
return weekDays.value.includes(adapter.toJsDate(date).getDay());
|
21424
21440
|
}).map((date, index) => {
|
21425
21441
|
const isoDate = adapter.toISO(date);
|
21426
21442
|
const isAdjacent = !adapter.isSameMonth(date, month.value);
|
@@ -21448,7 +21464,7 @@
|
|
21448
21464
|
});
|
21449
21465
|
}
|
21450
21466
|
const daysInWeek = vue.computed(() => {
|
21451
|
-
const lastDay = adapter.startOfWeek(displayValue.value);
|
21467
|
+
const lastDay = adapter.startOfWeek(displayValue.value, props.firstDayOfWeek);
|
21452
21468
|
const week = [];
|
21453
21469
|
for (let day = 0; day <= 6; day++) {
|
21454
21470
|
week.push(adapter.addDays(lastDay, day));
|
@@ -21486,6 +21502,7 @@
|
|
21486
21502
|
genDays,
|
21487
21503
|
model,
|
21488
21504
|
weeksInMonth,
|
21505
|
+
weekDays,
|
21489
21506
|
weekNumbers
|
21490
21507
|
};
|
21491
21508
|
}
|
@@ -21616,7 +21633,7 @@
|
|
21616
21633
|
"ref": daysRef,
|
21617
21634
|
"key": daysInMonth.value[0].date?.toString(),
|
21618
21635
|
"class": "v-date-picker-month__days"
|
21619
|
-
}, [!props.hideWeekdays && adapter.getWeekdays().map(weekDay => vue.createVNode("div", {
|
21636
|
+
}, [!props.hideWeekdays && adapter.getWeekdays(props.firstDayOfWeek).map(weekDay => vue.createVNode("div", {
|
21620
21637
|
"class": ['v-date-picker-month__day', 'v-date-picker-month__weekday']
|
21621
21638
|
}, [weekDay])), daysInMonth.value.map((item, i) => {
|
21622
21639
|
const slotProps = {
|
@@ -24446,11 +24463,14 @@
|
|
24446
24463
|
let {
|
24447
24464
|
slots
|
24448
24465
|
} = _ref;
|
24449
|
-
useRender(() =>
|
24450
|
-
|
24451
|
-
|
24452
|
-
|
24453
|
-
|
24466
|
+
useRender(() => {
|
24467
|
+
const controlProps = VSelectionControl.filterProps(props);
|
24468
|
+
return vue.createVNode(VSelectionControl, vue.mergeProps(controlProps, {
|
24469
|
+
"class": ['v-radio', props.class],
|
24470
|
+
"style": props.style,
|
24471
|
+
"type": "radio"
|
24472
|
+
}), slots);
|
24473
|
+
});
|
24454
24474
|
return {};
|
24455
24475
|
}
|
24456
24476
|
});
|
@@ -26773,8 +26793,8 @@
|
|
26773
26793
|
},
|
26774
26794
|
suffix: String,
|
26775
26795
|
modelModifiers: Object,
|
26776
|
-
...makeVInputProps(),
|
26777
|
-
...makeVFieldProps()
|
26796
|
+
...omit(makeVInputProps(), ['centerAffix']),
|
26797
|
+
...omit(makeVFieldProps(), ['centerAffix'])
|
26778
26798
|
}, 'VTextarea');
|
26779
26799
|
const VTextarea = genericComponent()({
|
26780
26800
|
name: 'VTextarea',
|
@@ -26913,7 +26933,7 @@
|
|
26913
26933
|
}, props.class],
|
26914
26934
|
"style": props.style
|
26915
26935
|
}, rootAttrs, inputProps, {
|
26916
|
-
"centerAffix":
|
26936
|
+
"centerAffix": false,
|
26917
26937
|
"focused": isFocused.value
|
26918
26938
|
}), {
|
26919
26939
|
...slots,
|
@@ -26938,7 +26958,7 @@
|
|
26938
26958
|
}, fieldProps, {
|
26939
26959
|
"id": id.value,
|
26940
26960
|
"active": isActive.value || isDirty.value,
|
26941
|
-
"centerAffix":
|
26961
|
+
"centerAffix": false,
|
26942
26962
|
"dirty": isDirty.value || props.dirty,
|
26943
26963
|
"disabled": isDisabled.value,
|
26944
26964
|
"focused": isFocused.value,
|
@@ -27790,7 +27810,8 @@
|
|
27790
27810
|
genDays,
|
27791
27811
|
model,
|
27792
27812
|
displayValue,
|
27793
|
-
weekNumbers
|
27813
|
+
weekNumbers,
|
27814
|
+
weekDays
|
27794
27815
|
} = useCalendar(props);
|
27795
27816
|
const dayNames = adapter.getWeekdays();
|
27796
27817
|
function onClickNext() {
|
@@ -27840,19 +27861,19 @@
|
|
27840
27861
|
}), null) : slots.header({
|
27841
27862
|
title: title.value
|
27842
27863
|
}))]), vue.createVNode("div", {
|
27843
|
-
"class": ['v-calendar__container', `days__${
|
27864
|
+
"class": ['v-calendar__container', `days__${weekDays.value.length}`]
|
27844
27865
|
}, [props.viewMode === 'month' && !props.hideDayHeader && vue.createVNode("div", {
|
27845
|
-
"class": ['v-calendar-weekly__head', `days__${
|
27866
|
+
"class": ['v-calendar-weekly__head', `days__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : [])],
|
27846
27867
|
"key": "calenderWeeklyHead"
|
27847
27868
|
}, [!props.hideWeekNumber ? vue.createVNode("div", {
|
27848
27869
|
"key": "weekNumber0",
|
27849
27870
|
"class": "v-calendar-weekly__head-weeknumber"
|
27850
|
-
}, null) : '',
|
27871
|
+
}, null) : '', weekDays.value.map(weekday => vue.createVNode("div", {
|
27851
27872
|
"class": `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}`
|
27852
27873
|
}, [dayNames[weekday]]))]), props.viewMode === 'month' && vue.createVNode("div", {
|
27853
27874
|
"key": "VCalendarMonth",
|
27854
|
-
"class": ['v-calendar-month__days', `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${
|
27855
|
-
}, [chunkArray(daysInMonth.value,
|
27875
|
+
"class": ['v-calendar-month__days', `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : [])]
|
27876
|
+
}, [chunkArray(daysInMonth.value, weekDays.value.length).map((week, wi) => [!props.hideWeekNumber ? vue.createVNode("div", {
|
27856
27877
|
"class": "v-calendar-month__weeknumber"
|
27857
27878
|
}, [weekNumbers.value[wi]]) : '', week.map(day => vue.createVNode(VCalendarMonthDay, {
|
27858
27879
|
"color": adapter.isSameDay(adapter.date(), day.date) ? 'primary' : undefined,
|
@@ -28092,7 +28113,7 @@
|
|
28092
28113
|
toggleUpDown(false);
|
28093
28114
|
}
|
28094
28115
|
function onKeydown(e) {
|
28095
|
-
if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Tab'].includes(e.key) || e.ctrlKey) return;
|
28116
|
+
if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) || e.ctrlKey) return;
|
28096
28117
|
if (['ArrowDown'].includes(e.key)) {
|
28097
28118
|
e.preventDefault();
|
28098
28119
|
toggleUpDown(false);
|
@@ -28744,8 +28765,8 @@
|
|
28744
28765
|
name: 'VTimePickerClock',
|
28745
28766
|
props: makeVTimePickerClockProps(),
|
28746
28767
|
emits: {
|
28747
|
-
change: val =>
|
28748
|
-
input: val =>
|
28768
|
+
change: val => true,
|
28769
|
+
input: val => true
|
28749
28770
|
},
|
28750
28771
|
setup(props, _ref) {
|
28751
28772
|
let {
|
@@ -28993,8 +29014,8 @@
|
|
28993
29014
|
name: 'VTimePickerControls',
|
28994
29015
|
props: makeVTimePickerControlsProps(),
|
28995
29016
|
emits: {
|
28996
|
-
'update:period': data =>
|
28997
|
-
'update:selecting': data =>
|
29017
|
+
'update:period': data => true,
|
29018
|
+
'update:selecting': data => true
|
28998
29019
|
},
|
28999
29020
|
setup(props, _ref) {
|
29000
29021
|
let {
|
@@ -29130,11 +29151,11 @@
|
|
29130
29151
|
name: 'VTimePicker',
|
29131
29152
|
props: makeVTimePickerProps(),
|
29132
29153
|
emits: {
|
29133
|
-
'update:hour': val =>
|
29134
|
-
'update:minute': val =>
|
29135
|
-
'update:period': val =>
|
29136
|
-
'update:second': val =>
|
29137
|
-
'update:modelValue': val =>
|
29154
|
+
'update:hour': val => true,
|
29155
|
+
'update:minute': val => true,
|
29156
|
+
'update:period': val => true,
|
29157
|
+
'update:second': val => true,
|
29158
|
+
'update:modelValue': val => true
|
29138
29159
|
},
|
29139
29160
|
setup(props, _ref) {
|
29140
29161
|
let {
|
@@ -30265,7 +30286,7 @@
|
|
30265
30286
|
goTo
|
30266
30287
|
};
|
30267
30288
|
}
|
30268
|
-
const version$1 = "3.6.
|
30289
|
+
const version$1 = "3.6.12-master.2024-07-11";
|
30269
30290
|
createVuetify$1.version = version$1;
|
30270
30291
|
|
30271
30292
|
// Vue's inject() can only be used in setup
|
@@ -30518,7 +30539,7 @@
|
|
30518
30539
|
|
30519
30540
|
/* eslint-disable local-rules/sort-imports */
|
30520
30541
|
|
30521
|
-
const version = "3.6.
|
30542
|
+
const version = "3.6.12-master.2024-07-11";
|
30522
30543
|
|
30523
30544
|
/* eslint-disable local-rules/sort-imports */
|
30524
30545
|
|