@nixweb/nixloc-ui 0.0.83 → 0.0.86

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.83",
3
+ "version": "0.0.86",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -118,6 +118,10 @@ export default {
118
118
  cadastrarNovoTitulo: String,
119
119
  cadastrarNovoLargura: Number,
120
120
  cadastrarNovoAltura: Number,
121
+ marcarFormSujo: {
122
+ type: Boolean,
123
+ default: true,
124
+ },
121
125
  },
122
126
  components: {
123
127
  Multiselect,
@@ -169,6 +173,7 @@ export default {
169
173
  "insereValidacao",
170
174
  "removeValidacao",
171
175
  "reiniciaValidacao",
176
+ "insereFormSujo",
172
177
  ]),
173
178
  aoAbrir() {
174
179
  this.obterTodos();
@@ -243,6 +248,7 @@ export default {
243
248
  "value.id": function () {
244
249
  this.valida();
245
250
  this.formSujo = true;
251
+ if (this.marcarFormSujo) this.insereFormSujo(true);
246
252
  this.valorAtual = { id: this.value.id, conteudo: this.value.conteudo };
247
253
  },
248
254
  notificacoes() {
@@ -301,7 +307,7 @@ div.depois-lista {
301
307
  border-bottom: 1px solid #d6dadf;
302
308
  border-radius: 0px !important;
303
309
  margin-bottom: 20px;
304
- }
310
+ }
305
311
 
306
312
  .selecione-invalido {
307
313
  border-bottom: 1px solid #ff5454;
@@ -312,7 +318,7 @@ div.depois-lista {
312
318
  }
313
319
 
314
320
  .cadastrar-novo-titulo {
315
- color: #577696;
321
+ font-size: 18px;
316
322
  margin-bottom: 5px;
317
323
  }
318
324
  </style>
@@ -47,6 +47,10 @@ export default {
47
47
  type: String,
48
48
  default: "float",
49
49
  },
50
+ marcarFormSujo: {
51
+ type: Boolean,
52
+ default: true,
53
+ },
50
54
  value: Number,
51
55
  alterou: Function,
52
56
  enter: Function,
@@ -104,7 +108,7 @@ export default {
104
108
 
105
109
  this.$emit("input", valor);
106
110
  this.formSujo = true;
107
- this.insereFormSujo(true);
111
+ if (this.marcarFormSujo) this.insereFormSujo(true);
108
112
 
109
113
  this.valor = valor;
110
114
  },
@@ -138,7 +142,6 @@ export default {
138
142
  </script>
139
143
 
140
144
  <style scoped>
141
-
142
145
  .sucesso {
143
146
  color: #94aa2a;
144
147
  font-size: 14px;
@@ -41,7 +41,6 @@ import { mapState, mapMutations } from "vuex";
41
41
  export default {
42
42
  components: { Dica },
43
43
  name: "Texto",
44
- mixins: [],
45
44
  props: [
46
45
  "titulo",
47
46
  "campo",
@@ -57,6 +56,7 @@ export default {
57
56
  "enter",
58
57
  "limpou",
59
58
  "saiu",
59
+ "marcarFormSujo",
60
60
  ],
61
61
  data() {
62
62
  return {
@@ -113,7 +113,9 @@ export default {
113
113
  value() {
114
114
  this.valida();
115
115
  this.formSujo = true;
116
- this.insereFormSujo(true);
116
+ // inverti a validação devido não colocar o default como true no props
117
+ var valor = this.marcarFormSujo == undefined ? true : this.marcarFormSujo;
118
+ if (valor) this.insereFormSujo(true);
117
119
  },
118
120
  notificacoes() {
119
121
  let self = this;
@@ -145,7 +147,6 @@ export default {
145
147
  </script>
146
148
 
147
149
  <style scoped>
148
-
149
150
  .sucesso {
150
151
  color: #94aa2a;
151
152
  font-size: 14px;
@@ -45,7 +45,7 @@ export default {
45
45
  overflow: hidden;
46
46
  z-index: 20;
47
47
  padding: 18px;
48
- margin-left: 220px;
48
+ margin-left: 100px;
49
49
  }
50
50
 
51
51
  .tamanho {
@@ -15,7 +15,7 @@
15
15
  <div class="div-icone lado-a-lado">
16
16
  <i class="fas fa-chart-area icone-dash" :style="'color:' + corBase"></i>
17
17
  </div>
18
- <div class="lado-a-lado titulo">Dashboard</div>
18
+ <div class="titulo">Dashboard</div>
19
19
  </a>
20
20
  </li>
21
21
 
@@ -28,10 +28,10 @@
28
28
  <div class="div-icone lado-a-lado">
29
29
  <i :class="item.icone" class="icone" :style="'color:' + corBase"></i>
30
30
  </div>
31
- <div class="lado-a-lado titulo">{{ item.modulo }}</div>
32
- <div class="lado-a-lado seta menu__arrow-icon">
31
+ <div class="titulo">{{ item.titulo }}</div>
32
+ <!-- <div class="lado-a-lado seta menu__arrow-icon">
33
33
  <i class="fas fa-angle-right"></i>
34
- </div>
34
+ </div> -->
35
35
  </a>
36
36
  </li>
37
37
  </ul>
@@ -153,20 +153,24 @@ export default {
153
153
  width: 35px;
154
154
  height: 35px;
155
155
  padding-top: 5px;
156
+ margin-left: 38px;
156
157
  }
157
158
 
158
159
  .icone-fechar {
159
160
  margin-right: 20px;
160
161
  }
161
162
  .icone {
162
- font-size: 18px;
163
+ font-size: 20px;
163
164
  }
164
165
  .icone-dash {
165
- font-size: 20px;
166
+ font-size: 22px;
166
167
  }
167
168
  .titulo {
168
- font-size: 14px;
169
+ font-size: 13px;
169
170
  font-weight: 400;
171
+ margin-top: -6px;
172
+ text-align: center;
173
+ width: 100%;
170
174
  }
171
175
  .titulo-sub {
172
176
  margin-left: 5px;
@@ -13,7 +13,7 @@ export default {
13
13
  .moldura {
14
14
  border: 1px solid #dbdfe9;
15
15
  background-color: white;
16
- border-radius: 6px;
16
+ border-radius: 3px;
17
17
  padding: 15px;
18
18
  }
19
19
  </style>
@@ -98,7 +98,7 @@ export default {
98
98
  <style scoped>
99
99
  .c-container {
100
100
  margin: auto;
101
- padding-left: 220px;
101
+ padding-left: 110px;
102
102
  max-width: 1400px;
103
103
  }
104
104
 
@@ -29,7 +29,7 @@ export default {
29
29
  width: 100%;
30
30
  position: fixed;
31
31
  top: 0;
32
- left: 220px;
32
+ left: 100px;
33
33
  z-index: 20;
34
34
  }
35
35
  </style>
@@ -23,7 +23,7 @@ import Painel from "@nixweb/nixloc-ui/src/component/layout/Painel";
23
23
  import SalvarCancelar from "@nixweb/nixloc-ui/src/component/shared/SalvarCancelar";
24
24
 
25
25
  export default {
26
- name: "InserirEditarModeloView",
26
+ name: "ModeloAdicionarModificarView",
27
27
  components: { Painel, SalvarCancelar },
28
28
  props: {
29
29
  painel: Object,
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <div>
3
+ <slot name="conteudo-botoes"></slot>
4
+ <Pesquisa />
5
+ <br />
6
+ <ModeloLista :modeloLista="modeloLista" :botaoExcluir="botaoExcluir">
7
+ <div slot="conteudo-botoes-tabela-cabecalho">
8
+ <slot name="conteudo-botoes-tabela-cabecalho"></slot>
9
+ </div>
10
+ <div slot="conteudo-filtro-horizontal">
11
+ <slot name="conteudo-filtro-horizontal"></slot>
12
+ </div>
13
+ <div slot="conteudo-botoes-tabela">
14
+ <slot name="conteudo-botoes-tabela"></slot>
15
+ </div>
16
+ </ModeloLista>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ import Pesquisa from "../shared/Pesquisa.vue";
22
+
23
+ import ModeloLista from "@nixweb/nixloc-ui/src/component/template/ModeloLista.vue";
24
+
25
+ export default {
26
+ name: "ModeloView",
27
+ components: { Pesquisa, ModeloLista },
28
+ props: {
29
+ modeloLista: Object,
30
+ botaoExcluir: {
31
+ type: Boolean,
32
+ default: true,
33
+ },
34
+ },
35
+ };
36
+ </script>