@kbss-cvut/s-forms 0.6.3-alpha-bf56ed0.0 → 0.6.3
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/s-forms.js +6842 -2
- package/package.json +1 -1
- package/dist/components/Answer.d.ts +0 -13
- package/dist/components/DefaultInput.d.ts +0 -39
- package/dist/components/FormManager.d.ts +0 -23
- package/dist/components/FormWindow.d.ts +0 -3
- package/dist/components/HelpIcon.d.ts +0 -20
- package/dist/components/IconOverlay.d.ts +0 -17
- package/dist/components/LinkIcon.d.ts +0 -20
- package/dist/components/MaskedInput.d.ts +0 -42
- package/dist/components/MediaContent.d.ts +0 -5
- package/dist/components/PrefixIcon.d.ts +0 -21
- package/dist/components/Question.d.ts +0 -86
- package/dist/components/QuestionStatic.d.ts +0 -9
- package/dist/components/SForms.d.ts +0 -3
- package/dist/components/answer/CheckboxAnswer.d.ts +0 -23
- package/dist/components/answer/DateTimeAnswer.d.ts +0 -12
- package/dist/components/answer/InputAnswer.d.ts +0 -25
- package/dist/components/answer/MaskedInputAnswer.d.ts +0 -13
- package/dist/components/answer/OptimizedMenuList.d.ts +0 -5
- package/dist/components/answer/SelectAnswer.d.ts +0 -27
- package/dist/components/answer/TypeaheadAnswer.d.ts +0 -13
- package/dist/components/comment/CommentForm.d.ts +0 -8
- package/dist/components/comment/CommentList.d.ts +0 -6
- package/dist/components/comment/CommentView.d.ts +0 -13
- package/dist/components/comment/QuestionCommentIcon.d.ts +0 -9
- package/dist/components/wizard/HorizontalWizardNav.d.ts +0 -14
- package/dist/components/wizard/VerticalWizardNav.d.ts +0 -14
- package/dist/components/wizard/Wizard.d.ts +0 -2
- package/dist/components/wizard/WizardStep.d.ts +0 -25
- package/dist/constants/Constants.d.ts +0 -127
- package/dist/contexts/ConfigurationContext.d.ts +0 -15
- package/dist/contexts/FormGenContext.d.ts +0 -13
- package/dist/contexts/FormQuestionsContext.d.ts +0 -12
- package/dist/contexts/IntlContextProvider.d.ts +0 -8
- package/dist/model/DefaultFormGenerator.d.ts +0 -8
- package/dist/model/FormGenerator.d.ts +0 -20
- package/dist/model/QuestionAnswerProcessor.d.ts +0 -44
- package/dist/model/ValidatorFactory.d.ts +0 -5
- package/dist/s-forms.cjs +0 -2
- package/dist/s-forms.cjs.map +0 -1
- package/dist/s-forms.css +0 -2
- package/dist/s-forms.css.map +0 -1
- package/dist/s-forms.d.ts +0 -16
- package/dist/s-forms.js.map +0 -1
- package/dist/s-forms.modern.js +0 -2
- package/dist/s-forms.modern.js.map +0 -1
- package/dist/s-forms.umd.js +0 -2
- package/dist/s-forms.umd.js.map +0 -1
- package/dist/stories/Answer.stories.d.ts +0 -90
- package/dist/stories/CommentForm.stories.d.ts +0 -14
- package/dist/stories/HelpIcon.stories.d.ts +0 -47
- package/dist/stories/LinkIcon.stories.d.ts +0 -32
- package/dist/stories/PrefixIcon.stories.d.ts +0 -5
- package/dist/stories/Question.stories.d.ts +0 -13
- package/dist/stories/QuestionCommentIcon.stories.d.ts +0 -23
- package/dist/stories/SForms.stories.d.ts +0 -9
- package/dist/styles/icons/ArrowRight.d.ts +0 -2
- package/dist/styles/icons/CaretSquareDown.d.ts +0 -4
- package/dist/styles/icons/CaretSquareUp.d.ts +0 -4
- package/dist/styles/icons/Close.d.ts +0 -2
- package/dist/styles/icons/CommentBubble.d.ts +0 -2
- package/dist/styles/icons/ExternalLink.d.ts +0 -2
- package/dist/styles/icons/InfoCircle.d.ts +0 -2
- package/dist/styles/icons/QuestionCircle.d.ts +0 -2
- package/dist/styles/icons/RecycleBin.d.ts +0 -2
- package/dist/styles/icons/index.d.ts +0 -4
- package/dist/util/FormUtils.d.ts +0 -40
- package/dist/util/JsonLdFramingUtils.d.ts +0 -16
- package/dist/util/JsonLdObjectMap.d.ts +0 -5
- package/dist/util/JsonLdObjectUtils.d.ts +0 -32
- package/dist/util/Logger.d.ts +0 -5
- package/dist/util/MaskMapper.d.ts +0 -12
- package/dist/util/Utils.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,20 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export default IconOverlay;
|
|
2
|
-
declare function IconOverlay(props: any): JSX.Element;
|
|
3
|
-
declare namespace IconOverlay {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const tooltipContent: PropTypes.Requireable<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 +0,0 @@
|
|
|
1
|
-
export default LinkIcon;
|
|
2
|
-
declare function LinkIcon(props: any): JSX.Element;
|
|
3
|
-
declare namespace LinkIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const url: PropTypes.Requireable<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,42 +0,0 @@
|
|
|
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,21 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,23 +0,0 @@
|
|
|
1
|
-
export default CheckboxAnswer;
|
|
2
|
-
declare function CheckboxAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
-
type: string;
|
|
4
|
-
label: any;
|
|
5
|
-
title: any;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
-
disabled: any;
|
|
9
|
-
validation: string;
|
|
10
|
-
help: any;
|
|
11
|
-
}, HTMLElement>;
|
|
12
|
-
declare namespace CheckboxAnswer {
|
|
13
|
-
namespace propTypes {
|
|
14
|
-
const question: PropTypes.Validator<object>;
|
|
15
|
-
const label: PropTypes.Validator<object>;
|
|
16
|
-
const title: PropTypes.Requireable<string>;
|
|
17
|
-
const value: PropTypes.Requireable<string | boolean>;
|
|
18
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
19
|
-
const mouseHover: PropTypes.Requireable<boolean>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import React from "react";
|
|
23
|
-
import PropTypes from "prop-types";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default DateTimeAnswer;
|
|
2
|
-
declare function DateTimeAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace DateTimeAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const question: PropTypes.Validator<object>;
|
|
6
|
-
const label: PropTypes.Validator<object>;
|
|
7
|
-
const title: PropTypes.Requireable<string>;
|
|
8
|
-
const value: PropTypes.Requireable<string | number>;
|
|
9
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
import PropTypes from "prop-types";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default InputAnswer;
|
|
2
|
-
declare function InputAnswer(props: any): React.DetailedReactHTMLElement<{
|
|
3
|
-
label: any;
|
|
4
|
-
title: any;
|
|
5
|
-
value: any;
|
|
6
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
onFocus: (e: React.FocusEvent<HTMLInputElement, Element>) => void;
|
|
8
|
-
type: string;
|
|
9
|
-
rows: number;
|
|
10
|
-
disabled: any;
|
|
11
|
-
validation: string;
|
|
12
|
-
help: any;
|
|
13
|
-
}, HTMLElement>;
|
|
14
|
-
declare namespace InputAnswer {
|
|
15
|
-
namespace propTypes {
|
|
16
|
-
const question: PropTypes.Validator<object>;
|
|
17
|
-
const answer: PropTypes.Validator<object>;
|
|
18
|
-
const label: PropTypes.Validator<object>;
|
|
19
|
-
const title: PropTypes.Requireable<string>;
|
|
20
|
-
const value: PropTypes.Requireable<string | number>;
|
|
21
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
import React from "react";
|
|
25
|
-
import PropTypes from "prop-types";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default MaskedInputAnswer;
|
|
2
|
-
declare function MaskedInputAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace MaskedInputAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const question: PropTypes.Validator<object>;
|
|
6
|
-
const answer: PropTypes.Validator<object>;
|
|
7
|
-
const label: PropTypes.Validator<object>;
|
|
8
|
-
const title: PropTypes.Requireable<string>;
|
|
9
|
-
const value: PropTypes.Requireable<string | number>;
|
|
10
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare class SelectAnswer extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
constructor(props: any, context: any);
|
|
4
|
-
_generateSelectOptions(options: any): JSX.Element[];
|
|
5
|
-
render(): React.DetailedReactHTMLElement<{
|
|
6
|
-
type: string;
|
|
7
|
-
label: any;
|
|
8
|
-
value: any;
|
|
9
|
-
title: any;
|
|
10
|
-
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
|
-
disabled: any;
|
|
12
|
-
}, HTMLElement>;
|
|
13
|
-
}
|
|
14
|
-
declare namespace SelectAnswer {
|
|
15
|
-
export { ConfigurationContext as contextType };
|
|
16
|
-
export namespace propTypes {
|
|
17
|
-
const question: PropTypes.Validator<object>;
|
|
18
|
-
const label: PropTypes.Validator<object>;
|
|
19
|
-
const title: PropTypes.Requireable<string>;
|
|
20
|
-
const value: PropTypes.Requireable<string>;
|
|
21
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export default SelectAnswer;
|
|
25
|
-
import React from "react";
|
|
26
|
-
import { ConfigurationContext } from "../../contexts/ConfigurationContext";
|
|
27
|
-
import PropTypes from "prop-types";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default TypeaheadAnswer;
|
|
2
|
-
declare function TypeaheadAnswer(props: any): JSX.Element;
|
|
3
|
-
declare namespace TypeaheadAnswer {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const question: PropTypes.Validator<object>;
|
|
6
|
-
const answer: PropTypes.Validator<object>;
|
|
7
|
-
const label: PropTypes.Validator<object>;
|
|
8
|
-
const title: PropTypes.Requireable<string>;
|
|
9
|
-
const value: PropTypes.Requireable<string>;
|
|
10
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default CommentView;
|
|
2
|
-
declare function CommentView(props: any): JSX.Element;
|
|
3
|
-
declare namespace CommentView {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const author: PropTypes.Validator<object>;
|
|
6
|
-
const timestamp: PropTypes.Validator<string>;
|
|
7
|
-
const commentValue: PropTypes.Validator<string>;
|
|
8
|
-
const onDeleteQuestionComment: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
-
const onDeleteViewComment: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
const index: PropTypes.Validator<number>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default QuestionCommentIcon;
|
|
2
|
-
declare function QuestionCommentIcon(props: any): JSX.Element;
|
|
3
|
-
declare namespace QuestionCommentIcon {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const question: PropTypes.Validator<object>;
|
|
6
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default HorizontalWizardNav;
|
|
2
|
-
declare function HorizontalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
-
steps: any;
|
|
4
|
-
onNavigate: any;
|
|
5
|
-
currentStep: any;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace HorizontalWizardNav {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
const currentStep: PropTypes.Validator<number>;
|
|
10
|
-
const steps: PropTypes.Validator<any[]>;
|
|
11
|
-
const onNavigate: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default VerticalWizardNav;
|
|
2
|
-
declare function VerticalWizardNav({ steps, onNavigate, currentStep }: {
|
|
3
|
-
steps: any;
|
|
4
|
-
onNavigate: any;
|
|
5
|
-
currentStep: any;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
declare namespace VerticalWizardNav {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
const currentStep: PropTypes.Validator<number>;
|
|
10
|
-
const steps: PropTypes.Validator<any[]>;
|
|
11
|
-
const onNavigate: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare class WizardStep extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
onNextStep: () => void;
|
|
4
|
-
onPreviousStep: () => void;
|
|
5
|
-
_renderWizardStepButtons: () => JSX.Element;
|
|
6
|
-
onChange: (index: any, change: any) => void;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
-
}
|
|
9
|
-
declare namespace WizardStep {
|
|
10
|
-
export namespace propTypes {
|
|
11
|
-
const options: PropTypes.Validator<object>;
|
|
12
|
-
const question: PropTypes.Validator<object>;
|
|
13
|
-
const index: PropTypes.Validator<number>;
|
|
14
|
-
const onNextStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
const onPreviousStep: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
-
const mapComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
-
const isFirstStep: PropTypes.Requireable<boolean>;
|
|
18
|
-
const isLastStep: PropTypes.Requireable<boolean>;
|
|
19
|
-
}
|
|
20
|
-
export { FormQuestionsContext as contextType };
|
|
21
|
-
}
|
|
22
|
-
export default WizardStep;
|
|
23
|
-
import React from "react";
|
|
24
|
-
import PropTypes from "prop-types";
|
|
25
|
-
import { FormQuestionsContext } from "../../contexts/FormQuestionsContext";
|