@formio/js 5.2.6 → 5.2.7-rc.0
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.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Form.js +1 -1
- package/lib/cjs/FormBuilder.d.ts +2 -2
- package/lib/cjs/FormBuilder.js +1 -1
- package/lib/mjs/Form.js +1 -1
- package/lib/mjs/FormBuilder.d.ts +2 -2
- package/lib/mjs/FormBuilder.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Form.js
CHANGED
|
@@ -250,7 +250,7 @@ class Form extends Element_1.default {
|
|
|
250
250
|
return Promise.resolve(this.instance);
|
|
251
251
|
}
|
|
252
252
|
this.form.display = display;
|
|
253
|
-
this.instance.destroy();
|
|
253
|
+
this.instance.destroy(true);
|
|
254
254
|
this.instance = this.create(display);
|
|
255
255
|
return this.setForm(this.form);
|
|
256
256
|
}
|
package/lib/cjs/FormBuilder.d.ts
CHANGED
|
@@ -73,11 +73,11 @@ export default class FormBuilder extends Form {
|
|
|
73
73
|
/**
|
|
74
74
|
* Creates a new form builder.
|
|
75
75
|
* @param {HTMLElement} element - The HTML element to place the form builder.
|
|
76
|
-
* @param {string | object} form - The form to pass to the builder
|
|
76
|
+
* @param {string | object | undefined} form - The form to pass to the builder
|
|
77
77
|
* @param {FormBuilderOptions} options - The options to create this builder.
|
|
78
78
|
* @returns {FormBuilder} - The form builder instance.
|
|
79
79
|
*/
|
|
80
|
-
constructor(element: HTMLElement, form: string | object, options: {
|
|
80
|
+
constructor(element: HTMLElement, form: string | object | undefined, options: {
|
|
81
81
|
/**
|
|
82
82
|
* - An array of "keys" of components that should be disabled within the form builder. Example: ['firstName', 'lastName']
|
|
83
83
|
*/
|
package/lib/cjs/FormBuilder.js
CHANGED
|
@@ -10,7 +10,7 @@ class FormBuilder extends Form_1.default {
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a new form builder.
|
|
12
12
|
* @param {HTMLElement} element - The HTML element to place the form builder.
|
|
13
|
-
* @param {string | object} form - The form to pass to the builder
|
|
13
|
+
* @param {string | object | undefined} form - The form to pass to the builder
|
|
14
14
|
* @param {FormBuilderOptions} options - The options to create this builder.
|
|
15
15
|
* @returns {FormBuilder} - The form builder instance.
|
|
16
16
|
*/
|
package/lib/mjs/Form.js
CHANGED
|
@@ -342,7 +342,7 @@ export default class Form extends Element {
|
|
|
342
342
|
return Promise.resolve(this.instance);
|
|
343
343
|
}
|
|
344
344
|
this.form.display = display;
|
|
345
|
-
this.instance.destroy();
|
|
345
|
+
this.instance.destroy(true);
|
|
346
346
|
this.instance = this.create(display);
|
|
347
347
|
return this.setForm(this.form);
|
|
348
348
|
}
|
package/lib/mjs/FormBuilder.d.ts
CHANGED
|
@@ -73,11 +73,11 @@ export default class FormBuilder extends Form {
|
|
|
73
73
|
/**
|
|
74
74
|
* Creates a new form builder.
|
|
75
75
|
* @param {HTMLElement} element - The HTML element to place the form builder.
|
|
76
|
-
* @param {string | object} form - The form to pass to the builder
|
|
76
|
+
* @param {string | object | undefined} form - The form to pass to the builder
|
|
77
77
|
* @param {FormBuilderOptions} options - The options to create this builder.
|
|
78
78
|
* @returns {FormBuilder} - The form builder instance.
|
|
79
79
|
*/
|
|
80
|
-
constructor(element: HTMLElement, form: string | object, options: {
|
|
80
|
+
constructor(element: HTMLElement, form: string | object | undefined, options: {
|
|
81
81
|
/**
|
|
82
82
|
* - An array of "keys" of components that should be disabled within the form builder. Example: ['firstName', 'lastName']
|
|
83
83
|
*/
|
package/lib/mjs/FormBuilder.js
CHANGED
|
@@ -25,7 +25,7 @@ export default class FormBuilder extends Form {
|
|
|
25
25
|
/**
|
|
26
26
|
* Creates a new form builder.
|
|
27
27
|
* @param {HTMLElement} element - The HTML element to place the form builder.
|
|
28
|
-
* @param {string | object} form - The form to pass to the builder
|
|
28
|
+
* @param {string | object | undefined} form - The form to pass to the builder
|
|
29
29
|
* @param {FormBuilderOptions} options - The options to create this builder.
|
|
30
30
|
* @returns {FormBuilder} - The form builder instance.
|
|
31
31
|
*/
|