@pie-element/fraction-model 6.1.1 → 6.1.2-next.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.
Files changed (85) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/card-bar.d.ts +20 -0
  4. package/dist/author/card-bar.js +40 -0
  5. package/dist/author/defaults.d.ts +113 -0
  6. package/dist/author/defaults.js +84 -0
  7. package/dist/author/index.d.ts +44 -0
  8. package/dist/author/index.js +88 -0
  9. package/dist/author/main.d.ts +25 -0
  10. package/dist/author/main.js +156 -0
  11. package/dist/author/model-options.d.ts +32 -0
  12. package/dist/author/model-options.js +85 -0
  13. package/dist/author/number-text-field.d.ts +15 -0
  14. package/dist/author/number-text-field.js +24 -0
  15. package/dist/browser/author/index.js +36733 -0
  16. package/dist/browser/author/index.js.map +1 -0
  17. package/dist/browser/controller/index.js +78 -0
  18. package/dist/browser/controller/index.js.map +1 -0
  19. package/dist/browser/delivery/index.js +2 -0
  20. package/dist/browser/delivery-BwB7hVA6.js +27725 -0
  21. package/dist/browser/delivery-BwB7hVA6.js.map +1 -0
  22. package/dist/browser/dist-DSzihwLW.js +85 -0
  23. package/dist/browser/dist-DSzihwLW.js.map +1 -0
  24. package/dist/browser/fraction-model.css +2 -0
  25. package/dist/controller/defaults.d.ts +21 -0
  26. package/dist/controller/defaults.js +13 -0
  27. package/dist/controller/index.d.ts +23 -0
  28. package/dist/controller/index.js +68 -0
  29. package/dist/delivery/answer-fraction.d.ts +27 -0
  30. package/dist/delivery/answer-fraction.js +69 -0
  31. package/dist/delivery/fraction-model-chart.d.ts +11 -0
  32. package/dist/delivery/fraction-model-chart.js +154 -0
  33. package/dist/delivery/index.d.ts +22 -0
  34. package/dist/delivery/index.js +54 -0
  35. package/dist/delivery/main.d.ts +38 -0
  36. package/dist/delivery/main.js +136 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.iife.d.ts +8 -0
  39. package/dist/index.iife.js +179 -0
  40. package/dist/index.js +2 -0
  41. package/dist/runtime-support.d.ts +12 -0
  42. package/dist/runtime-support.js +12 -0
  43. package/package.json +83 -19
  44. package/CHANGELOG.json +0 -1
  45. package/CHANGELOG.md +0 -588
  46. package/LICENSE.md +0 -5
  47. package/README.md +0 -18
  48. package/configure/CHANGELOG.json +0 -1
  49. package/configure/CHANGELOG.md +0 -553
  50. package/configure/lib/card-bar.js +0 -57
  51. package/configure/lib/card-bar.js.map +0 -1
  52. package/configure/lib/defaults.js +0 -114
  53. package/configure/lib/defaults.js.map +0 -1
  54. package/configure/lib/index.js +0 -163
  55. package/configure/lib/index.js.map +0 -1
  56. package/configure/lib/main.js +0 -253
  57. package/configure/lib/main.js.map +0 -1
  58. package/configure/lib/model-options.js +0 -144
  59. package/configure/lib/model-options.js.map +0 -1
  60. package/configure/lib/number-text-field.js +0 -47
  61. package/configure/lib/number-text-field.js.map +0 -1
  62. package/configure/package.json +0 -24
  63. package/controller/CHANGELOG.json +0 -1
  64. package/controller/CHANGELOG.md +0 -480
  65. package/controller/lib/defaults.js +0 -20
  66. package/controller/lib/defaults.js.map +0 -1
  67. package/controller/lib/index.js +0 -215
  68. package/controller/lib/index.js.map +0 -1
  69. package/controller/package.json +0 -15
  70. package/docs/config-schema.json +0 -1796
  71. package/docs/config-schema.json.md +0 -1318
  72. package/docs/demo/config.js +0 -8
  73. package/docs/demo/generate.js +0 -6
  74. package/docs/demo/index.html +0 -1
  75. package/docs/demo/session.js +0 -6
  76. package/docs/pie-schema.json +0 -873
  77. package/docs/pie-schema.json.md +0 -639
  78. package/lib/answer-fraction.js +0 -109
  79. package/lib/answer-fraction.js.map +0 -1
  80. package/lib/fraction-model-chart.js +0 -279
  81. package/lib/fraction-model-chart.js.map +0 -1
  82. package/lib/index.js +0 -91
  83. package/lib/index.js.map +0 -1
  84. package/lib/main.js +0 -203
  85. package/lib/main.js.map +0 -1
@@ -1,215 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.validate = exports.outcome = exports.model = exports.getResponseCorrectness = exports.createDefaultModel = exports.createCorrectResponseSession = void 0;
8
- var _lodashEs = require("lodash-es");
9
- var _defaults = _interopRequireDefault(require("./defaults"));
10
- /*
11
- * Function to check the correctness of the response
12
- * @param {model} model contains the model object
13
- * @param {answers} answers contains the answers object
14
- * @param {env} env contains the environment object
15
- * @returns {string} returns the correctness of the response
16
- * */
17
- const getResponseCorrectness = (model, answers, env = {}) => {
18
- let correct;
19
- if (model.allowedStudentConfig) {
20
- correct = !!(answers.partsPerModel === model.partsPerModel && partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response));
21
- } else {
22
- correct = !!(partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response));
23
- }
24
- return correct ? 'correct' : 'incorrect';
25
- };
26
-
27
- /*
28
- * Function to get the correctness of the response
29
- * @param {question} question contains the question object
30
- * @param {env} env contains the environment object
31
- * @param {answers} answers contains the answers object
32
- * @returns {string} returns the correctness
33
- * */
34
- exports.getResponseCorrectness = getResponseCorrectness;
35
- const getCorrectness = (question, env, answers = {}) => {
36
- if (env.mode === 'evaluate') {
37
- return getResponseCorrectness(question, answers, env);
38
- }
39
- };
40
-
41
- /*
42
- * Function to get the outcome score
43
- * @param {question} question contains the question object
44
- * @param {env} env contains the environment object
45
- * @param {answers} answers contains the answers object
46
- * @returns {number} returns the score
47
- * */
48
- const getOutComeScore = (question, env, answers = {}) => {
49
- const correctness = getCorrectness(question, env, answers);
50
- return correctness === 'correct' ? 1 : 0;
51
- };
52
-
53
- /*
54
- * Function to check outcome of the session
55
- * @param {model} model contains the model object
56
- * @param {session} session contains the session object
57
- * @param {env} env contains the environment object
58
- * @returns {Promise} returns the score
59
- */
60
- const outcome = (model, session, env) => new Promise(resolve => {
61
- if (!session || (0, _lodashEs.isEmpty)(session)) {
62
- resolve({
63
- score: 0,
64
- empty: true
65
- });
66
- } else {
67
- if (env.mode !== 'evaluate') {
68
- resolve({
69
- score: undefined,
70
- completed: undefined
71
- });
72
- } else {
73
- resolve({
74
- score: getOutComeScore(model, env, session.answers)
75
- });
76
- }
77
- }
78
- });
79
-
80
- /*
81
- * Function to check if the numerator of the response matches the numerator of the correct response
82
- * @param {correctResponse} correctResponse contains the correct response object
83
- * @param {response} response contains the response object
84
- * @returns {boolean} returns true if the numerators match
85
- * */
86
- exports.outcome = outcome;
87
- const numeratorCheck = (correctResponse, response) => {
88
- let correctNumerator = 0;
89
- let responseNumerator = 0;
90
- for (let i = 0; i < correctResponse.length; i++) {
91
- correctNumerator += correctResponse[i].value;
92
- }
93
- for (let i = 0; i < response.length; i++) {
94
- responseNumerator += response[i].value;
95
- }
96
- return correctNumerator === responseNumerator;
97
- };
98
-
99
- /*
100
- * Function to check if the response contains more than one partially-filled model
101
- * @param {response} response contains the response object
102
- * @param {partsPerModel} partsPerModel contains the number of parts per model
103
- * */
104
- const partialFillCheck = (response, partsPerModel) => {
105
- if (response.length > 0) {
106
- let partialModelCount = 0;
107
- response.forEach(selection => {
108
- if (selection.value !== partsPerModel) {
109
- partialModelCount++;
110
- }
111
- });
112
- return partialModelCount <= 1;
113
- } else {
114
- return false;
115
- }
116
- };
117
-
118
- /*
119
- * Function to create a default model
120
- * @param {model} model contains the model object
121
- * */
122
- const createDefaultModel = (model = {}) => ({
123
- ..._defaults.default.model,
124
- ...model
125
- });
126
-
127
- /*
128
- * Return the model object
129
- * */
130
- exports.createDefaultModel = createDefaultModel;
131
- const model = (question, session, env) => {
132
- return new Promise(resolve => {
133
- session = session || {};
134
- const model = createDefaultModel(question);
135
- let correctness, score;
136
- if ((!session || (0, _lodashEs.isEmpty)(session)) && env.mode === 'evaluate') {
137
- correctness = 'unanswered';
138
- score = '0%';
139
- } else {
140
- correctness = getCorrectness(model, env, session && session.answers);
141
- score = `${getOutComeScore(model, env, session && session.answers) * 100}%`;
142
- }
143
- const correctInfo = {
144
- score,
145
- correctness
146
- };
147
- const out = {
148
- env,
149
- ...model,
150
- view: env.mode === 'view' || env.mode === 'evaluate'
151
- };
152
- if (env.mode === 'evaluate') {
153
- Object.assign(out, {
154
- correctness: correctInfo
155
- });
156
- }
157
- resolve(out);
158
- });
159
- };
160
-
161
- /*
162
- * Function to create a correct response session
163
- * @param {model} model contains the model object
164
- * @param {env} env contains the environment object
165
- * @returns {Promise} returns the correct response session
166
- * */
167
- exports.model = model;
168
- const createCorrectResponseSession = (model, env) => {
169
- return new Promise(resolve => {
170
- if (env.mode !== 'evaluate' && env.role === 'instructor') {
171
- const {
172
- correctResponse,
173
- maxModelSelected,
174
- partsPerModel
175
- } = model;
176
- resolve({
177
- answers: {
178
- response: correctResponse,
179
- noOfModel: maxModelSelected,
180
- partsPerModel
181
- },
182
- id: '1'
183
- });
184
- } else {
185
- resolve(null);
186
- }
187
- });
188
- };
189
-
190
- /*
191
- * Function to validate the model
192
- * @param {model} model contains the model object
193
- * @param {config} config contains the config object
194
- * */
195
- exports.createCorrectResponseSession = createCorrectResponseSession;
196
- const validate = (model = {}, config = {}) => {
197
- const errors = {};
198
- if (model.correctResponse.length === 0) {
199
- errors.correctResponse = 'To save the item, at least one section must be marked as correct.';
200
- }
201
- if (model.correctResponse.length > 0) {
202
- let partialModelCount = 0;
203
- model.correctResponse.forEach(selection => {
204
- if (selection.value !== model.partsPerModel) {
205
- partialModelCount++;
206
- }
207
- });
208
- if (partialModelCount > 1) {
209
- errors.correctResponse = 'The correct answer should include no more than one partially-filled model';
210
- }
211
- }
212
- return errors;
213
- };
214
- exports.validate = validate;
215
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["_lodashEs","require","_defaults","_interopRequireDefault","getResponseCorrectness","model","answers","env","correct","allowedStudentConfig","partsPerModel","partialFillCheck","response","numeratorCheck","correctResponse","exports","getCorrectness","question","mode","getOutComeScore","correctness","outcome","session","Promise","resolve","isEmpty","score","empty","undefined","completed","correctNumerator","responseNumerator","i","length","value","partialModelCount","forEach","selection","createDefaultModel","defaults","correctInfo","out","view","Object","assign","createCorrectResponseSession","role","maxModelSelected","noOfModel","id","validate","config","errors"],"sources":["../src/index.js"],"sourcesContent":["import { isEmpty } from 'lodash-es';\nimport defaults from './defaults';\n\n/*\n * Function to check the correctness of the response\n * @param {model} model contains the model object\n * @param {answers} answers contains the answers object\n * @param {env} env contains the environment object\n * @returns {string} returns the correctness of the response\n * */\nexport const getResponseCorrectness = (model, answers, env = {}) => {\n let correct;\n if (model.allowedStudentConfig) {\n correct = !!(\n answers.partsPerModel === model.partsPerModel &&\n partialFillCheck(answers.response, model.partsPerModel) &&\n numeratorCheck(model.correctResponse, answers.response)\n );\n } else {\n correct = !!(\n partialFillCheck(answers.response, model.partsPerModel) && numeratorCheck(model.correctResponse, answers.response)\n );\n }\n return correct ? 'correct' : 'incorrect';\n};\n\n/*\n * Function to get the correctness of the response\n * @param {question} question contains the question object\n * @param {env} env contains the environment object\n * @param {answers} answers contains the answers object\n * @returns {string} returns the correctness\n * */\nconst getCorrectness = (question, env, answers = {}) => {\n if (env.mode === 'evaluate') {\n return getResponseCorrectness(question, answers, env);\n }\n};\n\n/*\n * Function to get the outcome score\n * @param {question} question contains the question object\n * @param {env} env contains the environment object\n * @param {answers} answers contains the answers object\n * @returns {number} returns the score\n * */\nconst getOutComeScore = (question, env, answers = {}) => {\n const correctness = getCorrectness(question, env, answers);\n return correctness === 'correct' ? 1 : 0;\n};\n\n/*\n * Function to check outcome of the session\n * @param {model} model contains the model object\n * @param {session} session contains the session object\n * @param {env} env contains the environment object\n * @returns {Promise} returns the score\n */\nexport const outcome = (model, session, env) =>\n new Promise((resolve) => {\n if (!session || isEmpty(session)) {\n resolve({ score: 0, empty: true });\n } else {\n if (env.mode !== 'evaluate') {\n resolve({ score: undefined, completed: undefined });\n } else {\n resolve({ score: getOutComeScore(model, env, session.answers) });\n }\n }\n });\n\n/*\n * Function to check if the numerator of the response matches the numerator of the correct response\n * @param {correctResponse} correctResponse contains the correct response object\n * @param {response} response contains the response object\n * @returns {boolean} returns true if the numerators match\n * */\nconst numeratorCheck = (correctResponse, response) => {\n let correctNumerator = 0;\n let responseNumerator = 0;\n for (let i = 0; i < correctResponse.length; i++) {\n correctNumerator += correctResponse[i].value;\n }\n for (let i = 0; i < response.length; i++) {\n responseNumerator += response[i].value;\n }\n return correctNumerator === responseNumerator;\n};\n\n/*\n * Function to check if the response contains more than one partially-filled model\n * @param {response} response contains the response object\n * @param {partsPerModel} partsPerModel contains the number of parts per model\n * */\nconst partialFillCheck = (response, partsPerModel) => {\n if (response.length > 0) {\n let partialModelCount = 0;\n response.forEach((selection) => {\n if (selection.value !== partsPerModel) {\n partialModelCount++;\n }\n });\n return partialModelCount <= 1;\n } else {\n return false;\n }\n};\n\n/*\n * Function to create a default model\n * @param {model} model contains the model object\n * */\nexport const createDefaultModel = (model = {}) => ({\n ...defaults.model,\n ...model,\n});\n\n/*\n * Return the model object\n * */\nexport const model = (question, session, env) => {\n return new Promise((resolve) => {\n session = session || {};\n const model = createDefaultModel(question);\n let correctness, score;\n if ((!session || isEmpty(session)) && env.mode === 'evaluate') {\n correctness = 'unanswered';\n score = '0%';\n } else {\n correctness = getCorrectness(model, env, session && session.answers);\n score = `${getOutComeScore(model, env, session && session.answers) * 100}%`;\n }\n const correctInfo = {\n score,\n correctness,\n };\n const out = {\n env,\n ...model,\n view: env.mode === 'view' || env.mode === 'evaluate',\n };\n if (env.mode === 'evaluate') {\n Object.assign(out, {\n correctness: correctInfo,\n });\n }\n resolve(out);\n });\n};\n\n/*\n * Function to create a correct response session\n * @param {model} model contains the model object\n * @param {env} env contains the environment object\n * @returns {Promise} returns the correct response session\n * */\nexport const createCorrectResponseSession = (model, env) => {\n return new Promise((resolve) => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n const { correctResponse, maxModelSelected, partsPerModel } = model;\n resolve({\n answers: {\n response: correctResponse,\n noOfModel: maxModelSelected,\n partsPerModel,\n },\n id: '1',\n });\n } else {\n resolve(null);\n }\n });\n};\n\n/*\n * Function to validate the model\n * @param {model} model contains the model object\n * @param {config} config contains the config object\n * */\nexport const validate = (model = {}, config = {}) => {\n const errors = {};\n if (model.correctResponse.length === 0) {\n errors.correctResponse = 'To save the item, at least one section must be marked as correct.';\n }\n if (model.correctResponse.length > 0) {\n let partialModelCount = 0;\n model.correctResponse.forEach((selection) => {\n if (selection.value !== model.partsPerModel) {\n partialModelCount++;\n }\n });\n if (partialModelCount > 1) {\n errors.correctResponse = 'The correct answer should include no more than one partially-filled model';\n }\n }\n return errors;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,sBAAsB,GAAGA,CAACC,KAAK,EAAEC,OAAO,EAAEC,GAAG,GAAG,CAAC,CAAC,KAAK;EAClE,IAAIC,OAAO;EACX,IAAIH,KAAK,CAACI,oBAAoB,EAAE;IAC9BD,OAAO,GAAG,CAAC,EACTF,OAAO,CAACI,aAAa,KAAKL,KAAK,CAACK,aAAa,IAC7CC,gBAAgB,CAACL,OAAO,CAACM,QAAQ,EAAEP,KAAK,CAACK,aAAa,CAAC,IACvDG,cAAc,CAACR,KAAK,CAACS,eAAe,EAAER,OAAO,CAACM,QAAQ,CAAC,CACxD;EACH,CAAC,MAAM;IACLJ,OAAO,GAAG,CAAC,EACTG,gBAAgB,CAACL,OAAO,CAACM,QAAQ,EAAEP,KAAK,CAACK,aAAa,CAAC,IAAIG,cAAc,CAACR,KAAK,CAACS,eAAe,EAAER,OAAO,CAACM,QAAQ,CAAC,CACnH;EACH;EACA,OAAOJ,OAAO,GAAG,SAAS,GAAG,WAAW;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AANAO,OAAA,CAAAX,sBAAA,GAAAA,sBAAA;AAO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;MAAc,CAAC,GAAGL,KAAK;MAClEmB,OAAO,CAAC;QACNlB,OAAO,EAAE;UACPM,QAAQ,EAAEE,eAAe;UACzBkC,SAAS,EAAED,gBAAgB;UAC3BrC;QACF,CAAC;QACDuC,EAAE,EAAE;MACN,CAAC,CAAC;IACJ,CAAC,MAAM;MACLzB,OAAO,CAAC,IAAI,CAAC;IACf;EACF,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AAJAT,OAAA,CAAA8B,4BAAA,GAAAA,4BAAA;AAKO,MAAMK,QAAQ,GAAGA,CAAC7C,KAAK,GAAG,CAAC,CAAC,EAAE8C,MAAM,GAAG,CAAC,CAAC,KAAK;EACnD,MAAMC,MAAM,GAAG,CAAC,CAAC;EACjB,IAAI/C,KAAK,CAACS,eAAe,CAACmB,MAAM,KAAK,CAAC,EAAE;IACtCmB,MAAM,CAACtC,eAAe,GAAG,mEAAmE;EAC9F;EACA,IAAIT,KAAK,CAACS,eAAe,CAACmB,MAAM,GAAG,CAAC,EAAE;IACpC,IAAIE,iBAAiB,GAAG,CAAC;IACzB9B,KAAK,CAACS,eAAe,CAACsB,OAAO,CAAEC,SAAS,IAAK;MAC3C,IAAIA,SAAS,CAACH,KAAK,KAAK7B,KAAK,CAACK,aAAa,EAAE;QAC3CyB,iBAAiB,EAAE;MACrB;IACF,CAAC,CAAC;IACF,IAAIA,iBAAiB,GAAG,CAAC,EAAE;MACzBiB,MAAM,CAACtC,eAAe,GAAG,2EAA2E;IACtG;EACF;EACA,OAAOsC,MAAM;AACf,CAAC;AAACrC,OAAA,CAAAmC,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- {
2
- "name": "@pie-element/fraction-model-controller",
3
- "private": true,
4
- "version": "5.1.1",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "module": "src/index.js",
8
- "dependencies": {
9
- "@pie-lib/text-select": "3.0.2",
10
- "debug": "^4.1.1",
11
- "lodash-es": "^4.17.23"
12
- },
13
- "author": "",
14
- "license": "ISC"
15
- }