@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
@@ -1,15 +1,15 @@
1
1
  <template>
2
2
  <div>
3
3
  <div
4
- v-show="!carregando('painel')"
5
- class="barra"
6
- :style="'min-height:' + altura + 'px;'"
4
+ v-show="!isLoading('panel')"
5
+ class="bar"
6
+ :style="'min-height:' + height + 'px;'"
7
7
  :class="{
8
- topo: posicao == 'topo',
9
- rodape: posicao == 'rodape',
8
+ top: position == 'top',
9
+ footer: position == 'footer',
10
10
  }"
11
11
  >
12
- <div class="tamanho">
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 { mapState, mapGetters, mapMutations } from "vuex";
20
+ import { mapGetters } from "vuex";
21
21
 
22
22
  export default {
23
- name: "BarraFixa",
23
+ name: "FixedBar",
24
24
  props: {
25
- posicao: {
25
+ position: {
26
26
  type: String,
27
- default: "topo",
27
+ default: "top",
28
28
  },
29
- altura: {
29
+ height: {
30
30
  type: Number,
31
31
  default: 70,
32
32
  },
33
33
  },
34
34
  computed: {
35
- ...mapGetters("generic", ["carregando"]),
35
+ ...mapGetters("generic", ["isLoading"]),
36
36
  },
37
37
  };
38
38
  </script>
39
39
 
40
40
  <style scoped>
41
- .barra {
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
- .tamanho {
51
+ .size {
52
52
  max-width: 1600px;
53
53
  margin: auto;
54
54
  }
55
55
 
56
- .topo {
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
- .rodape {
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="mensagem">Por favor aguarde, estamos trabalhando...</div>
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: "CarregandoTelaInteira",
19
+ name: "LoadingFullPage",
20
20
  };
21
21
  </script>
22
22
  <style scoped>
23
- .mensagem {
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-aberto': subMenuPrimeiroNivel }">
2
+ <div class="menu-container" :class="{ 'menu-open': subMenuFirstLevel }">
3
3
  <ul class="menu">
4
- <li v-if="urlImagem">
4
+ <li v-if="urlImage">
5
5
  <div class="div-logo text-center">
6
- <img :src="urlImagem" />
6
+ <img :src="urlImage" />
7
7
  </div>
8
8
  </li>
9
9
  <li>
10
- <div :class="{ 'menu-ativo': menuAtivo == 'Dashboard' }">
10
+ <div :class="{ 'menu-active': menuActive == 'Dashboard' }">
11
11
  <a
12
12
  href="#"
13
- @click.prevent="navegarPara({ nomeRota: 'dashboard', modulo: 'Dashboard' })"
14
- :class="sessaoDestaque('home')"
13
+ @click.prevent="navegateTo({ routeName: 'dashboard', module: 'Dashboard' })"
14
+ :class="highlightSession('home')"
15
15
  >
16
- <div class="div-icone lado-a-lado">
16
+ <div class="div-icon side-by-side">
17
17
  <i
18
18
  :class="{
19
- 'icone-ativo': menuAtivo == 'Dashboard',
20
- 'icone-normal': menuAtivo != 'Dashboard',
19
+ 'icon-active': menuActive == 'Dashboard',
20
+ 'icon-normal': menuActive != 'Dashboard',
21
21
  }"
22
- class="fas fa-chart-area icone-dash"
22
+ class="fas fa-chart-area icon-dash"
23
23
  ></i>
24
24
  </div>
25
- <div class="titulo">Dashboard</div>
25
+ <div class="title">Dashboard</div>
26
26
  </a>
27
27
  </div>
28
28
  </li>
29
- <li v-for="(item, index) in menuFiltro(true)" :key="index">
30
- <div :class="{ 'menu-ativo': menuAtivo == item.modulo }">
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="abrirSubMenu(item.modulo)"
34
- :class="sessaoDestaque(item.modulo)"
33
+ @click.prevent="openSubMenu(item.module)"
34
+ :class="highlightSession(item.module)"
35
35
  >
36
- <div class="div-icone lado-a-lado">
36
+ <div class="div-icon side-by-side">
37
37
  <span
38
38
  :class="{
39
- 'icone-ativo': menuAtivo == item.modulo,
40
- 'icone-normal': menuAtivo != item.modulo,
39
+ 'icon-active': menuActive == item.module,
40
+ 'icon-normal': menuActive != item.module,
41
41
  }"
42
42
  >
43
- <i :class="item.icone"></i>
43
+ <i :class="item.icon"></i>
44
44
  </span>
45
45
  </div>
46
- <div class="titulo">{{ item.titulo }}</div>
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="subMenuPrimeiroNivel">
53
+ <div class="context-menu-container" v-if="subMenuFirstLevel">
54
54
  <ul class="context-menu">
55
- <li v-for="(item, index) in subMenuFiltro(false)" :key="index">
56
- <h5 v-if="item.tipo === 'grupo'" class="context-menu__title">
57
- <span class="sub-titulo"> {{ item.grupoNome }}</span>
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="fecharSubMenu"
61
- class="context-menu__btn-close icone-fechar"
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="navegarPara(item)"
72
- :class="classeSubMenu(item.titulo)"
71
+ @click.prevent="navegateTo(item)"
72
+ :class="classSubMenu(item.title)"
73
73
  >
74
74
  <b-row>
75
- <b-col sm="1"> <i :class="item.icone" aria-hidden="true"></i></b-col>
75
+ <b-col sm="1"> <i :class="item.icon" aria-hidden="true"></i></b-col>
76
76
  <b-col sm="10">
77
- <span class="titulo-sub"> {{ item.titulo }}</span></b-col
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
- corBase: {
93
+ baseColor: {
94
94
  type: String,
95
95
  default: "#4680A5",
96
96
  },
97
- corBaseAtivo: {
97
+ baseColorActive: {
98
98
  type: String,
99
99
  default: "#3F529B",
100
100
  },
101
- urlImagem: String,
101
+ urlImage: String,
102
102
  },
103
103
  data() {
104
104
  return {
105
- modulo: "",
106
- subMenuPrimeiroNivel: false,
107
- menuAtivo: "Dashboard",
105
+ module: "",
106
+ subMenuFirstLevel: false,
107
+ menuActive: "Dashboard",
108
108
  };
109
109
  },
110
110
  methods: {
111
- abrirSubMenu(modulo) {
112
- this.subMenuPrimeiroNivel = true;
113
- this.modulo = modulo;
111
+ openSubMenu(module) {
112
+ this.subMenuFirstLevel = true;
113
+ this.module = module;
114
114
  },
115
- fecharSubMenu() {
116
- this.subMenuPrimeiroNivel = false;
115
+ hideSubMenu() {
116
+ this.subMenuFirstLevel = false;
117
117
  this.menuItens = [];
118
118
  },
119
- sessaoDestaque(section) {
119
+ highlightSession(section) {
120
120
  return {
121
121
  menu__link: true,
122
122
  "menu__link--active": section === this.contextSection,
123
123
  };
124
124
  },
125
- classeSubMenu(subMenuName) {
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
- navegarPara(item) {
131
+ navegateTo(item) {
132
132
  this.$router.push({
133
- name: item.nomeRota,
133
+ name: item.routeName,
134
134
  });
135
- this.fecharSubMenu();
135
+ this.hideSubMenu();
136
136
  },
137
- menuFiltro(ehModulo) {
138
- let filtro = [];
139
- this.menu.itens.forEach(function (obj) {
140
- if (obj.ehModulo == ehModulo) filtro.push(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 filtro;
142
+ return filter;
143
143
  },
144
- subMenuFiltro(ehModulo) {
145
- let filtro = [];
144
+ subMenuFilter(isModule) {
145
+ let filter = [];
146
146
  let self = this;
147
- this.menu.itens.forEach(function (obj) {
148
- if (obj.ehModulo == ehModulo && obj.modulo === self.modulo) filtro.push(obj);
147
+ this.menu.items.forEach(function (obj) {
148
+ if (obj.isModule == isModule && obj.module === self.module) filter.push(obj);
149
149
  });
150
- return filtro;
150
+ return filter;
151
151
  },
152
152
  },
153
153
  computed: {
154
- ...mapState("usuario", ["menu"]),
154
+ ...mapState("user", ["menu"]),
155
155
  },
156
156
  watch: {
157
157
  $route: {
158
158
  handler: function (router) {
159
- this.menuAtivo = router.matched[0].props.default.modulo;
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-aberto {
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-icone {
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
- .icone-fechar {
185
+ .icon-close {
186
186
  margin-right: 60px;
187
187
  }
188
- .icone {
188
+ .icon {
189
189
  font-size: 20px;
190
190
  }
191
- .icone-dash {
191
+ .icon-dash {
192
192
  font-size: 22px;
193
193
  }
194
- .titulo {
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
- .titulo-sub {
201
+ .title-sub {
202
202
  margin-left: 5px;
203
203
  font-weight: 400;
204
204
  }
205
- .sub-titulo {
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="moldura" :style="'border-radius:' + bordaArredondada + 'px'">
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: "Moldura",
9
+ name: "Molded",
10
10
  props: {
11
- bordaArredondada: {
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
- .moldura {
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>
@@ -11,7 +11,7 @@ export default {
11
11
  name: "Popover",
12
12
  props: {
13
13
  nome: String,
14
- largura: Number,
14
+ width: Number,
15
15
  },
16
16
  };
17
17
  </script>
@@ -1,10 +1,8 @@
1
1
  <template>
2
2
  <div
3
3
  :id="id"
4
- class="barra-rolagem div"
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: "BarraRolagem",
15
+ name: "Scrollbar",
18
16
  props: {
19
17
  id: String,
20
- alturaMaxima: Number,
21
- alturaMinima: Number,
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.insereEvento({
29
- nome: "barraRolagemFim",
26
+ this.addEvent({
27
+ nome: "endScrollbar",
30
28
  });
31
29
  }
32
30
  });
33
31
  },
34
32
  methods: {
35
- ...mapMutations("generic", ["insereEvento"]),
33
+ ...mapMutations("generic", ["addEvent"]),
36
34
  },
37
35
  };
38
36
  </script>
39
37
 
40
38
  <style scoped>
41
- .div {
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()">{{ titulo }}: {{ valor }}</span>
5
- <i @click="remover()" class="icone fas fa-times-circle"></i>
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
- titulo: String,
16
+ title: String,
17
17
  valor: String,
18
18
  nomeEvento: String,
19
19
  dadosEvento: Object,
20
20
  },
21
21
  methods: {
22
- ...mapMutations("generic", ["insereEvento"]),
22
+ ...mapMutations("generic", ["addEvent"]),
23
23
  executar() {
24
24
  if (this.nomeEvento)
25
- this.insereEvento({
25
+ this.addEvent({
26
26
  nome: this.nomeEvento,
27
- dados: this.dadosEvento,
27
+ data: this.dadosEvento,
28
28
  });
29
29
  },
30
30
  remover() {
31
- this.insereEvento({
31
+ this.addEvent({
32
32
  nome: "tagRemovida",
33
- dados: this.dadosEvento,
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
- .icone {
62
+ .icon {
63
63
  color: #9e9e9e;
64
64
  padding-left: 5px;
65
65
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <div class="topo" :style="'background-color:' + corTopo">
4
- <div class="lado-a-lado">
4
+ <div class="side-by-side">
5
5
  <slot></slot>
6
6
  </div>
7
7
  </div>
@@ -38,7 +38,7 @@
38
38
  v-if="step < etapa"
39
39
  class="btn btn--green-1"
40
40
  @click="step++"
41
- :disabled="!formValido(formNome[step - 1])"
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
- formNome: Array,
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", ["formValido"]),
73
+ ...mapGetters("validation", ["isFormValid"]),
74
74
  stepperProgress() {
75
75
  return (100 / this.etapa) * (this.step - 1) + "%";
76
76
  },