@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,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: "Panel",
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="execute()">{{ title }}: {{ valor }}</span>
5
+ <i @click="remove()" 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
- nomeEvento: String,
19
- dadosEvento: Object,
18
+ eventName: String,
19
+ eventData: Object,
20
20
  },
21
21
  methods: {
22
- ...mapMutations("generic", ["insereEvento"]),
23
- executar() {
24
- if (this.nomeEvento)
25
- this.insereEvento({
26
- nome: this.nomeEvento,
27
- dados: this.dadosEvento,
22
+ ...mapMutations("generic", ["addEvent"]),
23
+ execute() {
24
+ if (this.eventName)
25
+ this.addEvent({
26
+ nome: this.eventName,
27
+ data: this.eventData,
28
28
  });
29
29
  },
30
- remover() {
31
- this.insereEvento({
30
+ remove() {
31
+ this.addEvent({
32
32
  nome: "tagRemovida",
33
- dados: this.dadosEvento,
33
+ data: this.eventData,
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
  }
@@ -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
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <AceEditor
4
- v-model="codigo"
4
+ v-model="code"
5
5
  lang="html"
6
6
  @init="editorInit"
7
7
  theme="monokai"
@@ -19,16 +19,16 @@
19
19
  showGutter: true,
20
20
  }"
21
21
  />
22
- <div class="aplicar">
22
+ <div class="apply">
23
23
  <b-row>
24
24
  <b-col class="text-right">
25
- <Botao
26
- chave="aplicarCodigo"
27
- tipo="primario"
28
- titulo="Aplicar"
29
- classeIcone="far fa-code"
30
- tamanho="pequeno"
31
- :clique="aplicar"
25
+ <Button
26
+ key="applyCode"
27
+ type="primary"
28
+ title="Aplicar"
29
+ classIcon="far fa-code"
30
+ size="small"
31
+ :clicked="apply"
32
32
  />
33
33
  </b-col>
34
34
  </b-row>
@@ -38,44 +38,44 @@
38
38
 
39
39
  <script>
40
40
  import AceEditor from "vuejs-ace-editor";
41
- import Botao from "@nixweb/nixloc-ui/src/component/forms/Botao";
41
+ import Button from "@nixweb/nixloc-ui/src/component/forms/Button";
42
42
 
43
43
  import { mapMutations } from "vuex";
44
44
 
45
45
  export default {
46
- name: "CodigoEditor",
46
+ name: "CodeEditor",
47
47
  components: {
48
48
  AceEditor,
49
- Botao,
49
+ Button,
50
50
  },
51
51
  data() {
52
52
  return {
53
- codigo: "",
53
+ code: "",
54
54
  };
55
55
  },
56
56
  computed: {
57
- documentoHtml: {
57
+ documentHtml: {
58
58
  get() {
59
- return this.$store.state.generic.documentoHtml;
59
+ return this.$store.state.generic.documentHtml;
60
60
  },
61
61
  set(value) {
62
- this.atualizaDocumentoHtml(value);
62
+ this.updateDocumentHtml(value);
63
63
  },
64
64
  },
65
65
  },
66
66
  mounted() {
67
- this.codigo = this.documentoHtml;
67
+ this.code = this.documentHtml;
68
68
  },
69
69
  methods: {
70
70
  ...mapMutations("generic", [
71
- "atualizaDocumentoHtml",
72
- "fecharModal",
73
- "removeCarregando",
71
+ "updateDocumentHtml",
72
+ "hideModal",
73
+ "removeLoading",
74
74
  ]),
75
- aplicar() {
76
- this.atualizaDocumentoHtml(this.codigo);
77
- this.fecharModal("codigo");
78
- this.removeCarregando(["aplicarCodigo"]);
75
+ apply() {
76
+ this.updateDocumentHtml(this.code);
77
+ this.hideModal("code");
78
+ this.removeLoading(["applyCode"]);
79
79
  },
80
80
  editorInit: function () {
81
81
  require("brace/ext/language_tools"); //language extension prerequsite...
@@ -89,7 +89,7 @@ export default {
89
89
  };
90
90
  </script>
91
91
  <style scoped>
92
- .aplicar {
92
+ .apply {
93
93
  margin-top: 10px;
94
94
  }
95
95
  </style>