@vuetify/nightly 3.6.6-master.2024-05-17 → 3.6.7-master.2024-05-22
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 +2 -13
- package/dist/json/attributes.json +42 -2
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +148 -148
- package/dist/json/tags.json +11 -1
- package/dist/json/web-types.json +107 -10
- package/dist/vuetify-labs.css +2242 -2236
- package/dist/vuetify-labs.d.ts +93 -12
- package/dist/vuetify-labs.esm.js +54 -29
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +54 -29
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +669 -663
- package/dist/vuetify.d.ts +133 -52
- package/dist/vuetify.esm.js +52 -27
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +52 -27
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +103 -101
- 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/VCombobox/VCombobox.mjs +4 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- 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 +1 -1
- package/lib/components/VDivider/VDivider.sass +1 -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/index.d.mts +87 -6
- 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 +46 -46
- 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/components.d.mts +6 -6
- package/lib/locale/fa.mjs +10 -10
- package/lib/locale/fa.mjs.map +1 -1
- package/lib/util/helpers.mjs +2 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.6.
|
2
|
+
* Vuetify v3.6.7-master.2024-05-22
|
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
|
};
|
@@ -9434,7 +9444,8 @@ const VListChildren = genericComponent()({
|
|
9434
9444
|
}) : createVNode(VListItem, listItemProps, slotsWithItem);
|
9435
9445
|
},
|
9436
9446
|
default: () => createVNode(VListChildren, {
|
9437
|
-
"items": children
|
9447
|
+
"items": children,
|
9448
|
+
"returnObject": props.returnObject
|
9438
9449
|
}, slots)
|
9439
9450
|
}) : slots.item ? slots.item({
|
9440
9451
|
props: itemProps
|
@@ -13117,7 +13128,7 @@ const VAutocomplete = genericComponent()({
|
|
13117
13128
|
if (['Escape'].includes(e.key)) {
|
13118
13129
|
menu.value = false;
|
13119
13130
|
}
|
13120
|
-
if (highlightFirst.value &&
|
13131
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
13121
13132
|
select(displayItems.value[0]);
|
13122
13133
|
}
|
13123
13134
|
if (e.key === 'ArrowDown' && highlightFirst.value) {
|
@@ -13424,7 +13435,8 @@ const VAutocomplete = genericComponent()({
|
|
13424
13435
|
"onMousedown": onMousedownMenuIcon,
|
13425
13436
|
"onClick": noop,
|
13426
13437
|
"aria-label": t(label.value),
|
13427
|
-
"title": t(label.value)
|
13438
|
+
"title": t(label.value),
|
13439
|
+
"tabindex": "-1"
|
13428
13440
|
}, null) : undefined]);
|
13429
13441
|
}
|
13430
13442
|
});
|
@@ -16983,8 +16995,8 @@ const VCombobox = genericComponent()({
|
|
16983
16995
|
if (['Escape'].includes(e.key)) {
|
16984
16996
|
menu.value = false;
|
16985
16997
|
}
|
16986
|
-
if (['Enter', 'Escape'
|
16987
|
-
if (highlightFirst.value &&
|
16998
|
+
if (['Enter', 'Escape'].includes(e.key)) {
|
16999
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
16988
17000
|
select(filteredItems.value[0]);
|
16989
17001
|
}
|
16990
17002
|
isPristine.value = true;
|
@@ -17292,7 +17304,8 @@ const VCombobox = genericComponent()({
|
|
17292
17304
|
"onMousedown": onMousedownMenuIcon,
|
17293
17305
|
"onClick": noop,
|
17294
17306
|
"aria-label": t(label.value),
|
17295
|
-
"title": t(label.value)
|
17307
|
+
"title": t(label.value),
|
17308
|
+
"tabindex": "-1"
|
17296
17309
|
}, null) : undefined]);
|
17297
17310
|
}
|
17298
17311
|
});
|
@@ -18804,7 +18817,7 @@ function useSort() {
|
|
18804
18817
|
function useSortedItems(props, items, sortBy, options) {
|
18805
18818
|
const locale = useLocale();
|
18806
18819
|
const sortedItems = computed(() => {
|
18807
|
-
if (!sortBy.value.length) return items.value;
|
18820
|
+
if (!sortBy.value.length || props.disableSort) return items.value;
|
18808
18821
|
return sortItems(items.value, sortBy.value, locale.current.value, {
|
18809
18822
|
transform: options?.transform,
|
18810
18823
|
sortFunctions: {
|
@@ -19864,6 +19877,7 @@ function useHeaders() {
|
|
19864
19877
|
const makeVDataTableHeadersProps = propsFactory({
|
19865
19878
|
color: String,
|
19866
19879
|
sticky: Boolean,
|
19880
|
+
disableSort: Boolean,
|
19867
19881
|
multiSort: Boolean,
|
19868
19882
|
sortAscIcon: {
|
19869
19883
|
type: IconValue,
|
@@ -19954,7 +19968,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19954
19968
|
"tag": "th",
|
19955
19969
|
"align": column.align,
|
19956
19970
|
"class": [{
|
19957
|
-
'v-data-table__th--sortable': column.sortable,
|
19971
|
+
'v-data-table__th--sortable': column.sortable && !props.disableSort,
|
19958
19972
|
'v-data-table__th--sorted': isSorted(column),
|
19959
19973
|
'v-data-table__th--fixed': column.fixed
|
19960
19974
|
}, ...headerCellClasses.value],
|
@@ -19994,7 +20008,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19994
20008
|
}
|
19995
20009
|
return createVNode("div", {
|
19996
20010
|
"class": "v-data-table-header__content"
|
19997
|
-
}, [createVNode("span", null, [column.title]), column.sortable && createVNode(VIcon, {
|
20011
|
+
}, [createVNode("span", null, [column.title]), column.sortable && !props.disableSort && createVNode(VIcon, {
|
19998
20012
|
"key": "icon",
|
19999
20013
|
"class": "v-data-table-header__sort-icon",
|
20000
20014
|
"icon": getSortIcon(column)
|
@@ -20009,7 +20023,7 @@ const VDataTableHeaders = genericComponent()({
|
|
20009
20023
|
const VDataTableMobileHeaderCell = () => {
|
20010
20024
|
const headerProps = mergeProps(props.headerProps ?? {} ?? {});
|
20011
20025
|
const displayItems = computed(() => {
|
20012
|
-
return columns.value.filter(column => column?.sortable);
|
20026
|
+
return columns.value.filter(column => column?.sortable && !props.disableSort);
|
20013
20027
|
});
|
20014
20028
|
const appendIcon = computed(() => {
|
20015
20029
|
const showSelectColumn = columns.value.find(column => column.key === 'data-table-select');
|
@@ -20505,6 +20519,7 @@ function useDataTableItems(props, columns) {
|
|
20505
20519
|
|
20506
20520
|
const makeDataTableProps = propsFactory({
|
20507
20521
|
...makeVDataTableRowsProps(),
|
20522
|
+
hideDefaultBody: Boolean,
|
20508
20523
|
hideDefaultFooter: Boolean,
|
20509
20524
|
hideDefaultHeader: Boolean,
|
20510
20525
|
width: [String, Number],
|
@@ -20691,7 +20706,7 @@ const VDataTable = genericComponent()({
|
|
20691
20706
|
top: () => slots.top?.(slotProps.value),
|
20692
20707
|
default: () => slots.default ? slots.default(slotProps.value) : createVNode(Fragment, null, [slots.colgroup?.(slotProps.value), !props.hideDefaultHeader && createVNode("thead", {
|
20693
20708
|
"key": "thead"
|
20694
|
-
}, [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, {
|
20695
20710
|
"items": paginatedItems.value
|
20696
20711
|
}), slots), slots['body.append']?.(slotProps.value)]), slots.tbody?.(slotProps.value), slots.tfoot?.(slotProps.value)]),
|
20697
20712
|
bottom: () => slots.bottom ? slots.bottom(slotProps.value) : !props.hideDefaultFooter && createVNode(Fragment, null, [createVNode(VDivider, null, null), createVNode(VDataTableFooter, dataTableFooterProps, {
|
@@ -20866,7 +20881,7 @@ const VDataTableVirtual = genericComponent()({
|
|
20866
20881
|
"key": "thead"
|
20867
20882
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
20868
20883
|
"sticky": props.fixedHeader
|
20869
|
-
}), slots)]), createVNode("tbody", null, [createVNode("tr", {
|
20884
|
+
}), slots)]), !props.hideDefaultBody && createVNode("tbody", null, [createVNode("tr", {
|
20870
20885
|
"ref": markerRef,
|
20871
20886
|
"style": {
|
20872
20887
|
height: convertToUnit(paddingTop.value),
|
@@ -21075,7 +21090,7 @@ const VDataTableServer = genericComponent()({
|
|
21075
21090
|
"role": "rowgroup"
|
21076
21091
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
21077
21092
|
"sticky": props.fixedHeader
|
21078
|
-
}), slots)]), slots.thead?.(slotProps.value), createVNode("tbody", {
|
21093
|
+
}), slots)]), slots.thead?.(slotProps.value), !props.hideDefaultBody && createVNode("tbody", {
|
21079
21094
|
"class": "v-data-table__tbody",
|
21080
21095
|
"role": "rowgroup"
|
21081
21096
|
}, [slots['body.prepend']?.(slotProps.value), slots.body ? slots.body(slotProps.value) : createVNode(VDataTableRows, mergeProps(attrs, dataTableRowsProps, {
|
@@ -21850,7 +21865,10 @@ const VDatePickerMonth = genericComponent()({
|
|
21850
21865
|
const makeVDatePickerMonthsProps = propsFactory({
|
21851
21866
|
color: String,
|
21852
21867
|
height: [String, Number],
|
21853
|
-
|
21868
|
+
min: null,
|
21869
|
+
max: null,
|
21870
|
+
modelValue: Number,
|
21871
|
+
year: Number
|
21854
21872
|
}, 'VDatePickerMonths');
|
21855
21873
|
const VDatePickerMonths = genericComponent()({
|
21856
21874
|
name: 'VDatePickerMonths',
|
@@ -21867,10 +21885,15 @@ const VDatePickerMonths = genericComponent()({
|
|
21867
21885
|
const model = useProxiedModel(props, 'modelValue');
|
21868
21886
|
const months = computed(() => {
|
21869
21887
|
let date = adapter.startOfYear(adapter.date());
|
21888
|
+
if (props.year) {
|
21889
|
+
date = adapter.setYear(date, props.year);
|
21890
|
+
}
|
21870
21891
|
return createRange(12).map(i => {
|
21871
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))));
|
21872
21894
|
date = adapter.getNextMonth(date);
|
21873
21895
|
return {
|
21896
|
+
isDisabled,
|
21874
21897
|
text,
|
21875
21898
|
value: i
|
21876
21899
|
};
|
@@ -21890,6 +21913,7 @@ const VDatePickerMonths = genericComponent()({
|
|
21890
21913
|
const btnProps = {
|
21891
21914
|
active: model.value === i,
|
21892
21915
|
color: model.value === i ? props.color : undefined,
|
21916
|
+
disabled: month.isDisabled,
|
21893
21917
|
rounded: true,
|
21894
21918
|
text: month.text,
|
21895
21919
|
variant: model.value === month.value ? 'flat' : 'text',
|
@@ -22290,7 +22314,8 @@ const VDatePicker = genericComponent()({
|
|
22290
22314
|
"modelValue": month.value,
|
22291
22315
|
"onUpdate:modelValue": [$event => month.value = $event, onUpdateMonth],
|
22292
22316
|
"min": minDate.value,
|
22293
|
-
"max": maxDate.value
|
22317
|
+
"max": maxDate.value,
|
22318
|
+
"year": year.value
|
22294
22319
|
}), null) : viewMode.value === 'year' ? createVNode(VDatePickerYears, mergeProps({
|
22295
22320
|
"key": "date-picker-years"
|
22296
22321
|
}, datePickerYearsProps, {
|
@@ -28008,7 +28033,7 @@ function createVuetify$1() {
|
|
28008
28033
|
goTo
|
28009
28034
|
};
|
28010
28035
|
}
|
28011
|
-
const version$1 = "3.6.
|
28036
|
+
const version$1 = "3.6.7-master.2024-05-22";
|
28012
28037
|
createVuetify$1.version = version$1;
|
28013
28038
|
|
28014
28039
|
// Vue's inject() can only be used in setup
|
@@ -28033,7 +28058,7 @@ const createVuetify = function () {
|
|
28033
28058
|
...options
|
28034
28059
|
});
|
28035
28060
|
};
|
28036
|
-
const version = "3.6.
|
28061
|
+
const version = "3.6.7-master.2024-05-22";
|
28037
28062
|
createVuetify.version = version;
|
28038
28063
|
|
28039
28064
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|