@nixweb/nixloc-ui 0.0.81 → 0.0.84
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 +1 -1
- package/src/component/forms/CheckboxMultiplo.vue +9 -1
- package/src/component/forms/Decimal.vue +6 -2
- package/src/component/forms/Escolher.vue +9 -6
- package/src/component/forms/TextoArea.vue +6 -1
- package/src/component/layout/BarraFixa.vue +1 -1
- package/src/component/layout/Menu.vue +13 -15
- package/src/component/layout/Moldura.vue +1 -1
- package/src/component/layout/Painel.vue +1 -1
- package/src/component/layout/Topo.vue +1 -1
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
import { mapState, mapMutations } from "vuex";
|
|
16
|
+
|
|
15
17
|
export default {
|
|
16
18
|
name: "CheckboxMultiplo",
|
|
17
19
|
props: {
|
|
@@ -26,6 +28,10 @@ export default {
|
|
|
26
28
|
type: Boolean,
|
|
27
29
|
default: false,
|
|
28
30
|
},
|
|
31
|
+
marcarFormSujo: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true,
|
|
34
|
+
},
|
|
29
35
|
},
|
|
30
36
|
data() {
|
|
31
37
|
return {
|
|
@@ -36,11 +42,13 @@ export default {
|
|
|
36
42
|
this.selecionado = this.valorInicial;
|
|
37
43
|
},
|
|
38
44
|
methods: {
|
|
45
|
+
...mapMutations("validation", ["insereFormSujo"]),
|
|
39
46
|
executar(event) {
|
|
47
|
+
if (this.marcarFormSujo) this.insereFormSujo(true);
|
|
40
48
|
this.$emit("input", this.selecionado);
|
|
41
49
|
let self = this;
|
|
42
50
|
setTimeout(function () {
|
|
43
|
-
// adicionado o pointerId para
|
|
51
|
+
// adicionado o pointerId para prevenir que não seja executado em duplicidade
|
|
44
52
|
if (self.clicou && event.pointerId === 1) self.clicou(self.params);
|
|
45
53
|
}, 100);
|
|
46
54
|
},
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
v-if="notificacoes.length > 0 && formSujo"
|
|
11
11
|
class="requerido glyphicon fas fa-exclamation-triangle"
|
|
12
12
|
></i>
|
|
13
|
-
|
|
14
13
|
<vue-numeric
|
|
15
14
|
class="form-control"
|
|
16
15
|
v-on:keyup.enter.native="apertouEnter"
|
|
@@ -67,7 +66,11 @@ export default {
|
|
|
67
66
|
this.valor = this.value;
|
|
68
67
|
},
|
|
69
68
|
methods: {
|
|
70
|
-
...mapMutations("validation", [
|
|
69
|
+
...mapMutations("validation", [
|
|
70
|
+
"insereValidacao",
|
|
71
|
+
"removeValidacao",
|
|
72
|
+
"insereFormSujo",
|
|
73
|
+
]),
|
|
71
74
|
valida() {
|
|
72
75
|
this.notificacoes = [];
|
|
73
76
|
if (this.value == 0) return;
|
|
@@ -90,6 +93,7 @@ export default {
|
|
|
90
93
|
valor() {
|
|
91
94
|
this.valida();
|
|
92
95
|
this.formSujo = true;
|
|
96
|
+
this.insereFormSujo(true);
|
|
93
97
|
this.$emit("input", this.valor);
|
|
94
98
|
},
|
|
95
99
|
notificacoes() {
|
|
@@ -118,6 +118,10 @@ export default {
|
|
|
118
118
|
cadastrarNovoTitulo: String,
|
|
119
119
|
cadastrarNovoLargura: Number,
|
|
120
120
|
cadastrarNovoAltura: Number,
|
|
121
|
+
marcarFormSujo: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: true,
|
|
124
|
+
},
|
|
121
125
|
},
|
|
122
126
|
components: {
|
|
123
127
|
Multiselect,
|
|
@@ -169,11 +173,13 @@ export default {
|
|
|
169
173
|
"insereValidacao",
|
|
170
174
|
"removeValidacao",
|
|
171
175
|
"reiniciaValidacao",
|
|
176
|
+
"insereFormSujo",
|
|
172
177
|
]),
|
|
173
178
|
aoAbrir() {
|
|
174
179
|
this.obterTodos();
|
|
175
180
|
},
|
|
176
181
|
aoSelecionar(value) {
|
|
182
|
+
if (this.marcarFormSujo) this.insereFormSujo(true);
|
|
177
183
|
this.$emit("input", value);
|
|
178
184
|
if (this.alterou) this.alterou();
|
|
179
185
|
if (this.campoAlvo) {
|
|
@@ -283,9 +289,6 @@ export default {
|
|
|
283
289
|
</script>
|
|
284
290
|
|
|
285
291
|
<style scoped>
|
|
286
|
-
.titulo {
|
|
287
|
-
color: #5f7587;
|
|
288
|
-
}
|
|
289
292
|
div.antes-lista {
|
|
290
293
|
padding: 8px;
|
|
291
294
|
}
|
|
@@ -300,9 +303,9 @@ div.depois-lista {
|
|
|
300
303
|
}
|
|
301
304
|
|
|
302
305
|
.selecione {
|
|
303
|
-
height:
|
|
304
|
-
border-bottom: 1px solid #
|
|
305
|
-
border-radius:
|
|
306
|
+
height: 36px;
|
|
307
|
+
border-bottom: 1px solid #d6dadf;
|
|
308
|
+
border-radius: 0px !important;
|
|
306
309
|
margin-bottom: 20px;
|
|
307
310
|
}
|
|
308
311
|
|
|
@@ -56,7 +56,11 @@ export default {
|
|
|
56
56
|
this.valida();
|
|
57
57
|
},
|
|
58
58
|
methods: {
|
|
59
|
-
...mapMutations("validation", [
|
|
59
|
+
...mapMutations("validation", [
|
|
60
|
+
"insereValidacao",
|
|
61
|
+
"removeValidacao",
|
|
62
|
+
"insereFormSujo",
|
|
63
|
+
]),
|
|
60
64
|
valida() {
|
|
61
65
|
this.notificacoes = [];
|
|
62
66
|
|
|
@@ -80,6 +84,7 @@ export default {
|
|
|
80
84
|
value() {
|
|
81
85
|
this.valida();
|
|
82
86
|
this.formSujo = true;
|
|
87
|
+
this.insereFormSujo(true);
|
|
83
88
|
},
|
|
84
89
|
notificacoes() {
|
|
85
90
|
let self = this;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
<div class="div-logo text-center">
|
|
6
6
|
<img :src="urlImagem" />
|
|
7
7
|
</div>
|
|
8
|
-
<div class="div-hr"><hr /></div>
|
|
9
8
|
</li>
|
|
10
9
|
<li>
|
|
11
10
|
<a
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
<div class="div-icone lado-a-lado">
|
|
17
16
|
<i class="fas fa-chart-area icone-dash" :style="'color:' + corBase"></i>
|
|
18
17
|
</div>
|
|
19
|
-
<div class="
|
|
18
|
+
<div class="titulo">Dashboard</div>
|
|
20
19
|
</a>
|
|
21
20
|
</li>
|
|
22
21
|
|
|
@@ -29,10 +28,10 @@
|
|
|
29
28
|
<div class="div-icone lado-a-lado">
|
|
30
29
|
<i :class="item.icone" class="icone" :style="'color:' + corBase"></i>
|
|
31
30
|
</div>
|
|
32
|
-
<div class="
|
|
33
|
-
<div class="lado-a-lado seta menu__arrow-icon">
|
|
31
|
+
<div class="titulo">{{ item.titulo }}</div>
|
|
32
|
+
<!-- <div class="lado-a-lado seta menu__arrow-icon">
|
|
34
33
|
<i class="fas fa-angle-right"></i>
|
|
35
|
-
</div>
|
|
34
|
+
</div> -->
|
|
36
35
|
</a>
|
|
37
36
|
</li>
|
|
38
37
|
</ul>
|
|
@@ -146,32 +145,31 @@ export default {
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
.div-logo {
|
|
149
|
-
|
|
148
|
+
padding-top: 5px;
|
|
149
|
+
padding-bottom: 15px;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.div-icone {
|
|
153
153
|
width: 35px;
|
|
154
154
|
height: 35px;
|
|
155
155
|
padding-top: 5px;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
.div-hr {
|
|
159
|
-
padding-left: 30px;
|
|
160
|
-
padding-right: 30px;
|
|
156
|
+
margin-left: 25px;
|
|
161
157
|
}
|
|
162
158
|
|
|
163
159
|
.icone-fechar {
|
|
164
160
|
margin-right: 20px;
|
|
165
161
|
}
|
|
166
162
|
.icone {
|
|
167
|
-
font-size:
|
|
163
|
+
font-size: 20px;
|
|
168
164
|
}
|
|
169
165
|
.icone-dash {
|
|
170
|
-
font-size:
|
|
166
|
+
font-size: 22px;
|
|
171
167
|
}
|
|
172
168
|
.titulo {
|
|
173
|
-
font-size:
|
|
169
|
+
font-size: 13px;
|
|
174
170
|
font-weight: 400;
|
|
171
|
+
margin-top: -6px;
|
|
172
|
+
text-align: center;
|
|
175
173
|
}
|
|
176
174
|
.titulo-sub {
|
|
177
175
|
margin-left: 5px;
|
|
@@ -183,7 +181,7 @@ export default {
|
|
|
183
181
|
}
|
|
184
182
|
|
|
185
183
|
img {
|
|
186
|
-
height:
|
|
184
|
+
height: 27px;
|
|
187
185
|
margin-top: 10px;
|
|
188
186
|
}
|
|
189
187
|
</style>
|