@nixweb/nixloc-ui 0.0.115 → 0.0.116

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.115",
3
+ "version": "0.0.116",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -57,8 +57,4 @@ export default {
57
57
  font-size: 18px;
58
58
  margin-bottom: 5px;
59
59
  }
60
- .hr {
61
- background: #FAFAFC !important;
62
- height: 1px !important;
63
- }
64
60
  </style>
@@ -6,10 +6,9 @@
6
6
  <Dica :campo="campo" :formNome="formNome" />
7
7
  </label>
8
8
  <div class="inner-addon right-addon">
9
- <i
10
- v-if="notificacoes.length > 0 && formSujo"
11
- class="requerido glyphicon fas fa-exclamation-triangle"
12
- ></i>
9
+ <div class="requerido glyphicon" v-if="notificacoes.length > 0 && formSujo">
10
+ <i class="fas fa-exclamation-triangle"></i>
11
+ </div>
13
12
  <slot v-else></slot>
14
13
  <input
15
14
  type="text"
@@ -157,6 +156,6 @@ export default {
157
156
  }
158
157
 
159
158
  .margem-botao {
160
- margin-top: -15px;
159
+ margin-top: -3px;
161
160
  }
162
161
  </style>
@@ -10,7 +10,7 @@ export default {
10
10
  props: {
11
11
  bordaArredondada: {
12
12
  type: Number,
13
- default: 5,
13
+ default: 8,
14
14
  },
15
15
  },
16
16
  };
@@ -19,6 +19,9 @@ export default {
19
19
  .moldura {
20
20
  border: 1px solid #dbdfe9;
21
21
  background-color: transparent;
22
- padding: 15px;
22
+ padding-top: 15px;
23
+ padding-left: 30px;
24
+ padding-right: 30px;
25
+ padding-bottom: 10px;
23
26
  }
24
27
  </style>
@@ -120,6 +120,7 @@ export default {
120
120
 
121
121
  .icone{
122
122
  opacity: 0.8;
123
+ font-size: 20px;
123
124
  }
124
125
 
125
126
 
@@ -14,13 +14,13 @@ export default {
14
14
  },
15
15
  props: {
16
16
  template: String,
17
- dados: Object,
17
+ d: Object,
18
18
  },
19
19
  methods: {
20
- somaGrupo(grupoNome) {
20
+ sMg(grN) {
21
21
  let total = "";
22
22
  this.dados.produto.forEach((x) => {
23
- if (x.grupoNome === grupoNome) return (total = x.grupoTotal);
23
+ if (x.pGp === grN) return (total = x.pGpT);
24
24
  });
25
25
  return total;
26
26
  },
@@ -2,10 +2,7 @@
2
2
  <div>
3
3
  <div class="div-alerta">
4
4
  <Alerta tipo="info">
5
- <span>
6
- Utilize os parâmetros para que as informações sejam carregadas de forma
7
- dinâmicas!</span
8
- >
5
+ <span> Utilize os parâmetros conforme descrição abaixo!</span>
9
6
  </Alerta>
10
7
  </div>
11
8
  <table class="table table-responsive-xs">
@@ -17,18 +14,18 @@
17
14
  </tr>
18
15
  </thead>
19
16
  <tbody v-for="(legenda, grupoNome) in agrupado">
20
- <td class="grupo" colspan="8">
17
+ <td class="grupo text-center" colspan="8">
21
18
  <div>{{ grupoNome }}</div>
22
19
  </td>
23
20
  <tr v-for="item in legenda">
24
- <td>
21
+ <td class="parametro">
25
22
  <span> {{ item.parametro }}</span>
26
23
  </td>
27
24
  <td>
28
25
  <span> {{ item.descricao }}</span>
29
26
  </td>
30
27
  <td>
31
- <span> {{ item.exemplo }}</span>
28
+ <span class="exemplo"> {{ item.exemplo }}</span>
32
29
  </td>
33
30
  </tr>
34
31
  </tbody>
@@ -45,23 +42,8 @@ export default {
45
42
  components: {
46
43
  Alerta,
47
44
  },
48
- data() {
49
- return {
50
- legenda: [
51
- {
52
- grupoNome: "Locação",
53
- parametro: "{{d.l.n}}",
54
- descricao: "Número da Locação",
55
- exemplo: "200",
56
- },
57
- {
58
- grupoNome: "Locação",
59
- parametro: "{{d.l.dA}}",
60
- descricao: "Número da Locação",
61
- exemplo: "200",
62
- },
63
- ],
64
- };
45
+ props: {
46
+ legenda: [],
65
47
  },
66
48
  computed: {
67
49
  ...mapGetters("generic", ["agruparPor"]),
@@ -93,9 +75,20 @@ export default {
93
75
 
94
76
  .grupo {
95
77
  background-color: #fafafc;
78
+ font-size: 14px;
79
+ font-weight: 500;
96
80
  }
97
81
 
98
82
  .div-alerta {
99
83
  margin-bottom: 20px;
100
84
  }
85
+
86
+ .parametro {
87
+ width: 250px;
88
+ }
89
+
90
+ .exemplo {
91
+ font-size: 14px;
92
+ color:rgb(82, 74, 74);
93
+ }
101
94
  </style>
@@ -99,11 +99,11 @@ export default {
99
99
  }
100
100
 
101
101
  .margem {
102
- padding-top: 25px;
102
+ padding-top: 28px;
103
103
  }
104
104
 
105
105
  .div-botao {
106
- padding-top: 25px;
106
+ padding-top: 30px;
107
107
  }
108
108
 
109
109
  ::placeholder {
@@ -236,14 +236,14 @@ tr:hover {
236
236
  }
237
237
 
238
238
  .titulo-cabecalho {
239
- font-size: 14px;
239
+ font-size: 13px;
240
240
  color: #757d8c;
241
241
  font-weight: 400;
242
242
  text-transform: uppercase;
243
243
  }
244
244
 
245
245
  .tabela-numero {
246
- font-size: 15px;
246
+ font-size: 14px;
247
247
  font-weight: bold;
248
248
  }
249
249
 
@@ -253,13 +253,13 @@ tr:hover {
253
253
  }
254
254
 
255
255
  .tabela-valor {
256
- font-size: 15px;
256
+ font-size: 14px;
257
257
  min-width: 100px;
258
258
  }
259
259
 
260
260
  .link {
261
261
  color: #3F529B;
262
- font-size: 15px;
262
+ font-size: 14px;
263
263
  font-weight: 400;
264
264
  cursor: pointer;
265
265
  }
@@ -72,9 +72,9 @@
72
72
  <Modal titulo="Salvar" :largura="500" v-show="mostrarModal('salvarDocumento')">
73
73
  <slot></slot>
74
74
  </Modal>
75
- <Modal titulo="Parâmetros" :largura="900" v-if="mostrarModal('legenda')">
75
+ <Modal titulo="Parâmetros" :largura="1000" v-if="mostrarModal('legenda')">
76
76
  <BarraRolagem :alturaMinima="400" :alturaMaxima="400">
77
- <LegendaParametro />
77
+ <LegendaParametro :legenda="legenda" />
78
78
  </BarraRolagem>
79
79
  </Modal>
80
80
  <Modal titulo="Editor de Código" :largura="900" v-if="mostrarModal('codigo')">
@@ -99,7 +99,7 @@
99
99
  <BarraRolagem :alturaMinima="300" :alturaMaxima="500">
100
100
  <div class="a4">
101
101
  <div id="printMe">
102
- <DocumentoPreview :template="documentoPreview" :dados="dados" />
102
+ <DocumentoPreview :template="documentoPreview" :d="dados" />
103
103
  </div>
104
104
  </div>
105
105
  </BarraRolagem>
@@ -149,6 +149,7 @@ export default {
149
149
  props: {
150
150
  painel: Object,
151
151
  dados: Object,
152
+ legenda: Array,
152
153
  },
153
154
  data() {
154
155
  return {
@@ -11,7 +11,7 @@
11
11
  <b-row>
12
12
  <b-col xs="12" sm="12" md="12" lg="6" xl="6" v-if="todos.salvo.length > 0">
13
13
  <div><i class="fas fa-file-alt icone-salvo"></i></i> Personalizado</div>
14
- <hr />
14
+ <hr class="hr" />
15
15
  <div class="div-moldura" v-for="relatorio in todos.salvo">
16
16
  <div>
17
17
  <Moldura :bordaArredondada="12">
@@ -41,7 +41,7 @@
41
41
  </b-col>
42
42
  <b-col xs="12" sm="12" md="12" lg="6" xl="6">
43
43
  <div><i class="fas fa-file-chart-line"></i> Padrão</div>
44
- <hr />
44
+ <hr class="hr" />
45
45
  <div class="div-moldura" v-for="relatorio in todos.padrao">
46
46
  <div>
47
47
  <Moldura :bordaArredondada="12">
@@ -219,4 +219,9 @@ export default {
219
219
  font-size: 13.5px;
220
220
  color: rgb(117, 117, 117);
221
221
  }
222
+
223
+ .hr {
224
+ background: #FAFAFC !important;
225
+ height: 1px !important;
226
+ }
222
227
  </style>
@@ -88,23 +88,23 @@ export default {
88
88
  };
89
89
 
90
90
  if (th) {
91
- let ehProdutoAgrupado = th.innerText.includes("n.grupo");
91
+ let ehPorGrupo = th.innerText.includes("n.grupo");
92
92
  let ehProduto = th.innerText.includes("n.produto");
93
93
  let ehPeriodo = th.innerText.includes("n.periodo");
94
94
  let ehPagamento = th.innerText.includes("n.pagamento");
95
95
 
96
96
  if (ehProduto) {
97
- obj.vForSimples = "v-for='n in dados.produto'";
97
+ obj.vForSimples = "v-for='p in dados.produto'";
98
98
  config.push(obj);
99
99
  } else if (ehPeriodo) {
100
- obj.vForSimples = "v-for='n in dados.periodo'";
100
+ obj.vForSimples = "v-for='pe in dados.periodo'";
101
101
  config.push(obj);
102
102
  } else if (ehPagamento) {
103
103
  obj.vForSimples = "v-for='n in dados.pagamento'";
104
104
  config.push(obj);
105
- } else if (ehProdutoAgrupado) {
106
- obj.vForAgrupado = "v-for='(produto, grupoNome) in produtoAgrupado'";
107
- obj.vForSimples = "v-for='n in produto'";
105
+ } else if (ehPorGrupo) {
106
+ obj.vForAgrupado = "v-for='(produto, grN) in produtoAgrupado'";
107
+ obj.vForSimples = "v-for='p in produto'";
108
108
 
109
109
  var posicaoInicio = documentoHtml.split("<tbody>", sequencial + 1).join("<tbody>").length;
110
110
  var posicaoFim = documentoHtml.split("</tbody>", sequencial + 1).join("</tbody>").length;