@formio/js 5.0.0-dev.5633.53931b9 → 5.0.0-dev.5633.8d2b30d
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 +3 -3
- package/dist/formio.full.js +3 -3
- package/lib/cjs/Webform.d.ts +4 -3
- package/lib/cjs/Webform.js +3 -2
- package/lib/cjs/components/_classes/component/Component.d.ts +7 -5
- package/lib/cjs/components/_classes/component/Component.js +5 -3
- package/lib/cjs/components/form/Form.d.ts +4 -3
- package/lib/cjs/components/form/Form.js +3 -2
- package/lib/mjs/Webform.d.ts +4 -3
- package/lib/mjs/Webform.js +3 -2
- package/lib/mjs/components/_classes/component/Component.d.ts +7 -5
- package/lib/mjs/components/_classes/component/Component.js +5 -3
- package/lib/mjs/components/form/Form.d.ts +4 -3
- package/lib/mjs/components/form/Form.js +3 -2
- package/package.json +1 -1
package/lib/cjs/Webform.d.ts
CHANGED
|
@@ -358,11 +358,12 @@ declare class Webform extends NestedDataComponent {
|
|
|
358
358
|
get submission(): Object;
|
|
359
359
|
/**
|
|
360
360
|
* Sets the submission value
|
|
361
|
-
*
|
|
362
|
-
* @param {
|
|
361
|
+
*
|
|
362
|
+
* @param {Object | null | undefined} submission
|
|
363
|
+
* @param {Object | null | undefined} flags
|
|
363
364
|
* @return {void}
|
|
364
365
|
*/
|
|
365
|
-
onSetSubmission(submission:
|
|
366
|
+
onSetSubmission(submission: Object | null | undefined, flags?: Object | null | undefined): void;
|
|
366
367
|
/**
|
|
367
368
|
* Sets a submission and returns the promise when it is ready.
|
|
368
369
|
* @param submission
|
package/lib/cjs/Webform.js
CHANGED
|
@@ -718,8 +718,9 @@ class Webform extends NestedDataComponent_1.default {
|
|
|
718
718
|
}
|
|
719
719
|
/**
|
|
720
720
|
* Sets the submission value
|
|
721
|
-
*
|
|
722
|
-
* @param {
|
|
721
|
+
*
|
|
722
|
+
* @param {Object | null | undefined} submission
|
|
723
|
+
* @param {Object | null | undefined} flags
|
|
723
724
|
* @return {void}
|
|
724
725
|
*/
|
|
725
726
|
onSetSubmission(submission, flags = {}) {
|
|
@@ -329,21 +329,23 @@ declare class Component extends Element {
|
|
|
329
329
|
setOpenModalElement(template: any): void;
|
|
330
330
|
/**
|
|
331
331
|
* Renders a modal preview template and returns the markup as a string
|
|
332
|
-
*
|
|
332
|
+
*
|
|
333
|
+
* @param {Object | null | undefined} ctx - the rendering context
|
|
333
334
|
* @return {string}
|
|
334
335
|
*/
|
|
335
|
-
renderModalPreview(ctx:
|
|
336
|
+
renderModalPreview(ctx: Object | null | undefined): string;
|
|
336
337
|
getModalPreviewTemplate(): string;
|
|
337
338
|
build(element: any): Promise<void>;
|
|
338
339
|
get hasModalSaveButton(): boolean;
|
|
339
340
|
render(children?: string, topLevel?: boolean): any;
|
|
340
341
|
/**
|
|
341
342
|
* Creates the tooltip instance using tippy.js and returns it
|
|
343
|
+
*
|
|
342
344
|
* @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
|
|
343
|
-
* @param {
|
|
344
|
-
* @return {
|
|
345
|
+
* @param {Object | null | undefined} settings - tippy.js options
|
|
346
|
+
* @return {any} - tippy.js instance
|
|
345
347
|
*/
|
|
346
|
-
createTooltip(tooltipEl: HTMLElement, settings?:
|
|
348
|
+
createTooltip(tooltipEl: HTMLElement, settings?: Object | null | undefined): any;
|
|
347
349
|
attachTooltips(toolTipsRefs: any): void;
|
|
348
350
|
createComponentModal(element: any, modalShouldBeOpened: any, currentValue: any): ComponentModal;
|
|
349
351
|
attach(element: any): Promise<void>;
|
|
@@ -1031,7 +1031,8 @@ class Component extends Element_1.default {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Renders a modal preview template and returns the markup as a string
|
|
1034
|
-
*
|
|
1034
|
+
*
|
|
1035
|
+
* @param {Object | null | undefined} ctx - the rendering context
|
|
1035
1036
|
* @return {string}
|
|
1036
1037
|
*/
|
|
1037
1038
|
renderModalPreview(ctx) {
|
|
@@ -1084,9 +1085,10 @@ class Component extends Element_1.default {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
/**
|
|
1086
1087
|
* Creates the tooltip instance using tippy.js and returns it
|
|
1088
|
+
*
|
|
1087
1089
|
* @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
|
|
1088
|
-
* @param {
|
|
1089
|
-
* @return {
|
|
1090
|
+
* @param {Object | null | undefined} settings - tippy.js options
|
|
1091
|
+
* @return {any} - tippy.js instance
|
|
1090
1092
|
*/
|
|
1091
1093
|
createTooltip(tooltipEl, settings = {}) {
|
|
1092
1094
|
const tooltipAttribute = tooltipEl.getAttribute('data-tooltip');
|
|
@@ -81,11 +81,12 @@ export default class FormComponent extends Component {
|
|
|
81
81
|
setSubFormValue(submission: any, flags: any): void;
|
|
82
82
|
/**
|
|
83
83
|
* Sets the subform value
|
|
84
|
-
*
|
|
85
|
-
* @param {
|
|
84
|
+
*
|
|
85
|
+
* @param {Object | null | undefined} submission
|
|
86
|
+
* @param {Object | null | undefined} flags
|
|
86
87
|
* @return {void}
|
|
87
88
|
*/
|
|
88
|
-
onSetSubFormValue(submission:
|
|
89
|
+
onSetSubFormValue(submission: Object | null | undefined, flags: Object | null | undefined): void;
|
|
89
90
|
areAllComponentsEmpty(data: any): boolean;
|
|
90
91
|
updateSubFormVisibility(): void;
|
|
91
92
|
/**
|
|
@@ -651,8 +651,9 @@ class FormComponent extends Component_1.default {
|
|
|
651
651
|
}
|
|
652
652
|
/**
|
|
653
653
|
* Sets the subform value
|
|
654
|
-
*
|
|
655
|
-
* @param {
|
|
654
|
+
*
|
|
655
|
+
* @param {Object | null | undefined} submission
|
|
656
|
+
* @param {Object | null | undefined} flags
|
|
656
657
|
* @return {void}
|
|
657
658
|
*/
|
|
658
659
|
onSetSubFormValue(submission, flags) {
|
package/lib/mjs/Webform.d.ts
CHANGED
|
@@ -358,11 +358,12 @@ declare class Webform extends NestedDataComponent {
|
|
|
358
358
|
get submission(): Object;
|
|
359
359
|
/**
|
|
360
360
|
* Sets the submission value
|
|
361
|
-
*
|
|
362
|
-
* @param {
|
|
361
|
+
*
|
|
362
|
+
* @param {Object | null | undefined} submission
|
|
363
|
+
* @param {Object | null | undefined} flags
|
|
363
364
|
* @return {void}
|
|
364
365
|
*/
|
|
365
|
-
onSetSubmission(submission:
|
|
366
|
+
onSetSubmission(submission: Object | null | undefined, flags?: Object | null | undefined): void;
|
|
366
367
|
/**
|
|
367
368
|
* Sets a submission and returns the promise when it is ready.
|
|
368
369
|
* @param submission
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -716,8 +716,9 @@ export default class Webform extends NestedDataComponent {
|
|
|
716
716
|
}
|
|
717
717
|
/**
|
|
718
718
|
* Sets the submission value
|
|
719
|
-
*
|
|
720
|
-
* @param {
|
|
719
|
+
*
|
|
720
|
+
* @param {Object | null | undefined} submission
|
|
721
|
+
* @param {Object | null | undefined} flags
|
|
721
722
|
* @return {void}
|
|
722
723
|
*/
|
|
723
724
|
onSetSubmission(submission, flags = {}) {
|
|
@@ -329,21 +329,23 @@ declare class Component extends Element {
|
|
|
329
329
|
setOpenModalElement(template: any): void;
|
|
330
330
|
/**
|
|
331
331
|
* Renders a modal preview template and returns the markup as a string
|
|
332
|
-
*
|
|
332
|
+
*
|
|
333
|
+
* @param {Object | null | undefined} ctx - the rendering context
|
|
333
334
|
* @return {string}
|
|
334
335
|
*/
|
|
335
|
-
renderModalPreview(ctx:
|
|
336
|
+
renderModalPreview(ctx: Object | null | undefined): string;
|
|
336
337
|
getModalPreviewTemplate(): string;
|
|
337
338
|
build(element: any): Promise<void>;
|
|
338
339
|
get hasModalSaveButton(): boolean;
|
|
339
340
|
render(children?: string, topLevel?: boolean): any;
|
|
340
341
|
/**
|
|
341
342
|
* Creates the tooltip instance using tippy.js and returns it
|
|
343
|
+
*
|
|
342
344
|
* @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
|
|
343
|
-
* @param {
|
|
344
|
-
* @return {
|
|
345
|
+
* @param {Object | null | undefined} settings - tippy.js options
|
|
346
|
+
* @return {any} - tippy.js instance
|
|
345
347
|
*/
|
|
346
|
-
createTooltip(tooltipEl: HTMLElement, settings?:
|
|
348
|
+
createTooltip(tooltipEl: HTMLElement, settings?: Object | null | undefined): any;
|
|
347
349
|
attachTooltips(toolTipsRefs: any): void;
|
|
348
350
|
createComponentModal(element: any, modalShouldBeOpened: any, currentValue: any): ComponentModal;
|
|
349
351
|
attach(element: any): Promise<void>;
|
|
@@ -998,7 +998,8 @@ export default class Component extends Element {
|
|
|
998
998
|
}
|
|
999
999
|
/**
|
|
1000
1000
|
* Renders a modal preview template and returns the markup as a string
|
|
1001
|
-
*
|
|
1001
|
+
*
|
|
1002
|
+
* @param {Object | null | undefined} ctx - the rendering context
|
|
1002
1003
|
* @return {string}
|
|
1003
1004
|
*/
|
|
1004
1005
|
renderModalPreview(ctx) {
|
|
@@ -1050,9 +1051,10 @@ export default class Component extends Element {
|
|
|
1050
1051
|
}
|
|
1051
1052
|
/**
|
|
1052
1053
|
* Creates the tooltip instance using tippy.js and returns it
|
|
1054
|
+
*
|
|
1053
1055
|
* @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
|
|
1054
|
-
* @param {
|
|
1055
|
-
* @return {
|
|
1056
|
+
* @param {Object | null | undefined} settings - tippy.js options
|
|
1057
|
+
* @return {any} - tippy.js instance
|
|
1056
1058
|
*/
|
|
1057
1059
|
createTooltip(tooltipEl, settings = {}) {
|
|
1058
1060
|
const tooltipAttribute = tooltipEl.getAttribute('data-tooltip');
|
|
@@ -81,11 +81,12 @@ export default class FormComponent extends Component {
|
|
|
81
81
|
setSubFormValue(submission: any, flags: any): void;
|
|
82
82
|
/**
|
|
83
83
|
* Sets the subform value
|
|
84
|
-
*
|
|
85
|
-
* @param {
|
|
84
|
+
*
|
|
85
|
+
* @param {Object | null | undefined} submission
|
|
86
|
+
* @param {Object | null | undefined} flags
|
|
86
87
|
* @return {void}
|
|
87
88
|
*/
|
|
88
|
-
onSetSubFormValue(submission:
|
|
89
|
+
onSetSubFormValue(submission: Object | null | undefined, flags: Object | null | undefined): void;
|
|
89
90
|
areAllComponentsEmpty(data: any): boolean;
|
|
90
91
|
updateSubFormVisibility(): void;
|
|
91
92
|
/**
|
|
@@ -641,8 +641,9 @@ export default class FormComponent extends Component {
|
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
643
643
|
* Sets the subform value
|
|
644
|
-
*
|
|
645
|
-
* @param {
|
|
644
|
+
*
|
|
645
|
+
* @param {Object | null | undefined} submission
|
|
646
|
+
* @param {Object | null | undefined} flags
|
|
646
647
|
* @return {void}
|
|
647
648
|
*/
|
|
648
649
|
onSetSubFormValue(submission, flags) {
|