@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/dist/json/web-types.json +1 -1
  3. package/dist/vuetify-labs.css +334 -324
  4. package/dist/vuetify-labs.d.ts +18 -0
  5. package/dist/vuetify-labs.esm.js +52 -16
  6. package/dist/vuetify-labs.esm.js.map +1 -1
  7. package/dist/vuetify-labs.js +52 -16
  8. package/dist/vuetify-labs.min.css +2 -2
  9. package/dist/vuetify.css +47 -46
  10. package/dist/vuetify.esm.js +5 -5
  11. package/dist/vuetify.esm.js.map +1 -1
  12. package/dist/vuetify.js +5 -5
  13. package/dist/vuetify.js.map +1 -1
  14. package/dist/vuetify.min.css +2 -2
  15. package/dist/vuetify.min.js +57 -57
  16. package/dist/vuetify.min.js.map +1 -1
  17. package/lib/components/VList/VListItem.css +2 -2
  18. package/lib/components/VList/VListItem.sass +0 -2
  19. package/lib/components/VOverlay/scrollStrategies.mjs +1 -1
  20. package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
  21. package/lib/components/VToolbar/VToolbar.css +1 -0
  22. package/lib/components/VToolbar/VToolbar.sass +1 -0
  23. package/lib/entry-bundler.mjs +1 -1
  24. package/lib/entry-bundler.mjs.map +1 -1
  25. package/lib/framework.mjs +1 -1
  26. package/lib/framework.mjs.map +1 -1
  27. package/lib/labs/VDataTable/VDataTableFooter.css +9 -0
  28. package/lib/labs/VDataTable/VDataTableFooter.mjs +50 -12
  29. package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
  30. package/lib/labs/VDataTable/VDataTableFooter.sass +7 -0
  31. package/lib/labs/VDataTable/index.d.ts +18 -0
  32. package/lib/labs/components.d.ts +18 -0
  33. package/lib/util/defineComponent.mjs +1 -1
  34. package/lib/util/defineComponent.mjs.map +1 -1
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.1.5-master-20230212.0
2
+ * Vuetify v3.2.0-dev-20230214.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1025,7 +1025,7 @@
1025
1025
  const componentDefaults = vue.computed(() => defaults.value[props._as ?? options.name]);
1026
1026
  const _props = new Proxy(props, {
1027
1027
  get(target, prop) {
1028
- if (!propIsDefined(vm.vnode, prop)) {
1028
+ if (typeof prop === 'string' && !propIsDefined(vm.vnode, prop)) {
1029
1029
  return componentDefaults.value?.[prop] ?? defaults.value.global?.[prop] ?? target[prop];
1030
1030
  }
1031
1031
  return Reflect.get(target, prop);
@@ -9023,7 +9023,7 @@
9023
9023
  slow = time / (1000 / 60) > 2;
9024
9024
  });
9025
9025
  }
9026
- ric = requestIdleCallback(() => {
9026
+ ric = (typeof requestIdleCallback === 'undefined' ? cb => cb() : requestIdleCallback)(() => {
9027
9027
  scope.run(() => {
9028
9028
  bindScroll(data.activatorEl.value ?? data.contentEl.value, e => {
9029
9029
  if (slow) {
@@ -18791,6 +18791,30 @@
18791
18791
  type: String,
18792
18792
  default: '$last'
18793
18793
  },
18794
+ itemsPerPageText: {
18795
+ type: String,
18796
+ default: '$vuetify.dataFooter.itemsPerPageText'
18797
+ },
18798
+ pageText: {
18799
+ type: String,
18800
+ default: '$vuetify.dataFooter.pageText'
18801
+ },
18802
+ firstPageLabel: {
18803
+ type: String,
18804
+ default: '$vuetify.dataFooter.firstPage'
18805
+ },
18806
+ prevPageLabel: {
18807
+ type: String,
18808
+ default: '$vuetify.dataFooter.prevPage'
18809
+ },
18810
+ nextPageLabel: {
18811
+ type: String,
18812
+ default: '$vuetify.dataFooter.nextPage'
18813
+ },
18814
+ lastPageLabel: {
18815
+ type: String,
18816
+ default: '$vuetify.dataFooter.lastPage'
18817
+ },
18794
18818
  itemsPerPageOptions: {
18795
18819
  type: Array,
18796
18820
  default: () => [{
@@ -18807,7 +18831,7 @@
18807
18831
  title: '100'
18808
18832
  }, {
18809
18833
  value: -1,
18810
- title: 'All'
18834
+ title: '$vuetify.dataFooter.itemsPerPageAll'
18811
18835
  }]
18812
18836
  },
18813
18837
  showCurrentPage: Boolean
@@ -18816,6 +18840,9 @@
18816
18840
  let {
18817
18841
  slots
18818
18842
  } = _ref;
18843
+ const {
18844
+ t
18845
+ } = useLocale();
18819
18846
  const {
18820
18847
  page,
18821
18848
  pageCount,
@@ -18824,12 +18851,16 @@
18824
18851
  itemsLength,
18825
18852
  itemsPerPage
18826
18853
  } = usePagination();
18854
+ const itemsPerPageOptions = vue.computed(() => props.itemsPerPageOptions.map(option => ({
18855
+ ...option,
18856
+ title: t(option.title)
18857
+ })));
18827
18858
  return () => vue.createVNode("div", {
18828
18859
  "class": "v-data-table-footer"
18829
18860
  }, [slots.prepend?.(), vue.createVNode("div", {
18830
18861
  "class": "v-data-table-footer__items-per-page"
18831
- }, [vue.createVNode("span", null, [vue.createTextVNode("Items per page:")]), vue.createVNode(VSelect, {
18832
- "items": props.itemsPerPageOptions,
18862
+ }, [vue.createVNode("span", null, [t(props.itemsPerPageText)]), vue.createVNode(VSelect, {
18863
+ "items": itemsPerPageOptions.value,
18833
18864
  "modelValue": itemsPerPage.value,
18834
18865
  "onUpdate:modelValue": v => itemsPerPage.value = Number(v),
18835
18866
  "density": "compact",
@@ -18837,30 +18868,35 @@
18837
18868
  "hide-details": true
18838
18869
  }, null)]), vue.createVNode("div", {
18839
18870
  "class": "v-data-table-footer__info"
18840
- }, [vue.createVNode("div", null, [!itemsLength.value ? 0 : startIndex.value + 1, vue.createTextVNode(" - "), stopIndex.value, vue.createTextVNode(" of "), itemsLength.value])]), vue.createVNode("div", {
18871
+ }, [vue.createVNode("div", null, [t(props.pageText, !itemsLength.value ? 0 : startIndex.value + 1, stopIndex.value, itemsLength.value)])]), vue.createVNode("div", {
18841
18872
  "class": "v-data-table-footer__pagination"
18842
18873
  }, [vue.createVNode(VBtn, {
18843
18874
  "icon": props.firstIcon,
18844
18875
  "variant": "plain",
18845
18876
  "onClick": () => page.value = 1,
18846
- "disabled": page.value === 1
18877
+ "disabled": page.value === 1,
18878
+ "aria-label": t(props.firstPageLabel)
18847
18879
  }, null), vue.createVNode(VBtn, {
18848
18880
  "icon": props.prevIcon,
18849
18881
  "variant": "plain",
18850
18882
  "onClick": () => page.value = Math.max(1, page.value - 1),
18851
- "disabled": page.value === 1
18852
- }, null), props.showCurrentPage && vue.createVNode("div", {
18853
- "key": "page"
18854
- }, [vue.createTextVNode("page.value")]), vue.createVNode(VBtn, {
18883
+ "disabled": page.value === 1,
18884
+ "aria-label": t(props.prevPageLabel)
18885
+ }, null), props.showCurrentPage && vue.createVNode("span", {
18886
+ "key": "page",
18887
+ "class": "v-data-table-footer__page"
18888
+ }, [page.value]), vue.createVNode(VBtn, {
18855
18889
  "icon": props.nextIcon,
18856
18890
  "variant": "plain",
18857
18891
  "onClick": () => page.value = Math.min(pageCount.value, page.value + 1),
18858
- "disabled": page.value === pageCount.value
18892
+ "disabled": page.value === pageCount.value,
18893
+ "aria-label": t(props.nextPageLabel)
18859
18894
  }, null), vue.createVNode(VBtn, {
18860
18895
  "icon": props.lastIcon,
18861
18896
  "variant": "plain",
18862
18897
  "onClick": () => page.value = pageCount.value,
18863
- "disabled": page.value === pageCount.value
18898
+ "disabled": page.value === pageCount.value,
18899
+ "aria-label": t(props.lastPageLabel)
18864
18900
  }, null)])]);
18865
18901
  }
18866
18902
  });
@@ -19895,7 +19931,7 @@
19895
19931
  locale
19896
19932
  };
19897
19933
  }
19898
- const version$1 = "3.1.5-master-20230212.0";
19934
+ const version$1 = "3.2.0-dev-20230214.0";
19899
19935
  createVuetify$1.version = version$1;
19900
19936
 
19901
19937
  // Vue's inject() can only be used in setup
@@ -19907,7 +19943,7 @@
19907
19943
  }
19908
19944
  }
19909
19945
 
19910
- const version = "3.1.5-master-20230212.0";
19946
+ const version = "3.2.0-dev-20230214.0";
19911
19947
 
19912
19948
  const createVuetify = function () {
19913
19949
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};