@nixweb/nixloc-ui 0.0.121 → 0.0.124

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 (135) hide show
  1. package/docs/src/component/template/ModeloRelatorioView.drawio +2 -2
  2. package/docs/src/store/modulos/relatorio.drawio +2 -2
  3. package/package.json +77 -77
  4. package/public/styles/app.css +1 -1
  5. package/src/component/forms/{Botao.vue → Button.vue} +53 -57
  6. package/src/component/forms/CheckboxGroup.vue +63 -0
  7. package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +8 -8
  8. package/src/component/forms/{Cor.vue → Color.vue} +9 -9
  9. package/src/component/forms/DateTime.vue +55 -55
  10. package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +58 -58
  11. package/src/component/forms/EditorHtml.vue +123 -0
  12. package/src/component/forms/FileUpload.vue +189 -0
  13. package/src/component/forms/InputDecimal.vue +137 -0
  14. package/src/component/forms/InputNumber.vue +149 -0
  15. package/src/component/forms/InputPassword.vue +135 -0
  16. package/src/component/forms/InputText.vue +157 -0
  17. package/src/component/forms/Modal.vue +15 -15
  18. package/src/component/forms/RadioGroup.vue +50 -0
  19. package/src/component/forms/Select.vue +337 -0
  20. package/src/component/forms/SelectStatic.vue +120 -0
  21. package/src/component/forms/TextArea.vue +126 -0
  22. package/src/component/forms/Toggle.vue +13 -13
  23. package/src/component/layout/{Conta.vue → Account.vue} +28 -28
  24. package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
  25. package/src/component/layout/Badge.vue +23 -23
  26. package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
  27. package/src/component/layout/{Topo.vue → Header.vue} +5 -5
  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 +15 -15
  35. package/src/component/layout/Wizard.vue +3 -3
  36. package/src/component/shared/{CodigoEditor.vue → CodeEditor.vue} +25 -25
  37. package/src/component/shared/Collapse.vue +131 -0
  38. package/src/component/shared/Confirmation.vue +80 -0
  39. package/src/component/shared/{DocumentoEditor.vue → DocumentEditor.vue} +10 -16
  40. package/src/component/shared/{DocumentoPreview.vue → DocumentPreview.vue} +2 -2
  41. package/src/component/shared/ExportExcel.vue +67 -0
  42. package/src/component/shared/{ExportarPDF.vue → ExportPDF.vue} +18 -18
  43. package/src/component/shared/HeaderPrint.vue +36 -0
  44. package/src/component/shared/HorizontalFilter.vue +59 -0
  45. package/src/component/shared/LegendaParametro.vue +22 -22
  46. package/src/component/shared/{Carregando.vue → Loading.vue} +16 -16
  47. package/src/component/shared/LoadingMoreButton.vue +23 -0
  48. package/src/component/shared/Messages.vue +83 -0
  49. package/src/component/shared/{Paginacao.vue → Pagination.vue} +12 -12
  50. package/src/component/shared/ProgressBar.vue +21 -0
  51. package/src/component/shared/{BotaoConsulta.vue → QueryButton.vue} +16 -16
  52. package/src/component/shared/SaveCancel.vue +56 -0
  53. package/src/component/shared/{Pesquisa.vue → Search.vue} +46 -46
  54. package/src/component/shared/Table.vue +243 -0
  55. package/src/component/shared/TableButton.vue +36 -0
  56. package/src/component/shared/{Registro.vue → TableTotalRecords.vue} +7 -7
  57. package/src/component/shared/{ResumoTabela.vue → TableTotalization.vue} +12 -8
  58. package/src/component/shared/Tip.vue +42 -0
  59. package/src/component/shared/Toast.vue +7 -7
  60. package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +24 -24
  61. package/src/component/shared/query-builder/AddRule.vue +187 -0
  62. package/src/component/shared/query-builder/ConvertToOdata.js +80 -0
  63. package/src/component/shared/query-builder/DynamicComponent.vue +107 -0
  64. package/src/component/shared/query-builder/Fields.vue +127 -0
  65. package/src/component/shared/query-builder/ListDynamicComponent.vue +42 -0
  66. package/src/component/shared/query-builder/QueryBuilder.vue +25 -120
  67. package/src/component/shared/query-builder/{Filtro.vue → Rules.vue} +13 -18
  68. package/src/component/shared/query-builder/SelectRule.vue +96 -0
  69. package/src/component/shared/query-builder/Tags.vue +14 -14
  70. package/src/component/shared/query-builder/{Rodape.vue → Totalization.vue} +10 -10
  71. package/src/component/template/AddEditReport.vue +106 -0
  72. package/src/component/template/ListViewWithHandlerData.vue +231 -0
  73. package/src/component/template/ViewTemplateConfiguration.vue +69 -0
  74. package/src/component/template/ViewTemplateDocumentView.vue +227 -0
  75. package/src/component/template/ViewTemplateReportList.vue +230 -0
  76. package/src/component/template/ViewTemplateReportPreview.vue +500 -0
  77. package/src/component/template/ViewTemplateWithSalveCancel.vue +32 -0
  78. package/src/component/template/ViewTemplateWithTable.vue +49 -0
  79. package/src/component/template/model/Report.js +6 -0
  80. package/src/component/value-objects/DadosContato.vue +34 -35
  81. package/src/component/value-objects/DadosPessoa.vue +58 -58
  82. package/src/component/value-objects/Endereco.vue +96 -97
  83. package/src/config/dicas.js +1 -1
  84. package/src/config/token.js +2 -2
  85. package/src/store/modules/generic.js +489 -0
  86. package/src/store/modules/report.js +246 -0
  87. package/src/store/modules/user.js +38 -0
  88. package/src/store/modules/validation.js +39 -0
  89. package/src/store/store.js +4 -4
  90. package/src/component/forms/ArquivoUpload.vue +0 -199
  91. package/src/component/forms/CheckboxMultiplo.vue +0 -63
  92. package/src/component/forms/Decimal.vue +0 -137
  93. package/src/component/forms/Escolher.vue +0 -335
  94. package/src/component/forms/EscolherEstatico.vue +0 -139
  95. package/src/component/forms/Numero.vue +0 -153
  96. package/src/component/forms/Opcoes.vue +0 -51
  97. package/src/component/forms/Senha.vue +0 -139
  98. package/src/component/forms/Texto.vue +0 -161
  99. package/src/component/forms/TextoArea.vue +0 -126
  100. package/src/component/forms/TextoEditor.vue +0 -123
  101. package/src/component/layout/Painel.vue +0 -142
  102. package/src/component/shared/BotaoCarregarMais.vue +0 -23
  103. package/src/component/shared/CabecalhoImpressao.vue +0 -36
  104. package/src/component/shared/Confirmacao.vue +0 -80
  105. package/src/component/shared/Dica.vue +0 -42
  106. package/src/component/shared/EsconderMostrar.vue +0 -131
  107. package/src/component/shared/ExportarExcel.vue +0 -67
  108. package/src/component/shared/FiltroHorizontal.vue +0 -59
  109. package/src/component/shared/Mensagem.vue +0 -86
  110. package/src/component/shared/Progresso.vue +0 -21
  111. package/src/component/shared/SalvarCancelar.vue +0 -56
  112. package/src/component/shared/Tabela.vue +0 -275
  113. package/src/component/shared/TabelaBotao.vue +0 -36
  114. package/src/component/shared/query-builder/Campo.vue +0 -116
  115. package/src/component/shared/query-builder/ConverteParaOdata.js +0 -77
  116. package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
  117. package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
  118. package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
  119. package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
  120. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
  121. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -187
  122. package/src/component/shared/query-builder/main.js +0 -81
  123. package/src/component/template/ModeloAdicionarModificarView.vue +0 -32
  124. package/src/component/template/ModeloDocumentoView.vue +0 -227
  125. package/src/component/template/ModeloLista.vue +0 -231
  126. package/src/component/template/ModeloRelatorioListaView.vue +0 -227
  127. package/src/component/template/ModeloRelatorioView.vue +0 -489
  128. package/src/component/template/ModeloSubView.vue +0 -69
  129. package/src/component/template/ModeloView.vue +0 -49
  130. package/src/component/template/Relatorio.js +0 -10
  131. package/src/component/template/RelatorioAdicionarModificar.vue +0 -106
  132. package/src/store/modulos/generic.js +0 -494
  133. package/src/store/modulos/relatorio.js +0 -204
  134. package/src/store/modulos/usuario.js +0 -38
  135. package/src/store/modulos/validation.js +0 -39
@@ -1,227 +0,0 @@
1
- <template>
2
- <div>
3
- <Painel
4
- :modulo="painel.modulo"
5
- :titulo="painel.titulo"
6
- :mostrarFiltroVertical="painel.mostrarFiltroVertical"
7
- :mostrarPesquisa="painel.mostrarPesquisa"
8
- :mostrarBotoes="painel.mostrarBotoes"
9
- >
10
- <div slot="conteudo-principal">
11
- <b-row>
12
- <b-col xs="12" sm="12" md="12" lg="6" xl="6" v-if="todos.salvo.length > 0">
13
- <div><i class="fas fa-file-alt icone-salvo"></i></i> Personalizado</div>
14
- <hr class="hr" />
15
- <div class="div-moldura" v-for="relatorio in todos.salvo">
16
- <div>
17
- <Moldura :bordaArredondada="12">
18
- <b-row>
19
- <b-col sm="1">
20
- <i class="fas fa-file-alt icone-report"></i>
21
- </b-col>
22
- <b-col sm="10" @click="navegarPara(relatorio)">
23
- <div>{{ relatorio.nome }}</div>
24
- </b-col>
25
- <b-col sm="1">
26
- <Confirmacao
27
- titulo="Deseja excluir?"
28
- tipo="perigo"
29
- :dados="relatorio"
30
- :confirmado="excluir"
31
- >
32
- <div class="text-right">
33
- <i class="fas fa-times-circle icone-remover"></i>
34
- </div>
35
- </Confirmacao>
36
- </b-col>
37
- </b-row>
38
- </Moldura>
39
- </div>
40
- </div>
41
- </b-col>
42
- <b-col xs="12" sm="12" md="12" lg="6" xl="6">
43
- <div><i class="fas fa-file-chart-line"></i> Padrão</div>
44
- <hr class="hr" />
45
- <div class="div-moldura" v-for="relatorio in todos.padrao">
46
- <div>
47
- <Moldura :bordaArredondada="12">
48
- <b-row>
49
- <b-col sm="1">
50
- <i class="fas fa-file-alt icone-report"></i>
51
- </b-col>
52
- <b-col sm="11" @click="navegarPara(relatorio)">
53
- <div class="lado-a-lado">{{ relatorio.nome }}</div>
54
- </b-col>
55
- </b-row>
56
- </Moldura>
57
- </div>
58
- </div>
59
- </b-col>
60
- </b-row>
61
- </div>
62
- </Painel>
63
- </div>
64
- </template>
65
-
66
- <script>
67
- import Painel from "@nixweb/nixloc-ui/src/component/layout/Painel.vue";
68
- import Moldura from "@nixweb/nixloc-ui/src/component/layout/Moldura";
69
- import Confirmacao from "@nixweb/nixloc-ui/src/component/shared/Confirmacao";
70
-
71
- import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
72
-
73
- export default {
74
- name: "ModeloRelatorioListaView",
75
- components: { Painel, Moldura, Confirmacao },
76
- props: {
77
- painel: Object,
78
- relatorios: Object,
79
- },
80
- data() {
81
- return {
82
- todos: {},
83
- urlObterTodos: "/api/v1/shared/relatorio/obter-todos",
84
- urlRemover: "/api/v1/shared/relatorio/remover",
85
- };
86
- },
87
- computed: {
88
- ...mapState("generic", ["pesquisa", "buscouPesquisa", "limpouPesquisa"]),
89
- },
90
- mounted() {
91
- this.obterTodos();
92
- this.todos = JSON.parse(JSON.stringify(this.relatorios)); // remove observable
93
- },
94
- methods: {
95
- ...mapMutations("generic", ["removeCarregando"]),
96
- ...mapMutations("relatorio", [
97
- "atualizaFiltroSelecionado",
98
- "atualizaCampoOrdenado",
99
- "atualizaOpcoesValorInicial",
100
- ]),
101
- ...mapActions("generic", ["getApi", "deleteAllApi"]),
102
- obterTodos() {
103
- let obj = { modulo: this.painel.modulo };
104
- let params = { url: this.urlObterTodos, obj: obj };
105
- this.getApi(params).then((response) => {
106
- this.todos.salvo = [];
107
- let self = this;
108
- response.conteudo.dados.forEach((item) => {
109
- const consulta = JSON.parse(item.consulta);
110
- let obj = {
111
- id: item.id,
112
- nome: item.nome,
113
- nomeRota: consulta.nomeRota,
114
- filtro: consulta.filtro,
115
- campo: consulta.campo,
116
- ordenacao: consulta.ordenacao,
117
- };
118
- self.todos.salvo.push(obj);
119
- });
120
- this.removeCarregando(["painel"]);
121
- });
122
- },
123
- navegarPara(relatorio) {
124
- if (relatorio.filtro) {
125
- let filtroSelecionado = { logicalOperator: "all", children: relatorio.filtro };
126
- this.atualizaOpcoesValorInicial(relatorio.campo);
127
- this.atualizaCampoOrdenado(relatorio.ordenacao);
128
- this.atualizaFiltroSelecionado(filtroSelecionado);
129
- } else {
130
- this.atualizaOpcoesValorInicial([]);
131
- }
132
- this.$router.push({
133
- name: relatorio.nomeRota,
134
- });
135
- },
136
- excluir(dados) {
137
- let selecionados = [];
138
- selecionados.push(dados.id);
139
-
140
- let params = {
141
- url: this.urlRemover,
142
- selecionados: selecionados,
143
- };
144
-
145
- this.deleteAllApi(params).then((reponse) => {
146
- if (reponse.sucesso) this.obterTodos();
147
- });
148
- },
149
- },
150
- watch: {
151
- buscouPesquisa: function () {
152
- let padrao = [];
153
- let salvo = [];
154
- let self = this;
155
- setTimeout(function () {
156
- self.todos.padrao.forEach(function (item) {
157
- if (self.pesquisa.filtro.conteudo == "igual") {
158
- if (item.nome == self.pesquisa.conteudo) padrao.push(item);
159
- }
160
-
161
- if (self.pesquisa.filtro.conteudo == "contem") {
162
- if (item.nome.includes(self.pesquisa.conteudo)) padrao.push(item);
163
- }
164
- });
165
-
166
- self.todos.salvo.forEach(function (item) {
167
- if (self.pesquisa.filtro.conteudo == "igual") {
168
- if (item.nome == self.pesquisa.conteudo) salvo.push(item);
169
- }
170
-
171
- if (self.pesquisa.filtro.conteudo == "contem") {
172
- if (item.nome.includes(self.pesquisa.conteudo)) salvo.push(item);
173
- }
174
- });
175
-
176
- self.todos.salvo = salvo;
177
- self.todos.padrao = padrao;
178
-
179
- self.removeCarregando(["pesquisar", "limpar"]);
180
- }, 300);
181
- },
182
- limpouPesquisa: function () {
183
- let self = this;
184
- setTimeout(function () {
185
- self.todos = self.relatorios;
186
- self.obterTodos();
187
- self.removeCarregando(["pesquisar", "limpar"]);
188
- }, 300);
189
- },
190
- },
191
- };
192
- </script>
193
-
194
- <style scoped>
195
- .icone-salvo {
196
- color: #94aa2a;
197
- }
198
-
199
- .icone-remover {
200
- color: red;
201
- }
202
-
203
- .icone-report {
204
- font-size: 25px;
205
- opacity: 0.2;
206
- color: #577696;
207
- }
208
-
209
- .div-moldura {
210
- margin-bottom: 10px;
211
- cursor: pointer;
212
- }
213
-
214
- .div-moldura:hover {
215
- background-color: #fafafc;
216
- }
217
-
218
- .descricao {
219
- font-size: 13.5px;
220
- color: rgb(117, 117, 117);
221
- }
222
-
223
- .hr {
224
- background: #FAFAFC !important;
225
- height: 1px !important;
226
- }
227
- </style>