@formio/js 5.0.0-rc.60 → 5.0.0-rc.62
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 +8 -8
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +47 -47
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +3 -3
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +2 -2
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Element.d.ts +1 -1
- package/lib/cjs/Embed.d.ts +2 -2
- package/lib/cjs/Embed.js +10 -10
- package/lib/cjs/Form.d.ts +3 -3
- package/lib/cjs/FormBuilder.d.ts +3 -42
- package/lib/cjs/InlineEmbed.js +2 -2
- package/lib/cjs/PDF.d.ts +1 -1
- package/lib/cjs/Webform.d.ts +3 -4
- package/lib/cjs/WebformBuilder.d.ts +1 -1
- package/lib/cjs/components/_classes/component/Component.form.d.ts +1 -1
- package/lib/cjs/components/_classes/component/Component.form.js +1 -1
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1 -1
- package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +7 -7
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +1 -1
- package/lib/cjs/components/address/Address.form.d.ts +1 -1
- package/lib/cjs/components/address/Address.form.js +1 -1
- package/lib/cjs/components/button/Button.form.d.ts +1 -1
- package/lib/cjs/components/button/Button.form.js +1 -1
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1 -1
- package/lib/cjs/components/checkbox/Checkbox.form.js +1 -1
- package/lib/cjs/components/columns/Columns.form.d.ts +1 -1
- package/lib/cjs/components/columns/Columns.form.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +1 -1
- package/lib/cjs/components/container/Container.form.js +1 -1
- package/lib/cjs/components/content/Content.form.d.ts +1 -1
- package/lib/cjs/components/content/Content.form.js +1 -1
- package/lib/cjs/components/currency/Currency.form.d.ts +1 -1
- package/lib/cjs/components/currency/Currency.form.js +1 -1
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1 -1
- package/lib/cjs/components/datagrid/DataGrid.form.js +1 -1
- package/lib/cjs/components/datamap/DataMap.form.d.ts +1 -1
- package/lib/cjs/components/datamap/DataMap.form.js +1 -1
- package/lib/cjs/components/datetime/DateTime.form.d.ts +1 -1
- package/lib/cjs/components/datetime/DateTime.form.js +1 -1
- package/lib/cjs/components/day/Day.form.d.ts +1 -1
- package/lib/cjs/components/day/Day.form.js +1 -1
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1 -1
- package/lib/cjs/components/editgrid/EditGrid.form.js +1 -1
- package/lib/cjs/components/email/Email.form.d.ts +1 -1
- package/lib/cjs/components/email/Email.form.js +1 -1
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1 -1
- package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
- package/lib/cjs/components/file/File.form.d.ts +1 -1
- package/lib/cjs/components/file/File.form.js +1 -1
- package/lib/cjs/components/form/Form.form.d.ts +1 -1
- package/lib/cjs/components/form/Form.form.js +1 -1
- package/lib/cjs/components/hidden/Hidden.form.d.ts +1 -1
- package/lib/cjs/components/hidden/Hidden.form.js +1 -1
- package/lib/cjs/components/html/HTML.form.d.ts +1 -1
- package/lib/cjs/components/html/HTML.form.js +1 -1
- package/lib/cjs/components/number/Number.form.d.ts +1 -1
- package/lib/cjs/components/number/Number.form.js +1 -1
- package/lib/cjs/components/panel/Panel.form.d.ts +1 -1
- package/lib/cjs/components/panel/Panel.form.js +1 -1
- package/lib/cjs/components/password/Password.form.d.ts +1 -1
- package/lib/cjs/components/password/Password.form.js +1 -1
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -1
- package/lib/cjs/components/radio/Radio.form.d.ts +1 -1
- package/lib/cjs/components/radio/Radio.form.js +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +1 -1
- package/lib/cjs/components/select/Select.form.d.ts +1 -1
- package/lib/cjs/components/select/Select.form.js +1 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +1 -1
- package/lib/cjs/components/signature/Signature.form.d.ts +1 -1
- package/lib/cjs/components/signature/Signature.form.js +1 -1
- package/lib/cjs/components/survey/Survey.form.d.ts +1 -1
- package/lib/cjs/components/survey/Survey.form.js +1 -1
- package/lib/cjs/components/table/Table.form.d.ts +1 -1
- package/lib/cjs/components/table/Table.form.js +1 -1
- package/lib/cjs/components/tabs/Tabs.form.d.ts +1 -1
- package/lib/cjs/components/tabs/Tabs.form.js +1 -1
- package/lib/cjs/components/tags/Tags.form.d.ts +1 -1
- package/lib/cjs/components/tags/Tags.form.js +1 -1
- package/lib/cjs/components/textarea/TextArea.form.d.ts +1 -1
- package/lib/cjs/components/textarea/TextArea.form.js +1 -1
- package/lib/cjs/components/textfield/TextField.form.d.ts +1 -1
- package/lib/cjs/components/textfield/TextField.form.js +1 -1
- package/lib/cjs/components/time/Time.form.d.ts +1 -1
- package/lib/cjs/components/time/Time.form.js +1 -1
- package/lib/cjs/components/unknown/Unknown.form.js +1 -1
- package/lib/cjs/components/url/Url.form.d.ts +1 -1
- package/lib/cjs/components/url/Url.form.js +1 -1
- package/lib/cjs/components/well/Well.form.d.ts +1 -1
- package/lib/cjs/components/well/Well.form.js +1 -1
- package/lib/cjs/formio.form.js +3 -3
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -1
- package/lib/cjs/providers/storage/util.js +4 -3
- package/lib/cjs/templates/index.d.ts +14 -14
- package/lib/cjs/utils/calendarUtils.js +3 -3
- package/lib/cjs/utils/formUtils.d.ts +3 -3
- package/lib/cjs/utils/formUtils.js +2 -2
- package/lib/cjs/utils/utils.d.ts +14 -14
- package/lib/cjs/utils/utils.js +71 -70
- package/lib/mjs/Element.d.ts +1 -1
- package/lib/mjs/Embed.d.ts +2 -2
- package/lib/mjs/Form.d.ts +3 -3
- package/lib/mjs/FormBuilder.d.ts +3 -42
- package/lib/mjs/PDF.d.ts +1 -1
- package/lib/mjs/Webform.d.ts +3 -4
- package/lib/mjs/WebformBuilder.d.ts +1 -1
- package/lib/mjs/components/_classes/component/Component.form.d.ts +1 -1
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +7 -7
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
- package/lib/mjs/components/address/Address.form.d.ts +1 -1
- package/lib/mjs/components/button/Button.form.d.ts +1 -1
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1 -1
- package/lib/mjs/components/columns/Columns.form.d.ts +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +1 -1
- package/lib/mjs/components/content/Content.form.d.ts +1 -1
- package/lib/mjs/components/currency/Currency.form.d.ts +1 -1
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1 -1
- package/lib/mjs/components/datamap/DataMap.form.d.ts +1 -1
- package/lib/mjs/components/datetime/DateTime.form.d.ts +1 -1
- package/lib/mjs/components/day/Day.form.d.ts +1 -1
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +1 -1
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1 -1
- package/lib/mjs/components/file/File.form.d.ts +1 -1
- package/lib/mjs/components/form/Form.form.d.ts +1 -1
- package/lib/mjs/components/hidden/Hidden.form.d.ts +1 -1
- package/lib/mjs/components/html/HTML.form.d.ts +1 -1
- package/lib/mjs/components/number/Number.form.d.ts +1 -1
- package/lib/mjs/components/panel/Panel.form.d.ts +1 -1
- package/lib/mjs/components/password/Password.form.d.ts +1 -1
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
- package/lib/mjs/components/radio/Radio.form.d.ts +1 -1
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
- package/lib/mjs/components/select/Select.form.d.ts +1 -1
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
- package/lib/mjs/components/signature/Signature.form.d.ts +1 -1
- package/lib/mjs/components/survey/Survey.form.d.ts +1 -1
- package/lib/mjs/components/table/Table.form.d.ts +1 -1
- package/lib/mjs/components/tabs/Tabs.form.d.ts +1 -1
- package/lib/mjs/components/tags/Tags.form.d.ts +1 -1
- package/lib/mjs/components/textarea/TextArea.form.d.ts +1 -1
- package/lib/mjs/components/textfield/TextField.form.d.ts +1 -1
- package/lib/mjs/components/time/Time.form.d.ts +1 -1
- package/lib/mjs/components/url/Url.form.d.ts +1 -1
- package/lib/mjs/components/well/Well.form.d.ts +1 -1
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -1
- package/lib/mjs/templates/index.d.ts +14 -14
- package/lib/mjs/utils/formUtils.d.ts +3 -3
- package/lib/mjs/utils/utils.d.ts +14 -14
- package/package.json +10 -10
@@ -12,7 +12,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
12
12
|
});
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.withRetries =
|
15
|
+
exports.withRetries = void 0;
|
16
16
|
/**
|
17
17
|
* Function to be retried
|
18
18
|
* @callback RetryFunction
|
@@ -28,11 +28,12 @@ exports.withRetries = withRetries;
|
|
28
28
|
* @returns {Promise<any>} The result of the function execution.
|
29
29
|
* @throws {Error} When all retries have failed.
|
30
30
|
*/
|
31
|
-
function withRetries(
|
32
|
-
return __awaiter(this,
|
31
|
+
function withRetries(fn, args, retries = 3, err = null) {
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
33
33
|
if (!retries) {
|
34
34
|
throw new Error(err);
|
35
35
|
}
|
36
36
|
return fn(...args).catch(() => withRetries(fn, args, retries - 1, err));
|
37
37
|
});
|
38
38
|
}
|
39
|
+
exports.withRetries = withRetries;
|
@@ -39,20 +39,20 @@ declare namespace _default {
|
|
39
39
|
defaultIconset: string;
|
40
40
|
iconClass: (iconset: any, name: any, spinning: any) => string;
|
41
41
|
cssClasses: {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
42
|
+
'border-default': string;
|
43
|
+
'formio-tab-panel-active': string;
|
44
|
+
'formio-tab-link-active': string;
|
45
|
+
'formio-tab-link-container-active': string;
|
46
|
+
'formio-form-error': string;
|
47
|
+
'formio-form-alert': string;
|
48
|
+
'formio-label-error': string;
|
49
|
+
'formio-input-error': string;
|
50
|
+
'formio-alert-danger': string;
|
51
|
+
'formio-alert-success': string;
|
52
|
+
'formio-alert-warning': string;
|
53
|
+
'formio-modal-cancel-button': string;
|
54
|
+
'formio-modal-confirm-button': string;
|
55
|
+
'form-group': string;
|
56
56
|
};
|
57
57
|
address: {
|
58
58
|
form: string;
|
@@ -3,9 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.CALENDAR_ERROR_MESSAGES = void 0;
|
7
|
-
exports.lessOrGreater = lessOrGreater;
|
8
|
-
exports.checkInvalidDate = checkInvalidDate;
|
6
|
+
exports.checkInvalidDate = exports.lessOrGreater = exports.CALENDAR_ERROR_MESSAGES = void 0;
|
9
7
|
const moment_1 = __importDefault(require("moment"));
|
10
8
|
const lodash_1 = __importDefault(require("lodash"));
|
11
9
|
exports.CALENDAR_ERROR_MESSAGES = {
|
@@ -66,6 +64,7 @@ function lessOrGreater(value, format, maxDate, minDate) {
|
|
66
64
|
result
|
67
65
|
};
|
68
66
|
}
|
67
|
+
exports.lessOrGreater = lessOrGreater;
|
69
68
|
/**
|
70
69
|
* Checks the entered date for validity.
|
71
70
|
* @param {string} value - The value to check.
|
@@ -127,3 +126,4 @@ function checkInvalidDate(value, format, minDate, maxDate) {
|
|
127
126
|
}
|
128
127
|
return buildResponse('', true);
|
129
128
|
}
|
129
|
+
exports.checkInvalidDate = checkInvalidDate;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* @param {object} query - The query to use when searching for the components.
|
5
5
|
* @returns {import('@formio/core').Component[]} - The result of the component that is found.
|
6
6
|
*/
|
7
|
-
export function findComponents(components: import(
|
7
|
+
export function findComponents(components: import('@formio/core').Component[], query: object): import('@formio/core').Component[];
|
8
8
|
export const flattenComponents: typeof Utils.flattenComponents;
|
9
9
|
export const guid: typeof Utils.guid;
|
10
10
|
export const uniqueName: typeof Utils.uniqueName;
|
@@ -16,8 +16,8 @@ export const isComponentModelType: typeof Utils.isComponentModelType;
|
|
16
16
|
export const isComponentNestedDataType: typeof Utils.isComponentNestedDataType;
|
17
17
|
export const componentPath: typeof Utils.componentPath;
|
18
18
|
export const componentChildPath: any;
|
19
|
-
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn: AsyncComponentDataCallback, path?: string, index?: number, parent?: any, includeAll?: boolean) => Promise<void>;
|
20
|
-
export const eachComponentData: (components: Component[], data: DataObject, fn: ComponentDataCallback, path?: string, index?: number, parent?: any, includeAll?: boolean) => void;
|
19
|
+
export const eachComponentDataAsync: (components: Component[], data: DataObject, fn: AsyncComponentDataCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => Promise<void>;
|
20
|
+
export const eachComponentData: (components: Component[], data: DataObject, fn: ComponentDataCallback, path?: string | undefined, index?: number | undefined, parent?: any, includeAll?: boolean | undefined) => void;
|
21
21
|
export const getComponentKey: typeof Utils.getComponentKey;
|
22
22
|
export const getContextualRowPath: typeof Utils.getContextualRowPath;
|
23
23
|
export const getContextualRowData: typeof Utils.getContextualRowData;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isComponentDataEmpty = exports.getEmptyValue = exports.findComponent = exports.applyFormChanges = exports.generateFormChange = exports.getStrings = exports.getValue = exports.escapeRegExCharacters = exports.formatAsCurrency = exports.parseFloatExt = exports.hasCondition = exports.removeComponent = exports.searchComponents = exports.getComponent = exports.matchComponent = exports.isLayoutComponent = exports.getComponentActualValue = exports.getComponentData = exports.eachComponentAsync = exports.eachComponent = exports.componentInfo = exports.getContextualRowData = exports.getContextualRowPath = exports.getComponentKey = exports.eachComponentData = exports.eachComponentDataAsync = exports.componentChildPath = exports.componentPath = exports.isComponentNestedDataType = exports.isComponentModelType = exports.getComponentPath = exports.getComponentAbsolutePath = exports.getModelType = exports.MODEL_TYPES = exports.uniqueName = exports.guid = exports.flattenComponents = void 0;
|
4
|
-
exports.findComponents = findComponents;
|
3
|
+
exports.isComponentDataEmpty = exports.getEmptyValue = exports.findComponent = exports.applyFormChanges = exports.generateFormChange = exports.getStrings = exports.getValue = exports.escapeRegExCharacters = exports.formatAsCurrency = exports.parseFloatExt = exports.hasCondition = exports.removeComponent = exports.searchComponents = exports.getComponent = exports.matchComponent = exports.isLayoutComponent = exports.getComponentActualValue = exports.getComponentData = exports.eachComponentAsync = exports.eachComponent = exports.componentInfo = exports.getContextualRowData = exports.getContextualRowPath = exports.getComponentKey = exports.eachComponentData = exports.eachComponentDataAsync = exports.componentChildPath = exports.componentPath = exports.isComponentNestedDataType = exports.isComponentModelType = exports.getComponentPath = exports.getComponentAbsolutePath = exports.getModelType = exports.MODEL_TYPES = exports.uniqueName = exports.guid = exports.flattenComponents = exports.findComponents = void 0;
|
5
4
|
const core_1 = require("@formio/core");
|
6
5
|
const { flattenComponents, guid, uniqueName, MODEL_TYPES, getModelType, getComponentAbsolutePath, getComponentPath, isComponentModelType, isComponentNestedDataType, componentPath, componentChildPath, eachComponentDataAsync, eachComponentData, getComponentKey, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty } = core_1.Utils;
|
7
6
|
exports.flattenComponents = flattenComponents;
|
@@ -51,3 +50,4 @@ function findComponents(components, query) {
|
|
51
50
|
console.warn('formio.js/utils findComponents is deprecated. Use searchComponents instead.');
|
52
51
|
return searchComponents(components, query);
|
53
52
|
}
|
53
|
+
exports.findComponents = findComponents;
|
package/lib/cjs/utils/utils.d.ts
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
* @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.
|
8
8
|
* @returns {*} - The result of the evaluation.
|
9
9
|
*/
|
10
|
-
export function evaluate(func: Function | string | object, args: any, ret: string, interpolate: boolean, options?: import(
|
10
|
+
export function evaluate(func: Function | string | object, args: any, ret: string, interpolate: boolean, options?: import('@formio/core').EvaluatorOptions): any;
|
11
11
|
/**
|
12
12
|
* Returns a random compoennt ID.
|
13
13
|
* @returns {string} - A random component ID.
|
@@ -55,7 +55,7 @@ export function isMongoId(text: string): boolean;
|
|
55
55
|
* @param {import('@formio/core').Submission} submission - A submission object.
|
56
56
|
* @param {*} rowData - The contextual row data for the component.
|
57
57
|
*/
|
58
|
-
export function checkCalculated(component: import(
|
58
|
+
export function checkCalculated(component: import('@formio/core').Component, submission: import('@formio/core').Submission, rowData: any): void;
|
59
59
|
/**
|
60
60
|
* Check if a simple conditional evaluates to true.
|
61
61
|
* @param {import('@formio/core').Component} component - The component to check for the conditional.
|
@@ -65,7 +65,7 @@ export function checkCalculated(component: import("@formio/core").Component, sub
|
|
65
65
|
* @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.
|
66
66
|
* @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
|
67
67
|
*/
|
68
|
-
export function checkSimpleConditional(component: import(
|
68
|
+
export function checkSimpleConditional(component: import('@formio/core').Component, condition: import('@formio/core').SimpleConditional, row: any, data: any, instance: any): boolean;
|
69
69
|
/**
|
70
70
|
* Returns a components normalized value.
|
71
71
|
* @param {string} compPath - The full path to the component.
|
@@ -86,7 +86,7 @@ export function getComponentActualValue(compPath: string, data: any, row: any):
|
|
86
86
|
* @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.
|
87
87
|
* @returns {*} - The result of the evaulation.
|
88
88
|
*/
|
89
|
-
export function checkCustomConditional(component: import(
|
89
|
+
export function checkCustomConditional(component: import('@formio/core').Component, custom: string, row: any, data: any, form: import('@formio/core').Form, variable: string, onError: any, instance: any): any;
|
90
90
|
/**
|
91
91
|
* Check a component for JSON conditionals.
|
92
92
|
* @param {import('@formio/core').Component} component - The component
|
@@ -97,7 +97,7 @@ export function checkCustomConditional(component: import("@formio/core").Compone
|
|
97
97
|
* @param {*} onError - Custom return value if there is an error.
|
98
98
|
* @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
|
99
99
|
*/
|
100
|
-
export function checkJsonConditional(component: import(
|
100
|
+
export function checkJsonConditional(component: import('@formio/core').Component, json: import('@formio/core').JSONConditional, row: any, data: any, form: import('@formio/core').Form, onError: any): boolean;
|
101
101
|
/**
|
102
102
|
* Checks the conditions for a provided component and data.
|
103
103
|
* @param {import('@formio/core').Component} component - The component to check for the condition.
|
@@ -107,7 +107,7 @@ export function checkJsonConditional(component: import("@formio/core").Component
|
|
107
107
|
* @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.
|
108
108
|
* @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
|
109
109
|
*/
|
110
|
-
export function checkCondition(component: import(
|
110
|
+
export function checkCondition(component: import('@formio/core').Component, row: any, data: any, form: import('@formio/core').Form, instance: any): boolean;
|
111
111
|
/**
|
112
112
|
* Test a trigger on a component.
|
113
113
|
* @param {import('@formio/core').Component} component - The component to test the trigger against.
|
@@ -118,7 +118,7 @@ export function checkCondition(component: import("@formio/core").Component, row:
|
|
118
118
|
* @param {any} instance - The component that is performing the trigger.
|
119
119
|
* @returns {boolean} - TRUE if the trigger should fire; FALSE otherwise.
|
120
120
|
*/
|
121
|
-
export function checkTrigger(component: import(
|
121
|
+
export function checkTrigger(component: import('@formio/core').Component, trigger: any, row: import('@formio/core').DataObject, data: import('@formio/core').DataObject, form: import('@formio/core').Form, instance: any): boolean;
|
122
122
|
/**
|
123
123
|
* Sets a property on a component via an executed Logic action.
|
124
124
|
* @param {import('@formio/core').Component} component - The component to set the property on.
|
@@ -129,7 +129,7 @@ export function checkTrigger(component: import("@formio/core").Component, trigge
|
|
129
129
|
* @param {any} instance - The component instance.
|
130
130
|
* @returns {import('@formio/core').Component} - The modified component.
|
131
131
|
*/
|
132
|
-
export function setActionProperty(component: import(
|
132
|
+
export function setActionProperty(component: import('@formio/core').Component, action: any, result: string, row: import('@formio/core').DataObject, data: import('@formio/core').DataObject, instance: any): import('@formio/core').Component;
|
133
133
|
/**
|
134
134
|
* Removes HTML tags from string e.g. <div>Hello World</div> => Hello World
|
135
135
|
* @param {string} str - The string to remove HTML tags from.
|
@@ -293,7 +293,7 @@ export function getNumberSeparators(lang?: string): {
|
|
293
293
|
* @param {number} defaultLimit - The default limit to use if none is provided in the component.
|
294
294
|
* @returns {number} - The number of decimal places allowed.
|
295
295
|
*/
|
296
|
-
export function getNumberDecimalLimit(component: import(
|
296
|
+
export function getNumberDecimalLimit(component: import('@formio/core').Component, defaultLimit: number): number;
|
297
297
|
/**
|
298
298
|
* Returns the currency affixes for a specific language.
|
299
299
|
* @param {object} arg0 - The arguments object.
|
@@ -318,7 +318,7 @@ export function getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, l
|
|
318
318
|
* @param {import('@formio/core').Component} component - The component to fetch the field data for.
|
319
319
|
* @returns {*} - The field data.
|
320
320
|
*/
|
321
|
-
export function fieldData(data: import(
|
321
|
+
export function fieldData(data: import('@formio/core').DataObject, component: import('@formio/core').Component): any;
|
322
322
|
/**
|
323
323
|
* Delays function execution with possibility to execute function synchronously or cancel it.
|
324
324
|
* @param {Function} fn - Function to delay
|
@@ -416,7 +416,7 @@ export function fastCloneDeep(obj: any): any;
|
|
416
416
|
* @param {import('@formio/core').Component} componentJson - The JSON of a component.
|
417
417
|
* @returns {bool} - TRUE if the component is an input component; FALSE otherwise.
|
418
418
|
*/
|
419
|
-
export function isInputComponent(componentJson: import(
|
419
|
+
export function isInputComponent(componentJson: import('@formio/core').Component): bool;
|
420
420
|
/**
|
421
421
|
* Takes a component path, and returns a component path array.
|
422
422
|
* @param {string} pathStr - The path string to convert to an array.
|
@@ -466,7 +466,7 @@ export function getComponentPathWithoutIndicies(path?: string): string;
|
|
466
466
|
* @param {string} path - Path to the component
|
467
467
|
* @returns {string} - Path to the component
|
468
468
|
*/
|
469
|
-
export function getComponentPath(component: import(
|
469
|
+
export function getComponentPath(component: import('@formio/core').Component, path?: string): string;
|
470
470
|
/**
|
471
471
|
* Returns a parent component of the passed component instance skipping all the Layout components
|
472
472
|
* @param {Component} componentInstance - The component to check for the parent.
|
@@ -498,7 +498,7 @@ export function getFocusableElements(element: HTMLElement): NodeList<HTMLElement
|
|
498
498
|
* @param {import('@formio/core').Component} fullSchema - The component schema
|
499
499
|
* @returns {Array<string>|null} - The saved types for the component
|
500
500
|
*/
|
501
|
-
export function getComponentSavedTypes(fullSchema: import(
|
501
|
+
export function getComponentSavedTypes(fullSchema: import('@formio/core').Component): Array<string> | null;
|
502
502
|
/**
|
503
503
|
* Returns the template keys inside the template code.
|
504
504
|
* @param {string} template - The template to get the keys from.
|
@@ -510,7 +510,7 @@ export function getItemTemplateKeys(template: string): Array<string>;
|
|
510
510
|
* @param {import('@formio/core').Component} comp - The component to check.
|
511
511
|
* @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.
|
512
512
|
*/
|
513
|
-
export function isSelectResourceWithObjectValue(comp?: import(
|
513
|
+
export function isSelectResourceWithObjectValue(comp?: import('@formio/core').Component): boolean;
|
514
514
|
export * from "./formUtils";
|
515
515
|
/**
|
516
516
|
* Map values through unfold and return first non-nil value.
|