@pie-element/inline-dropdown 4.2.1 → 4.2.2
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 +12 -0
- package/configure/CHANGELOG.md +12 -0
- package/configure/lib/utils.js +3 -2
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [4.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/inline-dropdown@4.2.1...@pie-element/inline-dropdown@4.2.2) (2022-08-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **inline-dropdown:** update validation message ([a87ae23](https://github.com/pie-framework/pie-elements/commit/a87ae2369f438e4fd6902680c2a1fb4b3ef8ef3a))
|
|
12
|
+
* **inline-dropdown:** update validation message ([99afc72](https://github.com/pie-framework/pie-elements/commit/99afc7208b5d9db307d6a0174c3945ddb77baaca))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/inline-dropdown@4.2.0...@pie-element/inline-dropdown@4.2.1) (2022-08-08)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @pie-element/inline-dropdown
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [4.2.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/inline-dropdown-configure@4.2.1...@pie-element/inline-dropdown-configure@4.2.2) (2022-08-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **inline-dropdown:** update validation message ([a87ae23](https://github.com/pie-framework/pie-elements/commit/a87ae2369f438e4fd6902680c2a1fb4b3ef8ef3a))
|
|
12
|
+
* **inline-dropdown:** update validation message ([99afc72](https://github.com/pie-framework/pie-elements/commit/99afc7208b5d9db307d6a0174c3945ddb77baaca))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [4.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/inline-dropdown-configure@4.2.0...@pie-element/inline-dropdown-configure@4.2.1) (2022-08-08)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @pie-element/inline-dropdown-configure
|
package/configure/lib/utils.js
CHANGED
|
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.generateValidationMessage = void 0;
|
|
7
7
|
|
|
8
8
|
var generateValidationMessage = function generateValidationMessage(config) {
|
|
9
|
-
var maxResponseAreas = config.maxResponseAreas
|
|
10
|
-
|
|
9
|
+
var maxResponseAreas = config.maxResponseAreas,
|
|
10
|
+
maxResponseAreaChoices = config.maxResponseAreaChoices;
|
|
11
|
+
var responseAreasMessage = '\nThere should be at least 1 ' + (maxResponseAreas ? "and at most ".concat(maxResponseAreas, " ") : '') + 'response area' + (maxResponseAreas ? 's' : '') + ' defined.' + (maxResponseAreaChoices ? "\nThere should be at most ".concat(maxResponseAreaChoices, " choices defined per response area.") : '');
|
|
11
12
|
var message = 'Validation requirements:' + responseAreasMessage;
|
|
12
13
|
return message;
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils.js"],"names":["generateValidationMessage","config","maxResponseAreas","responseAreasMessage","message"],"mappings":";;;;;;;AAAO,IAAMA,yBAAyB,GAAG,SAA5BA,yBAA4B,CAAAC,MAAM,EAAI;AACjD,MAAQC,gBAAR,
|
|
1
|
+
{"version":3,"sources":["../src/utils.js"],"names":["generateValidationMessage","config","maxResponseAreas","maxResponseAreaChoices","responseAreasMessage","message"],"mappings":";;;;;;;AAAO,IAAMA,yBAAyB,GAAG,SAA5BA,yBAA4B,CAAAC,MAAM,EAAI;AACjD,MAAQC,gBAAR,GAAqDD,MAArD,CAAQC,gBAAR;AAAA,MAA0BC,sBAA1B,GAAqDF,MAArD,CAA0BE,sBAA1B;AAEA,MAAMC,oBAAoB,GAAG,mCAC1BF,gBAAgB,yBAAkBA,gBAAlB,SAAwC,EAD9B,IAE3B,eAF2B,IAERA,gBAAgB,GAAG,GAAH,GAAS,EAFjB,IAEuB,WAFvB,IAG1BC,sBAAsB,uCAAgCA,sBAAhC,2CAA8F,EAH1F,CAA7B;AAKA,MAAME,OAAO,GAAG,6BAA6BD,oBAA7C;AAEA,SAAOC,OAAP;AACD,CAXM","sourcesContent":["export const generateValidationMessage = config => {\n const { maxResponseAreas, maxResponseAreaChoices } = config;\n\n const responseAreasMessage = '\\nThere should be at least 1 ' +\n (maxResponseAreas ? `and at most ${maxResponseAreas} ` : '') +\n 'response area' + (maxResponseAreas ? 's' : '') + ' defined.' +\n (maxResponseAreaChoices ? `\\nThere should be at most ${maxResponseAreaChoices} choices defined per response area.` : '');\n\n const message = 'Validation requirements:' + responseAreasMessage;\n\n return message;\n};\n"],"file":"utils.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/inline-dropdown-configure",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
11
|
-
"@pie-lib/config-ui": "^11.0.
|
|
12
|
-
"@pie-lib/editable-html": "^9.1.
|
|
11
|
+
"@pie-lib/config-ui": "^11.0.12",
|
|
12
|
+
"@pie-lib/editable-html": "^9.1.2",
|
|
13
13
|
"@pie-lib/math-rendering": "^2.4.5",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
15
15
|
"debug": "^3.1.0",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "4.2.
|
|
7
|
+
"version": "4.2.2",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@material-ui/core": "^3.9.2",
|
|
15
15
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
16
|
-
"@pie-lib/correct-answer-toggle": "^2.3.
|
|
17
|
-
"@pie-lib/mask-markup": "^1.12.
|
|
16
|
+
"@pie-lib/correct-answer-toggle": "^2.3.43",
|
|
17
|
+
"@pie-lib/mask-markup": "^1.12.11",
|
|
18
18
|
"@pie-lib/math-rendering": "^2.4.5",
|
|
19
|
-
"@pie-lib/render-ui": "^4.13.
|
|
19
|
+
"@pie-lib/render-ui": "^4.13.3",
|
|
20
20
|
"classnames": "^2.2.5",
|
|
21
21
|
"lodash": "^4.17.10",
|
|
22
22
|
"prop-types": "^15.6.1",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"author": "",
|
|
27
27
|
"license": "ISC",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ede3dabf5cc1cb5c07cc275f2b27ac3e4e9eecae",
|
|
29
29
|
"main": "lib/index.js",
|
|
30
30
|
"module": "src/index.js"
|
|
31
31
|
}
|