@nixweb/nixloc-ui 0.0.305 → 0.0.306

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.305",
3
+ "version": "0.0.306",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -64,7 +64,7 @@ export default {
64
64
  </script>
65
65
  <style scoped>
66
66
  table tbody tr td {
67
- max-width: 350px;
67
+ width: 1100px;
68
68
  }
69
69
 
70
70
  .table thead tr {
@@ -1,16 +1,16 @@
1
1
  <template>
2
2
  <div class="preview">
3
3
  <div class="toolbar">
4
- <div class="icon-toolbar" v-print="'#printMe'">
4
+ <div class="icon-toolbar" v-print="'#printMeSub'">
5
5
  <i class="fas fa-print"></i>
6
6
  </div>
7
7
  <div class="icon-toolbar icon-excel">
8
- <ExportExcel :header="header" :data="data" />
8
+ <ExportExcel :nameFile="name" :header="header" :data="data" />
9
9
  </div>
10
10
  </div>
11
11
  <ScrollBar :minHeight="400" :maxHeight="820">
12
12
  <br />
13
- <div id="printMe" :style="'min-height:' + minHeight + 'px'" class="a4 footer">
13
+ <div id="printMeSub" :style="'min-height:' + minHeight + 'px'" class="a4 footer">
14
14
  <HeaderReport :title="titleHeader" />
15
15
  <table class="table table-responsive-md">
16
16
  <thead>
@@ -27,19 +27,19 @@
27
27
  <tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
28
28
  <td v-for="(obj, ind) in header" :key="ind">
29
29
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
30
- " v-if="obj.type === 'text'">
30
+ " v-if="obj.type === 'text'">
31
31
  {{ row[obj.field] }}
32
32
  </div>
33
33
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
34
- " v-if="obj.type === 'date'">
34
+ " v-if="obj.type === 'date'">
35
35
  {{ row[obj.field] | moment("DD/MM/YYYY") }}
36
36
  </div>
37
37
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
38
- " v-if="obj.type === 'dateTime'">
38
+ " v-if="obj.type === 'dateTime'">
39
39
  {{ row[obj.field] | moment("DD/MM/YYYY HH:mm") }}
40
40
  </div>
41
41
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
42
- " v-if="obj.type === 'currency'">
42
+ " v-if="obj.type === 'currency'">
43
43
  {{ row[obj.field] | currency }}
44
44
  </div>
45
45
  </td>
@@ -75,7 +75,7 @@ export default {
75
75
  directives: {
76
76
  print,
77
77
  },
78
- props: ["titleHeader", "header", "data", "totalization", "totalizationCustom", "minHeight"],
78
+ props: ["name", "titleHeader", "header", "data", "totalization", "totalizationCustom", "minHeight"],
79
79
  components: { ScrollBar, HeaderReport, TotalizationReport, ExportExcel },
80
80
  methods: {
81
81
  ...mapMutations("generic", ["addEvent"]),
@@ -95,14 +95,14 @@ export default {
95
95
  },
96
96
  sendEvent(eventName, data) {
97
97
  if (eventName) this.addEvent({ name: eventName, data: data });
98
- }
98
+ },
99
99
  },
100
100
  };
101
101
  </script>
102
102
 
103
103
  <style scoped>
104
104
  table tbody tr td {
105
- max-width: 350px;
105
+ width: 1100px;
106
106
  }
107
107
 
108
108
  .table thead tr {
@@ -14,6 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <Modal title="Filtros" :width="700" :height="750" v-show="showModal('filter')">
17
+ <slot></slot>
17
18
  <FilterBuilder :filters="filters" v-model="filterFinal" />
18
19
  </Modal>
19
20
  </div>