@formio/js 5.0.0-dev.5818.039b965 → 5.0.0-dev.5819.4f4202c

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.
@@ -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.
@@ -144,6 +144,11 @@ export function checkCalculated(component, submission, rowData) {
144
144
  * @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.
145
145
  * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
146
146
  */
147
+ /**
148
+ *
149
+ * @param conditionPaths
150
+ * @param data
151
+ */
147
152
  function getConditionalPathsRecursive(conditionPaths, data) {
148
153
  let currentGlobalIndex = 0;
149
154
  const conditionalPathsArray = [];
@@ -182,6 +187,14 @@ function getConditionalPathsRecursive(conditionPaths, data) {
182
187
  getConditionalPaths(data);
183
188
  return conditionalPathsArray;
184
189
  }
190
+ /**
191
+ *
192
+ * @param component
193
+ * @param condition
194
+ * @param row
195
+ * @param data
196
+ * @param instance
197
+ */
185
198
  export function checkSimpleConditional(component, condition, row, data, instance) {
186
199
  if (condition.when) {
187
200
  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-dev.5818.039b965",
3
+ "version": "5.0.0-dev.5819.4f4202c",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {