forms-angular 0.12.0-beta.180 → 0.12.0-beta.183
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/dist/server/data_form.js +20 -10
- package/package.json +1 -1
package/dist/server/data_form.js
CHANGED
|
@@ -887,7 +887,12 @@ var FormsAngular = /** @class */ (function () {
|
|
|
887
887
|
if (req.query.hasOwnProperty(param)) {
|
|
888
888
|
if (req.query[param]) {
|
|
889
889
|
if (param !== 'r') { // we don't want to copy the whole report schema (again!)
|
|
890
|
-
schema.params[param]
|
|
890
|
+
if (schema.params[param] !== undefined) {
|
|
891
|
+
schema.params[param].value = req.query[param];
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
callback("No such parameter as ".concat(param, " - try one of ").concat(Object.keys(schema.params).join()));
|
|
895
|
+
}
|
|
891
896
|
}
|
|
892
897
|
}
|
|
893
898
|
}
|
|
@@ -896,17 +901,22 @@ var FormsAngular = /** @class */ (function () {
|
|
|
896
901
|
if (runPipelineStr) {
|
|
897
902
|
runPipelineStr = runPipelineStr.replace(/"\(.+?\)"/g, function (match) {
|
|
898
903
|
var sparam = schema.params[match.slice(2, -2)];
|
|
899
|
-
if (sparam
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
904
|
+
if (sparam !== undefined) {
|
|
905
|
+
if (sparam.type === 'number') {
|
|
906
|
+
return sparam.value;
|
|
907
|
+
}
|
|
908
|
+
else if (_.isObject(sparam.value)) {
|
|
909
|
+
return JSON.stringify(sparam.value);
|
|
910
|
+
}
|
|
911
|
+
else if (sparam.value[0] === '{') {
|
|
912
|
+
return sparam.value;
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
return '"' + sparam.value + '"';
|
|
916
|
+
}
|
|
907
917
|
}
|
|
908
918
|
else {
|
|
909
|
-
|
|
919
|
+
callback("No such parameter as ".concat(match.slice(2, -2), " - try one of ").concat(Object.keys(schema.params).join()));
|
|
910
920
|
}
|
|
911
921
|
});
|
|
912
922
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Mark Chapman <support@forms-angular.org>",
|
|
4
4
|
"description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
|
|
5
5
|
"homepage": "http://forms-angular.org",
|
|
6
|
-
"version": "0.12.0-beta.
|
|
6
|
+
"version": "0.12.0-beta.183",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=8.x",
|
|
9
9
|
"npm": ">=5.x"
|