@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.
@@ -358,11 +358,12 @@ declare class Webform extends NestedDataComponent {
358
358
  get submission(): Object;
359
359
  /**
360
360
  * Sets the submission value
361
- * @param {object|null|undefined} submission - The submission to set.
362
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
361
+ *
362
+ * @param {Object | null | undefined} submission
363
+ * @param {Object | null | undefined} flags
363
364
  * @return {void}
364
365
  */
365
- onSetSubmission(submission: object | null | undefined, flags?: object | null | undefined): void;
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
@@ -718,8 +718,9 @@ class Webform extends NestedDataComponent_1.default {
718
718
  }
719
719
  /**
720
720
  * Sets the submission value
721
- * @param {object|null|undefined} submission - The submission to set.
722
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
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
- * @param {object|null|undefined} ctx - The rendering context
332
+ *
333
+ * @param {Object | null | undefined} ctx - the rendering context
333
334
  * @return {string}
334
335
  */
335
- renderModalPreview(ctx: object | null | undefined): string;
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 {object|null|undefined} settings - tippy.js options
344
- * @return {import('tippy.js').Tippy} - tippy.js instance
345
+ * @param {Object | null | undefined} settings - tippy.js options
346
+ * @return {any} - tippy.js instance
345
347
  */
346
- createTooltip(tooltipEl: HTMLElement, settings?: object | null | undefined): import('tippy.js').Tippy;
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
- * @param {object|null|undefined} ctx - The rendering context
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 {object|null|undefined} settings - tippy.js options
1089
- * @return {import('tippy.js').Tippy} - tippy.js instance
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
- * @param {object|null|undefined} submission - The submission to set.
85
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
84
+ *
85
+ * @param {Object | null | undefined} submission
86
+ * @param {Object | null | undefined} flags
86
87
  * @return {void}
87
88
  */
88
- onSetSubFormValue(submission: object | null | undefined, flags: object | null | undefined): void;
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
- * @param {object|null|undefined} submission - The submission to set.
655
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
654
+ *
655
+ * @param {Object | null | undefined} submission
656
+ * @param {Object | null | undefined} flags
656
657
  * @return {void}
657
658
  */
658
659
  onSetSubFormValue(submission, flags) {
@@ -358,11 +358,12 @@ declare class Webform extends NestedDataComponent {
358
358
  get submission(): Object;
359
359
  /**
360
360
  * Sets the submission value
361
- * @param {object|null|undefined} submission - The submission to set.
362
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
361
+ *
362
+ * @param {Object | null | undefined} submission
363
+ * @param {Object | null | undefined} flags
363
364
  * @return {void}
364
365
  */
365
- onSetSubmission(submission: object | null | undefined, flags?: object | null | undefined): void;
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
@@ -716,8 +716,9 @@ export default class Webform extends NestedDataComponent {
716
716
  }
717
717
  /**
718
718
  * Sets the submission value
719
- * @param {object|null|undefined} submission - The submission to set.
720
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
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
- * @param {object|null|undefined} ctx - The rendering context
332
+ *
333
+ * @param {Object | null | undefined} ctx - the rendering context
333
334
  * @return {string}
334
335
  */
335
- renderModalPreview(ctx: object | null | undefined): string;
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 {object|null|undefined} settings - tippy.js options
344
- * @return {import('tippy.js').Tippy} - tippy.js instance
345
+ * @param {Object | null | undefined} settings - tippy.js options
346
+ * @return {any} - tippy.js instance
345
347
  */
346
- createTooltip(tooltipEl: HTMLElement, settings?: object | null | undefined): import('tippy.js').Tippy;
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
- * @param {object|null|undefined} ctx - The rendering context
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 {object|null|undefined} settings - tippy.js options
1055
- * @return {import('tippy.js').Tippy} - tippy.js instance
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
- * @param {object|null|undefined} submission - The submission to set.
85
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
84
+ *
85
+ * @param {Object | null | undefined} submission
86
+ * @param {Object | null | undefined} flags
86
87
  * @return {void}
87
88
  */
88
- onSetSubFormValue(submission: object | null | undefined, flags: object | null | undefined): void;
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
- * @param {object|null|undefined} submission - The submission to set.
645
- * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
644
+ *
645
+ * @param {Object | null | undefined} submission
646
+ * @param {Object | null | undefined} flags
646
647
  * @return {void}
647
648
  */
648
649
  onSetSubFormValue(submission, flags) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5633.53931b9",
3
+ "version": "5.0.0-dev.5633.8d2b30d",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {