@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,23 +1,23 @@
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<NonNullable<string | boolean | null | undefined>>;
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
+ 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
+ let question: PropTypes.Validator<object>;
15
+ let label: PropTypes.Validator<object>;
16
+ let title: PropTypes.Requireable<string>;
17
+ let value: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
18
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
19
+ let mouseHover: PropTypes.Requireable<boolean>;
20
+ }
21
+ }
22
+ import React from "react";
23
+ import PropTypes from "prop-types";
@@ -1,12 +1,12 @@
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<NonNullable<string | number | null | undefined>>;
9
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
10
- }
11
- }
12
- import PropTypes from "prop-types";
1
+ export default DateTimeAnswer;
2
+ declare function DateTimeAnswer(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace DateTimeAnswer {
4
+ namespace propTypes {
5
+ let question: PropTypes.Validator<object>;
6
+ let label: PropTypes.Validator<object>;
7
+ let title: PropTypes.Requireable<string>;
8
+ let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
9
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
10
+ }
11
+ }
12
+ import PropTypes from "prop-types";
@@ -1,25 +1,25 @@
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<NonNullable<string | number | null | undefined>>;
21
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
22
- }
23
- }
24
- import React from "react";
25
- import PropTypes from "prop-types";
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
+ let question: PropTypes.Validator<object>;
17
+ let answer: PropTypes.Validator<object>;
18
+ let label: PropTypes.Validator<object>;
19
+ let title: PropTypes.Requireable<string>;
20
+ let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
21
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
22
+ }
23
+ }
24
+ import React from "react";
25
+ import PropTypes from "prop-types";
@@ -1,13 +1,13 @@
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<NonNullable<string | number | null | undefined>>;
10
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
11
- }
12
- }
13
- import PropTypes from "prop-types";
1
+ export default MaskedInputAnswer;
2
+ declare function MaskedInputAnswer(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace MaskedInputAnswer {
4
+ namespace propTypes {
5
+ let question: PropTypes.Validator<object>;
6
+ let answer: PropTypes.Validator<object>;
7
+ let label: PropTypes.Validator<object>;
8
+ let title: PropTypes.Requireable<string>;
9
+ let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
10
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
11
+ }
12
+ }
13
+ import PropTypes from "prop-types";
@@ -1,27 +1,27 @@
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
+ declare class SelectAnswer extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ _generateSelectOptions(options: any): import("react/jsx-runtime").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
+ let question: PropTypes.Validator<object>;
18
+ let label: PropTypes.Validator<object>;
19
+ let title: PropTypes.Requireable<string>;
20
+ let value: PropTypes.Requireable<string>;
21
+ let 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 +1,13 @@
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<NonNullable<NonNullable<string | object | null | undefined>>>;
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
+ export default TypeaheadAnswer;
2
+ declare function TypeaheadAnswer(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace TypeaheadAnswer {
4
+ namespace propTypes {
5
+ let question: PropTypes.Validator<object>;
6
+ let answer: PropTypes.Validator<object>;
7
+ let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
8
+ let title: PropTypes.Requireable<string>;
9
+ let value: PropTypes.Requireable<string>;
10
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
11
+ }
12
+ }
13
+ import PropTypes from "prop-types";
@@ -1,8 +1,8 @@
1
- export default CommentForm;
2
- declare function CommentForm(props: any): JSX.Element;
3
- declare namespace CommentForm {
4
- namespace propTypes {
5
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
6
- }
7
- }
8
- import PropTypes from "prop-types";
1
+ export default CommentForm;
2
+ declare function CommentForm(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace CommentForm {
4
+ namespace propTypes {
5
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
6
+ }
7
+ }
8
+ import PropTypes from "prop-types";
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- comments: Array<any>;
4
- onDeleteCommentClick: (index: number) => void;
5
- }
6
- declare const CommentList: ({ comments, onDeleteCommentClick }: Props) => JSX.Element;
7
- export default CommentList;
1
+ interface Props {
2
+ comments: Array<any>;
3
+ onDeleteCommentClick: (index: number) => void;
4
+ }
5
+ declare const CommentList: ({ comments, onDeleteCommentClick }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default CommentList;
@@ -1,13 +1,13 @@
1
- export default CommentView;
2
- declare function CommentView(props: any): JSX.Element;
3
- declare namespace CommentView {
4
- namespace propTypes {
5
- const author: PropTypes.Requireable<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
+ export default CommentView;
2
+ declare function CommentView(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace CommentView {
4
+ namespace propTypes {
5
+ let author: PropTypes.Requireable<object>;
6
+ let timestamp: PropTypes.Validator<string>;
7
+ let commentValue: PropTypes.Validator<string>;
8
+ let onDeleteQuestionComment: PropTypes.Validator<(...args: any[]) => any>;
9
+ let onDeleteViewComment: PropTypes.Requireable<(...args: any[]) => any>;
10
+ let index: PropTypes.Validator<number>;
11
+ }
12
+ }
13
+ import PropTypes from "prop-types";
@@ -1,9 +1,9 @@
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
+ export default QuestionCommentIcon;
2
+ declare function QuestionCommentIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
+ declare namespace QuestionCommentIcon {
4
+ namespace propTypes {
5
+ let question: PropTypes.Validator<object>;
6
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
7
+ }
8
+ }
9
+ import PropTypes from "prop-types";
@@ -1,14 +1,14 @@
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
+ export default HorizontalWizardNav;
2
+ declare function HorizontalWizardNav({ steps, onNavigate, currentStep }: {
3
+ steps: any;
4
+ onNavigate: any;
5
+ currentStep: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace HorizontalWizardNav {
8
+ namespace propTypes {
9
+ let currentStep: PropTypes.Validator<number>;
10
+ let steps: PropTypes.Validator<any[]>;
11
+ let onNavigate: PropTypes.Validator<(...args: any[]) => any>;
12
+ }
13
+ }
14
+ import PropTypes from "prop-types";
@@ -1,14 +1,14 @@
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
+ export default VerticalWizardNav;
2
+ declare function VerticalWizardNav({ steps, onNavigate, currentStep }: {
3
+ steps: any;
4
+ onNavigate: any;
5
+ currentStep: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace VerticalWizardNav {
8
+ namespace propTypes {
9
+ let currentStep: PropTypes.Validator<number>;
10
+ let steps: PropTypes.Validator<any[]>;
11
+ let onNavigate: PropTypes.Validator<(...args: any[]) => any>;
12
+ }
13
+ }
14
+ import PropTypes from "prop-types";
@@ -1,2 +1,2 @@
1
- export default Wizard;
2
- declare function Wizard(): JSX.Element;
1
+ export default Wizard;
2
+ declare function Wizard(): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +1,25 @@
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";
1
+ declare class WizardStep extends React.Component<any, any, any> {
2
+ constructor(props: any);
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
+ }
9
+ declare namespace WizardStep {
10
+ export namespace propTypes {
11
+ let options: PropTypes.Validator<object>;
12
+ let question: PropTypes.Validator<object>;
13
+ let index: PropTypes.Validator<number>;
14
+ let onNextStep: PropTypes.Requireable<(...args: any[]) => any>;
15
+ let onPreviousStep: PropTypes.Requireable<(...args: any[]) => any>;
16
+ let mapComponent: PropTypes.Requireable<(...args: any[]) => any>;
17
+ let isFirstStep: PropTypes.Requireable<boolean>;
18
+ let 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";