@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,20 +1,20 @@
1
1
  <template>
2
2
  <div>
3
- <div v-if="tipo == 'bolhas'" :class="{ carregando: centralizado }">
3
+ <div v-if="type == 'bubbles'" :class="{ loading: center }">
4
4
  <vue-loading
5
5
  type="bubbles"
6
- :color="cor"
7
- :size="{ width: largura + 'px', height: altura + 'px' }"
6
+ :color="color"
7
+ :size="{ width: width + 'px', height: height + 'px' }"
8
8
  ></vue-loading>
9
9
  </div>
10
- <div v-if="tipo == 'linha'">
10
+ <div v-if="type == 'line'">
11
11
  <div class="loader">
12
12
  <div class="loader__element"></div>
13
13
  </div>
14
14
  </div>
15
- <div :class="{ 'carregando-texto': centralizado }">
15
+ <div :class="{ 'loading-text': center }">
16
16
  <div>
17
- <div class="mensagem">{{ mensagem }}</div>
17
+ <div class="message">{{ message }}</div>
18
18
  </div>
19
19
  </div>
20
20
  </div>
@@ -22,35 +22,35 @@
22
22
 
23
23
  <script>
24
24
  export default {
25
- name: "Carregando",
25
+ name: "Loading",
26
26
  props: {
27
- altura: {
27
+ height: {
28
28
  type: Number,
29
29
  default: 70,
30
30
  },
31
- largura: {
31
+ width: {
32
32
  type: Number,
33
33
  default: 70,
34
34
  },
35
- centralizado: {
35
+ center: {
36
36
  type: Boolean,
37
37
  default: true,
38
38
  },
39
- cor: {
39
+ color: {
40
40
  type: String,
41
41
  default: "#D98621",
42
42
  },
43
- tipo: {
43
+ type: {
44
44
  type: String,
45
45
  default: "bolhas",
46
46
  },
47
- mensagem: String,
47
+ message: String,
48
48
  },
49
49
  };
50
50
  </script>
51
51
 
52
52
  <style scoped>
53
- .carregando {
53
+ .loading {
54
54
  position: absolute;
55
55
  left: 50%;
56
56
  top: 50%;
@@ -58,7 +58,7 @@ export default {
58
58
  transform: translate(-50%, -50%);
59
59
  }
60
60
 
61
- .carregando-texto {
61
+ .loading-text {
62
62
  position: absolute;
63
63
  left: 50%;
64
64
  top: 45%;
@@ -66,7 +66,7 @@ export default {
66
66
  transform: translate(-50%, -50%);
67
67
  }
68
68
 
69
- .mensagem {
69
+ .message {
70
70
  font-size: 15px;
71
71
  margin-top: 5px;
72
72
  }
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <div>
3
+ <Button
4
+ key="loadingMore"
5
+ eventName="loadingMore"
6
+ type="warning"
7
+ title="Carregar mais..."
8
+ classIcon="fas fa-redo"
9
+ size="medium"
10
+ />
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import Button from "../forms/Button.vue";
15
+ export default {
16
+ name: "LoadingMoreButton",
17
+ components: { Button },
18
+ data() {
19
+ return {};
20
+ },
21
+ methods: {},
22
+ };
23
+ </script>
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <div>
3
+ <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
+ <div>
5
+ <Alert type="danger">
6
+ <div v-for="notification in storageNotification">
7
+ {{ notification.message }}
8
+ </div>
9
+ </Alert>
10
+ </div>
11
+ <b-alert
12
+ v-show="false"
13
+ :show="countdown"
14
+ dismissible
15
+ variant="danger"
16
+ @dismissed="countdown = 0"
17
+ @dismiss-count-down="countdownChanged"
18
+ >
19
+ </b-alert>
20
+ </div>
21
+ </div>
22
+ </template>
23
+
24
+ <script>
25
+ import Alert from "../layout/Alert.vue";
26
+ import { mapState, mapMutations } from "vuex";
27
+
28
+ export default {
29
+ components: { Alert },
30
+ name: "Messages",
31
+ data() {
32
+ return {
33
+ maxSeconds: 10,
34
+ countdown: 10,
35
+ storageNotification: [],
36
+ };
37
+ },
38
+ computed: {
39
+ ...mapState("generic", ["notifications", "modal"]),
40
+ },
41
+ watch: {
42
+ notifications() {
43
+ if (this.notifications.length > 0) {
44
+ this.storageNotification = this.notifications;
45
+ this.countdown = 5;
46
+ }
47
+ },
48
+ countdown() {
49
+ if (this.countdown === 0) {
50
+ this.storageNotification = [];
51
+ this.removeNotificarions();
52
+ }
53
+ },
54
+ },
55
+ methods: {
56
+ ...mapMutations("generic", ["removeNotificarions"]),
57
+ countdownChanged(countdown) {
58
+ this.countdown = countdown;
59
+ },
60
+ messages(notifications) {
61
+ var message = "";
62
+ notifications.forEach(function (notification) {
63
+ message += notification.message + " ";
64
+ });
65
+
66
+ return message;
67
+ },
68
+ },
69
+ };
70
+ </script>
71
+ <style scoped>
72
+ .div-message {
73
+ margin-top: 15px;
74
+ }
75
+
76
+ .div-message-modal {
77
+ margin-bottom: 5px;
78
+ }
79
+
80
+ .invalid {
81
+ color: #f0134d;
82
+ }
83
+ </style>
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div>
3
3
  <b-pagination
4
- v-model="paginacao(chave).paginaAtual"
4
+ v-model="pagination(key).currentPage"
5
5
  prev-text="Anterior"
6
6
  next-text="Próximo"
7
7
  align="right"
8
8
  :hide-goto-end-buttons="true"
9
- :per-page="paginacao(chave).totalPorPagina"
10
- :total-rows="totalRegistros"
9
+ :per-page="pagination(key).totalPerPage"
10
+ :total-rows="totalRecords"
11
11
  ></b-pagination>
12
12
  </div>
13
13
  </template>
@@ -16,23 +16,23 @@
16
16
  import { mapGetters, mapMutations } from "vuex";
17
17
 
18
18
  export default {
19
- name: "Paginacao",
19
+ name: "Pagination",
20
20
  props: {
21
- chave: String,
22
- totalRegistros: Number,
21
+ key: String,
22
+ totalRecords: Number,
23
23
  },
24
24
  created() {
25
- this.inserePaginacao({
26
- chave: this.chave,
27
- paginaAtual: 1,
28
- totalPorPagina: 10,
25
+ this.addPagination({
26
+ key: this.key,
27
+ currentPage: 1,
28
+ totalPerPage: 10,
29
29
  });
30
30
  },
31
31
  computed: {
32
- ...mapGetters("generic", ["paginacao"]),
32
+ ...mapGetters("generic", ["pagination"]),
33
33
  },
34
34
  methods: {
35
- ...mapMutations("generic", ["inserePaginacao"]),
35
+ ...mapMutations("generic", ["addPagination"]),
36
36
  },
37
37
  };
38
38
  </script>
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <div>
3
+ <progress-bar :size="size" :text="text" :val="value" :max="max"></progress-bar>
4
+ </div>
5
+ </template>
6
+ <script>
7
+ import ProgressBar from "vue-simple-progress";
8
+
9
+ export default {
10
+ name: "ProgressBar",
11
+ components: {
12
+ ProgressBar,
13
+ },
14
+ props: {
15
+ text: String,
16
+ value: Number,
17
+ max: Number,
18
+ size: String,
19
+ },
20
+ };
21
+ </script>
@@ -1,38 +1,38 @@
1
1
  <template>
2
2
  <div>
3
- <div class="alinhamento" v-for="item in itens" :key="item.titulo">
3
+ <div class="alignment" v-for="item in items" :key="item.title">
4
4
  <button
5
5
  :class="{
6
- 'botao-consulta': true,
6
+ 'button-query': true,
7
7
  }"
8
- @click="executar(item.valor)"
8
+ @click="execute(item.valor)"
9
9
  >
10
- <span class="icone"> <i :class="item.classeIcone"></i></span>
11
- <span class="titulo">{{ item.titulo }}</span>
10
+ <span class="icon"> <i :class="item.classIcon"></i></span>
11
+ <span class="title">{{ item.title }}</span>
12
12
  </button>
13
13
  </div>
14
14
  </div>
15
15
  </template>
16
16
  <script>
17
17
  export default {
18
- name: "BotaoConsulta",
19
- props: ["itens", "value", "clique"],
18
+ name: "QueryButton",
19
+ props: ["items", "value", "clicked"],
20
20
  data() {
21
21
  return {
22
- valorAtual: 0,
22
+ currentValue: 0,
23
23
  };
24
24
  },
25
25
  methods: {
26
- executar(valor) {
27
- this.valorAtual = valor;
26
+ execute(valor) {
27
+ this.currentValue = valor;
28
28
  this.$emit("input", valor);
29
- if (this.clique) this.clique();
29
+ if (this.clicked) this.clicked();
30
30
  },
31
31
  },
32
32
  };
33
33
  </script>
34
34
  <style scoped>
35
- .botao-consulta {
35
+ .button-query {
36
36
  cursor: pointer;
37
37
  height: 35px;
38
38
  border: 1px solid #d5d5d5;
@@ -46,21 +46,21 @@ export default {
46
46
  font-weight: normal;
47
47
  }
48
48
 
49
- .botao-consulta:hover {
49
+ .button-query:hover {
50
50
  background-color: #d98621;
51
51
  color: white;
52
52
  border: none;
53
53
  }
54
54
 
55
- .icone {
55
+ .icon {
56
56
  font-size: 13px;
57
57
  }
58
58
 
59
- .titulo {
59
+ .title {
60
60
  font-size: 16px;
61
61
  }
62
62
 
63
- .alinhamento {
63
+ .alignment {
64
64
  display: inline-block;
65
65
  }
66
66
  </style>
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <div>
3
+ <FixedBar posicao="rodape" v-show="formDirty && !modal.open">
4
+ <div>
5
+ <Button
6
+ key="cancelSaveCancel"
7
+ eventName="cancelSaveCancel"
8
+ title="Cancelar"
9
+ type="danger"
10
+ size="medium"
11
+ :clicked="cancel"
12
+ />
13
+ <Button
14
+ key="saveSaveCancel"
15
+ eventName="saveSaveCancel"
16
+ title="Salvar"
17
+ type="success"
18
+ :disabled="!isFormValid(formName)"
19
+ size="medium"
20
+ />
21
+ </div>
22
+ </FixedBar>
23
+ </div>
24
+ </template>
25
+ <script>
26
+ import FixedBar from "@nixweb/nixloc-ui/src/component/layout/FixedBar.vue";
27
+ import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
28
+
29
+ import { mapState, mapMutations, mapGetters } from "vuex";
30
+
31
+ export default {
32
+ name: "SaveCancel",
33
+ components: { FixedBar, Button },
34
+ props: {
35
+ formName: String,
36
+ },
37
+ computed: {
38
+ ...mapState("validation", ["formDirty"]),
39
+ ...mapGetters("validation", ["isFormValid"]),
40
+ ...mapState("generic", ["modal"]),
41
+ },
42
+ methods: {
43
+ ...mapMutations("validation", ["updateFormDirty"]),
44
+ ...mapMutations("generic", ["removeLoading"]),
45
+ cancel() {
46
+ this.updateFormDirty(false);
47
+ this.removeLoading(["cancelSaveCancel"]);
48
+ },
49
+ },
50
+ watch: {
51
+ "modal.open": function () {
52
+ this.updateFormDirty(false);
53
+ },
54
+ },
55
+ };
56
+ </script>
@@ -2,28 +2,28 @@
2
2
  <b-row>
3
3
  <b-col xs="12" sm="12" md="12" lg="7" xl="6">
4
4
  <div class="margem">
5
- <div class="moldura">
5
+ <div class="molded">
6
6
  <b-row>
7
7
  <b-col sm="9">
8
8
  <input
9
9
  type="text"
10
- name="pesquisar"
10
+ name="search"
11
11
  placeholder="Pesquisar ..."
12
12
  @keyup="verificaLimpaPesquisa()"
13
13
  @keyup.enter.prevent="buscaPesquisa()"
14
- v-model="pesquisa.conteudo"
14
+ v-model="search.content"
15
15
  /></b-col>
16
16
  <b-col sm="3">
17
- <div class="div-escolher">
18
- <EscolherEstatico
19
- campoAlvo="filtro"
20
- :somenteConsulta="true"
21
- :valorInicial="{ conteudo: 'Contém', id: 'contem' }"
22
- v-model="pesquisa.filtro"
23
- :mostrarBorda="false"
24
- :dados="[
25
- { conteudo: 'Contém', id: 'contem' },
26
- { conteudo: 'Igual', id: 'igual' },
17
+ <div class="div-select">
18
+ <SelectStatic
19
+ fieldTarget="filter"
20
+ :onlyQuery="true"
21
+ :initialValue="{ content: 'Contém', id: 'contem' }"
22
+ v-model="search.filter"
23
+ :showBorder="false"
24
+ :data="[
25
+ { content: 'Contém', id: 'contem' },
26
+ { content: 'Igual', id: 'igual' },
27
27
  ]"
28
28
  />
29
29
  </div>
@@ -33,22 +33,22 @@
33
33
  </div>
34
34
  </b-col>
35
35
  <b-col xs="4" sm="4" md="4" lg="4" xl="4">
36
- <div class="div-botao">
37
- <Botao
38
- chave="pesquisar"
39
- tipo="info"
40
- titulo="Buscar"
41
- classeIcone="fas fa-search"
42
- tamanho="pequeno"
43
- :clique="buscaPesquisa"
36
+ <div class="div-button">
37
+ <Button
38
+ key="search"
39
+ type="info"
40
+ title="Buscar"
41
+ classIcon="fas fa-search"
42
+ size="small"
43
+ :clicked="buscaPesquisa"
44
44
  />
45
- <Botao
46
- chave="limpar"
47
- tipo="info"
48
- titulo="Limpar"
49
- classeIcone="fas fa-broom"
50
- tamanho="pequeno"
51
- :clique="limpaPesquisa"
45
+ <Button
46
+ key="clean"
47
+ type="info"
48
+ title="Limpar"
49
+ classIcon="fas fa-broom"
50
+ size="small"
51
+ :clicked="limpaPesquisa"
52
52
  />
53
53
  </div>
54
54
  </b-col>
@@ -56,47 +56,47 @@
56
56
  </template>
57
57
 
58
58
  <script>
59
- import Botao from "../forms/Botao";
60
- import EscolherEstatico from "../forms/EscolherEstatico.vue";
59
+ import Button from "../forms/Button";
60
+ import SelectStatic from "../forms/SelectStatic.vue";
61
61
 
62
62
  import { mapMutations } from "vuex";
63
63
 
64
64
  export default {
65
- components: { Botao, EscolherEstatico },
65
+ components: { Button, SelectStatic },
66
66
  name: "Pesquisa",
67
67
  computed: {
68
- pesquisa: {
68
+ search: {
69
69
  get() {
70
- return this.$store.state.generic.pesquisa;
70
+ return this.$store.state.generic.search;
71
71
  },
72
72
  set(value) {
73
- this.atualizaCampoPesquisa(value);
73
+ this.updateSearch(value);
74
74
  },
75
75
  },
76
76
  },
77
77
  methods: {
78
78
  ...mapMutations("generic", [
79
- "atualizaCampoPesquisa",
80
- "buscouPesquisa",
81
- "limpouPesquisa",
79
+ "updateSearch",
80
+ "executedSearch",
81
+ "clearedSearch",
82
82
  ]),
83
83
  buscaPesquisa() {
84
- this.buscouPesquisa();
84
+ this.executedSearch();
85
85
  },
86
86
  limpaPesquisa() {
87
- this.limpouPesquisa();
88
- let pesquisa = { conteudo: "", filtro: { conteudo: "contem", id: "contem" } };
89
- this.atualizaCampoPesquisa(pesquisa);
87
+ this.clearedSearch();
88
+ let search = { content: "", filter: { content: "contem", id: "contem" } };
89
+ this.updateSearch(search);
90
90
  },
91
91
  verificaLimpaPesquisa() {
92
- if (this.pesquisa.conteudo.length == 0) this.limpouPesquisa();
92
+ if (this.search.content.length == 0) this.clearedSearch();
93
93
  },
94
94
  },
95
95
  };
96
96
  </script>
97
97
 
98
98
  <style scoped>
99
- .icone-pesquisa {
99
+ .icon-search {
100
100
  font-size: 20px;
101
101
  color: #577696;
102
102
  display: inline-block;
@@ -110,7 +110,7 @@ export default {
110
110
  padding-top: 28px;
111
111
  }
112
112
 
113
- .div-botao {
113
+ .div-button {
114
114
  padding-top: 33px;
115
115
  }
116
116
 
@@ -118,7 +118,7 @@ export default {
118
118
  color: #b8c4d2;
119
119
  }
120
120
 
121
- .moldura {
121
+ .molded {
122
122
  width: 100%;
123
123
  height: 45px;
124
124
  font-size: 14px;
@@ -146,7 +146,7 @@ input[type="text"]:focus {
146
146
  outline: none;
147
147
  }
148
148
 
149
- .div-escolher {
149
+ .div-select {
150
150
  margin-top: -30px;
151
151
  margin-right: 5px;
152
152
  }