@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
|
@@ -3,50 +3,50 @@
|
|
|
3
3
|
<b-row>
|
|
4
4
|
<b-col xs="12" sm="12" md="12" lg="3" xl="3">
|
|
5
5
|
<Texto
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
:
|
|
10
|
-
:
|
|
11
|
-
:
|
|
6
|
+
title="CEP"
|
|
7
|
+
field="cep"
|
|
8
|
+
:formName="formName"
|
|
9
|
+
:mask="'#####-###'"
|
|
10
|
+
:maxLength="9"
|
|
11
|
+
:required="required"
|
|
12
12
|
v-model="endereco.cep"
|
|
13
13
|
>
|
|
14
|
-
<div class="glyphicon
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:
|
|
21
|
-
:
|
|
14
|
+
<div class="glyphicon margin-button">
|
|
15
|
+
<Button
|
|
16
|
+
key="buscarCep"
|
|
17
|
+
type="success"
|
|
18
|
+
classIcon="fas fa-search"
|
|
19
|
+
size="small"
|
|
20
|
+
:disabled="endereco.cep.length < 9"
|
|
21
|
+
:clicked="buscarCep"
|
|
22
22
|
/></div
|
|
23
23
|
></Texto>
|
|
24
24
|
</b-col>
|
|
25
25
|
<b-col xs="12" sm="12" md="12" lg="5" xl="5">
|
|
26
26
|
<Texto
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
:
|
|
30
|
-
:
|
|
31
|
-
:
|
|
27
|
+
title="Endereço"
|
|
28
|
+
field="logradouro"
|
|
29
|
+
:formName="formName"
|
|
30
|
+
:maxLength="150"
|
|
31
|
+
:required="required"
|
|
32
32
|
v-model="endereco.logradouro"
|
|
33
33
|
/>
|
|
34
34
|
</b-col>
|
|
35
35
|
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
36
36
|
<Texto
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
:
|
|
40
|
-
:
|
|
37
|
+
title="Número"
|
|
38
|
+
field="numero"
|
|
39
|
+
:formName="formName"
|
|
40
|
+
:maxLength="20"
|
|
41
41
|
v-model="endereco.numero"
|
|
42
42
|
/>
|
|
43
43
|
</b-col>
|
|
44
44
|
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
45
45
|
<Texto
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
:
|
|
49
|
-
:
|
|
46
|
+
title="Complemento"
|
|
47
|
+
field="complemento"
|
|
48
|
+
:formName="formName"
|
|
49
|
+
:maxLength="50"
|
|
50
50
|
v-model="endereco.complemento"
|
|
51
51
|
/>
|
|
52
52
|
</b-col>
|
|
@@ -55,39 +55,39 @@
|
|
|
55
55
|
<b-row>
|
|
56
56
|
<b-col xs="12" sm="12" md="12" lg="5" xl="5">
|
|
57
57
|
<Texto
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
:
|
|
61
|
-
:
|
|
62
|
-
:
|
|
58
|
+
title="Bairro"
|
|
59
|
+
field="bairro"
|
|
60
|
+
:formName="formName"
|
|
61
|
+
:maxLength="100"
|
|
62
|
+
:required="required"
|
|
63
63
|
v-model="endereco.bairro"
|
|
64
64
|
/> </b-col
|
|
65
65
|
><b-col xs="12" sm="12" md="12" lg="5" xl="5">
|
|
66
66
|
<Texto
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
:
|
|
71
|
-
:
|
|
67
|
+
title="Cidade"
|
|
68
|
+
field="cidade"
|
|
69
|
+
:formName="formName"
|
|
70
|
+
:maxLength="100"
|
|
71
|
+
:required="required"
|
|
72
72
|
v-model="endereco.cidade"
|
|
73
73
|
/>
|
|
74
74
|
</b-col>
|
|
75
75
|
<b-col xs="12" sm="12" md="12" lg="2" xl="2">
|
|
76
76
|
<EscolherEstatico
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
:
|
|
77
|
+
title="UF"
|
|
78
|
+
fieldTarget="uf"
|
|
79
|
+
:required="required"
|
|
80
80
|
v-model="endereco.estado"
|
|
81
|
-
:
|
|
81
|
+
:data="estados"
|
|
82
82
|
/> </b-col
|
|
83
83
|
></b-row>
|
|
84
84
|
</div>
|
|
85
85
|
</template>
|
|
86
86
|
|
|
87
87
|
<script>
|
|
88
|
-
import
|
|
88
|
+
import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
|
|
89
89
|
import Texto from "@nixweb/nixloc-ui/src/component/forms/Texto";
|
|
90
|
-
import
|
|
90
|
+
import options from "@nixweb/nixloc-ui/src/component/forms/options";
|
|
91
91
|
import EscolherEstatico from "@nixweb/nixloc-ui/src/component/forms/EscolherEstatico";
|
|
92
92
|
|
|
93
93
|
import Endereco from "@nixweb/nixloc-ui/src/component/value-objects/Endereco.js";
|
|
@@ -97,46 +97,46 @@ import { mapGetters, mapMutations } from "vuex";
|
|
|
97
97
|
export default {
|
|
98
98
|
name: "Endereco",
|
|
99
99
|
props: {
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
formName: String,
|
|
101
|
+
required: {
|
|
102
102
|
type: Boolean,
|
|
103
103
|
default: false,
|
|
104
104
|
},
|
|
105
105
|
value: Object,
|
|
106
106
|
},
|
|
107
|
-
components: {
|
|
107
|
+
components: { options, Texto, Button, EscolherEstatico },
|
|
108
108
|
|
|
109
109
|
data() {
|
|
110
110
|
return {
|
|
111
111
|
endereco: new Endereco(),
|
|
112
112
|
estados: [
|
|
113
|
-
{
|
|
114
|
-
{
|
|
115
|
-
{
|
|
116
|
-
{
|
|
117
|
-
{
|
|
118
|
-
{
|
|
119
|
-
{
|
|
120
|
-
{
|
|
121
|
-
{
|
|
122
|
-
{
|
|
123
|
-
{
|
|
124
|
-
{
|
|
125
|
-
{
|
|
126
|
-
{
|
|
127
|
-
{
|
|
128
|
-
{
|
|
129
|
-
{
|
|
130
|
-
{
|
|
131
|
-
{
|
|
132
|
-
{
|
|
133
|
-
{
|
|
134
|
-
{
|
|
135
|
-
{
|
|
136
|
-
{
|
|
137
|
-
{
|
|
138
|
-
{
|
|
139
|
-
{
|
|
113
|
+
{ content: "AC", id: "AC" },
|
|
114
|
+
{ content: "AL", id: "AL" },
|
|
115
|
+
{ content: "AP", id: "AP" },
|
|
116
|
+
{ content: "AM", id: "AM" },
|
|
117
|
+
{ content: "BA", id: "BA" },
|
|
118
|
+
{ content: "CE", id: "CE" },
|
|
119
|
+
{ content: "DF", id: "DF" },
|
|
120
|
+
{ content: "ES", id: "ES" },
|
|
121
|
+
{ content: "GO", id: "GO" },
|
|
122
|
+
{ content: "MA", id: "MA" },
|
|
123
|
+
{ content: "MT", id: "MT" },
|
|
124
|
+
{ content: "MS", id: "MS" },
|
|
125
|
+
{ content: "MG", id: "MG" },
|
|
126
|
+
{ content: "PA", id: "PA" },
|
|
127
|
+
{ content: "PB", id: "PB" },
|
|
128
|
+
{ content: "PR", id: "PR" },
|
|
129
|
+
{ content: "PE", id: "PE" },
|
|
130
|
+
{ content: "PI", id: "PI" },
|
|
131
|
+
{ content: "RJ", id: "RJ" },
|
|
132
|
+
{ content: "RN", id: "RN" },
|
|
133
|
+
{ content: "RS", id: "RS" },
|
|
134
|
+
{ content: "RO", id: "RO" },
|
|
135
|
+
{ content: "RR", id: "RR" },
|
|
136
|
+
{ content: "SC", id: "SC" },
|
|
137
|
+
{ content: "SP", id: "SP" },
|
|
138
|
+
{ content: "SE", id: "SE" },
|
|
139
|
+
{ content: "TO", id: "TO" },
|
|
140
140
|
],
|
|
141
141
|
};
|
|
142
142
|
},
|
|
@@ -147,7 +147,7 @@ export default {
|
|
|
147
147
|
...mapGetters("generic", ["evento"]),
|
|
148
148
|
},
|
|
149
149
|
methods: {
|
|
150
|
-
...mapMutations("generic", ["
|
|
150
|
+
...mapMutations("generic", ["addEvent", "addNotifications", "removeLoading"]),
|
|
151
151
|
buscarCep() {
|
|
152
152
|
let cep = this.endereco.cep.replace(/\.|\-/g, "");
|
|
153
153
|
let url = `https://viacep.com.br/ws/${cep}/json/`;
|
|
@@ -155,18 +155,18 @@ export default {
|
|
|
155
155
|
let self = this;
|
|
156
156
|
setTimeout(function () {
|
|
157
157
|
self.carregaDados(response.data);
|
|
158
|
-
self.
|
|
158
|
+
self.removeLoading(["buscarCep"]);
|
|
159
159
|
}, 300);
|
|
160
160
|
});
|
|
161
161
|
},
|
|
162
|
-
carregaDados(
|
|
163
|
-
this.endereco.cep =
|
|
164
|
-
this.endereco.logradouro =
|
|
165
|
-
this.endereco.numero =
|
|
166
|
-
this.endereco.bairro =
|
|
162
|
+
carregaDados(data) {
|
|
163
|
+
this.endereco.cep = data.cep;
|
|
164
|
+
this.endereco.logradouro = data.logradouro;
|
|
165
|
+
this.endereco.numero = data.complemento;
|
|
166
|
+
this.endereco.bairro = data.bairro;
|
|
167
167
|
this.endereco.cidade =
|
|
168
|
-
|
|
169
|
-
this.endereco.estado = { id:
|
|
168
|
+
data.localidade == undefined ? data.municipio : data.localidade;
|
|
169
|
+
this.endereco.estado = { id: data.uf, content: data.uf };
|
|
170
170
|
},
|
|
171
171
|
},
|
|
172
172
|
watch: {
|
|
@@ -185,7 +185,7 @@ export default {
|
|
|
185
185
|
evento: {
|
|
186
186
|
handler(evento) {
|
|
187
187
|
if (evento.nome == "buscarCnpjReceita") {
|
|
188
|
-
this.carregaDados(evento.
|
|
188
|
+
this.carregaDados(evento.data);
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
deep: true,
|
package/src/config/dicas.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const dicas = [];
|
|
2
2
|
|
|
3
3
|
const manutencao = [
|
|
4
|
-
// {
|
|
4
|
+
// { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
|
|
5
5
|
|
|
6
6
|
];
|
|
7
7
|
|
package/src/config/token.js
CHANGED
|
@@ -3,13 +3,13 @@ export default class Token {
|
|
|
3
3
|
tokenHeaders() {
|
|
4
4
|
return {
|
|
5
5
|
"Content-Type": "application/json",
|
|
6
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).
|
|
6
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
tokenHeadersFormData() {
|
|
10
10
|
return {
|
|
11
11
|
"Content-Type": "multipart/form-data",
|
|
12
|
-
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).
|
|
12
|
+
Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
}
|