@nixweb/nixloc-ui 0.0.151 → 0.0.152

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.151",
3
+ "version": "0.0.152",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -0,0 +1,48 @@
1
+ <template>
2
+ <div>
3
+ <InputText
4
+ :title="title"
5
+ :field="field"
6
+ :formName="formName"
7
+ :required="required"
8
+ :mask="['(##) ####-####', '(##) #####-####']"
9
+ :maxLength="maxLength"
10
+ :markFormDirty="markFormDirty"
11
+ v-model="mobile"
12
+ />
13
+ </div>
14
+ </template>
15
+ <script>
16
+ import InputText from "./InputText";
17
+
18
+ export default {
19
+ name: "InputWhatsApp",
20
+ props: [
21
+ "title",
22
+ "field",
23
+ "disabled",
24
+ "formName",
25
+ "required",
26
+ "maxLength",
27
+ "value",
28
+ "markFormDirty",
29
+ ],
30
+ components: { InputText },
31
+ data() {
32
+ return {
33
+ mobile: "",
34
+ };
35
+ },
36
+ created() {
37
+ this.mobile = this.value;
38
+ },
39
+ watch: {
40
+ value() {
41
+ this.mobile = this.value;
42
+ },
43
+ mobile() {
44
+ this.$emit("input", this.mobile);
45
+ },
46
+ },
47
+ };
48
+ </script>
@@ -137,6 +137,6 @@ export default {
137
137
  .panel {
138
138
  margin-top: 30px;
139
139
  padding-left: 30px;
140
- padding-right: 30px;
140
+ padding-right: 20px;
141
141
  }
142
142
  </style>
@@ -66,7 +66,11 @@
66
66
  v-if="obj.type === 'button'"
67
67
  :class="convertClass(row[obj.fieldComparison], obj.classCssBody)"
68
68
  >
69
- <TableButton :obj="obj" :row="row" />
69
+ <TableButton
70
+ v-if="obj.ifFieldEqual == row[obj.field]"
71
+ :obj="obj"
72
+ :row="row"
73
+ />
70
74
  </div>
71
75
  <div
72
76
  v-if="obj.type === 'link'"
@@ -116,6 +120,12 @@ export default {
116
120
  return classCssBody;
117
121
  }
118
122
  },
123
+ isVisible(conditionVisibility, row) {
124
+ // se for undefined, quer dizer que não tem condicional, então pode mostrar
125
+ // if (conditionVisibility == undefined) return true;
126
+
127
+ return eval(conditionVisibility);
128
+ },
119
129
  navegateTo(obj, row) {
120
130
  if (obj.routeName) {
121
131
  this.$router.push({