@nixweb/nixloc-ui 0.0.49 → 0.0.52

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.52",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -83,7 +83,8 @@ export default {
83
83
  border-radius: 40px !important;
84
84
  font-size: 13px !important;
85
85
  font-weight: 400;
86
- letter-spacing: 0.5px !important;
86
+ font-style: normal !important;
87
+ letter-spacing: 1px !important;
87
88
  -webkit-box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
88
89
  -moz-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12);
89
90
  box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
@@ -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,20 @@ 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%);
41
45
  }
42
46
 
43
47
  .tamanho {
@@ -49,10 +53,12 @@ export default {
49
53
  top: 0;
50
54
  left: 0;
51
55
  right: 0;
56
+ border-bottom: 1px solid #e1e1e2;
52
57
  }
53
58
 
54
59
  .rodape {
55
60
  left: 0;
56
61
  bottom: 0px;
62
+ border-top: 1px solid #e1e1e2;
57
63
  }
58
64
  </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id="page">
3
3
  <div id="header" :style="'background-color:' + corTopo">
4
- <!-- <a href="#menu"><span></span></a> -->
4
+ <a href="#menu"><span></span></a>
5
5
  </div>
6
6
  <nav id="menu">
7
7
  <div id="panel-menu">
@@ -62,7 +62,7 @@ export default {
62
62
  document.querySelector("#menu"),
63
63
  {
64
64
  backButton: {
65
- close: true,
65
+ close: false,
66
66
  },
67
67
  setSelected: {
68
68
  hover: false,
@@ -72,7 +72,7 @@ export default {
72
72
  add: true,
73
73
  },
74
74
  iconbar: {
75
- use: "(min-width: 450px)",
75
+ use: false,
76
76
  top: ['<a href="#/"><span class="fas fa-bars"></span></a>'],
77
77
  },
78
78
  searchfield: {
@@ -88,7 +88,7 @@ export default {
88
88
  },
89
89
  sidebar: {
90
90
  collapsed: {
91
- use: "(min-width: 450px)",
91
+ use: false,
92
92
  },
93
93
  expanded: {
94
94
  use: "(min-width: 1000px)",
@@ -106,7 +106,7 @@ export default {
106
106
  ],
107
107
  },
108
108
  {
109
- content: ["prev", "breadcrumbs", "close"],
109
+ content: ["prev", "breadcrumbs"],
110
110
  },
111
111
  ],
112
112
  },
@@ -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: {
@@ -119,7 +119,7 @@ export default {
119
119
  },
120
120
  },
121
121
  methods: {
122
- ...mapActions("generic", ["getApi", "deleteApi"]),
122
+ ...mapActions("generic", ["getApi", "deleteAllApi"]),
123
123
  ...mapMutations("generic", [
124
124
  "removeCarregando",
125
125
  "adicionaSelecao",
@@ -139,7 +139,7 @@ export default {
139
139
  url: this.modeloLista.urlRemoverTodosApi,
140
140
  selecionados: this.selecionados,
141
141
  };
142
- this.deleteApi(params).then(() => {
142
+ this.deleteAllApi(params).then(() => {
143
143
  this.removeCarregando(["remover"]);
144
144
  this.adicionaSelecao([]);
145
145
  });
@@ -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
  }