@nixweb/nixloc-ui 0.0.139 → 0.0.141

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.139",
3
+ "version": "0.0.141",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -26,6 +26,7 @@ export default {
26
26
  type: Array,
27
27
  default: [],
28
28
  },
29
+ value: String,
29
30
  },
30
31
  data() {
31
32
  return {
@@ -40,6 +41,7 @@ export default {
40
41
  execute(option) {
41
42
  this.selected = option.title;
42
43
  this.addEvent({ name: option.eventName, data: option });
44
+ this.$emit("input", option.value);
43
45
  },
44
46
  },
45
47
  };
@@ -16,7 +16,11 @@
16
16
  <thead>
17
17
  <tr>
18
18
  <th v-for="(obj, ind) in header" :key="ind">
19
- <div class="title-margem" :class="obj.classCssTitle">
19
+ <div
20
+ class="title-margem"
21
+ :class="obj.classCssTitle"
22
+ :style="obj.styleHeader"
23
+ >
20
24
  <i class="fas fa-search" v-if="obj.iconSearch"></i>
21
25
  <span class="title-header"> {{ obj.title }}</span>
22
26
  </div>
@@ -27,6 +31,7 @@
27
31
  <tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
28
32
  <td v-for="(obj, ind) in header" :key="ind">
29
33
  <div
34
+ :style="obj.styleBody"
30
35
  :class="
31
36
  convertClass(row[obj.fieldComparison], obj.classCssBody)
32
37
  "
@@ -35,6 +40,7 @@
35
40
  {{ row[obj.field] }}
36
41
  </div>
37
42
  <div
43
+ :style="obj.styleBody"
38
44
  :class="
39
45
  convertClass(row[obj.fieldComparison], obj.classCssBody)
40
46
  "
@@ -43,6 +49,7 @@
43
49
  {{ row[obj.field] | moment("DD/MM/YYYY") }}
44
50
  </div>
45
51
  <div
52
+ :style="obj.styleBody"
46
53
  :class="
47
54
  convertClass(row[obj.fieldComparison], obj.classCssBody)
48
55
  "
@@ -51,6 +58,7 @@
51
58
  {{ row[obj.field] | moment("DD/MM/YYYY HH:mm") }}
52
59
  </div>
53
60
  <div
61
+ :style="obj.styleBody"
54
62
  :class="
55
63
  convertClass(row[obj.fieldComparison], obj.classCssBody)
56
64
  "
@@ -133,17 +141,18 @@ table tbody tr td {
133
141
  padding-right: 5px !important;
134
142
  border-bottom: 0px !important;
135
143
  border-top: 0px !important;
144
+ font-size: 13px !important;
136
145
  }
137
146
 
138
147
  .title-header {
139
- font-size: 13px;
148
+ font-size: 12px;
140
149
  color: #757d8c;
141
150
  font-weight: 400;
142
151
  text-transform: uppercase;
143
152
  }
144
153
 
145
154
  .table-number {
146
- font-size: 14px;
155
+ font-size: 12px;
147
156
  font-weight: bold;
148
157
  }
149
158
 
@@ -153,7 +162,7 @@ table tbody tr td {
153
162
  }
154
163
 
155
164
  .table-currency {
156
- font-size: 14px;
165
+ font-size: 12px;
157
166
  min-width: 100px;
158
167
  }
159
168
 
@@ -212,7 +221,4 @@ table tbody tr td {
212
221
  color: #f0134d;
213
222
  }
214
223
 
215
- .receipt {
216
- color: darkblue;
217
- }
218
224
  </style>
@@ -105,7 +105,7 @@ export default {
105
105
  let isGrouped = th.innerText.includes("t.produtoAgrupado");
106
106
  let isMoviment = th.innerText.includes("t.produtoMovimentacao");
107
107
  let isCustumerAddress = th.innerText.includes("t.enderecoCliente");
108
- let isAddressRent = th.innerText.includes("t.enderecoLocacao");
108
+ let isAddressRent = th.innerText.includes("t.saidaRetornoLocacao");
109
109
 
110
110
 
111
111
  if (isProduct) {
@@ -162,7 +162,7 @@ export default {
162
162
 
163
163
  var retParse = ret.replaceAll("\"", "'");
164
164
  retParse = eval(`retParse${replace}`);
165
-
165
+
166
166
  var classImportant = retParse
167
167
  .replaceAll("t.pagamentoLocacao", "")
168
168
  .replaceAll("t.periodoLocacao", "")
@@ -170,7 +170,7 @@ export default {
170
170
  .replaceAll("t.produtoAgrupado", "")
171
171
  .replaceAll("t.produtoMovimentacao", "")
172
172
  .replaceAll("t.enderecoCliente", "")
173
- .replaceAll("t.enderecoLocacao", "")
173
+ .replaceAll("t.saidaRetornoLocacao", "")
174
174
  .replaceAll("<p>&nbsp!important;</p>", "<p>&nbsp</p>");
175
175
  }
176
176
 
@@ -186,6 +186,13 @@ export default {
186
186
  });
187
187
  return result;
188
188
  },
189
+ listIdToString: () => (listId) => {
190
+ var ids = "";
191
+ listId.forEach(function (id) {
192
+ ids += `${id},`;
193
+ });
194
+ return ids;
195
+ },
189
196
  },
190
197
  mutations: {
191
198
  openModal: (state, name) => {
@@ -540,7 +547,6 @@ export default {
540
547
  })
541
548
  },
542
549
  getDocumentApi: async function (context, params) {
543
- console.log(params.obj);
544
550
  context.commit('cleanMethodExecutedApi');
545
551
  return axios.get(params.url, {
546
552
  params: params.obj,
@@ -551,10 +557,8 @@ export default {
551
557
  })
552
558
  .then((response) => {
553
559
  if (response.data.success) {
554
-
555
560
  return response.data;
556
561
  } else {
557
-
558
562
  return response.data;
559
563
  }
560
564
  }, (err) => {
@@ -562,5 +566,19 @@ export default {
562
566
  return false;
563
567
  })
564
568
  },
569
+ getPdfApi: async function (context, params) {
570
+ context.commit('cleanMethodExecutedApi');
571
+ return axios.get(params.url, {
572
+ params: params.obj,
573
+ responseType: "arraybuffer",
574
+ })
575
+ .then((response) => {
576
+ let blob = new Blob([response.data], { type: "application/pdf" }),
577
+ url = window.URL.createObjectURL(blob);
578
+ window.open(url);
579
+ }, (err) => {
580
+ return false;
581
+ })
582
+ },
565
583
  }
566
584
  }