@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.
- package/Changelog.md +1 -0
- package/dist/formio.form.js +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.utils.js +1 -1
- package/lib/cjs/WebformBuilder.js +1 -4
- package/lib/cjs/components/select/Select.d.ts +1 -0
- package/lib/cjs/components/select/Select.js +23 -20
- package/lib/cjs/utils/utils.d.ts +8 -0
- package/lib/cjs/utils/utils.js +13 -0
- package/lib/mjs/WebformBuilder.js +1 -4
- package/lib/mjs/components/select/Select.d.ts +1 -0
- package/lib/mjs/components/select/Select.js +23 -20
- package/lib/mjs/utils/utils.d.ts +8 -0
- package/lib/mjs/utils/utils.js +13 -0
- package/package.json +1 -1
package/lib/mjs/utils/utils.d.ts
CHANGED
|
@@ -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.
|
package/lib/mjs/utils/utils.js
CHANGED
|
@@ -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);
|