@pie-element/likert 0.1.14 → 0.1.19
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/CHANGELOG.md +16 -0
- package/configure/CHANGELOG.md +16 -0
- package/configure/package.json +3 -3
- package/controller/package.json +1 -1
- package/lib/likert.js +6 -9
- package/lib/likert.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.19](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@0.1.18...@pie-element/likert@0.1.19) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/likert
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@0.1.16...@pie-element/likert@0.1.17) (2021-12-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/likert
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.1.14](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert@0.1.13...@pie-element/likert@0.1.14) (2021-11-29)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @pie-element/likert
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.0.31](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@0.0.30...@pie-element/likert-configure@0.0.31) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/likert-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.0.29](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@0.0.28...@pie-element/likert-configure@0.0.29) (2021-12-13)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @pie-element/likert-configure
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.0.26](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-configure@0.0.25...@pie-element/likert-configure@0.0.26) (2021-11-29)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @pie-element/likert-configure
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/likert-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
11
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
12
|
-
"@pie-lib/config-ui": "^10.10.
|
|
13
|
-
"@pie-lib/editable-html": "^7.17.
|
|
12
|
+
"@pie-lib/config-ui": "^10.10.14",
|
|
13
|
+
"@pie-lib/editable-html": "^7.17.14",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"prop-types": "^15.6.2",
|
|
16
16
|
"react": "^16.8.1",
|
package/controller/package.json
CHANGED
package/lib/likert.js
CHANGED
|
@@ -92,16 +92,13 @@ var Likert = /*#__PURE__*/function (_React$Component) {
|
|
|
92
92
|
hidden: 'Show Teacher Instructions',
|
|
93
93
|
visible: 'Hide Teacher Instructions'
|
|
94
94
|
}
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
96
|
-
|
|
97
|
-
__html: teacherInstructions
|
|
98
|
-
}
|
|
95
|
+
}, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
96
|
+
prompt: teacherInstructions
|
|
99
97
|
})), /*#__PURE__*/_react["default"].createElement("br", null)), prompt && /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
-
className: classes.prompt
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: classes.prompt
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
100
|
+
prompt: prompt
|
|
101
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
102
|
className: classes.choicesWrapper,
|
|
106
103
|
style: {
|
|
107
104
|
flexDirection: flexDirection
|
package/lib/likert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/likert.jsx"],"names":["styles","corespringChoice","fontFamily","prompt","verticalAlign","color","paddingBottom","choicesWrapper","display","Likert","value","props","session","disabled","choices","onSessionChange","teacherInstructions","classes","likertOrientation","flexDirection","LIKERT_ORIENTATION","vertical","hidden","visible","
|
|
1
|
+
{"version":3,"sources":["../src/likert.jsx"],"names":["styles","corespringChoice","fontFamily","prompt","verticalAlign","color","paddingBottom","choicesWrapper","display","Likert","value","props","session","disabled","choices","onSessionChange","teacherInstructions","classes","likertOrientation","flexDirection","LIKERT_ORIENTATION","vertical","hidden","visible","map","choice","index","label","isSelected","React","Component","PropTypes","array","string","object","bool","isRequired","func","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG;AACbC,EAAAA,gBAAgB,EAAE;AAChB,WAAO;AACLC,MAAAA,UAAU,EAAE,sCADP;AAEL,gCAA0B;AAFrB;AADS,GADL;AAObC,EAAAA,M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KAAK,EAAE;AAAEY,UAAAA,aAAa,EAAbA;AAAF;AAA/C,SACGL,OAAO,CAACU,GAAR,CAAY,UAACC,MAAD,EAASC,KAAT;AAAA,4BACX,gCAAC,uBAAD;AACE,UAAA,GAAG,mBAAYA,KAAZ,CADL;AAEE,UAAA,KAAK,EAAED,MAAM,CAACE,KAFhB;AAGE,UAAA,KAAK,EAAEF,MAAM,CAACf,KAHhB;AAIE,UAAA,KAAK,EAAEgB,KAJT;AAKE,UAAA,QAAQ,EAAEb,QALZ;AAME,UAAA,QAAQ,EAAEE,eANZ;AAOE,UAAA,iBAAiB,EAAEG,iBAPrB;AAQE,UAAA,OAAO,EAAE,KAAI,CAACU,UAAL,CAAgBH,MAAM,CAACf,KAAvB;AARX,UADW;AAAA,OAAZ,CADH,CArBF,CADF;AAsCD;;;EAtEyBmB,kBAAMC,S;;;iCAArBrB,M,eACQ;AACjBK,EAAAA,OAAO,EAAEiB,sBAAUC,KADF;AAEjB7B,EAAAA,MAAM,EAAE4B,sBAAUE,MAFD;AAGjBjB,EAAAA,mBAAmB,EAAEe,sBAAUE,MAHd;AAIjBrB,EAAAA,OAAO,EAAEmB,sBAAUG,MAJF;AAKjBrB,EAAAA,QAAQ,EAAEkB,sBAAUI,IAAV,CAAeC,UALR;AAMjBrB,EAAAA,eAAe,EAAEgB,sBAAUM,IAAV,CAAeD,UANf;AAOjBlB,EAAAA,iBAAiB,EAAEa,sBAAUE,MAAV,CAAiBG,UAPnB;AAQjBnB,EAAAA,OAAO,EAAEc,sBAAUG,MAAV,CAAiBE;AART,C;AAwErB3B,MAAM,CAAC6B,YAAP,GAAsB;AACpB1B,EAAAA,OAAO,EAAE;AACPF,IAAAA,KAAK,EAAE;AADA;AADW,CAAtB;;eAMe,wBAAWV,MAAX,EAAmBS,MAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ChoiceInput from './choice-input';\nimport { withStyles } from '@material-ui/core/styles';\nimport {Collapsible, PreviewPrompt} from '@pie-lib/render-ui';\nimport { LIKERT_ORIENTATION } from './likertEntities';\n\nconst styles = {\n corespringChoice: {\n '& *': {\n fontFamily: 'Roboto, Arial, Helvetica, sans-serif',\n '-webkit-font-smoothing': 'antialiased',\n },\n },\n prompt: {\n verticalAlign: 'middle',\n color: 'var(--pie-primary-text, var(--pie-text, #000000))',\n paddingBottom: '20px',\n },\n choicesWrapper: {\n display: 'flex',\n },\n};\n\nexport class Likert extends React.Component {\n static propTypes = {\n choices: PropTypes.array,\n prompt: PropTypes.string,\n teacherInstructions: PropTypes.string,\n session: PropTypes.object,\n disabled: PropTypes.bool.isRequired,\n onSessionChange: PropTypes.func.isRequired,\n likertOrientation: PropTypes.string.isRequired,\n classes: PropTypes.object.isRequired,\n };\n\n UNSAFE_componentWillReceiveProps() {}\n\n isSelected(value) {\n return this.props.session && this.props.session.value === value;\n }\n\n render() {\n const {\n disabled,\n choices = [],\n prompt,\n onSessionChange,\n teacherInstructions,\n classes,\n likertOrientation,\n } = this.props;\n\n const flexDirection =\n likertOrientation === LIKERT_ORIENTATION.vertical ? 'column' : 'row';\n\n return (\n <div className={classes.corespringChoice}>\n {teacherInstructions && (\n <React.Fragment>\n <Collapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n <PreviewPrompt prompt={teacherInstructions} />\n </Collapsible>\n <br />\n </React.Fragment>\n )}\n\n {prompt && (\n <div className={classes.prompt}>\n <PreviewPrompt prompt={prompt} />\n </div>\n )}\n\n <div className={classes.choicesWrapper} style={{ flexDirection }}>\n {choices.map((choice, index) => (\n <ChoiceInput\n key={`choice-${index}`}\n label={choice.label}\n value={choice.value}\n index={index}\n disabled={disabled}\n onChange={onSessionChange}\n likertOrientation={likertOrientation}\n checked={this.isSelected(choice.value)}\n />\n ))}\n </div>\n </div>\n );\n }\n}\n\nLikert.defaultProps = {\n session: {\n value: [],\n },\n};\n\nexport default withStyles(styles)(Likert);\n"],"file":"likert.js"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.19",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
15
|
"@pie-lib/math-rendering": "^2.3.12",
|
|
16
|
-
"@pie-lib/render-ui": "^4.12.
|
|
16
|
+
"@pie-lib/render-ui": "^4.12.4",
|
|
17
17
|
"classnames": "^2.2.5",
|
|
18
18
|
"debug": "^4.1.1",
|
|
19
19
|
"lodash": "^4.17.10",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "aed4c49b18e323dd0fc7fbf2186039723d406751",
|
|
29
29
|
"main": "lib/index.js",
|
|
30
30
|
"module": "src/index.js"
|
|
31
31
|
}
|