@wavemaker/app-runtime-wm-build 11.4.0-rc.5346 → 11.4.0-rc.5347
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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-libs.js +19 -4
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +166 -166
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +231 -118
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +6 -6
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +19 -4
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +2 -2
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +231 -118
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +6 -6
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -204105,6 +204105,8 @@ window.requestAnimationFrame = function() {
|
|
|
204105
204105
|
var _metrichor_jmespath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @metrichor/jmespath */ "./node_modules/@metrichor/jmespath/dist/jmespath.esm.js");
|
|
204106
204106
|
var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
|
|
204107
204107
|
var lodash__WEBPACK_IMPORTED_MODULE_1___default = __webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
204108
|
+
var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/util/utils.ts");
|
|
204109
|
+
var _constants_variables_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants/variables.constants */ "./src/constants/variables.constants.ts");
|
|
204108
204110
|
var PaginationUtils = function() {
|
|
204109
204111
|
function PaginationUtils() {}
|
|
204110
204112
|
PaginationUtils.setPaginationQueryParams = function(variable, operationInfo, paginationInfo) {
|
|
@@ -204237,9 +204239,15 @@ window.requestAnimationFrame = function() {
|
|
|
204237
204239
|
return obj.name === paramName;
|
|
204238
204240
|
}));
|
|
204239
204241
|
if ((paramObj === null || paramObj === void 0 ? void 0 : paramObj.parameterType) === "header") {
|
|
204240
|
-
|
|
204241
|
-
|
|
204242
|
-
|
|
204242
|
+
var inputBodyParam = _constants_variables_constants__WEBPACK_IMPORTED_MODULE_3__.VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.CLOAK_HEADER_KEY + paginationInfo.input[inputParam];
|
|
204243
|
+
if (inputParam !== "offset") {
|
|
204244
|
+
lodash__WEBPACK_IMPORTED_MODULE_1___default().set(reqObj, inputBodyParam, variable.pagination["page"]);
|
|
204245
|
+
} else {
|
|
204246
|
+
lodash__WEBPACK_IMPORTED_MODULE_1___default().set(reqObj, inputBodyParam, this.getOffsetInfo(variable, options));
|
|
204247
|
+
}
|
|
204248
|
+
lodash__WEBPACK_IMPORTED_MODULE_1___default().set(reqObj, _constants_variables_constants__WEBPACK_IMPORTED_MODULE_3__.VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.CLOAK_HEADER_KEY + paginationInfo.input.size, variable.pagination["size"]);
|
|
204249
|
+
var headerKey = _constants_variables_constants__WEBPACK_IMPORTED_MODULE_3__.VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.CLOAK_HEADER_KEY + paramName;
|
|
204250
|
+
headers[headerKey] = typeof reqObj[headerKey] === "object" ? JSON.stringify(reqObj[headerKey]) : reqObj[headerKey];
|
|
204243
204251
|
resObj["headers"] = headers;
|
|
204244
204252
|
} else if ((paramObj === null || paramObj === void 0 ? void 0 : paramObj.parameterType) === "body") {
|
|
204245
204253
|
var bodyVal = JSON.parse(paramObj.sampleValue);
|
|
@@ -204297,11 +204305,15 @@ window.requestAnimationFrame = function() {
|
|
|
204297
204305
|
};
|
|
204298
204306
|
PaginationUtils.setParameterVal = function(paramName, res, operationInfo, variable) {
|
|
204299
204307
|
var paginationInfo = this.getPaginationInfo(operationInfo, variable);
|
|
204300
|
-
var
|
|
204308
|
+
var paginationParams = paginationInfo.input[paramName].split(".");
|
|
204309
|
+
var param = paginationParams[0];
|
|
204301
204310
|
var sizeObj = lodash__WEBPACK_IMPORTED_MODULE_1___default().find(operationInfo.parameters, (function(obj) {
|
|
204302
204311
|
return obj.name === param;
|
|
204303
204312
|
}));
|
|
204304
204313
|
res[paramName] = lodash__WEBPACK_IMPORTED_MODULE_1___default().result(sizeObj, "sampleValue");
|
|
204314
|
+
if (paginationParams.length > 1) {
|
|
204315
|
+
res[paramName] = lodash__WEBPACK_IMPORTED_MODULE_1___default().get((0, _utils__WEBPACK_IMPORTED_MODULE_2__.getValidJSON)(res[paramName]), paginationInfo.input[paramName].split(".").splice(1).join("."));
|
|
204316
|
+
}
|
|
204305
204317
|
};
|
|
204306
204318
|
PaginationUtils.generatePaginationRes = function(operationInfo, paginationInfo, response, resHeaders, options, variable) {
|
|
204307
204319
|
var res = {};
|
|
@@ -204996,6 +205008,9 @@ window.requestAnimationFrame = function() {
|
|
|
204996
205008
|
}
|
|
204997
205009
|
};
|
|
204998
205010
|
var initiateCallback = function(type, variable, data, options, skipDefaultNotification) {
|
|
205011
|
+
if (variable._skipInitiateCallback) {
|
|
205012
|
+
return;
|
|
205013
|
+
}
|
|
204999
205014
|
var eventValues = variable[type], callBackScope = variable._context;
|
|
205000
205015
|
var errorVariable;
|
|
205001
205016
|
if (type === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.VARIABLE_CONSTANTS.EVENT.ERROR && !skipDefaultNotification) {
|