@farm-investimentos/front-mfe-components 15.8.5 → 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 +160 -130
- 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 +160 -130
- 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 +32 -2
- package/src/components/RangeDatePicker/RangeDatePicker.vue +0 -1
package/package.json
CHANGED
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
:readonly="isReadonly"
|
|
51
51
|
:mask="`${isReadonly ? '' : '##/##/####'}`"
|
|
52
52
|
:id="inputId"
|
|
53
|
+
:hint="hint"
|
|
54
|
+
:persistentHint="persistentHint"
|
|
53
55
|
:rules="rules"
|
|
54
56
|
:disabled="disabled"
|
|
55
57
|
@keyup="keyUpInput"
|
|
@@ -96,6 +98,15 @@ export default defineComponent({
|
|
|
96
98
|
type: String,
|
|
97
99
|
default: null,
|
|
98
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
|
+
|
|
99
110
|
/**
|
|
100
111
|
* Min date (ISO format)
|
|
101
112
|
*/
|
|
@@ -103,6 +114,14 @@ export default defineComponent({
|
|
|
103
114
|
type: String,
|
|
104
115
|
default: null,
|
|
105
116
|
},
|
|
117
|
+
/**
|
|
118
|
+
* Text message error
|
|
119
|
+
*/
|
|
120
|
+
minxText: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: 'A data está fora do período permitido',
|
|
123
|
+
},
|
|
124
|
+
|
|
106
125
|
/**
|
|
107
126
|
* Min date (ISO format)
|
|
108
127
|
*/
|
|
@@ -146,6 +165,17 @@ export default defineComponent({
|
|
|
146
165
|
type: Boolean,
|
|
147
166
|
default: false,
|
|
148
167
|
},
|
|
168
|
+
hint: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: null,
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* Always show hint text
|
|
174
|
+
*/
|
|
175
|
+
persistentHint: {
|
|
176
|
+
type: Boolean,
|
|
177
|
+
default: false,
|
|
178
|
+
},
|
|
149
179
|
},
|
|
150
180
|
data() {
|
|
151
181
|
const s = this.formatDateRange(this.value);
|
|
@@ -171,7 +201,7 @@ export default defineComponent({
|
|
|
171
201
|
return true;
|
|
172
202
|
}
|
|
173
203
|
return this.max && new Date(convertDate(value)) > new Date(this.max)
|
|
174
|
-
?
|
|
204
|
+
? this.maxText
|
|
175
205
|
: true;
|
|
176
206
|
},
|
|
177
207
|
checkMin: value => {
|
|
@@ -184,7 +214,7 @@ export default defineComponent({
|
|
|
184
214
|
if (dateSelected.getTime() >= dateMin.getTime()) {
|
|
185
215
|
return true;
|
|
186
216
|
}
|
|
187
|
-
return
|
|
217
|
+
return this.minxText;
|
|
188
218
|
}
|
|
189
219
|
return true;
|
|
190
220
|
},
|