@kbss-cvut/s-forms 0.7.1-alpha-e06e2e7.0 → 0.7.1-alpha-63c75dc.0
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/dist/components/FormManager.d.ts +1 -0
- package/dist/components/answer/InputAnswer.d.ts +0 -1
- package/dist/model/ValidatorFactory.d.ts +1 -19
- package/dist/s-forms.cjs +1 -1
- package/dist/s-forms.cjs.map +1 -1
- package/dist/s-forms.js +1 -1
- package/dist/s-forms.js.map +1 -1
- package/dist/s-forms.modern.js +1 -1
- package/dist/s-forms.modern.js.map +1 -1
- package/dist/s-forms.umd.js +1 -1
- package/dist/s-forms.umd.js.map +1 -1
- package/dist/util/FormUtils.d.ts +4 -8
- package/package.json +1 -1
package/dist/util/FormUtils.d.ts
CHANGED
|
@@ -42,13 +42,9 @@ export default class FormUtils {
|
|
|
42
42
|
* Traverse provided array of questions recursively by DFS algorithm
|
|
43
43
|
* and execute on each traversed question provided function.
|
|
44
44
|
* @param {Array<Object>} questions - The array of questions to be traversed.
|
|
45
|
-
* @param
|
|
45
|
+
* @param {Function} onEnterQuestion - The callback function to execute when entering a question.
|
|
46
|
+
* @param {Function} [onLeaveQuestion = () => {}] - The callback function to execute when leaving a question.
|
|
46
47
|
*/
|
|
47
|
-
static dfsTraverseQuestionTree(questions: Array<Object>,
|
|
48
|
-
|
|
49
|
-
* Checks if the keys of a question contain any of the values from the XSD object.
|
|
50
|
-
* @param {Object} question - The question to check.
|
|
51
|
-
* @returns {boolean} - True if any XSD value is found among the keys, otherwise false.
|
|
52
|
-
*/
|
|
53
|
-
static containsXSDProperty(question: Object): boolean;
|
|
48
|
+
static dfsTraverseQuestionTree(questions: Array<Object>, onEnterQuestion: Function, onLeaveQuestion?: Function | undefined): void;
|
|
49
|
+
static getFormSpecification(questions: any): string;
|
|
54
50
|
}
|