@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/dist/front-mfe-components.common.js +118 -102
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +118 -102
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DatePicker/DatePicker.vue +19 -2
package/package.json
CHANGED
|
@@ -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
|
-
?
|
|
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
|
|
217
|
+
return this.minxText;
|
|
201
218
|
}
|
|
202
219
|
return true;
|
|
203
220
|
},
|