@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.
Files changed (122) hide show
  1. package/docs/src/component/template/ModeloRelatorioView.drawio +160 -0
  2. package/docs/src/store/modulos/relatorio.drawio +37 -0
  3. package/package.json +77 -75
  4. package/public/index.html +2 -4
  5. package/public/styles/app.css +1 -2
  6. package/src/component/forms/{Botao.vue → Button.vue} +53 -57
  7. package/src/component/forms/CheckboxGroup.vue +63 -0
  8. package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +6 -6
  9. package/src/component/forms/{Cor.vue → Color.vue} +9 -9
  10. package/src/component/forms/DateTime.vue +53 -53
  11. package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +50 -50
  12. package/src/component/forms/EditorHtml.vue +123 -0
  13. package/src/component/forms/FileUpload.vue +189 -0
  14. package/src/component/forms/InputDecimal.vue +137 -0
  15. package/src/component/forms/InputNumber.vue +149 -0
  16. package/src/component/forms/InputPassword.vue +135 -0
  17. package/src/component/forms/InputText.vue +157 -0
  18. package/src/component/forms/Modal.vue +15 -15
  19. package/src/component/forms/RadioGroup.vue +50 -0
  20. package/src/component/forms/Select.vue +337 -0
  21. package/src/component/forms/SelectStatic.vue +120 -0
  22. package/src/component/forms/TextArea.vue +126 -0
  23. package/src/component/forms/Toggle.vue +13 -13
  24. package/src/component/layout/{Conta.vue → Account.vue} +28 -28
  25. package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
  26. package/src/component/layout/Badge.vue +23 -23
  27. package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
  28. package/src/component/layout/{CarregandoTelaInteira.vue → LoadingFullPage.vue} +3 -3
  29. package/src/component/layout/Menu.vue +66 -66
  30. package/src/component/layout/{Moldura.vue → Molded.vue} +4 -4
  31. package/src/component/layout/Panel.vue +142 -0
  32. package/src/component/layout/Popover.vue +1 -1
  33. package/src/component/layout/{BarraRolagem.vue → Scrollbar.vue} +9 -11
  34. package/src/component/layout/Tag.vue +9 -9
  35. package/src/component/layout/Topo.vue +1 -1
  36. package/src/component/layout/Wizard.vue +3 -3
  37. package/src/component/shared/BotaoCarregarMais.vue +9 -9
  38. package/src/component/shared/BotaoConsulta.vue +9 -9
  39. package/src/component/shared/CabecalhoImpressao.vue +6 -6
  40. package/src/component/shared/CodigoEditor.vue +16 -16
  41. package/src/component/shared/Confirmacao.vue +28 -28
  42. package/src/component/shared/Dica.vue +10 -10
  43. package/src/component/shared/DocumentoEditor.vue +3 -3
  44. package/src/component/shared/DocumentoPreview.vue +2 -2
  45. package/src/component/shared/EsconderMostrar.vue +26 -26
  46. package/src/component/shared/ExportarExcel.vue +14 -14
  47. package/src/component/shared/ExportarPDF.vue +10 -10
  48. package/src/component/shared/FiltroHorizontal.vue +19 -19
  49. package/src/component/shared/LegendaParametro.vue +17 -17
  50. package/src/component/shared/{Carregando.vue → Loading.vue} +11 -11
  51. package/src/component/shared/Messages.vue +83 -0
  52. package/src/component/shared/Paginacao.vue +10 -10
  53. package/src/component/shared/Progresso.vue +2 -2
  54. package/src/component/shared/Registro.vue +2 -2
  55. package/src/component/shared/ResumoTabela.vue +6 -6
  56. package/src/component/shared/SalvarCancelar.vue +26 -26
  57. package/src/component/shared/{Pesquisa.vue → Search.vue} +36 -36
  58. package/src/component/shared/Tabela.vue +49 -49
  59. package/src/component/shared/TabelaBotao.vue +13 -13
  60. package/src/component/shared/Toast.vue +7 -7
  61. package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +14 -14
  62. package/src/component/shared/construtor-consulta/AdicionaFiltro.vue +191 -0
  63. package/src/component/shared/construtor-consulta/Campo.vue +127 -0
  64. package/src/component/shared/construtor-consulta/ComponenteDinamico.vue +109 -0
  65. package/src/component/shared/construtor-consulta/ConstrutorConsulta.vue +70 -0
  66. package/src/component/shared/construtor-consulta/ConverteParaOdata.js +80 -0
  67. package/src/component/shared/construtor-consulta/EscolherFiltro.vue +96 -0
  68. package/src/component/shared/{query-builder → construtor-consulta}/Filtro.vue +11 -16
  69. package/src/component/shared/construtor-consulta/ListaComponenteDinamico.vue +41 -0
  70. package/src/component/shared/{query-builder → construtor-consulta}/Rodape.vue +9 -9
  71. package/src/component/shared/{query-builder → construtor-consulta}/Tags.vue +7 -7
  72. package/src/component/shared/{query-builder → construtor-consulta}/utilities.js +0 -0
  73. package/src/component/template/ModeloAdicionarModificarView.vue +11 -11
  74. package/src/component/template/ModeloDocumentoView.vue +79 -79
  75. package/src/component/template/ModeloLista.vue +66 -66
  76. package/src/component/template/ModeloRelatorioListaView.vue +71 -68
  77. package/src/component/template/ModeloRelatorioView.vue +218 -200
  78. package/src/component/template/ModeloSubView.vue +13 -13
  79. package/src/component/template/ModeloView.vue +17 -17
  80. package/src/component/template/Relatorio.js +1 -5
  81. package/src/component/template/RelatorioAdicionarModificar.vue +44 -44
  82. package/src/component/value-objects/DadosContato.vue +27 -27
  83. package/src/component/value-objects/DadosPessoa.js +1 -1
  84. package/src/component/value-objects/DadosPessoa.vue +52 -52
  85. package/src/component/value-objects/Endereco.js +1 -1
  86. package/src/component/value-objects/Endereco.vue +83 -83
  87. package/src/config/dicas.js +1 -1
  88. package/src/config/token.js +2 -2
  89. package/src/store/modules/generic.js +489 -0
  90. package/src/store/modules/report.js +246 -0
  91. package/src/store/modules/user.js +38 -0
  92. package/src/store/modules/validation.js +39 -0
  93. package/src/store/store.js +4 -4
  94. package/public/js/menu.js +0 -11
  95. package/public/styles/menu.css +0 -1399
  96. package/src/component/forms/ArquivoUpload.vue +0 -199
  97. package/src/component/forms/CheckboxMultiplo.vue +0 -63
  98. package/src/component/forms/Decimal.vue +0 -137
  99. package/src/component/forms/Escolher.vue +0 -324
  100. package/src/component/forms/EscolherEstatico.vue +0 -139
  101. package/src/component/forms/Numero.vue +0 -153
  102. package/src/component/forms/Opcoes.vue +0 -51
  103. package/src/component/forms/Senha.vue +0 -139
  104. package/src/component/forms/Texto.vue +0 -161
  105. package/src/component/forms/TextoArea.vue +0 -126
  106. package/src/component/forms/TextoEditor.vue +0 -123
  107. package/src/component/layout/Painel.vue +0 -142
  108. package/src/component/shared/Mensagem.vue +0 -86
  109. package/src/component/shared/query-builder/Campo.vue +0 -116
  110. package/src/component/shared/query-builder/ConverteParaOdata.js +0 -73
  111. package/src/component/shared/query-builder/QueryBuilder.vue +0 -164
  112. package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
  113. package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
  114. package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
  115. package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
  116. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
  117. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -171
  118. package/src/component/shared/query-builder/main.js +0 -81
  119. package/src/store/modulos/generic.js +0 -494
  120. package/src/store/modulos/relatorio.js +0 -201
  121. package/src/store/modulos/usuario.js +0 -38
  122. 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
- titulo="CEP"
7
- campo="cep"
8
- :formNome="formNome"
9
- :mascara="'#####-###'"
10
- :tamanhoMaximo="9"
11
- :requerido="requerido"
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 margem-botao">
15
- <Botao
16
- chave="buscarCep"
17
- tipo="sucesso"
18
- classeIcone="fas fa-search"
19
- tamanho="pequeno"
20
- :desabilitado="endereco.cep.length < 9"
21
- :clique="buscarCep"
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
- titulo="Endereço"
28
- campo="logradouro"
29
- :formNome="formNome"
30
- :tamanhoMaximo="150"
31
- :requerido="requerido"
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
- titulo="Número"
38
- campo="numero"
39
- :formNome="formNome"
40
- :tamanhoMaximo="20"
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
- titulo="Complemento"
47
- campo="complemento"
48
- :formNome="formNome"
49
- :tamanhoMaximo="50"
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
- titulo="Bairro"
59
- campo="bairro"
60
- :formNome="formNome"
61
- :tamanhoMaximo="100"
62
- :requerido="requerido"
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
- titulo="Cidade"
68
- campo="cidade"
69
- :formNome="formNome"
70
- :tamanhoMaximo="100"
71
- :requerido="requerido"
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
- titulo="UF"
78
- campoAlvo="uf"
79
- :requerido="requerido"
77
+ title="UF"
78
+ fieldTarget="uf"
79
+ :required="required"
80
80
  v-model="endereco.estado"
81
- :dados="estados"
81
+ :data="estados"
82
82
  /> </b-col
83
83
  ></b-row>
84
84
  </div>
85
85
  </template>
86
86
 
87
87
  <script>
88
- import Botao from "@nixweb/nixloc-ui/src/component/forms/Botao";
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 Opcoes from "@nixweb/nixloc-ui/src/component/forms/Opcoes";
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
- formNome: String,
101
- requerido: {
100
+ formName: String,
101
+ required: {
102
102
  type: Boolean,
103
103
  default: false,
104
104
  },
105
105
  value: Object,
106
106
  },
107
- components: { Opcoes, Texto, Botao, EscolherEstatico },
107
+ components: { options, Texto, Button, EscolherEstatico },
108
108
 
109
109
  data() {
110
110
  return {
111
111
  endereco: new Endereco(),
112
112
  estados: [
113
- { conteudo: "AC", id: "AC" },
114
- { conteudo: "AL", id: "AL" },
115
- { conteudo: "AP", id: "AP" },
116
- { conteudo: "AM", id: "AM" },
117
- { conteudo: "BA", id: "BA" },
118
- { conteudo: "CE", id: "CE" },
119
- { conteudo: "DF", id: "DF" },
120
- { conteudo: "ES", id: "ES" },
121
- { conteudo: "GO", id: "GO" },
122
- { conteudo: "MA", id: "MA" },
123
- { conteudo: "MT", id: "MT" },
124
- { conteudo: "MS", id: "MS" },
125
- { conteudo: "MG", id: "MG" },
126
- { conteudo: "PA", id: "PA" },
127
- { conteudo: "PB", id: "PB" },
128
- { conteudo: "PR", id: "PR" },
129
- { conteudo: "PE", id: "PE" },
130
- { conteudo: "PI", id: "PI" },
131
- { conteudo: "RJ", id: "RJ" },
132
- { conteudo: "RN", id: "RN" },
133
- { conteudo: "RS", id: "RS" },
134
- { conteudo: "RO", id: "RO" },
135
- { conteudo: "RR", id: "RR" },
136
- { conteudo: "SC", id: "SC" },
137
- { conteudo: "SP", id: "SP" },
138
- { conteudo: "SE", id: "SE" },
139
- { conteudo: "TO", id: "TO" },
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", ["insereEvento", "insereNotificacao", "removeCarregando"]),
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.removeCarregando(["buscarCep"]);
158
+ self.removeLoading(["buscarCep"]);
159
159
  }, 300);
160
160
  });
161
161
  },
162
- carregaDados(dados) {
163
- this.endereco.cep = dados.cep;
164
- this.endereco.logradouro = dados.logradouro;
165
- this.endereco.numero = dados.complemento;
166
- this.endereco.bairro = dados.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
- dados.localidade == undefined ? dados.municipio : dados.localidade;
169
- this.endereco.estado = { id: dados.uf, conteudo: dados.uf };
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.dados);
188
+ this.carregaDados(evento.data);
189
189
  }
190
190
  },
191
191
  deep: true,
@@ -1,7 +1,7 @@
1
1
  const dicas = [];
2
2
 
3
3
  const manutencao = [
4
- // { formNome: "opcoesFaturamento", campo: "unificar", titulo: "Unificar Cliente", descricao: "Ao marcar essa opção" },
4
+ // { formName: "opcoesFaturamento", field: "unificar", title: "Unificar Cliente", description: "Ao marcar essa opção" },
5
5
 
6
6
  ];
7
7
 
@@ -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).usuario.usuarioLogado.token
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).usuario.usuarioLogado.token
12
+ Authorization: "Bearer " + JSON.parse(sessionStorage.vuex).user.userLogged.token
13
13
  };
14
14
  }
15
15
  }