@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,12 +1,12 @@
1
- import Answer from "../components/Answer";
2
- import { Meta, StoryObj } from "@storybook/react";
3
- declare const meta: Meta<typeof Answer>;
4
- export default meta;
5
- type Story = StoryObj<typeof Answer>;
6
- export declare const RegularInput: Story;
7
- export declare const TypeHead: Story;
8
- export declare const DateTimePicker: Story;
9
- export declare const CheckBox: Story;
10
- export declare const MaskedInput: Story;
11
- export declare const SparqlInput: Story;
12
- export declare const TurtleInput: Story;
1
+ import Answer from "../components/Answer";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof Answer>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Answer>;
6
+ export declare const RegularInput: Story;
7
+ export declare const TypeHead: Story;
8
+ export declare const DateTimePicker: Story;
9
+ export declare const CheckBox: Story;
10
+ export declare const MaskedInput: Story;
11
+ export declare const SparqlInput: Story;
12
+ export declare const TurtleInput: Story;
@@ -1,3 +1,3 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
- export declare const LongText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
+ export declare const LongText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,3 +1,3 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,3 +1,3 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,11 +1,11 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const TestedQuestionIsIrrelevant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
- export declare const TestedQuestionIsRelevant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
5
- export declare const TestedQuestionIsIrrelevantWithDebugModeOn: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
6
- export declare const TestedQuestionIsIrrelevantAndStartingId: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
7
- export declare const CollapsedQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
8
- export declare const ExpandedQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
9
- export declare const QuestionWithoutHeader: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
10
- export declare const AnswerableQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
11
- export declare const AnswerableQuestionExpanded: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const TestedQuestionIsIrrelevant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
+ export declare const TestedQuestionIsRelevant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
5
+ export declare const TestedQuestionIsIrrelevantWithDebugModeOn: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
6
+ export declare const TestedQuestionIsIrrelevantAndStartingId: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
7
+ export declare const CollapsedQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
8
+ export declare const ExpandedQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
9
+ export declare const QuestionWithoutHeader: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
10
+ export declare const AnswerableQuestion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
11
+ export declare const AnswerableQuestionExpanded: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,4 +1,4 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any> | import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
- export default _default;
3
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
- export declare const WithComment: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, any>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
4
+ export declare const WithComment: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
3
- export default _default;
4
- export declare const Form1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
5
- export declare const Form2: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
6
- export declare const TouristDestinationForm1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
7
- export declare const TouristDestinationForm2: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
8
- export declare const OccurenceReportingForm: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
1
+ import React from "react";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
3
+ export default _default;
4
+ export declare const Form1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
5
+ export declare const Form2: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
6
+ export declare const TouristDestinationForm1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
7
+ export declare const TouristDestinationForm2: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
8
+ export declare const OccurenceReportingForm: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.RefAttributes<any>>;
@@ -1,2 +1,2 @@
1
- export default ArrowRight;
2
- declare function ArrowRight(): JSX.Element;
1
+ export default ArrowRight;
2
+ declare function ArrowRight(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export default CaretSquareDown;
2
- declare function CaretSquareDown({ title }: {
3
- title: any;
4
- }): JSX.Element;
1
+ export default CaretSquareDown;
2
+ declare function CaretSquareDown({ title }: {
3
+ title: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export default CaretSquareUp;
2
- declare function CaretSquareUp({ title }: {
3
- title: any;
4
- }): JSX.Element;
1
+ export default CaretSquareUp;
2
+ declare function CaretSquareUp({ title }: {
3
+ title: any;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default Close;
2
- declare function Close(): JSX.Element;
1
+ export default Close;
2
+ declare function Close(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default CommentBubble;
2
- declare function CommentBubble(): JSX.Element;
1
+ export default CommentBubble;
2
+ declare function CommentBubble(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default ExternalLink;
2
- declare function ExternalLink(): JSX.Element;
1
+ export default ExternalLink;
2
+ declare function ExternalLink(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default InfoCircle;
2
- declare function InfoCircle(): JSX.Element;
1
+ export default InfoCircle;
2
+ declare function InfoCircle(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default QuestionCircle;
2
- declare function QuestionCircle(): JSX.Element;
1
+ export default QuestionCircle;
2
+ declare function QuestionCircle(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export default RecycleBin;
2
- declare function RecycleBin(): JSX.Element;
1
+ export default RecycleBin;
2
+ declare function RecycleBin(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export { default as CaretSquareUp } from "./CaretSquareUp";
2
- export { default as CaretSquareDown } from "./CaretSquareDown";
3
- export { default as InfoCircle } from "./InfoCircle";
4
- export { default as QuestionCircle } from "./QuestionCircle";
1
+ export { default as CaretSquareUp } from "./CaretSquareUp";
2
+ export { default as CaretSquareDown } from "./CaretSquareDown";
3
+ export { default as InfoCircle } from "./InfoCircle";
4
+ export { default as QuestionCircle } from "./QuestionCircle";
@@ -1,40 +1,40 @@
1
- export default class FormUtils {
2
- static isForm(structure: any): any;
3
- static isWizardStep(structure: any): any;
4
- static isSection(question: any): any;
5
- static isAnswerable(question: any): any;
6
- static isTypeahead(question: any): any;
7
- static getPossibleValuesQuery(question: any): any;
8
- static isDisabled(question: any): any;
9
- static isHidden(question: any): any;
10
- static isTextarea(question: any, answerValue: any): any;
11
- static isText(question: any): any;
12
- static isCalendar(question: any): any;
13
- static isDate(question: any): any;
14
- static isTime(question: any): any;
15
- static isDateTime(question: any): any;
16
- static isCheckbox(question: any): any;
17
- static isMaskedInput(question: any): any;
18
- static isSparqlInput(question: any): any;
19
- static isTurtleInput(question: any): any;
20
- static isCollapsed(question: any): any;
21
- static isEmphasised(question: any): any;
22
- static getCategory(question: any): string | undefined;
23
- static resolveValue(answer: any): any;
24
- static resolveValueObject(answer: any): any;
25
- static isRelevant(question: any): boolean;
26
- static hasValidationLogic(question: any): boolean;
27
- static isValid(question: any): boolean;
28
- static testOrCondition(condition: any): boolean;
29
- static testCondition(condition: any): boolean;
30
- static _getMappedObjectsArray(jsonObjects: any, objectType: any): any;
31
- static hasAnswer(question: any): boolean;
32
- /**
33
- * Resolves which format of date/time/datetime value should be used in the datetime picker.
34
- * @param question Question with format info
35
- * @param originalValue Value read from answer, not processed by the rendered component
36
- * @param options Object with datetime formats
37
- * @return {*} Format from Configuration
38
- */
39
- static resolveDateTimeFormat(question: any, originalValue: any, options: any): any;
40
- }
1
+ export default class FormUtils {
2
+ static isForm(structure: any): any;
3
+ static isWizardStep(structure: any): any;
4
+ static isSection(question: any): any;
5
+ static isAnswerable(question: any): any;
6
+ static isTypeahead(question: any): any;
7
+ static getPossibleValuesQuery(question: any): any;
8
+ static isDisabled(question: any): any;
9
+ static isHidden(question: any): any;
10
+ static isTextarea(question: any, answerValue: any): any;
11
+ static isText(question: any): any;
12
+ static isCalendar(question: any): any;
13
+ static isDate(question: any): any;
14
+ static isTime(question: any): any;
15
+ static isDateTime(question: any): any;
16
+ static isCheckbox(question: any): any;
17
+ static isMaskedInput(question: any): any;
18
+ static isSparqlInput(question: any): any;
19
+ static isTurtleInput(question: any): any;
20
+ static isCollapsed(question: any): any;
21
+ static isEmphasised(question: any): any;
22
+ static getCategory(question: any): string | undefined;
23
+ static resolveValue(answer: any): any;
24
+ static resolveValueObject(answer: any): any;
25
+ static isRelevant(question: any): boolean;
26
+ static hasValidationLogic(question: any): boolean;
27
+ static isValid(question: any): boolean;
28
+ static testOrCondition(condition: any): boolean;
29
+ static testCondition(condition: any): boolean;
30
+ static _getMappedObjectsArray(jsonObjects: any, objectType: any): any;
31
+ static hasAnswer(question: any): boolean;
32
+ /**
33
+ * Resolves which format of date/time/datetime value should be used in the datetime picker.
34
+ * @param question Question with format info
35
+ * @param originalValue Value read from answer, not processed by the rendered component
36
+ * @param options Object with datetime formats
37
+ * @return {*} Format from Configuration
38
+ */
39
+ static resolveDateTimeFormat(question: any, originalValue: any, options: any): any;
40
+ }
@@ -1,16 +1,16 @@
1
- export default class JsonLdFramingUtils {
2
- /**
3
- * Performs JSON-LD custom framing using shapes. Shape is declaration of the JSON-LD framing
4
- * in a language that is incompatible with JSON-LD specification.
5
- *
6
- * @param input the JSON-LD input to framing by a shape.
7
- * @param shape the JSON-LD custom frame configuration using shapes.
8
- * @param callback(err, framed) called once the operation completes.
9
- */
10
- static customFrame(input: any, shape: any, callback: any, ...args: any[]): any;
11
- static expandStructure(structure: any): {};
12
- static _expandGraph(parentNode: any, shape: any, id2ObjectMap: any): void;
13
- static _getId(jsonObject: any): any;
14
- static compressStructure: (rootNode: any) => any;
15
- static _compressGraph: (parentNode: any, object2IdMap: any, idIncluded: any) => any;
16
- }
1
+ export default class JsonLdFramingUtils {
2
+ /**
3
+ * Performs JSON-LD custom framing using shapes. Shape is declaration of the JSON-LD framing
4
+ * in a language that is incompatible with JSON-LD specification.
5
+ *
6
+ * @param input the JSON-LD input to framing by a shape.
7
+ * @param shape the JSON-LD custom frame configuration using shapes.
8
+ * @param callback(err, framed) called once the operation completes.
9
+ */
10
+ static customFrame(input: any, shape: any, callback: any, ...args: any[]): any;
11
+ static expandStructure(structure: any): {};
12
+ static _expandGraph(parentNode: any, shape: any, id2ObjectMap: any): void;
13
+ static _getId(jsonObject: any): any;
14
+ static compressStructure: (rootNode: any) => any;
15
+ static _compressGraph: (parentNode: any, object2IdMap: any, idIncluded: any) => any;
16
+ }
@@ -1,5 +1,5 @@
1
- export default class JsonLdObjectMap {
2
- static objectMap: {};
3
- static putObject(id: any, question: any): void;
4
- static getObject(id: any): any;
5
- }
1
+ export default class JsonLdObjectMap {
2
+ static objectMap: {};
3
+ static putObject(id: any, question: any): void;
4
+ static getObject(id: any): any;
5
+ }
@@ -1,32 +1,32 @@
1
- export default class JsonLdObjectUtils {
2
- static getFirstObject(subject: any, predicate: any): any;
3
- static compareValues(jsonLdValue1: any, jsonLdValue2: any): any;
4
- /**
5
- * Sorts the specified JSON-LD data using a topological sort over partially ordered set defined by gtProperty.
6
- *
7
- * This is useful for situations where each item only knows its immediate neighbour in the list.
8
- * @param data The data to sort, should be an array
9
- * @param gtProperty Property specifying that an item is greater than another item. It is used for comparison.
10
- *
11
- */
12
- static toplogicalSort(data: any, gtProperty: any): any;
13
- /**
14
- * Sorts the specified JSON-LD data using a topological sort over partially ordered set defined by gtProperty,
15
- * while preserving original order.
16
- *
17
- * This is useful for situations where each item only knows its immediate neighbour in the list.
18
- * @param data The data to sort, should be an array
19
- * @param gtProperty Property specifying that an item is greater than another item. It is used for comparison.
20
- *
21
- */
22
- static orderPreservingToplogicalSort(data: any, gtProperty: any): any;
23
- static getCompareLocalizedLabelFunction(intl: any): (a: any, b: any) => 0 | 1 | -1;
24
- static orderByLocalizedLabels(data: any, intl: any): any;
25
- /**
26
- * Evaluates if jsonLdObject has provided id.
27
- * @param jsonLdObject
28
- * @param id
29
- * @returns {boolean}
30
- */
31
- static checkId(jsonLdObject: any, id: any): boolean;
32
- }
1
+ export default class JsonLdObjectUtils {
2
+ static getFirstObject(subject: any, predicate: any): any;
3
+ static compareValues(jsonLdValue1: any, jsonLdValue2: any): any;
4
+ /**
5
+ * Sorts the specified JSON-LD data using a topological sort over partially ordered set defined by gtProperty.
6
+ *
7
+ * This is useful for situations where each item only knows its immediate neighbour in the list.
8
+ * @param data The data to sort, should be an array
9
+ * @param gtProperty Property specifying that an item is greater than another item. It is used for comparison.
10
+ *
11
+ */
12
+ static toplogicalSort(data: any, gtProperty: any): any;
13
+ /**
14
+ * Sorts the specified JSON-LD data using a topological sort over partially ordered set defined by gtProperty,
15
+ * while preserving original order.
16
+ *
17
+ * This is useful for situations where each item only knows its immediate neighbour in the list.
18
+ * @param data The data to sort, should be an array
19
+ * @param gtProperty Property specifying that an item is greater than another item. It is used for comparison.
20
+ *
21
+ */
22
+ static orderPreservingToplogicalSort(data: any, gtProperty: any): any;
23
+ static getCompareLocalizedLabelFunction(intl: any): (a: any, b: any) => 0 | 1 | -1;
24
+ static orderByLocalizedLabels(data: any, intl: any): any;
25
+ /**
26
+ * Evaluates if jsonLdObject has provided id.
27
+ * @param jsonLdObject
28
+ * @param id
29
+ * @returns {boolean}
30
+ */
31
+ static checkId(jsonLdObject: any, id: any): boolean;
32
+ }
@@ -1,5 +1,5 @@
1
- export default class Logger {
2
- static log(msg: any): void;
3
- static warn(msg: any): void;
4
- static error(msg: any): void;
5
- }
1
+ export default class Logger {
2
+ static log(msg: any): void;
3
+ static warn(msg: any): void;
4
+ static error(msg: any): void;
5
+ }
@@ -1,12 +1,12 @@
1
- export default class MaskMapper {
2
- /**
3
- * Attempts to map regular mask (e.g. date) to the format supported by inputmask-core.
4
- *
5
- * E.g. it maps (DD-MM-YYYY) to 11-11-1111.
6
- *
7
- * If an unsupported mask character is encountered, it is simply skipped. Datetime masks are processed according to
8
- * ISO 8601 acronyms (e.g. M for month and m for minute).
9
- * @param mask The mask to map
10
- */
11
- static mapMask(mask: any): any;
12
- }
1
+ export default class MaskMapper {
2
+ /**
3
+ * Attempts to map regular mask (e.g. date) to the format supported by inputmask-core.
4
+ *
5
+ * E.g. it maps (DD-MM-YYYY) to 11-11-1111.
6
+ *
7
+ * If an unsupported mask character is encountered, it is simply skipped. Datetime masks are processed according to
8
+ * ISO 8601 acronyms (e.g. M for month and m for minute).
9
+ * @param mask The mask to map
10
+ */
11
+ static mapMask(mask: any): any;
12
+ }
@@ -1,15 +1,15 @@
1
- export default class Utils {
2
- /**
3
- * Calculates a simple hash of the specified string, much like usual Java implementations.
4
- * @param str The string to compute has for
5
- * @return {number}
6
- */
7
- static getStringHash(str: any): number;
8
- /**
9
- * Wraps passed object into new array if it is not array already.
10
- * @param object_or_array An object or array.
11
- * @returns {*} New array containing passed object or passed array.
12
- */
13
- static asArray(object_or_array: any): any;
14
- static findQuestionById(id: any, question: any, reflexive: any, asserted: any, transitive: any): any;
15
- }
1
+ export default class Utils {
2
+ /**
3
+ * Calculates a simple hash of the specified string, much like usual Java implementations.
4
+ * @param str The string to compute has for
5
+ * @return {number}
6
+ */
7
+ static getStringHash(str: any): number;
8
+ /**
9
+ * Wraps passed object into new array if it is not array already.
10
+ * @param object_or_array An object or array.
11
+ * @returns {*} New array containing passed object or passed array.
12
+ */
13
+ static asArray(object_or_array: any): any;
14
+ static findQuestionById(id: any, question: any, reflexive: any, asserted: any, transitive: any): any;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbss-cvut/s-forms",
3
- "version": "0.7.1-beta-b00a1cf.0",
3
+ "version": "0.7.1-beta-c22f5eb.0",
4
4
  "description": "Semantic forms generator and processor",
5
5
  "keywords": [
6
6
  "react",
@@ -50,6 +50,7 @@
50
50
  "date-fns": "^2.13.0",
51
51
  "framer-motion": "^6.2.3",
52
52
  "inputmask-core": "^2.2.0",
53
+ "intelligent-tree-select": "^0.11.1",
53
54
  "javascript-time-ago": "^2.3.8",
54
55
  "jsonld": "^0.4.12",
55
56
  "jsonld-utils": "https://kbss.felk.cvut.cz/dist/jsonld-utils-0.0.11.tgz",
@@ -58,10 +59,8 @@
58
59
  "prop-types": "^15.7.2",
59
60
  "react-bootstrap": "1.0.1",
60
61
  "react-datepicker": "^4.14.1",
61
- "react-intl": "^6.4.4",
62
+ "react-intl": "^6.5.1",
62
63
  "react-loader-spinner": "^5.3.4",
63
- "react-select": "^5.7.3",
64
- "react-window": "^1.8.9",
65
64
  "tsort": "0.0.1",
66
65
  "yasgui-yasqe": "^2.11.22"
67
66
  },
@@ -103,13 +102,13 @@
103
102
  "react-dom": "~18.2.0",
104
103
  "standard-version": "^9.3.2",
105
104
  "style-loader": "^1.2.1",
106
- "typescript": "^4.5.5",
105
+ "typescript": "^5.2.2",
107
106
  "watchify": "^3.11.1"
108
107
  },
109
108
  "scripts": {
110
109
  "test": "jest",
111
110
  "dev": "sb dev -p 6006",
112
- "build": "microbundle --jsx React.createElement --jsxFragment React.Fragment",
111
+ "build": "export NODE_OPTIONS=--max_old_space_size=4096 && microbundle --jsx React.createElement --jsxFragment React.Fragment",
113
112
  "build:lib": "npm run build && npm pack",
114
113
  "build-storybook": "sb build",
115
114
  "chromatic": "npx chromatic",
@@ -1,5 +0,0 @@
1
- export default OptimizedMenuList;
2
- /**
3
- * Uses react-window to optimize menu list in react-select in case it has a lot of options.
4
- */
5
- declare function OptimizedMenuList(props: any): JSX.Element;