@digabi/exam-engine-core 22.1.1 → 22.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../..';
3
+ export declare const DNDAnswer: ({ element, renderChildNodes }: ExamComponentProps) => React.JSX.Element;
4
+ //# sourceMappingURL=DNDAnswer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DNDAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/DNDAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAG1C,eAAO,MAAM,SAAS,kCAAmC,kBAAkB,sBAS1E,CAAA"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { mapChildElements } from '../../dom-utils';
3
+ export const DNDAnswer = ({ element, renderChildNodes }) => {
4
+ console.log('answer', element);
5
+ return (React.createElement("div", null, mapChildElements(element, childElement => (React.createElement(DNDAnswerGroup, { element: childElement, renderChildNodes: renderChildNodes })))));
6
+ };
7
+ const DNDAnswerGroup = ({ element, renderChildNodes }) => {
8
+ console.log('group', element);
9
+ return (React.createElement("div", null,
10
+ renderChildNodes(element),
11
+ mapChildElements(element, childElement => (React.createElement(DNDAnswerOption, { element: childElement, renderChildNodes: renderChildNodes })))));
12
+ };
13
+ const DNDAnswerOption = ({ element, renderChildNodes }) => {
14
+ console.log('option', element);
15
+ return React.createElement("div", null, renderChildNodes(element));
16
+ };
17
+ //# sourceMappingURL=DNDAnswer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DNDAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/DNDAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IAC7E,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC9B,OAAO,CACL,iCACG,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,CACzC,oBAAC,cAAc,IAAC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAC9E,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IAC3E,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,CACL;QACG,gBAAgB,CAAC,OAAO,CAAC;QACzB,gBAAgB,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,CACzC,oBAAC,eAAe,IAAC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAC/E,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IAC5E,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC9B,OAAO,iCAAM,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAAA;AAC/C,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import Results from './components/results/Results';
6
6
  import parseExam from './parser/parseExam';
7
7
  export { Attachments, Exam, GradingInstructions, Results, parseExam };
8
8
  export { ExamComponentProps } from './createRenderChildNodes';
9
+ export { GradingAnswer } from './components/grading/GradingAnswer';
9
10
  export * from './types/ExamAnswer';
10
11
  export * from './types/ExamServerAPI';
11
12
  export * from './types/GradingStructure';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,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,UAAU;IACzB,WAAW,EAAE,OAAO,WAAW,CAAA;IAC/B,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,OAAO,EAAE,OAAO,OAAO,CAAA;CACxB"}
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import GradingInstructions from './components/grading-instructions/GradingInstru
5
5
  import Results from './components/results/Results';
6
6
  import parseExam from './parser/parseExam';
7
7
  export { Attachments, Exam, GradingInstructions, Results, parseExam };
8
+ export { GradingAnswer } from './components/grading/GradingAnswer';
8
9
  export * from './types/ExamAnswer';
9
10
  export * from './types/ExamServerAPI';
10
11
  export * from './types/GradingStructure';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAC7B,OAAO,WAAW,MAAM,sCAAsC,CAAA;AAC9D,OAAO,IAAI,MAAM,wBAAwB,CAAA;AACzC,OAAO,mBAAmB,MAAM,uDAAuD,CAAA;AACvF,OAAO,OAAO,MAAM,8BAA8B,CAAA;AAClD,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA;AAErE,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAC7B,OAAO,WAAW,MAAM,sCAAsC,CAAA;AAC9D,OAAO,IAAI,MAAM,wBAAwB,CAAA;AACzC,OAAO,mBAAmB,MAAM,uDAAuD,CAAA;AACvF,OAAO,OAAO,MAAM,8BAA8B,CAAA;AAClD,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,SAAS,EAAE,CAAA;AAErE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA"}