@formio/js 5.0.0-dev.5695.024ad9c → 5.0.0-dev.5704.492ccdf

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 (57) hide show
  1. package/dist/formio.builder.css +0 -1
  2. package/dist/formio.builder.min.css +1 -1
  3. package/dist/formio.form.css +0 -1
  4. package/dist/formio.form.js +60 -20
  5. package/dist/formio.form.min.css +1 -1
  6. package/dist/formio.form.min.js +1 -1
  7. package/dist/formio.full.css +0 -1
  8. package/dist/formio.full.js +40 -20
  9. package/dist/formio.full.min.css +1 -1
  10. package/dist/formio.full.min.js +1 -1
  11. package/dist/formio.js +1 -1
  12. package/dist/formio.min.js +1 -1
  13. package/dist/formio.utils.js +57 -17
  14. package/dist/formio.utils.min.js +1 -1
  15. package/lib/cjs/Webform.js +7 -0
  16. package/lib/cjs/components/checkbox/Checkbox.d.ts +1 -1
  17. package/lib/cjs/components/checkbox/Checkbox.js +1 -1
  18. package/lib/cjs/components/checkbox/fixtures/comp6.d.ts +32 -0
  19. package/lib/cjs/components/checkbox/fixtures/comp6.js +30 -0
  20. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  21. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  22. package/lib/cjs/components/datagrid/fixtures/comp10.d.ts +81 -0
  23. package/lib/cjs/components/datagrid/fixtures/comp10.js +87 -0
  24. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  25. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  26. package/lib/cjs/components/day/fixtures/comp8.d.ts +41 -0
  27. package/lib/cjs/components/day/fixtures/comp8.js +40 -0
  28. package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
  29. package/lib/cjs/components/day/fixtures/index.js +3 -1
  30. package/lib/cjs/translations/en.d.ts +3 -0
  31. package/lib/cjs/translations/en.js +4 -1
  32. package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +4 -3
  33. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +3 -3
  34. package/lib/cjs/utils/utils.d.ts +1 -10
  35. package/lib/cjs/utils/utils.js +59 -7
  36. package/lib/mjs/Webform.js +7 -0
  37. package/lib/mjs/components/checkbox/Checkbox.d.ts +1 -1
  38. package/lib/mjs/components/checkbox/Checkbox.js +1 -1
  39. package/lib/mjs/components/checkbox/fixtures/comp6.d.ts +32 -0
  40. package/lib/mjs/components/checkbox/fixtures/comp6.js +28 -0
  41. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  42. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  43. package/lib/mjs/components/datagrid/fixtures/comp10.d.ts +81 -0
  44. package/lib/mjs/components/datagrid/fixtures/comp10.js +85 -0
  45. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  46. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  47. package/lib/mjs/components/day/fixtures/comp8.d.ts +41 -0
  48. package/lib/mjs/components/day/fixtures/comp8.js +38 -0
  49. package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
  50. package/lib/mjs/components/day/fixtures/index.js +2 -1
  51. package/lib/mjs/translations/en.d.ts +3 -0
  52. package/lib/mjs/translations/en.js +4 -1
  53. package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +3 -3
  54. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +1 -1
  55. package/lib/mjs/utils/utils.d.ts +1 -10
  56. package/lib/mjs/utils/utils.js +58 -7
  57. package/package.json +2 -2
@@ -0,0 +1,32 @@
1
+ declare namespace _default {
2
+ let name: string;
3
+ let path: string;
4
+ let type: string;
5
+ let display: string;
6
+ let components: ({
7
+ label: string;
8
+ inputType: string;
9
+ tableView: boolean;
10
+ defaultValue: boolean;
11
+ key: string;
12
+ type: string;
13
+ name: string;
14
+ value: string;
15
+ input: boolean;
16
+ 'some name': boolean;
17
+ disableOnInvalid?: undefined;
18
+ } | {
19
+ type: string;
20
+ label: string;
21
+ key: string;
22
+ disableOnInvalid: boolean;
23
+ input: boolean;
24
+ tableView: boolean;
25
+ inputType?: undefined;
26
+ defaultValue?: undefined;
27
+ name?: undefined;
28
+ value?: undefined;
29
+ 'some name'?: undefined;
30
+ })[];
31
+ }
32
+ export default _default;
@@ -0,0 +1,28 @@
1
+ export default {
2
+ name: 'ckeckbox',
3
+ path: 'ckeckbox',
4
+ type: 'form',
5
+ display: 'form',
6
+ components: [
7
+ {
8
+ label: 'Checkbox',
9
+ inputType: 'radio',
10
+ tableView: false,
11
+ defaultValue: false,
12
+ key: 'checkbox',
13
+ type: 'checkbox',
14
+ name: 'some name',
15
+ value: 'ok',
16
+ input: true,
17
+ 'some name': false
18
+ },
19
+ {
20
+ type: 'button',
21
+ label: 'Submit',
22
+ key: 'submit',
23
+ disableOnInvalid: true,
24
+ input: true,
25
+ tableView: false
26
+ }
27
+ ],
28
+ };
@@ -3,5 +3,6 @@ import comp2 from './comp2';
3
3
  import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
+ import comp6 from './comp6';
6
7
  import customDefaultComponent from './customDefaultComponent';
7
- export { comp1, comp2, comp3, comp4, comp5, customDefaultComponent };
8
+ export { comp1, comp2, comp3, comp4, comp5, comp6, customDefaultComponent };
@@ -4,4 +4,5 @@ import comp2 from './comp2';
4
4
  import comp3 from './comp3';
5
5
  import comp4 from './comp4';
6
6
  import comp5 from './comp5';
7
- export { comp1, comp2, comp3, comp4, comp5, customDefaultComponent };
7
+ import comp6 from './comp6';
8
+ export { comp1, comp2, comp3, comp4, comp5, comp6, customDefaultComponent };
@@ -0,0 +1,81 @@
1
+ declare namespace _default {
2
+ let title: string;
3
+ let name: string;
4
+ let path: string;
5
+ let type: string;
6
+ let display: string;
7
+ let components: ({
8
+ label: string;
9
+ reorder: boolean;
10
+ addAnotherPosition: string;
11
+ layoutFixed: boolean;
12
+ enableRowGroups: boolean;
13
+ initEmpty: boolean;
14
+ tableView: boolean;
15
+ defaultValue: {}[];
16
+ validate: {
17
+ required: boolean;
18
+ };
19
+ key: string;
20
+ type: string;
21
+ input: boolean;
22
+ components: {
23
+ label: string;
24
+ columns: ({
25
+ components: {
26
+ label: string;
27
+ applyMaskOn: string;
28
+ tableView: boolean;
29
+ key: string;
30
+ type: string;
31
+ input: boolean;
32
+ }[];
33
+ width: number;
34
+ offset: number;
35
+ push: number;
36
+ pull: number;
37
+ size: string;
38
+ currentWidth: number;
39
+ } | {
40
+ components: {
41
+ label: string;
42
+ tableView: boolean;
43
+ key: string;
44
+ type: string;
45
+ input: boolean;
46
+ }[];
47
+ width: number;
48
+ offset: number;
49
+ push: number;
50
+ pull: number;
51
+ size: string;
52
+ currentWidth: number;
53
+ })[];
54
+ key: string;
55
+ type: string;
56
+ input: boolean;
57
+ tableView: boolean;
58
+ }[];
59
+ disableOnInvalid?: undefined;
60
+ } | {
61
+ type: string;
62
+ label: string;
63
+ key: string;
64
+ disableOnInvalid: boolean;
65
+ input: boolean;
66
+ tableView: boolean;
67
+ reorder?: undefined;
68
+ addAnotherPosition?: undefined;
69
+ layoutFixed?: undefined;
70
+ enableRowGroups?: undefined;
71
+ initEmpty?: undefined;
72
+ defaultValue?: undefined;
73
+ validate?: undefined;
74
+ components?: undefined;
75
+ })[];
76
+ let pdfComponents: never[];
77
+ namespace settings {
78
+ let logs: string;
79
+ }
80
+ }
81
+ export default _default;
@@ -0,0 +1,85 @@
1
+ export default {
2
+ title: 'randomName',
3
+ name: 'randomName',
4
+ path: 'randomName',
5
+ type: 'form',
6
+ display: 'form',
7
+ components: [
8
+ {
9
+ label: 'Data Grid',
10
+ reorder: false,
11
+ addAnotherPosition: 'bottom',
12
+ layoutFixed: false,
13
+ enableRowGroups: false,
14
+ initEmpty: false,
15
+ tableView: false,
16
+ defaultValue: [
17
+ {}
18
+ ],
19
+ validate: {
20
+ required: true
21
+ },
22
+ key: 'dataGrid',
23
+ type: 'datagrid',
24
+ input: true,
25
+ components: [
26
+ {
27
+ label: 'Columns',
28
+ columns: [
29
+ {
30
+ components: [
31
+ {
32
+ label: 'Text Field',
33
+ applyMaskOn: 'change',
34
+ tableView: true,
35
+ key: 'textField',
36
+ type: 'textfield',
37
+ input: true
38
+ }
39
+ ],
40
+ width: 6,
41
+ offset: 0,
42
+ push: 0,
43
+ pull: 0,
44
+ size: 'md',
45
+ currentWidth: 6
46
+ },
47
+ {
48
+ components: [
49
+ {
50
+ label: 'Checkbox',
51
+ tableView: false,
52
+ key: 'checkbox',
53
+ type: 'checkbox',
54
+ input: true
55
+ }
56
+ ],
57
+ width: 6,
58
+ offset: 0,
59
+ push: 0,
60
+ pull: 0,
61
+ size: 'md',
62
+ currentWidth: 6
63
+ }
64
+ ],
65
+ key: 'columns',
66
+ type: 'columns',
67
+ input: false,
68
+ tableView: false
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ type: 'button',
74
+ label: 'Submit',
75
+ key: 'submit',
76
+ disableOnInvalid: true,
77
+ input: true,
78
+ tableView: false
79
+ }
80
+ ],
81
+ pdfComponents: [],
82
+ settings: {
83
+ logs: 'true'
84
+ }
85
+ };
@@ -7,6 +7,7 @@ import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
+ import comp10 from './comp10';
10
11
  import withCollapsibleRowGroups from './comp-with-collapsible-groups';
11
12
  import withConditionalFieldsAndValidations from './comp-with-conditional-components-and-validations';
12
13
  import withDefValue from './comp-with-def-value';
@@ -17,4 +18,4 @@ import withAllowCalculateOverride from './comp-with-allow-calculate-override';
17
18
  import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
18
19
  import withCheckboxes from './comp-with-checkboxes';
19
20
  import withReorder from './comp-with-reorder';
20
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes, withReorder };
21
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes, withReorder };
@@ -7,6 +7,7 @@ import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
+ import comp10 from './comp10';
10
11
  import withDefValue from './comp-with-def-value';
11
12
  import withRowGroupsAndDefValue from './comp-row-groups-with-def-value';
12
13
  import modalWithRequiredFields from './comp-modal-with-required-fields';
@@ -17,4 +18,4 @@ import withAllowCalculateOverride from './comp-with-allow-calculate-override';
17
18
  import twoWithAllowCalculatedOverride from './two-comp-with-allow-calculate-override';
18
19
  import withCheckboxes from './comp-with-checkboxes';
19
20
  import withReorder from './comp-with-reorder';
20
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes, withReorder };
21
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, withCollapsibleRowGroups, withConditionalFieldsAndValidations, withDefValue, withLogic, withRowGroupsAndDefValue, modalWithRequiredFields, withAllowCalculateOverride, twoWithAllowCalculatedOverride, withCheckboxes, withReorder };
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ let components: ({
3
+ label: string;
4
+ hideInputLabels: boolean;
5
+ inputsLabelPosition: string;
6
+ useLocaleSettings: boolean;
7
+ alwaysEnabled: boolean;
8
+ tableView: boolean;
9
+ fields: {
10
+ day: {
11
+ hide: boolean;
12
+ required: boolean;
13
+ };
14
+ month: {
15
+ hide: boolean;
16
+ required: boolean;
17
+ };
18
+ year: {
19
+ hide: boolean;
20
+ required: boolean;
21
+ };
22
+ };
23
+ key: string;
24
+ type: string;
25
+ input: boolean;
26
+ showValidations?: undefined;
27
+ } | {
28
+ label: string;
29
+ showValidations: boolean;
30
+ alwaysEnabled: boolean;
31
+ tableView: boolean;
32
+ key: string;
33
+ type: string;
34
+ input: boolean;
35
+ hideInputLabels?: undefined;
36
+ inputsLabelPosition?: undefined;
37
+ useLocaleSettings?: undefined;
38
+ fields?: undefined;
39
+ })[];
40
+ }
41
+ export default _default;
@@ -0,0 +1,38 @@
1
+ export default {
2
+ "components": [
3
+ {
4
+ "label": "Day - Table",
5
+ "hideInputLabels": false,
6
+ "inputsLabelPosition": "top",
7
+ "useLocaleSettings": false,
8
+ "alwaysEnabled": false,
9
+ "tableView": false,
10
+ "fields": {
11
+ "day": {
12
+ "hide": false,
13
+ "required": true
14
+ },
15
+ "month": {
16
+ "hide": false,
17
+ "required": true
18
+ },
19
+ "year": {
20
+ "hide": false,
21
+ "required": true
22
+ }
23
+ },
24
+ "key": "dayTable",
25
+ "type": "day",
26
+ "input": true
27
+ },
28
+ {
29
+ "label": "Submit",
30
+ "showValidations": false,
31
+ "alwaysEnabled": false,
32
+ "tableView": false,
33
+ "key": "submit",
34
+ "type": "button",
35
+ "input": true
36
+ }
37
+ ]
38
+ };
@@ -5,4 +5,5 @@ import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
8
+ import comp8 from './comp8';
9
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -5,4 +5,5 @@ import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
7
  import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
8
+ import comp8 from './comp8';
9
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -74,5 +74,8 @@ declare namespace _default {
74
74
  let apiKey: string;
75
75
  let typeRemaining: string;
76
76
  let typeCount: string;
77
+ let requiredDayField: string;
78
+ let requiredMonthField: string;
79
+ let requiredYearField: string;
77
80
  }
78
81
  export default _default;
@@ -73,5 +73,8 @@ export default {
73
73
  reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
74
74
  apiKey: 'API Key is not unique: {{key}}',
75
75
  typeRemaining: '{{ remaining }} {{ type }} remaining.',
76
- typeCount: '{{ count }} {{ type }}'
76
+ typeCount: '{{ count }} {{ type }}',
77
+ requiredDayField: '{{ field }} is required',
78
+ requiredMonthField: '{{ field }} is required',
79
+ requiredYearField: '{{ field }} is required'
77
80
  };
@@ -11,10 +11,10 @@ export default class IsEmptyValue extends ConditionOperator {
11
11
  return false;
12
12
  }
13
13
  execute({ value, instance, conditionComponentPath }) {
14
- const isEmptyValue = _.isEmpty(value);
14
+ const isEmptyValue = _.isEmpty(_.isNumber(value) ? String(value) : value);
15
15
  if (instance && instance.root) {
16
- const conditionTriggerComponent = instance.root.getComponent(conditionComponentPath);
17
- return conditionTriggerComponent ? conditionTriggerComponent.isEmpty() : isEmptyValue;
16
+ const conditionTriggerComponent = instance.root?.getComponent && instance.root.getComponent(conditionComponentPath);
17
+ return conditionTriggerComponent?.isEmpty ? conditionTriggerComponent.isEmpty() : isEmptyValue;
18
18
  }
19
19
  return isEmptyValue;
20
20
  }
@@ -17,7 +17,7 @@ export default class IsEqualTo extends ConditionOperator {
17
17
  catch (e) { }
18
18
  }
19
19
  if (instance && instance.root) {
20
- const conditionTriggerComponent = instance.root.getComponent(conditionComponentPath);
20
+ const conditionTriggerComponent = instance.root?.getComponent && instance.root.getComponent(conditionComponentPath);
21
21
  if (conditionTriggerComponent
22
22
  && isSelectResourceWithObjectValue(conditionTriggerComponent.component)
23
23
  && conditionTriggerComponent.component?.template) {
@@ -56,16 +56,7 @@ export function isMongoId(text: string): boolean;
56
56
  * @param {*} rowData - The contextual row data for the component.
57
57
  */
58
58
  export function checkCalculated(component: import('@formio/core').Component, submission: import('@formio/core').Submission, rowData: any): void;
59
- /**
60
- * Check if a simple conditional evaluates to true.
61
- * @param {import('@formio/core').Component} component - The component to check for the conditional.
62
- * @param {import('@formio/core').SimpleConditional} condition - The condition to check.
63
- * @param {*} row - The row data for the component.
64
- * @param {*} data - The full submission data.
65
- * @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.
66
- * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
67
- */
68
- export function checkSimpleConditional(component: import('@formio/core').Component, condition: import('@formio/core').SimpleConditional, row: any, data: any, instance: any): boolean;
59
+ export function checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
69
60
  /**
70
61
  * Returns a components normalized value.
71
62
  * @param {string} compPath - The full path to the component.
@@ -145,6 +145,44 @@ export function checkCalculated(component, submission, rowData) {
145
145
  * @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.
146
146
  * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
147
147
  */
148
+ function getConditionalPathsRecursive(conditionPaths, data) {
149
+ let currentGlobalIndex = 0;
150
+ const conditionalPathsArray = [];
151
+ const getConditionalPaths = (data, currentPath = '', localIndex = 0) => {
152
+ currentPath = currentPath.replace(/^\.+|\.+$/g, '');
153
+ const currentLocalIndex = localIndex;
154
+ const currentData = _.get(data, currentPath);
155
+ if (Array.isArray(currentData) && currentData.filter(Boolean).length > 0) {
156
+ if (currentData.some(element => typeof element !== 'object')) {
157
+ return;
158
+ }
159
+ const hasInnerDataArray = currentData.find(x => Array.isArray(x[conditionPaths[currentLocalIndex]]));
160
+ if (hasInnerDataArray) {
161
+ currentData.forEach((_, indexOutside) => {
162
+ const innerCompDataPath = `${currentPath}[${indexOutside}].${conditionPaths[currentLocalIndex]}`;
163
+ getConditionalPaths(data, innerCompDataPath, currentLocalIndex + 1);
164
+ });
165
+ }
166
+ else {
167
+ currentData.forEach((x, index) => {
168
+ if (!_.isNil(x[conditionPaths[currentLocalIndex]])) {
169
+ const compDataPath = `${currentPath}[${index}].${conditionPaths[currentLocalIndex]}`;
170
+ conditionalPathsArray.push(compDataPath);
171
+ }
172
+ });
173
+ }
174
+ }
175
+ else {
176
+ if (!conditionPaths[currentGlobalIndex]) {
177
+ return;
178
+ }
179
+ currentGlobalIndex = currentGlobalIndex + 1;
180
+ getConditionalPaths(data, `${currentPath}.${conditionPaths[currentGlobalIndex - 1]}`, currentGlobalIndex);
181
+ }
182
+ };
183
+ getConditionalPaths(data);
184
+ return conditionalPathsArray;
185
+ }
148
186
  export function checkSimpleConditional(component, condition, row, data, instance) {
149
187
  if (condition.when) {
150
188
  const value = getComponentActualValue(condition.when, data, row);
@@ -170,19 +208,32 @@ export function checkSimpleConditional(component, condition, row, data, instance
170
208
  if (!conditionComponentPath) {
171
209
  return true;
172
210
  }
173
- const value = getComponentActualValue(conditionComponentPath, data, row);
174
- const ConditionOperator = ConditionOperators[operator];
175
- return ConditionOperator
176
- ? new ConditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })
177
- : true;
211
+ const splittedConditionPath = conditionComponentPath.split('.');
212
+ const conditionalPaths = instance?.parent?.type === 'datagrid' || instance?.parent?.type === 'editgrid' ? [] : getConditionalPathsRecursive(splittedConditionPath, data);
213
+ if (conditionalPaths.length > 0) {
214
+ return conditionalPaths.map((path) => {
215
+ const value = getComponentActualValue(path, data, row);
216
+ const ConditionOperator = ConditionOperators[operator];
217
+ return ConditionOperator
218
+ ? new ConditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })
219
+ : true;
220
+ });
221
+ }
222
+ else {
223
+ const value = getComponentActualValue(conditionComponentPath, data, row);
224
+ const СonditionOperator = ConditionOperators[operator];
225
+ return СonditionOperator
226
+ ? new СonditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })
227
+ : true;
228
+ }
178
229
  });
179
230
  let result = false;
180
231
  switch (conjunction) {
181
232
  case 'any':
182
- result = _.some(conditionsResult, res => !!res);
233
+ result = _.some(conditionsResult.flat(), res => !!res);
183
234
  break;
184
235
  default:
185
- result = _.every(conditionsResult, res => !!res);
236
+ result = _.every(conditionsResult.flat(), res => !!res);
186
237
  }
187
238
  return show ? result : !result;
188
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5695.024ad9c",
3
+ "version": "5.0.0-dev.5704.492ccdf",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "@formio/bootstrap": "3.0.0-dev.98.17ba6ea",
83
83
  "@formio/choices.js": "^10.2.1",
84
- "@formio/core": "2.1.0-dev.104.42720ba",
84
+ "@formio/core": "2.1.0-dev.105.1bff2e6",
85
85
  "@formio/text-mask-addons": "^3.8.0-formio.2",
86
86
  "@formio/vanilla-text-mask": "^5.1.1-formio.1",
87
87
  "abortcontroller-polyfill": "^1.7.5",