@nixweb/nixloc-ui 0.0.255 → 0.0.257
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
|
@@ -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
|
-
|
|
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:
|
|
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:
|
|
157
|
-
width:
|
|
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"
|
|
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>
|
|
@@ -92,6 +92,10 @@ export default {
|
|
|
92
92
|
type: Boolean,
|
|
93
93
|
default: true,
|
|
94
94
|
},
|
|
95
|
+
isFilterStorage: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: false
|
|
98
|
+
}
|
|
95
99
|
},
|
|
96
100
|
components: {
|
|
97
101
|
HorizontalFilter,
|
|
@@ -196,7 +200,6 @@ export default {
|
|
|
196
200
|
};
|
|
197
201
|
|
|
198
202
|
let params = { url: self.templateList.urlGetApi, obj: obj };
|
|
199
|
-
console.log(params);
|
|
200
203
|
self.getApi(params).then((response) => {
|
|
201
204
|
self.content = response.content;
|
|
202
205
|
setTimeout(function () {
|
|
@@ -299,7 +302,9 @@ export default {
|
|
|
299
302
|
propsParam: this.propsParam,
|
|
300
303
|
paramsFilter: this.paramsFilter
|
|
301
304
|
};
|
|
302
|
-
|
|
305
|
+
|
|
306
|
+
if (this.isFilterStorage)
|
|
307
|
+
this.addFilterStorage(obj);
|
|
303
308
|
}
|
|
304
309
|
},
|
|
305
310
|
watch: {
|
|
@@ -317,6 +322,31 @@ export default {
|
|
|
317
322
|
this.addStorage();
|
|
318
323
|
this.getAll();
|
|
319
324
|
}
|
|
325
|
+
|
|
326
|
+
if (event.name == "filterStorageRemoved") {
|
|
327
|
+
|
|
328
|
+
let self = this;
|
|
329
|
+
this.tags.forEach(tag => {
|
|
330
|
+
self.removeTag(tag.key);
|
|
331
|
+
self.addEvent({ name: "tagRemoved", data: tag.key });
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
this.paramsFilter = [];
|
|
335
|
+
|
|
336
|
+
this.baseParams.search = "";
|
|
337
|
+
this.baseParams.filter = "contains";
|
|
338
|
+
this.baseParams.currentPage = 1;
|
|
339
|
+
this.baseParams.totalPerPage = 10;
|
|
340
|
+
this.propsParam = {};
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
this.addStorage();
|
|
345
|
+
this.getAll();
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
320
350
|
if (event.name == "getAllListViewWithDataHandler") {
|
|
321
351
|
this.addSelected([]);
|
|
322
352
|
this.getAll();
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<Molded>
|
|
19
|
-
<ListViewWithDataHandler :templateList="templateList" :propsParam="propsParam" :
|
|
19
|
+
<ListViewWithDataHandler :templateList="templateList" :propsParam="propsParam" :isFilterStorage="true"
|
|
20
|
+
:buttonRemove="buttonRemove">
|
|
20
21
|
<div slot="content-buttons-table-header">
|
|
21
22
|
<slot name="content-buttons-table-header"></slot>
|
|
22
23
|
</div>
|