@bildvitta/quasar-ui-asteroid 2.21.0 → 2.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -48,6 +48,12 @@ export default {
48
48
  }
49
49
  },
50
50
 
51
+ computed: {
52
+ labelValue () {
53
+ return this.hideLabel ? '' : this.label
54
+ }
55
+ },
56
+
51
57
  methods: {
52
58
  onClick (item) {
53
59
  if (typeof item.handler === 'function') {
@@ -55,12 +61,6 @@ export default {
55
61
  item.handler(filtered)
56
62
  }
57
63
  }
58
- },
59
-
60
- computed: {
61
- labelValue () {
62
- return this.hideLabel ? '' : this.label
63
- }
64
64
  }
65
65
  }
66
66
  </script>
@@ -121,11 +121,17 @@ export default {
121
121
  this.$router.push({ query })
122
122
  },
123
123
 
124
- async fetchList () {
124
+ async fetchList (externalPayload = {}) {
125
125
  this.isFetching = true
126
126
 
127
+ const payload = {
128
+ ...this.context,
129
+ url: this.url,
130
+ ...externalPayload
131
+ }
132
+
127
133
  try {
128
- const response = await this.$store.dispatch(`${this.entity}/fetchList`, { ...this.context, url: this.url })
134
+ const response = await this.$store.dispatch(`${this.entity}/fetchList`, payload)
129
135
  const { errors, fields, metadata } = response.data
130
136
 
131
137
  this.setErrors(errors)
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
  </qas-uploader>
17
17
 
18
- <qas-dialog v-model="isOpenedDialog" v-bind="defaultDialogProps" >
18
+ <qas-dialog v-model="isOpenedDialog" v-bind="defaultDialogProps">
19
19
  <template #header>
20
20
  <div class="text-bold text-center">Insira sua assinatura digital no campo abaixo</div>
21
21
  </template>
@@ -43,14 +43,14 @@ import { base64ToBlob } from '../../helpers'
43
43
  import { NotifyError } from '../../plugins'
44
44
 
45
45
  export default {
46
- mixins: [screenMixin],
47
-
48
46
  components: {
49
47
  QasDialog,
50
48
  QasUploader,
51
49
  QasSignaturePad
52
50
  },
53
51
 
52
+ mixins: [screenMixin],
53
+
54
54
  props: {
55
55
  dialogProps: {
56
56
  type: Object,
@@ -70,11 +70,17 @@ export default {
70
70
  },
71
71
 
72
72
  methods: {
73
- async fetchSingle () {
73
+ async fetchSingle (externalPayload = {}) {
74
74
  this.isFetching = true
75
75
 
76
+ const payload = {
77
+ id: this.id,
78
+ url: this.url,
79
+ ...externalPayload
80
+ }
81
+
76
82
  try {
77
- const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, { id: this.id, url: this.url })
83
+ const response = await this.$store.dispatch(`${this.entity}/fetchSingle`, payload)
78
84
  const { errors, fields, metadata } = response.data
79
85
 
80
86
  this.setErrors(errors)