@vuetify/nightly 3.1.1 → 3.1.2-dev-20230113.0
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 +7 -10
- package/dist/json/importMap.json +46 -46
- package/dist/vuetify-labs.css +139 -134
- package/dist/vuetify-labs.d.ts +12 -2
- package/dist/vuetify-labs.esm.js +38 -26
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +38 -26
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +6 -1
- package/dist/vuetify.d.ts +24 -14
- package/dist/vuetify.esm.js +27 -13
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +27 -13
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +263 -261
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VChip/VChip.mjs +18 -4
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.ts +15 -2
- package/lib/components/VChipGroup/VChipGroup.mjs +1 -0
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VGrid/VGrid.css +5 -0
- package/lib/components/VGrid/VGrid.sass +5 -0
- package/lib/components/index.d.ts +12 -2
- package/lib/composables/teleport.mjs +6 -7
- package/lib/composables/teleport.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.ts +12 -12
- package/lib/labs/VDataTable/VDataTable.mjs +4 -4
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +4 -4
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/sort.mjs +3 -5
- package/lib/labs/VDataTable/composables/sort.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify-labs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.1.
|
|
2
|
+
* Vuetify v3.1.2-dev-20230113.0
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -6705,6 +6705,7 @@
|
|
|
6705
6705
|
provideDefaults({
|
|
6706
6706
|
VChip: {
|
|
6707
6707
|
color: vue.toRef(props, 'color'),
|
|
6708
|
+
disabled: vue.toRef(props, 'disabled'),
|
|
6708
6709
|
filter: vue.toRef(props, 'filter'),
|
|
6709
6710
|
variant: vue.toRef(props, 'variant')
|
|
6710
6711
|
}
|
|
@@ -6754,7 +6755,10 @@
|
|
|
6754
6755
|
default: '$complete'
|
|
6755
6756
|
},
|
|
6756
6757
|
label: Boolean,
|
|
6757
|
-
link:
|
|
6758
|
+
link: {
|
|
6759
|
+
type: Boolean,
|
|
6760
|
+
default: undefined
|
|
6761
|
+
},
|
|
6758
6762
|
pill: Boolean,
|
|
6759
6763
|
prependAvatar: String,
|
|
6760
6764
|
prependIcon: IconValue,
|
|
@@ -6767,6 +6771,8 @@
|
|
|
6767
6771
|
type: Boolean,
|
|
6768
6772
|
default: true
|
|
6769
6773
|
},
|
|
6774
|
+
onClick: EventProp,
|
|
6775
|
+
onClickOnce: EventProp,
|
|
6770
6776
|
...makeBorderProps(),
|
|
6771
6777
|
...makeDensityProps(),
|
|
6772
6778
|
...makeElevationProps(),
|
|
@@ -6820,7 +6826,8 @@
|
|
|
6820
6826
|
const isActive = useProxiedModel(props, 'modelValue');
|
|
6821
6827
|
const group = useGroupItem(props, VChipGroupSymbol, false);
|
|
6822
6828
|
const link = useLink(props, attrs);
|
|
6823
|
-
const
|
|
6829
|
+
const isLink = vue.computed(() => props.link !== false && link.isLink.value);
|
|
6830
|
+
const isClickable = vue.computed(() => !props.disabled && props.link !== false && (!!group || props.link || link.isClickable.value));
|
|
6824
6831
|
function onCloseClick(e) {
|
|
6825
6832
|
isActive.value = false;
|
|
6826
6833
|
emit('click:close', e);
|
|
@@ -6832,6 +6839,12 @@
|
|
|
6832
6839
|
(_link$navigate = link.navigate) == null ? void 0 : _link$navigate.call(link, e);
|
|
6833
6840
|
group == null ? void 0 : group.toggle();
|
|
6834
6841
|
}
|
|
6842
|
+
function onKeyDown(e) {
|
|
6843
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
6844
|
+
e.preventDefault();
|
|
6845
|
+
onClick(e);
|
|
6846
|
+
}
|
|
6847
|
+
}
|
|
6835
6848
|
return () => {
|
|
6836
6849
|
var _slots$default;
|
|
6837
6850
|
const Tag = link.isLink.value ? 'a' : props.tag;
|
|
@@ -6852,7 +6865,9 @@
|
|
|
6852
6865
|
"disabled": props.disabled || undefined,
|
|
6853
6866
|
"draggable": props.draggable,
|
|
6854
6867
|
"href": link.href.value,
|
|
6855
|
-
"
|
|
6868
|
+
"tabindex": isClickable.value ? 0 : undefined,
|
|
6869
|
+
"onClick": onClick,
|
|
6870
|
+
"onKeydown": isClickable.value && !isLink.value && onKeyDown
|
|
6856
6871
|
}, {
|
|
6857
6872
|
default: () => [genOverlays(isClickable.value, 'v-chip'), hasFilter && vue.createVNode(VDefaultsProvider, {
|
|
6858
6873
|
"key": "filter",
|
|
@@ -9300,19 +9315,18 @@
|
|
|
9300
9315
|
vue.warn(`Unable to locate target ${_target}`);
|
|
9301
9316
|
return undefined;
|
|
9302
9317
|
}
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9318
|
+
let container = targetElement.querySelector('.v-overlay-container');
|
|
9319
|
+
if (!container) {
|
|
9320
|
+
container = document.createElement('div');
|
|
9321
|
+
container.className = 'v-overlay-container';
|
|
9322
|
+
targetElement.appendChild(container);
|
|
9308
9323
|
}
|
|
9309
|
-
return
|
|
9324
|
+
return container;
|
|
9310
9325
|
});
|
|
9311
9326
|
return {
|
|
9312
9327
|
teleportTarget
|
|
9313
9328
|
};
|
|
9314
9329
|
}
|
|
9315
|
-
useTeleport.cache = new WeakMap();
|
|
9316
9330
|
|
|
9317
9331
|
function defaultConditional() {
|
|
9318
9332
|
return true;
|
|
@@ -18266,10 +18280,9 @@
|
|
|
18266
18280
|
function createSort(props) {
|
|
18267
18281
|
const sortBy = useProxiedModel(props, 'sortBy');
|
|
18268
18282
|
const toggleSort = key => {
|
|
18269
|
-
|
|
18270
|
-
let newSortBy = ((_sortBy$value = sortBy.value) == null ? void 0 : _sortBy$value.map(x => ({
|
|
18283
|
+
let newSortBy = sortBy.value.map(x => ({
|
|
18271
18284
|
...x
|
|
18272
|
-
}))
|
|
18285
|
+
})) ?? [];
|
|
18273
18286
|
const item = newSortBy.find(x => x.key === key);
|
|
18274
18287
|
if (!item) {
|
|
18275
18288
|
if (props.multiSort) newSortBy = [...newSortBy, {
|
|
@@ -18311,8 +18324,7 @@
|
|
|
18311
18324
|
}, {});
|
|
18312
18325
|
});
|
|
18313
18326
|
const sortedItems = vue.computed(() => {
|
|
18314
|
-
|
|
18315
|
-
if (!((_sortBy$value2 = sortBy.value) != null && _sortBy$value2.length)) return items.value;
|
|
18327
|
+
if (!sortBy.value.length) return items.value;
|
|
18316
18328
|
return sortItems(items.value, sortBy.value, 'en', customSorters.value);
|
|
18317
18329
|
});
|
|
18318
18330
|
return {
|
|
@@ -19238,7 +19250,7 @@
|
|
|
19238
19250
|
"height": props.height
|
|
19239
19251
|
}, {
|
|
19240
19252
|
top: slots.top,
|
|
19241
|
-
default: slots.default
|
|
19253
|
+
default: slots.default ?? (() => {
|
|
19242
19254
|
var _slots$colgroup, _slots$thead, _slots$tbody, _slots$tfoot;
|
|
19243
19255
|
return vue.createVNode(vue.Fragment, null, [(_slots$colgroup = slots.colgroup) == null ? void 0 : _slots$colgroup.call(slots, {
|
|
19244
19256
|
columns
|
|
@@ -19249,10 +19261,10 @@
|
|
|
19249
19261
|
"items": paginatedItems.value,
|
|
19250
19262
|
"onClick:row": (event, value) => emit('click:row', event, value)
|
|
19251
19263
|
}, slots)]), (_slots$tbody = slots.tbody) == null ? void 0 : _slots$tbody.call(slots), (_slots$tfoot = slots.tfoot) == null ? void 0 : _slots$tfoot.call(slots)]);
|
|
19252
|
-
},
|
|
19253
|
-
bottom: slots.bottom
|
|
19264
|
+
}),
|
|
19265
|
+
bottom: slots.bottom ?? (() => vue.createVNode(VDataTableFooter, null, {
|
|
19254
19266
|
prepend: slots['footer.prepend']
|
|
19255
|
-
})
|
|
19267
|
+
}))
|
|
19256
19268
|
}));
|
|
19257
19269
|
return {};
|
|
19258
19270
|
}
|
|
@@ -19558,7 +19570,7 @@
|
|
|
19558
19570
|
"height": props.height
|
|
19559
19571
|
}, {
|
|
19560
19572
|
top: slots.top,
|
|
19561
|
-
default: slots.default
|
|
19573
|
+
default: slots.default ?? (() => {
|
|
19562
19574
|
var _slots$thead, _slots$tbody, _slots$tfoot;
|
|
19563
19575
|
return vue.createVNode(vue.Fragment, null, [vue.createVNode("thead", {
|
|
19564
19576
|
"class": "v-data-table__thead",
|
|
@@ -19574,10 +19586,10 @@
|
|
|
19574
19586
|
"items": items.value,
|
|
19575
19587
|
"onClick:row": (event, value) => emit('click:row', event, value)
|
|
19576
19588
|
}, slots)]), (_slots$tbody = slots.tbody) == null ? void 0 : _slots$tbody.call(slots), (_slots$tfoot = slots.tfoot) == null ? void 0 : _slots$tfoot.call(slots)]);
|
|
19577
|
-
},
|
|
19578
|
-
bottom: slots.bottom
|
|
19589
|
+
}),
|
|
19590
|
+
bottom: slots.bottom ?? (() => vue.createVNode(VDataTableFooter, null, {
|
|
19579
19591
|
prepend: slots['footer.prepend']
|
|
19580
|
-
})
|
|
19592
|
+
}))
|
|
19581
19593
|
}));
|
|
19582
19594
|
}
|
|
19583
19595
|
});
|
|
@@ -20077,7 +20089,7 @@
|
|
|
20077
20089
|
locale
|
|
20078
20090
|
};
|
|
20079
20091
|
}
|
|
20080
|
-
const version$1 = "3.1.
|
|
20092
|
+
const version$1 = "3.1.2-dev-20230113.0";
|
|
20081
20093
|
createVuetify$1.version = version$1;
|
|
20082
20094
|
|
|
20083
20095
|
// Vue's inject() can only be used in setup
|
|
@@ -20090,7 +20102,7 @@
|
|
|
20090
20102
|
}
|
|
20091
20103
|
}
|
|
20092
20104
|
|
|
20093
|
-
const version = "3.1.
|
|
20105
|
+
const version = "3.1.2-dev-20230113.0";
|
|
20094
20106
|
|
|
20095
20107
|
const createVuetify = function () {
|
|
20096
20108
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|