@nixweb/nixloc-ui 0.0.238 → 0.0.240
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
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
<div v-if="multiSelected">
|
|
4
4
|
<div class="side-by-side icon-filter" @click="show = true">
|
|
5
5
|
<i class="fa-solid fa-circle-plus "></i>
|
|
6
|
-
<span v-if="currentValueFilter.length == 0"> Todos usuários</span>
|
|
6
|
+
<span class="title-users" v-if="currentValueFilter.length == 0"> Todos usuários</span>
|
|
7
7
|
</div>
|
|
8
|
+
|
|
8
9
|
<div class="side-by-side" v-for="user in currentValueFilter">
|
|
9
10
|
<img class="img-current" :src="baseUrl + user.photo" alt="">
|
|
10
11
|
<div class="side-by-side icon-close" @click="remove(user)">
|
|
@@ -37,21 +38,7 @@ import { mapActions } from "vuex";
|
|
|
37
38
|
|
|
38
39
|
export default {
|
|
39
40
|
name: "Select",
|
|
40
|
-
props:
|
|
41
|
-
genericId: String,
|
|
42
|
-
responsibleUser: Object,
|
|
43
|
-
multiSelected: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: false,
|
|
46
|
-
},
|
|
47
|
-
title: String,
|
|
48
|
-
urlGet: String,
|
|
49
|
-
urlUpdate: String,
|
|
50
|
-
value: Array
|
|
51
|
-
},
|
|
52
|
-
components: {
|
|
53
|
-
|
|
54
|
-
},
|
|
41
|
+
props: ["genericId", "responsibleUser", "multiSelected", "title", "urlGet", "urlUpdate", "value"],
|
|
55
42
|
data() {
|
|
56
43
|
return {
|
|
57
44
|
baseUrl: "https://espaco.blob.core.windows.net/nixloc-photo-user/",
|
|
@@ -97,13 +84,15 @@ export default {
|
|
|
97
84
|
this.$emit("input", this.currentValueFilter);
|
|
98
85
|
}
|
|
99
86
|
|
|
100
|
-
if (this.genericId)
|
|
87
|
+
if (this.genericId) {
|
|
101
88
|
this.updateResponsibleUser();
|
|
102
|
-
|
|
89
|
+
this.$emit("input", this.currentValue);
|
|
90
|
+
}
|
|
103
91
|
this.show = false;
|
|
104
92
|
},
|
|
105
93
|
remove(item) {
|
|
106
94
|
this.currentValueFilter = this.currentValueFilter.filter(x => x.id !== item.id);
|
|
95
|
+
this.$emit("input", this.currentValueFilter);
|
|
107
96
|
}
|
|
108
97
|
},
|
|
109
98
|
watch: {
|
|
@@ -144,6 +133,10 @@ export default {
|
|
|
144
133
|
font-size: 13px;
|
|
145
134
|
}
|
|
146
135
|
|
|
136
|
+
.title-users {
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
}
|
|
139
|
+
|
|
147
140
|
.img-card {
|
|
148
141
|
width: 35px;
|
|
149
142
|
height: 35px;
|