@farm-investimentos/front-mfe-components 15.8.6 → 15.8.7

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": "@farm-investimentos/front-mfe-components",
3
- "version": "15.8.6",
3
+ "version": "15.8.7",
4
4
  "author": "farm investimentos",
5
5
  "private": false,
6
6
  "main": "./dist/front-mfe-components.common.js",
@@ -98,6 +98,15 @@ export default defineComponent({
98
98
  type: String,
99
99
  default: null,
100
100
  },
101
+
102
+ /**
103
+ * Text message error
104
+ */
105
+ maxText: {
106
+ type: String,
107
+ default: 'A data está fora do período permitido',
108
+ },
109
+
101
110
  /**
102
111
  * Min date (ISO format)
103
112
  */
@@ -105,6 +114,14 @@ export default defineComponent({
105
114
  type: String,
106
115
  default: null,
107
116
  },
117
+ /**
118
+ * Text message error
119
+ */
120
+ minxText: {
121
+ type: String,
122
+ default: 'A data está fora do período permitido',
123
+ },
124
+
108
125
  /**
109
126
  * Min date (ISO format)
110
127
  */
@@ -184,7 +201,7 @@ export default defineComponent({
184
201
  return true;
185
202
  }
186
203
  return this.max && new Date(convertDate(value)) > new Date(this.max)
187
- ? 'A data está fora do período permitido'
204
+ ? this.maxText
188
205
  : true;
189
206
  },
190
207
  checkMin: value => {
@@ -197,7 +214,7 @@ export default defineComponent({
197
214
  if (dateSelected.getTime() >= dateMin.getTime()) {
198
215
  return true;
199
216
  }
200
- return 'A data está fora do período permitido';
217
+ return this.minxText;
201
218
  }
202
219
  return true;
203
220
  },