@yungu-fed/question-editor 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +10 -6
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +6843 -2030
  5. package/dist/index.mjs +5381 -1583
  6. package/dist/model/classification.d.ts +10 -0
  7. package/dist/model/classification.d.ts.map +1 -0
  8. package/dist/model/line-connect.d.ts +28 -0
  9. package/dist/model/line-connect.d.ts.map +1 -0
  10. package/dist/model/matching.d.ts +27 -0
  11. package/dist/model/matching.d.ts.map +1 -0
  12. package/dist/model/question-element-specs.d.ts +3 -3
  13. package/dist/model/question-element-specs.d.ts.map +1 -1
  14. package/dist/model/question-structure.d.ts +56 -3
  15. package/dist/model/question-structure.d.ts.map +1 -1
  16. package/dist/model/rich-text-blank.d.ts.map +1 -1
  17. package/dist/model/text-marker.d.ts +18 -0
  18. package/dist/model/text-marker.d.ts.map +1 -0
  19. package/dist/model/types.d.ts +143 -8
  20. package/dist/model/types.d.ts.map +1 -1
  21. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts +14 -0
  22. package/dist/question/content-editor/QuestionContentClassificationEditor.d.ts.map +1 -0
  23. package/dist/question/content-editor/QuestionContentEditor.d.ts +3 -1
  24. package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -1
  25. package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -1
  26. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts +15 -0
  27. package/dist/question/content-editor/QuestionContentLineConnectEditor.d.ts.map +1 -0
  28. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts +15 -0
  29. package/dist/question/content-editor/QuestionContentMatchingEditor.d.ts.map +1 -0
  30. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts +14 -0
  31. package/dist/question/content-editor/QuestionContentOrderingEditor.d.ts.map +1 -0
  32. package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -1
  33. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts +14 -0
  34. package/dist/question/content-editor/QuestionContentTextMarkerEditor.d.ts.map +1 -0
  35. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts +16 -0
  36. package/dist/question/content-editor/QuestionContentWordBuilderEditor.d.ts.map +1 -0
  37. package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -1
  38. package/dist/question/content-editor/helpers.d.ts +42 -6
  39. package/dist/question/content-editor/helpers.d.ts.map +1 -1
  40. package/dist/question/content-editor/i18n.d.ts.map +1 -1
  41. package/dist/question/content-editor/structure.d.ts +3 -2
  42. package/dist/question/content-editor/structure.d.ts.map +1 -1
  43. package/dist/question/content-editor/subquestion-template.d.ts +4 -0
  44. package/dist/question/content-editor/subquestion-template.d.ts.map +1 -0
  45. package/dist/question/content-editor/types.d.ts +159 -13
  46. package/dist/question/content-editor/types.d.ts.map +1 -1
  47. package/dist/question/elements/text-marker/text-marker-plugin.d.ts +3 -0
  48. package/dist/question/elements/text-marker/text-marker-plugin.d.ts.map +1 -0
  49. package/dist/question/i18n/messages.d.ts +5 -0
  50. package/dist/question/i18n/messages.d.ts.map +1 -1
  51. package/dist/question/line-connect/lineConnectLines.d.ts +37 -0
  52. package/dist/question/line-connect/lineConnectLines.d.ts.map +1 -0
  53. package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -1
  54. package/dist/question/player/QuestionClassificationPlayer.d.ts +14 -0
  55. package/dist/question/player/QuestionClassificationPlayer.d.ts.map +1 -0
  56. package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -1
  57. package/dist/question/player/QuestionLineConnectPlayer.d.ts +14 -0
  58. package/dist/question/player/QuestionLineConnectPlayer.d.ts.map +1 -0
  59. package/dist/question/player/QuestionMatchingPlayer.d.ts +14 -0
  60. package/dist/question/player/QuestionMatchingPlayer.d.ts.map +1 -0
  61. package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -1
  62. package/dist/question/player/QuestionOrderingPlayer.d.ts +14 -0
  63. package/dist/question/player/QuestionOrderingPlayer.d.ts.map +1 -0
  64. package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -1
  65. package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -1
  66. package/dist/question/player/QuestionTextMarkerPlayer.d.ts +14 -0
  67. package/dist/question/player/QuestionTextMarkerPlayer.d.ts.map +1 -0
  68. package/dist/question/player/QuestionWordBuilderPlayer.d.ts +15 -0
  69. package/dist/question/player/QuestionWordBuilderPlayer.d.ts.map +1 -0
  70. package/dist/question/player/helpers.d.ts +13 -2
  71. package/dist/question/player/helpers.d.ts.map +1 -1
  72. package/dist/question/player/types.d.ts +32 -2
  73. package/dist/question/player/types.d.ts.map +1 -1
  74. package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -1
  75. package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -1
  76. package/dist/question/renderers/QuestionClassificationView.d.ts +10 -0
  77. package/dist/question/renderers/QuestionClassificationView.d.ts.map +1 -0
  78. package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -1
  79. package/dist/question/renderers/QuestionLineConnectView.d.ts +10 -0
  80. package/dist/question/renderers/QuestionLineConnectView.d.ts.map +1 -0
  81. package/dist/question/renderers/QuestionMatchingView.d.ts +10 -0
  82. package/dist/question/renderers/QuestionMatchingView.d.ts.map +1 -0
  83. package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -1
  84. package/dist/question/renderers/QuestionOrderingView.d.ts +10 -0
  85. package/dist/question/renderers/QuestionOrderingView.d.ts.map +1 -0
  86. package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -1
  87. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts +14 -0
  88. package/dist/question/renderers/QuestionRichContentWithBlankView.d.ts.map +1 -0
  89. package/dist/question/renderers/QuestionTextMarkerContent.d.ts +12 -0
  90. package/dist/question/renderers/QuestionTextMarkerContent.d.ts.map +1 -0
  91. package/dist/question/renderers/QuestionTextMarkerView.d.ts +10 -0
  92. package/dist/question/renderers/QuestionTextMarkerView.d.ts.map +1 -0
  93. package/dist/question/renderers/QuestionWordBuilderView.d.ts +11 -0
  94. package/dist/question/renderers/QuestionWordBuilderView.d.ts.map +1 -0
  95. package/dist/question/renderers/classificationAnswers.d.ts +4 -0
  96. package/dist/question/renderers/classificationAnswers.d.ts.map +1 -0
  97. package/dist/question/renderers/lineConnectAnswers.d.ts +4 -0
  98. package/dist/question/renderers/lineConnectAnswers.d.ts.map +1 -0
  99. package/dist/question/renderers/matchingAnswers.d.ts +4 -0
  100. package/dist/question/renderers/matchingAnswers.d.ts.map +1 -0
  101. package/dist/question/renderers/optionGroupAnswers.d.ts +4 -0
  102. package/dist/question/renderers/optionGroupAnswers.d.ts.map +1 -0
  103. package/dist/question/renderers/orderingAnswerGroups.d.ts +4 -0
  104. package/dist/question/renderers/orderingAnswerGroups.d.ts.map +1 -0
  105. package/dist/question/renderers/wordBuilderAnswers.d.ts +4 -0
  106. package/dist/question/renderers/wordBuilderAnswers.d.ts.map +1 -0
  107. package/dist/question/rich-text/RichTextField.d.ts +3 -2
  108. package/dist/question/rich-text/RichTextField.d.ts.map +1 -1
  109. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +2 -2
  110. package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -1
  111. package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -1
  112. package/dist/question/structure-editor/QuestionStructureSettings.d.ts +6 -3
  113. package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -1
  114. package/dist/question/structure-editor/structure-editor-labels.d.ts +22 -2
  115. package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -1
  116. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ import type { ClassificationAnswer, ClassificationQuestionDataElement, ClassificationQuestionTypeElement, QuestionDataElement } from "./types";
2
+ export declare function createClassificationDataElement(elementType: ClassificationQuestionTypeElement): ClassificationQuestionDataElement;
3
+ export declare function normalizeClassificationDataElement(elementType: ClassificationQuestionTypeElement, element?: QuestionDataElement): ClassificationQuestionDataElement;
4
+ export declare function normalizeClassificationAnswer(answer: ClassificationAnswer | undefined, categories: readonly {
5
+ readonly id: string;
6
+ }[], items: readonly {
7
+ readonly id: string;
8
+ }[]): ClassificationAnswer;
9
+ export declare function setClassificationPlacement<TAnswer extends Record<string, string>>(answer: TAnswer, itemId: string, categoryId: string): TAnswer;
10
+ //# sourceMappingURL=classification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classification.d.ts","sourceRoot":"","sources":["../../src/model/classification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAGpB,iCAAiC,EACjC,iCAAiC,EACjC,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAUjB,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iCAAiC,GAC7C,iCAAiC,CAQnC;AAED,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,iCAAiC,EAC9C,OAAO,CAAC,EAAE,mBAAmB,GAC5B,iCAAiC,CAenC;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,UAAU,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAC9C,KAAK,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,GACxC,oBAAoB,CAWtB;AAED,wBAAgB,0BAA0B,CACxC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAa9D"}
@@ -0,0 +1,28 @@
1
+ import type { LineConnectAnswers, LineConnectColumn, LineConnectLabelStyle, LineConnectQuestionDataElement, LineConnectQuestionTypeColumnConfig, LineConnectQuestionTypeElement, QuestionDataElement } from "./types";
2
+ export declare const lineConnectLabelStyles: readonly ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
3
+ export declare const lineConnectColumnLimits: {
4
+ readonly max: 5;
5
+ readonly min: 2;
6
+ };
7
+ export declare function canConnectLineConnectColumns(fromColumnIndex: number, toColumnIndex: number): boolean;
8
+ export type NormalizedLineConnectConnection = {
9
+ readonly fromItemId: string;
10
+ readonly toItemId: string;
11
+ };
12
+ export declare function normalizeLineConnectConnectionDirection(firstItem: {
13
+ readonly columnIndex: number;
14
+ readonly itemId: string;
15
+ }, secondItem: {
16
+ readonly columnIndex: number;
17
+ readonly itemId: string;
18
+ }): NormalizedLineConnectConnection | null;
19
+ export declare function createLineConnectDataElement(elementType: LineConnectQuestionTypeElement): LineConnectQuestionDataElement;
20
+ export declare function normalizeLineConnectDataElement(elementType: LineConnectQuestionTypeElement, element?: QuestionDataElement): LineConnectQuestionDataElement;
21
+ export declare function normalizeLineConnectAnswers(answer: LineConnectAnswers | undefined, columns: readonly LineConnectColumn[]): LineConnectAnswers;
22
+ export declare function normalizeLineConnectAnswerMap<TAnswer extends Record<string, readonly string[]>>(answer: TAnswer | undefined, itemColumnIndex: ReadonlyMap<string, number>): TAnswer;
23
+ export declare function toggleLineConnectAnswerMap<TAnswer extends Record<string, readonly string[]>>(answer: TAnswer, fromItemId: string, toItemId: string): TAnswer;
24
+ export declare function normalizeLineConnectColumnConfigs(configs: readonly LineConnectQuestionTypeColumnConfig[] | undefined): LineConnectQuestionTypeColumnConfig[];
25
+ export declare function createDefaultLineConnectColumnConfigs(): LineConnectQuestionTypeColumnConfig[];
26
+ export declare function getLineConnectLabelMarker(labelStyle: LineConnectLabelStyle, index: number): string;
27
+ export declare function normalizeLineConnectLabelStyle(labelStyle: LineConnectLabelStyle | undefined, fallback: LineConnectLabelStyle): LineConnectLabelStyle;
28
+ //# sourceMappingURL=line-connect.d.ts.map
@@ -0,0 +1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SAAS,EAC3B,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CAyBT;AAED,wBAAgB,0BAA0B,CACxC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EACjD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAchE;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,SAAS,mCAAmC,EAAE,GAAG,SAAS,GAClE,mCAAmC,EAAE,CAqBvC;AAED,wBAAgB,qCAAqC,IAAI,mCAAmC,EAAE,CAE7F;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,qBAAqB,EACjC,KAAK,EAAE,MAAM,GACZ,MAAM,CAER;AAmHD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,qBAAqB,GAAG,SAAS,EAC7C,QAAQ,EAAE,qBAAqB,GAC9B,qBAAqB,CAIvB"}
@@ -0,0 +1,27 @@
1
+ import type { MatchingAnswers, MatchingColumn, MatchingQuestionDataElement, MatchingQuestionTypeColumnConfig, MatchingQuestionTypeElement, QuestionDataElement } from "./types";
2
+ export declare const matchingColumnLimits: {
3
+ readonly max: 2;
4
+ readonly min: 2;
5
+ };
6
+ export declare const matchingLabelStyles: readonly ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
7
+ export declare function canConnectMatchingColumns(fromColumnIndex: number, toColumnIndex: number): boolean;
8
+ export type NormalizedMatchingConnection = {
9
+ readonly fromItemId: string;
10
+ readonly toItemId: string;
11
+ };
12
+ export declare function normalizeMatchingConnectionDirection(firstItem: {
13
+ readonly columnIndex: number;
14
+ readonly itemId: string;
15
+ }, secondItem: {
16
+ readonly columnIndex: number;
17
+ readonly itemId: string;
18
+ }): NormalizedMatchingConnection | null;
19
+ export declare function createMatchingDataElement(elementType: MatchingQuestionTypeElement): MatchingQuestionDataElement;
20
+ export declare function normalizeMatchingDataElement(elementType: MatchingQuestionTypeElement, element?: QuestionDataElement): MatchingQuestionDataElement;
21
+ export declare function normalizeMatchingAnswers(answer: MatchingAnswers | undefined, columns: readonly MatchingColumn[]): MatchingAnswers;
22
+ export declare function normalizeMatchingAnswerMap<TAnswer extends Record<string, readonly string[]>>(answer: TAnswer | undefined, itemColumnIndex: ReadonlyMap<string, number>): TAnswer;
23
+ export declare function toggleMatchingAnswerMap<TAnswer extends Record<string, readonly string[]>>(answer: TAnswer, fromItemId: string, toItemId: string): TAnswer;
24
+ export declare function normalizeMatchingColumnConfigs(configs: readonly MatchingQuestionTypeColumnConfig[] | undefined): MatchingQuestionTypeColumnConfig[];
25
+ export declare function createDefaultMatchingColumnConfigs(): MatchingQuestionTypeColumnConfig[];
26
+ export declare function getMatchingLabelMarker(labelStyle: MatchingQuestionTypeColumnConfig["labelStyle"], index: number): string;
27
+ //# sourceMappingURL=matching.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matching.d.ts","sourceRoot":"","sources":["../../src/model/matching.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEd,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAYjB,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,mBAAmB,wFAAyB,CAAC;AAE1D,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,GACpB,OAAO,CAET;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,SAAS,EAAE;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACpE,UAAU,EAAE;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACpE,4BAA4B,GAAG,IAAI,CAerC;AAKD,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,2BAA2B,GACvC,2BAA2B,CAS7B;AAED,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,2BAA2B,EACxC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,2BAA2B,CAgB7B;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,eAAe,GAAG,SAAS,EACnC,OAAO,EAAE,SAAS,cAAc,EAAE,GACjC,eAAe,CAEjB;AAED,wBAAgB,0BAA0B,CACxC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EAEjD,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3C,OAAO,CA0BT;AAED,wBAAgB,uBAAuB,CACrC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EACjD,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CA4BhE;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,SAAS,gCAAgC,EAAE,GAAG,SAAS,GAC/D,gCAAgC,EAAE,CAqBpC;AAED,wBAAgB,kCAAkC,IAAI,gCAAgC,EAAE,CAEvF;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,gCAAgC,CAAC,YAAY,CAAC,EAC1D,KAAK,EAAE,MAAM,GACZ,MAAM,CAER"}
@@ -1,4 +1,4 @@
1
- import type { QuestionDataElement, QuestionTypeElementKind, QuestionResponseItem, QuestionTypeElement, RichTextQuestionTypeElement } from "./types";
1
+ import type { QuestionDataElement, QuestionResponseItem, QuestionTypeElementKind, QuestionTypeElement, RichTextQuestionTypeElement } from "./types";
2
2
  type AnswerQuestionTypeElement = Exclude<QuestionTypeElement, RichTextQuestionTypeElement>;
3
3
  export type QuestionTypeElementSpec = {
4
4
  readonly createDataElement: (elementType: QuestionTypeElement) => QuestionDataElement;
@@ -13,10 +13,10 @@ export declare function createQuestionTypeElementFromSpec(type: QuestionTypeElem
13
13
  export declare function getQuestionTypeElementSpec(type: QuestionTypeElementKind): QuestionTypeElementSpec;
14
14
  export declare const questionTypeElementPaletteGroups: readonly [{
15
15
  readonly key: "stem";
16
- readonly types: ("richText" | "choice" | "fill" | "inlineFill" | "judgement")[];
16
+ readonly types: ("richText" | "choice" | "fill" | "inlineFill" | "wordBuilder" | "judgement" | "classification" | "lineConnect" | "matching" | "ordering" | "textMarker")[];
17
17
  }, {
18
18
  readonly key: "answer";
19
- readonly types: ("richText" | "choice" | "fill" | "inlineFill" | "judgement")[];
19
+ readonly types: ("richText" | "choice" | "fill" | "inlineFill" | "wordBuilder" | "judgement" | "classification" | "lineConnect" | "matching" | "ordering" | "textMarker")[];
20
20
  }];
21
21
  export declare function isAnalysisQuestionTypeElement(element: QuestionTypeElement): boolean;
22
22
  export declare function isQuestionTypeElementKind(value: string): value is QuestionTypeElementKind;
@@ -1 +1 @@
1
- {"version":3,"file":"question-element-specs.d.ts","sourceRoot":"","sources":["../../src/model/question-element-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAsBV,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EAEnB,2BAA2B,EAC5B,MAAM,SAAS,CAAC;AAcjB,KAAK,yBAAyB,GAAG,OAAO,CACtC,mBAAmB,EACnB,2BAA2B,CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,WAAW,EAAE,mBAAmB,KAC7B,mBAAmB,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,EAAE,EAAE,MAAM,EACV,OA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BAAuB,GAAG;IACpC,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,WAAW,EAAE,mBAAmB,KAC7B,mBAAmB,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,KACZ,mBAAmB,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,oBAAoB,EAAE,CAC7B,WAAW,EAAE,mBAAmB,EAChC,OAAO,CAAC,EAAE,mBAAmB,KAC1B,mBAAmB,CAAC;IACzB,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAC/B,WAAW,EAAE,yBAAyB,EACtC,WAAW,EAAE,mBAAmB,GAAG,SAAS,EAC5C,IAAI,EAAE,oBAAoB,GAAG,SAAS,KACnC,oBAAoB,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC1C,CAAC;AAIF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,uBAAuB,EAAE,uBAAuB,CAsQ7F,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,uBAAuB,EAC7B,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GACvC,mBAAmB,CAKrB;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,uBAAuB,GAC5B,uBAAuB,CAEzB;AAED,eAAO,MAAM,gCAAgC;;;;;;EAGnC,CAAC;AAEX,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,mBAAmB,WAKzE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEzF;AAED,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,mBAAmB,WAE3E"}
@@ -1,11 +1,13 @@
1
- export declare const questionStructureElementTypes: readonly ["richText", "inlineFill", "fill", "choice", "judgement"];
1
+ export declare const questionStructureElementTypes: readonly ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement", "classification", "lineConnect", "matching", "ordering", "textMarker"];
2
2
  export type QuestionStructureElementType = (typeof questionStructureElementTypes)[number];
3
3
  export declare const questionStructureExtraKeys: readonly ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"];
4
4
  export type QuestionStructureExtraKey = (typeof questionStructureExtraKeys)[number];
5
5
  export type QuestionStructureCandidateMode = "none" | "perBlankOptions" | "sharedPool";
6
6
  export type QuestionStructureOptionLabelStyle = "lowerAlpha" | "number" | "upperAlpha";
7
+ export type QuestionStructureLineConnectLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha";
7
8
  export type QuestionStructureOptionRenderer = "standard" | "table";
8
9
  export type QuestionStructureSelectionType = "multiple" | "single";
10
+ export type QuestionStructureWordBuilderMode = "sentence" | "spelling";
9
11
  export type QuestionStructureJudgeAnswerMode = "checkCross" | "correctWrong" | "rightWrong" | "tf" | "validInvalid" | "yesNo";
10
12
  export type QuestionStructureGlobalConfig = {
11
13
  readonly canPrint: boolean;
@@ -13,7 +15,10 @@ export type QuestionStructureGlobalConfig = {
13
15
  readonly id: string;
14
16
  readonly name: string;
15
17
  readonly enName: string;
18
+ };
19
+ export type QuestionStructureMetadata = {
16
20
  readonly description?: string;
21
+ readonly isSubjective: boolean;
17
22
  };
18
23
  export type QuestionStructureRichTextElement = {
19
24
  readonly config: Record<string, never>;
@@ -30,6 +35,14 @@ export type QuestionStructureFillTextElement = {
30
35
  readonly name: string;
31
36
  readonly type: "inlineFill";
32
37
  };
38
+ export type QuestionStructureWordBuilderElement = {
39
+ readonly config: {
40
+ readonly builderMode: QuestionStructureWordBuilderMode;
41
+ };
42
+ readonly enName: string;
43
+ readonly name: string;
44
+ readonly type: "wordBuilder";
45
+ };
33
46
  export type QuestionStructureBlankGroupElement = {
34
47
  readonly config: Record<string, never>;
35
48
  readonly enName: string;
@@ -54,7 +67,44 @@ export type QuestionStructureJudgementGroupElement = {
54
67
  readonly name: string;
55
68
  readonly type: "judgement";
56
69
  };
57
- export type QuestionStructureElement = QuestionStructureBlankGroupElement | QuestionStructureFillTextElement | QuestionStructureJudgementGroupElement | QuestionStructureOptionGroupElement | QuestionStructureRichTextElement;
70
+ export type QuestionStructureClassificationElement = {
71
+ readonly config: Record<string, never>;
72
+ readonly enName: string;
73
+ readonly name: string;
74
+ readonly type: "classification";
75
+ };
76
+ export type QuestionStructureLineConnectColumnConfig = {
77
+ readonly labelStyle: QuestionStructureLineConnectLabelStyle;
78
+ };
79
+ export type QuestionStructureLineConnectElement = {
80
+ readonly config: {
81
+ readonly columns: readonly QuestionStructureLineConnectColumnConfig[];
82
+ };
83
+ readonly enName: string;
84
+ readonly name: string;
85
+ readonly type: "lineConnect";
86
+ };
87
+ export type QuestionStructureMatchingElement = {
88
+ readonly config: {
89
+ readonly columns: readonly QuestionStructureLineConnectColumnConfig[];
90
+ };
91
+ readonly enName: string;
92
+ readonly name: string;
93
+ readonly type: "matching";
94
+ };
95
+ export type QuestionStructureTextMarkerElement = {
96
+ readonly config: Record<string, never>;
97
+ readonly enName: string;
98
+ readonly name: string;
99
+ readonly type: "textMarker";
100
+ };
101
+ export type QuestionStructureOrderingElement = {
102
+ readonly config: Record<string, never>;
103
+ readonly enName: string;
104
+ readonly name: string;
105
+ readonly type: "ordering";
106
+ };
107
+ export type QuestionStructureElement = QuestionStructureBlankGroupElement | QuestionStructureClassificationElement | QuestionStructureFillTextElement | QuestionStructureJudgementGroupElement | QuestionStructureLineConnectElement | QuestionStructureMatchingElement | QuestionStructureOrderingElement | QuestionStructureOptionGroupElement | QuestionStructureRichTextElement | QuestionStructureTextMarkerElement | QuestionStructureWordBuilderElement;
58
108
  export type QuestionStructureDraftElement = QuestionStructureElement & {
59
109
  readonly clientId: string;
60
110
  };
@@ -67,9 +117,11 @@ export type QuestionStructureDraftExtra = QuestionStructureExtra & {
67
117
  readonly clientId: string;
68
118
  };
69
119
  export type QuestionStructureDraft = {
120
+ readonly description?: string;
70
121
  readonly elements: readonly QuestionStructureDraftElement[];
71
- readonly extra: readonly QuestionStructureDraftExtra[];
122
+ readonly extras: readonly QuestionStructureDraftExtra[];
72
123
  readonly globalConfig: QuestionStructureGlobalConfig;
124
+ readonly isSubjective: boolean;
73
125
  readonly version: string;
74
126
  };
75
127
  export declare function createEmptyQuestionStructureDraft(): QuestionStructureDraft;
@@ -81,6 +133,7 @@ export declare function moveQuestionStructureElement(draft: QuestionStructureDra
81
133
  export declare function updateQuestionStructureExtra(draft: QuestionStructureDraft, clientId: string, nextExtra: QuestionStructureDraftExtra): QuestionStructureDraft;
82
134
  export declare function updateQuestionStructureElement(draft: QuestionStructureDraft, clientId: string, nextElement: QuestionStructureDraftElement): QuestionStructureDraft;
83
135
  export declare function updateQuestionStructureGlobalConfig(draft: QuestionStructureDraft, patch: Partial<QuestionStructureGlobalConfig>): QuestionStructureDraft;
136
+ export declare function updateQuestionStructureMetadata(draft: QuestionStructureDraft, patch: Partial<QuestionStructureMetadata>): QuestionStructureDraft;
84
137
  export declare function getQuestionStructureElementDefaultName(type: QuestionStructureElementType): string;
85
138
  export declare function getQuestionStructureElementDefaultEnName(type: QuestionStructureElementType): string;
86
139
  export declare function getQuestionStructureExtraDefaultName(key: QuestionStructureExtraKey): string;
@@ -1 +1 @@
1
- {"version":3,"file":"question-structure.d.ts","sourceRoot":"","sources":["../../src/model/question-structure.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,oEAMhC,CAAA;AAEV,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhD,eAAO,MAAM,0BAA0B,yJAS7B,CAAA;AAEV,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAA;AAoD7C,MAAM,MAAM,8BAA8B,GACtC,MAAM,GACN,iBAAiB,GACjB,YAAY,CAAA;AAEhB,M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AAM,EAChB,SAAS,EAAE,2BAA2B,GACrC,sBAAsB,CAOxB;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,6BAA6B,GACzC,sBAAsB,CAOxB;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,OAAO,CAAC,6BAA6B,CAAC,GAC5C,sBAAsB,CAQxB;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,sBAAsB,EAC7B,KAAK,EAAE,OAAO,CAAC,yBAAyB,CAAC,GACxC,sBAAsB,CAKxB;AAED,wBAAgB,sCAAsC,CACpD,IAAI,EAAE,4BAA4B,UAGnC;AAED,wBAAgB,wCAAwC,CACtD,IAAI,EAAE,4BAA4B,UAGnC;AAED,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,yBAAyB,UAM/B;AAED,wBAAgB,sCAAsC,CACpD,GAAG,EAAE,yBAAyB,UAM/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text-blank.d.ts","sourceRoot":"","sources":["../../src/model/rich-text-blank.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,eAAO,MAAM,mBAAmB,EAAE,oBAoCjC,CAAA"}
1
+ {"version":3,"file":"rich-text-blank.d.ts","sourceRoot":"","sources":["../../src/model/rich-text-blank.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,eAAO,MAAM,mBAAmB,EAAE,oBA+CjC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { RichTextEditorMarkDefinition, RichTextEditorMarkRenderer, RichTextEditorPlugin, RichTextEditorValue } from "@yungu-fed/rich-text-editor";
2
+ import type { RichTextContent } from "./types";
3
+ export declare const textMarkerCommand = "mark.textMarker";
4
+ export declare const textMarkerMarkKey = "markerId";
5
+ export declare const textMarkerRichTextPlugin: RichTextEditorPlugin;
6
+ export type TextMarkerRange = {
7
+ readonly markerId: string;
8
+ readonly text: string;
9
+ };
10
+ export declare function createTextMarkerMarkDefinition(render?: RichTextEditorMarkRenderer): RichTextEditorMarkDefinition;
11
+ export declare function createTextMarkerRichTextContent(text?: string): RichTextContent;
12
+ export declare function normalizeTextMarkerRichTextContent(input?: Partial<RichTextContent>): RichTextContent;
13
+ export declare function extractTextMarkerIds(value: RichTextEditorValue | undefined): string[];
14
+ export declare function extractTextMarkerRanges(value: RichTextEditorValue | undefined): TextMarkerRange[];
15
+ export declare function createNextTextMarkerId(markers: readonly string[]): string;
16
+ export declare function normalizeTextMarkerIds(value: unknown): string[];
17
+ export declare function readTextMarkerId(value: unknown): string;
18
+ //# sourceMappingURL=text-marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-marker.d.ts","sourceRoot":"","sources":["../../src/model/text-marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAQrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,eAAO,MAAM,wBAAwB,EAAE,oBAEtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,MAAM,CAAC,EAAE,0BAA0B,GAClC,4BAA4B,CAwB9B;AAED,wBAAgB,+BAA+B,CAAC,IAAI,SAAK,GAAG,eAAe,CAI1E;AAED,wBAAgB,kCAAkC,CAChD,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAC/B,eAAe,CAUjB;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,MAAM,EAAE,CAYV;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,eAAe,EAAE,CAyBnB;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASzE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAO/D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvD"}
@@ -1,9 +1,8 @@
1
1
  import type { RichTextEditorValue } from "@yungu-fed/rich-text-editor";
2
- export declare const questionTypeElementKinds: readonly ["richText", "choice", "fill", "inlineFill", "judgement"];
2
+ export declare const questionTypeElementKinds: readonly ["richText", "choice", "fill", "inlineFill", "wordBuilder", "judgement", "classification", "lineConnect", "matching", "ordering", "textMarker"];
3
3
  export type QuestionTypeElementKind = (typeof questionTypeElementKinds)[number];
4
- export type QuestionTypeKind = "composite" | "leaf";
5
4
  export type QuestionTypeGlobalConfig = {
6
- readonly kind: QuestionTypeKind;
5
+ readonly [key: string]: unknown;
7
6
  };
8
7
  export type RichTextContent = {
9
8
  readonly html: string;
@@ -44,6 +43,13 @@ export type InlineFillQuestionTypeElement = QuestionTypeElementBase & {
44
43
  };
45
44
  readonly type: "inlineFill";
46
45
  };
46
+ export type WordBuilderMode = "sentence" | "spelling";
47
+ export type WordBuilderQuestionTypeElement = QuestionTypeElementBase & {
48
+ readonly config: {
49
+ readonly builderMode: WordBuilderMode;
50
+ };
51
+ readonly type: "wordBuilder";
52
+ };
47
53
  export type JudgementMode = "checkCross" | "correctWrong" | "rightWrong" | "tf" | "validInvalid" | "yesNo";
48
54
  export type JudgementQuestionTypeElement = QuestionTypeElementBase & {
49
55
  readonly config: {
@@ -51,12 +57,50 @@ export type JudgementQuestionTypeElement = QuestionTypeElementBase & {
51
57
  };
52
58
  readonly type: "judgement";
53
59
  };
54
- export type QuestionTypeElement = ChoiceQuestionTypeElement | FillQuestionTypeElement | InlineFillQuestionTypeElement | JudgementQuestionTypeElement | RichTextQuestionTypeElement;
60
+ export type ClassificationQuestionTypeElement = QuestionTypeElementBase & {
61
+ readonly config: Record<string, never>;
62
+ readonly type: "classification";
63
+ };
64
+ export type LineConnectLabelStyle = "chineseNumber" | "lowerAlpha" | "lowerRoman" | "none" | "number" | "upperAlpha";
65
+ export type LineConnectQuestionTypeColumnConfig = {
66
+ readonly labelStyle: LineConnectLabelStyle;
67
+ };
68
+ export type LineConnectQuestionTypeElement = QuestionTypeElementBase & {
69
+ readonly config: {
70
+ readonly columns: readonly LineConnectQuestionTypeColumnConfig[];
71
+ };
72
+ readonly type: "lineConnect";
73
+ };
74
+ export type MatchingQuestionTypeColumnConfig = {
75
+ readonly labelStyle: LineConnectLabelStyle;
76
+ };
77
+ export type MatchingQuestionTypeElement = QuestionTypeElementBase & {
78
+ readonly config: {
79
+ readonly columns: readonly MatchingQuestionTypeColumnConfig[];
80
+ };
81
+ readonly type: "matching";
82
+ };
83
+ export type TextMarkerQuestionTypeElement = QuestionTypeElementBase & {
84
+ readonly config: Record<string, never>;
85
+ readonly type: "textMarker";
86
+ };
87
+ export type OrderingQuestionTypeElement = QuestionTypeElementBase & {
88
+ readonly config: Record<string, never>;
89
+ readonly type: "ordering";
90
+ };
91
+ export type QuestionTypeElement = ClassificationQuestionTypeElement | ChoiceQuestionTypeElement | FillQuestionTypeElement | InlineFillQuestionTypeElement | JudgementQuestionTypeElement | LineConnectQuestionTypeElement | MatchingQuestionTypeElement | OrderingQuestionTypeElement | RichTextQuestionTypeElement | TextMarkerQuestionTypeElement | WordBuilderQuestionTypeElement;
92
+ export type QuestionTypeExtra = {
93
+ readonly enName: string;
94
+ readonly name: string;
95
+ readonly type: string;
96
+ };
55
97
  export type QuestionType = {
56
98
  readonly elements: readonly QuestionTypeElement[];
99
+ readonly extras: readonly QuestionTypeExtra[];
57
100
  readonly globalConfig: QuestionTypeGlobalConfig;
58
101
  readonly id: number;
59
102
  readonly name: string;
103
+ readonly systemQuestionType: string;
60
104
  readonly version: string;
61
105
  };
62
106
  export type QuestionDataElementBase = {
@@ -114,16 +158,83 @@ export type InlineFillQuestionDataElement = QuestionDataElementBase & {
114
158
  readonly content: RichTextContent;
115
159
  readonly type: "inlineFill";
116
160
  };
161
+ export type WordBuilderQuestionDataElement = QuestionDataElementBase & {
162
+ readonly answer: Readonly<Record<string, string>>;
163
+ readonly blanks: readonly string[];
164
+ readonly candidateOptions: readonly string[];
165
+ readonly content: RichTextContent;
166
+ readonly type: "wordBuilder";
167
+ };
117
168
  export type JudgementAnswerValue = "false" | "true";
118
169
  export type JudgementQuestionDataElement = QuestionDataElementBase & {
119
170
  readonly answers: readonly JudgementAnswerValue[];
120
171
  readonly type: "judgement";
121
172
  };
122
- export type QuestionDataElement = ChoiceQuestionDataElement | FillQuestionDataElement | InlineFillQuestionDataElement | JudgementQuestionDataElement | RichTextQuestionDataElement;
173
+ export type ClassificationCategory = {
174
+ readonly content: RichTextContent;
175
+ readonly id: string;
176
+ };
177
+ export type ClassificationItem = {
178
+ readonly content: RichTextContent;
179
+ readonly id: string;
180
+ };
181
+ export type ClassificationAnswer = Readonly<Record<string, string>>;
182
+ export type ClassificationQuestionDataElement = QuestionDataElementBase & {
183
+ readonly answer: ClassificationAnswer;
184
+ readonly categories: readonly ClassificationCategory[];
185
+ readonly items: readonly ClassificationItem[];
186
+ readonly type: "classification";
187
+ };
188
+ export type LineConnectItem = {
189
+ readonly content: RichTextContent;
190
+ readonly id: string;
191
+ };
192
+ export type LineConnectColumn = {
193
+ readonly columnId: string;
194
+ readonly items: readonly LineConnectItem[];
195
+ readonly labelStyle: LineConnectLabelStyle;
196
+ };
197
+ export type LineConnectAnswers = Readonly<Record<string, readonly string[]>>;
198
+ export type LineConnectQuestionDataElement = QuestionDataElementBase & {
199
+ readonly answer: LineConnectAnswers;
200
+ readonly columns: readonly LineConnectColumn[];
201
+ readonly type: "lineConnect";
202
+ };
203
+ export type MatchingItem = {
204
+ readonly content: RichTextContent;
205
+ readonly id: string;
206
+ };
207
+ export type MatchingColumn = {
208
+ readonly columnId: string;
209
+ readonly items: readonly MatchingItem[];
210
+ readonly labelStyle: LineConnectLabelStyle;
211
+ };
212
+ export type MatchingAnswers = Readonly<Record<string, readonly string[]>>;
213
+ export type MatchingQuestionDataElement = QuestionDataElementBase & {
214
+ readonly answer: MatchingAnswers;
215
+ readonly columns: readonly MatchingColumn[];
216
+ readonly type: "matching";
217
+ };
218
+ export type TextMarkerQuestionDataElement = QuestionDataElementBase & {
219
+ readonly answer: readonly string[];
220
+ readonly content: RichTextContent;
221
+ readonly markers: readonly string[];
222
+ readonly type: "textMarker";
223
+ };
224
+ export type OrderingOption = {
225
+ readonly content: RichTextContent;
226
+ readonly id: string;
227
+ };
228
+ export type OrderingQuestionDataElement = QuestionDataElementBase & {
229
+ readonly answer: readonly string[];
230
+ readonly sortOptions: readonly OrderingOption[];
231
+ readonly type: "ordering";
232
+ };
233
+ export type QuestionDataElement = ClassificationQuestionDataElement | ChoiceQuestionDataElement | FillQuestionDataElement | InlineFillQuestionDataElement | JudgementQuestionDataElement | LineConnectQuestionDataElement | MatchingQuestionDataElement | OrderingQuestionDataElement | RichTextQuestionDataElement | TextMarkerQuestionDataElement | WordBuilderQuestionDataElement;
123
234
  export type QuestionData = {
124
235
  readonly children: readonly QuestionData[];
125
236
  readonly elements: readonly QuestionDataElement[];
126
- readonly id: string;
237
+ readonly id: number;
127
238
  readonly questionTypeId: number;
128
239
  readonly version: string;
129
240
  };
@@ -151,15 +262,39 @@ export type InlineFillQuestionResponseItem = QuestionResponseItemBase & {
151
262
  readonly answers: readonly InlineFillResponseAnswer[];
152
263
  readonly type: "inlineFill";
153
264
  };
265
+ export type WordBuilderQuestionResponseItem = QuestionResponseItemBase & {
266
+ readonly answers: Readonly<Record<string, string>>;
267
+ readonly type: "wordBuilder";
268
+ };
154
269
  export type JudgementQuestionResponseItem = QuestionResponseItemBase & {
155
270
  readonly answers: readonly JudgementAnswerValue[];
156
271
  readonly type: "judgement";
157
272
  };
158
- export type QuestionResponseItem = ChoiceQuestionResponseItem | FillQuestionResponseItem | InlineFillQuestionResponseItem | JudgementQuestionResponseItem;
273
+ export type ClassificationQuestionResponseItem = QuestionResponseItemBase & {
274
+ readonly placements: ClassificationAnswer;
275
+ readonly type: "classification";
276
+ };
277
+ export type LineConnectQuestionResponseItem = QuestionResponseItemBase & {
278
+ readonly connections: LineConnectAnswers;
279
+ readonly type: "lineConnect";
280
+ };
281
+ export type MatchingQuestionResponseItem = QuestionResponseItemBase & {
282
+ readonly connections: MatchingAnswers;
283
+ readonly type: "matching";
284
+ };
285
+ export type TextMarkerQuestionResponseItem = QuestionResponseItemBase & {
286
+ readonly selectedMarkers: readonly string[];
287
+ readonly type: "textMarker";
288
+ };
289
+ export type OrderingQuestionResponseItem = QuestionResponseItemBase & {
290
+ readonly orderedOptionIds: readonly string[];
291
+ readonly type: "ordering";
292
+ };
293
+ export type QuestionResponseItem = ClassificationQuestionResponseItem | ChoiceQuestionResponseItem | FillQuestionResponseItem | InlineFillQuestionResponseItem | JudgementQuestionResponseItem | LineConnectQuestionResponseItem | MatchingQuestionResponseItem | OrderingQuestionResponseItem | TextMarkerQuestionResponseItem | WordBuilderQuestionResponseItem;
159
294
  export type QuestionResponse = {
160
295
  readonly children: readonly QuestionResponse[];
161
296
  readonly items: readonly QuestionResponseItem[];
162
- readonly questionId: string;
297
+ readonly questionId: number;
163
298
  readonly questionTypeId: number;
164
299
  readonly version: string;
165
300
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,eAAO,MAAM,wBAAwB,oEAM3B,CAAC;AAEX,MAA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M,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,IAAI,EACT,mBAAmB,GACnB,sBAAsB,GACtB,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentEditorTranslator } from "./i18n";
3
+ import type { QuestionContentClassificationItem, QuestionContentItem, QuestionContentRichTextControls } from "./types";
4
+ type QuestionContentClassificationEditorProps = {
5
+ disabled: boolean;
6
+ hasAnswer: boolean;
7
+ item: QuestionContentClassificationItem;
8
+ onChange: (item: QuestionContentItem) => void;
9
+ richTextControls: QuestionContentRichTextControls;
10
+ translator: QuestionContentEditorTranslator;
11
+ };
12
+ export declare function QuestionContentClassificationEditor({ disabled, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentClassificationEditorProps>): ReactElement;
13
+ export {};
14
+ //# sourceMappingURL=QuestionContentClassificationEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionContentClassificationEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentClassificationEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,KAAK,EACV,iCAAiC,EACjC,mBAAmB,EACnB,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAsBjB,KAAK,wCAAwC,GAAG;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,iCAAiC,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,mCAAmC,CAAC,EAClD,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,wCAAwC,CAAC,GAAG,YAAY,CAmLnE"}
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement } from "react";
2
+ import { type RichTextEditorRootProps } from "@yungu-fed/rich-text-editor";
2
3
  import type { QuestionLocale } from "../i18n";
3
4
  import type { QuestionContentDraft, QuestionContentStructure, QuestionContentSubquestionTemplate } from "./types";
4
5
  import "./QuestionContentEditorLayout.css";
@@ -9,7 +10,8 @@ export type QuestionContentEditorProps = {
9
10
  onChange: (draft: QuestionContentDraft) => void;
10
11
  structure: QuestionContentStructure;
11
12
  subquestionTemplates?: QuestionContentSubquestionTemplate[];
13
+ uploadImage?: RichTextEditorRootProps["uploadImage"];
12
14
  value: QuestionContentDraft;
13
15
  };
14
- export declare function QuestionContentEditor({ disabled, locale, onChange, structure, subquestionTemplates, value, }: Readonly<QuestionContentEditorProps>): ReactElement;
16
+ export declare function QuestionContentEditor({ disabled, locale, onChange, structure, subquestionTemplates, uploadImage, value, }: Readonly<QuestionContentEditorProps>): ReactElement;
15
17
  //# sourceMappingURL=QuestionContentEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionContentEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,OAAO,KAAK,EACV,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,oBAAoB,EAKpB,wBAAwB,EAExB,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAajB,OAAO,mCAAmC,CAAC;AAI3C,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,wBAAwB,CAAC;IACpC,oBAAoB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC5D,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAgB,EAChB,MAAgB,EAChB,QAAQ,EACR,SAAS,EACT,oBAAyB,EACzB,KAAK,GACN,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,CAkHrD"}
1
+ {"version":3,"file":"QuestionContentEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EACV,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,oBAAoB,EAKpB,wBAAwB,EAExB,kCAAkC,EACnC,MAAM,SAAS,CAAC;AAcjB,OAAO,mCAAmC,CAAC;AAI3C,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,wBAAwB,CAAC;IACpC,oBAAoB,CAAC,EAAE,kCAAkC,EAAE,CAAC;IAC5D,WAAW,CAAC,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACrD,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,EACpC,QAAgB,EAChB,MAAgB,EAChB,QAAQ,EACR,SAAS,EACT,oBAAyB,EACzB,WAAW,EACX,KAAK,GACN,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,YAAY,CAoHrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionContentElementEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentElementEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAGV,mBAAmB,EAGnB,+BAA+B,EAE/B,+BAA+B,EAChC,MAAM,SAAS,CAAC;AAUjB,KAAK,iCAAiC,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,+BAA+B,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAoF5D"}
1
+ {"version":3,"file":"QuestionContentElementEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentElementEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAIV,mBAAmB,EAMnB,+BAA+B,EAE/B,+BAA+B,EAGhC,MAAM,SAAS,CAAC;AAgBjB,KAAK,iCAAiC,GAAG;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,+BAA+B,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAaF,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,KAAK,EACL,UAAU,GACX,EAAE,QAAQ,CAAC,iCAAiC,CAAC,GAAG,YAAY,CAyE5D"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentEditorTranslator } from "./i18n";
3
+ import type { QuestionContentItem, QuestionContentLineConnectItem, QuestionContentLineConnectStructureElement, QuestionContentRichTextControls } from "./types";
4
+ type QuestionContentLineConnectEditorProps = {
5
+ disabled: boolean;
6
+ element: QuestionContentLineConnectStructureElement;
7
+ hasAnswer: boolean;
8
+ item: QuestionContentLineConnectItem;
9
+ onChange: (item: QuestionContentItem) => void;
10
+ richTextControls: QuestionContentRichTextControls;
11
+ translator: QuestionContentEditorTranslator;
12
+ };
13
+ export declare function QuestionContentLineConnectEditor({ disabled, element, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentLineConnectEditorProps>): ReactElement;
14
+ export {};
15
+ //# sourceMappingURL=QuestionContentLineConnectEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionContentLineConnectEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentLineConnectEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAQzD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,mBAAmB,EAEnB,8BAA8B,EAE9B,0CAA0C,EAC1C,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAmDjB,KAAK,qCAAqC,GAAG;IAC3C,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,0CAA0C,CAAC;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,8BAA8B,CAAC;IACrC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,qCAAqC,CAAC,GAAG,YAAY,CA4ehE"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from "react";
2
+ import type { QuestionContentEditorTranslator } from "./i18n";
3
+ import type { QuestionContentItem, QuestionContentMatchingItem, QuestionContentMatchingStructureElement, QuestionContentRichTextControls } from "./types";
4
+ type QuestionContentMatchingEditorProps = {
5
+ disabled: boolean;
6
+ element: QuestionContentMatchingStructureElement;
7
+ hasAnswer: boolean;
8
+ item: QuestionContentMatchingItem;
9
+ onChange: (item: QuestionContentItem) => void;
10
+ richTextControls: QuestionContentRichTextControls;
11
+ translator: QuestionContentEditorTranslator;
12
+ };
13
+ export declare function QuestionContentMatchingEditor({ disabled, element, hasAnswer, item, onChange, richTextControls, translator, }: Readonly<QuestionContentMatchingEditorProps>): ReactElement;
14
+ export {};
15
+ //# sourceMappingURL=QuestionContentMatchingEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionContentMatchingEditor.d.ts","sourceRoot":"","sources":["../../../src/question/content-editor/QuestionContentMatchingEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAQzD,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,mBAAmB,EAGnB,2BAA2B,EAC3B,uCAAuC,EACvC,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAoDjB,KAAK,kCAAkC,GAAG;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,uCAAuC,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,2BAA2B,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC9C,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,UAAU,EAAE,+BAA+B,CAAC;CAC7C,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,GACX,EAAE,QAAQ,CAAC,kCAAkC,CAAC,GAAG,YAAY,CA2c7D"}