vuetify 3.6.5 → 3.6.7
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 +42 -2
- package/dist/json/importMap-labs.json +20 -20
- package/dist/json/importMap.json +144 -144
- package/dist/json/tags.json +11 -1
- package/dist/json/web-types.json +125 -16
- package/dist/vuetify-labs.css +2509 -2712
- package/dist/vuetify-labs.d.ts +178 -52
- package/dist/vuetify-labs.esm.js +102 -51
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +102 -51
- package/dist/vuetify-labs.min.css +3 -3
- package/dist/vuetify.css +783 -986
- package/dist/vuetify.d.ts +221 -95
- package/dist/vuetify.esm.js +72 -33
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +72 -33
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -3
- package/dist/vuetify.min.js +118 -115
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +3 -2
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VBanner/VBanner.mjs +3 -1
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.mts +15 -9
- package/lib/components/VBtn/VBtn.css +6 -0
- package/lib/components/VBtn/VBtn.sass +6 -0
- package/lib/components/VChipGroup/index.d.mts +15 -9
- package/lib/components/VCombobox/VCombobox.mjs +4 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs +8 -0
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs.map +1 -1
- package/lib/components/VConfirmEdit/index.d.mts +24 -3
- package/lib/components/VDataTable/VDataTable.css +4 -0
- package/lib/components/VDataTable/VDataTable.mjs +2 -1
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.sass +4 -0
- package/lib/components/VDataTable/VDataTableHeaders.mjs +4 -3
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.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 +63 -0
- package/lib/components/VDatePicker/VDatePicker.mjs +2 -1
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs +10 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +24 -6
- package/lib/components/VDivider/VDivider.css +2 -1
- package/lib/components/VDivider/VDivider.sass +2 -1
- package/lib/components/VField/VField.css +1 -0
- package/lib/components/VField/VField.sass +2 -0
- package/lib/components/VList/VListChildren.mjs +2 -1
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.mjs +2 -1
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.mjs +1 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.mjs +3 -1
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +15 -9
- package/lib/components/VSwitch/VSwitch.css +44 -0
- package/lib/components/VSwitch/VSwitch.mjs +4 -3
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.sass +55 -0
- package/lib/components/VTabs/index.d.mts +15 -9
- package/lib/components/index.d.mts +171 -45
- package/lib/composables/defaults.mjs +1 -1
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/dimensions.mjs +16 -8
- package/lib/composables/dimensions.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +50 -50
- package/lib/labs/VCalendar/VCalendar.mjs +2 -2
- package/lib/labs/VCalendar/VCalendar.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +6 -6
- package/lib/labs/VNumberInput/VNumberInput.mjs +16 -6
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/index.d.mts +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +12 -10
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/labs/components.d.mts +7 -7
- package/lib/locale/de.mjs +4 -4
- package/lib/locale/de.mjs.map +1 -1
- package/lib/locale/fa.mjs +10 -10
- package/lib/locale/fa.mjs.map +1 -1
- package/lib/locale/hu.mjs +18 -18
- package/lib/locale/hu.mjs.map +1 -1
- package/lib/styles/generic/_colors.scss +0 -1
- package/lib/styles/main.css +0 -260
- package/lib/util/helpers.mjs +2 -0
- package/lib/util/helpers.mjs.map +1 -1
- 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.7
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -314,6 +314,8 @@ function findChildrenWithProvide(key, vnode) {
|
|
|
314
314
|
if (!vnode || typeof vnode !== 'object') return [];
|
|
315
315
|
if (Array.isArray(vnode)) {
|
|
316
316
|
return vnode.map(child => findChildrenWithProvide(key, child)).flat(1);
|
|
317
|
+
} else if (vnode.suspense) {
|
|
318
|
+
return findChildrenWithProvide(key, vnode.ssContent);
|
|
317
319
|
} else if (Array.isArray(vnode.children)) {
|
|
318
320
|
return vnode.children.map(child => findChildrenWithProvide(key, child)).flat(1);
|
|
319
321
|
} else if (vnode.component) {
|
|
@@ -1311,7 +1313,7 @@ function internalUseDefaults() {
|
|
|
1311
1313
|
if (prop === 'class' || prop === 'style') {
|
|
1312
1314
|
return [componentDefaults.value?.[prop], propValue].filter(v => v != null);
|
|
1313
1315
|
} else if (typeof prop === 'string' && !propIsDefined(vm.vnode, prop)) {
|
|
1314
|
-
return componentDefaults.value?.[prop]
|
|
1316
|
+
return componentDefaults.value?.[prop] !== undefined ? componentDefaults.value?.[prop] : defaults.value?.global?.[prop] !== undefined ? defaults.value?.global?.[prop] : propValue;
|
|
1315
1317
|
}
|
|
1316
1318
|
return propValue;
|
|
1317
1319
|
}
|
|
@@ -3432,14 +3434,22 @@ const makeDimensionProps = propsFactory({
|
|
|
3432
3434
|
width: [Number, String]
|
|
3433
3435
|
}, 'dimension');
|
|
3434
3436
|
function useDimension(props) {
|
|
3435
|
-
const dimensionStyles = computed(() =>
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3437
|
+
const dimensionStyles = computed(() => {
|
|
3438
|
+
const styles = {};
|
|
3439
|
+
const height = convertToUnit(props.height);
|
|
3440
|
+
const maxHeight = convertToUnit(props.maxHeight);
|
|
3441
|
+
const maxWidth = convertToUnit(props.maxWidth);
|
|
3442
|
+
const minHeight = convertToUnit(props.minHeight);
|
|
3443
|
+
const minWidth = convertToUnit(props.minWidth);
|
|
3444
|
+
const width = convertToUnit(props.width);
|
|
3445
|
+
if (height != null) styles.height = height;
|
|
3446
|
+
if (maxHeight != null) styles.maxHeight = maxHeight;
|
|
3447
|
+
if (maxWidth != null) styles.maxWidth = maxWidth;
|
|
3448
|
+
if (minHeight != null) styles.minHeight = minHeight;
|
|
3449
|
+
if (minWidth != null) styles.minWidth = minWidth;
|
|
3450
|
+
if (width != null) styles.width = width;
|
|
3451
|
+
return styles;
|
|
3452
|
+
});
|
|
3443
3453
|
return {
|
|
3444
3454
|
dimensionStyles
|
|
3445
3455
|
};
|
|
@@ -7601,7 +7611,9 @@ const makeVSlideGroupProps = propsFactory({
|
|
|
7601
7611
|
validator: v => typeof v === 'boolean' || ['always', 'desktop', 'mobile'].includes(v)
|
|
7602
7612
|
},
|
|
7603
7613
|
...makeComponentProps(),
|
|
7604
|
-
...makeDisplayProps(
|
|
7614
|
+
...makeDisplayProps({
|
|
7615
|
+
mobile: null
|
|
7616
|
+
}),
|
|
7605
7617
|
...makeTagProps(),
|
|
7606
7618
|
...makeGroupProps({
|
|
7607
7619
|
selectedClass: 'v-slide-group-item--active'
|
|
@@ -9432,7 +9444,8 @@ const VListChildren = genericComponent()({
|
|
|
9432
9444
|
}) : createVNode(VListItem, listItemProps, slotsWithItem);
|
|
9433
9445
|
},
|
|
9434
9446
|
default: () => createVNode(VListChildren, {
|
|
9435
|
-
"items": children
|
|
9447
|
+
"items": children,
|
|
9448
|
+
"returnObject": props.returnObject
|
|
9436
9449
|
}, slots)
|
|
9437
9450
|
}) : slots.item ? slots.item({
|
|
9438
9451
|
props: itemProps
|
|
@@ -11332,7 +11345,7 @@ const VMenu = genericComponent()({
|
|
|
11332
11345
|
},
|
|
11333
11346
|
closeParents(e) {
|
|
11334
11347
|
setTimeout(() => {
|
|
11335
|
-
if (!openChildren.value && (e == null || e && !isClickInsideElement(e, overlay.value.contentEl))) {
|
|
11348
|
+
if (!openChildren.value && !props.persistent && (e == null || e && !isClickInsideElement(e, overlay.value.contentEl))) {
|
|
11336
11349
|
isActive.value = false;
|
|
11337
11350
|
parent?.closeParents();
|
|
11338
11351
|
}
|
|
@@ -11371,6 +11384,7 @@ const VMenu = genericComponent()({
|
|
|
11371
11384
|
function onKeydown(e) {
|
|
11372
11385
|
if (props.disabled) return;
|
|
11373
11386
|
if (e.key === 'Tab' || e.key === 'Enter' && !props.closeOnContentClick) {
|
|
11387
|
+
if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return;
|
|
11374
11388
|
if (e.key === 'Enter') e.preventDefault();
|
|
11375
11389
|
const nextElement = getNextElement(focusableChildren(overlay.value?.contentEl, false), e.shiftKey ? 'prev' : 'next', el => el.tabIndex >= 0);
|
|
11376
11390
|
if (!nextElement) {
|
|
@@ -12552,7 +12566,7 @@ const VSelect = genericComponent()({
|
|
|
12552
12566
|
let keyboardLookupLastTime;
|
|
12553
12567
|
const displayItems = computed(() => {
|
|
12554
12568
|
if (props.hideSelected) {
|
|
12555
|
-
return items.value.filter(item => !model.value.some(s => s
|
|
12569
|
+
return items.value.filter(item => !model.value.some(s => props.valueComparator(s, item)));
|
|
12556
12570
|
}
|
|
12557
12571
|
return items.value;
|
|
12558
12572
|
});
|
|
@@ -13114,7 +13128,7 @@ const VAutocomplete = genericComponent()({
|
|
|
13114
13128
|
if (['Escape'].includes(e.key)) {
|
|
13115
13129
|
menu.value = false;
|
|
13116
13130
|
}
|
|
13117
|
-
if (highlightFirst.value &&
|
|
13131
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
|
13118
13132
|
select(displayItems.value[0]);
|
|
13119
13133
|
}
|
|
13120
13134
|
if (e.key === 'ArrowDown' && highlightFirst.value) {
|
|
@@ -13421,7 +13435,8 @@ const VAutocomplete = genericComponent()({
|
|
|
13421
13435
|
"onMousedown": onMousedownMenuIcon,
|
|
13422
13436
|
"onClick": noop,
|
|
13423
13437
|
"aria-label": t(label.value),
|
|
13424
|
-
"title": t(label.value)
|
|
13438
|
+
"title": t(label.value),
|
|
13439
|
+
"tabindex": "-1"
|
|
13425
13440
|
}, null) : undefined]);
|
|
13426
13441
|
}
|
|
13427
13442
|
});
|
|
@@ -13578,7 +13593,9 @@ const makeVBannerProps = propsFactory({
|
|
|
13578
13593
|
...makeComponentProps(),
|
|
13579
13594
|
...makeDensityProps(),
|
|
13580
13595
|
...makeDimensionProps(),
|
|
13581
|
-
...makeDisplayProps(
|
|
13596
|
+
...makeDisplayProps({
|
|
13597
|
+
mobile: null
|
|
13598
|
+
}),
|
|
13582
13599
|
...makeElevationProps(),
|
|
13583
13600
|
...makeLocationProps(),
|
|
13584
13601
|
...makePositionProps(),
|
|
@@ -16978,8 +16995,8 @@ const VCombobox = genericComponent()({
|
|
|
16978
16995
|
if (['Escape'].includes(e.key)) {
|
|
16979
16996
|
menu.value = false;
|
|
16980
16997
|
}
|
|
16981
|
-
if (['Enter', 'Escape'
|
|
16982
|
-
if (highlightFirst.value &&
|
|
16998
|
+
if (['Enter', 'Escape'].includes(e.key)) {
|
|
16999
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
|
16983
17000
|
select(filteredItems.value[0]);
|
|
16984
17001
|
}
|
|
16985
17002
|
isPristine.value = true;
|
|
@@ -17287,7 +17304,8 @@ const VCombobox = genericComponent()({
|
|
|
17287
17304
|
"onMousedown": onMousedownMenuIcon,
|
|
17288
17305
|
"onClick": noop,
|
|
17289
17306
|
"aria-label": t(label.value),
|
|
17290
|
-
"title": t(label.value)
|
|
17307
|
+
"title": t(label.value),
|
|
17308
|
+
"tabindex": "-1"
|
|
17291
17309
|
}, null) : undefined]);
|
|
17292
17310
|
}
|
|
17293
17311
|
});
|
|
@@ -18195,12 +18213,20 @@ const VConfirmEdit = genericComponent()({
|
|
|
18195
18213
|
}, null)]);
|
|
18196
18214
|
return createVNode(Fragment, null, [slots.default?.({
|
|
18197
18215
|
model: internalModel,
|
|
18216
|
+
save,
|
|
18217
|
+
cancel,
|
|
18218
|
+
isPristine: isPristine.value,
|
|
18198
18219
|
get actions() {
|
|
18199
18220
|
actionsUsed = true;
|
|
18200
18221
|
return actions;
|
|
18201
18222
|
}
|
|
18202
18223
|
}), !actionsUsed && actions]);
|
|
18203
18224
|
});
|
|
18225
|
+
return {
|
|
18226
|
+
save,
|
|
18227
|
+
cancel,
|
|
18228
|
+
isPristine
|
|
18229
|
+
};
|
|
18204
18230
|
}
|
|
18205
18231
|
});
|
|
18206
18232
|
|
|
@@ -18791,7 +18817,7 @@ function useSort() {
|
|
|
18791
18817
|
function useSortedItems(props, items, sortBy, options) {
|
|
18792
18818
|
const locale = useLocale();
|
|
18793
18819
|
const sortedItems = computed(() => {
|
|
18794
|
-
if (!sortBy.value.length) return items.value;
|
|
18820
|
+
if (!sortBy.value.length || props.disableSort) return items.value;
|
|
18795
18821
|
return sortItems(items.value, sortBy.value, locale.current.value, {
|
|
18796
18822
|
transform: options?.transform,
|
|
18797
18823
|
sortFunctions: {
|
|
@@ -19851,6 +19877,7 @@ function useHeaders() {
|
|
|
19851
19877
|
const makeVDataTableHeadersProps = propsFactory({
|
|
19852
19878
|
color: String,
|
|
19853
19879
|
sticky: Boolean,
|
|
19880
|
+
disableSort: Boolean,
|
|
19854
19881
|
multiSort: Boolean,
|
|
19855
19882
|
sortAscIcon: {
|
|
19856
19883
|
type: IconValue,
|
|
@@ -19941,7 +19968,7 @@ const VDataTableHeaders = genericComponent()({
|
|
|
19941
19968
|
"tag": "th",
|
|
19942
19969
|
"align": column.align,
|
|
19943
19970
|
"class": [{
|
|
19944
|
-
'v-data-table__th--sortable': column.sortable,
|
|
19971
|
+
'v-data-table__th--sortable': column.sortable && !props.disableSort,
|
|
19945
19972
|
'v-data-table__th--sorted': isSorted(column),
|
|
19946
19973
|
'v-data-table__th--fixed': column.fixed
|
|
19947
19974
|
}, ...headerCellClasses.value],
|
|
@@ -19981,7 +20008,7 @@ const VDataTableHeaders = genericComponent()({
|
|
|
19981
20008
|
}
|
|
19982
20009
|
return createVNode("div", {
|
|
19983
20010
|
"class": "v-data-table-header__content"
|
|
19984
|
-
}, [createVNode("span", null, [column.title]), column.sortable && createVNode(VIcon, {
|
|
20011
|
+
}, [createVNode("span", null, [column.title]), column.sortable && !props.disableSort && createVNode(VIcon, {
|
|
19985
20012
|
"key": "icon",
|
|
19986
20013
|
"class": "v-data-table-header__sort-icon",
|
|
19987
20014
|
"icon": getSortIcon(column)
|
|
@@ -19996,7 +20023,7 @@ const VDataTableHeaders = genericComponent()({
|
|
|
19996
20023
|
const VDataTableMobileHeaderCell = () => {
|
|
19997
20024
|
const headerProps = mergeProps(props.headerProps ?? {} ?? {});
|
|
19998
20025
|
const displayItems = computed(() => {
|
|
19999
|
-
return columns.value.filter(column => column?.sortable);
|
|
20026
|
+
return columns.value.filter(column => column?.sortable && !props.disableSort);
|
|
20000
20027
|
});
|
|
20001
20028
|
const appendIcon = computed(() => {
|
|
20002
20029
|
const showSelectColumn = columns.value.find(column => column.key === 'data-table-select');
|
|
@@ -20492,6 +20519,7 @@ function useDataTableItems(props, columns) {
|
|
|
20492
20519
|
|
|
20493
20520
|
const makeDataTableProps = propsFactory({
|
|
20494
20521
|
...makeVDataTableRowsProps(),
|
|
20522
|
+
hideDefaultBody: Boolean,
|
|
20495
20523
|
hideDefaultFooter: Boolean,
|
|
20496
20524
|
hideDefaultHeader: Boolean,
|
|
20497
20525
|
width: [String, Number],
|
|
@@ -20678,7 +20706,7 @@ const VDataTable = genericComponent()({
|
|
|
20678
20706
|
top: () => slots.top?.(slotProps.value),
|
|
20679
20707
|
default: () => slots.default ? slots.default(slotProps.value) : createVNode(Fragment, null, [slots.colgroup?.(slotProps.value), !props.hideDefaultHeader && createVNode("thead", {
|
|
20680
20708
|
"key": "thead"
|
|
20681
|
-
}, [createVNode(VDataTableHeaders, dataTableHeadersProps, slots)]), slots.thead?.(slotProps.value), createVNode("tbody", null, [slots['body.prepend']?.(slotProps.value), slots.body ? slots.body(slotProps.value) : createVNode(VDataTableRows, mergeProps(attrs, dataTableRowsProps, {
|
|
20709
|
+
}, [createVNode(VDataTableHeaders, dataTableHeadersProps, slots)]), slots.thead?.(slotProps.value), !props.hideDefaultBody && createVNode("tbody", null, [slots['body.prepend']?.(slotProps.value), slots.body ? slots.body(slotProps.value) : createVNode(VDataTableRows, mergeProps(attrs, dataTableRowsProps, {
|
|
20682
20710
|
"items": paginatedItems.value
|
|
20683
20711
|
}), slots), slots['body.append']?.(slotProps.value)]), slots.tbody?.(slotProps.value), slots.tfoot?.(slotProps.value)]),
|
|
20684
20712
|
bottom: () => slots.bottom ? slots.bottom(slotProps.value) : !props.hideDefaultFooter && createVNode(Fragment, null, [createVNode(VDivider, null, null), createVNode(VDataTableFooter, dataTableFooterProps, {
|
|
@@ -20853,7 +20881,7 @@ const VDataTableVirtual = genericComponent()({
|
|
|
20853
20881
|
"key": "thead"
|
|
20854
20882
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
|
20855
20883
|
"sticky": props.fixedHeader
|
|
20856
|
-
}), slots)]), createVNode("tbody", null, [createVNode("tr", {
|
|
20884
|
+
}), slots)]), !props.hideDefaultBody && createVNode("tbody", null, [createVNode("tr", {
|
|
20857
20885
|
"ref": markerRef,
|
|
20858
20886
|
"style": {
|
|
20859
20887
|
height: convertToUnit(paddingTop.value),
|
|
@@ -21062,7 +21090,7 @@ const VDataTableServer = genericComponent()({
|
|
|
21062
21090
|
"role": "rowgroup"
|
|
21063
21091
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
|
21064
21092
|
"sticky": props.fixedHeader
|
|
21065
|
-
}), slots)]), slots.thead?.(slotProps.value), createVNode("tbody", {
|
|
21093
|
+
}), slots)]), slots.thead?.(slotProps.value), !props.hideDefaultBody && createVNode("tbody", {
|
|
21066
21094
|
"class": "v-data-table__tbody",
|
|
21067
21095
|
"role": "rowgroup"
|
|
21068
21096
|
}, [slots['body.prepend']?.(slotProps.value), slots.body ? slots.body(slotProps.value) : createVNode(VDataTableRows, mergeProps(attrs, dataTableRowsProps, {
|
|
@@ -21837,7 +21865,10 @@ const VDatePickerMonth = genericComponent()({
|
|
|
21837
21865
|
const makeVDatePickerMonthsProps = propsFactory({
|
|
21838
21866
|
color: String,
|
|
21839
21867
|
height: [String, Number],
|
|
21840
|
-
|
|
21868
|
+
min: null,
|
|
21869
|
+
max: null,
|
|
21870
|
+
modelValue: Number,
|
|
21871
|
+
year: Number
|
|
21841
21872
|
}, 'VDatePickerMonths');
|
|
21842
21873
|
const VDatePickerMonths = genericComponent()({
|
|
21843
21874
|
name: 'VDatePickerMonths',
|
|
@@ -21854,10 +21885,15 @@ const VDatePickerMonths = genericComponent()({
|
|
|
21854
21885
|
const model = useProxiedModel(props, 'modelValue');
|
|
21855
21886
|
const months = computed(() => {
|
|
21856
21887
|
let date = adapter.startOfYear(adapter.date());
|
|
21888
|
+
if (props.year) {
|
|
21889
|
+
date = adapter.setYear(date, props.year);
|
|
21890
|
+
}
|
|
21857
21891
|
return createRange(12).map(i => {
|
|
21858
21892
|
const text = adapter.format(date, 'monthShort');
|
|
21893
|
+
const isDisabled = !!(props.min && adapter.isAfter(adapter.startOfMonth(adapter.date(props.min)), date) || props.max && adapter.isAfter(date, adapter.startOfMonth(adapter.date(props.max))));
|
|
21859
21894
|
date = adapter.getNextMonth(date);
|
|
21860
21895
|
return {
|
|
21896
|
+
isDisabled,
|
|
21861
21897
|
text,
|
|
21862
21898
|
value: i
|
|
21863
21899
|
};
|
|
@@ -21877,6 +21913,7 @@ const VDatePickerMonths = genericComponent()({
|
|
|
21877
21913
|
const btnProps = {
|
|
21878
21914
|
active: model.value === i,
|
|
21879
21915
|
color: model.value === i ? props.color : undefined,
|
|
21916
|
+
disabled: month.isDisabled,
|
|
21880
21917
|
rounded: true,
|
|
21881
21918
|
text: month.text,
|
|
21882
21919
|
variant: model.value === month.value ? 'flat' : 'text',
|
|
@@ -22277,7 +22314,8 @@ const VDatePicker = genericComponent()({
|
|
|
22277
22314
|
"modelValue": month.value,
|
|
22278
22315
|
"onUpdate:modelValue": [$event => month.value = $event, onUpdateMonth],
|
|
22279
22316
|
"min": minDate.value,
|
|
22280
|
-
"max": maxDate.value
|
|
22317
|
+
"max": maxDate.value,
|
|
22318
|
+
"year": year.value
|
|
22281
22319
|
}), null) : viewMode.value === 'year' ? createVNode(VDatePickerYears, mergeProps({
|
|
22282
22320
|
"key": "date-picker-years"
|
|
22283
22321
|
}, datePickerYearsProps, {
|
|
@@ -26405,6 +26443,7 @@ const VSwitch = genericComponent()({
|
|
|
26405
26443
|
blur
|
|
26406
26444
|
} = useFocus(props);
|
|
26407
26445
|
const control = ref();
|
|
26446
|
+
const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches;
|
|
26408
26447
|
const loaderColor = computed(() => {
|
|
26409
26448
|
return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
|
|
26410
26449
|
});
|
|
@@ -26473,7 +26512,7 @@ const VSwitch = genericComponent()({
|
|
|
26473
26512
|
backgroundColorStyles
|
|
26474
26513
|
} = _ref3;
|
|
26475
26514
|
return createVNode("div", {
|
|
26476
|
-
"class": ['v-switch__track',
|
|
26515
|
+
"class": ['v-switch__track', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
|
|
26477
26516
|
"style": backgroundColorStyles.value,
|
|
26478
26517
|
"onClick": onTrackClick
|
|
26479
26518
|
}, [slots['track-true'] && createVNode("div", {
|
|
@@ -26494,7 +26533,7 @@ const VSwitch = genericComponent()({
|
|
|
26494
26533
|
return createVNode(Fragment, null, [inputNode, createVNode("div", {
|
|
26495
26534
|
"class": ['v-switch__thumb', {
|
|
26496
26535
|
'v-switch__thumb--filled': icon || props.loading
|
|
26497
|
-
}, props.inset ? undefined : backgroundColorClasses.value],
|
|
26536
|
+
}, props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value],
|
|
26498
26537
|
"style": props.inset ? undefined : backgroundColorStyles.value
|
|
26499
26538
|
}, [slots.thumb ? createVNode(VDefaultsProvider, {
|
|
26500
26539
|
"defaults": {
|
|
@@ -27994,7 +28033,7 @@ function createVuetify$1() {
|
|
|
27994
28033
|
goTo
|
|
27995
28034
|
};
|
|
27996
28035
|
}
|
|
27997
|
-
const version$1 = "3.6.
|
|
28036
|
+
const version$1 = "3.6.7";
|
|
27998
28037
|
createVuetify$1.version = version$1;
|
|
27999
28038
|
|
|
28000
28039
|
// Vue's inject() can only be used in setup
|
|
@@ -28019,7 +28058,7 @@ const createVuetify = function () {
|
|
|
28019
28058
|
...options
|
|
28020
28059
|
});
|
|
28021
28060
|
};
|
|
28022
|
-
const version = "3.6.
|
|
28061
|
+
const version = "3.6.7";
|
|
28023
28062
|
createVuetify.version = version;
|
|
28024
28063
|
|
|
28025
28064
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|