@nixweb/nixloc-ui 0.0.255 → 0.0.256

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.255",
3
+ "version": "0.0.256",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -6,7 +6,6 @@
6
6
  <div class="molded">
7
7
  <b-row>
8
8
  <b-col sm="9">
9
-
10
9
  <input class="input-search" type="text" name="search" placeholder="Pesquisar ..."
11
10
  @keyup="verifyCleanSearch()" @keyup.enter.prevent="executeSearch()" v-model="search.content" />
12
11
  </b-col>
@@ -28,8 +27,10 @@
28
27
  || getFilterStorage($route.name).baseParams.search !== ''
29
28
  || getFilterStorage($route.name).baseParams.currentPage !== 1">
30
29
  <div class="div-filter">
31
- <i class="fa-solid fa-filter"></i>
32
30
  Filtro Ativo
31
+ <span class="icon-close" @click="removeFilter()">
32
+ <i class="icon-tag fas fa-times-circle"></i>
33
+ </span>
33
34
  </div>
34
35
  </div>
35
36
  </div>
@@ -77,6 +78,7 @@ export default {
77
78
  "updateSearch",
78
79
  "executedSearch",
79
80
  "clearedSearch",
81
+ "addEvent"
80
82
  ]),
81
83
  executeSearch() {
82
84
  this.executedSearch();
@@ -89,6 +91,9 @@ export default {
89
91
  verifyCleanSearch() {
90
92
  if (this.search.content.length == 0) this.clearedSearch();
91
93
  },
94
+ removeFilter() {
95
+ this.addEvent({ name: "filterStorageRemoved" });
96
+ }
92
97
  },
93
98
  };
94
99
  </script>
@@ -107,7 +112,7 @@ export default {
107
112
  }
108
113
 
109
114
  .molded {
110
- width: 100%;
115
+
111
116
  height: 45px;
112
117
  font-size: 14px;
113
118
  padding: 5px 8px 6px 15px;
@@ -117,8 +122,6 @@ export default {
117
122
  box-sizing: border-box;
118
123
  box-shadow: none;
119
124
  color: rgb(38, 41, 44);
120
- opacity: 1;
121
- transition: background-color 0.1s ease-in 0s, border 0.1s ease-in 0s;
122
125
  }
123
126
 
124
127
  input[type="text"] {
@@ -127,7 +130,6 @@ input[type="text"] {
127
130
  font-size: 14px;
128
131
  border: 0px solid white;
129
132
  background-color: rgb(255, 255, 255);
130
- margin-bottom: 50px;
131
133
  }
132
134
 
133
135
  input[type="text"]:focus {
@@ -147,13 +149,19 @@ input[type="text"]:focus {
147
149
 
148
150
  .div-filter {
149
151
  margin-left: 13px;
150
- font-size: 11px;
152
+ font-size: 12px;
151
153
  background-color: #F1BC31;
152
154
  color: white;
153
155
  margin-top: 5px;
154
156
  padding-left: 7px;
155
157
  padding-right: 5px;
156
- border-radius: 10px;
157
- width: 100px;
158
+ border-radius: 15px;
159
+ width: 110px;
160
+ cursor: pointer !important;
161
+ }
162
+
163
+ .icon-close {
164
+ font-size: 15px;
165
+ cursor: pointer !important;
158
166
  }
159
167
  </style>
@@ -21,8 +21,8 @@
21
21
  </div>
22
22
  </div>
23
23
  <div class="div-btn" v-if="showButtonNext">
24
- <Button _key="btnClickedNext" type="info" title="Avançar" :disabled="selected == null" :classIcon="buttonClassIcon"
25
- :size="buttonSize" :clicked="execute" />
24
+ <Button _key="btnClickedNext" type="info" title="Avançar" :disabled="selected == null"
25
+ :classIcon="buttonClassIcon" :size="buttonSize" :clicked="execute" />
26
26
  </div>
27
27
  </div>
28
28
  </template>
@@ -87,6 +87,14 @@ export default {
87
87
  computed: {
88
88
  ...mapGetters("generic", ["tip"]),
89
89
  },
90
+ watch: {
91
+ value: {
92
+ handler(value) {
93
+ this.selected = value;
94
+ },
95
+ deep: true,
96
+ },
97
+ }
90
98
  };
91
99
  </script>
92
100
  <style scoped>
@@ -196,7 +196,6 @@ export default {
196
196
  };
197
197
 
198
198
  let params = { url: self.templateList.urlGetApi, obj: obj };
199
- console.log(params);
200
199
  self.getApi(params).then((response) => {
201
200
  self.content = response.content;
202
201
  setTimeout(function () {
@@ -317,6 +316,31 @@ export default {
317
316
  this.addStorage();
318
317
  this.getAll();
319
318
  }
319
+
320
+ if (event.name == "filterStorageRemoved") {
321
+
322
+ let self = this;
323
+ this.tags.forEach(tag => {
324
+ self.removeTag(tag.key);
325
+ self.addEvent({ name: "tagRemoved", data: tag.key });
326
+ });
327
+
328
+ this.paramsFilter = [];
329
+
330
+ this.baseParams.search = "";
331
+ this.baseParams.filter = "contains";
332
+ this.baseParams.currentPage = 1;
333
+ this.baseParams.totalPerPage = 10;
334
+ this.propsParam = {};
335
+
336
+
337
+
338
+ this.addStorage();
339
+ this.getAll();
340
+ }
341
+
342
+
343
+
320
344
  if (event.name == "getAllListViewWithDataHandler") {
321
345
  this.addSelected([]);
322
346
  this.getAll();