@formio/js 5.0.0-dev.5750.5b1284a → 5.0.0-dev.5755.7a395f8
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 +9 -0
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.form.js +33 -13
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +2 -0
- package/dist/formio.full.js +35 -15
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +2 -0
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/dist/formio.utils.js +24 -4
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +2 -0
- 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/file/File.d.ts +1 -1
- package/lib/cjs/components/file/File.js +6 -1
- package/lib/cjs/components/form/editForm/Form.edit.form.js +1 -1
- 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/mjs/CDN.js +1 -2
- package/lib/mjs/Form.js +2 -2
- package/lib/mjs/Wizard.js +1 -1
- package/lib/mjs/components/file/File.d.ts +1 -1
- package/lib/mjs/components/file/File.js +6 -1
- package/lib/mjs/components/form/editForm/Form.edit.form.js +1 -1
- 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/package.json +22 -6
|
@@ -20,6 +20,8 @@
|
|
|
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
|
+
/*! @license DOMPurify 3.1.6 | (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.6/LICENSE */
|
|
24
|
+
|
|
23
25
|
/*! formiojs v5.0.0-rc.59 | https://unpkg.com/formiojs@5.0.0-rc.59/LICENSE.txt */
|
|
24
26
|
|
|
25
27
|
/**
|
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;
|
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
|
}
|
|
@@ -33,7 +33,7 @@ export default class FileComponent extends Field {
|
|
|
33
33
|
get dataReady(): Promise<any>;
|
|
34
34
|
loadImage(fileInfo: any): any;
|
|
35
35
|
get emptyValue(): never[];
|
|
36
|
-
getValueAsString(value: any): any;
|
|
36
|
+
getValueAsString(value: any, options: any): any;
|
|
37
37
|
get defaultValue(): any[];
|
|
38
38
|
get hasTypes(): any;
|
|
39
39
|
_fileBrowseHidden: any;
|
|
@@ -114,7 +114,12 @@ class FileComponent extends Field_1.default {
|
|
|
114
114
|
get emptyValue() {
|
|
115
115
|
return [];
|
|
116
116
|
}
|
|
117
|
-
getValueAsString(value) {
|
|
117
|
+
getValueAsString(value, options) {
|
|
118
|
+
if ((options === null || options === void 0 ? void 0 : options.review) && !this.component.uploadOnly) {
|
|
119
|
+
return lodash_1.default.map(value, (val, index) => {
|
|
120
|
+
return `<a href="${val.url || '#'}" target="_blank" data-path='${this.path}' data-fileindex='${index}'>${val.originalName}</a>`;
|
|
121
|
+
}).join(', ');
|
|
122
|
+
}
|
|
118
123
|
if (lodash_1.default.isArray(value)) {
|
|
119
124
|
return lodash_1.default.map(value, 'originalName').join(', ');
|
|
120
125
|
}
|
|
@@ -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;
|