@nixweb/nixloc-ui 0.0.119 → 0.0.122
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/docs/src/component/template/ModeloRelatorioView.drawio +160 -0
- package/docs/src/store/modulos/relatorio.drawio +37 -0
- package/package.json +77 -75
- package/public/index.html +2 -4
- package/public/styles/app.css +1 -2
- package/src/component/forms/{Botao.vue → Button.vue} +53 -57
- package/src/component/forms/CheckboxGroup.vue +63 -0
- package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +6 -6
- package/src/component/forms/{Cor.vue → Color.vue} +9 -9
- package/src/component/forms/DateTime.vue +53 -53
- package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +50 -50
- package/src/component/forms/EditorHtml.vue +123 -0
- package/src/component/forms/FileUpload.vue +189 -0
- package/src/component/forms/InputDecimal.vue +137 -0
- package/src/component/forms/InputNumber.vue +149 -0
- package/src/component/forms/InputPassword.vue +135 -0
- package/src/component/forms/InputText.vue +157 -0
- package/src/component/forms/Modal.vue +15 -15
- package/src/component/forms/RadioGroup.vue +50 -0
- package/src/component/forms/Select.vue +337 -0
- package/src/component/forms/SelectStatic.vue +120 -0
- package/src/component/forms/TextArea.vue +126 -0
- package/src/component/forms/Toggle.vue +13 -13
- package/src/component/layout/{Conta.vue → Account.vue} +28 -28
- package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
- package/src/component/layout/Badge.vue +23 -23
- package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
- package/src/component/layout/{CarregandoTelaInteira.vue → LoadingFullPage.vue} +3 -3
- package/src/component/layout/Menu.vue +66 -66
- package/src/component/layout/{Moldura.vue → Molded.vue} +4 -4
- package/src/component/layout/Panel.vue +142 -0
- package/src/component/layout/Popover.vue +1 -1
- package/src/component/layout/{BarraRolagem.vue → Scrollbar.vue} +9 -11
- package/src/component/layout/Tag.vue +9 -9
- package/src/component/layout/Topo.vue +1 -1
- package/src/component/layout/Wizard.vue +3 -3
- package/src/component/shared/BotaoCarregarMais.vue +9 -9
- package/src/component/shared/BotaoConsulta.vue +9 -9
- package/src/component/shared/CabecalhoImpressao.vue +6 -6
- package/src/component/shared/CodigoEditor.vue +16 -16
- package/src/component/shared/Confirmacao.vue +28 -28
- package/src/component/shared/Dica.vue +10 -10
- package/src/component/shared/DocumentoEditor.vue +3 -3
- package/src/component/shared/DocumentoPreview.vue +2 -2
- package/src/component/shared/EsconderMostrar.vue +26 -26
- package/src/component/shared/ExportarExcel.vue +14 -14
- package/src/component/shared/ExportarPDF.vue +10 -10
- package/src/component/shared/FiltroHorizontal.vue +19 -19
- package/src/component/shared/LegendaParametro.vue +17 -17
- package/src/component/shared/{Carregando.vue → Loading.vue} +11 -11
- package/src/component/shared/Messages.vue +83 -0
- package/src/component/shared/Paginacao.vue +10 -10
- package/src/component/shared/Progresso.vue +2 -2
- package/src/component/shared/Registro.vue +2 -2
- package/src/component/shared/ResumoTabela.vue +6 -6
- package/src/component/shared/SalvarCancelar.vue +26 -26
- package/src/component/shared/{Pesquisa.vue → Search.vue} +36 -36
- package/src/component/shared/Tabela.vue +49 -49
- package/src/component/shared/TabelaBotao.vue +13 -13
- package/src/component/shared/Toast.vue +7 -7
- package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +14 -14
- package/src/component/shared/construtor-consulta/AdicionaFiltro.vue +191 -0
- package/src/component/shared/construtor-consulta/Campo.vue +127 -0
- package/src/component/shared/construtor-consulta/ComponenteDinamico.vue +109 -0
- package/src/component/shared/construtor-consulta/ConstrutorConsulta.vue +70 -0
- package/src/component/shared/construtor-consulta/ConverteParaOdata.js +80 -0
- package/src/component/shared/construtor-consulta/EscolherFiltro.vue +96 -0
- package/src/component/shared/{query-builder → construtor-consulta}/Filtro.vue +11 -16
- package/src/component/shared/construtor-consulta/ListaComponenteDinamico.vue +41 -0
- package/src/component/shared/{query-builder → construtor-consulta}/Rodape.vue +9 -9
- package/src/component/shared/{query-builder → construtor-consulta}/Tags.vue +7 -7
- package/src/component/shared/{query-builder → construtor-consulta}/utilities.js +0 -0
- package/src/component/template/ModeloAdicionarModificarView.vue +11 -11
- package/src/component/template/ModeloDocumentoView.vue +79 -79
- package/src/component/template/ModeloLista.vue +66 -66
- package/src/component/template/ModeloRelatorioListaView.vue +71 -68
- package/src/component/template/ModeloRelatorioView.vue +218 -200
- package/src/component/template/ModeloSubView.vue +13 -13
- package/src/component/template/ModeloView.vue +17 -17
- package/src/component/template/Relatorio.js +1 -5
- package/src/component/template/RelatorioAdicionarModificar.vue +44 -44
- package/src/component/value-objects/DadosContato.vue +27 -27
- package/src/component/value-objects/DadosPessoa.js +1 -1
- package/src/component/value-objects/DadosPessoa.vue +52 -52
- package/src/component/value-objects/Endereco.js +1 -1
- package/src/component/value-objects/Endereco.vue +83 -83
- package/src/config/dicas.js +1 -1
- package/src/config/token.js +2 -2
- package/src/store/modules/generic.js +489 -0
- package/src/store/modules/report.js +246 -0
- package/src/store/modules/user.js +38 -0
- package/src/store/modules/validation.js +39 -0
- package/src/store/store.js +4 -4
- package/public/js/menu.js +0 -11
- package/public/styles/menu.css +0 -1399
- package/src/component/forms/ArquivoUpload.vue +0 -199
- package/src/component/forms/CheckboxMultiplo.vue +0 -63
- package/src/component/forms/Decimal.vue +0 -137
- package/src/component/forms/Escolher.vue +0 -324
- package/src/component/forms/EscolherEstatico.vue +0 -139
- package/src/component/forms/Numero.vue +0 -153
- package/src/component/forms/Opcoes.vue +0 -51
- package/src/component/forms/Senha.vue +0 -139
- package/src/component/forms/Texto.vue +0 -161
- package/src/component/forms/TextoArea.vue +0 -126
- package/src/component/forms/TextoEditor.vue +0 -123
- package/src/component/layout/Painel.vue +0 -142
- package/src/component/shared/Mensagem.vue +0 -86
- package/src/component/shared/query-builder/Campo.vue +0 -116
- package/src/component/shared/query-builder/ConverteParaOdata.js +0 -73
- package/src/component/shared/query-builder/QueryBuilder.vue +0 -164
- package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
- package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
- package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
- package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
- package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
- package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -171
- package/src/component/shared/query-builder/main.js +0 -81
- package/src/store/modulos/generic.js +0 -494
- package/src/store/modulos/relatorio.js +0 -201
- package/src/store/modulos/usuario.js +0 -38
- package/src/store/modulos/validation.js +0 -39
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
|
-
v-show="!
|
|
5
|
-
class="
|
|
6
|
-
:style="'min-height:' +
|
|
4
|
+
v-show="!isLoading('panel')"
|
|
5
|
+
class="bar"
|
|
6
|
+
:style="'min-height:' + height + 'px;'"
|
|
7
7
|
:class="{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
top: position == 'top',
|
|
9
|
+
footer: position == 'footer',
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
|
-
<div class="
|
|
12
|
+
<div class="size">
|
|
13
13
|
<slot></slot>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -17,28 +17,28 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
|
-
import {
|
|
20
|
+
import { mapGetters } from "vuex";
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
|
-
name: "
|
|
23
|
+
name: "FixedBar",
|
|
24
24
|
props: {
|
|
25
|
-
|
|
25
|
+
position: {
|
|
26
26
|
type: String,
|
|
27
|
-
default: "
|
|
27
|
+
default: "top",
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
height: {
|
|
30
30
|
type: Number,
|
|
31
31
|
default: 70,
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
computed: {
|
|
35
|
-
...mapGetters("generic", ["
|
|
35
|
+
...mapGetters("generic", ["isLoading"]),
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
</script>
|
|
39
39
|
|
|
40
40
|
<style scoped>
|
|
41
|
-
.
|
|
41
|
+
.bar {
|
|
42
42
|
background-color: white;
|
|
43
43
|
position: fixed;
|
|
44
44
|
width: 100%;
|
|
@@ -48,19 +48,19 @@ export default {
|
|
|
48
48
|
margin-left: 100px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.
|
|
51
|
+
.size {
|
|
52
52
|
max-width: 1600px;
|
|
53
53
|
margin: auto;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.
|
|
56
|
+
.top {
|
|
57
57
|
top: 0;
|
|
58
58
|
left: 0;
|
|
59
59
|
right: 0;
|
|
60
60
|
border-bottom: 1px solid #e1e1e2;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
63
|
+
.footer {
|
|
64
64
|
left: 0;
|
|
65
65
|
bottom: 0px;
|
|
66
66
|
border-top: 1px solid #e1e1e2;
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
></vue-loading>
|
|
10
10
|
</b-col>
|
|
11
11
|
<b-col sm="12" class="text-center">
|
|
12
|
-
<div class="
|
|
12
|
+
<div class="message">Por favor aguarde, estamos trabalhando...</div>
|
|
13
13
|
</b-col>
|
|
14
14
|
</b-row>
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
17
17
|
<script>
|
|
18
18
|
export default {
|
|
19
|
-
name: "
|
|
19
|
+
name: "LoadingFullPage",
|
|
20
20
|
};
|
|
21
21
|
</script>
|
|
22
22
|
<style scoped>
|
|
23
|
-
.
|
|
23
|
+
.message {
|
|
24
24
|
font-size: 15px;
|
|
25
25
|
margin-top: 5px;
|
|
26
26
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="menu-container" :class="{ 'menu-
|
|
2
|
+
<div class="menu-container" :class="{ 'menu-open': subMenuFirstLevel }">
|
|
3
3
|
<ul class="menu">
|
|
4
|
-
<li v-if="
|
|
4
|
+
<li v-if="urlImage">
|
|
5
5
|
<div class="div-logo text-center">
|
|
6
|
-
<img :src="
|
|
6
|
+
<img :src="urlImage" />
|
|
7
7
|
</div>
|
|
8
8
|
</li>
|
|
9
9
|
<li>
|
|
10
|
-
<div :class="{ 'menu-
|
|
10
|
+
<div :class="{ 'menu-active': menuActive == 'Dashboard' }">
|
|
11
11
|
<a
|
|
12
12
|
href="#"
|
|
13
|
-
@click.prevent="
|
|
14
|
-
:class="
|
|
13
|
+
@click.prevent="navegateTo({ routeName: 'dashboard', module: 'Dashboard' })"
|
|
14
|
+
:class="highlightSession('home')"
|
|
15
15
|
>
|
|
16
|
-
<div class="div-
|
|
16
|
+
<div class="div-icon side-by-side">
|
|
17
17
|
<i
|
|
18
18
|
:class="{
|
|
19
|
-
'
|
|
20
|
-
'
|
|
19
|
+
'icon-active': menuActive == 'Dashboard',
|
|
20
|
+
'icon-normal': menuActive != 'Dashboard',
|
|
21
21
|
}"
|
|
22
|
-
class="fas fa-chart-area
|
|
22
|
+
class="fas fa-chart-area icon-dash"
|
|
23
23
|
></i>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="
|
|
25
|
+
<div class="title">Dashboard</div>
|
|
26
26
|
</a>
|
|
27
27
|
</div>
|
|
28
28
|
</li>
|
|
29
|
-
<li v-for="(item, index) in
|
|
30
|
-
<div :class="{ 'menu-
|
|
29
|
+
<li v-for="(item, index) in menuFilter(true)" :key="index">
|
|
30
|
+
<div :class="{ 'menu-active': menuActive == item.module }">
|
|
31
31
|
<a
|
|
32
32
|
href="#"
|
|
33
|
-
@click.prevent="
|
|
34
|
-
:class="
|
|
33
|
+
@click.prevent="openSubMenu(item.module)"
|
|
34
|
+
:class="highlightSession(item.module)"
|
|
35
35
|
>
|
|
36
|
-
<div class="div-
|
|
36
|
+
<div class="div-icon side-by-side">
|
|
37
37
|
<span
|
|
38
38
|
:class="{
|
|
39
|
-
'
|
|
40
|
-
'
|
|
39
|
+
'icon-active': menuActive == item.module,
|
|
40
|
+
'icon-normal': menuActive != item.module,
|
|
41
41
|
}"
|
|
42
42
|
>
|
|
43
|
-
<i :class="item.
|
|
43
|
+
<i :class="item.icon"></i>
|
|
44
44
|
</span>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="
|
|
46
|
+
<div class="title">{{ item.title }}</div>
|
|
47
47
|
</a>
|
|
48
48
|
</div>
|
|
49
49
|
</li>
|
|
50
50
|
</ul>
|
|
51
51
|
|
|
52
52
|
<transition name="slide-fade">
|
|
53
|
-
<div class="context-menu-container" v-if="
|
|
53
|
+
<div class="context-menu-container" v-if="subMenuFirstLevel">
|
|
54
54
|
<ul class="context-menu">
|
|
55
|
-
<li v-for="(item, index) in
|
|
56
|
-
<h5 v-if="item.
|
|
57
|
-
<span class="sub-
|
|
55
|
+
<li v-for="(item, index) in subMenuFilter(false)" :key="index">
|
|
56
|
+
<h5 v-if="item.type === 'group'" class="context-menu__title">
|
|
57
|
+
<span class="sub-title"> {{ item.grupoNome }}</span>
|
|
58
58
|
<span
|
|
59
59
|
v-if="index === 0"
|
|
60
|
-
@click.prevent="
|
|
61
|
-
class="context-menu__btn-close
|
|
60
|
+
@click.prevent="hideSubMenu"
|
|
61
|
+
class="context-menu__btn-close icon-close"
|
|
62
62
|
href="#"
|
|
63
63
|
>
|
|
64
64
|
<i class="fas fa-times-circle"></i>
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
<a
|
|
69
69
|
v-else
|
|
70
70
|
href="#"
|
|
71
|
-
@click.prevent="
|
|
72
|
-
:class="
|
|
71
|
+
@click.prevent="navegateTo(item)"
|
|
72
|
+
:class="classSubMenu(item.title)"
|
|
73
73
|
>
|
|
74
74
|
<b-row>
|
|
75
|
-
<b-col sm="1"> <i :class="item.
|
|
75
|
+
<b-col sm="1"> <i :class="item.icon" aria-hidden="true"></i></b-col>
|
|
76
76
|
<b-col sm="10">
|
|
77
|
-
<span class="
|
|
77
|
+
<span class="title-sub"> {{ item.title }}</span></b-col
|
|
78
78
|
></b-row
|
|
79
79
|
>
|
|
80
80
|
</a>
|
|
@@ -90,73 +90,73 @@ import { mapState } from "vuex";
|
|
|
90
90
|
export default {
|
|
91
91
|
name: "Menu",
|
|
92
92
|
props: {
|
|
93
|
-
|
|
93
|
+
baseColor: {
|
|
94
94
|
type: String,
|
|
95
95
|
default: "#4680A5",
|
|
96
96
|
},
|
|
97
|
-
|
|
97
|
+
baseColorActive: {
|
|
98
98
|
type: String,
|
|
99
99
|
default: "#3F529B",
|
|
100
100
|
},
|
|
101
|
-
|
|
101
|
+
urlImage: String,
|
|
102
102
|
},
|
|
103
103
|
data() {
|
|
104
104
|
return {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
module: "",
|
|
106
|
+
subMenuFirstLevel: false,
|
|
107
|
+
menuActive: "Dashboard",
|
|
108
108
|
};
|
|
109
109
|
},
|
|
110
110
|
methods: {
|
|
111
|
-
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
111
|
+
openSubMenu(module) {
|
|
112
|
+
this.subMenuFirstLevel = true;
|
|
113
|
+
this.module = module;
|
|
114
114
|
},
|
|
115
|
-
|
|
116
|
-
this.
|
|
115
|
+
hideSubMenu() {
|
|
116
|
+
this.subMenuFirstLevel = false;
|
|
117
117
|
this.menuItens = [];
|
|
118
118
|
},
|
|
119
|
-
|
|
119
|
+
highlightSession(section) {
|
|
120
120
|
return {
|
|
121
121
|
menu__link: true,
|
|
122
122
|
"menu__link--active": section === this.contextSection,
|
|
123
123
|
};
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
classSubMenu(subMenuName) {
|
|
126
126
|
return {
|
|
127
127
|
"context-menu__link": true,
|
|
128
128
|
"context-menu__link--active": this.activeSubMenu === subMenuName,
|
|
129
129
|
};
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
navegateTo(item) {
|
|
132
132
|
this.$router.push({
|
|
133
|
-
name: item.
|
|
133
|
+
name: item.routeName,
|
|
134
134
|
});
|
|
135
|
-
this.
|
|
135
|
+
this.hideSubMenu();
|
|
136
136
|
},
|
|
137
|
-
|
|
138
|
-
let
|
|
139
|
-
this.menu.
|
|
140
|
-
if (obj.
|
|
137
|
+
menuFilter(isModule) {
|
|
138
|
+
let filter = [];
|
|
139
|
+
this.menu.items.forEach(function (obj) {
|
|
140
|
+
if (obj.isModule == isModule) filter.push(obj);
|
|
141
141
|
});
|
|
142
|
-
return
|
|
142
|
+
return filter;
|
|
143
143
|
},
|
|
144
|
-
|
|
145
|
-
let
|
|
144
|
+
subMenuFilter(isModule) {
|
|
145
|
+
let filter = [];
|
|
146
146
|
let self = this;
|
|
147
|
-
this.menu.
|
|
148
|
-
if (obj.
|
|
147
|
+
this.menu.items.forEach(function (obj) {
|
|
148
|
+
if (obj.isModule == isModule && obj.module === self.module) filter.push(obj);
|
|
149
149
|
});
|
|
150
|
-
return
|
|
150
|
+
return filter;
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
153
|
computed: {
|
|
154
|
-
...mapState("
|
|
154
|
+
...mapState("user", ["menu"]),
|
|
155
155
|
},
|
|
156
156
|
watch: {
|
|
157
157
|
$route: {
|
|
158
158
|
handler: function (router) {
|
|
159
|
-
this.
|
|
159
|
+
this.menuActive = router.matched[0].props.default.module;
|
|
160
160
|
},
|
|
161
161
|
deep: true,
|
|
162
162
|
},
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
165
165
|
</script>
|
|
166
166
|
|
|
167
167
|
<style scoped>
|
|
168
|
-
.menu-
|
|
168
|
+
.menu-open {
|
|
169
169
|
width: 350px;
|
|
170
170
|
z-index: 1000;
|
|
171
171
|
}
|
|
@@ -175,34 +175,34 @@ export default {
|
|
|
175
175
|
padding-bottom: 16px;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.div-
|
|
178
|
+
.div-icon {
|
|
179
179
|
width: 35px;
|
|
180
180
|
height: 35px;
|
|
181
181
|
padding-top: 5px;
|
|
182
182
|
margin-left: 38px;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.
|
|
185
|
+
.icon-close {
|
|
186
186
|
margin-right: 60px;
|
|
187
187
|
}
|
|
188
|
-
.
|
|
188
|
+
.icon {
|
|
189
189
|
font-size: 20px;
|
|
190
190
|
}
|
|
191
|
-
.
|
|
191
|
+
.icon-dash {
|
|
192
192
|
font-size: 22px;
|
|
193
193
|
}
|
|
194
|
-
.
|
|
194
|
+
.title {
|
|
195
195
|
font-size: 13px;
|
|
196
196
|
font-weight: 400;
|
|
197
197
|
margin-top: -6px;
|
|
198
198
|
text-align: center;
|
|
199
199
|
width: 100%;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.title-sub {
|
|
202
202
|
margin-left: 5px;
|
|
203
203
|
font-weight: 400;
|
|
204
204
|
}
|
|
205
|
-
.sub-
|
|
205
|
+
.sub-title {
|
|
206
206
|
font-size: 16px;
|
|
207
207
|
font-weight: normal;
|
|
208
208
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="molded" :style="'border-radius:' + borderRadius + 'px'">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
export default {
|
|
9
|
-
name: "
|
|
9
|
+
name: "Molded",
|
|
10
10
|
props: {
|
|
11
|
-
|
|
11
|
+
borderRadius: {
|
|
12
12
|
type: Number,
|
|
13
13
|
default: 8,
|
|
14
14
|
},
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
};
|
|
17
17
|
</script>
|
|
18
18
|
<style scoped>
|
|
19
|
-
.
|
|
19
|
+
.molded {
|
|
20
20
|
border: 1px solid #dbdfe9;
|
|
21
21
|
background-color: transparent;
|
|
22
22
|
padding-top: 15px;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel">
|
|
3
|
+
<Toast />
|
|
4
|
+
<Loading v-show="isLoading('panel')" />
|
|
5
|
+
<div v-show="!isLoading('panel')">
|
|
6
|
+
<div v-show="showVerticalFilter">
|
|
7
|
+
<VerticalFilter>
|
|
8
|
+
<slot name="content-filter"></slot>
|
|
9
|
+
</VerticalFilter>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="local-container">
|
|
12
|
+
<Messages v-if="!modal.open" />
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-10">
|
|
15
|
+
<div class="div-title">
|
|
16
|
+
<span class="module">
|
|
17
|
+
<span class="icon"><i class="fas fa-compass"></i></span>
|
|
18
|
+
{{ module }} |</span
|
|
19
|
+
>
|
|
20
|
+
<span class="title"> {{ title }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-2 text-right" v-show="currentRoute != 'Dashboard'">
|
|
24
|
+
<div class="c-back" @click="back()">
|
|
25
|
+
<span class="g-espaco-esquerda">Voltar</span>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<br v-show="showButtons" />
|
|
30
|
+
<div class="row" v-show="showButtons">
|
|
31
|
+
<div class="col-12" v-show="showButtons">
|
|
32
|
+
<slot name="content-buttons"></slot>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<br v-show="showButtons || showSearch" />
|
|
36
|
+
<div v-show="showButtons || showSearch">
|
|
37
|
+
<div>
|
|
38
|
+
<div v-show="showSearch"><Search /></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<br v-show="showSearch" />
|
|
42
|
+
<div>
|
|
43
|
+
<slot name="content-main"></slot>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<br /><br /><br />
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import Toast from "../shared/Toast.vue";
|
|
53
|
+
import Messages from "../shared/Messages.vue";
|
|
54
|
+
import Search from "../shared/Search.vue";
|
|
55
|
+
import Loading from "../shared/Loading.vue";
|
|
56
|
+
import VerticalFilter from "../shared/VerticalFilter";
|
|
57
|
+
|
|
58
|
+
import { mapState, mapGetters, mapMutations } from "vuex";
|
|
59
|
+
|
|
60
|
+
export default {
|
|
61
|
+
name: "Painel",
|
|
62
|
+
components: {
|
|
63
|
+
Loading,
|
|
64
|
+
VerticalFilter,
|
|
65
|
+
Search,
|
|
66
|
+
Messages,
|
|
67
|
+
Toast,
|
|
68
|
+
},
|
|
69
|
+
props: {
|
|
70
|
+
module: String,
|
|
71
|
+
title: String,
|
|
72
|
+
showVerticalFilter: Boolean,
|
|
73
|
+
showSearch: Boolean,
|
|
74
|
+
showButtons: Boolean,
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
currentRoute: this.$route.name,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
created() {
|
|
82
|
+
this.addLoading("panel");
|
|
83
|
+
},
|
|
84
|
+
updated() {
|
|
85
|
+
this.currentRoute = this.$route.name;
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
...mapGetters("generic", ["isLoading"]),
|
|
89
|
+
...mapState("generic", ["modal"]),
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
...mapMutations("generic", ["addLoading"]),
|
|
93
|
+
back() {
|
|
94
|
+
window.history.back();
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
</script>
|
|
99
|
+
<style scoped>
|
|
100
|
+
.local-container {
|
|
101
|
+
margin: auto;
|
|
102
|
+
padding-left: 110px;
|
|
103
|
+
max-width: 1400px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.div-title {
|
|
107
|
+
margin-top: 15px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.module {
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
font-weight: 400;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.title {
|
|
116
|
+
font-size: 18px;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
line-height: 34px;
|
|
119
|
+
color: #577696;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.icon {
|
|
123
|
+
opacity: 0.8;
|
|
124
|
+
font-size: 20px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.c-back {
|
|
128
|
+
margin-top: 20px;
|
|
129
|
+
margin-right: 12px;
|
|
130
|
+
font-size: 16px;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
color: #8ca1b7;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.c-back:hover {
|
|
136
|
+
color: #8ca1b7;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.panel {
|
|
140
|
+
padding: 25px;
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
:id="id"
|
|
4
|
-
class="
|
|
5
|
-
:style="
|
|
6
|
-
'max-height:' + alturaMaxima + 'px' + ';' + 'min-height:' + alturaMinima + 'px'
|
|
7
|
-
"
|
|
4
|
+
class="scrollbar"
|
|
5
|
+
:style="'max-height:' + maxHeight + 'px' + ';' + 'min-height:' + minHeight + 'px'"
|
|
8
6
|
>
|
|
9
7
|
<slot></slot>
|
|
10
8
|
</div>
|
|
@@ -14,31 +12,31 @@
|
|
|
14
12
|
import { mapMutations } from "vuex";
|
|
15
13
|
|
|
16
14
|
export default {
|
|
17
|
-
name: "
|
|
15
|
+
name: "Scrollbar",
|
|
18
16
|
props: {
|
|
19
17
|
id: String,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
maxHeight: Number,
|
|
19
|
+
minHeight: Number,
|
|
22
20
|
},
|
|
23
21
|
mounted() {
|
|
24
22
|
const listElm = document.querySelector("#" + this.id);
|
|
25
23
|
if (listElm != null)
|
|
26
24
|
listElm.addEventListener("scroll", (e) => {
|
|
27
25
|
if (listElm.scrollTop + listElm.clientHeight >= listElm.scrollHeight) {
|
|
28
|
-
this.
|
|
29
|
-
nome: "
|
|
26
|
+
this.addEvent({
|
|
27
|
+
nome: "endScrollbar",
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
});
|
|
33
31
|
},
|
|
34
32
|
methods: {
|
|
35
|
-
...mapMutations("generic", ["
|
|
33
|
+
...mapMutations("generic", ["addEvent"]),
|
|
36
34
|
},
|
|
37
35
|
};
|
|
38
36
|
</script>
|
|
39
37
|
|
|
40
38
|
<style scoped>
|
|
41
|
-
|
|
39
|
+
div {
|
|
42
40
|
overflow-y: visible;
|
|
43
41
|
overflow-x: hidden;
|
|
44
42
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="div-tag">
|
|
3
3
|
<div class="tag">
|
|
4
|
-
<span @click="executar()">{{
|
|
5
|
-
<i @click="remover()" class="
|
|
4
|
+
<span @click="executar()">{{ title }}: {{ valor }}</span>
|
|
5
|
+
<i @click="remover()" class="icon fas fa-times-circle"></i>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
|
@@ -13,24 +13,24 @@ import { mapMutations } from "vuex";
|
|
|
13
13
|
export default {
|
|
14
14
|
name: "Tag",
|
|
15
15
|
props: {
|
|
16
|
-
|
|
16
|
+
title: String,
|
|
17
17
|
valor: String,
|
|
18
18
|
nomeEvento: String,
|
|
19
19
|
dadosEvento: Object,
|
|
20
20
|
},
|
|
21
21
|
methods: {
|
|
22
|
-
...mapMutations("generic", ["
|
|
22
|
+
...mapMutations("generic", ["addEvent"]),
|
|
23
23
|
executar() {
|
|
24
24
|
if (this.nomeEvento)
|
|
25
|
-
this.
|
|
25
|
+
this.addEvent({
|
|
26
26
|
nome: this.nomeEvento,
|
|
27
|
-
|
|
27
|
+
data: this.dadosEvento,
|
|
28
28
|
});
|
|
29
29
|
},
|
|
30
30
|
remover() {
|
|
31
|
-
this.
|
|
31
|
+
this.addEvent({
|
|
32
32
|
nome: "tagRemovida",
|
|
33
|
-
|
|
33
|
+
data: this.dadosEvento,
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
},
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
margin-right: 10px;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
.icon {
|
|
63
63
|
color: #9e9e9e;
|
|
64
64
|
padding-left: 5px;
|
|
65
65
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
v-if="step < etapa"
|
|
39
39
|
class="btn btn--green-1"
|
|
40
40
|
@click="step++"
|
|
41
|
-
:disabled="!
|
|
41
|
+
:disabled="!isFormValid(formName[step - 1])"
|
|
42
42
|
>
|
|
43
43
|
Próximo
|
|
44
44
|
</button>
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
props: {
|
|
59
59
|
etapa: Number,
|
|
60
60
|
legenda: Array,
|
|
61
|
-
|
|
61
|
+
formName: Array,
|
|
62
62
|
mostrarPassos: {
|
|
63
63
|
type: Boolean,
|
|
64
64
|
default: true,
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
};
|
|
71
71
|
},
|
|
72
72
|
computed: {
|
|
73
|
-
...mapGetters("validation", ["
|
|
73
|
+
...mapGetters("validation", ["isFormValid"]),
|
|
74
74
|
stepperProgress() {
|
|
75
75
|
return (100 / this.etapa) * (this.step - 1) + "%";
|
|
76
76
|
},
|