@formio/js 5.0.0-rc.81 → 5.0.0-rc.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,14 @@ 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
+ *
61
+ * @param component
62
+ * @param condition
63
+ * @param row
64
+ * @param data
65
+ * @param instance
66
+ */
59
67
  export function checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
60
68
  /**
61
69
  * Returns a components normalized value.
@@ -145,6 +145,11 @@ 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
+ /**
149
+ *
150
+ * @param conditionPaths
151
+ * @param data
152
+ */
148
153
  function getConditionalPathsRecursive(conditionPaths, data) {
149
154
  let currentGlobalIndex = 0;
150
155
  const conditionalPathsArray = [];
@@ -183,6 +188,14 @@ function getConditionalPathsRecursive(conditionPaths, data) {
183
188
  getConditionalPaths(data);
184
189
  return conditionalPathsArray;
185
190
  }
191
+ /**
192
+ *
193
+ * @param component
194
+ * @param condition
195
+ * @param row
196
+ * @param data
197
+ * @param instance
198
+ */
186
199
  export function checkSimpleConditional(component, condition, row, data, instance) {
187
200
  if (condition.when) {
188
201
  const value = getComponentActualValue(condition.when, data, row);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.81",
3
+ "version": "5.0.0-rc.82",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {