@yungu-fed/question-editor 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11339 -0
- package/dist/index.mjs +8839 -0
- package/dist/model/choice.d.ts +14 -0
- package/dist/model/choice.d.ts.map +1 -0
- package/dist/model/classification.d.ts +8 -0
- package/dist/model/classification.d.ts.map +1 -0
- package/dist/model/line-connect.d.ts +25 -0
- package/dist/model/line-connect.d.ts.map +1 -0
- package/dist/model/matching.d.ts +24 -0
- package/dist/model/matching.d.ts.map +1 -0
- package/dist/model/question-content-id.d.ts +3 -0
- package/dist/model/question-content-id.d.ts.map +1 -0
- package/dist/model/question-structure.d.ts +147 -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 +12 -0
- package/dist/model/rich-text.d.ts.map +1 -0
- package/dist/model/text-marker.d.ts +18 -0
- package/dist/model/text-marker.d.ts.map +1 -0
- package/dist/model/types.d.ts +29 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/package.json +3 -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/QuestionContentClassificationEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts +16 -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 +18 -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/QuestionContentLineConnectEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentMatchingEditor.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/QuestionContentOrderingEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentOrderingEditor.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/QuestionContentTextMarkerEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentWordBuilderEditor.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 +111 -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/question-content-contract.d.ts +3 -0
- package/dist/question/content-editor/question-content-contract.d.ts.map +1 -0
- package/dist/question/content-editor/question-type-template.d.ts +7 -0
- package/dist/question/content-editor/question-type-template.d.ts.map +1 -0
- package/dist/question/content-editor/structure.d.ts +22 -0
- package/dist/question/content-editor/structure.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-editable-children.d.ts +9 -0
- package/dist/question/content-editor/subquestion-editable-children.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +6 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
- package/dist/question/content-editor/types.d.ts +253 -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/elements/text-marker/text-marker-plugin.d.ts +3 -0
- package/dist/question/elements/text-marker/text-marker-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 +68 -0
- package/dist/question/i18n/messages.d.ts.map +1 -0
- package/dist/question/line-connect/lineConnectLines.d.ts +37 -0
- package/dist/question/line-connect/lineConnectLines.d.ts.map +1 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionClassificationPlayer.d.ts +15 -0
- package/dist/question/player/QuestionClassificationPlayer.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 +16 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +16 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionLineConnectPlayer.d.ts +15 -0
- package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionMatchingPlayer.d.ts +15 -0
- package/dist/question/player/QuestionMatchingPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts +16 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOrderingPlayer.d.ts +15 -0
- package/dist/question/player/QuestionOrderingPlayer.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 +15 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerElement.d.ts +19 -0
- package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts +15 -0
- package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionTextResponsePlayer.d.ts +16 -0
- package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts +16 -0
- package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +1 -0
- package/dist/question/player/helpers.d.ts +26 -0
- package/dist/question/player/helpers.d.ts.map +1 -0
- package/dist/question/player/response-contract.d.ts +8 -0
- package/dist/question/player/response-contract.d.ts.map +1 -0
- package/dist/question/player/types.d.ts +70 -0
- package/dist/question/player/types.d.ts.map +1 -0
- package/dist/question/player/view-response-types.d.ts +61 -0
- package/dist/question/player/view-response-types.d.ts.map +1 -0
- package/dist/question/presentation-contract.d.ts +20 -0
- package/dist/question/presentation-contract.d.ts.map +1 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts +11 -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/QuestionClassificationView.d.ts +10 -0
- package/dist/question/renderers/QuestionClassificationView.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/QuestionLineConnectView.d.ts +10 -0
- package/dist/question/renderers/QuestionLineConnectView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionMatchingView.d.ts +10 -0
- package/dist/question/renderers/QuestionMatchingView.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/QuestionOrderingView.d.ts +10 -0
- package/dist/question/renderers/QuestionOrderingView.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/QuestionRichContentWithBlankView.d.ts +14 -0
- package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionSectionTitle.d.ts +6 -0
- package/dist/question/renderers/QuestionSectionTitle.d.ts.map +1 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +15 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts +12 -0
- package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +1 -0
- package/dist/question/renderers/QuestionTextMarkerView.d.ts +10 -0
- package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionWordBuilderView.d.ts +11 -0
- package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +1 -0
- package/dist/question/renderers/classificationAnswers.d.ts +4 -0
- package/dist/question/renderers/classificationAnswers.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/renderers/lineConnectAnswers.d.ts +4 -0
- package/dist/question/renderers/lineConnectAnswers.d.ts.map +1 -0
- package/dist/question/renderers/matchingAnswers.d.ts +4 -0
- package/dist/question/renderers/matchingAnswers.d.ts.map +1 -0
- package/dist/question/renderers/optionGroupAnswers.d.ts +4 -0
- package/dist/question/renderers/optionGroupAnswers.d.ts.map +1 -0
- package/dist/question/renderers/orderingAnswerGroups.d.ts +4 -0
- package/dist/question/renderers/orderingAnswerGroups.d.ts.map +1 -0
- package/dist/question/renderers/wordBuilderAnswers.d.ts +4 -0
- package/dist/question/renderers/wordBuilderAnswers.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextField.d.ts +23 -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/QuestionTextResponsePlaceholder.d.ts +6 -0
- package/dist/question/shared/QuestionTextResponsePlaceholder.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 +16 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts +75 -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 +15 -15
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import type { RichTextEditorPlugin, RichTextEditorRootProps, RichTextEditorValue } from "@yungu-fed/rich-text-editor";
|
|
2
|
+
import type { QuestionStructureExtraType } from "../../model/question-structure";
|
|
3
|
+
import type { ChoiceAnswers, ChoiceColumn, ChoiceOption } from "../../model/types";
|
|
4
|
+
export type QuestionContentElementType = "classification" | "fill" | "inlineFill" | "judgement" | "lineConnect" | "matching" | "ordering" | "choice" | "richText" | "textMarker" | "textResponse" | "wordBuilder";
|
|
5
|
+
export type QuestionContentCandidateMode = "none" | "perBlankOptions" | "sharedPool";
|
|
6
|
+
export type QuestionContentOptionLabelStyle = "lowerAlpha" | "number" | "upperAlpha";
|
|
7
|
+
export type QuestionContentLineConnectLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha";
|
|
8
|
+
export type QuestionContentOptionRenderer = "standard" | "table";
|
|
9
|
+
export type QuestionContentSelectionType = "multiple" | "single";
|
|
10
|
+
export type QuestionContentWordBuilderMode = "sentence" | "spelling";
|
|
11
|
+
export type QuestionContentJudgeAnswerMode = "checkCross" | "correctWrong" | "rightWrong" | "tf" | "validInvalid" | "yesNo";
|
|
12
|
+
export type QuestionContentStructureElementBase = {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
export type QuestionContentRichTextStructureElement = QuestionContentStructureElementBase & {
|
|
16
|
+
config: Record<string, never>;
|
|
17
|
+
type: "richText";
|
|
18
|
+
};
|
|
19
|
+
export type QuestionContentFillTextStructureElement = QuestionContentStructureElementBase & {
|
|
20
|
+
config: {
|
|
21
|
+
allowCandidateReuse: boolean;
|
|
22
|
+
candidateMode: QuestionContentCandidateMode;
|
|
23
|
+
};
|
|
24
|
+
type: "inlineFill";
|
|
25
|
+
};
|
|
26
|
+
export type QuestionContentWordBuilderStructureElement = QuestionContentStructureElementBase & {
|
|
27
|
+
config: {
|
|
28
|
+
builderMode: QuestionContentWordBuilderMode;
|
|
29
|
+
};
|
|
30
|
+
type: "wordBuilder";
|
|
31
|
+
};
|
|
32
|
+
export type QuestionContentBlankGroupStructureElement = QuestionContentStructureElementBase & {
|
|
33
|
+
config: Record<string, never>;
|
|
34
|
+
type: "fill";
|
|
35
|
+
};
|
|
36
|
+
export type QuestionContentOptionGroupStructureElement = QuestionContentStructureElementBase & {
|
|
37
|
+
config: {
|
|
38
|
+
optionLabelStyle: QuestionContentOptionLabelStyle;
|
|
39
|
+
renderer: QuestionContentOptionRenderer;
|
|
40
|
+
selectionType: QuestionContentSelectionType;
|
|
41
|
+
};
|
|
42
|
+
type: "choice";
|
|
43
|
+
};
|
|
44
|
+
export type QuestionContentJudgementGroupStructureElement = QuestionContentStructureElementBase & {
|
|
45
|
+
config: {
|
|
46
|
+
judgeAnswerMode: QuestionContentJudgeAnswerMode;
|
|
47
|
+
};
|
|
48
|
+
type: "judgement";
|
|
49
|
+
};
|
|
50
|
+
export type QuestionContentClassificationStructureElement = QuestionContentStructureElementBase & {
|
|
51
|
+
config: Record<string, never>;
|
|
52
|
+
type: "classification";
|
|
53
|
+
};
|
|
54
|
+
export type QuestionContentLineConnectColumnConfig = {
|
|
55
|
+
labelStyle: QuestionContentLineConnectLabelStyle;
|
|
56
|
+
};
|
|
57
|
+
export type QuestionContentLineConnectStructureElement = QuestionContentStructureElementBase & {
|
|
58
|
+
config: {
|
|
59
|
+
columns: QuestionContentLineConnectColumnConfig[];
|
|
60
|
+
};
|
|
61
|
+
type: "lineConnect";
|
|
62
|
+
};
|
|
63
|
+
export type QuestionContentMatchingColumnConfig = {
|
|
64
|
+
labelStyle: QuestionContentLineConnectLabelStyle;
|
|
65
|
+
};
|
|
66
|
+
export type QuestionContentMatchingStructureElement = QuestionContentStructureElementBase & {
|
|
67
|
+
config: {
|
|
68
|
+
columns: QuestionContentMatchingColumnConfig[];
|
|
69
|
+
};
|
|
70
|
+
type: "matching";
|
|
71
|
+
};
|
|
72
|
+
export type QuestionContentTextMarkerStructureElement = QuestionContentStructureElementBase & {
|
|
73
|
+
config: Record<string, never>;
|
|
74
|
+
type: "textMarker";
|
|
75
|
+
};
|
|
76
|
+
export type QuestionContentTextResponseStructureElement = QuestionContentStructureElementBase & {
|
|
77
|
+
config: Record<string, never>;
|
|
78
|
+
type: "textResponse";
|
|
79
|
+
};
|
|
80
|
+
export type QuestionContentOrderingStructureElement = QuestionContentStructureElementBase & {
|
|
81
|
+
config: Record<string, never>;
|
|
82
|
+
type: "ordering";
|
|
83
|
+
};
|
|
84
|
+
export type QuestionContentStructureElement = QuestionContentBlankGroupStructureElement | QuestionContentClassificationStructureElement | QuestionContentFillTextStructureElement | QuestionContentJudgementGroupStructureElement | QuestionContentLineConnectStructureElement | QuestionContentMatchingStructureElement | QuestionContentOrderingStructureElement | QuestionContentOptionGroupStructureElement | QuestionContentRichTextStructureElement | QuestionContentTextMarkerStructureElement | QuestionContentTextResponseStructureElement | QuestionContentWordBuilderStructureElement;
|
|
85
|
+
export type QuestionContentStructure = {
|
|
86
|
+
elements: QuestionContentStructureElement[];
|
|
87
|
+
extras: QuestionContentExtraStructureItem[];
|
|
88
|
+
hasAnswer: boolean;
|
|
89
|
+
readonly isComposite: boolean;
|
|
90
|
+
};
|
|
91
|
+
export type QuestionContentRichTextControls = {
|
|
92
|
+
plugins: RichTextEditorPlugin[];
|
|
93
|
+
uploadImage?: RichTextEditorRootProps["uploadImage"];
|
|
94
|
+
};
|
|
95
|
+
export type QuestionRichContentValue = {
|
|
96
|
+
html: string;
|
|
97
|
+
json: RichTextEditorValue;
|
|
98
|
+
text: string;
|
|
99
|
+
};
|
|
100
|
+
export type QuestionContentExtraStructureItem = {
|
|
101
|
+
name: string;
|
|
102
|
+
type: QuestionStructureExtraType;
|
|
103
|
+
};
|
|
104
|
+
export type QuestionContentRichTextItem = {
|
|
105
|
+
content: QuestionRichContentValue;
|
|
106
|
+
type: "richText";
|
|
107
|
+
};
|
|
108
|
+
export type QuestionContentTextResponseItem = {
|
|
109
|
+
readonly type: "textResponse";
|
|
110
|
+
};
|
|
111
|
+
export type QuestionContentExtraItem = {
|
|
112
|
+
content: QuestionRichContentValue;
|
|
113
|
+
type: QuestionStructureExtraType;
|
|
114
|
+
};
|
|
115
|
+
export type QuestionRichBlankAnswerGroup = {
|
|
116
|
+
answerPools: QuestionRichContentValue[];
|
|
117
|
+
blankIds: string[];
|
|
118
|
+
};
|
|
119
|
+
export type QuestionSharedCandidateAnswerGroup = {
|
|
120
|
+
answerOptionIds: string[];
|
|
121
|
+
blankIds: string[];
|
|
122
|
+
};
|
|
123
|
+
export type QuestionPerBlankOptionAnswer = {
|
|
124
|
+
answerOptionId: string;
|
|
125
|
+
blankId: string;
|
|
126
|
+
};
|
|
127
|
+
export type QuestionFillTextAnswer = QuestionPerBlankOptionAnswer | QuestionRichBlankAnswerGroup | QuestionSharedCandidateAnswerGroup;
|
|
128
|
+
export type QuestionContentBlankGroupItem = {
|
|
129
|
+
answers: QuestionRichBlankAnswerGroup[];
|
|
130
|
+
blanks: string[];
|
|
131
|
+
type: "fill";
|
|
132
|
+
};
|
|
133
|
+
export type QuestionContentCandidateOption = {
|
|
134
|
+
content: QuestionRichContentValue;
|
|
135
|
+
optionId: string;
|
|
136
|
+
};
|
|
137
|
+
export type QuestionContentCandidateOptionGroup = {
|
|
138
|
+
blankId: string;
|
|
139
|
+
options: QuestionContentCandidateOption[];
|
|
140
|
+
};
|
|
141
|
+
export type QuestionContentFillTextItem = {
|
|
142
|
+
answers: QuestionFillTextAnswer[];
|
|
143
|
+
blankOptionGroups?: QuestionContentCandidateOptionGroup[];
|
|
144
|
+
blanks: string[];
|
|
145
|
+
candidateOptions?: QuestionContentCandidateOption[];
|
|
146
|
+
content: QuestionRichContentValue;
|
|
147
|
+
type: "inlineFill";
|
|
148
|
+
};
|
|
149
|
+
export type QuestionContentWordBuilderItem = {
|
|
150
|
+
answers: Record<string, string>;
|
|
151
|
+
blanks: string[];
|
|
152
|
+
candidateOptions: string[];
|
|
153
|
+
content: QuestionRichContentValue;
|
|
154
|
+
type: "wordBuilder";
|
|
155
|
+
};
|
|
156
|
+
export type QuestionContentOptionGroupItem = {
|
|
157
|
+
answers: ChoiceAnswers;
|
|
158
|
+
columns: readonly ChoiceColumn[];
|
|
159
|
+
options: readonly ChoiceOption[];
|
|
160
|
+
type: "choice";
|
|
161
|
+
};
|
|
162
|
+
export type QuestionJudgementValues = readonly [] | readonly [boolean];
|
|
163
|
+
export type QuestionContentJudgementGroupItem = {
|
|
164
|
+
answers: QuestionJudgementValues;
|
|
165
|
+
type: "judgement";
|
|
166
|
+
};
|
|
167
|
+
export type QuestionContentClassificationCategory = {
|
|
168
|
+
content: QuestionRichContentValue;
|
|
169
|
+
id: string;
|
|
170
|
+
};
|
|
171
|
+
export type QuestionContentClassificationCard = {
|
|
172
|
+
content: QuestionRichContentValue;
|
|
173
|
+
id: string;
|
|
174
|
+
};
|
|
175
|
+
export type QuestionContentClassificationAnswer = Record<string, string>;
|
|
176
|
+
export type QuestionContentClassificationItem = {
|
|
177
|
+
answers: QuestionContentClassificationAnswer;
|
|
178
|
+
categories: QuestionContentClassificationCategory[];
|
|
179
|
+
items: QuestionContentClassificationCard[];
|
|
180
|
+
type: "classification";
|
|
181
|
+
};
|
|
182
|
+
export type QuestionContentLineConnectColumnItem = {
|
|
183
|
+
content: QuestionRichContentValue;
|
|
184
|
+
itemId: string;
|
|
185
|
+
};
|
|
186
|
+
export type QuestionContentLineConnectColumn = {
|
|
187
|
+
columnId: string;
|
|
188
|
+
items: QuestionContentLineConnectColumnItem[];
|
|
189
|
+
labelStyle: QuestionContentLineConnectLabelStyle;
|
|
190
|
+
};
|
|
191
|
+
export type QuestionContentLineConnectAnswer = Record<string, string[]>;
|
|
192
|
+
export type QuestionContentLineConnectItem = {
|
|
193
|
+
answers: QuestionContentLineConnectAnswer;
|
|
194
|
+
columns: QuestionContentLineConnectColumn[];
|
|
195
|
+
type: "lineConnect";
|
|
196
|
+
};
|
|
197
|
+
export type QuestionContentMatchingColumnItem = {
|
|
198
|
+
content: QuestionRichContentValue;
|
|
199
|
+
itemId: string;
|
|
200
|
+
};
|
|
201
|
+
export type QuestionContentMatchingColumn = {
|
|
202
|
+
columnId: string;
|
|
203
|
+
items: QuestionContentMatchingColumnItem[];
|
|
204
|
+
labelStyle: QuestionContentLineConnectLabelStyle;
|
|
205
|
+
};
|
|
206
|
+
export type QuestionContentMatchingAnswer = Record<string, string[]>;
|
|
207
|
+
export type QuestionContentMatchingItem = {
|
|
208
|
+
answers: QuestionContentMatchingAnswer;
|
|
209
|
+
columns: QuestionContentMatchingColumn[];
|
|
210
|
+
type: "matching";
|
|
211
|
+
};
|
|
212
|
+
export type QuestionContentTextMarkerItem = {
|
|
213
|
+
answers: string[];
|
|
214
|
+
content: QuestionRichContentValue;
|
|
215
|
+
markers: string[];
|
|
216
|
+
type: "textMarker";
|
|
217
|
+
};
|
|
218
|
+
export type QuestionContentOrderingOption = {
|
|
219
|
+
content: QuestionRichContentValue;
|
|
220
|
+
id: string;
|
|
221
|
+
};
|
|
222
|
+
export type QuestionContentOrderingItem = {
|
|
223
|
+
answers: string[];
|
|
224
|
+
sortOptions: QuestionContentOrderingOption[];
|
|
225
|
+
type: "ordering";
|
|
226
|
+
};
|
|
227
|
+
export type QuestionContentItem = QuestionContentBlankGroupItem | QuestionContentClassificationItem | QuestionContentFillTextItem | QuestionContentJudgementGroupItem | QuestionContentLineConnectItem | QuestionContentMatchingItem | QuestionContentOrderingItem | QuestionContentOptionGroupItem | QuestionContentRichTextItem | QuestionContentTextMarkerItem | QuestionContentTextResponseItem | QuestionContentWordBuilderItem;
|
|
228
|
+
export type QuestionContentDraft = {
|
|
229
|
+
questionTypeKey: null | number;
|
|
230
|
+
children: QuestionContentDraft[];
|
|
231
|
+
elements: QuestionContentItem[];
|
|
232
|
+
extras: QuestionContentExtraItem[];
|
|
233
|
+
id: null | number;
|
|
234
|
+
version: string;
|
|
235
|
+
};
|
|
236
|
+
type StripQuestionContentKey<TValue, TKey extends PropertyKey> = TValue extends unknown ? Omit<TValue, TKey> : never;
|
|
237
|
+
export type QuestionContentSerializedItem = StripQuestionContentKey<QuestionContentItem, "elementKey">;
|
|
238
|
+
export type QuestionContentSerializedExtraItem = StripQuestionContentKey<QuestionContentExtraItem, "extraKey">;
|
|
239
|
+
export type QuestionContentSerializedDraft = {
|
|
240
|
+
questionTypeKey: null | number;
|
|
241
|
+
children: QuestionContentSerializedDraft[];
|
|
242
|
+
elements: QuestionContentSerializedItem[];
|
|
243
|
+
extras: QuestionContentSerializedExtraItem[];
|
|
244
|
+
id: null | number;
|
|
245
|
+
version: string;
|
|
246
|
+
};
|
|
247
|
+
export type QuestionContentQuestionTypeTemplate = {
|
|
248
|
+
readonly questionTypeKey: number;
|
|
249
|
+
readonly label: string;
|
|
250
|
+
readonly structure: QuestionContentStructure;
|
|
251
|
+
};
|
|
252
|
+
export {};
|
|
253
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,0BAA0B,GAClC,gBAAgB,GAChB,MAAM,GACN,YAAY,GACZ,WAAW,GACX,aAAa,GACb,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,YAAY,GACZ,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,MAAM,4BAA4B,GACpC,MAAM,GACN,iBAAiB,GACjB,YAAY,CAAC;AAEjB,MAAM,MAAM,+BAA+B,GACvC,YAAY,GACZ,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,oCAAoC,GAC5C,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,OAAO,CAAC;AAEjE,MAAM,MAAM,4BAA4B,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjE,MAAM,MAAM,8BAA8B,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE,MAAM,MAAM,8BAA8B,GACtC,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,IAAI,GACJ,cAAc,GACd,OAAO,CAAC;AAEZ,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,uCAAuC,GACjD,mCAAmC,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC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mBAAmB,EACnB,YAAY,CACb,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,uBAAuB,CACtE,wBAAwB,EACxB,UAAU,CACX,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,eAAe,EAAE,IAAI,GAAG,MAAM,CAAC;IAC/B,QAAQ,EAAE,8BAA8B,EAAE,CAAC;IAC3C,QAAQ,EAAE,6BAA6B,EAAE,CAAC;IAC1C,MAAM,EAAE,kCAAkC,EAAE,CAAC;IAC7C,EAAE,EAAE,IAAI,GAAG,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAC;CAC9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-fill-plugin.d.ts","sourceRoot":"","sources":["../../../../src/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":"text-marker-plugin.d.ts","sourceRoot":"","sources":["../../../../src/question/elements/text-marker/text-marker-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAMxE,eAAO,MAAM,gBAAgB,EAAE,oBAM9B,CAAC"}
|
|
@@ -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,68 @@
|
|
|
1
|
+
export type QuestionLocale = "en-US" | "zh-CN";
|
|
2
|
+
export type QuestionMessages = {
|
|
3
|
+
readonly addBlank: string;
|
|
4
|
+
readonly addCard: string;
|
|
5
|
+
readonly addCategory: string;
|
|
6
|
+
readonly addElement: string;
|
|
7
|
+
readonly addOption: string;
|
|
8
|
+
readonly addSubquestion: string;
|
|
9
|
+
readonly addTableColumn: string;
|
|
10
|
+
readonly answers: string;
|
|
11
|
+
readonly answerGroup: string;
|
|
12
|
+
readonly answerSettings: string;
|
|
13
|
+
readonly blankAnswer: string;
|
|
14
|
+
readonly blankLabel: string;
|
|
15
|
+
readonly cancel: string;
|
|
16
|
+
readonly allowReuse: string;
|
|
17
|
+
readonly candidateMode: string;
|
|
18
|
+
readonly candidateOptions: string;
|
|
19
|
+
readonly card: string;
|
|
20
|
+
readonly category: string;
|
|
21
|
+
readonly choiceRenderer: string;
|
|
22
|
+
readonly choiceSelectionType: string;
|
|
23
|
+
readonly confirm: string;
|
|
24
|
+
readonly createAnswerGroup: string;
|
|
25
|
+
readonly detachBlank: string;
|
|
26
|
+
readonly dragElement: string;
|
|
27
|
+
readonly dragSort: string;
|
|
28
|
+
readonly elementName: string;
|
|
29
|
+
readonly elementPalette: string;
|
|
30
|
+
readonly explanation: string;
|
|
31
|
+
readonly falseLabel: string;
|
|
32
|
+
readonly inspector: string;
|
|
33
|
+
readonly judgeAnswerMode: string;
|
|
34
|
+
readonly multipleChoice: string;
|
|
35
|
+
readonly noCandidates: string;
|
|
36
|
+
readonly option: string;
|
|
37
|
+
readonly perBlankOptions: string;
|
|
38
|
+
readonly optionLabelStyle: string;
|
|
39
|
+
readonly questionArrangement: string;
|
|
40
|
+
readonly questionContent: string;
|
|
41
|
+
readonly questionElement: string;
|
|
42
|
+
readonly questionText: string;
|
|
43
|
+
readonly questionType: string;
|
|
44
|
+
readonly questionTypeName: string;
|
|
45
|
+
readonly removeElement: string;
|
|
46
|
+
readonly removeTableColumn: string;
|
|
47
|
+
readonly singleChoice: string;
|
|
48
|
+
readonly selectBlank: string;
|
|
49
|
+
readonly sharedAnswerPool: string;
|
|
50
|
+
readonly standardAnswer: string;
|
|
51
|
+
readonly standardRenderer: string;
|
|
52
|
+
readonly subquestion: string;
|
|
53
|
+
readonly subquestionContent: string;
|
|
54
|
+
readonly subquestionStructure: string;
|
|
55
|
+
readonly tableColumn: string;
|
|
56
|
+
readonly tableRenderer: string;
|
|
57
|
+
readonly textResponsePlaceholder: string;
|
|
58
|
+
readonly trueLabel: string;
|
|
59
|
+
readonly unassigned: string;
|
|
60
|
+
readonly userAnswer: string;
|
|
61
|
+
readonly wholeQuestion: string;
|
|
62
|
+
readonly moveDown: string;
|
|
63
|
+
readonly moveUp: string;
|
|
64
|
+
readonly missingQuestionTypeTemplate: string;
|
|
65
|
+
readonly previewEmpty: string;
|
|
66
|
+
};
|
|
67
|
+
export declare function getQuestionMessages(locale?: QuestionLocale): QuestionMessages;
|
|
68
|
+
//# 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,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAC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uIF,wBAAgB,mBAAmB,CACjC,MAAM,GAAE,cAAwB,GAC/B,gBAAgB,CAOlB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type LineConnectLineSource = {
|
|
2
|
+
readonly columns: readonly {
|
|
3
|
+
readonly items: readonly {
|
|
4
|
+
readonly itemId: string;
|
|
5
|
+
}[];
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
type LineConnectColumnRule = (fromColumnIndex: number, toColumnIndex: number) => boolean;
|
|
9
|
+
export type LineConnectLineViewModel = {
|
|
10
|
+
readonly fromColumnIndex: number;
|
|
11
|
+
readonly fromItemId: string;
|
|
12
|
+
readonly fromItemIndex: number;
|
|
13
|
+
readonly key: string;
|
|
14
|
+
readonly toColumnIndex: number;
|
|
15
|
+
readonly toItemId: string;
|
|
16
|
+
readonly toItemIndex: number;
|
|
17
|
+
};
|
|
18
|
+
export type LineConnectMeasuredLineSegment = {
|
|
19
|
+
readonly key: string;
|
|
20
|
+
readonly x1: number;
|
|
21
|
+
readonly x2: number;
|
|
22
|
+
readonly y1: number;
|
|
23
|
+
readonly y2: number;
|
|
24
|
+
};
|
|
25
|
+
export type LineConnectLineMeasurement = {
|
|
26
|
+
readonly height: number;
|
|
27
|
+
readonly lines: readonly LineConnectMeasuredLineSegment[];
|
|
28
|
+
readonly width: number;
|
|
29
|
+
};
|
|
30
|
+
export declare function createLineConnectLineViewModels(item: LineConnectLineSource, connections: Record<string, readonly string[]>, canConnectColumns?: LineConnectColumnRule): LineConnectLineViewModel[];
|
|
31
|
+
export declare function getLineConnectMeasuredCenterX(elementRect: DOMRect, boardRect: DOMRect, scrollLeft: number): number;
|
|
32
|
+
export declare function getLineConnectMeasuredCenterY(elementRect: DOMRect, boardRect: DOMRect, scrollTop: number): number;
|
|
33
|
+
export declare function getLineConnectMeasuredLeftX(elementRect: DOMRect, boardRect: DOMRect, scrollLeft: number): number;
|
|
34
|
+
export declare function getLineConnectMeasuredRightX(elementRect: DOMRect, boardRect: DOMRect, scrollLeft: number): number;
|
|
35
|
+
export declare function setLineConnectLineMeasurementIfChanged(setLineMeasurement: (updater: (current: LineConnectLineMeasurement | null) => LineConnectLineMeasurement | null) => void, nextMeasurement: LineConnectLineMeasurement): void;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=lineConnectLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineConnectLines.d.ts","sourceRoot":"","sources":["../../../src/question/line-connect/lineConnectLines.ts"],"names":[],"mappings":"AAEA,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS;QACzB,QAAQ,CAAC,KAAK,EAAE,SAAS;YACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;SACzB,EAAE,CAAC;KACL,EAAE,CAAC;CACL,CAAC;AAEF,KAAK,qBAAqB,GAAG,CAC3B,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,KAClB,OAAO,CAAC;AAEb,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,8BAA8B,EAAE,CAAC;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,qBAAqB,EAC3B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EAC9C,iBAAiB,GAAE,qBAAoD,GACtE,wBAAwB,EAAE,CAsD5B;AAED,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CAER;AAED,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CAER;AAED,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CAER;AAED,wBAAgB,sCAAsC,CACpD,kBAAkB,EAAE,CAClB,OAAO,EAAE,CACP,OAAO,EAAE,0BAA0B,GAAG,IAAI,KACvC,0BAA0B,GAAG,IAAI,KACnC,IAAI,EACT,eAAe,EAAE,0BAA0B,GAC1C,IAAI,CAMN"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentBlankGroupItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionBlankGroupPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentBlankGroupItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerViewResponse;
|
|
11
|
+
responseIndex: number;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionBlankGroupPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionBlankGroupPlayerProps>): ReactElement;
|
|
15
|
+
//# 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,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAS/B,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,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,YAAY,CA4DxD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentClassificationItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionClassificationPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentClassificationItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerViewResponse;
|
|
11
|
+
responseIndex: number;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionClassificationPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionClassificationPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionClassificationPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionClassificationPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionClassificationPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAc/B,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAqH5D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentCandidateOption } from "../content-editor/types";
|
|
3
|
+
import type { QuestionPlayerFillTextAnswer } from "./view-response-types";
|
|
4
|
+
export type QuestionFillTextCandidateButtonProps = {
|
|
5
|
+
answers: QuestionPlayerFillTextAnswer | undefined;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onChange: (answers: QuestionPlayerFillTextAnswer) => void;
|
|
8
|
+
option: QuestionContentCandidateOption;
|
|
9
|
+
selectionType: "multiple" | "single";
|
|
10
|
+
};
|
|
11
|
+
export declare function QuestionFillTextCandidateButton({ answers, 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,uBAAuB,CAAC;AAQ1E,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,IAAI,CAAC;IAC1D,MAAM,EAAE,8BAA8B,CAAC;IACvC,aAAa,EAAE,UAAU,GAAG,QAAQ,CAAC;CACtC,CAAC;AAEF,wBAAgB,+BAA+B,CAAC,EAC9C,OAAO,EACP,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 "./view-response-types";
|
|
5
|
+
type QuestionFillTextContentPlayerProps = {
|
|
6
|
+
answers: Record<string, QuestionPlayerFillTextAnswer>;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
item: QuestionContentFillTextItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onAnswerChange: (blankId: string, answers: 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,EAAoB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAGV,2BAA2B,EAC3B,uCAAuC,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAM1E,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,OAAO,EAAE,4BAA4B,KAClC,IAAI,CAAC;IACV,SAAS,EAAE,uCAAuC,CAAC;CACpD,CAAC;AAEF,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,16 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentFillTextItem, QuestionContentFillTextStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionFillTextPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
element: QuestionContentFillTextStructureElement;
|
|
8
|
+
item: QuestionContentFillTextItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
11
|
+
response: QuestionPlayerViewResponse;
|
|
12
|
+
responseIndex: number;
|
|
13
|
+
showAnswer: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function QuestionFillTextPlayer({ disabled, element, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionFillTextPlayerProps>): ReactElement;
|
|
16
|
+
//# 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,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAc/B,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,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAmEtD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentJudgementGroupItem, QuestionContentJudgementGroupStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionJudgementGroupPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
element: QuestionContentJudgementGroupStructureElement;
|
|
8
|
+
item: QuestionContentJudgementGroupItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
11
|
+
response: QuestionPlayerViewResponse;
|
|
12
|
+
responseIndex: number;
|
|
13
|
+
showAnswer: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function QuestionJudgementGroupPlayer({ disabled, element, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionJudgementGroupPlayerProps>): ReactElement;
|
|
16
|
+
//# sourceMappingURL=QuestionJudgementGroupPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionJudgementGroupPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionJudgementGroupPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,iCAAiC,EACjC,6CAA6C,EAC9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAY/B,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,6CAA6C,CAAC;IACvD,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAsE5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentLineConnectItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionLineConnectPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentLineConnectItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerViewResponse;
|
|
11
|
+
responseIndex: number;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionLineConnectPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionLineConnectPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionLineConnectPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionLineConnectPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionLineConnectPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAKhD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AA2B/B,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CA+NzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentMatchingItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionMatchingPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentMatchingItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerViewResponse;
|
|
11
|
+
responseIndex: number;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionMatchingPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionMatchingPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionMatchingPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionMatchingPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionMatchingPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAsC/B,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAkGtD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentOptionGroupItem, QuestionContentOptionGroupStructureElement } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionOptionGroupPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
element: QuestionContentOptionGroupStructureElement;
|
|
8
|
+
item: QuestionContentOptionGroupItem;
|
|
9
|
+
messages: QuestionMessages;
|
|
10
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
11
|
+
response: QuestionPlayerViewResponse;
|
|
12
|
+
responseIndex: number;
|
|
13
|
+
showAnswer: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function QuestionOptionGroupPlayer({ disabled, element, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionOptionGroupPlayerProps>): ReactElement;
|
|
16
|
+
//# sourceMappingURL=QuestionOptionGroupPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionOptionGroupPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionOptionGroupPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,8BAA8B,EAC9B,0CAA0C,EAC3C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAY/B,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,0CAA0C,CAAC;IACpD,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,8BAA8B,CAAC,GAAG,YAAY,CA0JzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { QuestionContentOrderingItem } from "../content-editor/types";
|
|
3
|
+
import type { QuestionMessages } from "../i18n";
|
|
4
|
+
import type { QuestionPlayerViewResponse, QuestionPlayerViewResponseItem } from "./view-response-types";
|
|
5
|
+
export type QuestionOrderingPlayerProps = {
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
item: QuestionContentOrderingItem;
|
|
8
|
+
messages: QuestionMessages;
|
|
9
|
+
onChange: (item: QuestionPlayerViewResponseItem) => void;
|
|
10
|
+
response: QuestionPlayerViewResponse;
|
|
11
|
+
responseIndex: number;
|
|
12
|
+
showAnswer: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function QuestionOrderingPlayer({ disabled, item, messages, onChange, response, responseIndex, showAnswer, }: Readonly<QuestionOrderingPlayerProps>): ReactElement;
|
|
15
|
+
//# sourceMappingURL=QuestionOrderingPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuestionOrderingPlayer.d.ts","sourceRoot":"","sources":["../../../src/question/player/QuestionOrderingPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAa/B,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,IAAI,CAAC;IACzD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,UAAU,GACX,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,YAAY,CAiEtD"}
|