@kbss-cvut/s-forms 0.7.1-beta-b00a1cf.0 → 0.7.1-beta-c22f5eb.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.
Files changed (72) hide show
  1. package/dist/components/Answer.d.ts +13 -13
  2. package/dist/components/DefaultInput.d.ts +39 -39
  3. package/dist/components/FormManager.d.ts +23 -23
  4. package/dist/components/FormWindow.d.ts +3 -3
  5. package/dist/components/HelpIcon.d.ts +20 -20
  6. package/dist/components/IconOverlay.d.ts +17 -17
  7. package/dist/components/LinkIcon.d.ts +20 -20
  8. package/dist/components/MaskedInput.d.ts +41 -42
  9. package/dist/components/MediaContent.d.ts +5 -6
  10. package/dist/components/PrefixIcon.d.ts +21 -21
  11. package/dist/components/Question.d.ts +86 -86
  12. package/dist/components/QuestionStatic.d.ts +9 -9
  13. package/dist/components/SForms.d.ts +3 -3
  14. package/dist/components/answer/CheckboxAnswer.d.ts +23 -23
  15. package/dist/components/answer/DateTimeAnswer.d.ts +12 -12
  16. package/dist/components/answer/InputAnswer.d.ts +25 -25
  17. package/dist/components/answer/MaskedInputAnswer.d.ts +13 -13
  18. package/dist/components/answer/SelectAnswer.d.ts +27 -27
  19. package/dist/components/answer/TypeaheadAnswer.d.ts +13 -13
  20. package/dist/components/comment/CommentForm.d.ts +8 -8
  21. package/dist/components/comment/CommentList.d.ts +6 -7
  22. package/dist/components/comment/CommentView.d.ts +13 -13
  23. package/dist/components/comment/QuestionCommentIcon.d.ts +9 -9
  24. package/dist/components/wizard/HorizontalWizardNav.d.ts +14 -14
  25. package/dist/components/wizard/VerticalWizardNav.d.ts +14 -14
  26. package/dist/components/wizard/Wizard.d.ts +2 -2
  27. package/dist/components/wizard/WizardStep.d.ts +25 -25
  28. package/dist/constants/Constants.d.ts +127 -127
  29. package/dist/contexts/ConfigurationContext.d.ts +15 -15
  30. package/dist/contexts/FormGenContext.d.ts +13 -13
  31. package/dist/contexts/FormQuestionsContext.d.ts +12 -12
  32. package/dist/contexts/IntlContextProvider.d.ts +8 -8
  33. package/dist/model/DefaultFormGenerator.d.ts +8 -8
  34. package/dist/model/FormGenerator.d.ts +20 -20
  35. package/dist/model/QuestionAnswerProcessor.d.ts +44 -44
  36. package/dist/model/ValidatorFactory.d.ts +5 -5
  37. package/dist/s-forms.cjs +1 -1
  38. package/dist/s-forms.cjs.map +1 -1
  39. package/dist/s-forms.d.ts +16 -16
  40. package/dist/s-forms.js +1 -1
  41. package/dist/s-forms.js.map +1 -1
  42. package/dist/s-forms.modern.js +1 -1
  43. package/dist/s-forms.modern.js.map +1 -1
  44. package/dist/s-forms.umd.js +1 -1
  45. package/dist/s-forms.umd.js.map +1 -1
  46. package/dist/stories/Answer.stories.d.ts +12 -12
  47. package/dist/stories/CommentForm.stories.d.ts +3 -3
  48. package/dist/stories/HelpIcon.stories.d.ts +4 -4
  49. package/dist/stories/LinkIcon.stories.d.ts +3 -3
  50. package/dist/stories/PrefixIcon.stories.d.ts +3 -3
  51. package/dist/stories/Question.stories.d.ts +11 -11
  52. package/dist/stories/QuestionCommentIcon.stories.d.ts +4 -4
  53. package/dist/stories/SForms.stories.d.ts +8 -8
  54. package/dist/styles/icons/ArrowRight.d.ts +2 -2
  55. package/dist/styles/icons/CaretSquareDown.d.ts +4 -4
  56. package/dist/styles/icons/CaretSquareUp.d.ts +4 -4
  57. package/dist/styles/icons/Close.d.ts +2 -2
  58. package/dist/styles/icons/CommentBubble.d.ts +2 -2
  59. package/dist/styles/icons/ExternalLink.d.ts +2 -2
  60. package/dist/styles/icons/InfoCircle.d.ts +2 -2
  61. package/dist/styles/icons/QuestionCircle.d.ts +2 -2
  62. package/dist/styles/icons/RecycleBin.d.ts +2 -2
  63. package/dist/styles/icons/index.d.ts +4 -4
  64. package/dist/util/FormUtils.d.ts +40 -40
  65. package/dist/util/JsonLdFramingUtils.d.ts +16 -16
  66. package/dist/util/JsonLdObjectMap.d.ts +5 -5
  67. package/dist/util/JsonLdObjectUtils.d.ts +32 -32
  68. package/dist/util/Logger.d.ts +5 -5
  69. package/dist/util/MaskMapper.d.ts +12 -12
  70. package/dist/util/Utils.d.ts +15 -15
  71. package/package.json +5 -6
  72. package/dist/components/answer/OptimizedMenuList.d.ts +0 -5
@@ -1,13 +1,13 @@
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
+ export default Answer;
2
+ declare function Answer(props: any): import("react/jsx-runtime").JSX.Element | null;
3
+ declare namespace Answer {
4
+ namespace propTypes {
5
+ let answer: PropTypes.Validator<object>;
6
+ let question: PropTypes.Validator<object>;
7
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
8
+ let onCommentChange: PropTypes.Validator<(...args: any[]) => any>;
9
+ let index: PropTypes.Requireable<number>;
10
+ let 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(): 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
+ 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(): import("react/jsx-runtime").JSX.Element;
14
+ _renderCheckbox(): import("react/jsx-runtime").JSX.Element;
15
+ input: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null | undefined;
16
+ _renderRadio(): import("react/jsx-runtime").JSX.Element;
17
+ _renderSelect(): import("react/jsx-runtime").JSX.Element;
18
+ _renderLabel(): import("react/jsx-runtime").JSX.Element | null;
19
+ _renderTextArea(): import("react/jsx-runtime").JSX.Element;
20
+ _renderHelp(): import("react/jsx-runtime").JSX.Element | null;
21
+ _renderInput(): import("react/jsx-runtime").JSX.Element;
22
+ }
23
+ declare namespace DefaultInput {
24
+ namespace propTypes {
25
+ let type: PropTypes.Requireable<string>;
26
+ let label: PropTypes.Requireable<object>;
27
+ let value: PropTypes.Requireable<any>;
28
+ let onChange: PropTypes.Requireable<(...args: any[]) => any>;
29
+ let help: PropTypes.Requireable<string>;
30
+ let validation: PropTypes.Requireable<string>;
31
+ }
32
+ namespace defaultProps {
33
+ let 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: () => 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
+ 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: () => import("react/jsx-runtime").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(): import("react/jsx-runtime").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): 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
+ export default HelpIcon;
2
+ declare function HelpIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace HelpIcon {
4
+ namespace propTypes {
5
+ let text: PropTypes.Validator<string>;
6
+ let iconClassContainer: PropTypes.Requireable<string>;
7
+ let iconClass: PropTypes.Requireable<string>;
8
+ let overlayPlacement: PropTypes.Requireable<string>;
9
+ let absolutePosition: PropTypes.Requireable<boolean>;
10
+ }
11
+ namespace defaultProps {
12
+ let iconClassContainer_1: string;
13
+ export { iconClassContainer_1 as iconClassContainer };
14
+ let iconClass_1: string;
15
+ export { iconClass_1 as iconClass };
16
+ let 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): 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
+ export default IconOverlay;
2
+ declare function IconOverlay(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace IconOverlay {
4
+ namespace propTypes {
5
+ let tooltipContent: PropTypes.Requireable<NonNullable<string | object>>;
6
+ let id: PropTypes.Validator<string>;
7
+ let overlayPlacement: PropTypes.Requireable<string>;
8
+ let absolutePosition: PropTypes.Requireable<boolean>;
9
+ }
10
+ namespace defaultProps {
11
+ export let iconClassContainer: string;
12
+ export let iconClass: string;
13
+ let 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): 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
+ export default LinkIcon;
2
+ declare function LinkIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace LinkIcon {
4
+ namespace propTypes {
5
+ let url: PropTypes.Requireable<NonNullable<string | object>>;
6
+ let iconClassContainer: PropTypes.Requireable<string>;
7
+ let iconClass: PropTypes.Requireable<string>;
8
+ let overlayPlacement: PropTypes.Requireable<string>;
9
+ let absolutePosition: PropTypes.Requireable<boolean>;
10
+ }
11
+ namespace defaultProps {
12
+ let iconClassContainer_1: string;
13
+ export { iconClassContainer_1 as iconClassContainer };
14
+ let iconClass_1: string;
15
+ export { iconClass_1 as iconClass };
16
+ let absolutePosition_1: boolean;
17
+ export { absolutePosition_1 as absolutePosition };
18
+ }
19
+ }
20
+ import PropTypes from "prop-types";
@@ -1,42 +1,41 @@
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
+ 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
+ }, React.Component<{}, any, any>>;
27
+ input: Element | React.Component<{}, any, any> | Text | null | undefined;
28
+ }
29
+ declare namespace MaskedInput {
30
+ export { ConfigurationContext as contextType };
31
+ export namespace propTypes {
32
+ let mask: PropTypes.Validator<string>;
33
+ }
34
+ export namespace defaultProps {
35
+ let value: string;
36
+ }
37
+ }
38
+ export default MaskedInput;
39
+ import React from "react";
40
+ import { ConfigurationContext } from "../contexts/ConfigurationContext";
41
+ import PropTypes from "prop-types";
@@ -1,6 +1,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
+ interface Props {
2
+ question: object;
3
+ }
4
+ declare const MediaContent: ({ question }: Props) => import("react/jsx-runtime").JSX.Element | null;
5
+ 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(): 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
+ 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(): import("react/jsx-runtime").JSX.Element;
8
+ }
9
+ declare namespace PrefixIcon {
10
+ namespace propTypes {
11
+ let prefixes: PropTypes.Validator<any[]>;
12
+ let children: PropTypes.Validator<PropTypes.ReactElementLike>;
13
+ let iconClass: PropTypes.Requireable<string>;
14
+ }
15
+ namespace defaultProps {
16
+ let 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(): 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
+ 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(): import("react/jsx-runtime").JSX.Element | null;
24
+ renderQuestion(question: any): import("react/jsx-runtime").JSX.Element;
25
+ _renderQuestionContent(): (import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").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(): import("react/jsx-runtime").JSX.Element;
37
+ renderAnswerableSection(): import("react/jsx-runtime").JSX.Element;
38
+ getShowIrrelevantClassname(question: any): "" | "show-irrelevant";
39
+ renderAnswers(): import("react/jsx-runtime").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(): import("react/jsx-runtime").JSX.Element;
51
+ _renderPrefixes(): import("react/jsx-runtime").JSX.Element | null;
52
+ _renderUnits(): import("react/jsx-runtime").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
+ let question: PropTypes.Validator<object>;
71
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
72
+ let index: PropTypes.Requireable<number>;
73
+ let withoutCard: PropTypes.Requireable<boolean>;
74
+ let collapsible: PropTypes.Requireable<boolean>;
75
+ }
76
+ export namespace defaultProps {
77
+ let withoutCard_1: boolean;
78
+ export { withoutCard_1 as withoutCard };
79
+ let 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): 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
+ export default class QuestionStatic {
2
+ static renderIcons(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element;
3
+ static renderQuestionHelp(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
4
+ static renderQuestionComments: (question: any, options: any, onCommentChange: any, showIcon: any) => import("react/jsx-runtime").JSX.Element | null | undefined;
5
+ static renderQuestionLink(question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").JSX.Element | null | undefined;
6
+ static getIconComponentFromName(iconName: any, question: any, options: any, onCommentChange: any, showIcon: any): import("react/jsx-runtime").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): import("react/jsx-runtime").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";