@yungu-fed/question-editor 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/dist/index.cjs +3 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5783 -0
- package/dist/model/choice.d.ts +12 -0
- package/dist/model/choice.d.ts.map +1 -0
- package/dist/model/question-element-specs.d.ts +25 -0
- package/dist/model/question-element-specs.d.ts.map +1 -0
- package/dist/model/question-model.d.ts +14 -0
- package/dist/model/question-model.d.ts.map +1 -0
- package/dist/model/question-structure.d.ts +88 -0
- package/dist/model/question-structure.d.ts.map +1 -0
- package/dist/model/rich-text-blank.d.ts +3 -0
- package/dist/model/rich-text-blank.d.ts.map +1 -0
- package/dist/model/rich-text.d.ts +7 -0
- package/dist/model/rich-text.d.ts.map +1 -0
- package/dist/model/types.d.ts +171 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts +95 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +20 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts +16 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -0
- package/dist/question/content-editor/helpers.d.ts +62 -0
- package/dist/question/content-editor/helpers.d.ts.map +1 -0
- package/dist/question/content-editor/i18n.d.ts +8 -0
- package/dist/question/content-editor/i18n.d.ts.map +1 -0
- package/dist/question/content-editor/structure.d.ts +21 -0
- package/dist/question/content-editor/structure.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +7 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
- package/dist/question/content-editor/types.d.ts +178 -0
- package/dist/question/content-editor/types.d.ts.map +1 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts +3 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +1 -0
- package/dist/question/i18n/index.d.ts +3 -0
- package/dist/question/i18n/index.d.ts.map +1 -0
- package/dist/question/i18n/messages.d.ts +62 -0
- package/dist/question/i18n/messages.d.ts.map +1 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts +14 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts +12 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts +15 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts +15 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayer.d.ts +4 -0
- package/dist/question/player/QuestionPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts +16 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerElement.d.ts +15 -0
- package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
- package/dist/question/player/helpers.d.ts +12 -0
- package/dist/question/player/helpers.d.ts.map +1 -0
- package/dist/question/player/types.d.ts +50 -0
- package/dist/question/player/types.d.ts.map +1 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts +12 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -0
- package/dist/question/preview/QuestionPreview.d.ts +14 -0
- package/dist/question/preview/QuestionPreview.d.ts.map +1 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts +10 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts +11 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts +11 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts +8 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +11 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
- package/dist/question/renderers/helpers.d.ts +14 -0
- package/dist/question/renderers/helpers.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextField.d.ts +14 -0
- package/dist/question/rich-text/RichTextField.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +6 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +1 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts +3 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts +2 -0
- package/dist/question/shared/subquestion-numbering.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +14 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts +9 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts +10 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts +13 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts +53 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentEditorTranslator } from "./i18n";
|
|
3
|
+
import type { QuestionContentDraft, QuestionContentSubquestionTemplate } from "./types";
|
|
4
|
+
type QuestionContentSubquestionAddChildDropdownProps = {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
hasAnswer: boolean;
|
|
7
|
+
onAddChild: (child: QuestionContentDraft) => void;
|
|
8
|
+
subquestionTemplates: QuestionContentSubquestionTemplate[];
|
|
9
|
+
translator: QuestionContentEditorTranslator;
|
|
10
|
+
};
|
|
11
|
+
export declare function QuestionContentSubquestionAddChildDropdown({ disabled, hasAnswer, onAddChild, subquestionTemplates, translator, }: Readonly<QuestionContentSubquestionAddChildDropdownProps>): ReactElement;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=QuestionContentSubquestionAddChildDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionContentSubquestionAddChildDropdown.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentSubquestionAddChildDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,oBAAoB,EACpB,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAQjB,KAAK,+CAA+C,GAAG;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClD,oBAAoB,EAAE,kCAAkC,EAAE,CAAC;IAC3D,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,0CAA0C,CAAC,EACzD,QAAQ,EACR,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,UAAU,GACX,EAAE,QAAQ,CAAC,+CAA+C,CAAC,GAAG,YAAY,CA+D1E"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentEditorTranslator } from "./i18n";
|
|
3
|
+
import type { QuestionContentDraft, QuestionContentRichTextControls, QuestionContentSubquestionTemplate } from "./types";
|
|
4
|
+
type QuestionContentSubquestionChildEditorProps = {
|
|
5
|
+
child: QuestionContentDraft;
|
|
6
|
+
childIndex: number;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
hasAnswer: boolean;
|
|
9
|
+
numberPath?: readonly number[];
|
|
10
|
+
onChange: (child: QuestionContentDraft) => void;
|
|
11
|
+
onDelete: () => void;
|
|
12
|
+
onMove: (direction: -1 | 1) => void;
|
|
13
|
+
richTextControls: QuestionContentRichTextControls;
|
|
14
|
+
siblingCount: number;
|
|
15
|
+
subquestionTemplates: QuestionContentSubquestionTemplate[];
|
|
16
|
+
translator: QuestionContentEditorTranslator;
|
|
17
|
+
};
|
|
18
|
+
export declare function QuestionContentSubquestionChildEditor({ child, childIndex, disabled, hasAnswer, numberPath, onChange, onDelete, onMove, richTextControls, siblingCount, subquestionTemplates, translator, }: Readonly<QuestionContentSubquestionChildEditorProps>): ReactElement;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=QuestionContentSubquestionChildEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionContentSubquestionChildEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentSubquestionChildEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,oBAAoB,EACpB,+BAA+B,EAE/B,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAsBjB,KAAK,0CAA0C,GAAG;IAChD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACpC,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,kCAAkC,EAAE,CAAC;IAC3D,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,qCAAqC,CAAC,EACpD,KAAK,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,UAAU,GACX,EAAE,QAAQ,CAAC,0CAA0C,CAAC,GAAG,YAAY,CA2IrE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentEditorTranslator } from "./i18n";
|
|
3
|
+
import type { QuestionContentDraft, QuestionContentRichTextControls, QuestionContentStructure } from "./types";
|
|
4
|
+
type QuestionContentSubquestionChildElementsProps = {
|
|
5
|
+
child: QuestionContentDraft;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onChange: (child: QuestionContentDraft) => void;
|
|
8
|
+
richTextControls: QuestionContentRichTextControls;
|
|
9
|
+
structure: QuestionContentStructure;
|
|
10
|
+
translator: QuestionContentEditorTranslator;
|
|
11
|
+
};
|
|
12
|
+
export declare function QuestionContentSubquestionChildElements({ child, disabled, onChange, richTextControls, structure, translator, }: Readonly<QuestionContentSubquestionChildElementsProps>): ReactElement;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=QuestionContentSubquestionChildElements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionContentSubquestionChildElements.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentSubquestionChildElements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,oBAAoB,EAKpB,+BAA+B,EAC/B,wBAAwB,EAEzB,MAAM,SAAS,CAAC;AAWjB,KAAK,4CAA4C,GAAG;IAClD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,SAAS,EAAE,wBAAwB,CAAC;IACpC,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,uCAAuC,CAAC,EACtD,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,UAAU,GACX,EAAE,QAAQ,CAAC,4CAA4C,CAAC,GAAG,YAAY,CA4EvE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentEditorTranslator } from "./i18n";
|
|
3
|
+
import type { QuestionContentDraft, QuestionContentRichTextControls, QuestionContentSubquestionTemplate } from "./types";
|
|
4
|
+
type QuestionContentSubquestionGroupEditorProps = {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
hasAnswer: boolean;
|
|
7
|
+
item: QuestionContentDraft;
|
|
8
|
+
onChange: (item: QuestionContentDraft) => void;
|
|
9
|
+
richTextControls: QuestionContentRichTextControls;
|
|
10
|
+
subquestionTemplates: QuestionContentSubquestionTemplate[];
|
|
11
|
+
translator: QuestionContentEditorTranslator;
|
|
12
|
+
};
|
|
13
|
+
export declare function QuestionContentSubquestionGroupEditor({ disabled, hasAnswer, item, onChange, richTextControls, subquestionTemplates, translator, }: Readonly<QuestionContentSubquestionGroupEditorProps>): ReactElement;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=QuestionContentSubquestionGroupEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionContentSubquestionGroupEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentSubquestionGroupEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,oBAAoB,EACpB,+BAA+B,EAC/B,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAOjB,KAAK,0CAA0C,GAAG;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,oBAAoB,EAAE,kCAAkC,EAAE,CAAC;IAC3D,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,qCAAqC,CAAC,EACpD,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACX,EAAE,QAAQ,CAAC,0CAA0C,CAAC,GAAG,YAAY,CA4FrE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RichTextEditorApi } from "@yungu-fed/rich-text-editor";
|
|
2
|
+
import type { ReactElement, Ref } from "react";
|
|
3
|
+
import type { QuestionContentRichTextControls, QuestionRichContentValue } from "./types";
|
|
4
|
+
type QuestionRichTextFieldProps = {
|
|
5
|
+
controls: QuestionContentRichTextControls;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
editorRef?: Ref<RichTextEditorApi>;
|
|
8
|
+
label: string;
|
|
9
|
+
onChange: (value: QuestionRichContentValue) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value: QuestionRichContentValue;
|
|
12
|
+
variant?: "compact" | "default";
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionRichTextField({ controls, disabled, editorRef, label, onChange, placeholder, value, variant, }: Readonly<QuestionRichTextFieldProps>): ReactElement;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=QuestionRichTextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionRichTextField.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionRichTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EACV,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAIjB,KAAK,0BAA0B,GAAG;IAChC,QAAQ,EAAE,+BAA+B,CAAC;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,wBAAwB,CAAC;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EACL,OAAmB,GACpB,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,CAiBrD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { RichTextEditorValue } from "@yungu-fed/rich-text-editor";
|
|
2
|
+
import type { QuestionContentCandidateOption, QuestionContentCandidateOptionGroup, QuestionContentBlankGroupItem, QuestionContentDraft, QuestionContentExtraItem, QuestionContentExtraStructureItem, QuestionContentFillTextItem, QuestionContentFillTextStructureElement, QuestionContentItem, QuestionContentJudgeAnswerMode, QuestionContentOptionGroupItem, QuestionContentOptionLabelStyle, QuestionContentSerializedDraft, QuestionContentSerializedExtraItem, QuestionContentSerializedItem, QuestionContentStructure, QuestionContentStructureElement, QuestionFillTextAnswer, QuestionRichBlankAnswerGroup, QuestionRichContentValue, QuestionTableOptions } from "./types";
|
|
3
|
+
export type SharedBlankAnswerGroup = {
|
|
4
|
+
group: QuestionRichBlankAnswerGroup;
|
|
5
|
+
groupIndex: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function isCompositeQuestionContentStructure(structure: QuestionContentStructure): boolean;
|
|
8
|
+
export declare function createEmptyQuestionContentDraft(structure: QuestionContentStructure, questionTypeKey?: null | number): QuestionContentDraft;
|
|
9
|
+
export declare function createRichContentValue(contentText?: string, contentJson?: RichTextEditorValue): QuestionRichContentValue;
|
|
10
|
+
export declare function createRichContentValueFromDocument(document: RichTextEditorValue): QuestionRichContentValue;
|
|
11
|
+
export declare function getRichContentDocument(content: QuestionRichContentValue): RichTextEditorValue;
|
|
12
|
+
export declare function getQuestionContentItem(draft: QuestionContentDraft, element: QuestionContentStructureElement, hasAnswer: boolean): QuestionContentItem;
|
|
13
|
+
export declare function getQuestionContentExtraItem(draft: QuestionContentDraft, extra: QuestionContentExtraStructureItem): QuestionContentExtraItem;
|
|
14
|
+
export declare function getQuestionContentOptionMarker(labelStyle: QuestionContentOptionLabelStyle, index: number): string;
|
|
15
|
+
export declare function getQuestionContentJudgementOptions(mode: QuestionContentJudgeAnswerMode): string[];
|
|
16
|
+
export declare function isQuestionContentDraftEmpty(draft: QuestionContentDraft): boolean;
|
|
17
|
+
export declare function serializeQuestionContentDraft(draft: QuestionContentDraft): QuestionContentSerializedDraft;
|
|
18
|
+
export declare function createQuestionContentDraftFromSerialized(structure: QuestionContentStructure, draft: {
|
|
19
|
+
questionTypeKey?: null | number;
|
|
20
|
+
children?: QuestionContentDraft[];
|
|
21
|
+
elements: (QuestionContentItem | QuestionContentSerializedItem)[];
|
|
22
|
+
extra?: (QuestionContentExtraItem | QuestionContentSerializedExtraItem)[];
|
|
23
|
+
id?: null | string;
|
|
24
|
+
version: string;
|
|
25
|
+
}): QuestionContentDraft;
|
|
26
|
+
export declare function updateQuestionContentItem(draft: QuestionContentDraft, nextItem: QuestionContentItem): QuestionContentDraft;
|
|
27
|
+
export declare function updateQuestionContentExtraItem(draft: QuestionContentDraft, nextItem: QuestionContentExtraItem): QuestionContentDraft;
|
|
28
|
+
export declare function getQuestionContentBlankIdsFromDocument(document: RichTextEditorValue): string[];
|
|
29
|
+
export declare function getNextQuestionContentBlankId(blanks: string[]): string;
|
|
30
|
+
export declare function syncFillTextContent(item: QuestionContentFillTextItem, content: QuestionRichContentValue, hasAnswer: boolean, element: QuestionContentFillTextStructureElement): QuestionContentFillTextItem;
|
|
31
|
+
export declare function normalizeFillTextCandidateState(item: QuestionContentFillTextItem, element: QuestionContentFillTextStructureElement, hasAnswer: boolean): QuestionContentFillTextItem;
|
|
32
|
+
export declare function createQuestionContentCandidateOption(optionId: string, content?: QuestionRichContentValue): QuestionContentCandidateOption;
|
|
33
|
+
export declare function normalizeCandidateOptions(options: QuestionContentCandidateOption[] | undefined, optionIdPrefix?: string, defaultCount?: number): QuestionContentCandidateOption[];
|
|
34
|
+
export declare function normalizeCandidateOptionGroup(group: QuestionContentCandidateOptionGroup | undefined, blankId: string): QuestionContentCandidateOptionGroup;
|
|
35
|
+
export declare function normalizeBlankOptionGroups(groups: QuestionContentCandidateOptionGroup[] | undefined, blanks: string[]): QuestionContentCandidateOptionGroup[];
|
|
36
|
+
export declare function getCandidateAnswerOptionIds(group: QuestionFillTextAnswer | undefined): string[];
|
|
37
|
+
export declare function addBlankToGroup(item: QuestionContentBlankGroupItem): QuestionContentBlankGroupItem;
|
|
38
|
+
export declare function addBlankAnswerGroup(groups: QuestionRichBlankAnswerGroup[], blanks: string[]): QuestionRichBlankAnswerGroup[];
|
|
39
|
+
export declare function addBlankAnswerPool(groups: QuestionRichBlankAnswerGroup[], groupIndex: number): QuestionRichBlankAnswerGroup[];
|
|
40
|
+
export declare function deleteBlankFromGroup(item: QuestionContentBlankGroupItem, blankId: string): QuestionContentBlankGroupItem;
|
|
41
|
+
export declare function deleteBlankAnswerGroup(groups: QuestionRichBlankAnswerGroup[], groupIndex: number): QuestionRichBlankAnswerGroup[];
|
|
42
|
+
export declare function deleteBlankAnswerPool(groups: QuestionRichBlankAnswerGroup[], groupIndex: number, poolIndex: number): QuestionRichBlankAnswerGroup[];
|
|
43
|
+
export declare function normalizeBlankAnswerGroups(groups: QuestionFillTextAnswer[], blanks: string[]): QuestionRichBlankAnswerGroup[];
|
|
44
|
+
export declare function getSharedBlankAnswerGroups(groups: QuestionRichBlankAnswerGroup[]): SharedBlankAnswerGroup[];
|
|
45
|
+
export declare function replaceBlankAnswerGroup(groups: QuestionRichBlankAnswerGroup[], groupIndex: number, nextGroup: QuestionRichBlankAnswerGroup): QuestionRichBlankAnswerGroup[];
|
|
46
|
+
export declare function replaceBlankAnswerPool(groups: QuestionRichBlankAnswerGroup[], groupIndex: number, poolIndex: number, nextPool: QuestionRichContentValue): QuestionRichBlankAnswerGroup[];
|
|
47
|
+
export declare function assignBlankToAnswerGroup(item: QuestionContentBlankGroupItem, blankId: string, groupIndex: number): QuestionContentBlankGroupItem;
|
|
48
|
+
export declare function createBlankAnswerGroupWithBlank(item: QuestionContentBlankGroupItem, blankId: string, targetBlankId: string): QuestionContentBlankGroupItem;
|
|
49
|
+
export declare function detachBlankFromAnswerGroup(item: QuestionContentBlankGroupItem, blankId: string): QuestionContentBlankGroupItem;
|
|
50
|
+
export declare function updateBlankAnswerGroupPools(item: QuestionContentBlankGroupItem, groupIndex: number, answerPools: QuestionRichContentValue[]): QuestionContentBlankGroupItem;
|
|
51
|
+
export declare function addStandardOption(item: QuestionContentOptionGroupItem): QuestionContentOptionGroupItem;
|
|
52
|
+
export declare function replaceStandardOption(options: QuestionRichContentValue[], optionIndex: number, nextOption: QuestionRichContentValue): QuestionRichContentValue[];
|
|
53
|
+
export declare function deleteStandardOption(item: QuestionContentOptionGroupItem, optionIndex: number): QuestionContentOptionGroupItem;
|
|
54
|
+
export declare function toggleAnswerIndex(answer: number[], index: number, selectionType: "multiple" | "single"): number[];
|
|
55
|
+
export declare function addTableColumn(tableOptions: QuestionTableOptions): QuestionTableOptions;
|
|
56
|
+
export declare function deleteTableColumn(tableOptions: QuestionTableOptions, columnIndex: number): QuestionTableOptions;
|
|
57
|
+
export declare function addTableRow(item: QuestionContentOptionGroupItem): QuestionContentOptionGroupItem;
|
|
58
|
+
export declare function deleteTableRow(item: QuestionContentOptionGroupItem, rowIndex: number): QuestionContentOptionGroupItem;
|
|
59
|
+
export declare function replaceTableCell(tableOptions: QuestionTableOptions, rowIndex: number, columnIndex: number, nextCell: QuestionRichContentValue): QuestionTableOptions;
|
|
60
|
+
export declare function replaceTableHeader(tableOptions: QuestionTableOptions, columnIndex: number, nextHeader: QuestionRichContentValue): QuestionTableOptions;
|
|
61
|
+
export declare function getQuestionTableOptions(item: QuestionContentOptionGroupItem): QuestionTableOptions;
|
|
62
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAOvE,OAAO,KAAK,EACV,8BAA8B,EAC9B,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Y,EAAE,oBAAoB,GACjC,oBAAoB,CAKtB;AAED,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,oBAAoB,EAClC,WAAW,EAAE,MAAM,GAClB,oBAAoB,CAWtB;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,8BAA8B,GACnC,8BAA8B,CAahC;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,8BAA8B,EACpC,QAAQ,EAAE,MAAM,GACf,8BAA8B,CAehC;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,oBAAoB,EAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,wBAAwB,GACjC,oBAAoB,CAStB;AAED,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,oBAAoB,EAClC,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,wBAAwB,GACnC,oBAAoB,CAStB;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,8BAA8B,GACnC,oBAAoB,CAEtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { QuestionLocale } from "../i18n";
|
|
2
|
+
type TranslationParams = Record<string, null | number | string | undefined>;
|
|
3
|
+
export type QuestionContentEditorTranslator = {
|
|
4
|
+
t: (key: string, params?: TranslationParams) => string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createQuestionContentEditorTranslator(locale?: QuestionLocale): QuestionContentEditorTranslator;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AA2M5E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,iBAAiB,KAAK,MAAM,CAAC;CACxD,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,MAAM,GAAE,cAAwB,GAC/B,+BAA+B,CAMjC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { QuestionStructureDraft, QuestionStructureElement, QuestionStructureExtra } from "../../model/question-structure";
|
|
2
|
+
import type { QuestionLocale } from "../i18n";
|
|
3
|
+
import type { QuestionContentDraft, QuestionContentSerializedDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "./types";
|
|
4
|
+
export type QuestionStructureDraftChangeKind = "metadata" | "shape";
|
|
5
|
+
export declare function createQuestionContentStructureFromDraft(draft: QuestionStructureDraft, locale?: QuestionLocale): QuestionContentStructure;
|
|
6
|
+
export declare function createQuestionPreviewDraft(questionContent: QuestionContentSerializedDraft | null, contentStructure: QuestionContentStructure | null, subquestionTemplates: readonly QuestionContentSubquestionTemplate[]): QuestionContentDraft | null;
|
|
7
|
+
export declare function serializeQuestionStructureDraft(draft: QuestionStructureDraft): {
|
|
8
|
+
elements: QuestionStructureElement[];
|
|
9
|
+
extra: QuestionStructureExtra[];
|
|
10
|
+
globalConfig: {
|
|
11
|
+
canPrint: boolean;
|
|
12
|
+
hasAnswer: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
enName: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
};
|
|
18
|
+
version: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function getQuestionStructureDraftChangeKind(currentDraft: QuestionStructureDraft, nextDraft: QuestionStructureDraft): QuestionStructureDraftChangeKind;
|
|
21
|
+
//# sourceMappingURL=structure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/structure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EAGtB,wBAAwB,EACxB,sBAAsB,EAEvB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,wBAAwB,EAExB,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAUhB,MAAM,MAAM,gCAAgC,GAAG,UAAU,GAAG,OAAO,CAAA;AAWnE,wBAAgB,uCAAuC,CACrD,KAAK,EAAE,sBAAsB,EAC7B,MAAM,CAAC,EAAE,cAAc,GACtB,wBAAwB,CAkB1B;AAED,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,8BAA8B,GAAG,IAAI,EACtD,gBAAgB,EAAE,wBAAwB,GAAG,IAAI,EACjD,oBAAoB,EAAE,SAAS,kCAAkC,EAAE,GAClE,oBAAoB,GAAG,IAAI,CA6B7B;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,sBAAsB;;;;;;;;;;;;EAO5E;AAED,wBAAgB,mCAAmC,CACjD,YAAY,EAAE,sBAAsB,EACpC,SAAS,EAAE,sBAAsB,GAChC,gCAAgC,CAiBlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "./types";
|
|
2
|
+
export declare function createSubquestionChild(template: QuestionContentSubquestionTemplate, hasAnswer: boolean): QuestionContentDraft;
|
|
3
|
+
export declare function filterSelectableTemplates(templates: QuestionContentSubquestionTemplate[]): QuestionContentSubquestionTemplate[];
|
|
4
|
+
export declare function getEffectiveStructure(structure: QuestionContentStructure, hasAnswer: boolean): QuestionContentStructure;
|
|
5
|
+
export declare function getSelectedTemplateId(selectedQuestionTypeKey: number | null, templates: QuestionContentSubquestionTemplate[]): number | null;
|
|
6
|
+
export declare function moveItem<T>(items: T[], index: number, direction: -1 | 1): T[];
|
|
7
|
+
//# sourceMappingURL=subquestion-group-editor-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subquestion-group-editor-helpers.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/subquestion-group-editor-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAIjB,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,kCAAkC,EAC5C,SAAS,EAAE,OAAO,GACjB,oBAAoB,CAOtB;AAED,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,kCAAkC,EAAE,GAC9C,kCAAkC,EAAE,CAEtC;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,wBAAwB,EACnC,SAAS,EAAE,OAAO,GACjB,wBAAwB,CAK1B;AAED,wBAAgB,qBAAqB,CACnC,uBAAuB,EAAE,MAAM,GAAG,IAAI,EACtC,SAAS,EAAE,kCAAkC,EAAE,GAC9C,MAAM,GAAG,IAAI,CAMf;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAkB7E"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { RichTextEditorPlugin, RichTextEditorValue } from "@yungu-fed/rich-text-editor";
|
|
2
|
+
import type { QuestionStructureExtraKey } from "../../model/question-structure";
|
|
3
|
+
export type QuestionContentElementType = "fill" | "inlineFill" | "judgement" | "choice" | "richText";
|
|
4
|
+
export type QuestionContentCandidateMode = "none" | "perBlankOptions" | "sharedPool";
|
|
5
|
+
export type QuestionContentOptionLabelStyle = "lowerAlpha" | "number" | "upperAlpha";
|
|
6
|
+
export type QuestionContentOptionRenderer = "standard" | "table";
|
|
7
|
+
export type QuestionContentSelectionType = "multiple" | "single";
|
|
8
|
+
export type QuestionContentJudgeAnswerMode = "checkCross" | "correctWrong" | "rightWrong" | "tf" | "validInvalid" | "yesNo";
|
|
9
|
+
export type QuestionContentStructureElementBase = {
|
|
10
|
+
elementKey: string;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
export type QuestionContentRichTextStructureElement = QuestionContentStructureElementBase & {
|
|
14
|
+
config: Record<string, never>;
|
|
15
|
+
type: "richText";
|
|
16
|
+
};
|
|
17
|
+
export type QuestionContentFillTextStructureElement = QuestionContentStructureElementBase & {
|
|
18
|
+
config: {
|
|
19
|
+
allowCandidateReuse: boolean;
|
|
20
|
+
candidateMode: QuestionContentCandidateMode;
|
|
21
|
+
};
|
|
22
|
+
type: "inlineFill";
|
|
23
|
+
};
|
|
24
|
+
export type QuestionContentBlankGroupStructureElement = QuestionContentStructureElementBase & {
|
|
25
|
+
config: Record<string, never>;
|
|
26
|
+
type: "fill";
|
|
27
|
+
};
|
|
28
|
+
export type QuestionContentOptionGroupStructureElement = QuestionContentStructureElementBase & {
|
|
29
|
+
config: {
|
|
30
|
+
optionLabelStyle: QuestionContentOptionLabelStyle;
|
|
31
|
+
renderer: QuestionContentOptionRenderer;
|
|
32
|
+
selectionType: QuestionContentSelectionType;
|
|
33
|
+
};
|
|
34
|
+
type: "choice";
|
|
35
|
+
};
|
|
36
|
+
export type QuestionContentJudgementGroupStructureElement = QuestionContentStructureElementBase & {
|
|
37
|
+
config: {
|
|
38
|
+
judgeAnswerMode: QuestionContentJudgeAnswerMode;
|
|
39
|
+
};
|
|
40
|
+
type: "judgement";
|
|
41
|
+
};
|
|
42
|
+
export type QuestionContentStructureElement = QuestionContentBlankGroupStructureElement | QuestionContentFillTextStructureElement | QuestionContentJudgementGroupStructureElement | QuestionContentOptionGroupStructureElement | QuestionContentRichTextStructureElement;
|
|
43
|
+
export type QuestionContentStructure = {
|
|
44
|
+
elements: QuestionContentStructureElement[];
|
|
45
|
+
extra: QuestionContentExtraStructureItem[];
|
|
46
|
+
hasAnswer: boolean;
|
|
47
|
+
systemQuestionType: string;
|
|
48
|
+
};
|
|
49
|
+
export type QuestionContentRichTextControls = {
|
|
50
|
+
plugins: RichTextEditorPlugin[];
|
|
51
|
+
};
|
|
52
|
+
export type QuestionRichContentValue = {
|
|
53
|
+
contentHtml: string;
|
|
54
|
+
contentJson: RichTextEditorValue;
|
|
55
|
+
contentText: string;
|
|
56
|
+
};
|
|
57
|
+
export type QuestionContentExtraStructureItem = {
|
|
58
|
+
extraKey: string;
|
|
59
|
+
name: string;
|
|
60
|
+
type: QuestionStructureExtraKey;
|
|
61
|
+
};
|
|
62
|
+
export type QuestionContentRichTextItem = {
|
|
63
|
+
content: QuestionRichContentValue;
|
|
64
|
+
elementKey: string;
|
|
65
|
+
type: "richText";
|
|
66
|
+
};
|
|
67
|
+
export type QuestionContentExtraItem = {
|
|
68
|
+
content: QuestionRichContentValue;
|
|
69
|
+
extraKey: string;
|
|
70
|
+
type: QuestionStructureExtraKey;
|
|
71
|
+
};
|
|
72
|
+
export type QuestionRichBlankAnswerGroup = {
|
|
73
|
+
answerPools: QuestionRichContentValue[];
|
|
74
|
+
blankIds: string[];
|
|
75
|
+
};
|
|
76
|
+
export type QuestionSharedCandidateAnswerGroup = {
|
|
77
|
+
answerOptionIds: string[];
|
|
78
|
+
blankIds: string[];
|
|
79
|
+
};
|
|
80
|
+
export type QuestionPerBlankOptionAnswer = {
|
|
81
|
+
answerOptionId: string;
|
|
82
|
+
blankId: string;
|
|
83
|
+
};
|
|
84
|
+
export type QuestionFillTextAnswer = QuestionPerBlankOptionAnswer | QuestionRichBlankAnswerGroup | QuestionSharedCandidateAnswerGroup;
|
|
85
|
+
export type QuestionContentBlankGroupItem = {
|
|
86
|
+
answer: QuestionRichBlankAnswerGroup[];
|
|
87
|
+
blanks: string[];
|
|
88
|
+
elementKey: string;
|
|
89
|
+
type: "fill";
|
|
90
|
+
};
|
|
91
|
+
export type QuestionContentCandidateOption = {
|
|
92
|
+
content: QuestionRichContentValue;
|
|
93
|
+
optionId: string;
|
|
94
|
+
};
|
|
95
|
+
export type QuestionContentCandidateOptionGroup = {
|
|
96
|
+
blankId: string;
|
|
97
|
+
options: QuestionContentCandidateOption[];
|
|
98
|
+
};
|
|
99
|
+
export type QuestionContentFillTextItem = {
|
|
100
|
+
answer: QuestionFillTextAnswer[];
|
|
101
|
+
blankOptionGroups?: QuestionContentCandidateOptionGroup[];
|
|
102
|
+
blanks: string[];
|
|
103
|
+
candidateOptions?: QuestionContentCandidateOption[];
|
|
104
|
+
content: QuestionRichContentValue;
|
|
105
|
+
elementKey: string;
|
|
106
|
+
type: "inlineFill";
|
|
107
|
+
};
|
|
108
|
+
export type QuestionTableOptions = {
|
|
109
|
+
data: QuestionRichContentValue[][];
|
|
110
|
+
headers: QuestionRichContentValue[];
|
|
111
|
+
};
|
|
112
|
+
export type QuestionContentOptionGroupItem = {
|
|
113
|
+
answer: number[];
|
|
114
|
+
elementKey: string;
|
|
115
|
+
options?: QuestionRichContentValue[];
|
|
116
|
+
tableOptions?: QuestionTableOptions;
|
|
117
|
+
type: "choice";
|
|
118
|
+
};
|
|
119
|
+
export type QuestionContentJudgementGroupItem = {
|
|
120
|
+
answer: string[];
|
|
121
|
+
elementKey: string;
|
|
122
|
+
type: "judgement";
|
|
123
|
+
};
|
|
124
|
+
export type QuestionContentItem = QuestionContentBlankGroupItem | QuestionContentFillTextItem | QuestionContentJudgementGroupItem | QuestionContentOptionGroupItem | QuestionContentRichTextItem;
|
|
125
|
+
export type QuestionContentDraft = {
|
|
126
|
+
questionTypeKey: null | number;
|
|
127
|
+
children: QuestionContentDraft[];
|
|
128
|
+
elements: QuestionContentItem[];
|
|
129
|
+
extra: QuestionContentExtraItem[];
|
|
130
|
+
id: null | string;
|
|
131
|
+
version: string;
|
|
132
|
+
};
|
|
133
|
+
export type QuestionContentSerializedRichTextItem = {
|
|
134
|
+
content: QuestionRichContentValue;
|
|
135
|
+
type: "richText";
|
|
136
|
+
};
|
|
137
|
+
export type QuestionContentSerializedBlankGroupItem = {
|
|
138
|
+
answer: QuestionRichBlankAnswerGroup[];
|
|
139
|
+
blanks: string[];
|
|
140
|
+
type: "fill";
|
|
141
|
+
};
|
|
142
|
+
export type QuestionContentSerializedFillTextItem = {
|
|
143
|
+
answer: QuestionFillTextAnswer[];
|
|
144
|
+
blankOptionGroups?: QuestionContentCandidateOptionGroup[];
|
|
145
|
+
blanks: string[];
|
|
146
|
+
candidateOptions?: QuestionContentCandidateOption[];
|
|
147
|
+
content: QuestionRichContentValue;
|
|
148
|
+
type: "inlineFill";
|
|
149
|
+
};
|
|
150
|
+
export type QuestionContentSerializedOptionGroupItem = {
|
|
151
|
+
answer: number[];
|
|
152
|
+
options?: QuestionRichContentValue[];
|
|
153
|
+
tableOptions?: QuestionTableOptions;
|
|
154
|
+
type: "choice";
|
|
155
|
+
};
|
|
156
|
+
export type QuestionContentSerializedJudgementGroupItem = {
|
|
157
|
+
answer: string[];
|
|
158
|
+
type: "judgement";
|
|
159
|
+
};
|
|
160
|
+
export type QuestionContentSerializedItem = QuestionContentSerializedBlankGroupItem | QuestionContentSerializedFillTextItem | QuestionContentSerializedJudgementGroupItem | QuestionContentSerializedOptionGroupItem | QuestionContentSerializedRichTextItem;
|
|
161
|
+
export type QuestionContentSerializedExtraItem = {
|
|
162
|
+
content: QuestionRichContentValue;
|
|
163
|
+
type: QuestionStructureExtraKey;
|
|
164
|
+
};
|
|
165
|
+
export type QuestionContentSerializedDraft = {
|
|
166
|
+
questionTypeKey: null | number;
|
|
167
|
+
children: QuestionContentSerializedDraft[];
|
|
168
|
+
elements: QuestionContentSerializedItem[];
|
|
169
|
+
extra: QuestionContentSerializedExtraItem[];
|
|
170
|
+
id: null | string;
|
|
171
|
+
version: string;
|
|
172
|
+
};
|
|
173
|
+
export type QuestionContentSubquestionTemplate = {
|
|
174
|
+
questionTypeKey: number;
|
|
175
|
+
label: string;
|
|
176
|
+
structure: QuestionContentStructure;
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0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/question/elements/fill/inline-fill-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAIvE,eAAO,MAAM,qBAAqB,EAAE,oBA6DnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/question/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GACpB,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type QuestionLocale = "en-US" | "zh-CN";
|
|
2
|
+
export type QuestionMessages = {
|
|
3
|
+
readonly addBlank: string;
|
|
4
|
+
readonly addElement: string;
|
|
5
|
+
readonly addOption: string;
|
|
6
|
+
readonly addSubquestion: string;
|
|
7
|
+
readonly addTableColumn: string;
|
|
8
|
+
readonly answer: string;
|
|
9
|
+
readonly answerGroup: string;
|
|
10
|
+
readonly answerSettings: string;
|
|
11
|
+
readonly blankAnswer: string;
|
|
12
|
+
readonly blankLabel: string;
|
|
13
|
+
readonly cancel: string;
|
|
14
|
+
readonly allowReuse: string;
|
|
15
|
+
readonly candidateMode: string;
|
|
16
|
+
readonly candidateOptions: string;
|
|
17
|
+
readonly choiceRenderer: string;
|
|
18
|
+
readonly choiceSelectionType: string;
|
|
19
|
+
readonly confirm: string;
|
|
20
|
+
readonly createAnswerGroup: string;
|
|
21
|
+
readonly detachBlank: string;
|
|
22
|
+
readonly dragElement: string;
|
|
23
|
+
readonly dragSort: string;
|
|
24
|
+
readonly elementName: string;
|
|
25
|
+
readonly elementPalette: string;
|
|
26
|
+
readonly explanation: string;
|
|
27
|
+
readonly falseLabel: string;
|
|
28
|
+
readonly inspector: string;
|
|
29
|
+
readonly judgementMode: string;
|
|
30
|
+
readonly multipleChoice: string;
|
|
31
|
+
readonly noCandidates: string;
|
|
32
|
+
readonly option: string;
|
|
33
|
+
readonly optionGroups: string;
|
|
34
|
+
readonly optionLabelStyle: string;
|
|
35
|
+
readonly questionArrangement: string;
|
|
36
|
+
readonly questionContent: string;
|
|
37
|
+
readonly questionElement: string;
|
|
38
|
+
readonly questionText: string;
|
|
39
|
+
readonly questionType: string;
|
|
40
|
+
readonly questionTypeName: string;
|
|
41
|
+
readonly removeElement: string;
|
|
42
|
+
readonly removeTableColumn: string;
|
|
43
|
+
readonly singleChoice: string;
|
|
44
|
+
readonly selectBlank: string;
|
|
45
|
+
readonly sharedAnswerPool: string;
|
|
46
|
+
readonly standardAnswer: string;
|
|
47
|
+
readonly standardRenderer: string;
|
|
48
|
+
readonly subquestion: string;
|
|
49
|
+
readonly subquestionContent: string;
|
|
50
|
+
readonly subquestionStructure: string;
|
|
51
|
+
readonly tableColumn: string;
|
|
52
|
+
readonly tableRenderer: string;
|
|
53
|
+
readonly trueLabel: string;
|
|
54
|
+
readonly userAnswer: string;
|
|
55
|
+
readonly wholeQuestion: string;
|
|
56
|
+
readonly moveDown: string;
|
|
57
|
+
readonly moveUp: string;
|
|
58
|
+
readonly missingSubquestionTemplate: string;
|
|
59
|
+
readonly previewEmpty: string;
|
|
60
|
+
};
|
|
61
|
+
export declare function getQuestionMessages(locale?: QuestionLocale): QuestionMessages;
|
|
62
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/question/i18n/messages.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC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@@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentBlankGroupItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
5
|
+
export type QuestionBlankGroupPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentBlankGroupItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerResponse;
|
|
11
|
+
showAnswer: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function QuestionBlankGroupPlayer({ disabled, item, messages, onChange, response, showAnswer, }: Readonly<QuestionBlankGroupPlayerProps>): ReactElement;
|
|
14
|
+
//# sourceMappingURL=QuestionBlankGroupPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionBlankGroupPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionBlankGroupPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AASjB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,6BAA6B,CAAC;IACpC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CAwDxD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentCandidateOption } from "../content-editor/types";
|
|
3
|
+
import type { QuestionPlayerFillTextAnswer } from "./types";
|
|
4
|
+
export type QuestionFillTextCandidateButtonProps = {
|
|
5
|
+
answer: QuestionPlayerFillTextAnswer | undefined;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onChange: (answer: QuestionPlayerFillTextAnswer) => void;
|
|
8
|
+
option: QuestionContentCandidateOption;
|
|
9
|
+
selectionType: "multiple" | "single";
|
|
10
|
+
};
|
|
11
|
+
export declare function QuestionFillTextCandidateButton({ answer, disabled, onChange, option, selectionType, }: Readonly<QuestionFillTextCandidateButtonProps>): ReactElement;
|
|
12
|
+
//# sourceMappingURL=QuestionFillTextCandidateButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionFillTextCandidateButton.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionFillTextCandidateButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAQ5D,MAAM,MAAM,oCAAoC,GAAG;IACjD,MAAM,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACzD,MAAM,EAAE,8BAA8B,CAAC;IACvC,aAAa,EAAE,UAAU,GAAG,QAAQ,CAAC;CACtC,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAC9C,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,aAAa,GACd,EAAE,QAAQ,CAAC,oCAAoC,CAAC,GAAG,YAAY,CAwB/D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerFillTextAnswer } from "./types";
|
|
5
|
+
type QuestionFillTextContentPlayerProps = {
|
|
6
|
+
answers: Record<string, QuestionPlayerFillTextAnswer>;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
item: QuestionContentFillTextItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onAnswerChange: (blankId: string, answer: QuestionPlayerFillTextAnswer) => void;
|
|
11
|
+
structure: QuestionContentFillTextStructureElement;
|
|
12
|
+
};
|
|
13
|
+
export declare function QuestionFillTextContentPlayer({ answers, disabled, item, messages, onAnswerChange, structure, }: Readonly<QuestionFillTextContentPlayerProps>): ReactElement;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=QuestionFillTextContentPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionFillTextContentPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionFillTextContentPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAGV,2BAA2B,EAC3B,uCAAuC,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAM5D,KAAK,kCAAkC,GAAG;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,cAAc,EAAE,CACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,4BAA4B,KACjC,IAAI,CAAC;IACV,SAAS,EAAE,uCAAuC,CAAC;CACpD,CAAC;AAWF,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,SAAS,GACV,EAAE,QAAQ,CAAC,kCAAkC,CAAC,GAAG,YAAY,CAgB7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
5
|
+
export type QuestionFillTextPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
element: QuestionContentFillTextStructureElement;
|
|
8
|
+
item: QuestionContentFillTextItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onChange: (item: QuestionPlayerResponseItem) => void;
|
|
11
|
+
response: QuestionPlayerResponse;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionFillTextPlayer({ disabled, element, item, messages, onChange, response, showAnswer, }: Readonly<QuestionFillTextPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionFillTextPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionFillTextPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionFillTextPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAGV,2BAA2B,EAC3B,uCAAuC,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAEV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAcjB,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,uCAAuC,CAAC;IACjD,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAiEtD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentJudgementGroupItem, QuestionContentJudgementGroupStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerResponse, QuestionPlayerResponseItem } from "./types";
|
|
5
|
+
export type QuestionJudgementGroupPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
element: QuestionContentJudgementGroupStructureElement;
|
|
8
|
+
item: QuestionContentJudgementGroupItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onChange: (item: QuestionPlayerResponseItem) => void;
|
|
11
|
+
response: QuestionPlayerResponse;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionJudgementGroupPlayer({ disabled, element, item, messages, onChange, response, showAnswer, }: Readonly<QuestionJudgementGroupPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionJudgementGroupPlayer.d.ts.map
|