@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
|
@@ -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
|
-
const
|
|
6
|
+
const Components_1 = __importDefault(require("../Components"));
|
|
7
7
|
const Time_edit_data_1 = __importDefault(require("./editForm/Time.edit.data"));
|
|
8
8
|
const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.display"));
|
|
9
9
|
/**
|
|
@@ -12,7 +12,7 @@ const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.displa
|
|
|
12
12
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
|
13
13
|
*/
|
|
14
14
|
function default_1(...extend) {
|
|
15
|
-
return
|
|
15
|
+
return Components_1.default.baseEditForm([
|
|
16
16
|
{
|
|
17
17
|
key: 'data',
|
|
18
18
|
components: Time_edit_data_1.default,
|
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;
|
package/lib/mjs/Form.js
CHANGED
|
@@ -134,13 +134,13 @@ export default class Form extends Element {
|
|
|
134
134
|
else {
|
|
135
135
|
this.element = null;
|
|
136
136
|
}
|
|
137
|
+
this.options = formOptions;
|
|
138
|
+
this.options.events = this.events;
|
|
137
139
|
if (form) {
|
|
138
140
|
this.setForm(form)
|
|
139
141
|
.then(() => this.readyResolve(this.instance))
|
|
140
142
|
.catch(this.readyReject);
|
|
141
143
|
}
|
|
142
|
-
this.options = formOptions;
|
|
143
|
-
this.options.events = this.events;
|
|
144
144
|
this.display = '';
|
|
145
145
|
}
|
|
146
146
|
createElement(tag, attrs, children) {
|
package/lib/mjs/Wizard.js
CHANGED
|
@@ -13,7 +13,7 @@ export default class Wizard extends Webform {
|
|
|
13
13
|
*/
|
|
14
14
|
constructor(elementOrOptions = undefined, _options = undefined) {
|
|
15
15
|
let element, options;
|
|
16
|
-
if (elementOrOptions instanceof HTMLElement ||
|
|
16
|
+
if (elementOrOptions instanceof HTMLElement || _options) {
|
|
17
17
|
element = elementOrOptions;
|
|
18
18
|
options = _options || {};
|
|
19
19
|
}
|
|
@@ -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;
|
|
@@ -103,7 +103,12 @@ export default class FileComponent extends Field {
|
|
|
103
103
|
get emptyValue() {
|
|
104
104
|
return [];
|
|
105
105
|
}
|
|
106
|
-
getValueAsString(value) {
|
|
106
|
+
getValueAsString(value, options) {
|
|
107
|
+
if (options?.review && !this.component.uploadOnly) {
|
|
108
|
+
return _.map(value, (val, index) => {
|
|
109
|
+
return `<a href="${val.url || '#'}" target="_blank" data-path='${this.path}' data-fileindex='${index}'>${val.originalName}</a>`;
|
|
110
|
+
}).join(', ');
|
|
111
|
+
}
|
|
107
112
|
if (_.isArray(value)) {
|
|
108
113
|
return _.map(value, 'originalName').join(', ');
|
|
109
114
|
}
|
|
@@ -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 };
|
|
@@ -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 };
|