@nixweb/nixloc-ui 0.0.141 → 0.0.142
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
|
@@ -110,6 +110,7 @@ export default {
|
|
|
110
110
|
font-size: 14px;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
|
|
113
114
|
.disabled {
|
|
114
115
|
background: #bbbbbb !important;
|
|
115
116
|
border-color: #bbbbbb !important;
|
|
@@ -148,12 +149,12 @@ export default {
|
|
|
148
149
|
|
|
149
150
|
.edit {
|
|
150
151
|
color: #fff;
|
|
151
|
-
border-color: #
|
|
152
|
-
background: #
|
|
152
|
+
border-color: #969799;
|
|
153
|
+
background: #969799;
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
.edit:hover {
|
|
156
|
-
background: #
|
|
157
|
+
background: #939394;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
.warning {
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
|
+
import { mapMutations } from "vuex";
|
|
25
|
+
|
|
24
26
|
export default {
|
|
25
27
|
name: "IncrementDecrement",
|
|
26
|
-
props: ["value", "min", "max"],
|
|
28
|
+
props: ["value", "triggerEvent", "min", "max"],
|
|
27
29
|
data() {
|
|
28
30
|
return {
|
|
29
31
|
number: 1,
|
|
@@ -34,6 +36,7 @@ export default {
|
|
|
34
36
|
this.number = this.value;
|
|
35
37
|
},
|
|
36
38
|
methods: {
|
|
39
|
+
...mapMutations("generic", ["addEvent"]),
|
|
37
40
|
increment() {
|
|
38
41
|
this.number++;
|
|
39
42
|
},
|
|
@@ -55,6 +58,12 @@ export default {
|
|
|
55
58
|
return;
|
|
56
59
|
}
|
|
57
60
|
this.$emit("input", this.number);
|
|
61
|
+
|
|
62
|
+
if (this.triggerEvent)
|
|
63
|
+
this.addEvent({
|
|
64
|
+
name: "updateIncrementDecrement",
|
|
65
|
+
data: this.number,
|
|
66
|
+
});
|
|
58
67
|
},
|
|
59
68
|
deep: true,
|
|
60
69
|
},
|
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
<div
|
|
4
4
|
v-show="!isLoading('panel')"
|
|
5
5
|
class="bar side-by-side"
|
|
6
|
-
:style="'min-height:' + height + 'px;'"
|
|
6
|
+
:style="'min-height:' + height + 'px; background-color:' + backgroundColor"
|
|
7
7
|
:class="{
|
|
8
8
|
top: position == 'top',
|
|
9
9
|
footer: position == 'footer',
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
12
|
<div class="size">
|
|
13
|
-
<div class="side-by-side"
|
|
13
|
+
<div :class="{ 'side-by-side': showButtonClose }">
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</div>
|
|
14
16
|
<div
|
|
15
|
-
class="
|
|
17
|
+
:class="{ 'side-by-side': showButtonClose }"
|
|
18
|
+
class="close-icon"
|
|
16
19
|
v-if="position == 'top' && showButtonClose"
|
|
17
20
|
@click="close"
|
|
18
21
|
>
|
|
@@ -41,6 +44,10 @@ export default {
|
|
|
41
44
|
type: Number,
|
|
42
45
|
default: 70,
|
|
43
46
|
},
|
|
47
|
+
backgroundColor: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "white",
|
|
50
|
+
},
|
|
44
51
|
},
|
|
45
52
|
computed: {
|
|
46
53
|
...mapGetters("generic", ["isLoading"]),
|
|
@@ -56,7 +63,6 @@ export default {
|
|
|
56
63
|
|
|
57
64
|
<style scoped>
|
|
58
65
|
.bar {
|
|
59
|
-
background-color: white;
|
|
60
66
|
position: fixed;
|
|
61
67
|
width: 100%;
|
|
62
68
|
z-index: 20;
|
|
@@ -95,6 +101,5 @@ export default {
|
|
|
95
101
|
text-shadow: 0 1px 0 #fff;
|
|
96
102
|
padding-right: 80px;
|
|
97
103
|
cursor: pointer;
|
|
98
|
-
|
|
99
104
|
}
|
|
100
105
|
</style>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
>
|
|
8
8
|
<div class="text-center" @click="show = true">
|
|
9
9
|
<i class="fa-solid fa-eye-slash"></i>
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div v-if="show">
|
|
@@ -25,6 +25,10 @@ export default {
|
|
|
25
25
|
type: Number,
|
|
26
26
|
default: 50,
|
|
27
27
|
},
|
|
28
|
+
titleSize: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 14,
|
|
31
|
+
},
|
|
28
32
|
title: {
|
|
29
33
|
type: String,
|
|
30
34
|
default: "",
|
|
@@ -66,7 +70,6 @@ export default {
|
|
|
66
70
|
|
|
67
71
|
.text-description {
|
|
68
72
|
margin-left: 30px;
|
|
69
|
-
font-size: 14px;
|
|
70
73
|
color: #7c7f83;
|
|
71
74
|
}
|
|
72
75
|
</style>
|
|
@@ -15,13 +15,21 @@ export default {
|
|
|
15
15
|
if (hasRule == undefined) return false;
|
|
16
16
|
return true;
|
|
17
17
|
},
|
|
18
|
+
hasPermission: (state) => (name) => {
|
|
19
|
+
var hasRule = state.userLogged.user.rules.find(obj => {
|
|
20
|
+
return obj.name === name
|
|
21
|
+
})
|
|
22
|
+
if (hasRule == undefined) return undefined;
|
|
23
|
+
return hasRule.permission;
|
|
24
|
+
},
|
|
18
25
|
hasModule: (state) => (name) => {
|
|
19
26
|
var hasRule = state.userLogged.user.modules.find(obj => {
|
|
20
27
|
return obj.name === name
|
|
21
28
|
})
|
|
22
29
|
if (hasRule == undefined) return false;
|
|
23
30
|
return true;
|
|
24
|
-
}
|
|
31
|
+
},
|
|
32
|
+
|
|
25
33
|
},
|
|
26
34
|
mutations: {
|
|
27
35
|
addUserLogged: (state, obj) => {
|