@kbss-cvut/s-forms 0.7.1-beta-27a7b90.0 → 0.7.1
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 -24
- package/dist/components/Question.d.ts +4 -0
- package/dist/components/answer/OptimizedMenuList.d.ts +5 -0
- package/dist/components/wizard/WizardStep.d.ts +3 -13
- package/dist/model/ValidatorFactory.d.ts +1 -58
- 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/stories/TypeaheadAnswer.stories.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
export default FormManager;
|
|
2
|
-
declare
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
getFormData: () => {
|
|
6
|
-
subQuestions: never[];
|
|
7
|
-
};
|
|
8
|
-
validateForm: () => void;
|
|
9
|
-
getFormQuestionsData: () => any;
|
|
10
|
-
getFormSpecification: () => string;
|
|
11
|
-
handleStepChange: (question: any, index: any, change: any) => void;
|
|
12
|
-
renderWizardlessForm: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
_mapQuestion(question: any, index: any): React.DetailedReactHTMLElement<{
|
|
14
|
-
key: any;
|
|
15
|
-
question: any;
|
|
16
|
-
onChange: (index: any, change: any) => void;
|
|
17
|
-
index: any;
|
|
18
|
-
}, HTMLElement>;
|
|
19
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
}
|
|
21
|
-
declare namespace FormManager {
|
|
22
|
-
export { FormQuestionsContext as contextType };
|
|
23
|
-
}
|
|
24
|
-
import React from "react";
|
|
25
|
-
import { FormQuestionsContext } from "../contexts/FormQuestionsContext";
|
|
2
|
+
declare function FormManager(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -27,11 +27,13 @@ declare class Question extends React.Component<any, any, any> {
|
|
|
27
27
|
question: any;
|
|
28
28
|
onChange: (subQuestionIndex: any, change: any) => void;
|
|
29
29
|
index: number;
|
|
30
|
+
intl: any;
|
|
30
31
|
}, React.Component<{
|
|
31
32
|
key: string;
|
|
32
33
|
question: any;
|
|
33
34
|
onChange: (subQuestionIndex: any, change: any) => void;
|
|
34
35
|
index: number;
|
|
36
|
+
intl: any;
|
|
35
37
|
}, any, any>> | null)[])[];
|
|
36
38
|
renderQuestionIcons(): import("react/jsx-runtime").JSX.Element;
|
|
37
39
|
renderAnswerableSection(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -55,11 +57,13 @@ declare class Question extends React.Component<any, any, any> {
|
|
|
55
57
|
question: any;
|
|
56
58
|
onChange: (subQuestionIndex: any, change: any) => void;
|
|
57
59
|
index: number;
|
|
60
|
+
intl: any;
|
|
58
61
|
}, React.Component<{
|
|
59
62
|
key: string;
|
|
60
63
|
question: any;
|
|
61
64
|
onChange: (subQuestionIndex: any, change: any) => void;
|
|
62
65
|
index: number;
|
|
66
|
+
intl: any;
|
|
63
67
|
}, any, any>> | null)[];
|
|
64
68
|
_getSubQuestions(): any;
|
|
65
69
|
_getFirstAnswerValue(): any;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
onNextStep: () => void;
|
|
4
|
-
onPreviousStep: () => void;
|
|
5
|
-
_renderWizardStepButtons: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
onChange: (index: any, change: any) => void;
|
|
7
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
}
|
|
1
|
+
export default WizardStep;
|
|
2
|
+
declare function WizardStep(props: any): import("react/jsx-runtime").JSX.Element;
|
|
9
3
|
declare namespace WizardStep {
|
|
10
|
-
|
|
4
|
+
namespace propTypes {
|
|
11
5
|
let options: PropTypes.Validator<object>;
|
|
12
6
|
let question: PropTypes.Validator<object>;
|
|
13
7
|
let index: PropTypes.Validator<number>;
|
|
@@ -17,9 +11,5 @@ declare namespace WizardStep {
|
|
|
17
11
|
let isFirstStep: PropTypes.Requireable<boolean>;
|
|
18
12
|
let isLastStep: PropTypes.Requireable<boolean>;
|
|
19
13
|
}
|
|
20
|
-
export { FormQuestionsContext as contextType };
|
|
21
14
|
}
|
|
22
|
-
export default WizardStep;
|
|
23
|
-
import React from "react";
|
|
24
15
|
import PropTypes from "prop-types";
|
|
25
|
-
import { FormQuestionsContext } from "../../contexts/FormQuestionsContext";
|
|
@@ -1,58 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
static createValidator(question: any, intl: any): () => {} | undefined;
|
|
3
|
-
static _validateAnswer(question: any, intl: any, answerValue: any, validators: any): {};
|
|
4
|
-
static _patternValidator(question: any, intl: any): {
|
|
5
|
-
isValid: boolean;
|
|
6
|
-
validationSeverity: string;
|
|
7
|
-
message: any;
|
|
8
|
-
} | {
|
|
9
|
-
isValid: boolean;
|
|
10
|
-
validationSeverity?: undefined;
|
|
11
|
-
message?: undefined;
|
|
12
|
-
};
|
|
13
|
-
static _requiredValidator(question: any, intl: any): {
|
|
14
|
-
isValid: boolean;
|
|
15
|
-
validationSeverity: string;
|
|
16
|
-
message: any;
|
|
17
|
-
} | {
|
|
18
|
-
isValid: boolean;
|
|
19
|
-
validationSeverity?: undefined;
|
|
20
|
-
message?: undefined;
|
|
21
|
-
};
|
|
22
|
-
static _checkboxValidator(question: any, intl: any): {
|
|
23
|
-
isValid: boolean;
|
|
24
|
-
validationSeverity: string;
|
|
25
|
-
message: any;
|
|
26
|
-
} | {
|
|
27
|
-
isValid: boolean;
|
|
28
|
-
validationSeverity?: undefined;
|
|
29
|
-
message?: undefined;
|
|
30
|
-
};
|
|
31
|
-
static _completenessValidator(question: any, intl: any): {
|
|
32
|
-
isValid: boolean;
|
|
33
|
-
validationSeverity: string;
|
|
34
|
-
message: any;
|
|
35
|
-
} | {
|
|
36
|
-
isValid: boolean;
|
|
37
|
-
validationSeverity?: undefined;
|
|
38
|
-
message?: undefined;
|
|
39
|
-
};
|
|
40
|
-
static _intMinInclusiveValidator(question: any, intl: any): {
|
|
41
|
-
isValid: boolean;
|
|
42
|
-
validationSeverity: string;
|
|
43
|
-
message: any;
|
|
44
|
-
} | {
|
|
45
|
-
isValid: boolean;
|
|
46
|
-
validationSeverity?: undefined;
|
|
47
|
-
message?: undefined;
|
|
48
|
-
};
|
|
49
|
-
static _intMaxInclusiveValidator(question: any, intl: any): {
|
|
50
|
-
isValid: boolean;
|
|
51
|
-
validationSeverity: string;
|
|
52
|
-
message: any;
|
|
53
|
-
} | {
|
|
54
|
-
isValid: boolean;
|
|
55
|
-
validationSeverity?: undefined;
|
|
56
|
-
message?: undefined;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
1
|
+
export function createValidator(question: any, intl: any): () => {} | undefined;
|