@formio/js 5.0.0-dev.5676.625f434 → 5.0.0-dev.5680.d459cf5

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.
Files changed (33) hide show
  1. package/dist/formio.form.js +6 -6
  2. package/dist/formio.form.min.js +1 -1
  3. package/dist/formio.full.js +6 -6
  4. package/dist/formio.full.min.js +1 -1
  5. package/dist/formio.js +1 -1
  6. package/dist/formio.min.js +1 -1
  7. package/lib/cjs/Formio.js +1 -0
  8. package/lib/cjs/Webform.d.ts +1 -1
  9. package/lib/cjs/Webform.js +4 -2
  10. package/lib/cjs/components/_classes/component/Component.d.ts +2 -2
  11. package/lib/cjs/components/_classes/component/Component.js +2 -6
  12. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +1 -2
  13. package/lib/cjs/components/_classes/component/fixtures/index.js +1 -3
  14. package/lib/cjs/components/_classes/input/Input.js +23 -1
  15. package/lib/cjs/components/editgrid/EditGrid.js +2 -2
  16. package/lib/cjs/components/form/Form.d.ts +1 -1
  17. package/lib/cjs/components/form/Form.js +1 -1
  18. package/lib/mjs/Formio.js +1 -0
  19. package/lib/mjs/Webform.d.ts +1 -1
  20. package/lib/mjs/Webform.js +4 -2
  21. package/lib/mjs/components/_classes/component/Component.d.ts +2 -2
  22. package/lib/mjs/components/_classes/component/Component.js +2 -6
  23. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +1 -2
  24. package/lib/mjs/components/_classes/component/fixtures/index.js +1 -2
  25. package/lib/mjs/components/_classes/input/Input.js +22 -1
  26. package/lib/mjs/components/editgrid/EditGrid.js +2 -2
  27. package/lib/mjs/components/form/Form.d.ts +1 -1
  28. package/lib/mjs/components/form/Form.js +1 -1
  29. package/package.json +1 -1
  30. package/lib/cjs/components/_classes/component/fixtures/comp7.d.ts +0 -84
  31. package/lib/cjs/components/_classes/component/fixtures/comp7.js +0 -86
  32. package/lib/mjs/components/_classes/component/fixtures/comp7.d.ts +0 -84
  33. package/lib/mjs/components/_classes/component/fixtures/comp7.js +0 -84
package/lib/cjs/Formio.js CHANGED
@@ -125,3 +125,4 @@ if (typeof global !== 'undefined') {
125
125
  if (typeof window !== 'undefined') {
126
126
  sdk_1.Formio.addToGlobal(window);
127
127
  }
128
+ Embed_1.Formio._formioReady(sdk_1.Formio);
@@ -334,7 +334,7 @@ declare class Webform extends NestedDataComponent {
334
334
  * Sets the submission value
335
335
  * @param {object|null|undefined} submission - The submission to set.
336
336
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
337
- * @return {void}
337
+ * @returns {void}
338
338
  */
339
339
  onSetSubmission(submission: object | null | undefined, flags?: object | null | undefined): void;
340
340
  /**
@@ -702,7 +702,7 @@ class Webform extends NestedDataComponent_1.default {
702
702
  * Sets the submission value
703
703
  * @param {object|null|undefined} submission - The submission to set.
704
704
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
705
- * @return {void}
705
+ * @returns {void}
706
706
  */
707
707
  onSetSubmission(submission, flags = {}) {
708
708
  this.submissionSet = true;
@@ -882,7 +882,9 @@ class Webform extends NestedDataComponent_1.default {
882
882
  this.addComponents();
883
883
  this.on("submitButton", (options) => {
884
884
  this.submit(false, options).catch((e) => {
885
- options.instance.loading = false;
885
+ if (options === null || options === void 0 ? void 0 : options.instance) {
886
+ options.instance.loading = false;
887
+ }
886
888
  return e !== false && e !== undefined && console.log(e);
887
889
  });
888
890
  }, true);
@@ -346,7 +346,7 @@ declare class Component extends Element {
346
346
  /**
347
347
  * Renders a modal preview template and returns the markup as a string
348
348
  * @param {object|null|undefined} ctx - The rendering context
349
- * @return {string} - The modal preview markup
349
+ * @returns {string} - The modal preview markup
350
350
  */
351
351
  renderModalPreview(ctx: object | null | undefined): string;
352
352
  /**
@@ -372,7 +372,7 @@ declare class Component extends Element {
372
372
  * Creates the tooltip instance using tippy.js and returns it
373
373
  * @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
374
374
  * @param {object|null|undefined} settings - tippy.js options
375
- * @return {import('tippy.js').Tippy} - tippy.js instance
375
+ * @returns {import('tippy.js').Tippy} - tippy.js instance
376
376
  */
377
377
  createTooltip(tooltipEl: HTMLElement, settings?: object | null | undefined): import('tippy.js').Tippy;
378
378
  /**
@@ -1049,7 +1049,7 @@ class Component extends Element_1.default {
1049
1049
  /**
1050
1050
  * Renders a modal preview template and returns the markup as a string
1051
1051
  * @param {object|null|undefined} ctx - The rendering context
1052
- * @return {string} - The modal preview markup
1052
+ * @returns {string} - The modal preview markup
1053
1053
  */
1054
1054
  renderModalPreview(ctx) {
1055
1055
  return this.renderTemplate('modalPreview', ctx || {});
@@ -1118,7 +1118,7 @@ class Component extends Element_1.default {
1118
1118
  * Creates the tooltip instance using tippy.js and returns it
1119
1119
  * @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
1120
1120
  * @param {object|null|undefined} settings - tippy.js options
1121
- * @return {import('tippy.js').Tippy} - tippy.js instance
1121
+ * @returns {import('tippy.js').Tippy} - tippy.js instance
1122
1122
  */
1123
1123
  createTooltip(tooltipEl, settings = {}) {
1124
1124
  const tooltipAttribute = tooltipEl.getAttribute('data-tooltip');
@@ -3388,10 +3388,6 @@ class Component extends Element_1.default {
3388
3388
  const disabled = this.shouldDisabled;
3389
3389
  // Change states which won't be recalculated during redrawing
3390
3390
  if (this.visible !== visible) {
3391
- // If the logic is triggered by an event and the action sets the hidden state then the original
3392
- // component definition must be changed so that the components hidden state does not get flipped back by
3393
- // the fieldLogic function
3394
- this.originalComponent.hidden = !visible;
3395
3391
  this.visible = visible;
3396
3392
  }
3397
3393
  if (this.disabled !== disabled) {
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
@@ -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
- exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
6
+ exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
7
7
  const comp1_1 = __importDefault(require("./comp1"));
8
8
  exports.comp1 = comp1_1.default;
9
9
  const comp2_1 = __importDefault(require("./comp2"));
@@ -16,5 +16,3 @@ const comp5_1 = __importDefault(require("./comp5"));
16
16
  exports.comp5 = comp5_1.default;
17
17
  const comp6_1 = __importDefault(require("./comp6"));
18
18
  exports.comp6 = comp6_1.default;
19
- const comp7_1 = __importDefault(require("./comp7"));
20
- exports.comp7 = comp7_1.default;
@@ -234,11 +234,33 @@ class Input extends Multivalue_1.default {
234
234
  this.addFocusBlurEvents(element);
235
235
  if (this.options.submitOnEnter) {
236
236
  this.addEventListener(element, 'keypress', (event) => {
237
+ var _a;
237
238
  const key = event.keyCode || event.which;
238
239
  if (key === 13) {
239
240
  event.preventDefault();
240
241
  event.stopPropagation();
241
- this.emit('submitButton');
242
+ let submitButton = null;
243
+ if ((_a = this.root) === null || _a === void 0 ? void 0 : _a.everyComponent) {
244
+ this.root.everyComponent((component) => {
245
+ if ((component === null || component === void 0 ? void 0 : component.component.type) === 'button' &&
246
+ (component === null || component === void 0 ? void 0 : component.component.action) === 'submit') {
247
+ submitButton = component;
248
+ return false;
249
+ }
250
+ });
251
+ }
252
+ const options = {};
253
+ if (submitButton) {
254
+ options.instance = submitButton;
255
+ options.component = submitButton.component;
256
+ options.noValidate = this.component.state === 'draft';
257
+ options.state = this.component.state || 'submitted';
258
+ submitButton.loading = true;
259
+ this.emit('submitButton', options);
260
+ }
261
+ else {
262
+ this.emit('submitButton', options);
263
+ }
242
264
  }
243
265
  });
244
266
  }
@@ -88,7 +88,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
88
88
  {% if (!instance.options.readOnly && !instance.disabled) { %}
89
89
  <div class="col-sm-2">
90
90
  <div class="btn-group pull-right">
91
- <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('pen-fill') }}"></i></button>
91
+ <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('edit') }}"></i></button>
92
92
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
93
93
  <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass('trash') }}"></i></button>
94
94
  {% } %}
@@ -109,7 +109,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
109
109
  {% if (!instance.options.readOnly && !instance.disabled) { %}
110
110
  <td class="editgrid-table-column">
111
111
  <div class="btn-group">
112
- <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('pen-fill') }}"></i></button>
112
+ <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('edit') }}"></i></button>
113
113
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
114
114
  <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t('Remove row') }}"><i class="{{ iconClass('trash') }}"></i></button>
115
115
  {% } %}
@@ -94,7 +94,7 @@ export default class FormComponent extends Component {
94
94
  * Sets the subform value
95
95
  * @param {object|null|undefined} submission - The submission to set.
96
96
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
97
- * @return {void}
97
+ * @returns {void}
98
98
  */
99
99
  onSetSubFormValue(submission: object | null | undefined, flags: object | null | undefined): void;
100
100
  areAllComponentsEmpty(data: any): boolean;
@@ -656,7 +656,7 @@ class FormComponent extends Component_1.default {
656
656
  * Sets the subform value
657
657
  * @param {object|null|undefined} submission - The submission to set.
658
658
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
659
- * @return {void}
659
+ * @returns {void}
660
660
  */
661
661
  onSetSubFormValue(submission, flags) {
662
662
  this.subForm.setValue(submission, flags);
package/lib/mjs/Formio.js CHANGED
@@ -118,4 +118,5 @@ if (typeof global !== 'undefined') {
118
118
  if (typeof window !== 'undefined') {
119
119
  FormioCore.addToGlobal(window);
120
120
  }
121
+ FormioEmbed._formioReady(FormioCore);
121
122
  export { FormioCore as Formio };
@@ -334,7 +334,7 @@ declare class Webform extends NestedDataComponent {
334
334
  * Sets the submission value
335
335
  * @param {object|null|undefined} submission - The submission to set.
336
336
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
337
- * @return {void}
337
+ * @returns {void}
338
338
  */
339
339
  onSetSubmission(submission: object | null | undefined, flags?: object | null | undefined): void;
340
340
  /**
@@ -700,7 +700,7 @@ export default class Webform extends NestedDataComponent {
700
700
  * Sets the submission value
701
701
  * @param {object|null|undefined} submission - The submission to set.
702
702
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
703
- * @return {void}
703
+ * @returns {void}
704
704
  */
705
705
  onSetSubmission(submission, flags = {}) {
706
706
  this.submissionSet = true;
@@ -886,7 +886,9 @@ export default class Webform extends NestedDataComponent {
886
886
  this.addComponents();
887
887
  this.on("submitButton", (options) => {
888
888
  this.submit(false, options).catch((e) => {
889
- options.instance.loading = false;
889
+ if (options?.instance) {
890
+ options.instance.loading = false;
891
+ }
890
892
  return e !== false && e !== undefined && console.log(e);
891
893
  });
892
894
  }, true);
@@ -346,7 +346,7 @@ declare class Component extends Element {
346
346
  /**
347
347
  * Renders a modal preview template and returns the markup as a string
348
348
  * @param {object|null|undefined} ctx - The rendering context
349
- * @return {string} - The modal preview markup
349
+ * @returns {string} - The modal preview markup
350
350
  */
351
351
  renderModalPreview(ctx: object | null | undefined): string;
352
352
  /**
@@ -372,7 +372,7 @@ declare class Component extends Element {
372
372
  * Creates the tooltip instance using tippy.js and returns it
373
373
  * @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
374
374
  * @param {object|null|undefined} settings - tippy.js options
375
- * @return {import('tippy.js').Tippy} - tippy.js instance
375
+ * @returns {import('tippy.js').Tippy} - tippy.js instance
376
376
  */
377
377
  createTooltip(tooltipEl: HTMLElement, settings?: object | null | undefined): import('tippy.js').Tippy;
378
378
  /**
@@ -1016,7 +1016,7 @@ export default class Component extends Element {
1016
1016
  /**
1017
1017
  * Renders a modal preview template and returns the markup as a string
1018
1018
  * @param {object|null|undefined} ctx - The rendering context
1019
- * @return {string} - The modal preview markup
1019
+ * @returns {string} - The modal preview markup
1020
1020
  */
1021
1021
  renderModalPreview(ctx) {
1022
1022
  return this.renderTemplate('modalPreview', ctx || {});
@@ -1084,7 +1084,7 @@ export default class Component extends Element {
1084
1084
  * Creates the tooltip instance using tippy.js and returns it
1085
1085
  * @param {HTMLElement} tooltipEl - HTML element to attach the tooltip
1086
1086
  * @param {object|null|undefined} settings - tippy.js options
1087
- * @return {import('tippy.js').Tippy} - tippy.js instance
1087
+ * @returns {import('tippy.js').Tippy} - tippy.js instance
1088
1088
  */
1089
1089
  createTooltip(tooltipEl, settings = {}) {
1090
1090
  const tooltipAttribute = tooltipEl.getAttribute('data-tooltip');
@@ -3361,10 +3361,6 @@ export default class Component extends Element {
3361
3361
  const disabled = this.shouldDisabled;
3362
3362
  // Change states which won't be recalculated during redrawing
3363
3363
  if (this.visible !== visible) {
3364
- // If the logic is triggered by an event and the action sets the hidden state then the original
3365
- // component definition must be changed so that the components hidden state does not get flipped back by
3366
- // the fieldLogic function
3367
- this.originalComponent.hidden = !visible;
3368
3364
  this.visible = visible;
3369
3365
  }
3370
3366
  if (this.disabled !== disabled) {
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
@@ -233,7 +233,28 @@ export default class Input extends Multivalue {
233
233
  if (key === 13) {
234
234
  event.preventDefault();
235
235
  event.stopPropagation();
236
- this.emit('submitButton');
236
+ let submitButton = null;
237
+ if (this.root?.everyComponent) {
238
+ this.root.everyComponent((component) => {
239
+ if (component?.component.type === 'button' &&
240
+ component?.component.action === 'submit') {
241
+ submitButton = component;
242
+ return false;
243
+ }
244
+ });
245
+ }
246
+ const options = {};
247
+ if (submitButton) {
248
+ options.instance = submitButton;
249
+ options.component = submitButton.component;
250
+ options.noValidate = this.component.state === 'draft';
251
+ options.state = this.component.state || 'submitted';
252
+ submitButton.loading = true;
253
+ this.emit('submitButton', options);
254
+ }
255
+ else {
256
+ this.emit('submitButton', options);
257
+ }
237
258
  }
238
259
  });
239
260
  }
@@ -83,7 +83,7 @@ export default class EditGridComponent extends NestedArrayComponent {
83
83
  {% if (!instance.options.readOnly && !instance.disabled) { %}
84
84
  <div class="col-sm-2">
85
85
  <div class="btn-group pull-right">
86
- <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('pen-fill') }}"></i></button>
86
+ <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('edit') }}"></i></button>
87
87
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
88
88
  <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass('trash') }}"></i></button>
89
89
  {% } %}
@@ -104,7 +104,7 @@ export default class EditGridComponent extends NestedArrayComponent {
104
104
  {% if (!instance.options.readOnly && !instance.disabled) { %}
105
105
  <td class="editgrid-table-column">
106
106
  <div class="btn-group">
107
- <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('pen-fill') }}"></i></button>
107
+ <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('edit') }}"></i></button>
108
108
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
109
109
  <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t('Remove row') }}"><i class="{{ iconClass('trash') }}"></i></button>
110
110
  {% } %}
@@ -94,7 +94,7 @@ export default class FormComponent extends Component {
94
94
  * Sets the subform value
95
95
  * @param {object|null|undefined} submission - The submission to set.
96
96
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
97
- * @return {void}
97
+ * @returns {void}
98
98
  */
99
99
  onSetSubFormValue(submission: object | null | undefined, flags: object | null | undefined): void;
100
100
  areAllComponentsEmpty(data: any): boolean;
@@ -646,7 +646,7 @@ export default class FormComponent extends Component {
646
646
  * Sets the subform value
647
647
  * @param {object|null|undefined} submission - The submission to set.
648
648
  * @param {object|null|undefined} flags - Any flags to apply when setting the submission.
649
- * @return {void}
649
+ * @returns {void}
650
650
  */
651
651
  onSetSubFormValue(submission, flags) {
652
652
  this.subForm.setValue(submission, flags);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5676.625f434",
3
+ "version": "5.0.0-dev.5680.d459cf5",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -1,84 +0,0 @@
1
- declare namespace _default {
2
- let components: ({
3
- label: string;
4
- action: string;
5
- showValidations: boolean;
6
- tableView: boolean;
7
- key: string;
8
- type: string;
9
- event: string;
10
- input: boolean;
11
- theme?: undefined;
12
- collapsible?: undefined;
13
- hidden?: undefined;
14
- logic?: undefined;
15
- collapsed?: undefined;
16
- components?: undefined;
17
- applyMaskOn?: undefined;
18
- } | {
19
- label: string;
20
- action: string;
21
- showValidations: boolean;
22
- theme: string;
23
- tableView: boolean;
24
- key: string;
25
- type: string;
26
- event: string;
27
- input: boolean;
28
- collapsible?: undefined;
29
- hidden?: undefined;
30
- logic?: undefined;
31
- collapsed?: undefined;
32
- components?: undefined;
33
- applyMaskOn?: undefined;
34
- } | {
35
- collapsible: boolean;
36
- hidden: boolean;
37
- key: string;
38
- logic: {
39
- name: string;
40
- trigger: {
41
- type: string;
42
- event: string;
43
- };
44
- actions: {
45
- name: string;
46
- type: string;
47
- property: {
48
- label: string;
49
- value: string;
50
- type: string;
51
- };
52
- state: boolean;
53
- }[];
54
- }[];
55
- type: string;
56
- label: string;
57
- collapsed: boolean;
58
- input: boolean;
59
- tableView: boolean;
60
- components: never[];
61
- action?: undefined;
62
- showValidations?: undefined;
63
- event?: undefined;
64
- theme?: undefined;
65
- applyMaskOn?: undefined;
66
- } | {
67
- label: string;
68
- applyMaskOn: string;
69
- tableView: boolean;
70
- key: string;
71
- type: string;
72
- input: boolean;
73
- action?: undefined;
74
- showValidations?: undefined;
75
- event?: undefined;
76
- theme?: undefined;
77
- collapsible?: undefined;
78
- hidden?: undefined;
79
- logic?: undefined;
80
- collapsed?: undefined;
81
- components?: undefined;
82
- })[];
83
- }
84
- export default _default;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- components: [
5
- {
6
- "label": "Show",
7
- "action": "event",
8
- "showValidations": false,
9
- "tableView": false,
10
- "key": "show",
11
- "type": "button",
12
- "event": "show",
13
- "input": true
14
- },
15
- {
16
- "label": "Hide",
17
- "action": "event",
18
- "showValidations": false,
19
- "theme": "danger",
20
- "tableView": false,
21
- "key": "hide",
22
- "type": "button",
23
- "event": "hide",
24
- "input": true
25
- },
26
- {
27
- "collapsible": true,
28
- "hidden": true,
29
- "key": "panel",
30
- "logic": [
31
- {
32
- "name": "ShowPanel",
33
- "trigger": {
34
- "type": "event",
35
- "event": "show"
36
- },
37
- "actions": [
38
- {
39
- "name": "Show",
40
- "type": "property",
41
- "property": {
42
- "label": "Hidden",
43
- "value": "hidden",
44
- "type": "boolean"
45
- },
46
- "state": false
47
- }
48
- ]
49
- },
50
- {
51
- "name": "HidePanel",
52
- "trigger": {
53
- "type": "event",
54
- "event": "hide"
55
- },
56
- "actions": [
57
- {
58
- "name": "Hide",
59
- "type": "property",
60
- "property": {
61
- "label": "Hidden",
62
- "value": "hidden",
63
- "type": "boolean"
64
- },
65
- "state": true
66
- }
67
- ]
68
- }
69
- ],
70
- "type": "panel",
71
- "label": "Panel",
72
- "collapsed": false,
73
- "input": false,
74
- "tableView": false,
75
- "components": []
76
- },
77
- {
78
- "label": "Text Field",
79
- "applyMaskOn": "change",
80
- "tableView": true,
81
- "key": "textField1",
82
- "type": "textfield",
83
- "input": true
84
- }
85
- ]
86
- };
@@ -1,84 +0,0 @@
1
- declare namespace _default {
2
- let components: ({
3
- label: string;
4
- action: string;
5
- showValidations: boolean;
6
- tableView: boolean;
7
- key: string;
8
- type: string;
9
- event: string;
10
- input: boolean;
11
- theme?: undefined;
12
- collapsible?: undefined;
13
- hidden?: undefined;
14
- logic?: undefined;
15
- collapsed?: undefined;
16
- components?: undefined;
17
- applyMaskOn?: undefined;
18
- } | {
19
- label: string;
20
- action: string;
21
- showValidations: boolean;
22
- theme: string;
23
- tableView: boolean;
24
- key: string;
25
- type: string;
26
- event: string;
27
- input: boolean;
28
- collapsible?: undefined;
29
- hidden?: undefined;
30
- logic?: undefined;
31
- collapsed?: undefined;
32
- components?: undefined;
33
- applyMaskOn?: undefined;
34
- } | {
35
- collapsible: boolean;
36
- hidden: boolean;
37
- key: string;
38
- logic: {
39
- name: string;
40
- trigger: {
41
- type: string;
42
- event: string;
43
- };
44
- actions: {
45
- name: string;
46
- type: string;
47
- property: {
48
- label: string;
49
- value: string;
50
- type: string;
51
- };
52
- state: boolean;
53
- }[];
54
- }[];
55
- type: string;
56
- label: string;
57
- collapsed: boolean;
58
- input: boolean;
59
- tableView: boolean;
60
- components: never[];
61
- action?: undefined;
62
- showValidations?: undefined;
63
- event?: undefined;
64
- theme?: undefined;
65
- applyMaskOn?: undefined;
66
- } | {
67
- label: string;
68
- applyMaskOn: string;
69
- tableView: boolean;
70
- key: string;
71
- type: string;
72
- input: boolean;
73
- action?: undefined;
74
- showValidations?: undefined;
75
- event?: undefined;
76
- theme?: undefined;
77
- collapsible?: undefined;
78
- hidden?: undefined;
79
- logic?: undefined;
80
- collapsed?: undefined;
81
- components?: undefined;
82
- })[];
83
- }
84
- export default _default;