@kbss-cvut/s-forms 0.7.1-alpha-dea2ac6.0 → 0.7.1-alpha-acc6fda.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/Answer.d.ts +13 -13
- package/dist/components/DefaultInput.d.ts +39 -39
- package/dist/components/FormManager.d.ts +23 -23
- package/dist/components/FormWindow.d.ts +3 -3
- package/dist/components/HelpIcon.d.ts +20 -20
- package/dist/components/IconOverlay.d.ts +17 -17
- package/dist/components/LinkIcon.d.ts +20 -20
- package/dist/components/MaskedInput.d.ts +42 -41
- package/dist/components/MediaContent.d.ts +6 -5
- package/dist/components/PrefixIcon.d.ts +21 -21
- package/dist/components/Question.d.ts +86 -86
- package/dist/components/QuestionStatic.d.ts +9 -9
- package/dist/components/SForms.d.ts +3 -3
- package/dist/components/answer/CheckboxAnswer.d.ts +23 -23
- package/dist/components/answer/DateTimeAnswer.d.ts +12 -12
- package/dist/components/answer/InputAnswer.d.ts +25 -25
- package/dist/components/answer/MaskedInputAnswer.d.ts +13 -13
- package/dist/components/answer/OptimizedMenuList.d.ts +5 -0
- package/dist/components/answer/SelectAnswer.d.ts +27 -27
- package/dist/components/answer/TypeaheadAnswer.d.ts +13 -13
- package/dist/components/comment/CommentForm.d.ts +8 -8
- package/dist/components/comment/CommentList.d.ts +7 -6
- package/dist/components/comment/CommentView.d.ts +13 -13
- package/dist/components/comment/QuestionCommentIcon.d.ts +9 -9
- package/dist/components/wizard/HorizontalWizardNav.d.ts +14 -14
- package/dist/components/wizard/VerticalWizardNav.d.ts +14 -14
- package/dist/components/wizard/Wizard.d.ts +2 -2
- package/dist/components/wizard/WizardStep.d.ts +25 -25
- package/dist/constants/Constants.d.ts +127 -127
- package/dist/contexts/ConfigurationContext.d.ts +15 -15
- package/dist/contexts/FormGenContext.d.ts +13 -13
- package/dist/contexts/FormQuestionsContext.d.ts +12 -12
- package/dist/contexts/IntlContextProvider.d.ts +8 -8
- package/dist/model/DefaultFormGenerator.d.ts +8 -8
- package/dist/model/FormGenerator.d.ts +20 -20
- package/dist/model/QuestionAnswerProcessor.d.ts +44 -44
- package/dist/model/ValidatorFactory.d.ts +5 -5
- package/dist/s-forms.cjs +3728 -1
- package/dist/s-forms.cjs.map +1 -1
- package/dist/s-forms.css +403 -1
- package/dist/s-forms.css.map +1 -1
- package/dist/s-forms.d.ts +16 -16
- package/dist/s-forms.js +3697 -1
- package/dist/s-forms.js.map +1 -1
- package/dist/s-forms.modern.js +3701 -1
- package/dist/s-forms.modern.js.map +1 -1
- package/dist/s-forms.umd.js +3688 -1
- package/dist/s-forms.umd.js.map +1 -1
- package/dist/stories/Answer.stories.d.ts +12 -12
- package/dist/stories/CommentForm.stories.d.ts +3 -3
- package/dist/stories/HelpIcon.stories.d.ts +4 -4
- package/dist/stories/LinkIcon.stories.d.ts +3 -3
- package/dist/stories/PrefixIcon.stories.d.ts +3 -3
- package/dist/stories/Question.stories.d.ts +11 -11
- package/dist/stories/QuestionCommentIcon.stories.d.ts +4 -4
- package/dist/stories/SForms.stories.d.ts +8 -8
- package/dist/styles/icons/ArrowRight.d.ts +2 -2
- package/dist/styles/icons/CaretSquareDown.d.ts +4 -4
- package/dist/styles/icons/CaretSquareUp.d.ts +4 -4
- package/dist/styles/icons/Close.d.ts +2 -2
- package/dist/styles/icons/CommentBubble.d.ts +2 -2
- package/dist/styles/icons/ExternalLink.d.ts +2 -2
- package/dist/styles/icons/InfoCircle.d.ts +2 -2
- package/dist/styles/icons/QuestionCircle.d.ts +2 -2
- package/dist/styles/icons/RecycleBin.d.ts +2 -2
- package/dist/styles/icons/index.d.ts +4 -4
- package/dist/util/FormUtils.d.ts +40 -40
- package/dist/util/JsonLdFramingUtils.d.ts +16 -16
- package/dist/util/JsonLdObjectMap.d.ts +5 -5
- package/dist/util/JsonLdObjectUtils.d.ts +32 -32
- package/dist/util/Logger.d.ts +5 -5
- package/dist/util/MaskMapper.d.ts +12 -12
- package/dist/util/Utils.d.ts +15 -15
- package/package.json +5 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export default Answer;
|
|
2
|
-
declare function Answer(props: any):
|
|
3
|
-
declare namespace Answer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default Answer;
|
|
2
|
+
declare function Answer(props: any): JSX.Element | null;
|
|
3
|
+
declare namespace Answer {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
const answer: PropTypes.Validator<object>;
|
|
6
|
+
const question: PropTypes.Validator<object>;
|
|
7
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
const onCommentChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
+
const index: PropTypes.Requireable<number>;
|
|
10
|
+
const icons: PropTypes.Requireable<object>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import PropTypes from "prop-types";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
declare class DefaultInput extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
state: {
|
|
4
|
-
cursorPosition: number;
|
|
5
|
-
};
|
|
6
|
-
focus(): void;
|
|
7
|
-
getInputDOMNode(): Element | Text | null;
|
|
8
|
-
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
9
|
-
fieldDidExpand(prevProps: any): boolean;
|
|
10
|
-
fieldDidShrink(prevProps: any): boolean;
|
|
11
|
-
updateFieldCursorPosition(): void;
|
|
12
|
-
saveCursorPosition(e: any): void;
|
|
13
|
-
render():
|
|
14
|
-
_renderCheckbox():
|
|
15
|
-
input:
|
|
16
|
-
_renderRadio():
|
|
17
|
-
_renderSelect():
|
|
18
|
-
_renderLabel():
|
|
19
|
-
_renderTextArea():
|
|
20
|
-
_renderHelp():
|
|
21
|
-
_renderInput():
|
|
22
|
-
}
|
|
23
|
-
declare namespace DefaultInput {
|
|
24
|
-
namespace propTypes {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
namespace defaultProps {
|
|
33
|
-
|
|
34
|
-
export { type_1 as type };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export default DefaultInput;
|
|
38
|
-
import React from "react";
|
|
39
|
-
import PropTypes from "prop-types";
|
|
1
|
+
declare class DefaultInput extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
state: {
|
|
4
|
+
cursorPosition: number;
|
|
5
|
+
};
|
|
6
|
+
focus(): void;
|
|
7
|
+
getInputDOMNode(): Element | Text | null;
|
|
8
|
+
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
9
|
+
fieldDidExpand(prevProps: any): boolean;
|
|
10
|
+
fieldDidShrink(prevProps: any): boolean;
|
|
11
|
+
updateFieldCursorPosition(): void;
|
|
12
|
+
saveCursorPosition(e: any): void;
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
_renderCheckbox(): JSX.Element;
|
|
15
|
+
input: any;
|
|
16
|
+
_renderRadio(): JSX.Element;
|
|
17
|
+
_renderSelect(): JSX.Element;
|
|
18
|
+
_renderLabel(): JSX.Element | null;
|
|
19
|
+
_renderTextArea(): JSX.Element;
|
|
20
|
+
_renderHelp(): JSX.Element | null;
|
|
21
|
+
_renderInput(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
declare namespace DefaultInput {
|
|
24
|
+
namespace propTypes {
|
|
25
|
+
const type: PropTypes.Requireable<string>;
|
|
26
|
+
const label: PropTypes.Requireable<object>;
|
|
27
|
+
const value: PropTypes.Requireable<any>;
|
|
28
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
const help: PropTypes.Requireable<string>;
|
|
30
|
+
const validation: PropTypes.Requireable<string>;
|
|
31
|
+
}
|
|
32
|
+
namespace defaultProps {
|
|
33
|
+
const type_1: string;
|
|
34
|
+
export { type_1 as type };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default DefaultInput;
|
|
38
|
+
import React from "react";
|
|
39
|
+
import PropTypes from "prop-types";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export default FormManager;
|
|
2
|
-
declare class FormManager extends React.Component<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
getFormData: () => {
|
|
6
|
-
subQuestions: never[];
|
|
7
|
-
};
|
|
8
|
-
getFormQuestionsData: () => any;
|
|
9
|
-
handleStepChange: (question: any, index: any, change: any) => void;
|
|
10
|
-
renderWizardlessForm: () =>
|
|
11
|
-
_mapQuestion(question: any, index: any): React.DetailedReactHTMLElement<{
|
|
12
|
-
key: any;
|
|
13
|
-
question: any;
|
|
14
|
-
onChange: (index: any, change: any) => void;
|
|
15
|
-
index: any;
|
|
16
|
-
}, HTMLElement>;
|
|
17
|
-
render():
|
|
18
|
-
}
|
|
19
|
-
declare namespace FormManager {
|
|
20
|
-
export { FormQuestionsContext as contextType };
|
|
21
|
-
}
|
|
22
|
-
import React from "react";
|
|
23
|
-
import { FormQuestionsContext } from "../contexts/FormQuestionsContext";
|
|
1
|
+
export default FormManager;
|
|
2
|
+
declare class FormManager extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
getFormData: () => {
|
|
6
|
+
subQuestions: never[];
|
|
7
|
+
};
|
|
8
|
+
getFormQuestionsData: () => any;
|
|
9
|
+
handleStepChange: (question: any, index: any, change: any) => void;
|
|
10
|
+
renderWizardlessForm: () => JSX.Element;
|
|
11
|
+
_mapQuestion(question: any, index: any): React.DetailedReactHTMLElement<{
|
|
12
|
+
key: any;
|
|
13
|
+
question: any;
|
|
14
|
+
onChange: (index: any, change: any) => void;
|
|
15
|
+
index: any;
|
|
16
|
+
}, HTMLElement>;
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
declare namespace FormManager {
|
|
20
|
+
export { FormQuestionsContext as contextType };
|
|
21
|
+
}
|
|
22
|
+
import React from "react";
|
|
23
|
+
import { FormQuestionsContext } from "../contexts/FormQuestionsContext";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default FormWindow;
|
|
2
|
-
declare const FormWindow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
-
import React from "react";
|
|
1
|
+
export default FormWindow;
|
|
2
|
+
declare const FormWindow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
import React from "react";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export default HelpIcon;
|
|
2
|
-
declare function HelpIcon(props: any):
|
|
3
|
-
declare namespace HelpIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
|
|
13
|
-
export { iconClassContainer_1 as iconClassContainer };
|
|
14
|
-
|
|
15
|
-
export { iconClass_1 as iconClass };
|
|
16
|
-
|
|
17
|
-
export { absolutePosition_1 as absolutePosition };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default HelpIcon;
|
|
2
|
+
declare function HelpIcon(props: any): JSX.Element;
|
|
3
|
+
declare namespace HelpIcon {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
const text: PropTypes.Validator<string>;
|
|
6
|
+
const iconClassContainer: PropTypes.Requireable<string>;
|
|
7
|
+
const iconClass: PropTypes.Requireable<string>;
|
|
8
|
+
const overlayPlacement: PropTypes.Requireable<string>;
|
|
9
|
+
const absolutePosition: PropTypes.Requireable<boolean>;
|
|
10
|
+
}
|
|
11
|
+
namespace defaultProps {
|
|
12
|
+
const iconClassContainer_1: string;
|
|
13
|
+
export { iconClassContainer_1 as iconClassContainer };
|
|
14
|
+
const iconClass_1: string;
|
|
15
|
+
export { iconClass_1 as iconClass };
|
|
16
|
+
const absolutePosition_1: boolean;
|
|
17
|
+
export { absolutePosition_1 as absolutePosition };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import PropTypes from "prop-types";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export default IconOverlay;
|
|
2
|
-
declare function IconOverlay(props: any):
|
|
3
|
-
declare namespace IconOverlay {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
namespace defaultProps {
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
export { absolutePosition_1 as absolutePosition };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default IconOverlay;
|
|
2
|
+
declare function IconOverlay(props: any): JSX.Element;
|
|
3
|
+
declare namespace IconOverlay {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
const tooltipContent: PropTypes.Requireable<NonNullable<string | object>>;
|
|
6
|
+
const id: PropTypes.Validator<string>;
|
|
7
|
+
const overlayPlacement: PropTypes.Requireable<string>;
|
|
8
|
+
const absolutePosition: PropTypes.Requireable<boolean>;
|
|
9
|
+
}
|
|
10
|
+
namespace defaultProps {
|
|
11
|
+
export const iconClassContainer: string;
|
|
12
|
+
export const iconClass: string;
|
|
13
|
+
const absolutePosition_1: boolean;
|
|
14
|
+
export { absolutePosition_1 as absolutePosition };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
import PropTypes from "prop-types";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export default LinkIcon;
|
|
2
|
-
declare function LinkIcon(props: any):
|
|
3
|
-
declare namespace LinkIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
|
|
13
|
-
export { iconClassContainer_1 as iconClassContainer };
|
|
14
|
-
|
|
15
|
-
export { iconClass_1 as iconClass };
|
|
16
|
-
|
|
17
|
-
export { absolutePosition_1 as absolutePosition };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default LinkIcon;
|
|
2
|
+
declare function LinkIcon(props: any): JSX.Element;
|
|
3
|
+
declare namespace LinkIcon {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
const url: PropTypes.Requireable<NonNullable<string | object>>;
|
|
6
|
+
const iconClassContainer: PropTypes.Requireable<string>;
|
|
7
|
+
const iconClass: PropTypes.Requireable<string>;
|
|
8
|
+
const overlayPlacement: PropTypes.Requireable<string>;
|
|
9
|
+
const absolutePosition: PropTypes.Requireable<boolean>;
|
|
10
|
+
}
|
|
11
|
+
namespace defaultProps {
|
|
12
|
+
const iconClassContainer_1: string;
|
|
13
|
+
export { iconClassContainer_1 as iconClassContainer };
|
|
14
|
+
const iconClass_1: string;
|
|
15
|
+
export { iconClass_1 as iconClass };
|
|
16
|
+
const absolutePosition_1: boolean;
|
|
17
|
+
export { absolutePosition_1 as absolutePosition };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import PropTypes from "prop-types";
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
declare class MaskedInput extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
mask: any;
|
|
4
|
-
componentDidUpdate(prevProps: any): void;
|
|
5
|
-
_updatePattern: (props: any) => void;
|
|
6
|
-
_updateMaskSelection: () => void;
|
|
7
|
-
_updateInputSelection: () => void;
|
|
8
|
-
_onChange: (e: any) => void;
|
|
9
|
-
_onKeyDown: (e: any) => void;
|
|
10
|
-
_onKeyPress: (e: any) => void;
|
|
11
|
-
_onPaste: (e: any) => void;
|
|
12
|
-
_getDisplayValue(): any;
|
|
13
|
-
focus(): void;
|
|
14
|
-
blur(): void;
|
|
15
|
-
render(): React.CElement<{
|
|
16
|
-
ref: (r: React.Component<{}, any, any> | null) => void;
|
|
17
|
-
maxLength: any;
|
|
18
|
-
onChange: (e: any) => void;
|
|
19
|
-
onKeyDown: (e: any) => void;
|
|
20
|
-
onKeyPress: (e: any) => void;
|
|
21
|
-
onPaste: (e: any) => void;
|
|
22
|
-
placeholder: any;
|
|
23
|
-
size: any;
|
|
24
|
-
value: any;
|
|
25
|
-
type: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
import
|
|
41
|
-
import
|
|
1
|
+
declare class MaskedInput extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
mask: any;
|
|
4
|
+
componentDidUpdate(prevProps: any): void;
|
|
5
|
+
_updatePattern: (props: any) => void;
|
|
6
|
+
_updateMaskSelection: () => void;
|
|
7
|
+
_updateInputSelection: () => void;
|
|
8
|
+
_onChange: (e: any) => void;
|
|
9
|
+
_onKeyDown: (e: any) => void;
|
|
10
|
+
_onKeyPress: (e: any) => void;
|
|
11
|
+
_onPaste: (e: any) => void;
|
|
12
|
+
_getDisplayValue(): any;
|
|
13
|
+
focus(): void;
|
|
14
|
+
blur(): void;
|
|
15
|
+
render(): React.CElement<{
|
|
16
|
+
ref: (r: React.Component<{}, any, any> | null) => void;
|
|
17
|
+
maxLength: any;
|
|
18
|
+
onChange: (e: any) => void;
|
|
19
|
+
onKeyDown: (e: any) => void;
|
|
20
|
+
onKeyPress: (e: any) => void;
|
|
21
|
+
onPaste: (e: any) => void;
|
|
22
|
+
placeholder: any;
|
|
23
|
+
size: any;
|
|
24
|
+
value: any;
|
|
25
|
+
type: string;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}, React.Component<{}, any, any>>;
|
|
28
|
+
input: Element | React.Component<{}, any, any> | Text | null | undefined;
|
|
29
|
+
}
|
|
30
|
+
declare namespace MaskedInput {
|
|
31
|
+
export { ConfigurationContext as contextType };
|
|
32
|
+
export namespace propTypes {
|
|
33
|
+
const mask: PropTypes.Validator<string>;
|
|
34
|
+
}
|
|
35
|
+
export namespace defaultProps {
|
|
36
|
+
const value: string;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default MaskedInput;
|
|
40
|
+
import React from "react";
|
|
41
|
+
import { ConfigurationContext } from "../contexts/ConfigurationContext";
|
|
42
|
+
import PropTypes from "prop-types";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props {
|
|
3
|
+
question: object;
|
|
4
|
+
}
|
|
5
|
+
declare const MediaContent: ({ question }: Props) => JSX.Element | null;
|
|
6
|
+
export default MediaContent;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export default PrefixIcon;
|
|
2
|
-
declare class PrefixIcon extends React.Component<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
state: {
|
|
5
|
-
prefixes: any;
|
|
6
|
-
};
|
|
7
|
-
render():
|
|
8
|
-
}
|
|
9
|
-
declare namespace PrefixIcon {
|
|
10
|
-
namespace propTypes {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
namespace defaultProps {
|
|
16
|
-
|
|
17
|
-
export { iconClass_1 as iconClass };
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
import React from "react";
|
|
21
|
-
import PropTypes from "prop-types";
|
|
1
|
+
export default PrefixIcon;
|
|
2
|
+
declare class PrefixIcon extends React.Component<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
state: {
|
|
5
|
+
prefixes: any;
|
|
6
|
+
};
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
declare namespace PrefixIcon {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const prefixes: PropTypes.Validator<any[]>;
|
|
12
|
+
const children: PropTypes.Validator<PropTypes.ReactElementLike>;
|
|
13
|
+
const iconClass: PropTypes.Requireable<string>;
|
|
14
|
+
}
|
|
15
|
+
namespace defaultProps {
|
|
16
|
+
const iconClass_1: string;
|
|
17
|
+
export { iconClass_1 as iconClass };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import React from "react";
|
|
21
|
+
import PropTypes from "prop-types";
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
declare class Question extends React.Component<any, any, any> {
|
|
2
|
-
static _getAnswerClass(question: any, isTextarea: any): string;
|
|
3
|
-
static _getQuestionCategoryClass(question: any): string;
|
|
4
|
-
static getEmphasizedClass(question: any): "" | "bg-warning";
|
|
5
|
-
static getEmphasizedOnRelevantClass(question: any): "emphasise-on-relevant" | "";
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
state: {
|
|
8
|
-
validator: null;
|
|
9
|
-
expanded: boolean;
|
|
10
|
-
showIcon: boolean;
|
|
11
|
-
};
|
|
12
|
-
componentDidMount(): void;
|
|
13
|
-
componentDidUpdate(): null | undefined;
|
|
14
|
-
handleAnswerChange: (answerIndex: any, change: any) => void;
|
|
15
|
-
handleSubQuestionChange: (subQuestionIndex: any, change: any) => void;
|
|
16
|
-
handleCommentChange: (commentIndex: any, change: any) => void;
|
|
17
|
-
_handleChange(att: any, valueIndex: any, newValue: any): void;
|
|
18
|
-
isDebugged(question: any): boolean;
|
|
19
|
-
_toggleCollapse: () => void;
|
|
20
|
-
_onMouseEnterHandler: () => void;
|
|
21
|
-
_onMouseLeaveHandler: () => void;
|
|
22
|
-
_getHeaderClassName: () => string[];
|
|
23
|
-
render():
|
|
24
|
-
renderQuestion(question: any):
|
|
25
|
-
_renderQuestionContent(): (
|
|
26
|
-
key: string;
|
|
27
|
-
question: any;
|
|
28
|
-
onChange: (subQuestionIndex: any, change: any) => void;
|
|
29
|
-
index: number;
|
|
30
|
-
}, React.Component<{
|
|
31
|
-
key: string;
|
|
32
|
-
question: any;
|
|
33
|
-
onChange: (subQuestionIndex: any, change: any) => void;
|
|
34
|
-
index: number;
|
|
35
|
-
}, any, any>> | null)[])[];
|
|
36
|
-
renderQuestionIcons():
|
|
37
|
-
renderAnswerableSection():
|
|
38
|
-
getShowIrrelevantClassname(question: any): "" | "show-irrelevant";
|
|
39
|
-
renderAnswers():
|
|
40
|
-
_getAnswers(): any;
|
|
41
|
-
_getAnswerWidthStyle(): {
|
|
42
|
-
flexGrow?: undefined;
|
|
43
|
-
maxWidth?: undefined;
|
|
44
|
-
width?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
flexGrow: number;
|
|
47
|
-
maxWidth: string;
|
|
48
|
-
width: string;
|
|
49
|
-
};
|
|
50
|
-
_renderCollapseToggle():
|
|
51
|
-
_renderPrefixes():
|
|
52
|
-
_renderUnits():
|
|
53
|
-
renderSubQuestions(classname: any): (React.CElement<{
|
|
54
|
-
key: string;
|
|
55
|
-
question: any;
|
|
56
|
-
onChange: (subQuestionIndex: any, change: any) => void;
|
|
57
|
-
index: number;
|
|
58
|
-
}, React.Component<{
|
|
59
|
-
key: string;
|
|
60
|
-
question: any;
|
|
61
|
-
onChange: (subQuestionIndex: any, change: any) => void;
|
|
62
|
-
index: number;
|
|
63
|
-
}, any, any>> | null)[];
|
|
64
|
-
_getSubQuestions(): any;
|
|
65
|
-
_getFirstAnswerValue(): any;
|
|
66
|
-
}
|
|
67
|
-
declare namespace Question {
|
|
68
|
-
export { ConfigurationContext as contextType };
|
|
69
|
-
export namespace propTypes {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
export namespace defaultProps {
|
|
77
|
-
|
|
78
|
-
export { withoutCard_1 as withoutCard };
|
|
79
|
-
|
|
80
|
-
export { collapsible_1 as collapsible };
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
export default Question;
|
|
84
|
-
import React from "react";
|
|
85
|
-
import { ConfigurationContext } from "../contexts/ConfigurationContext";
|
|
86
|
-
import PropTypes from "prop-types";
|
|
1
|
+
declare class Question extends React.Component<any, any, any> {
|
|
2
|
+
static _getAnswerClass(question: any, isTextarea: any): string;
|
|
3
|
+
static _getQuestionCategoryClass(question: any): string;
|
|
4
|
+
static getEmphasizedClass(question: any): "" | "bg-warning";
|
|
5
|
+
static getEmphasizedOnRelevantClass(question: any): "emphasise-on-relevant" | "";
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
validator: null;
|
|
9
|
+
expanded: boolean;
|
|
10
|
+
showIcon: boolean;
|
|
11
|
+
};
|
|
12
|
+
componentDidMount(): void;
|
|
13
|
+
componentDidUpdate(): null | undefined;
|
|
14
|
+
handleAnswerChange: (answerIndex: any, change: any) => void;
|
|
15
|
+
handleSubQuestionChange: (subQuestionIndex: any, change: any) => void;
|
|
16
|
+
handleCommentChange: (commentIndex: any, change: any) => void;
|
|
17
|
+
_handleChange(att: any, valueIndex: any, newValue: any): void;
|
|
18
|
+
isDebugged(question: any): boolean;
|
|
19
|
+
_toggleCollapse: () => void;
|
|
20
|
+
_onMouseEnterHandler: () => void;
|
|
21
|
+
_onMouseLeaveHandler: () => void;
|
|
22
|
+
_getHeaderClassName: () => string[];
|
|
23
|
+
render(): JSX.Element | null;
|
|
24
|
+
renderQuestion(question: any): JSX.Element;
|
|
25
|
+
_renderQuestionContent(): (JSX.Element | JSX.Element[] | (React.CElement<{
|
|
26
|
+
key: string;
|
|
27
|
+
question: any;
|
|
28
|
+
onChange: (subQuestionIndex: any, change: any) => void;
|
|
29
|
+
index: number;
|
|
30
|
+
}, React.Component<{
|
|
31
|
+
key: string;
|
|
32
|
+
question: any;
|
|
33
|
+
onChange: (subQuestionIndex: any, change: any) => void;
|
|
34
|
+
index: number;
|
|
35
|
+
}, any, any>> | null)[])[];
|
|
36
|
+
renderQuestionIcons(): JSX.Element;
|
|
37
|
+
renderAnswerableSection(): JSX.Element;
|
|
38
|
+
getShowIrrelevantClassname(question: any): "" | "show-irrelevant";
|
|
39
|
+
renderAnswers(): JSX.Element[];
|
|
40
|
+
_getAnswers(): any;
|
|
41
|
+
_getAnswerWidthStyle(): {
|
|
42
|
+
flexGrow?: undefined;
|
|
43
|
+
maxWidth?: undefined;
|
|
44
|
+
width?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
flexGrow: number;
|
|
47
|
+
maxWidth: string;
|
|
48
|
+
width: string;
|
|
49
|
+
};
|
|
50
|
+
_renderCollapseToggle(): JSX.Element;
|
|
51
|
+
_renderPrefixes(): JSX.Element | null;
|
|
52
|
+
_renderUnits(): JSX.Element | null;
|
|
53
|
+
renderSubQuestions(classname: any): (React.CElement<{
|
|
54
|
+
key: string;
|
|
55
|
+
question: any;
|
|
56
|
+
onChange: (subQuestionIndex: any, change: any) => void;
|
|
57
|
+
index: number;
|
|
58
|
+
}, React.Component<{
|
|
59
|
+
key: string;
|
|
60
|
+
question: any;
|
|
61
|
+
onChange: (subQuestionIndex: any, change: any) => void;
|
|
62
|
+
index: number;
|
|
63
|
+
}, any, any>> | null)[];
|
|
64
|
+
_getSubQuestions(): any;
|
|
65
|
+
_getFirstAnswerValue(): any;
|
|
66
|
+
}
|
|
67
|
+
declare namespace Question {
|
|
68
|
+
export { ConfigurationContext as contextType };
|
|
69
|
+
export namespace propTypes {
|
|
70
|
+
const question: PropTypes.Validator<object>;
|
|
71
|
+
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
72
|
+
const index: PropTypes.Requireable<number>;
|
|
73
|
+
const withoutCard: PropTypes.Requireable<boolean>;
|
|
74
|
+
const collapsible: PropTypes.Requireable<boolean>;
|
|
75
|
+
}
|
|
76
|
+
export namespace defaultProps {
|
|
77
|
+
const withoutCard_1: boolean;
|
|
78
|
+
export { withoutCard_1 as withoutCard };
|
|
79
|
+
const collapsible_1: boolean;
|
|
80
|
+
export { collapsible_1 as collapsible };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export default Question;
|
|
84
|
+
import React from "react";
|
|
85
|
+
import { ConfigurationContext } from "../contexts/ConfigurationContext";
|
|
86
|
+
import PropTypes from "prop-types";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default class QuestionStatic {
|
|
2
|
-
static renderIcons(question: any, options: any, onCommentChange: any, showIcon: any):
|
|
3
|
-
static renderQuestionHelp(question: any, options: any, onCommentChange: any, showIcon: any):
|
|
4
|
-
static renderQuestionComments: (question: any, options: any, onCommentChange: any, showIcon: any) =>
|
|
5
|
-
static renderQuestionLink(question: any, options: any, onCommentChange: any, showIcon: any):
|
|
6
|
-
static getIconComponentFromName(iconName: any, question: any, options: any, onCommentChange: any, showIcon: any):
|
|
7
|
-
static getIconFromIconList: (iconList: any, iconName: any) => any;
|
|
8
|
-
static getIconComponent(icon: any, question: any, options: any, onCommentChange: any, showIcon: any):
|
|
9
|
-
}
|
|
1
|
+
export default class QuestionStatic {
|
|
2
|
+
static renderIcons(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element;
|
|
3
|
+
static renderQuestionHelp(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
|
|
4
|
+
static renderQuestionComments: (question: any, options: any, onCommentChange: any, showIcon: any) => JSX.Element | null | undefined;
|
|
5
|
+
static renderQuestionLink(question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
|
|
6
|
+
static getIconComponentFromName(iconName: any, question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
|
|
7
|
+
static getIconFromIconList: (iconList: any, iconName: any) => any;
|
|
8
|
+
static getIconComponent(icon: any, question: any, options: any, onCommentChange: any, showIcon: any): JSX.Element | null | undefined;
|
|
9
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default SForms;
|
|
2
|
-
declare const SForms: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
-
import React from "react";
|
|
1
|
+
export default SForms;
|
|
2
|
+
declare const SForms: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
import React from "react";
|