@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.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +4 -4
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +4 -4
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- 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/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
@@ -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);
|