@nixweb/nixloc-ui 0.0.147 → 0.0.148

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.147",
3
+ "version": "0.0.148",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -59,7 +59,7 @@ export default {
59
59
  <style scoped>
60
60
  .photo-container {
61
61
  margin-top: -37px;
62
- padding-right: 10px;
62
+ padding-right: 30px;
63
63
  cursor: pointer;
64
64
  position: fixed;
65
65
  float: right;
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div>
3
+ <div class="top-margin"></div>
3
4
  <div class="top" :style="'background-color:' + backgroundColor">
4
- <div class="side-by-side">
5
+ <div class="side-by-side top-space">
5
6
  <slot></slot>
6
7
  </div>
7
8
  </div>
@@ -25,14 +26,32 @@ export default {
25
26
 
26
27
  <style scoped>
27
28
  .top {
28
- border-radius: 0px 0px 0px 23px;
29
+ border-radius: 12px 12px 12px 12px;
30
+ margin-top: 7px;
31
+ left: 120px;
32
+ right: 1%;
29
33
  height: 50px;
30
- width: 100%;
31
- position: fixed;
32
34
  top: 0;
33
- left: 100px;
34
- z-index: 20;
35
+ z-index: 1000;
35
36
  box-shadow: 0px 10px 30px -6px rgb(0 0 0 / 10%);
36
37
  border-bottom: 0px solid #eff0f1;
38
+ position: fixed;
39
+ }
40
+
41
+ .top-space {
42
+ margin-right: 10px;
43
+ width: 100%;
44
+ }
45
+
46
+ .top-margin {
47
+ width: 100%;
48
+ widows: 100%;
49
+ height: 10px;
50
+ margin-right: 80px;
51
+ top: 0;
52
+ margin-left: 120px;
53
+ z-index: 1000;
54
+ background-color: #fdfdfd;
55
+ position: fixed;
37
56
  }
38
57
  </style>
@@ -7,7 +7,15 @@
7
7
  v-b-tooltip.hover
8
8
  :title="icon.tooltip"
9
9
  >
10
- <div class="icon-molded"><i :class="icon.icon"></i></div>
10
+ <div
11
+ class="icon-molded"
12
+ :class="{
13
+ 'icon-active-top': menuActive == icon.module,
14
+ 'icon-normal-top': menuActive != icon.module,
15
+ }"
16
+ >
17
+ <i :class="icon.icon"></i>
18
+ </div>
11
19
  </div>
12
20
  </div>
13
21
  </template>
@@ -20,6 +28,9 @@ export default {
20
28
  props: {
21
29
  icons: Array,
22
30
  },
31
+ data() {
32
+ return { menuActive: "" };
33
+ },
23
34
  methods: {
24
35
  ...mapMutations("generic", ["addEvent"]),
25
36
  executeEvent(eventName) {
@@ -28,6 +39,14 @@ export default {
28
39
  });
29
40
  },
30
41
  },
42
+ watch: {
43
+ $route: {
44
+ handler: function (router) {
45
+ this.menuActive = router.matched[0].props.default.module;
46
+ },
47
+ deep: true,
48
+ },
49
+ },
31
50
  };
32
51
  </script>
33
52
 
@@ -6,8 +6,12 @@
6
6
  <img :src="urlImage" />
7
7
  </div>
8
8
  </li>
9
- <li v-for="(item, index) in menuFilter(true)" :key="index">
10
- <div class="box-main">
9
+ <li class="molded">
10
+ <div
11
+ class="box-main"
12
+ v-for="(item, index) in menuFilter(true)"
13
+ :key="index"
14
+ >
11
15
  <a
12
16
  href="#"
13
17
  @click.prevent="openSubMenu(item.module)"
@@ -172,13 +176,15 @@ export default {
172
176
  z-index: 1000;
173
177
  }
174
178
  .div-logo {
175
- padding-top: 4px;
179
+ padding-top: 12px;
180
+ padding-left: 10px;
176
181
  padding-bottom: 15px;
177
182
  }
178
183
 
179
184
  .icon-close {
180
- margin-right: 15px;
181
- font-size: 18px;
185
+ margin-right: 10px;
186
+ margin-top: -5px;
187
+ font-size: 22px;
182
188
  }
183
189
 
184
190
  .icon {
@@ -222,4 +228,14 @@ img {
222
228
  .menu-icon {
223
229
  font-size: 15px;
224
230
  }
231
+
232
+ .molded {
233
+ margin-top: 5px;
234
+ margin-left: 10px;
235
+ padding: 5px;
236
+ padding-bottom: 1px !important;
237
+ background-color: white !important;
238
+ border: 1px solid #e8eaed;
239
+ border-radius: 12px !important;
240
+ }
225
241
  </style>
@@ -135,6 +135,8 @@ export default {
135
135
  }
136
136
 
137
137
  .panel {
138
- padding: 25px;
138
+ margin-top: 50px;
139
+ padding-left: 30px;
140
+ padding-right: 30px;
139
141
  }
140
142
  </style>
@@ -0,0 +1,70 @@
1
+ <template>
2
+ <div>
3
+ <ScrollBar :minHeight="400" :maxHeight="400">
4
+ <div>
5
+ <br />
6
+ <table class="table table-responsive-xs">
7
+ <thead>
8
+ <tr>
9
+ <th class="title-header">Mensagem</th>
10
+ </tr>
11
+ </thead>
12
+ <tbody v-for="error in listError">
13
+ <tr>
14
+ <td>
15
+ <span class="message"> {{ error }}</span>
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ </div>
21
+ </ScrollBar>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import ScrollBar from "@nixweb/nixloc-ui/src/component/layout/ScrollBar.vue";
27
+
28
+ export default {
29
+ name: "ListErrorImport",
30
+ props: {
31
+ listError: Array,
32
+ },
33
+ components: {
34
+ ScrollBar,
35
+ },
36
+ };
37
+ </script><style scoped>
38
+ .table th,
39
+ .table td {
40
+ height: 10px !important;
41
+ padding-left: 5px !important;
42
+ padding-top: 7px !important;
43
+ padding-bottom: 5px !important;
44
+ padding-right: 5px !important;
45
+ padding-left: 10px !important;
46
+ border-bottom: 0px !important;
47
+ }
48
+
49
+ .title-header {
50
+ font-size: 14px;
51
+ color: #757d8c;
52
+ font-weight: 400;
53
+ }
54
+
55
+ .tabela-principal {
56
+ font-size: 14px;
57
+ max-width: 200px;
58
+ }
59
+
60
+ .tabela-descricao {
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ max-width: 200px;
65
+ }
66
+
67
+ .message {
68
+ color: red;
69
+ }
70
+ </style>
@@ -78,12 +78,12 @@
78
78
  />
79
79
  <Button
80
80
  v-if="listError.length > 0"
81
- _key="btnValidate"
81
+ _key="btnListError"
82
82
  type="danger"
83
83
  title="Erro(s)"
84
84
  classIcon="fa-sharp fa-solid fa-triangle-exclamation"
85
85
  size="small"
86
- :clicked="validate"
86
+ :clicked="openListError"
87
87
  />
88
88
  </div>
89
89
  <br />
@@ -110,6 +110,14 @@
110
110
  </Molded>
111
111
  </div>
112
112
  </Panel>
113
+ <Modal
114
+ title="Erro(s)"
115
+ :width="900"
116
+ :height="750"
117
+ v-show="showModal('listError')"
118
+ >
119
+ <ListErrorImport :listError="listError" />
120
+ </Modal>
113
121
  </div>
114
122
  </template>
115
123
 
@@ -120,10 +128,12 @@ import Molded from "@nixweb/nixloc-ui/src/component/layout/Molded";
120
128
  import FileUpload from "@nixweb/nixloc-ui/src/component/forms/FileUpload";
121
129
  import Loading from "@nixweb/nixloc-ui/src/component/shared/Loading.vue";
122
130
  import Alert from "@nixweb/nixloc-ui/src/component/layout/Alert";
131
+ import Modal from "@nixweb/nixloc-ui/src/component/forms/Modal";
123
132
 
124
133
  import TableImport from "@nixweb/nixloc-ui/src/component/shared/TableImport.vue";
134
+ import ListErrorImport from "@nixweb/nixloc-ui/src/component/shared/ListErrorImport.vue";
125
135
 
126
- import { mapState, mapActions, mapMutations } from "vuex";
136
+ import { mapState, mapActions, mapMutations, mapGetters } from "vuex";
127
137
 
128
138
  export default {
129
139
  name: "ViewTemplateImportFileView",
@@ -133,8 +143,10 @@ export default {
133
143
  Molded,
134
144
  FileUpload,
135
145
  Loading,
146
+ ListErrorImport,
136
147
  TableImport,
137
148
  Alert,
149
+ Modal,
138
150
  },
139
151
  props: {
140
152
  panel: Object,
@@ -155,9 +167,12 @@ export default {
155
167
  isValid: false,
156
168
  };
157
169
  },
170
+ computed: {
171
+ ...mapGetters("generic", ["showModal"]),
172
+ },
158
173
  methods: {
159
174
  ...mapActions("generic", ["postApi"]),
160
- ...mapMutations("generic", ["removeLoading"]),
175
+ ...mapMutations("generic", ["openModal", "removeLoading"]),
161
176
  successUploadFile() {
162
177
  this.loading = true;
163
178
  let self = this;
@@ -203,8 +218,13 @@ export default {
203
218
  this.removeLoading(["btnValidate"]);
204
219
  });
205
220
  },
221
+ openListError() {
222
+ this.openModal("listError");
223
+ this.removeLoading(["btnListError"]);
224
+ },
206
225
  back() {
207
226
  this.fileName = "";
227
+ this.listError = [];
208
228
  this.removeLoading(["btnBack"]);
209
229
  },
210
230
  },