@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
@@ -0,0 +1,120 @@
1
+ <template>
2
+ <div>
3
+ <label>
4
+ <span class="title">{{ title }}</span>
5
+ </label>
6
+ <div class="select" :class="{ border: showBorder }">
7
+ <multiselect
8
+ @open="onOpen"
9
+ @select="onSelected"
10
+ @search-change="onSearch"
11
+ :options="data"
12
+ v-model.trim="currentValue"
13
+ :custom-label="label"
14
+ :disabled="disabled"
15
+ placeholder
16
+ :showLabels="true"
17
+ :noResult="false"
18
+ ref="multiselect"
19
+ selectLabel
20
+ deselectLabel
21
+ selectedLabel
22
+ >
23
+ </multiselect>
24
+ </div>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import Multiselect from "vue-multiselect";
29
+ import Button from "./Button";
30
+
31
+ import { mapMutations } from "vuex";
32
+
33
+ export default {
34
+ name: "SelectStatic",
35
+ props: {
36
+ title: String,
37
+ formName: String,
38
+ fieldTarget: String,
39
+ initialValue: Object,
40
+ disabled: {
41
+ type: Boolean,
42
+ default: false,
43
+ },
44
+ onlyQuery: {
45
+ type: Boolean,
46
+ default: false,
47
+ },
48
+ showBorder: {
49
+ type: Boolean,
50
+ default: true,
51
+ },
52
+ data: Array,
53
+ value: Object,
54
+ },
55
+ components: {
56
+ Multiselect,
57
+ Button,
58
+ },
59
+ data() {
60
+ return {
61
+ currentValue: this.initialValue,
62
+ };
63
+ },
64
+ mounted() {
65
+ let el = this.$el.getElementsByClassName("multiselect")[0];
66
+ if (el) {
67
+ el.tabIndex = 0;
68
+ }
69
+ },
70
+ methods: {
71
+ ...mapMutations("generic", ["addFilter", "removeLoading"]),
72
+ onOpen() {},
73
+ onSelected(value) {
74
+ this.$emit("input", value);
75
+ let obj = { fieldTarget: this.fieldTarget, valor: value.id };
76
+ if (!this.onlyQuery) this.addFilter(obj);
77
+ },
78
+ onSearch(value) {},
79
+ label(value) {
80
+ return `${value.content}`;
81
+ },
82
+ cleanSelectStatic() {
83
+ let obj = { content: "", id: "" };
84
+ this.currentValue = obj;
85
+ this.$emit("input", obj);
86
+ this.$refs.multiselect.deactivate();
87
+ this.removeLoading(["cleanSelectStatic"]);
88
+
89
+ if (this.fieldTarget) {
90
+ let obj = { fieldTarget: this.fieldTarget, valor: "" };
91
+ this.addFilter(obj);
92
+ }
93
+ },
94
+ },
95
+ watch: {
96
+ "value.id": function () {
97
+ this.currentValue = { id: this.value.id, content: this.value.content };
98
+ },
99
+ "initialValue.id": function () {
100
+ this.currentValue = { id: this.value.id, content: this.value.content };
101
+ },
102
+ },
103
+ };
104
+ </script>
105
+
106
+ <style scoped>
107
+ div.before-list {
108
+ padding: 8px;
109
+ }
110
+
111
+ .select {
112
+ height: 38px;
113
+ border-radius: 5px !important;
114
+ margin-bottom: 20px;
115
+ }
116
+
117
+ .border {
118
+ border: 1px solid #dbdee0 !important;
119
+ }
120
+ </style>
@@ -0,0 +1,126 @@
1
+ <template>
2
+ <div class="form-group">
3
+ <label>
4
+ <span class="title">{{ title }}</span>
5
+ <span class="required" v-if="required">*</span>
6
+ <Dica :field="field" :formName="formName" />
7
+ </label>
8
+ <div class="inner-addon right-addon">
9
+ <i
10
+ v-if="notifications.length > 0 && formDirty"
11
+ class="required glyphicon fas fa-exclamation-triangle"
12
+ ></i>
13
+
14
+ <textarea
15
+ type="text"
16
+ :placeholder="placeholder"
17
+ v-bind:value="value"
18
+ v-on:input="$emit('input', $event.target.value)"
19
+ class="form-control"
20
+ :class="{ 'is-invalid': notifications.length > 0 && formDirty }"
21
+ ></textarea>
22
+ </div>
23
+
24
+ <div v-if="formDirty">
25
+ <div v-for="message in notifications" :key="message">
26
+ <span class="invalid">{{ message }}</span>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </template>
31
+
32
+ <script>
33
+ import Dica from "../shared/Dica.vue";
34
+ import { mapState, mapMutations } from "vuex";
35
+
36
+ export default {
37
+ components: { Dica },
38
+ name: "TextArea",
39
+ props: {
40
+ title: String,
41
+ field: String,
42
+ placeholder: String,
43
+ formName: String,
44
+ required: Boolean,
45
+ maxLength: Number,
46
+ value: String,
47
+ },
48
+ data() {
49
+ return {
50
+ notifications: [],
51
+ formDirty: false,
52
+ };
53
+ },
54
+ created() {
55
+ this.validate();
56
+ },
57
+ methods: {
58
+ ...mapMutations("validation", [
59
+ "addValidation",
60
+ "removeValidation",
61
+ "addFormDirty",
62
+ ]),
63
+ validate() {
64
+ this.notifications = [];
65
+
66
+ if (this.required && this.value.length == 0) {
67
+ var message = `${this.title} não pode ser vazio!`;
68
+ this.notifications.push(message);
69
+ }
70
+
71
+ if (this.maxLength > 0) {
72
+ if (this.value.length > this.maxLength) {
73
+ var message = `Máximo de ${this.maxLength} caracteres!`;
74
+ this.notifications.push(message);
75
+ }
76
+ }
77
+ },
78
+ },
79
+ computed: {
80
+ ...mapState("validation", ["resetForm", "validations"]),
81
+ },
82
+ watch: {
83
+ value() {
84
+ this.validate();
85
+ this.formDirty = true;
86
+ this.addFormDirty(true);
87
+ },
88
+ notifications() {
89
+ let self = this;
90
+ this.notifications.forEach(function (notification) {
91
+ let obj = {
92
+ key: self.field + "&" + self.formName,
93
+ formName: self.formName,
94
+ notification: notification,
95
+ };
96
+ self.addValidation(obj);
97
+ });
98
+
99
+ if (this.notifications.length == 0) {
100
+ let obj = {
101
+ key: self.field + "&" + self.formName,
102
+ formName: self.formName,
103
+ };
104
+ self.removeValidation(obj);
105
+ }
106
+ },
107
+ resetForm: {
108
+ handler(form) {
109
+ if (form.nome == this.formName) this.formDirty = false;
110
+ },
111
+ deep: true,
112
+ },
113
+ },
114
+ };
115
+ </script>
116
+
117
+ <style scoped>
118
+ .success {
119
+ color: #94aa2a;
120
+ font-size: 14px;
121
+ }
122
+ .invalid {
123
+ color: #f0134d;
124
+ font-size: 14px;
125
+ }
126
+ </style>
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <div class="principal">
2
+ <div class="main">
3
3
  <b-row>
4
4
  <b-col xs="6" sm="6" md="6" lg="6" xl="6">
5
- <div class="lado-a-lado titulo">{{ titulo }}</div>
5
+ <div class="side-by-side title">{{ title }}</div>
6
6
  </b-col>
7
7
  <b-col xs="6" sm="6" md="6" lg="4" xl="4">
8
8
  <VueToggles
@@ -10,11 +10,11 @@
10
10
  width="60"
11
11
  checkedText="Sim"
12
12
  uncheckedText="Não"
13
- :checkedBg="cor"
13
+ :checkedBg="color"
14
14
  uncheckedBg="lightgrey"
15
- :disabled="desabilitado"
15
+ :disabled="disabled"
16
16
  :value="valor"
17
- @click="clique"
17
+ @click="clicked"
18
18
  />
19
19
  </b-col>
20
20
  </b-row>
@@ -30,14 +30,14 @@ export default {
30
30
  VueToggles,
31
31
  },
32
32
  props: {
33
- titulo: String,
34
- cor: String,
35
- desabilitado: {
33
+ title: String,
34
+ color: String,
35
+ disabled: {
36
36
  type: Boolean,
37
37
  default: false,
38
38
  },
39
39
  params: Object,
40
- alterou: Function,
40
+ changed: Function,
41
41
  value: Boolean,
42
42
  },
43
43
  data() {
@@ -49,21 +49,21 @@ export default {
49
49
  this.valor = this.value;
50
50
  },
51
51
  methods: {
52
- clique() {
52
+ clicked() {
53
53
  this.valor = !this.valor;
54
54
  this.$emit("input", this.valor);
55
- if (this.alterou) this.alterou(this.params);
55
+ if (this.changed) this.changed(this.params);
56
56
  },
57
57
  },
58
58
  };
59
59
  </script>
60
60
 
61
61
  <style scoped>
62
- .principal {
62
+ .main {
63
63
  padding: 5px;
64
64
  }
65
65
 
66
- .titulo {
66
+ .title {
67
67
  padding-right: 35px;
68
68
  }
69
69
  </style>
@@ -1,31 +1,31 @@
1
1
  <template>
2
2
  <div>
3
- <div class="foto-container" @click="escondeMostra = !escondeMostra">
3
+ <div class="photo-container" @click="hideShow = !hideShow">
4
4
  <img
5
5
  src="https://portal1.iff.edu.br/desenvolvimento-institucional/imagens/avatar.jpg/@@images/image.jpeg"
6
6
  alt="Avatar"
7
7
  />
8
8
  </div>
9
- <div class="perfil-container" v-if="escondeMostra">
9
+ <div class="profile-container" v-if="hideShow">
10
10
  <div class="item-header text-center">
11
11
  <span>Conta</span>
12
12
  </div>
13
- <div class="perfil-conteudo" v-for="item in itens" :key="item.titulo">
14
- <div class="item-conteudo" @click="navegarPara(item.nomeRota)">
15
- <div class="titulo-container">
13
+ <div class="profile-content" v-for="item in items" :key="item.title">
14
+ <div class="item-content" @click="navegateTo(item.routeName)">
15
+ <div class="title-container">
16
16
  <span>
17
- <i :class="item.classeIcone"></i>
18
- <span class="titulo-perfil titulo-input">{{ item.titulo }}</span>
17
+ <i :class="item.classIcon"></i>
18
+ <span class="title-profile title-input">{{ item.title }}</span>
19
19
  </span>
20
20
  </div>
21
21
  </div>
22
22
  </div>
23
- <div class="perfil-conteudo" @click="executarSair">
24
- <div class="item-conteudo">
25
- <div class="titulo-container">
23
+ <div class="profile-content" @click="execute">
24
+ <div class="item-content">
25
+ <div class="title-container">
26
26
  <span>
27
27
  <i class="fas fa-sign-in"></i>
28
- <span class="titulo-perfil titulo-input">Sair</span>
28
+ <span class="title-profile title-input">Sair</span>
29
29
  </span>
30
30
  </div>
31
31
  </div>
@@ -35,29 +35,29 @@
35
35
  </template>
36
36
  <script>
37
37
  export default {
38
- name: "Conta",
38
+ name: "Account",
39
39
  props: {
40
- itens: [],
41
- sair: Function,
40
+ items: [],
41
+ exited: Function,
42
42
  },
43
43
  data() {
44
44
  return {
45
- escondeMostra: false,
45
+ hideShow: false,
46
46
  };
47
47
  },
48
48
  methods: {
49
- navegarPara(nomeRota) {
50
- this.$router.push({ name: nomeRota });
51
- this.escondeMostra = false;
49
+ navegateTo(routeName) {
50
+ this.$router.push({ name: routeName });
51
+ this.hideShow = false;
52
52
  },
53
- executarSair() {
54
- if (this.sair) this.sair();
53
+ execute() {
54
+ if (this.exited) this.exited();
55
55
  },
56
56
  },
57
57
  };
58
58
  </script>
59
59
  <style scoped>
60
- .foto-container {
60
+ .photo-container {
61
61
  margin-top: -15px;
62
62
  padding-right: 10px;
63
63
  cursor: pointer;
@@ -73,7 +73,7 @@ img {
73
73
  width: 45px;
74
74
  }
75
75
 
76
- .perfil-container {
76
+ .profile-container {
77
77
  position: fixed;
78
78
  float: right;
79
79
  left: auto;
@@ -88,7 +88,7 @@ img {
88
88
  border-bottom: 1px solid #e9ebec;
89
89
  }
90
90
 
91
- .perfil-conteudo {
91
+ .profile-content {
92
92
  right: 0;
93
93
  height: 100%;
94
94
  z-index: 101;
@@ -104,7 +104,7 @@ img {
104
104
  border-top: 1px solid #e9ebec;
105
105
  }
106
106
 
107
- .item-conteudo {
107
+ .item-content {
108
108
  padding-left: 15px;
109
109
  height: 45px;
110
110
  background: white;
@@ -113,20 +113,20 @@ img {
113
113
  cursor: pointer;
114
114
  }
115
115
 
116
- .item-conteudo:hover {
116
+ .item-content:hover {
117
117
  background: #f8f8f8;
118
118
  }
119
119
 
120
- .titulo-container {
120
+ .title-container {
121
121
  padding-top: 10px;
122
122
  }
123
123
 
124
- .titulo-container:hover {
124
+ .title-container:hover {
125
125
  padding-top: 10px;
126
126
  color: #37597c;
127
127
  }
128
128
 
129
- .titulo-perfil {
129
+ .title-profile {
130
130
  padding-left: 10px;
131
131
  }
132
132
  </style>
@@ -1,41 +1,41 @@
1
1
  <template>
2
2
  <div>
3
3
  <div
4
- class="alerta"
4
+ class="warning"
5
5
  :class="{
6
- primario: tipo === 'primario',
7
- sucesso: tipo === 'sucesso',
8
- alerta: tipo === 'alerta',
9
- info: tipo === 'info',
10
- perigo: tipo === 'perigo',
6
+ primary: type === 'primary',
7
+ success: type === 'success',
8
+ warning: type === 'warning',
9
+ info: type === 'info',
10
+ danger: type === 'danger',
11
11
  }"
12
12
  >
13
- <span v-if="tipo === 'sucesso'" class="sucesso-icone">
13
+ <span v-if="type === 'success'" class="success-icon">
14
14
  <i class="fas fa-check-circle"></i>
15
15
  </span>
16
- <span v-if="tipo === 'perigo'" class="perigo-icone">
16
+ <span v-if="type === 'danger'" class="danger-icon">
17
17
  <i class="fas fa-times-circle"></i
18
18
  ></span>
19
- <span v-if="tipo === 'alerta'" class="alerta-icone">
19
+ <span v-if="type === 'warning'" class="warning-icon">
20
20
  <i class="fas fa-exclamation-triangle"></i
21
21
  ></span>
22
- <span v-if="tipo === 'info'" class="info-icone">
22
+ <span v-if="type === 'info'" class="info-icon">
23
23
  <i class="fas fa-exclamation-circle"></i
24
24
  ></span>
25
- <span class="mensagem"><slot></slot></span>
25
+ <span class="message"><slot></slot></span>
26
26
  </div>
27
27
  </div>
28
28
  </template>
29
29
  <script>
30
30
  export default {
31
- name: "Alerta",
31
+ name: "Alert",
32
32
  props: {
33
- tipo: String,
33
+ type: String,
34
34
  },
35
35
  };
36
36
  </script>
37
37
  <style scoped>
38
- .alerta {
38
+ .warning {
39
39
  box-sizing: border-box;
40
40
  margin-bottom: 10px;
41
41
  color: rgba(0, 0, 0, 0.65);
@@ -50,16 +50,16 @@ export default {
50
50
  border-radius: 4px;
51
51
  }
52
52
 
53
- .mensagem {
53
+ .message {
54
54
  margin-left: 5px;
55
55
  }
56
56
 
57
- .sucesso {
57
+ .success {
58
58
  background-color: #f6ffed;
59
59
  border: 1px solid #b7eb8f;
60
60
  }
61
61
 
62
- .alerta {
62
+ .warning {
63
63
  background-color: #fffbe6;
64
64
  border: 1px solid #ffe58f;
65
65
  }
@@ -69,24 +69,24 @@ export default {
69
69
  border: 1px solid #91d5ff;
70
70
  }
71
71
 
72
- .perigo {
72
+ .danger {
73
73
  background-color: #fff1f0;
74
74
  border: 1px solid #ffa39e;
75
75
  }
76
76
 
77
- .sucesso-icone {
77
+ .success-icon {
78
78
  color: #52c41a;
79
79
  }
80
80
 
81
- .alerta-icone {
81
+ .warning-icon {
82
82
  color: #faad14;
83
83
  }
84
84
 
85
- .info-icone {
85
+ .info-icon {
86
86
  color: #1890ff;
87
87
  }
88
88
 
89
- .perigo-icone {
89
+ .danger-icon {
90
90
  color: red;
91
91
  }
92
92
  </style>
@@ -3,18 +3,18 @@
3
3
  <div
4
4
  class="badge"
5
5
  :class="{
6
- pequeno: tamanho === 'pequeno',
7
- medio: tamanho === 'medio',
8
- grande: tamanho === 'grande',
9
- primario: tipo === 'primario',
10
- sucesso: tipo === 'sucesso',
11
- alerta: tipo === 'alerta',
12
- info: tipo === 'info',
13
- editar: tipo === 'editar',
14
- perigo: tipo === 'perigo',
6
+ small: size === 'small',
7
+ medium: size === 'medium',
8
+ large: size === 'large',
9
+ primary: type === 'primary',
10
+ success: type === 'success',
11
+ warning: type === 'warning',
12
+ info: type === 'info',
13
+ edit: type === 'edit',
14
+ danger: type === 'danger',
15
15
  }"
16
16
  >
17
- <i :class="classeIcone"></i> <span>{{ titulo }}</span>
17
+ <i :class="classIcon"></i> <span>{{ title }}</span>
18
18
  </div>
19
19
  </div>
20
20
  </template>
@@ -23,10 +23,10 @@
23
23
  export default {
24
24
  name: "Badge",
25
25
  props: {
26
- titulo: String,
27
- tipo: String,
28
- tamanho: String,
29
- classeIcone: String,
26
+ title: String,
27
+ type: String,
28
+ size: String,
29
+ classIcon: String,
30
30
  },
31
31
  };
32
32
  </script>
@@ -44,34 +44,34 @@ export default {
44
44
  box-shadow: 0px 10px 20px -6px rgb(0 0 0 / 12%);
45
45
  }
46
46
 
47
- .pequeno {
47
+ .small {
48
48
  padding: 5px 10px;
49
49
  font-size: 13px;
50
50
  }
51
51
 
52
- .medio {
52
+ .medium {
53
53
  padding: 7px 12px;
54
54
  font-size: 13px;
55
55
  }
56
56
 
57
- .grande {
57
+ .large {
58
58
  padding: 11px 16px;
59
59
  font-size: 14px;
60
60
  }
61
61
 
62
- .desabilitado {
62
+ .disabled {
63
63
  background: #bbbbbb !important;
64
64
  border-color: #bbbbbb !important;
65
65
  color: #fff;
66
66
  }
67
67
 
68
- .primario {
68
+ .primary {
69
69
  background: #577696;
70
70
  border-color: #577696;
71
71
  color: #fff;
72
72
  }
73
73
 
74
- .sucesso {
74
+ .success {
75
75
  color: #fff;
76
76
  background: #94aa2a;
77
77
  border-color: #94aa2a;
@@ -83,19 +83,19 @@ export default {
83
83
  background: #4ab4e2;
84
84
  }
85
85
 
86
- .editar {
86
+ .edit {
87
87
  color: #fff;
88
88
  border-color: #7b7f83;
89
89
  background: #7b7f83;
90
90
  }
91
91
 
92
- .alerta {
92
+ .warning {
93
93
  color: #fff;
94
94
  border-color: #f1bc31;
95
95
  background: #f1bc31;
96
96
  }
97
97
 
98
- .perigo {
98
+ .danger {
99
99
  color: #fff;
100
100
  border-color: #f0134d;
101
101
  background: #f0134d;