@pie-element/matrix 0.21.1-next.17 → 0.21.1-next.6

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.
@@ -41,14 +41,14 @@ var _MatrixLabelTypeHeaderInput = _interopRequireDefault(require("./MatrixLabelT
41
41
 
42
42
  var _MatrixValues = _interopRequireDefault(require("./MatrixValues"));
43
43
 
44
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
44
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
49
45
 
50
46
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
51
47
 
48
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
49
+
50
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
+
52
52
  var Panel = _configUi.settings.Panel,
53
53
  toggle = _configUi.settings.toggle,
54
54
  radio = _configUi.settings.radio;
@@ -82,8 +82,6 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
82
82
  onTeacherInstructionsChanged = props.onTeacherInstructionsChanged;
83
83
 
84
84
  var _ref = configuration || {},
85
- _ref$baseInputConfigu = _ref.baseInputConfiguration,
86
- baseInputConfiguration = _ref$baseInputConfigu === void 0 ? {} : _ref$baseInputConfigu,
87
85
  _ref$contentDimension = _ref.contentDimensions,
88
86
  contentDimensions = _ref$contentDimension === void 0 ? {} : _ref$contentDimension,
89
87
  _ref$prompt = _ref.prompt,
@@ -105,11 +103,6 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
105
103
  spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
106
104
  scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
107
105
  };
108
-
109
- var getPluginProps = function getPluginProps(props) {
110
- return Object.assign(_objectSpread({}, baseInputConfiguration), props || {});
111
- };
112
-
113
106
  return /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
114
107
  dimensions: contentDimensions,
115
108
  hideSettings: settingsPanelDisabled,
@@ -130,7 +123,6 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
130
123
  markup: model.teacherInstructions || '',
131
124
  onChange: onTeacherInstructionsChanged,
132
125
  imageSupport: imageSupport,
133
- pluginProps: getPluginProps(teacherInstructions === null || teacherInstructions === void 0 ? void 0 : teacherInstructions.inputConfiguration),
134
126
  nonEmpty: false,
135
127
  spellCheck: spellCheckEnabled,
136
128
  uploadSoundSupport: uploadSoundSupport
@@ -142,7 +134,6 @@ var Design = (0, _styles.withStyles)(styles)(function (props) {
142
134
  markup: model.prompt,
143
135
  onChange: onPromptChanged,
144
136
  imageSupport: imageSupport,
145
- pluginProps: getPluginProps(prompt === null || prompt === void 0 ? void 0 : prompt.inputConfiguration),
146
137
  nonEmpty: !prompt.settings,
147
138
  spellCheck: spellCheckEnabled,
148
139
  uploadSoundSupport: uploadSoundSupport,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Main.jsx"],"names":["Panel","settings","toggle","radio","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","matrixHeaderOptionsHolder","display","flexWrap","paddingBottom","justifyContent","Design","props","classes","model","configuration","onPromptChanged","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","baseInputConfiguration","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","teacherInstructionsEnabled","spellCheckEnabled","panelProperties","label","getPluginProps","Object","assign","Properties","inputConfiguration","Main","onModelChanged","data","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;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;A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["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { EditableHtml } from '@pie-lib/pie-toolbox/editable-html';\nimport { InputContainer, settings, layout } from '@pie-lib/pie-toolbox/config-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport MatrixColumnsSizeHeaderInput from './MatrixColumnsSizeHeaderInput';\nimport MatrixRowsSizeHeaderInput from './MatrixRowsSizeHeaderInput';\nimport MatrixLabelTypeHeaderInput from './MatrixLabelTypeHeaderInput';\nimport MatrixValues from './MatrixValues';\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 matrixHeaderOptionsHolder: {\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%',\n paddingBottom: theme.spacing.unit * 2.5,\n justifyContent: 'space-around',\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n const {\n baseInputConfiguration = {},\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n } = configuration || {};\n const { teacherInstructionsEnabled, spellCheckEnabled } = model || {};\n\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 pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\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 pluginProps={getPluginProps(prompt?.inputConfiguration)}\n nonEmpty={!prompt.settings}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n disableUnderline\n />\n </InputContainer>\n\n <div className={classes.matrixHeaderOptionsHolder}>\n <MatrixRowsSizeHeaderInput model={model} onChangeModel={onChangeModel} />\n <MatrixColumnsSizeHeaderInput model={model} onChangeModel={onChangeModel} />\n <MatrixLabelTypeHeaderInput model={model} onChangeModel={onChangeModel} />\n </div>\n\n <MatrixValues model={model} onChangeModel={onChangeModel} />\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 onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onChangeModel = (data) => {\n this.props.onModelChanged({ ...this.props.model, ...data });\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 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","matrixHeaderOptionsHolder","display","flexWrap","paddingBottom","justifyContent","Design","props","classes","model","configuration","onPromptChanged","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","teacherInstructionsEnabled","spellCheckEnabled","panelProperties","label","Properties","Main","onModelChanged","data","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;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,yBAAyB,EAAE;AACzBC,MAAAA,OAAO,EAAE,MADgB;AAEzBC,MAAAA,QAAQ,EAAE,MAFe;AAGzBP,MAAAA,KAAK,EAAE,MAHkB;AAIzBQ,MAAAA,aAAa,EAAEV,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,GAJX;AAKzBM,MAAAA,cAAc,EAAE;A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B,sBAAUC,MAAV,CAAiBC,UADP;AAEjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAFX;AAGjBR,EAAAA,cAAc,EAAEI,sBAAUK,IAAV,CAAeH,UAHd;AAIjBpB,EAAAA,sBAAsB,EAAEkB,sBAAUK,IAAV,CAAeH,UAJtB;AAKjB3B,EAAAA,OAAO,EAAEyB,sBAAUC,MAAV,CAAiBC,UALT;AAMjBvB,EAAAA,YAAY,EAAEqB,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AANG,C;AAoCrB,IAAMM,MAAM,GAAG,wBAAWhD,MAAX,EAAmBmC,IAAnB,CAAf;eAEea,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {EditableHtml} from '@pie-lib/pie-toolbox/editable-html';\nimport { InputContainer, settings, layout } from '@pie-lib/pie-toolbox/config-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport MatrixColumnsSizeHeaderInput from './MatrixColumnsSizeHeaderInput';\nimport MatrixRowsSizeHeaderInput from './MatrixRowsSizeHeaderInput';\nimport MatrixLabelTypeHeaderInput from './MatrixLabelTypeHeaderInput';\nimport MatrixValues from './MatrixValues';\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 matrixHeaderOptionsHolder: {\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%',\n paddingBottom: theme.spacing.unit * 2.5,\n justifyContent: 'space-around',\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n } = configuration || {};\n const { teacherInstructionsEnabled, spellCheckEnabled } = model || {};\n\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={!prompt.settings}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n disableUnderline\n />\n </InputContainer>\n\n <div className={classes.matrixHeaderOptionsHolder}>\n <MatrixRowsSizeHeaderInput model={model} onChangeModel={onChangeModel} />\n <MatrixColumnsSizeHeaderInput model={model} onChangeModel={onChangeModel} />\n <MatrixLabelTypeHeaderInput model={model} onChangeModel={onChangeModel} />\n </div>\n\n <MatrixValues model={model} onChangeModel={onChangeModel} />\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 onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onChangeModel = (data) => {\n this.props.onModelChanged({ ...this.props.model, ...data });\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 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"}
@@ -13,37 +13,15 @@ var _default = {
13
13
  model: {
14
14
  teacherInstructionsEnabled: true,
15
15
  labelType: 'agreement',
16
- rowLabels: ["I'm interested in politics.", "I'm interested in economics."],
16
+ rowLabels: ['I\'m interested in politics.', 'I\'m interested in economics.'],
17
17
  columnLabels: ['Disagree', 'Unsure', 'Agree'],
18
18
  matrixValues: {},
19
19
  prompt: 'How interested are you in the following domains?'
20
20
  },
21
21
  configuration: {
22
- baseInputConfiguration: {
23
- audio: {
24
- disabled: false
25
- },
26
- video: {
27
- disabled: false
28
- },
29
- image: {
30
- disabled: false
31
- }
32
- },
33
22
  prompt: {
34
23
  settings: true,
35
- label: 'Prompt',
36
- inputConfiguration: {
37
- audio: {
38
- disabled: false
39
- },
40
- video: {
41
- disabled: false
42
- },
43
- image: {
44
- disabled: false
45
- }
46
- }
24
+ label: 'Prompt'
47
25
  },
48
26
  settingsPanelDisabled: false,
49
27
  spellCheck: {
@@ -53,18 +31,7 @@ var _default = {
53
31
  },
54
32
  teacherInstructions: {
55
33
  settings: true,
56
- label: 'Teacher Instructions',
57
- inputConfiguration: {
58
- audio: {
59
- disabled: false
60
- },
61
- video: {
62
- disabled: false
63
- },
64
- image: {
65
- disabled: false
66
- }
67
- }
34
+ label: 'Teacher Instructions'
68
35
  }
69
36
  }
70
37
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["model","teacherInstructionsEnabled","labelType","rowLabels","columnLabels","matrixValues","prompt","configuration","baseInputConfiguration","audio","disabled","video","image","settings","label","inputConfiguration","settingsPanelDisabled","spellCheck","enabled","teacherInstructions"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;eACe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,0BAA0B,EAAE,IADvB;AAELC,IAAAA,SAAS,EAAE,WAFN;AAGLC,IAAAA,SAAS,EAAE,CAAC,6BAAD,EAAgC,8BAAhC,CAHN;AAILC,IAAAA,YAAY,EAAE,CAAC,UAAD,EAAa,QAAb,EAAuB,OAAvB,CAJT;AAKLC,IAAAA,YAAY,EAAE,EALT;AAMLC,IAAAA,MAAM,EAAE;AANH,GADM;AASbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,sBAAsB,EAAE;AACtBC,MAAAA,KAAK,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ,OADe;AAEtBC,MAAAA,KAAK,EAAE;AAAED,QAAAA,QAAQ,EAAE;AAAZ,OAFe;AAGtBE,MAAAA,KAAK,EAAE;AAAEF,QAAAA,QAAQ,EAAE;AAAZ;AAHe,KADX;AAMbJ,IAAAA,MAAM,EAAE;AACNO,MAAAA,QAAQ,EAAE,IADJ;AAENC,MAAAA,KAAK,EAAE,QAFD;AAGNC,MAAAA,kBAAkB,EAAE;AAClBN,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;AAHd,KANK;AAebM,IAAAA,qBAAqB,EAAE,KAfV;AAgBbC,IAAAA,UAAU,EAAE;AACVH,MAAAA,KAAK,EAAE,YADG;AAEVD,MAAAA,QAAQ,EAAE,KAFA;AAGVK,MAAAA,OAAO,EAAE;AAHC,KAhBC;AAqBbC,IAAAA,mBAAmB,EAAE;AACnBN,MAAAA,QAAQ,EAAE,IADS;AAEnBC,MAAAA,KAAK,EAAE,sBAFY;AAGnBC,MAAAA,kBAAkB,EAAE;AAClBN,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;AAHD;AArBR;AATF,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 teacherInstructionsEnabled: true,\n labelType: 'agreement',\n rowLabels: [\"I'm interested in politics.\", \"I'm interested in economics.\"],\n columnLabels: ['Disagree', 'Unsure', 'Agree'],\n matrixValues: {},\n prompt: 'How interested are you in the following domains?',\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 },\n};\n"],"file":"defaults.js"}
1
+ {"version":3,"sources":["../src/defaults.js"],"names":["model","teacherInstructionsEnabled","labelType","rowLabels","columnLabels","matrixValues","prompt","configuration","settings","label","settingsPanelDisabled","spellCheck","enabled","teacherInstructions"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;eACe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,0BAA0B,EAAE,IADvB;AAELC,IAAAA,SAAS,EAAE,WAFN;AAGLC,IAAAA,SAAS,EAAE,CAAC,8BAAD,EAAiC,+BAAjC,CAHN;AAILC,IAAAA,YAAY,EAAE,CAAC,UAAD,EAAa,QAAb,EAAuB,OAAvB,CAJT;AAKLC,IAAAA,YAAY,EAAE,EALT;AAMLC,IAAAA,MAAM,EAAE;AANH,GADM;AASbC,EAAAA,aAAa,EAAE;AACbD,IAAAA,MAAM,EAAE;AACNE,MAAAA,QAAQ,EAAE,IADJ;AAENC,MAAAA,KAAK,EAAE;AAFD,KADK;AAKbC,IAAAA,qBAAqB,EAAE,KALV;AAMbC,IAAAA,UAAU,EAAE;AACVF,MAAAA,KAAK,EAAE,YADG;AAEVD,MAAAA,QAAQ,EAAE,KAFA;AAGVI,MAAAA,OAAO,EAAE;AAHC,KANC;AAWbC,IAAAA,mBAAmB,EAAE;AACnBL,MAAAA,QAAQ,EAAE,IADS;AAEnBC,MAAAA,KAAK,EAAE;AAFY;AAXR;AATF,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 teacherInstructionsEnabled: true,\n labelType: 'agreement',\n rowLabels: ['I\\'m interested in politics.', 'I\\'m interested in economics.'],\n columnLabels: ['Disagree', 'Unsure', 'Agree'],\n matrixValues: {},\n prompt: 'How interested are you in the following domains?',\n },\n configuration: {\n prompt: {\n settings: true,\n label: 'Prompt',\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 },\n },\n};\n"],"file":"defaults.js"}
@@ -3,45 +3,6 @@
3
3
  "additionalProperties": false,
4
4
  "type": "object",
5
5
  "properties": {
6
- "baseInputConfiguration": {
7
- "title": "EditableHtmlConfigureProp",
8
- "type": "object",
9
- "properties": {
10
- "audio": {
11
- "title": "EditableHtmlButtonConfigure",
12
- "type": "object",
13
- "properties": {
14
- "disabled": {
15
- "description": "Indicates if the plugin is disabled or not",
16
- "type": "boolean",
17
- "title": "disabled"
18
- }
19
- }
20
- },
21
- "video": {
22
- "title": "EditableHtmlButtonConfigure",
23
- "type": "object",
24
- "properties": {
25
- "disabled": {
26
- "description": "Indicates if the plugin is disabled or not",
27
- "type": "boolean",
28
- "title": "disabled"
29
- }
30
- }
31
- },
32
- "image": {
33
- "title": "EditableHtmlButtonConfigure",
34
- "type": "object",
35
- "properties": {
36
- "disabled": {
37
- "description": "Indicates if the plugin is disabled or not",
38
- "type": "boolean",
39
- "title": "disabled"
40
- }
41
- }
42
- }
43
- }
44
- },
45
6
  "settingsPanelDisabled": {
46
7
  "description": "Indicates if the settings panel is not available",
47
8
  "type": "boolean",
@@ -64,103 +25,9 @@
64
25
  }
65
26
  },
66
27
  "teacherInstructions": {
67
- "title": "EditableHtmlPluginConfigure",
68
- "type": "object",
69
- "properties": {
70
- "inputConfiguration": {
71
- "title": "EditableHtmlConfigureProp",
72
- "type": "object",
73
- "properties": {
74
- "audio": {
75
- "title": "EditableHtmlButtonConfigure",
76
- "type": "object",
77
- "properties": {
78
- "disabled": {
79
- "description": "Indicates if the plugin is disabled or not",
80
- "type": "boolean",
81
- "title": "disabled"
82
- }
83
- }
84
- },
85
- "video": {
86
- "title": "EditableHtmlButtonConfigure",
87
- "type": "object",
88
- "properties": {
89
- "disabled": {
90
- "description": "Indicates if the plugin is disabled or not",
91
- "type": "boolean",
92
- "title": "disabled"
93
- }
94
- }
95
- },
96
- "image": {
97
- "title": "EditableHtmlButtonConfigure",
98
- "type": "object",
99
- "properties": {
100
- "disabled": {
101
- "description": "Indicates if the plugin is disabled or not",
102
- "type": "boolean",
103
- "title": "disabled"
104
- }
105
- }
106
- }
107
- }
108
- },
109
- "settings": {
110
- "description": "Indicates if the item has to be displayed in the Settings Panel",
111
- "type": "boolean",
112
- "title": "settings"
113
- },
114
- "label": {
115
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
116
- "type": "string",
117
- "title": "label"
118
- }
119
- }
120
- },
121
- "prompt": {
122
- "title": "EditableHtmlPluginConfigure",
28
+ "title": "ConfigureProp",
123
29
  "type": "object",
124
30
  "properties": {
125
- "inputConfiguration": {
126
- "title": "EditableHtmlConfigureProp",
127
- "type": "object",
128
- "properties": {
129
- "audio": {
130
- "title": "EditableHtmlButtonConfigure",
131
- "type": "object",
132
- "properties": {
133
- "disabled": {
134
- "description": "Indicates if the plugin is disabled or not",
135
- "type": "boolean",
136
- "title": "disabled"
137
- }
138
- }
139
- },
140
- "video": {
141
- "title": "EditableHtmlButtonConfigure",
142
- "type": "object",
143
- "properties": {
144
- "disabled": {
145
- "description": "Indicates if the plugin is disabled or not",
146
- "type": "boolean",
147
- "title": "disabled"
148
- }
149
- }
150
- },
151
- "image": {
152
- "title": "EditableHtmlButtonConfigure",
153
- "type": "object",
154
- "properties": {
155
- "disabled": {
156
- "description": "Indicates if the plugin is disabled or not",
157
- "type": "boolean",
158
- "title": "disabled"
159
- }
160
- }
161
- }
162
- }
163
- },
164
31
  "settings": {
165
32
  "description": "Indicates if the item has to be displayed in the Settings Panel",
166
33
  "type": "boolean",
@@ -237,56 +104,6 @@
237
104
  }
238
105
  },
239
106
  "definitions": {
240
- "EditableHtmlConfigureProp": {
241
- "title": "EditableHtmlConfigureProp",
242
- "type": "object",
243
- "properties": {
244
- "audio": {
245
- "title": "EditableHtmlButtonConfigure",
246
- "type": "object",
247
- "properties": {
248
- "disabled": {
249
- "description": "Indicates if the plugin is disabled or not",
250
- "type": "boolean",
251
- "title": "disabled"
252
- }
253
- }
254
- },
255
- "video": {
256
- "title": "EditableHtmlButtonConfigure",
257
- "type": "object",
258
- "properties": {
259
- "disabled": {
260
- "description": "Indicates if the plugin is disabled or not",
261
- "type": "boolean",
262
- "title": "disabled"
263
- }
264
- }
265
- },
266
- "image": {
267
- "title": "EditableHtmlButtonConfigure",
268
- "type": "object",
269
- "properties": {
270
- "disabled": {
271
- "description": "Indicates if the plugin is disabled or not",
272
- "type": "boolean",
273
- "title": "disabled"
274
- }
275
- }
276
- }
277
- }
278
- },
279
- "EditableHtmlButtonConfigure": {
280
- "title": "EditableHtmlButtonConfigure",
281
- "type": "object",
282
- "properties": {
283
- "disabled": {
284
- "description": "Indicates if the plugin is disabled or not",
285
- "type": "boolean",
286
- "title": "disabled"
287
- }
288
- }
289
- },
290
107
  "ConfigureProp": {
291
108
  "title": "ConfigureProp",
292
109
  "type": "object",
@@ -302,61 +119,6 @@
302
119
  "title": "label"
303
120
  }
304
121
  }
305
- },
306
- "EditableHtmlPluginConfigure": {
307
- "title": "EditableHtmlPluginConfigure",
308
- "type": "object",
309
- "properties": {
310
- "inputConfiguration": {
311
- "title": "EditableHtmlConfigureProp",
312
- "type": "object",
313
- "properties": {
314
- "audio": {
315
- "title": "EditableHtmlButtonConfigure",
316
- "type": "object",
317
- "properties": {
318
- "disabled": {
319
- "description": "Indicates if the plugin is disabled or not",
320
- "type": "boolean",
321
- "title": "disabled"
322
- }
323
- }
324
- },
325
- "video": {
326
- "title": "EditableHtmlButtonConfigure",
327
- "type": "object",
328
- "properties": {
329
- "disabled": {
330
- "description": "Indicates if the plugin is disabled or not",
331
- "type": "boolean",
332
- "title": "disabled"
333
- }
334
- }
335
- },
336
- "image": {
337
- "title": "EditableHtmlButtonConfigure",
338
- "type": "object",
339
- "properties": {
340
- "disabled": {
341
- "description": "Indicates if the plugin is disabled or not",
342
- "type": "boolean",
343
- "title": "disabled"
344
- }
345
- }
346
- }
347
- }
348
- },
349
- "settings": {
350
- "description": "Indicates if the item has to be displayed in the Settings Panel",
351
- "type": "boolean",
352
- "title": "settings"
353
- },
354
- "label": {
355
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
356
- "type": "string",
357
- "title": "label"
358
- }
359
- }
360
122
  }
361
123
  },
362
124
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -2,34 +2,6 @@ Config Object for @pie-elements/matrix
2
2
 
3
3
  The schema defines the following properties:
4
4
 
5
- # `baseInputConfiguration` (object)
6
-
7
- Properties of the `baseInputConfiguration` object:
8
-
9
- ## `audio` (object)
10
-
11
- Properties of the `audio` object:
12
-
13
- ### `disabled` (boolean)
14
-
15
- Indicates if the plugin is disabled or not
16
-
17
- ## `video` (object)
18
-
19
- Properties of the `video` object:
20
-
21
- ### `disabled` (boolean)
22
-
23
- Indicates if the plugin is disabled or not
24
-
25
- ## `image` (object)
26
-
27
- Properties of the `image` object:
28
-
29
- ### `disabled` (boolean)
30
-
31
- Indicates if the plugin is disabled or not
32
-
33
5
  # `settingsPanelDisabled` (boolean)
34
6
 
35
7
  Indicates if the settings panel is not available
@@ -50,74 +22,6 @@ Indicates the label for the item that has to be displayed in the Settings Panel
50
22
 
51
23
  Properties of the `teacherInstructions` object:
52
24
 
53
- ## `inputConfiguration` (object)
54
-
55
- Properties of the `inputConfiguration` object:
56
-
57
- ### `audio` (object)
58
-
59
- Properties of the `audio` object:
60
-
61
- #### `disabled` (boolean)
62
-
63
- Indicates if the plugin is disabled or not
64
-
65
- ### `video` (object)
66
-
67
- Properties of the `video` object:
68
-
69
- #### `disabled` (boolean)
70
-
71
- Indicates if the plugin is disabled or not
72
-
73
- ### `image` (object)
74
-
75
- Properties of the `image` object:
76
-
77
- #### `disabled` (boolean)
78
-
79
- Indicates if the plugin is disabled or not
80
-
81
- ## `settings` (boolean)
82
-
83
- Indicates if the item has to be displayed in the Settings Panel
84
-
85
- ## `label` (string)
86
-
87
- Indicates the label for the item that has to be displayed in the Settings Panel
88
-
89
- # `prompt` (object)
90
-
91
- Properties of the `prompt` object:
92
-
93
- ## `inputConfiguration` (object)
94
-
95
- Properties of the `inputConfiguration` object:
96
-
97
- ### `audio` (object)
98
-
99
- Properties of the `audio` object:
100
-
101
- #### `disabled` (boolean)
102
-
103
- Indicates if the plugin is disabled or not
104
-
105
- ### `video` (object)
106
-
107
- Properties of the `video` object:
108
-
109
- #### `disabled` (boolean)
110
-
111
- Indicates if the plugin is disabled or not
112
-
113
- ### `image` (object)
114
-
115
- Properties of the `image` object:
116
-
117
- #### `disabled` (boolean)
118
-
119
- Indicates if the plugin is disabled or not
120
-
121
25
  ## `settings` (boolean)
122
26
 
123
27
  Indicates if the item has to be displayed in the Settings Panel
@@ -184,42 +88,6 @@ Default: `true`
184
88
 
185
89
  The schema defines the following additional types:
186
90
 
187
- ## `EditableHtmlConfigureProp` (object)
188
-
189
- Properties of the `EditableHtmlConfigureProp` object:
190
-
191
- ### `audio` (object)
192
-
193
- Properties of the `audio` object:
194
-
195
- #### `disabled` (boolean)
196
-
197
- Indicates if the plugin is disabled or not
198
-
199
- ### `video` (object)
200
-
201
- Properties of the `video` object:
202
-
203
- #### `disabled` (boolean)
204
-
205
- Indicates if the plugin is disabled or not
206
-
207
- ### `image` (object)
208
-
209
- Properties of the `image` object:
210
-
211
- #### `disabled` (boolean)
212
-
213
- Indicates if the plugin is disabled or not
214
-
215
- ## `EditableHtmlButtonConfigure` (object)
216
-
217
- Properties of the `EditableHtmlButtonConfigure` object:
218
-
219
- ### `disabled` (boolean)
220
-
221
- Indicates if the plugin is disabled or not
222
-
223
91
  ## `ConfigureProp` (object)
224
92
 
225
93
  Properties of the `ConfigureProp` object:
@@ -230,44 +98,4 @@ Indicates if the item has to be displayed in the Settings Panel
230
98
 
231
99
  ### `label` (string)
232
100
 
233
- Indicates the label for the item that has to be displayed in the Settings Panel
234
-
235
- ## `EditableHtmlPluginConfigure` (object)
236
-
237
- Properties of the `EditableHtmlPluginConfigure` object:
238
-
239
- ### `inputConfiguration` (object)
240
-
241
- Properties of the `inputConfiguration` object:
242
-
243
- #### `audio` (object)
244
-
245
- Properties of the `audio` object:
246
-
247
- ##### `disabled` (boolean)
248
-
249
- Indicates if the plugin is disabled or not
250
-
251
- #### `video` (object)
252
-
253
- Properties of the `video` object:
254
-
255
- ##### `disabled` (boolean)
256
-
257
- Indicates if the plugin is disabled or not
258
-
259
- #### `image` (object)
260
-
261
- Properties of the `image` object:
262
-
263
- ##### `disabled` (boolean)
264
-
265
- Indicates if the plugin is disabled or not
266
-
267
- ### `settings` (boolean)
268
-
269
- Indicates if the item has to be displayed in the Settings Panel
270
-
271
- ### `label` (string)
272
-
273
101
  Indicates the label for the item that has to be displayed in the Settings Panel
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "0.21.1-next.17+86385a32b",
7
+ "version": "0.21.1-next.6+58a2b4054",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "author": "",
23
23
  "license": "ISC",
24
- "gitHead": "86385a32b0c5b7cd1d3137300444eae5be01957e",
24
+ "gitHead": "58a2b4054c992254766b1fe55211f61c2187acdd",
25
25
  "main": "lib/index.js",
26
26
  "module": "src/index.js"
27
27
  }