@bildvitta/quasar-ui-asteroid 3.0.0-beta.7 → 3.0.0-beta.8

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @bildvitta/quasar-ui-asteroid v3.0.0-beta.7
2
+ * @bildvitta/quasar-ui-asteroid v3.0.0-beta.8
3
3
  * (c) 2022 Bild & Vitta <systemteam@bild.com.br>
4
4
  * Released under the MIT License.
5
5
  */
@@ -5235,7 +5235,9 @@
5235
5235
  this.$qas.error('Ops! Erro ao obter os dados.', exception);
5236
5236
 
5237
5237
  const status = response?.status;
5238
- const redirect = ({ 403: 'Forbidden', 404: 'NotFound' })[status];
5238
+ const redirect = status >= 500
5239
+ ? 'ServerError'
5240
+ : ({ 401: 'Unauthorized', 403: 'Forbidden', 404: 'NotFound' })[status];
5239
5241
 
5240
5242
  if (redirect) {
5241
5243
  this.$router.replace({ name: redirect });
@@ -7567,13 +7569,8 @@
7567
7569
 
7568
7570
  defaultFuseOptions () {
7569
7571
  return {
7570
- distance: 100,
7571
- location: 0,
7572
- maxPatternLength: 32,
7573
- minMatchCharLength: 1,
7574
- shouldSort: true,
7575
7572
  threshold: 0.1,
7576
- tokenize: true,
7573
+ ignoreLocation: true,
7577
7574
 
7578
7575
  ...this.fuseOptions
7579
7576
  }
@@ -7759,15 +7756,9 @@
7759
7756
 
7760
7757
  defaultFuseOptions () {
7761
7758
  return {
7762
- distance: 100,
7763
- includeScore: true,
7759
+ ignoreLocation: true,
7764
7760
  keys: ['label', 'value'],
7765
- location: 0,
7766
- maxPatternLength: 32,
7767
- minMatchCharLength: 1,
7768
- shouldSort: true,
7769
7761
  threshold: 0.1,
7770
- tokenize: true,
7771
7762
 
7772
7763
  ...this.fuseOptions
7773
7764
  }
@@ -8598,10 +8589,11 @@
8598
8589
  handleScrollOnGrab () {
8599
8590
  const fullTableWidth = this.getFullTableWidth();
8600
8591
  const containerTableWidth = this.getContainerTableWidth();
8592
+ const hasScrollOnGrab = !!Object.keys(this.scrollOnGrab).length;
8601
8593
 
8602
8594
  if (fullTableWidth > containerTableWidth) {
8603
8595
  this.initializeScrollOnGrab();
8604
- } else if (this.hasScrollOnGrab) {
8596
+ } else if (hasScrollOnGrab) {
8605
8597
  this.scrollOnGrab.destroyEvents();
8606
8598
  this.scrollOnGrab.element.style.cursor = 'auto';
8607
8599
  this.scrollOnGrab = {};
@@ -9250,7 +9242,7 @@
9250
9242
 
9251
9243
  var name = "@bildvitta/quasar-ui-asteroid";
9252
9244
  var description = "Asteroid";
9253
- var version$1 = "3.0.0-beta.7";
9245
+ var version$1 = "3.0.0-beta.8";
9254
9246
  var author = "Bild & Vitta <systemteam@bild.com.br>";
9255
9247
  var license = "MIT";
9256
9248
  var main = "dist/asteroid.cjs.min.js";