@pie-element/inline-dropdown 3.8.3-next.1152 → 3.8.3-next.1162

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.
@@ -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
- var responseAreasMessage = '\nThere should be at least 1 ' + (maxResponseAreas ? "and at most ".concat(maxResponseAreas, " ") : '') + 'response area' + (maxResponseAreas ? 's' : '') + ' defined.';
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,GAA6BD,MAA7B,CAAQC,gBAAR;AAEA,MAAMC,oBAAoB,GAAG,mCAC1BD,gBAAgB,yBAAkBA,gBAAlB,SAAwC,EAD9B,IAE3B,eAF2B,IAERA,gBAAgB,GAAG,GAAH,GAAS,EAFjB,IAEuB,WAFpD;AAIA,MAAME,OAAO,GAAG,6BAA6BD,oBAA7C;AAEA,SAAOC,OAAP;AACD,CAVM","sourcesContent":["export const generateValidationMessage = config => {\n const { maxResponseAreas } = config;\n\n const responseAreasMessage = '\\nThere should be at least 1 ' +\n (maxResponseAreas ? `and at most ${maxResponseAreas} ` : '') +\n 'response area' + (maxResponseAreas ? 's' : '') + ' defined.';\n\n const message = 'Validation requirements:' + responseAreasMessage;\n\n return message;\n};\n"],"file":"utils.js"}
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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.8.3-next.1152+3fa85e272",
7
+ "version": "3.8.3-next.1162+401f2b36b",
8
8
  "description": "",
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "author": "",
27
27
  "license": "ISC",
28
- "gitHead": "3fa85e272feecf3fe0a4846a5be07822dc9d6472",
28
+ "gitHead": "401f2b36b86775972d951e07236e1e8944dcd225",
29
29
  "main": "lib/index.js",
30
30
  "module": "src/index.js"
31
31
  }