@vuetify/nightly 3.6.6-master.2024-05-21 → 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 -15
- package/dist/json/attributes.json +42 -2
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +142 -142
- package/dist/json/tags.json +11 -1
- package/dist/json/web-types.json +101 -4
- package/dist/vuetify-labs.css +2143 -2138
- package/dist/vuetify-labs.d.ts +93 -12
- package/dist/vuetify-labs.esm.js +52 -29
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +52 -29
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +873 -868
- package/dist/vuetify.d.ts +132 -51
- package/dist/vuetify.esm.js +50 -27
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +50 -27
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +103 -102
- 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/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 +45 -45
- 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/package.json +1 -1
package/dist/vuetify-labs.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
|
*/
|
@@ -1319,7 +1319,7 @@ function internalUseDefaults() {
|
|
1319
1319
|
if (prop === 'class' || prop === 'style') {
|
1320
1320
|
return [componentDefaults.value?.[prop], propValue].filter(v => v != null);
|
1321
1321
|
} else if (typeof prop === 'string' && !propIsDefined(vm.vnode, prop)) {
|
1322
|
-
return componentDefaults.value?.[prop]
|
1322
|
+
return componentDefaults.value?.[prop] !== undefined ? componentDefaults.value?.[prop] : defaults.value?.global?.[prop] !== undefined ? defaults.value?.global?.[prop] : propValue;
|
1323
1323
|
}
|
1324
1324
|
return propValue;
|
1325
1325
|
}
|
@@ -2994,14 +2994,22 @@ const makeDimensionProps = propsFactory({
|
|
2994
2994
|
width: [Number, String]
|
2995
2995
|
}, 'dimension');
|
2996
2996
|
function useDimension(props) {
|
2997
|
-
const dimensionStyles = computed(() =>
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
|
3003
|
-
|
3004
|
-
|
2997
|
+
const dimensionStyles = computed(() => {
|
2998
|
+
const styles = {};
|
2999
|
+
const height = convertToUnit(props.height);
|
3000
|
+
const maxHeight = convertToUnit(props.maxHeight);
|
3001
|
+
const maxWidth = convertToUnit(props.maxWidth);
|
3002
|
+
const minHeight = convertToUnit(props.minHeight);
|
3003
|
+
const minWidth = convertToUnit(props.minWidth);
|
3004
|
+
const width = convertToUnit(props.width);
|
3005
|
+
if (height != null) styles.height = height;
|
3006
|
+
if (maxHeight != null) styles.maxHeight = maxHeight;
|
3007
|
+
if (maxWidth != null) styles.maxWidth = maxWidth;
|
3008
|
+
if (minHeight != null) styles.minHeight = minHeight;
|
3009
|
+
if (minWidth != null) styles.minWidth = minWidth;
|
3010
|
+
if (width != null) styles.width = width;
|
3011
|
+
return styles;
|
3012
|
+
});
|
3005
3013
|
return {
|
3006
3014
|
dimensionStyles
|
3007
3015
|
};
|
@@ -9203,7 +9211,8 @@ const VListChildren = genericComponent()({
|
|
9203
9211
|
}) : createVNode(VListItem, listItemProps, slotsWithItem);
|
9204
9212
|
},
|
9205
9213
|
default: () => createVNode(VListChildren, {
|
9206
|
-
"items": children
|
9214
|
+
"items": children,
|
9215
|
+
"returnObject": props.returnObject
|
9207
9216
|
}, slots)
|
9208
9217
|
}) : slots.item ? slots.item({
|
9209
9218
|
props: itemProps
|
@@ -12886,7 +12895,7 @@ const VAutocomplete = genericComponent()({
|
|
12886
12895
|
if (['Escape'].includes(e.key)) {
|
12887
12896
|
menu.value = false;
|
12888
12897
|
}
|
12889
|
-
if (highlightFirst.value &&
|
12898
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
12890
12899
|
select(displayItems.value[0]);
|
12891
12900
|
}
|
12892
12901
|
if (e.key === 'ArrowDown' && highlightFirst.value) {
|
@@ -13193,7 +13202,8 @@ const VAutocomplete = genericComponent()({
|
|
13193
13202
|
"onMousedown": onMousedownMenuIcon,
|
13194
13203
|
"onClick": noop,
|
13195
13204
|
"aria-label": t(label.value),
|
13196
|
-
"title": t(label.value)
|
13205
|
+
"title": t(label.value),
|
13206
|
+
"tabindex": "-1"
|
13197
13207
|
}, null) : undefined]);
|
13198
13208
|
}
|
13199
13209
|
});
|
@@ -16752,8 +16762,8 @@ const VCombobox = genericComponent()({
|
|
16752
16762
|
if (['Escape'].includes(e.key)) {
|
16753
16763
|
menu.value = false;
|
16754
16764
|
}
|
16755
|
-
if (['Enter', 'Escape'
|
16756
|
-
if (highlightFirst.value &&
|
16765
|
+
if (['Enter', 'Escape'].includes(e.key)) {
|
16766
|
+
if (highlightFirst.value && e.key === 'Enter') {
|
16757
16767
|
select(filteredItems.value[0]);
|
16758
16768
|
}
|
16759
16769
|
isPristine.value = true;
|
@@ -17061,7 +17071,8 @@ const VCombobox = genericComponent()({
|
|
17061
17071
|
"onMousedown": onMousedownMenuIcon,
|
17062
17072
|
"onClick": noop,
|
17063
17073
|
"aria-label": t(label.value),
|
17064
|
-
"title": t(label.value)
|
17074
|
+
"title": t(label.value),
|
17075
|
+
"tabindex": "-1"
|
17065
17076
|
}, null) : undefined]);
|
17066
17077
|
}
|
17067
17078
|
});
|
@@ -18573,7 +18584,7 @@ function useSort() {
|
|
18573
18584
|
function useSortedItems(props, items, sortBy, options) {
|
18574
18585
|
const locale = useLocale();
|
18575
18586
|
const sortedItems = computed(() => {
|
18576
|
-
if (!sortBy.value.length) return items.value;
|
18587
|
+
if (!sortBy.value.length || props.disableSort) return items.value;
|
18577
18588
|
return sortItems(items.value, sortBy.value, locale.current.value, {
|
18578
18589
|
transform: options?.transform,
|
18579
18590
|
sortFunctions: {
|
@@ -19633,6 +19644,7 @@ function useHeaders() {
|
|
19633
19644
|
const makeVDataTableHeadersProps = propsFactory({
|
19634
19645
|
color: String,
|
19635
19646
|
sticky: Boolean,
|
19647
|
+
disableSort: Boolean,
|
19636
19648
|
multiSort: Boolean,
|
19637
19649
|
sortAscIcon: {
|
19638
19650
|
type: IconValue,
|
@@ -19723,7 +19735,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19723
19735
|
"tag": "th",
|
19724
19736
|
"align": column.align,
|
19725
19737
|
"class": [{
|
19726
|
-
'v-data-table__th--sortable': column.sortable,
|
19738
|
+
'v-data-table__th--sortable': column.sortable && !props.disableSort,
|
19727
19739
|
'v-data-table__th--sorted': isSorted(column),
|
19728
19740
|
'v-data-table__th--fixed': column.fixed
|
19729
19741
|
}, ...headerCellClasses.value],
|
@@ -19763,7 +19775,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19763
19775
|
}
|
19764
19776
|
return createVNode("div", {
|
19765
19777
|
"class": "v-data-table-header__content"
|
19766
|
-
}, [createVNode("span", null, [column.title]), column.sortable && createVNode(VIcon, {
|
19778
|
+
}, [createVNode("span", null, [column.title]), column.sortable && !props.disableSort && createVNode(VIcon, {
|
19767
19779
|
"key": "icon",
|
19768
19780
|
"class": "v-data-table-header__sort-icon",
|
19769
19781
|
"icon": getSortIcon(column)
|
@@ -19778,7 +19790,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19778
19790
|
const VDataTableMobileHeaderCell = () => {
|
19779
19791
|
const headerProps = mergeProps(props.headerProps ?? {} ?? {});
|
19780
19792
|
const displayItems = computed(() => {
|
19781
|
-
return columns.value.filter(column => column?.sortable);
|
19793
|
+
return columns.value.filter(column => column?.sortable && !props.disableSort);
|
19782
19794
|
});
|
19783
19795
|
const appendIcon = computed(() => {
|
19784
19796
|
const showSelectColumn = columns.value.find(column => column.key === 'data-table-select');
|
@@ -20274,6 +20286,7 @@ function useDataTableItems(props, columns) {
|
|
20274
20286
|
|
20275
20287
|
const makeDataTableProps = propsFactory({
|
20276
20288
|
...makeVDataTableRowsProps(),
|
20289
|
+
hideDefaultBody: Boolean,
|
20277
20290
|
hideDefaultFooter: Boolean,
|
20278
20291
|
hideDefaultHeader: Boolean,
|
20279
20292
|
width: [String, Number],
|
@@ -20460,7 +20473,7 @@ const VDataTable = genericComponent()({
|
|
20460
20473
|
top: () => slots.top?.(slotProps.value),
|
20461
20474
|
default: () => slots.default ? slots.default(slotProps.value) : createVNode(Fragment, null, [slots.colgroup?.(slotProps.value), !props.hideDefaultHeader && createVNode("thead", {
|
20462
20475
|
"key": "thead"
|
20463
|
-
}, [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, {
|
20476
|
+
}, [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, {
|
20464
20477
|
"items": paginatedItems.value
|
20465
20478
|
}), slots), slots['body.append']?.(slotProps.value)]), slots.tbody?.(slotProps.value), slots.tfoot?.(slotProps.value)]),
|
20466
20479
|
bottom: () => slots.bottom ? slots.bottom(slotProps.value) : !props.hideDefaultFooter && createVNode(Fragment, null, [createVNode(VDivider, null, null), createVNode(VDataTableFooter, dataTableFooterProps, {
|
@@ -20635,7 +20648,7 @@ const VDataTableVirtual = genericComponent()({
|
|
20635
20648
|
"key": "thead"
|
20636
20649
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
20637
20650
|
"sticky": props.fixedHeader
|
20638
|
-
}), slots)]), createVNode("tbody", null, [createVNode("tr", {
|
20651
|
+
}), slots)]), !props.hideDefaultBody && createVNode("tbody", null, [createVNode("tr", {
|
20639
20652
|
"ref": markerRef,
|
20640
20653
|
"style": {
|
20641
20654
|
height: convertToUnit(paddingTop.value),
|
@@ -20844,7 +20857,7 @@ const VDataTableServer = genericComponent()({
|
|
20844
20857
|
"role": "rowgroup"
|
20845
20858
|
}, [createVNode(VDataTableHeaders, mergeProps(dataTableHeadersProps, {
|
20846
20859
|
"sticky": props.fixedHeader
|
20847
|
-
}), slots)]), slots.thead?.(slotProps.value), createVNode("tbody", {
|
20860
|
+
}), slots)]), slots.thead?.(slotProps.value), !props.hideDefaultBody && createVNode("tbody", {
|
20848
20861
|
"class": "v-data-table__tbody",
|
20849
20862
|
"role": "rowgroup"
|
20850
20863
|
}, [slots['body.prepend']?.(slotProps.value), slots.body ? slots.body(slotProps.value) : createVNode(VDataTableRows, mergeProps(attrs, dataTableRowsProps, {
|
@@ -21619,7 +21632,10 @@ const VDatePickerMonth = genericComponent()({
|
|
21619
21632
|
const makeVDatePickerMonthsProps = propsFactory({
|
21620
21633
|
color: String,
|
21621
21634
|
height: [String, Number],
|
21622
|
-
|
21635
|
+
min: null,
|
21636
|
+
max: null,
|
21637
|
+
modelValue: Number,
|
21638
|
+
year: Number
|
21623
21639
|
}, 'VDatePickerMonths');
|
21624
21640
|
const VDatePickerMonths = genericComponent()({
|
21625
21641
|
name: 'VDatePickerMonths',
|
@@ -21636,10 +21652,15 @@ const VDatePickerMonths = genericComponent()({
|
|
21636
21652
|
const model = useProxiedModel(props, 'modelValue');
|
21637
21653
|
const months = computed(() => {
|
21638
21654
|
let date = adapter.startOfYear(adapter.date());
|
21655
|
+
if (props.year) {
|
21656
|
+
date = adapter.setYear(date, props.year);
|
21657
|
+
}
|
21639
21658
|
return createRange(12).map(i => {
|
21640
21659
|
const text = adapter.format(date, 'monthShort');
|
21660
|
+
const isDisabled = !!(props.min && adapter.isAfter(adapter.startOfMonth(adapter.date(props.min)), date) || props.max && adapter.isAfter(date, adapter.startOfMonth(adapter.date(props.max))));
|
21641
21661
|
date = adapter.getNextMonth(date);
|
21642
21662
|
return {
|
21663
|
+
isDisabled,
|
21643
21664
|
text,
|
21644
21665
|
value: i
|
21645
21666
|
};
|
@@ -21659,6 +21680,7 @@ const VDatePickerMonths = genericComponent()({
|
|
21659
21680
|
const btnProps = {
|
21660
21681
|
active: model.value === i,
|
21661
21682
|
color: model.value === i ? props.color : undefined,
|
21683
|
+
disabled: month.isDisabled,
|
21662
21684
|
rounded: true,
|
21663
21685
|
text: month.text,
|
21664
21686
|
variant: model.value === month.value ? 'flat' : 'text',
|
@@ -22059,7 +22081,8 @@ const VDatePicker = genericComponent()({
|
|
22059
22081
|
"modelValue": month.value,
|
22060
22082
|
"onUpdate:modelValue": [$event => month.value = $event, onUpdateMonth],
|
22061
22083
|
"min": minDate.value,
|
22062
|
-
"max": maxDate.value
|
22084
|
+
"max": maxDate.value,
|
22085
|
+
"year": year.value
|
22063
22086
|
}), null) : viewMode.value === 'year' ? createVNode(VDatePickerYears, mergeProps({
|
22064
22087
|
"key": "date-picker-years"
|
22065
22088
|
}, datePickerYearsProps, {
|
@@ -27723,7 +27746,7 @@ const VCalendar = genericComponent()({
|
|
27723
27746
|
}
|
27724
27747
|
}
|
27725
27748
|
function onClickToday() {
|
27726
|
-
model.value = [
|
27749
|
+
model.value = [adapter.date()];
|
27727
27750
|
}
|
27728
27751
|
const title = computed(() => {
|
27729
27752
|
return adapter.format(displayValue.value, 'monthAndYear');
|
@@ -27762,7 +27785,7 @@ const VCalendar = genericComponent()({
|
|
27762
27785
|
}, [chunkArray(daysInMonth.value, props.weekdays.length).map((week, wi) => [!props.hideWeekNumber ? createVNode("div", {
|
27763
27786
|
"class": "v-calendar-month__weeknumber"
|
27764
27787
|
}, [weekNumbers.value[wi]]) : '', week.map(day => createVNode(VCalendarMonthDay, {
|
27765
|
-
"color": adapter.isSameDay(
|
27788
|
+
"color": adapter.isSameDay(adapter.date(), day.date) ? 'primary' : undefined,
|
27766
27789
|
"day": day,
|
27767
27790
|
"title": day ? adapter.format(day.date, 'dayOfMonth') : 'NaN',
|
27768
27791
|
"events": props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end))
|
@@ -30100,7 +30123,7 @@ function createVuetify$1() {
|
|
30100
30123
|
goTo
|
30101
30124
|
};
|
30102
30125
|
}
|
30103
|
-
const version$1 = "3.6.
|
30126
|
+
const version$1 = "3.6.7-master.2024-05-22";
|
30104
30127
|
createVuetify$1.version = version$1;
|
30105
30128
|
|
30106
30129
|
// Vue's inject() can only be used in setup
|
@@ -30353,7 +30376,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
30353
30376
|
|
30354
30377
|
/* eslint-disable local-rules/sort-imports */
|
30355
30378
|
|
30356
|
-
const version = "3.6.
|
30379
|
+
const version = "3.6.7-master.2024-05-22";
|
30357
30380
|
|
30358
30381
|
/* eslint-disable local-rules/sort-imports */
|
30359
30382
|
|