/** * This function perform creation of object contains only dynamic fieldSets * The dynamic fieldSet retrieved from sections will be added to object with * name as key and activated property as value. * * Example: * { * "jmix:tagged": true, * "jmix:keywords": false, * ... * } * * Note: the activated property will be used to determine if the dynamic * fieldSet will be active on the form or not. * * @param {array} sections the sections of the form * @returns {object} dynamic fieldSets with key value object */ export function getDynamicFieldSets(sections: any[]): object; /** * The function used to retrieve all the fields within fieldSets of each section * * There is specific case: * - When the sectionName parameter is provided, the function returns all * the fields in fieldSets of only the specified section. * * @param {array} sections array object contains sections * @param {string} sectionName string value refer to the section name * @param {function} fieldSetFilter optional fieldset filter * @returns {array} fields array object contains fields */ export function getFields(sections: any[], sectionName: string, fieldSetFilter: Function): any[]; export function getDataToMutate({ nodeData, formValues, i18nContext, sections, lang }: { nodeData: any; formValues: any; i18nContext: any; sections: any; lang: any; }): { propsToSave: any[]; propsToDelete: any[]; mixinsToAdd?: undefined; mixinsToDelete?: undefined; propFieldNameMapping?: undefined; } | { propsToSave: any[]; propsToDelete: any[]; mixinsToAdd: any[]; mixinsToDelete: any[]; propFieldNameMapping: {}; }; /** * Get the value property name used to read the value(s) of a given property field * @param {object} field the property field * @returns {object} the name and option of the value property to use */ export function getValuePropName(field: object): object; /** * Check if two value are different * @param firstValue first value to compare * @param secondValue second value to compare * @param requiredType type of the values * @returns {boolean} true if the value are different */ export function checkIfValuesAreDifferent(firstValue: any, secondValue: any, requiredType: any): boolean; /** * Check if the value of a given field have changed, comparing the currentValue with the original value stored in the nodeData object * @param {*} currentValue the current field value * @param {object} field the field * @param {object} nodeData the original node data * @returns {boolean} true if the value have changed. */ export function propertyHasChanged(currentValue: any, field: object, nodeData: object): boolean; /** * This function allow to get the fieldSet name of given field name, only in case the fieldSet is dynamic * return undefined if the fieldSet of the field is not dynamic * * @param {array} sections sections datas * @param {object} sourceField field to search fieldSet * @returns {string} name of fieldSet */ export function getDynamicFieldSetNameOfField(sections: any[], sourceField: object): string; export function isDirty(formik: any, i18nContext: any): any;