@formio/js 5.0.0-dev.5746.d82b0b1 → 5.0.0-dev.5749.8f49547
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/Changelog.md +1 -0
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.form.js +4 -4
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +4 -4
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/lib/cjs/CDN.js +1 -2
- package/lib/cjs/components/day/Day.d.ts +2 -2
- package/lib/cjs/components/day/Day.js +3 -3
- package/lib/cjs/templates/Templates.js +1 -1
- package/lib/cjs/translations/en.d.ts +1 -0
- package/lib/cjs/translations/en.js +1 -0
- package/lib/mjs/CDN.js +1 -2
- package/lib/mjs/components/day/Day.d.ts +2 -2
- package/lib/mjs/components/day/Day.js +3 -3
- package/lib/mjs/templates/Templates.js +1 -1
- package/lib/mjs/translations/en.d.ts +1 -0
- package/lib/mjs/translations/en.js +1 -0
- package/package.json +1 -1
package/lib/cjs/CDN.js
CHANGED
|
@@ -64,8 +64,7 @@ class CDN {
|
|
|
64
64
|
url += `/${lib}`;
|
|
65
65
|
}
|
|
66
66
|
// Only attach the version if this is the hosted cdn.
|
|
67
|
-
if (cdnUrl.
|
|
68
|
-
version && version !== 'latest') {
|
|
67
|
+
if (cdnUrl.match(/cdn\.(test-)?form.io/) && version && version !== 'latest') {
|
|
69
68
|
url += `/${version}`;
|
|
70
69
|
}
|
|
71
70
|
return url;
|
|
@@ -17,9 +17,9 @@ export default class DayComponent extends Field {
|
|
|
17
17
|
constructor(component: any, options: any, data: any);
|
|
18
18
|
/**
|
|
19
19
|
* The empty value for day component.
|
|
20
|
-
* @returns {'
|
|
20
|
+
* @returns {''} - The empty value of the day component.
|
|
21
21
|
*/
|
|
22
|
-
get emptyValue(): "
|
|
22
|
+
get emptyValue(): "";
|
|
23
23
|
get valueMask(): RegExp;
|
|
24
24
|
get dayRequired(): any;
|
|
25
25
|
get showDay(): boolean;
|
|
@@ -64,10 +64,10 @@ class DayComponent extends Field_1.default {
|
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* The empty value for day component.
|
|
67
|
-
* @returns {'
|
|
67
|
+
* @returns {''} - The empty value of the day component.
|
|
68
68
|
*/
|
|
69
69
|
get emptyValue() {
|
|
70
|
-
return '
|
|
70
|
+
return '';
|
|
71
71
|
}
|
|
72
72
|
get valueMask() {
|
|
73
73
|
return /^\d{2}\/\d{2}\/\d{4}$/;
|
|
@@ -363,7 +363,7 @@ class DayComponent extends Field_1.default {
|
|
|
363
363
|
setValueAt(index, value) {
|
|
364
364
|
// temporary solution to avoid input reset
|
|
365
365
|
// on invalid date.
|
|
366
|
-
if (
|
|
366
|
+
if (value === 'Invalid date') {
|
|
367
367
|
return null;
|
|
368
368
|
}
|
|
369
369
|
const parts = value.split('/');
|
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const index_1 = __importDefault(require("./index"));
|
|
7
7
|
const experimental_1 = require("@formio/core/experimental");
|
|
8
8
|
experimental_1.Template.addTemplates(index_1.default);
|
|
9
|
-
experimental_1.Template.defaultTemplates =
|
|
9
|
+
experimental_1.Template.defaultTemplates = experimental_1.Template.templates.bootstrap;
|
|
10
10
|
exports.default = experimental_1.Template;
|
|
@@ -77,6 +77,7 @@ exports.default = {
|
|
|
77
77
|
typeRemaining: '{{ remaining }} {{ type }} remaining.',
|
|
78
78
|
typeCount: '{{ count }} {{ type }}',
|
|
79
79
|
requiredDayField: '{{ field }} is required',
|
|
80
|
+
requiredDayEmpty: '{{ field }} is required',
|
|
80
81
|
requiredMonthField: '{{ field }} is required',
|
|
81
82
|
requiredYearField: '{{ field }} is required'
|
|
82
83
|
};
|
package/lib/mjs/CDN.js
CHANGED
|
@@ -63,8 +63,7 @@ class CDN {
|
|
|
63
63
|
url += `/${lib}`;
|
|
64
64
|
}
|
|
65
65
|
// Only attach the version if this is the hosted cdn.
|
|
66
|
-
if (cdnUrl.
|
|
67
|
-
version && version !== 'latest') {
|
|
66
|
+
if (cdnUrl.match(/cdn\.(test-)?form.io/) && version && version !== 'latest') {
|
|
68
67
|
url += `/${version}`;
|
|
69
68
|
}
|
|
70
69
|
return url;
|
|
@@ -17,9 +17,9 @@ export default class DayComponent extends Field {
|
|
|
17
17
|
constructor(component: any, options: any, data: any);
|
|
18
18
|
/**
|
|
19
19
|
* The empty value for day component.
|
|
20
|
-
* @returns {'
|
|
20
|
+
* @returns {''} - The empty value of the day component.
|
|
21
21
|
*/
|
|
22
|
-
get emptyValue(): "
|
|
22
|
+
get emptyValue(): "";
|
|
23
23
|
get valueMask(): RegExp;
|
|
24
24
|
get dayRequired(): any;
|
|
25
25
|
get showDay(): boolean;
|
|
@@ -62,10 +62,10 @@ export default class DayComponent extends Field {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* The empty value for day component.
|
|
65
|
-
* @returns {'
|
|
65
|
+
* @returns {''} - The empty value of the day component.
|
|
66
66
|
*/
|
|
67
67
|
get emptyValue() {
|
|
68
|
-
return '
|
|
68
|
+
return '';
|
|
69
69
|
}
|
|
70
70
|
get valueMask() {
|
|
71
71
|
return /^\d{2}\/\d{2}\/\d{4}$/;
|
|
@@ -361,7 +361,7 @@ export default class DayComponent extends Field {
|
|
|
361
361
|
setValueAt(index, value) {
|
|
362
362
|
// temporary solution to avoid input reset
|
|
363
363
|
// on invalid date.
|
|
364
|
-
if (
|
|
364
|
+
if (value === 'Invalid date') {
|
|
365
365
|
return null;
|
|
366
366
|
}
|
|
367
367
|
const parts = value.split('/');
|
|
@@ -75,6 +75,7 @@ export default {
|
|
|
75
75
|
typeRemaining: '{{ remaining }} {{ type }} remaining.',
|
|
76
76
|
typeCount: '{{ count }} {{ type }}',
|
|
77
77
|
requiredDayField: '{{ field }} is required',
|
|
78
|
+
requiredDayEmpty: '{{ field }} is required',
|
|
78
79
|
requiredMonthField: '{{ field }} is required',
|
|
79
80
|
requiredYearField: '{{ field }} is required'
|
|
80
81
|
};
|