@zeedhi/vuetify 1.52.0 → 1.53.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.
@@ -958,7 +958,7 @@ function searchItems(items, search) {
958
958
  if (!search) return items;
959
959
  search = search.toString().toLowerCase();
960
960
  if (search.trim() === '') return items;
961
- return items.filter(item => Object.keys(item).some(key => defaultFilter(getObjectValueByPath(item, key), search, item)));
961
+ return items.filter(item => Object.keys(item).some(key => defaultFilter(getObjectValueByPath(item, key), search)));
962
962
  }
963
963
  /**
964
964
  * Returns:
@@ -1010,10 +1010,10 @@ function getSlot(vm, name = 'default', data, optional = false) {
1010
1010
  function clamp(value, min = 0, max = 1) {
1011
1011
  return Math.max(min, Math.min(max, value));
1012
1012
  }
1013
- function padEnd(str, length, char) {
1013
+ function padEnd(str, length, char = '0') {
1014
1014
  return str + char.repeat(Math.max(0, length - str.length));
1015
1015
  }
1016
- function chunk(str, size) {
1016
+ function chunk(str, size = 1) {
1017
1017
  const chunked = [];
1018
1018
  let index = 0;
1019
1019
 
@@ -1315,7 +1315,7 @@ Icons.property = 'icons';
1315
1315
  const LANG_PREFIX = '$vuetify.';
1316
1316
  const fallback = Symbol('Lang fallback');
1317
1317
 
1318
- function getTranslation(locale, key, usingDefault, defaultLocale) {
1318
+ function getTranslation(locale, key, usingDefault = false, defaultLocale) {
1319
1319
  const shortKey = key.replace(LANG_PREFIX, '');
1320
1320
  let translation = getObjectValueByPath(locale, shortKey, fallback);
1321
1321
 
@@ -3255,7 +3255,7 @@ let all = factory().extend({
3255
3255
  })
3256
3256
  /**/
3257
3257
 
3258
- function applicationable(value, events) {
3258
+ function applicationable(value, events = []) {
3259
3259
  /* @vue/component */
3260
3260
  return mixins(factory$3(['absolute', 'fixed'])).extend({
3261
3261
  name: 'applicationable',
@@ -12407,7 +12407,7 @@ var Mouse = Vue.extend({
12407
12407
  }
12408
12408
  });
12409
12409
 
12410
- function createUTCDate(year, month, day = 1) {
12410
+ function createUTCDate(year, month = 0, day = 1) {
12411
12411
  let date;
12412
12412
 
12413
12413
  if (year < 100 && year >= 0) {
@@ -31262,7 +31262,7 @@ function searchItems(items, search) {
31262
31262
  if (search.trim() === '') return items;
31263
31263
  return items.filter(function (item) {
31264
31264
  return Object.keys(item).some(function (key) {
31265
- return defaultFilter(getObjectValueByPath(item, key), search, item);
31265
+ return defaultFilter(getObjectValueByPath(item, key), search);
31266
31266
  });
31267
31267
  });
31268
31268
  }
@@ -44766,10 +44766,7 @@ let ZdGrid = class ZdGrid extends ZdIterable$1 {
44766
44766
  setViewGetWidth() {
44767
44767
  this.instance.columns.forEach((column) => {
44768
44768
  column.setViewGetWidth(() => {
44769
- let index = this.instance.columns.findIndex((col) => col.name === column.name);
44770
- if (this.instance.selectable) {
44771
- index += 1;
44772
- }
44769
+ const index = this.instance.columns.findIndex((col) => col.name === column.name);
44773
44770
  const el = this.$el;
44774
44771
  const colEl = el.querySelector(`.zd-grid-table-header .zd-table-cell[index='${index}']`);
44775
44772
  return (colEl === null || colEl === void 0 ? void 0 : colEl.clientWidth) || 0;
@@ -957,7 +957,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
957
957
  if (!search) return items;
958
958
  search = search.toString().toLowerCase();
959
959
  if (search.trim() === '') return items;
960
- return items.filter(item => Object.keys(item).some(key => defaultFilter(getObjectValueByPath(item, key), search, item)));
960
+ return items.filter(item => Object.keys(item).some(key => defaultFilter(getObjectValueByPath(item, key), search)));
961
961
  }
962
962
  /**
963
963
  * Returns:
@@ -1009,10 +1009,10 @@ If you're seeing "$attrs is readonly", it's caused by this`);
1009
1009
  function clamp(value, min = 0, max = 1) {
1010
1010
  return Math.max(min, Math.min(max, value));
1011
1011
  }
1012
- function padEnd(str, length, char) {
1012
+ function padEnd(str, length, char = '0') {
1013
1013
  return str + char.repeat(Math.max(0, length - str.length));
1014
1014
  }
1015
- function chunk(str, size) {
1015
+ function chunk(str, size = 1) {
1016
1016
  const chunked = [];
1017
1017
  let index = 0;
1018
1018
 
@@ -1314,7 +1314,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
1314
1314
  const LANG_PREFIX = '$vuetify.';
1315
1315
  const fallback = Symbol('Lang fallback');
1316
1316
 
1317
- function getTranslation(locale, key, usingDefault, defaultLocale) {
1317
+ function getTranslation(locale, key, usingDefault = false, defaultLocale) {
1318
1318
  const shortKey = key.replace(LANG_PREFIX, '');
1319
1319
  let translation = getObjectValueByPath(locale, shortKey, fallback);
1320
1320
 
@@ -3254,7 +3254,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
3254
3254
  })
3255
3255
  /**/
3256
3256
 
3257
- function applicationable(value, events) {
3257
+ function applicationable(value, events = []) {
3258
3258
  /* @vue/component */
3259
3259
  return mixins(factory$3(['absolute', 'fixed'])).extend({
3260
3260
  name: 'applicationable',
@@ -12406,7 +12406,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
12406
12406
  }
12407
12407
  });
12408
12408
 
12409
- function createUTCDate(year, month, day = 1) {
12409
+ function createUTCDate(year, month = 0, day = 1) {
12410
12410
  let date;
12411
12411
 
12412
12412
  if (year < 100 && year >= 0) {
@@ -31261,7 +31261,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
31261
31261
  if (search.trim() === '') return items;
31262
31262
  return items.filter(function (item) {
31263
31263
  return Object.keys(item).some(function (key) {
31264
- return defaultFilter(getObjectValueByPath(item, key), search, item);
31264
+ return defaultFilter(getObjectValueByPath(item, key), search);
31265
31265
  });
31266
31266
  });
31267
31267
  }
@@ -44765,10 +44765,7 @@ If you're seeing "$attrs is readonly", it's caused by this`);
44765
44765
  setViewGetWidth() {
44766
44766
  this.instance.columns.forEach((column) => {
44767
44767
  column.setViewGetWidth(() => {
44768
- let index = this.instance.columns.findIndex((col) => col.name === column.name);
44769
- if (this.instance.selectable) {
44770
- index += 1;
44771
- }
44768
+ const index = this.instance.columns.findIndex((col) => col.name === column.name);
44772
44769
  const el = this.$el;
44773
44770
  const colEl = el.querySelector(`.zd-grid-table-header .zd-table-cell[index='${index}']`);
44774
44771
  return (colEl === null || colEl === void 0 ? void 0 : colEl.clientWidth) || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/vuetify",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "description": "Zeedhi Components based on Vuetify",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -51,5 +51,5 @@
51
51
  "@types/prismjs": "^1.16.2",
52
52
  "@types/sortablejs": "^1.10.6"
53
53
  },
54
- "gitHead": "ea8b48bdb31135970fa5fa2144a6a29f77818a4a"
54
+ "gitHead": "03c1a0c28b9fbc0839871e38649efecf9f1ca270"
55
55
  }