@burh/nuxt-core 1.0.455 → 1.0.457

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.
@@ -10,7 +10,7 @@
10
10
  class="burh-color"
11
11
  @click.native="$emit('send-contact')"
12
12
  >
13
- <i class="fas fa-lock mr-1"></i>
13
+ <diamond class="mr-1" />
14
14
  Atualizar
15
15
  </base-button>
16
16
  </div>
@@ -57,7 +57,7 @@
57
57
 
58
58
  <div
59
59
  class="deficiency title-block mt-3 ml-4"
60
- v-if="userData.user_deficiency"
60
+ v-if="userData.deficiency"
61
61
  >
62
62
  <div class="d-flex align-items-center">
63
63
  <i class="fas fa-wheelchair"></i>
@@ -65,35 +65,38 @@
65
65
  </div>
66
66
  <div class="line"></div>
67
67
  <p>
68
- {{ userData.user_deficiency.deficiency_id | allDeficiencies }} -
69
- {{ userData.user_deficiency.cid }}
68
+ {{ userData && userData.deficiency && userData.deficiency && userData.deficiency.deficiency_id | allDeficiencies }}
69
+
70
+ <template> - </template>
71
+
72
+ {{ userData && userData.deficiency && userData.deficiency && userData.deficiency.cid | formatCid }}
70
73
  </p>
71
74
 
72
- <p v-show="userData.user_deficiency.appliance">
73
- Acessório: {{ userData.user_deficiency.appliance }}
75
+ <p v-if="userData && userData.deficiency && userData.deficiency.appliance || false">
76
+ Acessório: {{ userData.deficiency.appliance }}
74
77
  </p>
75
78
 
76
- <p v-show="userData.user_deficiency.apparatus">
77
- Necessidade: {{ userData.user_deficiency.apparatus }}
79
+ <p v-if="userData && userData.deficiency && userData.deficiency.apparatus || false">
80
+ Necessidade: {{ userData.deficiency.apparatus }}
78
81
  </p>
79
82
 
80
- <p v-show="userData.user_deficiency.course">
81
- Curso: {{ userData.user_deficiency.course }}
83
+ <p v-if="userData && userData.deficiency && userData.deficiency.course || false">
84
+ Curso: {{ userData.deficiency.course }}
82
85
  </p>
83
86
 
84
- <p v-show="userData.user_deficiency.note">
85
- Anotações: {{ userData.user_deficiency.note }}
87
+ <p v-if="userData && userData.deficiency && userData.deficiency.note || false">
88
+ Anotações: {{ userData.deficiency.note }}
86
89
  </p>
87
90
 
88
- <p v-show="userData.user_deficiency.transport === 1">
91
+ <p v-if="userData && userData.deficiency && userData.deficiency.transport === 1 || false">
89
92
  Utiliza transporte coletivo
90
93
  </p>
91
94
 
92
- <p v-show="userData.user_deficiency.vehicle === 1">
95
+ <p v-if="userData && userData.deficiency && userData.deficiency.vehicle === 1 || false">
93
96
  Possuí veículo adaptado
94
97
  </p>
95
98
 
96
- <p v-show="userData.user_deficiency.escort === 1">
99
+ <p v-if="userData && userData.deficiency && userData.deficiency.escort === 1 || false">
97
100
  Precisa de acompanhante
98
101
  </p>
99
102
  </div>
@@ -215,12 +218,6 @@
215
218
  <span class="font-weight-normal mt-2 d-block" v-if="!isLocked"
216
219
  >Data de atualização:
217
220
  {{ $moment(userData.updated_at).format('DD/MM/YYYY H:mm') }}
218
- <!-- <template v-if="isLocked" @click="$emit('open-contact', isLocked)">
219
- <i class="fa fa-lock"></i>
220
- </template>
221
- <template v-else>
222
- {{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
223
- </template> -->
224
221
  </span>
225
222
  </div>
226
223
  </div>
@@ -350,7 +347,7 @@ export default {
350
347
  }
351
348
  },
352
349
  filters: {
353
- allDeficiencies(id) {
350
+ allDeficiencies(idList) {
354
351
  const typeDeficiency = {
355
352
  1: 'Deficiência Física',
356
353
  2: 'Deficiência Visual',
@@ -360,7 +357,10 @@ export default {
360
357
  6: 'Deficiência Múltipla'
361
358
  };
362
359
 
363
- return typeDeficiency[id] || '-';
360
+ return idList && idList.length && idList.map(id => typeDeficiency[id] || null).filter(id => id).join(' | ') || '';
361
+ },
362
+ formatCid(cidList) {
363
+ return cidList && cidList.length && cidList.filter(cid => cid).join(' | ') || '';
364
364
  },
365
365
  convertMoney(money) {
366
366
  let moneyAux = parseFloat(money);
@@ -13,10 +13,7 @@
13
13
  "
14
14
  >
15
15
  <template v-if="tool.event !== 'moveTo'">
16
- <i
17
- v-show="isLocked && tool.event !== 'share'"
18
- class="fas fa-lock mr-1"
19
- ></i>
16
+ <diamond v-if="isLocked && tool.event !== 'share'" class="mr-1" :size="16" />
20
17
  {{ tool.name }}
21
18
  </template>
22
19
  <template v-else-if="tool.event === 'moveTo'">
@@ -71,7 +68,7 @@
71
68
  >Ler mais</a
72
69
  >
73
70
 
74
- <p v-if="userData && userData.user_complementary_information && userData.user_complementary_information.about || false" class="">
71
+ <p v-if="!(userData && userData.user_complementary_information && userData.user_complementary_information.about)" class="">
75
72
  Nenhuma informação adicionada
76
73
  </p>
77
74
  </div>
@@ -15,14 +15,13 @@
15
15
  </div>
16
16
  <div>
17
17
  <button
18
- @click="!isLocked ? handleFilterApply() : $emit('open-plan-modal')"
18
+ @click="!isLocked ? handleFilterApply() : handleOpenPlanModal()"
19
19
  class="base__filter__button apply"
20
20
  :class="{ 'disabled': isLocked }"
21
21
  >
22
22
  <template v-if="isLocked">
23
23
  <span class="mr-1 custom__icon">
24
- <i class="fas fa-lock lock"></i>
25
- <i class="fas fa-rocket rocket"></i>
24
+ <diamond class="lock" />
26
25
  </span>
27
26
  </template>
28
27
  <span>Filtrar</span>
@@ -49,6 +48,10 @@ export default {
49
48
  handleFilterApply() {
50
49
  this.$bus.$emit('close-dropdown');
51
50
  this.$emit('filter-apply');
51
+ },
52
+ handleOpenPlanModal() {
53
+ this.$bus.$emit('close-dropdown');
54
+ this.$emit('open-plan-modal');
52
55
  }
53
56
  }
54
57
  };
@@ -127,20 +130,6 @@ export default {
127
130
  .lock {
128
131
  animation: fadeInDown 0.5s;
129
132
  }
130
- .rocket {
131
- display: none;
132
- }
133
- }
134
- &:hover {
135
- .custom__icon {
136
- .lock {
137
- display: none;
138
- }
139
- .rocket {
140
- display: block;
141
- animation: fadeInDown 0.5s;
142
- }
143
- }
144
133
  }
145
134
  }
146
135
  }
@@ -21,8 +21,13 @@
21
21
  v-if="status != ''"
22
22
  class="status"
23
23
  :class="`status--${status}`"
24
- ></div>
24
+ />
25
+
26
+ <slot name="button-left" />
27
+
25
28
  <p>{{ text }}</p>
29
+
30
+ <slot name="button-right" />
26
31
  </button>
27
32
 
28
33
  <div
@@ -30,7 +30,7 @@
30
30
  type="primary"
31
31
  v-if="hasEnableBadge"
32
32
  >
33
- ATUALIZAR
33
+ <diamond class="mr-1" :size="14" /> ATUALIZAR
34
34
  </badge>
35
35
 
36
36
  <badge
@@ -85,14 +85,16 @@ export default {
85
85
  },
86
86
  methods: {
87
87
  showError(file, message) {
88
- return swal.fire({
89
- title: 'Erro',
90
- text: message,
91
- type: 'error',
92
- buttonsStyling: false,
93
- confirmButtonText: 'Ok, fechar!',
94
- confirmButtonClass: 'btn btn-primary btn-fill'
95
- });
88
+ if(file.status != 'canceled'){
89
+ return swal.fire({
90
+ title: 'Erro',
91
+ text: message,
92
+ type: 'error',
93
+ buttonsStyling: false,
94
+ confirmButtonText: 'Ok, fechar!',
95
+ confirmButtonClass: 'btn btn-primary btn-fill'
96
+ });
97
+ }
96
98
  },
97
99
  removeImage() {
98
100
  if (!this.image) {
@@ -106,7 +108,7 @@ export default {
106
108
  if (image[0].size <= 500000) {
107
109
  this.$emit('save-img', image);
108
110
  }
109
- }
111
+ }
110
112
 
111
113
  this.$emit('close-modal-video');
112
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.455",
3
+ "version": "1.0.457",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {