@nixweb/nixloc-ui 0.0.49 → 0.0.50

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": "@nixweb/nixloc-ui",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <div
4
+ v-show="!carregando('painel')"
4
5
  class="barra"
5
6
  :style="'min-height:' + altura + 'px;'"
6
7
  :class="{ topo: posicao == 'topo', rodape: posicao == 'rodape' }"
@@ -13,6 +14,8 @@
13
14
  </template>
14
15
 
15
16
  <script>
17
+ import { mapState, mapGetters, mapMutations } from "vuex";
18
+
16
19
  export default {
17
20
  name: "BarraFixa",
18
21
  props: {
@@ -25,19 +28,22 @@ export default {
25
28
  default: 70,
26
29
  },
27
30
  },
31
+ computed: {
32
+ ...mapGetters("generic", ["carregando"]),
33
+ },
28
34
  };
29
35
  </script>
30
36
 
31
37
  <style scoped>
32
38
  .barra {
33
- background-color: white;
39
+ background-color: #fafafc;
34
40
  position: fixed;
35
41
  width: 100%;
36
42
  overflow: hidden;
37
43
  z-index: 20;
38
44
  padding: 18px;
39
- -webkit-box-shadow: 5px 5px 5px 5px rgb(219 223 233 / 33%);
40
- box-shadow: 5px 5px 5px 5px rgb(219 223 233 / 33%);
45
+ border-top: 1px solid #e1e1e2;
46
+ border-bottom: 1px solid #e1e1e2;
41
47
  }
42
48
 
43
49
  .tamanho {
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div :class="{ 'div-mensagem': !modal.abrir }" v-if="notificacoes.length > 0">
3
3
  <Alerta tipo="perigo">
4
- <span>{{ mensagens(notificacoes) }}</span>
4
+ <div v-for="notificacao in notificacoes">
5
+ {{ notificacao.mensagem }}
6
+ </div>
5
7
  </Alerta>
6
8
  <b-alert
7
9
  v-show="false"
@@ -24,8 +26,8 @@ export default {
24
26
  name: "Mensagem",
25
27
  data() {
26
28
  return {
27
- maximoSegundos: 8,
28
- contagemRegressiva: 8,
29
+ maximoSegundos: 10,
30
+ contagemRegressiva: 10,
29
31
  };
30
32
  },
31
33
  computed: {
@@ -162,7 +162,9 @@ export default {
162
162
  .then((response) => {
163
163
  if (response.data.sucesso) {
164
164
  context.commit('insereMetodoExecutadoApi', params.MetodoExecutadoApi);
165
+ context.commit('insereToast', 'adicionarApiSucesso');
165
166
  context.commit('removeNotificacao');
167
+ context.commit('validation/removeFormSujo', null, { root: true });
166
168
  return response.data;
167
169
  } else {
168
170
 
@@ -185,6 +187,7 @@ export default {
185
187
  context.commit('insereMetodoExecutadoApi', params.MetodoExecutadoApi);
186
188
  context.commit('insereToast', 'modificarApiSucesso');
187
189
  context.commit('removeNotificacao');
190
+ context.commit('validation/removeFormSujo', null, { root: true });
188
191
  return response.data;
189
192
  } else {
190
193
  context.commit('insereToast', 'modificarApiErro');
@@ -31,6 +31,9 @@ export default {
31
31
  },
32
32
  insereFormSujo: (state, formSujo) => {
33
33
  state.formSujo = formSujo;
34
+ },
35
+ removeFormSujo: (state) => {
36
+ state.formSujo = false;
34
37
  }
35
38
  },
36
39
  }