@vuetify/nightly 3.6.0-alpha.2-dev.2024-04-29 → 3.6.0-alpha.2-dev.2024-04-30
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 +4 -2
- package/dist/json/attributes.json +61 -9
- package/dist/json/importMap-labs.json +26 -22
- package/dist/json/importMap.json +128 -128
- package/dist/json/tags.json +19 -1
- package/dist/json/web-types.json +906 -494
- package/dist/vuetify-labs.css +2398 -2341
- package/dist/vuetify-labs.d.ts +438 -214
- package/dist/vuetify-labs.esm.js +220 -18
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +220 -18
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +829 -798
- package/dist/vuetify.d.ts +300 -257
- package/dist/vuetify.esm.js +111 -18
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +111 -18
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +180 -175
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VDataIterator/index.d.mts +2 -0
- package/lib/components/VDataTable/VDataTable.css +35 -0
- package/lib/components/VDataTable/VDataTable.sass +34 -1
- package/lib/components/VDataTable/VDataTableFooter.css +5 -9
- package/lib/components/VDataTable/VDataTableFooter.sass +21 -21
- package/lib/components/VDataTable/VDataTableHeaders.mjs +66 -7
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +45 -10
- package/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs +8 -2
- package/lib/components/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/components/VDataTable/_variables.scss +9 -4
- package/lib/components/VDataTable/index.d.mts +263 -217
- package/lib/components/VDataTable/types.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +1 -1
- package/lib/components/index.d.mts +255 -213
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +45 -44
- package/lib/labs/VPullToRefresh/VPullToRefresh.css +27 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.mjs +117 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.mjs.map +1 -0
- package/lib/labs/VPullToRefresh/VPullToRefresh.sass +23 -0
- package/lib/labs/VPullToRefresh/index.d.mts +189 -0
- package/lib/labs/VPullToRefresh/index.mjs +2 -0
- package/lib/labs/VPullToRefresh/index.mjs.map +1 -0
- package/lib/labs/components.d.mts +182 -1
- package/lib/labs/components.mjs +1 -0
- package/lib/labs/components.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.6.0-alpha.2-dev.2024-04-
|
|
2
|
+
* Vuetify v3.6.0-alpha.2-dev.2024-04-30
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -19762,6 +19762,7 @@
|
|
|
19762
19762
|
headerProps: {
|
|
19763
19763
|
type: Object
|
|
19764
19764
|
},
|
|
19765
|
+
...makeDisplayProps(),
|
|
19765
19766
|
...makeLoaderProps()
|
|
19766
19767
|
}, 'VDataTableHeaders');
|
|
19767
19768
|
const VDataTableHeaders = genericComponent()({
|
|
@@ -19771,6 +19772,9 @@
|
|
|
19771
19772
|
let {
|
|
19772
19773
|
slots
|
|
19773
19774
|
} = _ref;
|
|
19775
|
+
const {
|
|
19776
|
+
t
|
|
19777
|
+
} = useLocale();
|
|
19774
19778
|
const {
|
|
19775
19779
|
toggleSort,
|
|
19776
19780
|
sortBy,
|
|
@@ -19806,6 +19810,10 @@
|
|
|
19806
19810
|
backgroundColorClasses,
|
|
19807
19811
|
backgroundColorStyles
|
|
19808
19812
|
} = useBackgroundColor(props, 'color');
|
|
19813
|
+
const {
|
|
19814
|
+
displayClasses,
|
|
19815
|
+
mobile
|
|
19816
|
+
} = useDisplay(props);
|
|
19809
19817
|
const slotProps = vue.computed(() => ({
|
|
19810
19818
|
headers: headers.value,
|
|
19811
19819
|
columns: columns.value,
|
|
@@ -19817,6 +19825,9 @@
|
|
|
19817
19825
|
selectAll,
|
|
19818
19826
|
getSortIcon
|
|
19819
19827
|
}));
|
|
19828
|
+
const headerCellClasses = vue.computed(() => ['v-data-table__th', {
|
|
19829
|
+
'v-data-table__th--sticky': props.sticky
|
|
19830
|
+
}, displayClasses.value, loaderClasses.value]);
|
|
19820
19831
|
const VDataTableHeaderCell = _ref2 => {
|
|
19821
19832
|
let {
|
|
19822
19833
|
column,
|
|
@@ -19828,12 +19839,11 @@
|
|
|
19828
19839
|
return vue.createVNode(VDataTableColumn, vue.mergeProps({
|
|
19829
19840
|
"tag": "th",
|
|
19830
19841
|
"align": column.align,
|
|
19831
|
-
"class": [
|
|
19842
|
+
"class": [{
|
|
19832
19843
|
'v-data-table__th--sortable': column.sortable,
|
|
19833
19844
|
'v-data-table__th--sorted': isSorted(column),
|
|
19834
|
-
'v-data-table__th--fixed': column.fixed
|
|
19835
|
-
|
|
19836
|
-
}, loaderClasses.value],
|
|
19845
|
+
'v-data-table__th--fixed': column.fixed
|
|
19846
|
+
}, ...headerCellClasses.value],
|
|
19837
19847
|
"style": {
|
|
19838
19848
|
width: convertToUnit(column.width),
|
|
19839
19849
|
minWidth: convertToUnit(column.minWidth),
|
|
@@ -19882,8 +19892,53 @@
|
|
|
19882
19892
|
}
|
|
19883
19893
|
});
|
|
19884
19894
|
};
|
|
19895
|
+
const VDataTableMobileHeaderCell = () => {
|
|
19896
|
+
const headerProps = vue.mergeProps(props.headerProps ?? {} ?? {});
|
|
19897
|
+
const displayItems = vue.computed(() => {
|
|
19898
|
+
return columns.value.filter(column => column?.sortable);
|
|
19899
|
+
});
|
|
19900
|
+
const appendIcon = vue.computed(() => {
|
|
19901
|
+
return allSelected.value ? '$checkboxOn' : someSelected.value ? '$checkboxIndeterminate' : '$checkboxOff';
|
|
19902
|
+
});
|
|
19903
|
+
return vue.createVNode(VDataTableColumn, vue.mergeProps({
|
|
19904
|
+
"tag": "th",
|
|
19905
|
+
"class": [...headerCellClasses.value],
|
|
19906
|
+
"colspan": headers.value.length + 1
|
|
19907
|
+
}, headerProps), {
|
|
19908
|
+
default: () => [vue.createVNode("div", {
|
|
19909
|
+
"class": "v-data-table-header__content"
|
|
19910
|
+
}, [vue.createVNode(VSelect, {
|
|
19911
|
+
"chips": true,
|
|
19912
|
+
"class": "v-data-table__td-sort-select",
|
|
19913
|
+
"clearable": true,
|
|
19914
|
+
"density": "default",
|
|
19915
|
+
"items": displayItems.value,
|
|
19916
|
+
"label": t('$vuetify.dataTable.sortBy'),
|
|
19917
|
+
"multiple": props.multiSort,
|
|
19918
|
+
"variant": "underlined",
|
|
19919
|
+
"onClick:clear": () => sortBy.value = [],
|
|
19920
|
+
"appendIcon": appendIcon.value,
|
|
19921
|
+
"onClick:append": () => selectAll(!allSelected.value)
|
|
19922
|
+
}, {
|
|
19923
|
+
...slots,
|
|
19924
|
+
chip: props => vue.createVNode(VChip, {
|
|
19925
|
+
"onClick": props.item.raw?.sortable ? () => toggleSort(props.item.raw) : undefined,
|
|
19926
|
+
"onMousedown": e => {
|
|
19927
|
+
e.preventDefault();
|
|
19928
|
+
e.stopPropagation();
|
|
19929
|
+
}
|
|
19930
|
+
}, {
|
|
19931
|
+
default: () => [props.item.title, vue.createVNode(VIcon, {
|
|
19932
|
+
"class": ['v-data-table__td-sort-icon', isSorted(props.item.raw) && 'v-data-table__td-sort-icon-active'],
|
|
19933
|
+
"icon": getSortIcon(props.item.raw),
|
|
19934
|
+
"size": "small"
|
|
19935
|
+
}, null)]
|
|
19936
|
+
})
|
|
19937
|
+
})])]
|
|
19938
|
+
});
|
|
19939
|
+
};
|
|
19885
19940
|
useRender(() => {
|
|
19886
|
-
return vue.createVNode(vue.Fragment, null, [slots.headers ? slots.headers(slotProps.value) : headers.value.map((row, y) => vue.createVNode("tr", null, [row.map((column, x) => vue.createVNode(VDataTableHeaderCell, {
|
|
19941
|
+
return mobile.value ? vue.createVNode("tr", null, [vue.createVNode(VDataTableMobileHeaderCell, null, null)]) : vue.createVNode(vue.Fragment, null, [slots.headers ? slots.headers(slotProps.value) : headers.value.map((row, y) => vue.createVNode("tr", null, [row.map((column, x) => vue.createVNode(VDataTableHeaderCell, {
|
|
19887
19942
|
"column": column,
|
|
19888
19943
|
"x": x,
|
|
19889
19944
|
"y": y
|
|
@@ -19991,7 +20046,8 @@
|
|
|
19991
20046
|
cellProps: [Object, Function],
|
|
19992
20047
|
onClick: EventProp(),
|
|
19993
20048
|
onContextmenu: EventProp(),
|
|
19994
|
-
onDblclick: EventProp()
|
|
20049
|
+
onDblclick: EventProp(),
|
|
20050
|
+
...makeDisplayProps()
|
|
19995
20051
|
}, 'VDataTableRow');
|
|
19996
20052
|
const VDataTableRow = genericComponent()({
|
|
19997
20053
|
name: 'VDataTableRow',
|
|
@@ -20000,27 +20056,40 @@
|
|
|
20000
20056
|
let {
|
|
20001
20057
|
slots
|
|
20002
20058
|
} = _ref;
|
|
20059
|
+
const {
|
|
20060
|
+
displayClasses,
|
|
20061
|
+
mobile
|
|
20062
|
+
} = useDisplay(props, 'v-data-table__tr');
|
|
20003
20063
|
const {
|
|
20004
20064
|
isSelected,
|
|
20005
|
-
toggleSelect
|
|
20065
|
+
toggleSelect,
|
|
20066
|
+
someSelected,
|
|
20067
|
+
allSelected,
|
|
20068
|
+
selectAll
|
|
20006
20069
|
} = useSelection();
|
|
20007
20070
|
const {
|
|
20008
20071
|
isExpanded,
|
|
20009
20072
|
toggleExpand
|
|
20010
20073
|
} = useExpanded();
|
|
20074
|
+
const {
|
|
20075
|
+
toggleSort,
|
|
20076
|
+
sortBy,
|
|
20077
|
+
isSorted
|
|
20078
|
+
} = useSort();
|
|
20011
20079
|
const {
|
|
20012
20080
|
columns
|
|
20013
20081
|
} = useHeaders();
|
|
20014
20082
|
useRender(() => vue.createVNode("tr", {
|
|
20015
20083
|
"class": ['v-data-table__tr', {
|
|
20016
20084
|
'v-data-table__tr--clickable': !!(props.onClick || props.onContextmenu || props.onDblclick)
|
|
20017
|
-
}],
|
|
20085
|
+
}, displayClasses.value],
|
|
20018
20086
|
"onClick": props.onClick,
|
|
20019
20087
|
"onContextmenu": props.onContextmenu,
|
|
20020
20088
|
"onDblclick": props.onDblclick
|
|
20021
20089
|
}, [props.item && columns.value.map((column, i) => {
|
|
20022
20090
|
const item = props.item;
|
|
20023
20091
|
const slotName = `item.${column.key}`;
|
|
20092
|
+
const headerSlotName = `header.${column.key}`;
|
|
20024
20093
|
const slotProps = {
|
|
20025
20094
|
index: props.index,
|
|
20026
20095
|
item: item.raw,
|
|
@@ -20032,6 +20101,16 @@
|
|
|
20032
20101
|
isExpanded,
|
|
20033
20102
|
toggleExpand
|
|
20034
20103
|
};
|
|
20104
|
+
const columnSlotProps = {
|
|
20105
|
+
column,
|
|
20106
|
+
selectAll,
|
|
20107
|
+
isSorted,
|
|
20108
|
+
toggleSort,
|
|
20109
|
+
sortBy: sortBy.value,
|
|
20110
|
+
someSelected: someSelected.value,
|
|
20111
|
+
allSelected: allSelected.value,
|
|
20112
|
+
getSortIcon: () => ''
|
|
20113
|
+
};
|
|
20035
20114
|
const cellProps = typeof props.cellProps === 'function' ? props.cellProps({
|
|
20036
20115
|
index: slotProps.index,
|
|
20037
20116
|
item: slotProps.item,
|
|
@@ -20047,16 +20126,20 @@
|
|
|
20047
20126
|
}) : column.cellProps;
|
|
20048
20127
|
return vue.createVNode(VDataTableColumn, vue.mergeProps({
|
|
20049
20128
|
"align": column.align,
|
|
20129
|
+
"class": {
|
|
20130
|
+
'v-data-table__td--expanded-row': column.key === 'data-table-expand',
|
|
20131
|
+
'v-data-table__td--select-row': column.key === 'data-table-select'
|
|
20132
|
+
},
|
|
20050
20133
|
"fixed": column.fixed,
|
|
20051
20134
|
"fixedOffset": column.fixedOffset,
|
|
20052
20135
|
"lastFixed": column.lastFixed,
|
|
20136
|
+
"maxWidth": !mobile.value ? column.maxWidth : undefined,
|
|
20053
20137
|
"noPadding": column.key === 'data-table-select' || column.key === 'data-table-expand',
|
|
20054
|
-
"
|
|
20055
|
-
"
|
|
20056
|
-
"nowrap": column.nowrap
|
|
20138
|
+
"nowrap": column.nowrap,
|
|
20139
|
+
"width": !mobile.value ? column.width : undefined
|
|
20057
20140
|
}, cellProps, columnCellProps), {
|
|
20058
20141
|
default: () => {
|
|
20059
|
-
if (slots[slotName]) return slots[slotName](slotProps);
|
|
20142
|
+
if (slots[slotName] && !mobile.value) return slots[slotName]?.(slotProps);
|
|
20060
20143
|
if (column.key === 'data-table-select') {
|
|
20061
20144
|
return slots['item.data-table-select']?.(slotProps) ?? vue.createVNode(VCheckboxBtn, {
|
|
20062
20145
|
"disabled": !item.selectable,
|
|
@@ -20072,7 +20155,12 @@
|
|
|
20072
20155
|
"onClick": vue.withModifiers(() => toggleExpand(item), ['stop'])
|
|
20073
20156
|
}, null);
|
|
20074
20157
|
}
|
|
20075
|
-
|
|
20158
|
+
const displayValue = vue.toDisplayString(slotProps.value);
|
|
20159
|
+
return !mobile.value ? displayValue : vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
|
|
20160
|
+
"class": "v-data-table__td-title"
|
|
20161
|
+
}, [slots[headerSlotName]?.(columnSlotProps) ?? column.title]), vue.createVNode("div", {
|
|
20162
|
+
"class": "v-data-table__td-value"
|
|
20163
|
+
}, [slots[slotName]?.(slotProps) ?? displayValue])]);
|
|
20076
20164
|
}
|
|
20077
20165
|
});
|
|
20078
20166
|
})]));
|
|
@@ -20097,7 +20185,8 @@
|
|
|
20097
20185
|
default: '$vuetify.noDataText'
|
|
20098
20186
|
},
|
|
20099
20187
|
rowProps: [Object, Function],
|
|
20100
|
-
cellProps: [Object, Function]
|
|
20188
|
+
cellProps: [Object, Function],
|
|
20189
|
+
...makeDisplayProps()
|
|
20101
20190
|
}, 'VDataTableRows');
|
|
20102
20191
|
const VDataTableRows = genericComponent()({
|
|
20103
20192
|
name: 'VDataTableRows',
|
|
@@ -20127,6 +20216,9 @@
|
|
|
20127
20216
|
const {
|
|
20128
20217
|
t
|
|
20129
20218
|
} = useLocale();
|
|
20219
|
+
const {
|
|
20220
|
+
mobile
|
|
20221
|
+
} = useDisplay(props);
|
|
20130
20222
|
useRender(() => {
|
|
20131
20223
|
if (props.loading && (!props.items.length || slots.loading)) {
|
|
20132
20224
|
return vue.createVNode("tr", {
|
|
@@ -20181,7 +20273,8 @@
|
|
|
20181
20273
|
} : undefined,
|
|
20182
20274
|
index,
|
|
20183
20275
|
item,
|
|
20184
|
-
cellProps: props.cellProps
|
|
20276
|
+
cellProps: props.cellProps,
|
|
20277
|
+
mobile: mobile.value
|
|
20185
20278
|
}, getPrefixedEventHandlers(attrs, ':row', () => slotProps), typeof props.rowProps === 'function' ? props.rowProps({
|
|
20186
20279
|
item: slotProps.item,
|
|
20187
20280
|
index: slotProps.index,
|
|
@@ -26997,7 +27090,7 @@
|
|
|
26997
27090
|
goTo
|
|
26998
27091
|
};
|
|
26999
27092
|
}
|
|
27000
|
-
const version$1 = "3.6.0-alpha.2-dev.2024-04-
|
|
27093
|
+
const version$1 = "3.6.0-alpha.2-dev.2024-04-30";
|
|
27001
27094
|
createVuetify$1.version = version$1;
|
|
27002
27095
|
|
|
27003
27096
|
// Vue's inject() can only be used in setup
|
|
@@ -27022,7 +27115,7 @@
|
|
|
27022
27115
|
...options
|
|
27023
27116
|
});
|
|
27024
27117
|
};
|
|
27025
|
-
const version = "3.6.0-alpha.2-dev.2024-04-
|
|
27118
|
+
const version = "3.6.0-alpha.2-dev.2024-04-30";
|
|
27026
27119
|
createVuetify.version = version;
|
|
27027
27120
|
|
|
27028
27121
|
exports.blueprints = index;
|