@vuetify/nightly 4.0.0-dev-20230206.0 → 4.0.0-dev-20230211.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 -2
- package/dist/json/importMap.json +98 -98
- package/dist/json/web-types.json +1 -1
- package/dist/vuetify-labs.css +208 -199
- package/dist/vuetify-labs.d.ts +54 -0
- package/dist/vuetify-labs.esm.js +50 -14
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +50 -14
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +156 -156
- package/dist/vuetify.d.ts +26 -26
- package/dist/vuetify.esm.js +3 -3
- package/dist/vuetify.js +3 -3
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +26 -26
- package/lib/labs/VDataTable/VDataTableFooter.css +9 -0
- package/lib/labs/VDataTable/VDataTableFooter.mjs +51 -13
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.sass +7 -0
- package/lib/labs/VDataTable/index.d.ts +54 -0
- package/lib/labs/components.d.ts +54 -0
- package/package.json +1 -1
package/dist/vuetify-labs.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v4.0.0-dev-
|
2
|
+
* Vuetify v4.0.0-dev-20230211.0
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -19118,6 +19118,30 @@
|
|
19118
19118
|
type: String,
|
19119
19119
|
default: '$last'
|
19120
19120
|
},
|
19121
|
+
itemsPerPageText: {
|
19122
|
+
type: String,
|
19123
|
+
default: '$vuetify.dataFooter.itemsPerPageText'
|
19124
|
+
},
|
19125
|
+
pageText: {
|
19126
|
+
type: String,
|
19127
|
+
default: '$vuetify.dataFooter.pageText'
|
19128
|
+
},
|
19129
|
+
firstPageLabel: {
|
19130
|
+
type: String,
|
19131
|
+
default: '$vuetify.dataFooter.firstPage'
|
19132
|
+
},
|
19133
|
+
prevPageLabel: {
|
19134
|
+
type: String,
|
19135
|
+
default: '$vuetify.dataFooter.prevPage'
|
19136
|
+
},
|
19137
|
+
nextPageLabel: {
|
19138
|
+
type: String,
|
19139
|
+
default: '$vuetify.dataFooter.nextPage'
|
19140
|
+
},
|
19141
|
+
lastPageLabel: {
|
19142
|
+
type: String,
|
19143
|
+
default: '$vuetify.dataFooter.lastPage'
|
19144
|
+
},
|
19121
19145
|
itemsPerPageOptions: {
|
19122
19146
|
type: Array,
|
19123
19147
|
default: () => [{
|
@@ -19134,7 +19158,7 @@
|
|
19134
19158
|
title: '100'
|
19135
19159
|
}, {
|
19136
19160
|
value: -1,
|
19137
|
-
title: '
|
19161
|
+
title: '$vuetify.dataFooter.itemsPerPageAll'
|
19138
19162
|
}]
|
19139
19163
|
},
|
19140
19164
|
showCurrentPage: Boolean
|
@@ -19143,6 +19167,9 @@
|
|
19143
19167
|
let {
|
19144
19168
|
slots
|
19145
19169
|
} = _ref;
|
19170
|
+
const {
|
19171
|
+
t
|
19172
|
+
} = useLocale();
|
19146
19173
|
const {
|
19147
19174
|
page,
|
19148
19175
|
pageCount,
|
@@ -19151,14 +19178,18 @@
|
|
19151
19178
|
itemsLength,
|
19152
19179
|
itemsPerPage
|
19153
19180
|
} = usePagination();
|
19181
|
+
const itemsPerPageOptions = vue.computed(() => props.itemsPerPageOptions.map(option => ({
|
19182
|
+
...option,
|
19183
|
+
title: t(option.title)
|
19184
|
+
})));
|
19154
19185
|
return () => {
|
19155
19186
|
var _slots$prepend;
|
19156
19187
|
return vue.createVNode("div", {
|
19157
19188
|
"class": "v-data-table-footer"
|
19158
19189
|
}, [(_slots$prepend = slots.prepend) == null ? void 0 : _slots$prepend.call(slots), vue.createVNode("div", {
|
19159
19190
|
"class": "v-data-table-footer__items-per-page"
|
19160
|
-
}, [vue.createVNode("span", null, [
|
19161
|
-
"items":
|
19191
|
+
}, [vue.createVNode("span", null, [t(props.itemsPerPageText)]), vue.createVNode(VSelect, {
|
19192
|
+
"items": itemsPerPageOptions.value,
|
19162
19193
|
"modelValue": itemsPerPage.value,
|
19163
19194
|
"onUpdate:modelValue": v => itemsPerPage.value = Number(v),
|
19164
19195
|
"density": "compact",
|
@@ -19166,30 +19197,35 @@
|
|
19166
19197
|
"hide-details": true
|
19167
19198
|
}, null)]), vue.createVNode("div", {
|
19168
19199
|
"class": "v-data-table-footer__info"
|
19169
|
-
}, [vue.createVNode("div", null, [!itemsLength.value ? 0 : startIndex.value + 1,
|
19200
|
+
}, [vue.createVNode("div", null, [t(props.pageText, !itemsLength.value ? 0 : startIndex.value + 1, stopIndex.value, itemsLength.value)])]), vue.createVNode("div", {
|
19170
19201
|
"class": "v-data-table-footer__pagination"
|
19171
19202
|
}, [vue.createVNode(VBtn, {
|
19172
19203
|
"icon": props.firstIcon,
|
19173
19204
|
"variant": "plain",
|
19174
19205
|
"onClick": () => page.value = 1,
|
19175
|
-
"disabled": page.value === 1
|
19206
|
+
"disabled": page.value === 1,
|
19207
|
+
"aria-label": t(props.firstPageLabel)
|
19176
19208
|
}, null), vue.createVNode(VBtn, {
|
19177
19209
|
"icon": props.prevIcon,
|
19178
19210
|
"variant": "plain",
|
19179
19211
|
"onClick": () => page.value = Math.max(1, page.value - 1),
|
19180
|
-
"disabled": page.value === 1
|
19181
|
-
|
19182
|
-
|
19183
|
-
|
19212
|
+
"disabled": page.value === 1,
|
19213
|
+
"aria-label": t(props.prevPageLabel)
|
19214
|
+
}, null), props.showCurrentPage && vue.createVNode("span", {
|
19215
|
+
"key": "page",
|
19216
|
+
"class": "v-data-table-footer__page"
|
19217
|
+
}, [page.value]), vue.createVNode(VBtn, {
|
19184
19218
|
"icon": props.nextIcon,
|
19185
19219
|
"variant": "plain",
|
19186
19220
|
"onClick": () => page.value = Math.min(pageCount.value, page.value + 1),
|
19187
|
-
"disabled": page.value === pageCount.value
|
19221
|
+
"disabled": page.value === pageCount.value,
|
19222
|
+
"aria-label": t(props.nextPageLabel)
|
19188
19223
|
}, null), vue.createVNode(VBtn, {
|
19189
19224
|
"icon": props.lastIcon,
|
19190
19225
|
"variant": "plain",
|
19191
19226
|
"onClick": () => page.value = pageCount.value,
|
19192
|
-
"disabled": page.value === pageCount.value
|
19227
|
+
"disabled": page.value === pageCount.value,
|
19228
|
+
"aria-label": t(props.lastPageLabel)
|
19193
19229
|
}, null)])]);
|
19194
19230
|
};
|
19195
19231
|
}
|
@@ -20218,7 +20254,7 @@
|
|
20218
20254
|
locale
|
20219
20255
|
};
|
20220
20256
|
}
|
20221
|
-
const version$1 = "4.0.0-dev-
|
20257
|
+
const version$1 = "4.0.0-dev-20230211.0";
|
20222
20258
|
createVuetify$1.version = version$1;
|
20223
20259
|
|
20224
20260
|
// Vue's inject() can only be used in setup
|
@@ -20231,7 +20267,7 @@
|
|
20231
20267
|
}
|
20232
20268
|
}
|
20233
20269
|
|
20234
|
-
const version = "4.0.0-dev-
|
20270
|
+
const version = "4.0.0-dev-20230211.0";
|
20235
20271
|
|
20236
20272
|
const createVuetify = function () {
|
20237
20273
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|