@pie-element/likert 0.24.1-next.2 → 0.24.1-next.33
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/configure/lib/defaults.js +49 -2
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/main.js +17 -4
- package/configure/lib/main.js.map +1 -1
- package/configure/package.json +1 -1
- package/docs/config-schema.json +360 -1
- package/docs/config-schema.json.md +261 -1
- package/docs/pie-schema.json +127 -0
- package/docs/pie-schema.json.md +92 -0
- package/package.json +3 -3
|
@@ -18,9 +18,31 @@ var _default = {
|
|
|
18
18
|
teacherInstructionsEnabled: true
|
|
19
19
|
},
|
|
20
20
|
configuration: {
|
|
21
|
+
baseInputConfiguration: {
|
|
22
|
+
audio: {
|
|
23
|
+
disabled: false
|
|
24
|
+
},
|
|
25
|
+
video: {
|
|
26
|
+
disabled: false
|
|
27
|
+
},
|
|
28
|
+
image: {
|
|
29
|
+
disabled: false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
21
32
|
prompt: {
|
|
22
33
|
settings: true,
|
|
23
|
-
label: 'Prompt'
|
|
34
|
+
label: 'Prompt',
|
|
35
|
+
inputConfiguration: {
|
|
36
|
+
audio: {
|
|
37
|
+
disabled: false
|
|
38
|
+
},
|
|
39
|
+
video: {
|
|
40
|
+
disabled: false
|
|
41
|
+
},
|
|
42
|
+
image: {
|
|
43
|
+
disabled: false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
24
46
|
},
|
|
25
47
|
settingsPanelDisabled: false,
|
|
26
48
|
spellCheck: {
|
|
@@ -30,7 +52,32 @@ var _default = {
|
|
|
30
52
|
},
|
|
31
53
|
teacherInstructions: {
|
|
32
54
|
settings: true,
|
|
33
|
-
label: 'Teacher Instructions'
|
|
55
|
+
label: 'Teacher Instructions',
|
|
56
|
+
inputConfiguration: {
|
|
57
|
+
audio: {
|
|
58
|
+
disabled: false
|
|
59
|
+
},
|
|
60
|
+
video: {
|
|
61
|
+
disabled: false
|
|
62
|
+
},
|
|
63
|
+
image: {
|
|
64
|
+
disabled: false
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
likertChoice: {
|
|
69
|
+
label: 'Choice',
|
|
70
|
+
inputConfiguration: {
|
|
71
|
+
audio: {
|
|
72
|
+
disabled: false
|
|
73
|
+
},
|
|
74
|
+
video: {
|
|
75
|
+
disabled: false
|
|
76
|
+
},
|
|
77
|
+
image: {
|
|
78
|
+
disabled: false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
34
81
|
}
|
|
35
82
|
}
|
|
36
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/defaults.js"],"names":["model","likertScale","likertType","likertOrientation","choices","teacherInstructionsEnabled","configuration","prompt","settings","label","settingsPanelDisabled","spellCheck","enabled","teacherInstructions"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;eACe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,WAAW,EAAE,SADR;AAELC,IAAAA,UAAU,EAAE,WAFP;AAGLC,IAAAA,iBAAiB,EAAE,YAHd;AAILC,IAAAA,OAAO,EAAE,EAJJ;AAKLC,IAAAA,0BAA0B,EAAE;AALvB,GADM;AAQbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,MAAM,EAAE;AACNC,MAAAA,QAAQ,EAAE,IADJ;AAENC,MAAAA,KAAK,EAAE;
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","likertScale","likertType","likertOrientation","choices","teacherInstructionsEnabled","configuration","baseInputConfiguration","audio","disabled","video","image","prompt","settings","label","inputConfiguration","settingsPanelDisabled","spellCheck","enabled","teacherInstructions","likertChoice"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;eACe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,WAAW,EAAE,SADR;AAELC,IAAAA,UAAU,EAAE,WAFP;AAGLC,IAAAA,iBAAiB,EAAE,YAHd;AAILC,IAAAA,OAA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,EAAE;AAClBP,QAAAA,KAAK,EAAE;AAAEC,UAAAA,QAAQ,EAAE;AAAZ,SADW;AAElBC,QAAAA,KAAK,EAAE;AAAED,UAAAA,QAAQ,EAAE;AAAZ,SAFW;AAGlBE,QAAAA,KAAK,EAAE;AAAEF,UAAAA,QAAQ,EAAE;AAAZ;AAHW;AAFR;AA9BD;AARF,C","sourcesContent":["/** NOTE: teacherInstructions, studentInstructions, rationale & scoringType\n * functionalities are not defined yet - the value for those can belong to\n * model or to configure\n */\nexport default {\n model: {\n likertScale: 'likert3',\n likertType: 'agreement',\n likertOrientation: 'horizontal',\n choices: [],\n teacherInstructionsEnabled: true,\n },\n configuration: {\n baseInputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n },\n prompt: {\n settings: true,\n label: 'Prompt',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n }\n },\n settingsPanelDisabled: false,\n spellCheck: {\n label: 'Spellcheck',\n settings: false,\n enabled: true,\n },\n teacherInstructions: {\n settings: true,\n label: 'Teacher Instructions',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n }\n },\n likertChoice: {\n label: 'Choice',\n inputConfiguration: {\n audio: { disabled: false },\n video: { disabled: false },\n image: { disabled: false },\n }\n },\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/main.js
CHANGED
|
@@ -273,7 +273,11 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
|
|
|
273
273
|
_ref$spellCheck = _ref.spellCheck,
|
|
274
274
|
spellCheck = _ref$spellCheck === void 0 ? {} : _ref$spellCheck,
|
|
275
275
|
_ref$teacherInstructi = _ref.teacherInstructions,
|
|
276
|
-
teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi
|
|
276
|
+
teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
|
|
277
|
+
_ref$baseInputConfigu = _ref.baseInputConfiguration,
|
|
278
|
+
baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu,
|
|
279
|
+
_ref$likertChoice = _ref.likertChoice,
|
|
280
|
+
likertChoice = _ref$likertChoice === void 0 ? {} : _ref$likertChoice;
|
|
277
281
|
|
|
278
282
|
var _ref2 = model || {},
|
|
279
283
|
spellCheckEnabled = _ref2.spellCheckEnabled,
|
|
@@ -285,6 +289,12 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
|
|
|
285
289
|
spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
|
|
286
290
|
scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
|
|
287
291
|
};
|
|
292
|
+
|
|
293
|
+
var getPluginProps = function getPluginProps() {
|
|
294
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
295
|
+
return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
|
|
296
|
+
};
|
|
297
|
+
|
|
288
298
|
return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
289
299
|
dimensions: contentDimensions,
|
|
290
300
|
hideSettings: settingsPanelDisabled,
|
|
@@ -307,7 +317,8 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
|
|
|
307
317
|
imageSupport: imageSupport,
|
|
308
318
|
nonEmpty: false,
|
|
309
319
|
spellCheck: spellCheckEnabled,
|
|
310
|
-
uploadSoundSupport: uploadSoundSupport
|
|
320
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
321
|
+
pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration)
|
|
311
322
|
})), /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
|
|
312
323
|
label: prompt.label,
|
|
313
324
|
className: classes.promptHolder
|
|
@@ -319,7 +330,8 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
|
|
|
319
330
|
nonEmpty: false,
|
|
320
331
|
spellCheck: spellCheckEnabled,
|
|
321
332
|
disableUnderline: true,
|
|
322
|
-
uploadSoundSupport: uploadSoundSupport
|
|
333
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
334
|
+
pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration)
|
|
323
335
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
324
336
|
className: classes.likertOptionsHolder
|
|
325
337
|
}, /*#__PURE__*/_react["default"].createElement(LikertScale, {
|
|
@@ -351,7 +363,8 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
|
|
|
351
363
|
},
|
|
352
364
|
imageSupport: imageSupport,
|
|
353
365
|
spellCheck: spellCheckEnabled,
|
|
354
|
-
uploadSoundSupport: uploadSoundSupport
|
|
366
|
+
uploadSoundSupport: uploadSoundSupport,
|
|
367
|
+
pluginProps: getPluginProps(likertChoice === null || likertChoice === void 0 ? void 0 : likertChoice.inputConfiguration)
|
|
355
368
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
369
|
className: classes.likertValueHolder
|
|
357
370
|
}, /*#__PURE__*/_react["default"].createElement(_configUi.NumberTextField, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","radioButtonsWrapper","display","flexDirection","radioButtonsColumnHeader","color","palette","grey","fontSize","typography","likertLabelHolder","alignItems","likertOptionsHolder","justifyContent","likertLabelInput","marginRight","errorMessage","error","main","width100","flexRow","likertValueHolder","paddingLeft","likertLabelEditableHtml","inputFormGroupIndex","LikertOrientation","props","classes","model","onChangeModel","onChangeLikertOrientation","e","likertOrientation","target","value","LIKERT_ORIENTATION","horizontal","vertical","LikertScale","onChangeLikertScale","likertScale","choices","likertType","LIKERT_SCALE","likert3","likert5","likert7","LikertType","onChangeLikertType","LIKERT_TYPE","agreement","frequency","yesNo","importance","likelihood","like","buildValuesMap","reduce","acc","choice","accClone","choiceValue","parseInt","Design","configuration","imageSupport","onChoiceChanged","onConfigurationChanged","onPromptChanged","onTeacherInstructionsChanged","uploadSoundSupport","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","spellCheckEnabled","teacherInstructionsEnabled","valuesMap","panelProperties","label","Properties","map","index","c","t","Main","onModelChanged","splice","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFrB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KADW;AAMzBE,IAAAA,mBAAmB,EAAE;AACnBC,MAAAA,OAAO,EAAE,MADU;AAEnBC,MAAAA,aAAa,EAAE;AAFI,KANI;AAUzBC,IAAAA,wBAAwB,EAAE;AACxBC,MAAAA,KAAK,EAAEX,KAAK,CAACY,OAAN,CAAcC,IAAd,CAAmB,GAAnB,CADiB;AAExBC,MAAAA,QAAQ,EAAEd,KAAK,CAACe,UAAN,CAAiBD,QAAjB,GAA4B;AAFd,KAVD;AAczBE,IAAAA,iBAAiB,EAAE;AACjBR,MAAAA,OAAO,EAAE,MADQ;AAEjBN,MAAAA,KAAK,EAAE,MAFU;AAGjBe,MAAAA,UAAU,EAAE,YAHK;AAIjBX,MAAAA,Y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AKA,KAAL,CAAW8D,cAF5B;AAGE,QAAA,eAAe,EAAE,KAAKtB,eAHxB;AAIE,QAAA,eAAe,EAAE,KAAKE,eAJxB;AAKE,QAAA,4BAA4B,EAAE,KAAKC;AALrC,SADF;AASD;;;EAxCuBqB,kBAAMC,S;;;iCAAnBJ,I,eACQ;AACjB3D,EAAAA,KAAK,EAAEgE,sBAAUC,MAAV,CAAiBC,UADP;AAEjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAFX;AAGjBR,EAAAA,cAAc,EAAEI,sBAAUK,IAAV,CAAeH,UAHd;AAIjB3B,EAAAA,sBAAsB,EAAEyB,sBAAUK,IAAV,CAAeH,UAJtB;AAKjBnE,EAAAA,OAAO,EAAEiE,sBAAUC,MAAV,CAAiBC,UALT;AAMjB7B,EAAAA,YAAY,EAAE2B,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AANG,C;AA0CrB,IAAMM,MAAM,GAAG,wBAAW3G,MAAX,EAAmB8F,IAAnB,CAAf;eAEea,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport { InputContainer, settings, layout, NumberTextField } from '@pie-lib/pie-toolbox/config-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport merge from 'lodash/merge';\nimport { LIKERT_TYPE, LIKERT_SCALE, LIKERT_ORIENTATION } from './likertEntities';\nimport generateChoices from './choiceGenerator';\n\nconst { Panel, toggle, radio } = settings;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n radioButtonsWrapper: {\n display: 'flex',\n flexDirection: 'column',\n },\n radioButtonsColumnHeader: {\n color: theme.palette.grey[400],\n fontSize: theme.typography.fontSize - 2,\n },\n likertLabelHolder: {\n display: 'flex',\n width: '100%',\n alignItems: 'flex-start',\n marginBottom: theme.spacing.unit * 2,\n },\n likertOptionsHolder: {\n display: 'flex',\n width: '100%',\n justifyContent: 'space-around',\n marginBottom: theme.spacing.unit * 2.5,\n },\n likertLabelInput: {\n width: 'calc(100% - 200px)',\n marginRight: 0,\n },\n errorMessage: {\n color: theme.palette.error.main,\n fontSize: theme.typography.fontSize - 2,\n },\n width100: {\n width: '100%',\n },\n flexRow: {\n display: 'flex',\n flexDirection: 'row',\n },\n likertValueHolder: {\n paddingLeft: theme.spacing.unit * 2.5,\n width: '150px',\n },\n likertLabelEditableHtml: {\n paddingTop: theme.spacing.unit * 2,\n },\n inputFormGroupIndex: {\n width: '30px',\n paddingTop: theme.spacing.unit * 4,\n },\n});\n\nconst LikertOrientation = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n\n const onChangeLikertOrientation = (e) => {\n const likertOrientation = e.target.value;\n\n onChangeModel({ ...model, likertOrientation });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Likert Orientation</p>\n <RadioGroup\n aria-label=\"likertOrientation\"\n name=\"likertOrientation\"\n value={model.likertOrientation}\n onChange={onChangeLikertOrientation}\n >\n <FormControlLabel value={LIKERT_ORIENTATION.horizontal} control={<Radio />} label=\"Horizontal\" />\n <FormControlLabel value={LIKERT_ORIENTATION.vertical} control={<Radio />} label=\"Vertical\" />\n </RadioGroup>\n </div>\n );\n});\n\nconst LikertScale = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n const onChangeLikertScale = (e) => {\n const likertScale = e.target.value;\n\n onChangeModel({\n ...model,\n likertScale,\n choices: generateChoices(likertScale, model.likertType),\n });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Likert Scale</p>\n <RadioGroup aria-label=\"likertScale\" name=\"likertScale\" value={model.likertScale} onChange={onChangeLikertScale}>\n <FormControlLabel value={LIKERT_SCALE.likert3} control={<Radio />} label=\"Likert 3\" />\n <FormControlLabel value={LIKERT_SCALE.likert5} control={<Radio />} label=\"Likert 5\" />\n <FormControlLabel value={LIKERT_SCALE.likert7} control={<Radio />} label=\"Likert 7\" />\n </RadioGroup>\n </div>\n );\n});\n\nconst LikertType = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n const onChangeLikertType = (e) => {\n const likertType = e.target.value;\n\n onChangeModel({\n ...model,\n likertType,\n choices: generateChoices(model.likertScale, likertType),\n });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Label Type</p>\n\n <div className={classes.flexRow}>\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.agreement} control={<Radio />} label=\"Agreement\" />\n <FormControlLabel value={LIKERT_TYPE.frequency} control={<Radio />} label=\"Frequency\" />\n <FormControlLabel value={LIKERT_TYPE.yesNo} control={<Radio />} label=\"Yes/No\" />\n </RadioGroup>\n\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.importance} control={<Radio />} label=\"Importance\" />\n <FormControlLabel value={LIKERT_TYPE.likelihood} control={<Radio />} label=\"Likelihood\" />\n <FormControlLabel value={LIKERT_TYPE.like} control={<Radio />} label=\"Like\" />\n </RadioGroup>\n </div>\n </div>\n );\n});\n\nconst buildValuesMap = (model) =>\n model.choices.reduce((acc, choice) => {\n const accClone = { ...acc };\n const choiceValue = parseInt(choice.value);\n\n if (!accClone[choiceValue]) {\n accClone[choiceValue] = 0;\n }\n\n return { ...accClone, [choiceValue]: accClone[choiceValue] + 1 };\n }, {});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n configuration,\n imageSupport,\n model,\n onChangeModel,\n onChoiceChanged,\n onConfigurationChanged,\n onPromptChanged,\n onTeacherInstructionsChanged,\n uploadSoundSupport,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n } = configuration || {};\n const { spellCheckEnabled, teacherInstructionsEnabled } = model || {};\n\n const valuesMap = buildValuesMap(model);\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n />\n </InputContainer>\n )}\n\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n uploadSoundSupport={uploadSoundSupport}\n />\n </InputContainer>\n\n <div className={classes.likertOptionsHolder}>\n <LikertScale model={model} onChangeModel={onChangeModel} />\n <LikertType model={model} onChangeModel={onChangeModel} />\n <LikertOrientation model={model} onChangeModel={onChangeModel} />\n </div>\n\n {model.choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.likertLabelHolder}>\n <span className={classes.inputFormGroupIndex}>{index + 1}.</span>\n <InputContainer key={`likert-label-${index}`} label={'Likert Label'} className={classes.likertLabelInput}>\n <EditableHtml\n className={classes.likertLabelEditableHtml}\n markup={choice.label || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, label: c })}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n />\n </InputContainer>\n\n <div className={classes.likertValueHolder}>\n <NumberTextField\n label={'Likert Value'}\n value={choice.value}\n className={classes.width100}\n max={100}\n min={-100}\n onChange={(e, t) => {\n onChoiceChanged(index, { ...choice, value: t });\n }}\n imageSupport={imageSupport}\n />\n {valuesMap[choice.value] && valuesMap[choice.value] > 1 && (\n <p className={classes.errorMessage}>Value should be unique</p>\n )}\n </div>\n </div>\n ))}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n model.choices = model.choices.map((choice) => merge({}, choice));\n model.choices.splice(index, 1, choice);\n\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onChoiceChanged={this.onChoiceChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","radioButtonsWrapper","display","flexDirection","radioButtonsColumnHeader","color","palette","grey","fontSize","typography","likertLabelHolder","alignItems","likertOptionsHolder","justifyContent","likertLabelInput","marginRight","errorMessage","error","main","width100","flexRow","likertValueHolder","paddingLeft","likertLabelEditableHtml","inputFormGroupIndex","LikertOrientation","props","classes","model","onChangeModel","onChangeLikertOrientation","e","likertOrientation","target","value","LIKERT_ORIENTATION","horizontal","vertical","LikertScale","onChangeLikertScale","likertScale","choices","likertType","LIKERT_SCALE","likert3","likert5","likert7","LikertType","onChangeLikertType","LIKERT_TYPE","agreement","frequency","yesNo","importance","likelihood","like","buildValuesMap","reduce","acc","choice","accClone","choiceValue","parseInt","Design","configuration","imageSupport","onChoiceChanged","onConfigurationChanged","onPromptChanged","onTeacherInstructionsChanged","uploadSoundSupport","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","baseInputConfiguration","likertChoice","spellCheckEnabled","teacherInstructionsEnabled","valuesMap","panelProperties","label","getPluginProps","Object","assign","Properties","inputConfiguration","map","index","c","t","Main","onModelChanged","splice","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAiCC,kBAAjC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAiCD,kBAAjC,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAAiCF,kBAAjC,CAAuBE,KAAvB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CA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,4BAA4B,EAAE,KAAKC;AALrC,SADF;AASD;;;EAxCuB2B,kBAAMC,S;;;iCAAnBJ,I,eACQ;AACjBjE,EAAAA,KAAK,EAAEsE,sBAAUC,MAAV,CAAiBC,UADP;AAEjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAFX;AAGjBR,EAAAA,cAAc,EAAEI,sBAAUK,IAAV,CAAeH,UAHd;AAIjBjC,EAAAA,sBAAsB,EAAE+B,sBAAUK,IAAV,CAAeH,UAJtB;AAKjBzE,EAAAA,OAAO,EAAEuE,sBAAUC,MAAV,CAAiBC,UALT;AAMjBnC,EAAAA,YAAY,EAAEiC,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AANG,C;AA0CrB,IAAMM,MAAM,GAAG,wBAAWjH,MAAX,EAAmBoG,IAAnB,CAAf;eAEea,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport Radio from '@material-ui/core/Radio';\nimport RadioGroup from '@material-ui/core/RadioGroup';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport { InputContainer, settings, layout, NumberTextField } from '@pie-lib/pie-toolbox/config-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport merge from 'lodash/merge';\nimport { LIKERT_TYPE, LIKERT_SCALE, LIKERT_ORIENTATION } from './likertEntities';\nimport generateChoices from './choiceGenerator';\n\nconst { Panel, toggle, radio } = settings;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n radioButtonsWrapper: {\n display: 'flex',\n flexDirection: 'column',\n },\n radioButtonsColumnHeader: {\n color: theme.palette.grey[400],\n fontSize: theme.typography.fontSize - 2,\n },\n likertLabelHolder: {\n display: 'flex',\n width: '100%',\n alignItems: 'flex-start',\n marginBottom: theme.spacing.unit * 2,\n },\n likertOptionsHolder: {\n display: 'flex',\n width: '100%',\n justifyContent: 'space-around',\n marginBottom: theme.spacing.unit * 2.5,\n },\n likertLabelInput: {\n width: 'calc(100% - 200px)',\n marginRight: 0,\n },\n errorMessage: {\n color: theme.palette.error.main,\n fontSize: theme.typography.fontSize - 2,\n },\n width100: {\n width: '100%',\n },\n flexRow: {\n display: 'flex',\n flexDirection: 'row',\n },\n likertValueHolder: {\n paddingLeft: theme.spacing.unit * 2.5,\n width: '150px',\n },\n likertLabelEditableHtml: {\n paddingTop: theme.spacing.unit * 2,\n },\n inputFormGroupIndex: {\n width: '30px',\n paddingTop: theme.spacing.unit * 4,\n },\n});\n\nconst LikertOrientation = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n\n const onChangeLikertOrientation = (e) => {\n const likertOrientation = e.target.value;\n\n onChangeModel({ ...model, likertOrientation });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Likert Orientation</p>\n <RadioGroup\n aria-label=\"likertOrientation\"\n name=\"likertOrientation\"\n value={model.likertOrientation}\n onChange={onChangeLikertOrientation}\n >\n <FormControlLabel value={LIKERT_ORIENTATION.horizontal} control={<Radio />} label=\"Horizontal\" />\n <FormControlLabel value={LIKERT_ORIENTATION.vertical} control={<Radio />} label=\"Vertical\" />\n </RadioGroup>\n </div>\n );\n});\n\nconst LikertScale = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n const onChangeLikertScale = (e) => {\n const likertScale = e.target.value;\n\n onChangeModel({\n ...model,\n likertScale,\n choices: generateChoices(likertScale, model.likertType),\n });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Likert Scale</p>\n <RadioGroup aria-label=\"likertScale\" name=\"likertScale\" value={model.likertScale} onChange={onChangeLikertScale}>\n <FormControlLabel value={LIKERT_SCALE.likert3} control={<Radio />} label=\"Likert 3\" />\n <FormControlLabel value={LIKERT_SCALE.likert5} control={<Radio />} label=\"Likert 5\" />\n <FormControlLabel value={LIKERT_SCALE.likert7} control={<Radio />} label=\"Likert 7\" />\n </RadioGroup>\n </div>\n );\n});\n\nconst LikertType = withStyles(styles)((props) => {\n const { classes, model, onChangeModel } = props;\n const onChangeLikertType = (e) => {\n const likertType = e.target.value;\n\n onChangeModel({\n ...model,\n likertType,\n choices: generateChoices(model.likertScale, likertType),\n });\n };\n\n return (\n <div className={classes.radioButtonsWrapper}>\n <p className={classes.radioButtonsColumnHeader}>Label Type</p>\n\n <div className={classes.flexRow}>\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.agreement} control={<Radio />} label=\"Agreement\" />\n <FormControlLabel value={LIKERT_TYPE.frequency} control={<Radio />} label=\"Frequency\" />\n <FormControlLabel value={LIKERT_TYPE.yesNo} control={<Radio />} label=\"Yes/No\" />\n </RadioGroup>\n\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.importance} control={<Radio />} label=\"Importance\" />\n <FormControlLabel value={LIKERT_TYPE.likelihood} control={<Radio />} label=\"Likelihood\" />\n <FormControlLabel value={LIKERT_TYPE.like} control={<Radio />} label=\"Like\" />\n </RadioGroup>\n </div>\n </div>\n );\n});\n\nconst buildValuesMap = (model) =>\n model.choices.reduce((acc, choice) => {\n const accClone = { ...acc };\n const choiceValue = parseInt(choice.value);\n\n if (!accClone[choiceValue]) {\n accClone[choiceValue] = 0;\n }\n\n return { ...accClone, [choiceValue]: accClone[choiceValue] + 1 };\n }, {});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n configuration,\n imageSupport,\n model,\n onChangeModel,\n onChoiceChanged,\n onConfigurationChanged,\n onPromptChanged,\n onTeacherInstructionsChanged,\n uploadSoundSupport,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n baseInputConfiguration = {},\n likertChoice = {},\n } = configuration || {};\n const { spellCheckEnabled, teacherInstructionsEnabled } = model || {};\n\n const valuesMap = buildValuesMap(model);\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n };\n\n const getPluginProps = (props = {}) => {\n return Object.assign(\n {\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n />\n </InputContainer>\n )}\n\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n spellCheck={spellCheckEnabled}\n disableUnderline\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n />\n </InputContainer>\n\n <div className={classes.likertOptionsHolder}>\n <LikertScale model={model} onChangeModel={onChangeModel} />\n <LikertType model={model} onChangeModel={onChangeModel} />\n <LikertOrientation model={model} onChangeModel={onChangeModel} />\n </div>\n\n {model.choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.likertLabelHolder}>\n <span className={classes.inputFormGroupIndex}>{index + 1}.</span>\n <InputContainer key={`likert-label-${index}`} label={'Likert Label'} className={classes.likertLabelInput}>\n <EditableHtml\n className={classes.likertLabelEditableHtml}\n markup={choice.label || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, label: c })}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(likertChoice?.inputConfiguration)}\n />\n </InputContainer>\n\n <div className={classes.likertValueHolder}>\n <NumberTextField\n label={'Likert Value'}\n value={choice.value}\n className={classes.width100}\n max={100}\n min={-100}\n onChange={(e, t) => {\n onChoiceChanged(index, { ...choice, value: t });\n }}\n imageSupport={imageSupport}\n />\n {valuesMap[choice.value] && valuesMap[choice.value] > 1 && (\n <p className={classes.errorMessage}>Value should be unique</p>\n )}\n </div>\n </div>\n ))}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n model.choices = model.choices.map((choice) => merge({}, choice));\n model.choices.splice(index, 1, choice);\n\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onChoiceChanged={this.onChoiceChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
package/docs/config-schema.json
CHANGED
|
@@ -25,9 +25,241 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"teacherInstructions": {
|
|
28
|
-
"title": "
|
|
28
|
+
"title": "EditableHtmlPluginConfigure",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"inputConfiguration": {
|
|
32
|
+
"title": "EditableHtmlConfigureProp",
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"html": {
|
|
36
|
+
"title": "EditableHtmlButtonConfigure",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"disabled": {
|
|
40
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"title": "disabled"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"audio": {
|
|
47
|
+
"title": "EditableHtmlButtonConfigure",
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"disabled": {
|
|
51
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"title": "disabled"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"video": {
|
|
58
|
+
"title": "EditableHtmlButtonConfigure",
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"disabled": {
|
|
62
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"title": "disabled"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"image": {
|
|
69
|
+
"title": "EditableHtmlButtonConfigure",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"disabled": {
|
|
73
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"title": "disabled"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"settings": {
|
|
82
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"title": "settings"
|
|
85
|
+
},
|
|
86
|
+
"label": {
|
|
87
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"title": "label"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"prompt": {
|
|
94
|
+
"title": "EditableHtmlPluginConfigure",
|
|
29
95
|
"type": "object",
|
|
30
96
|
"properties": {
|
|
97
|
+
"inputConfiguration": {
|
|
98
|
+
"title": "EditableHtmlConfigureProp",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"html": {
|
|
102
|
+
"title": "EditableHtmlButtonConfigure",
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"disabled": {
|
|
106
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"title": "disabled"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"audio": {
|
|
113
|
+
"title": "EditableHtmlButtonConfigure",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"disabled": {
|
|
117
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"title": "disabled"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"video": {
|
|
124
|
+
"title": "EditableHtmlButtonConfigure",
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"disabled": {
|
|
128
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"title": "disabled"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"image": {
|
|
135
|
+
"title": "EditableHtmlButtonConfigure",
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"disabled": {
|
|
139
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"title": "disabled"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"settings": {
|
|
148
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
149
|
+
"type": "boolean",
|
|
150
|
+
"title": "settings"
|
|
151
|
+
},
|
|
152
|
+
"label": {
|
|
153
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"title": "label"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"baseInputConfiguration": {
|
|
160
|
+
"title": "EditableHtmlConfigureProp",
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"html": {
|
|
164
|
+
"title": "EditableHtmlButtonConfigure",
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"disabled": {
|
|
168
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"title": "disabled"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"audio": {
|
|
175
|
+
"title": "EditableHtmlButtonConfigure",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"disabled": {
|
|
179
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"title": "disabled"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"video": {
|
|
186
|
+
"title": "EditableHtmlButtonConfigure",
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"disabled": {
|
|
190
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"title": "disabled"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"image": {
|
|
197
|
+
"title": "EditableHtmlButtonConfigure",
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"disabled": {
|
|
201
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
202
|
+
"type": "boolean",
|
|
203
|
+
"title": "disabled"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"likertChoice": {
|
|
210
|
+
"title": "EditableHtmlPluginConfigure",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"properties": {
|
|
213
|
+
"inputConfiguration": {
|
|
214
|
+
"title": "EditableHtmlConfigureProp",
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"html": {
|
|
218
|
+
"title": "EditableHtmlButtonConfigure",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"disabled": {
|
|
222
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"title": "disabled"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"audio": {
|
|
229
|
+
"title": "EditableHtmlButtonConfigure",
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"disabled": {
|
|
233
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"title": "disabled"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"video": {
|
|
240
|
+
"title": "EditableHtmlButtonConfigure",
|
|
241
|
+
"type": "object",
|
|
242
|
+
"properties": {
|
|
243
|
+
"disabled": {
|
|
244
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
245
|
+
"type": "boolean",
|
|
246
|
+
"title": "disabled"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"image": {
|
|
251
|
+
"title": "EditableHtmlButtonConfigure",
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"disabled": {
|
|
255
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"title": "disabled"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
31
263
|
"settings": {
|
|
32
264
|
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
33
265
|
"type": "boolean",
|
|
@@ -119,6 +351,133 @@
|
|
|
119
351
|
"title": "label"
|
|
120
352
|
}
|
|
121
353
|
}
|
|
354
|
+
},
|
|
355
|
+
"EditableHtmlPluginConfigure": {
|
|
356
|
+
"title": "EditableHtmlPluginConfigure",
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"inputConfiguration": {
|
|
360
|
+
"title": "EditableHtmlConfigureProp",
|
|
361
|
+
"type": "object",
|
|
362
|
+
"properties": {
|
|
363
|
+
"html": {
|
|
364
|
+
"title": "EditableHtmlButtonConfigure",
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"disabled": {
|
|
368
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
369
|
+
"type": "boolean",
|
|
370
|
+
"title": "disabled"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"audio": {
|
|
375
|
+
"title": "EditableHtmlButtonConfigure",
|
|
376
|
+
"type": "object",
|
|
377
|
+
"properties": {
|
|
378
|
+
"disabled": {
|
|
379
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
380
|
+
"type": "boolean",
|
|
381
|
+
"title": "disabled"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"video": {
|
|
386
|
+
"title": "EditableHtmlButtonConfigure",
|
|
387
|
+
"type": "object",
|
|
388
|
+
"properties": {
|
|
389
|
+
"disabled": {
|
|
390
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"title": "disabled"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"image": {
|
|
397
|
+
"title": "EditableHtmlButtonConfigure",
|
|
398
|
+
"type": "object",
|
|
399
|
+
"properties": {
|
|
400
|
+
"disabled": {
|
|
401
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
402
|
+
"type": "boolean",
|
|
403
|
+
"title": "disabled"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"settings": {
|
|
410
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
411
|
+
"type": "boolean",
|
|
412
|
+
"title": "settings"
|
|
413
|
+
},
|
|
414
|
+
"label": {
|
|
415
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
416
|
+
"type": "string",
|
|
417
|
+
"title": "label"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"EditableHtmlConfigureProp": {
|
|
422
|
+
"title": "EditableHtmlConfigureProp",
|
|
423
|
+
"type": "object",
|
|
424
|
+
"properties": {
|
|
425
|
+
"html": {
|
|
426
|
+
"title": "EditableHtmlButtonConfigure",
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"disabled": {
|
|
430
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"title": "disabled"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"audio": {
|
|
437
|
+
"title": "EditableHtmlButtonConfigure",
|
|
438
|
+
"type": "object",
|
|
439
|
+
"properties": {
|
|
440
|
+
"disabled": {
|
|
441
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"title": "disabled"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"video": {
|
|
448
|
+
"title": "EditableHtmlButtonConfigure",
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"disabled": {
|
|
452
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"title": "disabled"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"image": {
|
|
459
|
+
"title": "EditableHtmlButtonConfigure",
|
|
460
|
+
"type": "object",
|
|
461
|
+
"properties": {
|
|
462
|
+
"disabled": {
|
|
463
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
464
|
+
"type": "boolean",
|
|
465
|
+
"title": "disabled"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"EditableHtmlButtonConfigure": {
|
|
472
|
+
"title": "EditableHtmlButtonConfigure",
|
|
473
|
+
"type": "object",
|
|
474
|
+
"properties": {
|
|
475
|
+
"disabled": {
|
|
476
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
477
|
+
"type": "boolean",
|
|
478
|
+
"title": "disabled"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
122
481
|
}
|
|
123
482
|
},
|
|
124
483
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -22,6 +22,174 @@ Indicates the label for the item that has to be displayed in the Settings Panel
|
|
|
22
22
|
|
|
23
23
|
Properties of the `teacherInstructions` object:
|
|
24
24
|
|
|
25
|
+
## `inputConfiguration` (object)
|
|
26
|
+
|
|
27
|
+
Properties of the `inputConfiguration` object:
|
|
28
|
+
|
|
29
|
+
### `html` (object)
|
|
30
|
+
|
|
31
|
+
Properties of the `html` object:
|
|
32
|
+
|
|
33
|
+
#### `disabled` (boolean)
|
|
34
|
+
|
|
35
|
+
Indicates if the plugin is disabled or not
|
|
36
|
+
|
|
37
|
+
### `audio` (object)
|
|
38
|
+
|
|
39
|
+
Properties of the `audio` object:
|
|
40
|
+
|
|
41
|
+
#### `disabled` (boolean)
|
|
42
|
+
|
|
43
|
+
Indicates if the plugin is disabled or not
|
|
44
|
+
|
|
45
|
+
### `video` (object)
|
|
46
|
+
|
|
47
|
+
Properties of the `video` object:
|
|
48
|
+
|
|
49
|
+
#### `disabled` (boolean)
|
|
50
|
+
|
|
51
|
+
Indicates if the plugin is disabled or not
|
|
52
|
+
|
|
53
|
+
### `image` (object)
|
|
54
|
+
|
|
55
|
+
Properties of the `image` object:
|
|
56
|
+
|
|
57
|
+
#### `disabled` (boolean)
|
|
58
|
+
|
|
59
|
+
Indicates if the plugin is disabled or not
|
|
60
|
+
|
|
61
|
+
## `settings` (boolean)
|
|
62
|
+
|
|
63
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
64
|
+
|
|
65
|
+
## `label` (string)
|
|
66
|
+
|
|
67
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
68
|
+
|
|
69
|
+
# `prompt` (object)
|
|
70
|
+
|
|
71
|
+
Properties of the `prompt` object:
|
|
72
|
+
|
|
73
|
+
## `inputConfiguration` (object)
|
|
74
|
+
|
|
75
|
+
Properties of the `inputConfiguration` object:
|
|
76
|
+
|
|
77
|
+
### `html` (object)
|
|
78
|
+
|
|
79
|
+
Properties of the `html` object:
|
|
80
|
+
|
|
81
|
+
#### `disabled` (boolean)
|
|
82
|
+
|
|
83
|
+
Indicates if the plugin is disabled or not
|
|
84
|
+
|
|
85
|
+
### `audio` (object)
|
|
86
|
+
|
|
87
|
+
Properties of the `audio` object:
|
|
88
|
+
|
|
89
|
+
#### `disabled` (boolean)
|
|
90
|
+
|
|
91
|
+
Indicates if the plugin is disabled or not
|
|
92
|
+
|
|
93
|
+
### `video` (object)
|
|
94
|
+
|
|
95
|
+
Properties of the `video` object:
|
|
96
|
+
|
|
97
|
+
#### `disabled` (boolean)
|
|
98
|
+
|
|
99
|
+
Indicates if the plugin is disabled or not
|
|
100
|
+
|
|
101
|
+
### `image` (object)
|
|
102
|
+
|
|
103
|
+
Properties of the `image` object:
|
|
104
|
+
|
|
105
|
+
#### `disabled` (boolean)
|
|
106
|
+
|
|
107
|
+
Indicates if the plugin is disabled or not
|
|
108
|
+
|
|
109
|
+
## `settings` (boolean)
|
|
110
|
+
|
|
111
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
112
|
+
|
|
113
|
+
## `label` (string)
|
|
114
|
+
|
|
115
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
116
|
+
|
|
117
|
+
# `baseInputConfiguration` (object)
|
|
118
|
+
|
|
119
|
+
Properties of the `baseInputConfiguration` object:
|
|
120
|
+
|
|
121
|
+
## `html` (object)
|
|
122
|
+
|
|
123
|
+
Properties of the `html` object:
|
|
124
|
+
|
|
125
|
+
### `disabled` (boolean)
|
|
126
|
+
|
|
127
|
+
Indicates if the plugin is disabled or not
|
|
128
|
+
|
|
129
|
+
## `audio` (object)
|
|
130
|
+
|
|
131
|
+
Properties of the `audio` object:
|
|
132
|
+
|
|
133
|
+
### `disabled` (boolean)
|
|
134
|
+
|
|
135
|
+
Indicates if the plugin is disabled or not
|
|
136
|
+
|
|
137
|
+
## `video` (object)
|
|
138
|
+
|
|
139
|
+
Properties of the `video` object:
|
|
140
|
+
|
|
141
|
+
### `disabled` (boolean)
|
|
142
|
+
|
|
143
|
+
Indicates if the plugin is disabled or not
|
|
144
|
+
|
|
145
|
+
## `image` (object)
|
|
146
|
+
|
|
147
|
+
Properties of the `image` object:
|
|
148
|
+
|
|
149
|
+
### `disabled` (boolean)
|
|
150
|
+
|
|
151
|
+
Indicates if the plugin is disabled or not
|
|
152
|
+
|
|
153
|
+
# `likertChoice` (object)
|
|
154
|
+
|
|
155
|
+
Properties of the `likertChoice` object:
|
|
156
|
+
|
|
157
|
+
## `inputConfiguration` (object)
|
|
158
|
+
|
|
159
|
+
Properties of the `inputConfiguration` object:
|
|
160
|
+
|
|
161
|
+
### `html` (object)
|
|
162
|
+
|
|
163
|
+
Properties of the `html` object:
|
|
164
|
+
|
|
165
|
+
#### `disabled` (boolean)
|
|
166
|
+
|
|
167
|
+
Indicates if the plugin is disabled or not
|
|
168
|
+
|
|
169
|
+
### `audio` (object)
|
|
170
|
+
|
|
171
|
+
Properties of the `audio` object:
|
|
172
|
+
|
|
173
|
+
#### `disabled` (boolean)
|
|
174
|
+
|
|
175
|
+
Indicates if the plugin is disabled or not
|
|
176
|
+
|
|
177
|
+
### `video` (object)
|
|
178
|
+
|
|
179
|
+
Properties of the `video` object:
|
|
180
|
+
|
|
181
|
+
#### `disabled` (boolean)
|
|
182
|
+
|
|
183
|
+
Indicates if the plugin is disabled or not
|
|
184
|
+
|
|
185
|
+
### `image` (object)
|
|
186
|
+
|
|
187
|
+
Properties of the `image` object:
|
|
188
|
+
|
|
189
|
+
#### `disabled` (boolean)
|
|
190
|
+
|
|
191
|
+
Indicates if the plugin is disabled or not
|
|
192
|
+
|
|
25
193
|
## `settings` (boolean)
|
|
26
194
|
|
|
27
195
|
Indicates if the item has to be displayed in the Settings Panel
|
|
@@ -98,4 +266,96 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
98
266
|
|
|
99
267
|
### `label` (string)
|
|
100
268
|
|
|
101
|
-
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
269
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
270
|
+
|
|
271
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
272
|
+
|
|
273
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
274
|
+
|
|
275
|
+
### `inputConfiguration` (object)
|
|
276
|
+
|
|
277
|
+
Properties of the `inputConfiguration` object:
|
|
278
|
+
|
|
279
|
+
#### `html` (object)
|
|
280
|
+
|
|
281
|
+
Properties of the `html` object:
|
|
282
|
+
|
|
283
|
+
##### `disabled` (boolean)
|
|
284
|
+
|
|
285
|
+
Indicates if the plugin is disabled or not
|
|
286
|
+
|
|
287
|
+
#### `audio` (object)
|
|
288
|
+
|
|
289
|
+
Properties of the `audio` object:
|
|
290
|
+
|
|
291
|
+
##### `disabled` (boolean)
|
|
292
|
+
|
|
293
|
+
Indicates if the plugin is disabled or not
|
|
294
|
+
|
|
295
|
+
#### `video` (object)
|
|
296
|
+
|
|
297
|
+
Properties of the `video` object:
|
|
298
|
+
|
|
299
|
+
##### `disabled` (boolean)
|
|
300
|
+
|
|
301
|
+
Indicates if the plugin is disabled or not
|
|
302
|
+
|
|
303
|
+
#### `image` (object)
|
|
304
|
+
|
|
305
|
+
Properties of the `image` object:
|
|
306
|
+
|
|
307
|
+
##### `disabled` (boolean)
|
|
308
|
+
|
|
309
|
+
Indicates if the plugin is disabled or not
|
|
310
|
+
|
|
311
|
+
### `settings` (boolean)
|
|
312
|
+
|
|
313
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
314
|
+
|
|
315
|
+
### `label` (string)
|
|
316
|
+
|
|
317
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
318
|
+
|
|
319
|
+
## `EditableHtmlConfigureProp` (object)
|
|
320
|
+
|
|
321
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
322
|
+
|
|
323
|
+
### `html` (object)
|
|
324
|
+
|
|
325
|
+
Properties of the `html` object:
|
|
326
|
+
|
|
327
|
+
#### `disabled` (boolean)
|
|
328
|
+
|
|
329
|
+
Indicates if the plugin is disabled or not
|
|
330
|
+
|
|
331
|
+
### `audio` (object)
|
|
332
|
+
|
|
333
|
+
Properties of the `audio` object:
|
|
334
|
+
|
|
335
|
+
#### `disabled` (boolean)
|
|
336
|
+
|
|
337
|
+
Indicates if the plugin is disabled or not
|
|
338
|
+
|
|
339
|
+
### `video` (object)
|
|
340
|
+
|
|
341
|
+
Properties of the `video` object:
|
|
342
|
+
|
|
343
|
+
#### `disabled` (boolean)
|
|
344
|
+
|
|
345
|
+
Indicates if the plugin is disabled or not
|
|
346
|
+
|
|
347
|
+
### `image` (object)
|
|
348
|
+
|
|
349
|
+
Properties of the `image` object:
|
|
350
|
+
|
|
351
|
+
#### `disabled` (boolean)
|
|
352
|
+
|
|
353
|
+
Indicates if the plugin is disabled or not
|
|
354
|
+
|
|
355
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
356
|
+
|
|
357
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
358
|
+
|
|
359
|
+
### `disabled` (boolean)
|
|
360
|
+
|
|
361
|
+
Indicates if the plugin is disabled or not
|
package/docs/pie-schema.json
CHANGED
|
@@ -105,6 +105,133 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
+
"EditableHtmlPluginConfigure": {
|
|
109
|
+
"title": "EditableHtmlPluginConfigure",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"properties": {
|
|
112
|
+
"inputConfiguration": {
|
|
113
|
+
"title": "EditableHtmlConfigureProp",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"html": {
|
|
117
|
+
"title": "EditableHtmlButtonConfigure",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"disabled": {
|
|
121
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"title": "disabled"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"audio": {
|
|
128
|
+
"title": "EditableHtmlButtonConfigure",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"disabled": {
|
|
132
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"title": "disabled"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"video": {
|
|
139
|
+
"title": "EditableHtmlButtonConfigure",
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"disabled": {
|
|
143
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"title": "disabled"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"image": {
|
|
150
|
+
"title": "EditableHtmlButtonConfigure",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"disabled": {
|
|
154
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"title": "disabled"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"settings": {
|
|
163
|
+
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"title": "settings"
|
|
166
|
+
},
|
|
167
|
+
"label": {
|
|
168
|
+
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
169
|
+
"type": "string",
|
|
170
|
+
"title": "label"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"EditableHtmlConfigureProp": {
|
|
175
|
+
"title": "EditableHtmlConfigureProp",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"html": {
|
|
179
|
+
"title": "EditableHtmlButtonConfigure",
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"disabled": {
|
|
183
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"title": "disabled"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"audio": {
|
|
190
|
+
"title": "EditableHtmlButtonConfigure",
|
|
191
|
+
"type": "object",
|
|
192
|
+
"properties": {
|
|
193
|
+
"disabled": {
|
|
194
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"title": "disabled"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"video": {
|
|
201
|
+
"title": "EditableHtmlButtonConfigure",
|
|
202
|
+
"type": "object",
|
|
203
|
+
"properties": {
|
|
204
|
+
"disabled": {
|
|
205
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"title": "disabled"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"image": {
|
|
212
|
+
"title": "EditableHtmlButtonConfigure",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"disabled": {
|
|
216
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
217
|
+
"type": "boolean",
|
|
218
|
+
"title": "disabled"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"EditableHtmlButtonConfigure": {
|
|
225
|
+
"title": "EditableHtmlButtonConfigure",
|
|
226
|
+
"type": "object",
|
|
227
|
+
"properties": {
|
|
228
|
+
"disabled": {
|
|
229
|
+
"description": "Indicates if the plugin is disabled or not",
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"title": "disabled"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
108
235
|
"LikertChoice": {
|
|
109
236
|
"title": "LikertChoice",
|
|
110
237
|
"type": "object",
|
package/docs/pie-schema.json.md
CHANGED
|
@@ -84,6 +84,98 @@ Indicates if the item has to be displayed in the Settings Panel
|
|
|
84
84
|
|
|
85
85
|
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
86
86
|
|
|
87
|
+
## `EditableHtmlPluginConfigure` (object)
|
|
88
|
+
|
|
89
|
+
Properties of the `EditableHtmlPluginConfigure` object:
|
|
90
|
+
|
|
91
|
+
### `inputConfiguration` (object)
|
|
92
|
+
|
|
93
|
+
Properties of the `inputConfiguration` object:
|
|
94
|
+
|
|
95
|
+
#### `html` (object)
|
|
96
|
+
|
|
97
|
+
Properties of the `html` object:
|
|
98
|
+
|
|
99
|
+
##### `disabled` (boolean)
|
|
100
|
+
|
|
101
|
+
Indicates if the plugin is disabled or not
|
|
102
|
+
|
|
103
|
+
#### `audio` (object)
|
|
104
|
+
|
|
105
|
+
Properties of the `audio` object:
|
|
106
|
+
|
|
107
|
+
##### `disabled` (boolean)
|
|
108
|
+
|
|
109
|
+
Indicates if the plugin is disabled or not
|
|
110
|
+
|
|
111
|
+
#### `video` (object)
|
|
112
|
+
|
|
113
|
+
Properties of the `video` object:
|
|
114
|
+
|
|
115
|
+
##### `disabled` (boolean)
|
|
116
|
+
|
|
117
|
+
Indicates if the plugin is disabled or not
|
|
118
|
+
|
|
119
|
+
#### `image` (object)
|
|
120
|
+
|
|
121
|
+
Properties of the `image` object:
|
|
122
|
+
|
|
123
|
+
##### `disabled` (boolean)
|
|
124
|
+
|
|
125
|
+
Indicates if the plugin is disabled or not
|
|
126
|
+
|
|
127
|
+
### `settings` (boolean)
|
|
128
|
+
|
|
129
|
+
Indicates if the item has to be displayed in the Settings Panel
|
|
130
|
+
|
|
131
|
+
### `label` (string)
|
|
132
|
+
|
|
133
|
+
Indicates the label for the item that has to be displayed in the Settings Panel
|
|
134
|
+
|
|
135
|
+
## `EditableHtmlConfigureProp` (object)
|
|
136
|
+
|
|
137
|
+
Properties of the `EditableHtmlConfigureProp` object:
|
|
138
|
+
|
|
139
|
+
### `html` (object)
|
|
140
|
+
|
|
141
|
+
Properties of the `html` object:
|
|
142
|
+
|
|
143
|
+
#### `disabled` (boolean)
|
|
144
|
+
|
|
145
|
+
Indicates if the plugin is disabled or not
|
|
146
|
+
|
|
147
|
+
### `audio` (object)
|
|
148
|
+
|
|
149
|
+
Properties of the `audio` object:
|
|
150
|
+
|
|
151
|
+
#### `disabled` (boolean)
|
|
152
|
+
|
|
153
|
+
Indicates if the plugin is disabled or not
|
|
154
|
+
|
|
155
|
+
### `video` (object)
|
|
156
|
+
|
|
157
|
+
Properties of the `video` object:
|
|
158
|
+
|
|
159
|
+
#### `disabled` (boolean)
|
|
160
|
+
|
|
161
|
+
Indicates if the plugin is disabled or not
|
|
162
|
+
|
|
163
|
+
### `image` (object)
|
|
164
|
+
|
|
165
|
+
Properties of the `image` object:
|
|
166
|
+
|
|
167
|
+
#### `disabled` (boolean)
|
|
168
|
+
|
|
169
|
+
Indicates if the plugin is disabled or not
|
|
170
|
+
|
|
171
|
+
## `EditableHtmlButtonConfigure` (object)
|
|
172
|
+
|
|
173
|
+
Properties of the `EditableHtmlButtonConfigure` object:
|
|
174
|
+
|
|
175
|
+
### `disabled` (boolean)
|
|
176
|
+
|
|
177
|
+
Indicates if the plugin is disabled or not
|
|
178
|
+
|
|
87
179
|
## `LikertChoice` (object)
|
|
88
180
|
|
|
89
181
|
Properties of the `LikertChoice` object:
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "0.24.1-next.
|
|
7
|
+
"version": "0.24.1-next.33+8fc82ab19",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.12.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.12.2",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"debug": "^4.1.1",
|
|
18
18
|
"lodash": "^4.17.10",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "ISC",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "8fc82ab19baf45aecb40e4b364a7c307a9840130",
|
|
28
28
|
"main": "lib/index.js",
|
|
29
29
|
"module": "src/index.js"
|
|
30
30
|
}
|