@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.
@@ -11,12 +11,15 @@
11
11
  },
12
12
  "fuse-options": {
13
13
  "desc": "Opções do Fuse.js (https://fusejs.io/api/options.html).",
14
- "default": "{ distance: 100, location: 0, maxPatternLength: 32, minMatchCharLength: 1, shouldSort: true, threshold: 0.1, tokenize: true }",
15
14
  "debugger": true,
16
15
  "type": "Object",
17
16
  "examples": [
18
17
  "{ keys: ['label'] }"
19
- ]
18
+ ],
19
+ "default": {
20
+ "ignoreLocation": true,
21
+ "threshold": 0.1
22
+ }
20
23
  },
21
24
  "height": {
22
25
  "desc": "Define altura do box quando a lista não está vazia.",
@@ -12,18 +12,12 @@
12
12
  "type": "Object",
13
13
  "debugger": true,
14
14
  "default": {
15
- "distance": 100,
16
- "includeScore": true,
15
+ "ignoreLocation": true,
17
16
  "keys": [
18
17
  "label",
19
18
  "value"
20
19
  ],
21
- "location": 0,
22
- "maxPatternLength": 32,
23
- "minMatchCharLength": 1,
24
- "shouldSort": true,
25
- "threshold": 0.1,
26
- "tokenize": true
20
+ "threshold": 0.1
27
21
  }
28
22
  },
29
23
  "label-key": {
@@ -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
  */
@@ -5247,7 +5247,9 @@ var viewMixin = {
5247
5247
  this.$qas.error('Ops! Erro ao obter os dados.', exception);
5248
5248
 
5249
5249
  const status = response?.status;
5250
- const redirect = ({ 403: 'Forbidden', 404: 'NotFound' })[status];
5250
+ const redirect = status >= 500
5251
+ ? 'ServerError'
5252
+ : ({ 401: 'Unauthorized', 403: 'Forbidden', 404: 'NotFound' })[status];
5251
5253
 
5252
5254
  if (redirect) {
5253
5255
  this.$router.replace({ name: redirect });
@@ -7579,13 +7581,8 @@ var script$8 = {
7579
7581
 
7580
7582
  defaultFuseOptions () {
7581
7583
  return {
7582
- distance: 100,
7583
- location: 0,
7584
- maxPatternLength: 32,
7585
- minMatchCharLength: 1,
7586
- shouldSort: true,
7587
7584
  threshold: 0.1,
7588
- tokenize: true,
7585
+ ignoreLocation: true,
7589
7586
 
7590
7587
  ...this.fuseOptions
7591
7588
  }
@@ -7771,15 +7768,9 @@ var script$7 = {
7771
7768
 
7772
7769
  defaultFuseOptions () {
7773
7770
  return {
7774
- distance: 100,
7775
- includeScore: true,
7771
+ ignoreLocation: true,
7776
7772
  keys: ['label', 'value'],
7777
- location: 0,
7778
- maxPatternLength: 32,
7779
- minMatchCharLength: 1,
7780
- shouldSort: true,
7781
7773
  threshold: 0.1,
7782
- tokenize: true,
7783
7774
 
7784
7775
  ...this.fuseOptions
7785
7776
  }
@@ -8610,10 +8601,11 @@ var script$3 = {
8610
8601
  handleScrollOnGrab () {
8611
8602
  const fullTableWidth = this.getFullTableWidth();
8612
8603
  const containerTableWidth = this.getContainerTableWidth();
8604
+ const hasScrollOnGrab = !!Object.keys(this.scrollOnGrab).length;
8613
8605
 
8614
8606
  if (fullTableWidth > containerTableWidth) {
8615
8607
  this.initializeScrollOnGrab();
8616
- } else if (this.hasScrollOnGrab) {
8608
+ } else if (hasScrollOnGrab) {
8617
8609
  this.scrollOnGrab.destroyEvents();
8618
8610
  this.scrollOnGrab.element.style.cursor = 'auto';
8619
8611
  this.scrollOnGrab = {};
@@ -9262,7 +9254,7 @@ script.__file = "src/components/transfer/QasTransfer.vue";
9262
9254
 
9263
9255
  var name = "@bildvitta/quasar-ui-asteroid";
9264
9256
  var description = "Asteroid";
9265
- var version$1 = "3.0.0-beta.7";
9257
+ var version$1 = "3.0.0-beta.8";
9266
9258
  var author = "Bild & Vitta <systemteam@bild.com.br>";
9267
9259
  var license = "MIT";
9268
9260
  var main = "dist/asteroid.cjs.min.js";