@formio/js 5.0.0-rc.55 → 5.0.0-rc.56
Sign up to get free protection for your applications and to get access to all the features.
- 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 +4 -4
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +4 -4
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Embed.js +8 -5
- package/lib/cjs/Webform.d.ts +1 -1
- package/lib/cjs/Webform.js +1 -1
- package/lib/cjs/Wizard.d.ts +1 -1
- package/lib/cjs/Wizard.js +1 -1
- package/lib/mjs/Embed.js +8 -5
- package/lib/mjs/Webform.d.ts +1 -1
- package/lib/mjs/Webform.js +1 -1
- package/lib/mjs/Wizard.d.ts +1 -1
- package/lib/mjs/Wizard.js +1 -1
- package/package.json +1 -1
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
/*! @license DOMPurify 3.1.4 | (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.4/LICENSE */
|
24
24
|
|
25
|
-
/*! formiojs v5.0.0-rc.
|
25
|
+
/*! formiojs v5.0.0-rc.56 | https://unpkg.com/formiojs@5.0.0-rc.56/LICENSE.txt */
|
26
26
|
|
27
27
|
/**
|
28
28
|
* @license
|
package/lib/cjs/Embed.js
CHANGED
@@ -297,14 +297,17 @@ class Formio {
|
|
297
297
|
if (_a.config.template && _a.config.includeLibs) {
|
298
298
|
yield _a.addLibrary(libWrapper, _a.config.libs[_a.config.template], _a.config.template);
|
299
299
|
}
|
300
|
-
|
300
|
+
if (!_a.config.libraries) {
|
301
|
+
_a.config.libraries = _a.config.modules || {};
|
302
|
+
}
|
303
|
+
// Adding premium if it is provided via the config.
|
301
304
|
if (_a.config.premium) {
|
302
|
-
_a.config.
|
305
|
+
_a.config.libraries.premium = _a.config.premium;
|
303
306
|
}
|
304
307
|
// Allow adding dynamic modules.
|
305
|
-
if (_a.config.
|
306
|
-
for (const name in _a.config.
|
307
|
-
const lib = _a.config.
|
308
|
+
if (_a.config.libraries) {
|
309
|
+
for (const name in _a.config.libraries) {
|
310
|
+
const lib = _a.config.libraries[name];
|
308
311
|
lib.use = lib.use || true;
|
309
312
|
yield _a.addLibrary(libWrapper, lib, name);
|
310
313
|
}
|
package/lib/cjs/Webform.d.ts
CHANGED
@@ -298,7 +298,7 @@ declare class Webform extends NestedDataComponent {
|
|
298
298
|
* @param {any} flags - Any flags to apply when setting the form.
|
299
299
|
* @returns {Promise} - The promise that is triggered when the form is set.
|
300
300
|
*/
|
301
|
-
setForm(form: object, flags
|
301
|
+
setForm(form: object, flags?: any): Promise<any>;
|
302
302
|
initialized: boolean | undefined;
|
303
303
|
/**
|
304
304
|
* Sets the form value.
|
package/lib/cjs/Webform.js
CHANGED
@@ -580,7 +580,7 @@ class Webform extends NestedDataComponent_1.default {
|
|
580
580
|
* @param {any} flags - Any flags to apply when setting the form.
|
581
581
|
* @returns {Promise} - The promise that is triggered when the form is set.
|
582
582
|
*/
|
583
|
-
setForm(form, flags) {
|
583
|
+
setForm(form, flags = {}) {
|
584
584
|
var _a, _b, _c;
|
585
585
|
const isFormAlreadySet = this._form && ((_a = this._form.components) === null || _a === void 0 ? void 0 : _a.length);
|
586
586
|
try {
|
package/lib/cjs/Wizard.d.ts
CHANGED
@@ -96,7 +96,7 @@ declare class Wizard extends Webform {
|
|
96
96
|
getPageIndexByKey(key: any): number;
|
97
97
|
get schema(): object;
|
98
98
|
setComponentSchema(): void;
|
99
|
-
setForm(form: any, flags
|
99
|
+
setForm(form: any, flags?: {}): Promise<any> | undefined;
|
100
100
|
onSetForm(clonedForm: any, initialForm: any): void;
|
101
101
|
setEditMode(submission: any): void;
|
102
102
|
setValue(submission: any, flags: {} | undefined, ignoreEstablishment: any): any;
|
package/lib/cjs/Wizard.js
CHANGED
package/lib/mjs/Embed.js
CHANGED
@@ -285,14 +285,17 @@ export class Formio {
|
|
285
285
|
if (Formio.config.template && Formio.config.includeLibs) {
|
286
286
|
await Formio.addLibrary(libWrapper, Formio.config.libs[Formio.config.template], Formio.config.template);
|
287
287
|
}
|
288
|
-
|
288
|
+
if (!Formio.config.libraries) {
|
289
|
+
Formio.config.libraries = Formio.config.modules || {};
|
290
|
+
}
|
291
|
+
// Adding premium if it is provided via the config.
|
289
292
|
if (Formio.config.premium) {
|
290
|
-
Formio.config.
|
293
|
+
Formio.config.libraries.premium = Formio.config.premium;
|
291
294
|
}
|
292
295
|
// Allow adding dynamic modules.
|
293
|
-
if (Formio.config.
|
294
|
-
for (const name in Formio.config.
|
295
|
-
const lib = Formio.config.
|
296
|
+
if (Formio.config.libraries) {
|
297
|
+
for (const name in Formio.config.libraries) {
|
298
|
+
const lib = Formio.config.libraries[name];
|
296
299
|
lib.use = lib.use || true;
|
297
300
|
await Formio.addLibrary(libWrapper, lib, name);
|
298
301
|
}
|
package/lib/mjs/Webform.d.ts
CHANGED
@@ -298,7 +298,7 @@ declare class Webform extends NestedDataComponent {
|
|
298
298
|
* @param {any} flags - Any flags to apply when setting the form.
|
299
299
|
* @returns {Promise} - The promise that is triggered when the form is set.
|
300
300
|
*/
|
301
|
-
setForm(form: object, flags
|
301
|
+
setForm(form: object, flags?: any): Promise<any>;
|
302
302
|
initialized: boolean | undefined;
|
303
303
|
/**
|
304
304
|
* Sets the form value.
|
package/lib/mjs/Webform.js
CHANGED
@@ -579,7 +579,7 @@ export default class Webform extends NestedDataComponent {
|
|
579
579
|
* @param {any} flags - Any flags to apply when setting the form.
|
580
580
|
* @returns {Promise} - The promise that is triggered when the form is set.
|
581
581
|
*/
|
582
|
-
setForm(form, flags) {
|
582
|
+
setForm(form, flags = {}) {
|
583
583
|
const isFormAlreadySet = this._form && this._form.components?.length;
|
584
584
|
try {
|
585
585
|
// Do not set the form again if it has been already set
|
package/lib/mjs/Wizard.d.ts
CHANGED
@@ -96,7 +96,7 @@ declare class Wizard extends Webform {
|
|
96
96
|
getPageIndexByKey(key: any): number;
|
97
97
|
get schema(): object;
|
98
98
|
setComponentSchema(): void;
|
99
|
-
setForm(form: any, flags
|
99
|
+
setForm(form: any, flags?: {}): Promise<any> | undefined;
|
100
100
|
onSetForm(clonedForm: any, initialForm: any): void;
|
101
101
|
setEditMode(submission: any): void;
|
102
102
|
setValue(submission: any, flags: {} | undefined, ignoreEstablishment: any): any;
|
package/lib/mjs/Wizard.js
CHANGED