@formio/js 5.0.0-rc.73 → 5.0.0-rc.75
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/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +9 -9
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +10 -10
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +4 -4
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +2 -2
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/CDN.js +1 -2
- package/lib/cjs/Form.js +2 -2
- package/lib/cjs/Wizard.js +1 -1
- package/lib/cjs/components/day/Day.d.ts +2 -2
- package/lib/cjs/components/day/Day.js +3 -3
- package/lib/cjs/components/form/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/form/fixtures/index.js +3 -1
- package/lib/cjs/components/form/fixtures/nestedWizardForm.d.ts +771 -0
- package/lib/cjs/components/form/fixtures/nestedWizardForm.js +765 -0
- package/lib/cjs/components/time/Time.form.js +2 -2
- 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/Form.js +2 -2
- package/lib/mjs/Wizard.js +1 -1
- package/lib/mjs/components/day/Day.d.ts +2 -2
- package/lib/mjs/components/day/Day.js +3 -3
- package/lib/mjs/components/form/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/form/fixtures/index.js +2 -1
- package/lib/mjs/components/form/fixtures/nestedWizardForm.d.ts +771 -0
- package/lib/mjs/components/form/fixtures/nestedWizardForm.js +763 -0
- package/lib/mjs/components/time/Time.form.js +2 -2
- package/lib/mjs/translations/en.d.ts +1 -0
- package/lib/mjs/translations/en.js +1 -0
- package/package.json +2 -2
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
/*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
|
22
22
|
|
23
|
-
/*! formiojs v5.0.0-rc.
|
23
|
+
/*! formiojs v5.0.0-rc.75 | https://unpkg.com/formiojs@5.0.0-rc.75/LICENSE.txt */
|
24
24
|
|
25
25
|
/**
|
26
26
|
* @license
|
package/lib/cjs/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;
|
package/lib/cjs/Form.js
CHANGED
@@ -65,13 +65,13 @@ class Form extends Element_1.default {
|
|
65
65
|
else {
|
66
66
|
this.element = null;
|
67
67
|
}
|
68
|
+
this.options = formOptions;
|
69
|
+
this.options.events = this.events;
|
68
70
|
if (form) {
|
69
71
|
this.setForm(form)
|
70
72
|
.then(() => this.readyResolve(this.instance))
|
71
73
|
.catch(this.readyReject);
|
72
74
|
}
|
73
|
-
this.options = formOptions;
|
74
|
-
this.options.events = this.events;
|
75
75
|
this.display = '';
|
76
76
|
}
|
77
77
|
createElement(tag, attrs, children) {
|
package/lib/cjs/Wizard.js
CHANGED
@@ -18,7 +18,7 @@ class Wizard extends Webform_1.default {
|
|
18
18
|
*/
|
19
19
|
constructor(elementOrOptions = undefined, _options = undefined) {
|
20
20
|
let element, options;
|
21
|
-
if (elementOrOptions instanceof HTMLElement ||
|
21
|
+
if (elementOrOptions instanceof HTMLElement || _options) {
|
22
22
|
element = elementOrOptions;
|
23
23
|
options = _options || {};
|
24
24
|
}
|
@@ -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('/');
|
@@ -7,4 +7,5 @@ import comp5 from './comp5';
|
|
7
7
|
import comp6 from './comp6';
|
8
8
|
import comp7 from './comp7';
|
9
9
|
import comp8 from './comp8';
|
10
|
-
|
10
|
+
import nestedWizardForm from './nestedWizardForm';
|
11
|
+
export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, nestedWizardForm };
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
|
6
|
+
exports.nestedWizardForm = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
|
7
7
|
const formModalEdit_1 = __importDefault(require("./formModalEdit"));
|
8
8
|
exports.formModalEdit = formModalEdit_1.default;
|
9
9
|
const comp1_1 = __importDefault(require("./comp1"));
|
@@ -22,3 +22,5 @@ const comp7_1 = __importDefault(require("./comp7"));
|
|
22
22
|
exports.comp7 = comp7_1.default;
|
23
23
|
const comp8_1 = __importDefault(require("./comp8"));
|
24
24
|
exports.comp8 = comp8_1.default;
|
25
|
+
const nestedWizardForm_1 = __importDefault(require("./nestedWizardForm"));
|
26
|
+
exports.nestedWizardForm = nestedWizardForm_1.default;
|