@vuetify/nightly 3.1.5-master-20230212.0 → 3.2.0-dev-20230214.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 +13 -4
- package/dist/json/web-types.json +1 -1
- package/dist/vuetify-labs.css +334 -324
- package/dist/vuetify-labs.d.ts +18 -0
- package/dist/vuetify-labs.esm.js +52 -16
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +52 -16
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +47 -46
- package/dist/vuetify.esm.js +5 -5
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +5 -5
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +57 -57
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VList/VListItem.css +2 -2
- package/lib/components/VList/VListItem.sass +0 -2
- package/lib/components/VOverlay/scrollStrategies.mjs +1 -1
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbar.css +1 -0
- package/lib/components/VToolbar/VToolbar.sass +1 -0
- 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/labs/VDataTable/VDataTableFooter.css +9 -0
- package/lib/labs/VDataTable/VDataTableFooter.mjs +50 -12
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.sass +7 -0
- package/lib/labs/VDataTable/index.d.ts +18 -0
- package/lib/labs/components.d.ts +18 -0
- package/lib/util/defineComponent.mjs +1 -1
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify-labs.d.ts
CHANGED
|
@@ -18448,11 +18448,17 @@ declare const VDataTableServer: vue.DefineComponent<{
|
|
|
18448
18448
|
type VDataTableServer = InstanceType<typeof VDataTableServer>;
|
|
18449
18449
|
|
|
18450
18450
|
declare const VDataTableFooter: vue.DefineComponent<{
|
|
18451
|
+
itemsPerPageText: string;
|
|
18452
|
+
pageText: string;
|
|
18451
18453
|
nextIcon: string;
|
|
18452
18454
|
prevIcon: string;
|
|
18453
18455
|
firstIcon: string;
|
|
18454
18456
|
lastIcon: string;
|
|
18455
18457
|
showCurrentPage: boolean;
|
|
18458
|
+
firstPageLabel: string;
|
|
18459
|
+
prevPageLabel: string;
|
|
18460
|
+
nextPageLabel: string;
|
|
18461
|
+
lastPageLabel: string;
|
|
18456
18462
|
itemsPerPageOptions: InternalItem<any>[];
|
|
18457
18463
|
} & {} & {
|
|
18458
18464
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -18464,11 +18470,17 @@ declare const VDataTableFooter: vue.DefineComponent<{
|
|
|
18464
18470
|
} & {
|
|
18465
18471
|
"v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
|
|
18466
18472
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
|
|
18473
|
+
itemsPerPageText: string;
|
|
18474
|
+
pageText: string;
|
|
18467
18475
|
nextIcon: string;
|
|
18468
18476
|
prevIcon: string;
|
|
18469
18477
|
firstIcon: string;
|
|
18470
18478
|
lastIcon: string;
|
|
18471
18479
|
showCurrentPage: boolean;
|
|
18480
|
+
firstPageLabel: string;
|
|
18481
|
+
prevPageLabel: string;
|
|
18482
|
+
nextPageLabel: string;
|
|
18483
|
+
lastPageLabel: string;
|
|
18472
18484
|
itemsPerPageOptions: InternalItem<any>[];
|
|
18473
18485
|
} & {} & {
|
|
18474
18486
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -18480,11 +18492,17 @@ declare const VDataTableFooter: vue.DefineComponent<{
|
|
|
18480
18492
|
} & {
|
|
18481
18493
|
"v-slot:prepend"?: false | (() => vue.VNodeChild) | undefined;
|
|
18482
18494
|
}, {
|
|
18495
|
+
itemsPerPageText: string;
|
|
18496
|
+
pageText: string;
|
|
18483
18497
|
nextIcon: string;
|
|
18484
18498
|
prevIcon: string;
|
|
18485
18499
|
firstIcon: string;
|
|
18486
18500
|
lastIcon: string;
|
|
18487
18501
|
showCurrentPage: boolean;
|
|
18502
|
+
firstPageLabel: string;
|
|
18503
|
+
prevPageLabel: string;
|
|
18504
|
+
nextPageLabel: string;
|
|
18505
|
+
lastPageLabel: string;
|
|
18488
18506
|
itemsPerPageOptions: InternalItem<any>[];
|
|
18489
18507
|
}>;
|
|
18490
18508
|
|
package/dist/vuetify-labs.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.
|
|
2
|
+
* Vuetify v3.2.0-dev-20230214.0
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1021,7 +1021,7 @@ const defineComponent = function defineComponent(options) {
|
|
|
1021
1021
|
const componentDefaults = computed(() => defaults.value[props._as ?? options.name]);
|
|
1022
1022
|
const _props = new Proxy(props, {
|
|
1023
1023
|
get(target, prop) {
|
|
1024
|
-
if (!propIsDefined(vm.vnode, prop)) {
|
|
1024
|
+
if (typeof prop === 'string' && !propIsDefined(vm.vnode, prop)) {
|
|
1025
1025
|
return componentDefaults.value?.[prop] ?? defaults.value.global?.[prop] ?? target[prop];
|
|
1026
1026
|
}
|
|
1027
1027
|
return Reflect.get(target, prop);
|
|
@@ -9019,7 +9019,7 @@ function repositionScrollStrategy(data, props, scope) {
|
|
|
9019
9019
|
slow = time / (1000 / 60) > 2;
|
|
9020
9020
|
});
|
|
9021
9021
|
}
|
|
9022
|
-
ric = requestIdleCallback(() => {
|
|
9022
|
+
ric = (typeof requestIdleCallback === 'undefined' ? cb => cb() : requestIdleCallback)(() => {
|
|
9023
9023
|
scope.run(() => {
|
|
9024
9024
|
bindScroll(data.activatorEl.value ?? data.contentEl.value, e => {
|
|
9025
9025
|
if (slow) {
|
|
@@ -18787,6 +18787,30 @@ const VDataTableFooter = genericComponent()({
|
|
|
18787
18787
|
type: String,
|
|
18788
18788
|
default: '$last'
|
|
18789
18789
|
},
|
|
18790
|
+
itemsPerPageText: {
|
|
18791
|
+
type: String,
|
|
18792
|
+
default: '$vuetify.dataFooter.itemsPerPageText'
|
|
18793
|
+
},
|
|
18794
|
+
pageText: {
|
|
18795
|
+
type: String,
|
|
18796
|
+
default: '$vuetify.dataFooter.pageText'
|
|
18797
|
+
},
|
|
18798
|
+
firstPageLabel: {
|
|
18799
|
+
type: String,
|
|
18800
|
+
default: '$vuetify.dataFooter.firstPage'
|
|
18801
|
+
},
|
|
18802
|
+
prevPageLabel: {
|
|
18803
|
+
type: String,
|
|
18804
|
+
default: '$vuetify.dataFooter.prevPage'
|
|
18805
|
+
},
|
|
18806
|
+
nextPageLabel: {
|
|
18807
|
+
type: String,
|
|
18808
|
+
default: '$vuetify.dataFooter.nextPage'
|
|
18809
|
+
},
|
|
18810
|
+
lastPageLabel: {
|
|
18811
|
+
type: String,
|
|
18812
|
+
default: '$vuetify.dataFooter.lastPage'
|
|
18813
|
+
},
|
|
18790
18814
|
itemsPerPageOptions: {
|
|
18791
18815
|
type: Array,
|
|
18792
18816
|
default: () => [{
|
|
@@ -18803,7 +18827,7 @@ const VDataTableFooter = genericComponent()({
|
|
|
18803
18827
|
title: '100'
|
|
18804
18828
|
}, {
|
|
18805
18829
|
value: -1,
|
|
18806
|
-
title: '
|
|
18830
|
+
title: '$vuetify.dataFooter.itemsPerPageAll'
|
|
18807
18831
|
}]
|
|
18808
18832
|
},
|
|
18809
18833
|
showCurrentPage: Boolean
|
|
@@ -18812,6 +18836,9 @@ const VDataTableFooter = genericComponent()({
|
|
|
18812
18836
|
let {
|
|
18813
18837
|
slots
|
|
18814
18838
|
} = _ref;
|
|
18839
|
+
const {
|
|
18840
|
+
t
|
|
18841
|
+
} = useLocale();
|
|
18815
18842
|
const {
|
|
18816
18843
|
page,
|
|
18817
18844
|
pageCount,
|
|
@@ -18820,12 +18847,16 @@ const VDataTableFooter = genericComponent()({
|
|
|
18820
18847
|
itemsLength,
|
|
18821
18848
|
itemsPerPage
|
|
18822
18849
|
} = usePagination();
|
|
18850
|
+
const itemsPerPageOptions = computed(() => props.itemsPerPageOptions.map(option => ({
|
|
18851
|
+
...option,
|
|
18852
|
+
title: t(option.title)
|
|
18853
|
+
})));
|
|
18823
18854
|
return () => createVNode("div", {
|
|
18824
18855
|
"class": "v-data-table-footer"
|
|
18825
18856
|
}, [slots.prepend?.(), createVNode("div", {
|
|
18826
18857
|
"class": "v-data-table-footer__items-per-page"
|
|
18827
|
-
}, [createVNode("span", null, [
|
|
18828
|
-
"items":
|
|
18858
|
+
}, [createVNode("span", null, [t(props.itemsPerPageText)]), createVNode(VSelect, {
|
|
18859
|
+
"items": itemsPerPageOptions.value,
|
|
18829
18860
|
"modelValue": itemsPerPage.value,
|
|
18830
18861
|
"onUpdate:modelValue": v => itemsPerPage.value = Number(v),
|
|
18831
18862
|
"density": "compact",
|
|
@@ -18833,30 +18864,35 @@ const VDataTableFooter = genericComponent()({
|
|
|
18833
18864
|
"hide-details": true
|
|
18834
18865
|
}, null)]), createVNode("div", {
|
|
18835
18866
|
"class": "v-data-table-footer__info"
|
|
18836
|
-
}, [createVNode("div", null, [!itemsLength.value ? 0 : startIndex.value + 1,
|
|
18867
|
+
}, [createVNode("div", null, [t(props.pageText, !itemsLength.value ? 0 : startIndex.value + 1, stopIndex.value, itemsLength.value)])]), createVNode("div", {
|
|
18837
18868
|
"class": "v-data-table-footer__pagination"
|
|
18838
18869
|
}, [createVNode(VBtn, {
|
|
18839
18870
|
"icon": props.firstIcon,
|
|
18840
18871
|
"variant": "plain",
|
|
18841
18872
|
"onClick": () => page.value = 1,
|
|
18842
|
-
"disabled": page.value === 1
|
|
18873
|
+
"disabled": page.value === 1,
|
|
18874
|
+
"aria-label": t(props.firstPageLabel)
|
|
18843
18875
|
}, null), createVNode(VBtn, {
|
|
18844
18876
|
"icon": props.prevIcon,
|
|
18845
18877
|
"variant": "plain",
|
|
18846
18878
|
"onClick": () => page.value = Math.max(1, page.value - 1),
|
|
18847
|
-
"disabled": page.value === 1
|
|
18848
|
-
|
|
18849
|
-
|
|
18850
|
-
|
|
18879
|
+
"disabled": page.value === 1,
|
|
18880
|
+
"aria-label": t(props.prevPageLabel)
|
|
18881
|
+
}, null), props.showCurrentPage && createVNode("span", {
|
|
18882
|
+
"key": "page",
|
|
18883
|
+
"class": "v-data-table-footer__page"
|
|
18884
|
+
}, [page.value]), createVNode(VBtn, {
|
|
18851
18885
|
"icon": props.nextIcon,
|
|
18852
18886
|
"variant": "plain",
|
|
18853
18887
|
"onClick": () => page.value = Math.min(pageCount.value, page.value + 1),
|
|
18854
|
-
"disabled": page.value === pageCount.value
|
|
18888
|
+
"disabled": page.value === pageCount.value,
|
|
18889
|
+
"aria-label": t(props.nextPageLabel)
|
|
18855
18890
|
}, null), createVNode(VBtn, {
|
|
18856
18891
|
"icon": props.lastIcon,
|
|
18857
18892
|
"variant": "plain",
|
|
18858
18893
|
"onClick": () => page.value = pageCount.value,
|
|
18859
|
-
"disabled": page.value === pageCount.value
|
|
18894
|
+
"disabled": page.value === pageCount.value,
|
|
18895
|
+
"aria-label": t(props.lastPageLabel)
|
|
18860
18896
|
}, null)])]);
|
|
18861
18897
|
}
|
|
18862
18898
|
});
|
|
@@ -19891,7 +19927,7 @@ function createVuetify$1() {
|
|
|
19891
19927
|
locale
|
|
19892
19928
|
};
|
|
19893
19929
|
}
|
|
19894
|
-
const version$1 = "3.
|
|
19930
|
+
const version$1 = "3.2.0-dev-20230214.0";
|
|
19895
19931
|
createVuetify$1.version = version$1;
|
|
19896
19932
|
|
|
19897
19933
|
// Vue's inject() can only be used in setup
|
|
@@ -19903,7 +19939,7 @@ function inject(key) {
|
|
|
19903
19939
|
}
|
|
19904
19940
|
}
|
|
19905
19941
|
|
|
19906
|
-
const version = "3.
|
|
19942
|
+
const version = "3.2.0-dev-20230214.0";
|
|
19907
19943
|
|
|
19908
19944
|
const createVuetify = function () {
|
|
19909
19945
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|