@nixweb/nixloc-ui 0.0.85 → 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.85",
3
+ "version": "0.0.86",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -179,7 +179,6 @@ export default {
179
179
  this.obterTodos();
180
180
  },
181
181
  aoSelecionar(value) {
182
- if (this.marcarFormSujo) this.insereFormSujo(true);
183
182
  this.$emit("input", value);
184
183
  if (this.alterou) this.alterou();
185
184
  if (this.campoAlvo) {
@@ -249,6 +248,7 @@ export default {
249
248
  "value.id": function () {
250
249
  this.valida();
251
250
  this.formSujo = true;
251
+ if (this.marcarFormSujo) this.insereFormSujo(true);
252
252
  this.valorAtual = { id: this.value.id, conteudo: this.value.conteudo };
253
253
  },
254
254
  notificacoes() {
@@ -318,7 +318,7 @@ div.depois-lista {
318
318
  }
319
319
 
320
320
  .cadastrar-novo-titulo {
321
- color: #577696;
321
+ font-size: 18px;
322
322
  margin-bottom: 5px;
323
323
  }
324
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 {