@wavemaker/app-runtime-wm-build 11.4.0-next.24564 → 11.4.0-next.24568
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 +25 -14
- app-runtime-wm-build/wmapp/scripts/wm-libs.min.js +10 -6
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +12 -2
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +3 -3
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-libs.js +25 -14
- app-runtime-wm-build/wmmobile/scripts/wm-libs.min.js +10 -6
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +12 -2
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +3 -3
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -227917,7 +227917,7 @@ window.requestAnimationFrame = function() {
|
|
|
227917
227917
|
var fieldType = _util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_3__.LiveVariableUtils.getFieldType(key, variable);
|
|
227918
227918
|
var fieldValue;
|
|
227919
227919
|
if ((0, _util_utils__WEBPACK_IMPORTED_MODULE_0__.isDateTimeType)(fieldType)) {
|
|
227920
|
-
fieldValue = (0, _util_variable_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(value, fieldType);
|
|
227920
|
+
fieldValue = (0, _util_variable_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(value, fieldType, variable.dateFormatter);
|
|
227921
227921
|
rowObject[key] = fieldValue;
|
|
227922
227922
|
} else if (lodash__WEBPACK_IMPORTED_MODULE_8___default().isArray(value) && _util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_3__.LiveVariableUtils.isStringType(fieldType)) {
|
|
227923
227923
|
fieldValue = lodash__WEBPACK_IMPORTED_MODULE_8___default().join(value, ",");
|
|
@@ -227948,7 +227948,7 @@ window.requestAnimationFrame = function() {
|
|
|
227948
227948
|
if (action !== "deleteTableData" || _util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_3__.LiveVariableUtils.isCompositeKey(primaryKey)) {
|
|
227949
227949
|
fieldType = _util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_3__.LiveVariableUtils.getFieldType(fieldName, variable);
|
|
227950
227950
|
if ((0, _util_utils__WEBPACK_IMPORTED_MODULE_0__.isDateTimeType)(fieldType)) {
|
|
227951
|
-
fieldValue = (0, _util_variable_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(fieldValue, fieldType);
|
|
227951
|
+
fieldValue = (0, _util_variable_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(fieldValue, fieldType, variable.dateFormatter);
|
|
227952
227952
|
} else if (lodash__WEBPACK_IMPORTED_MODULE_8___default().isArray(fieldValue) && _util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_3__.LiveVariableUtils.isStringType(fieldType)) {
|
|
227953
227953
|
fieldValue = lodash__WEBPACK_IMPORTED_MODULE_8___default().join(fieldValue, ",");
|
|
227954
227954
|
}
|
|
@@ -230428,6 +230428,13 @@ window.requestAnimationFrame = function() {
|
|
|
230428
230428
|
return ServiceVariable;
|
|
230429
230429
|
}(_api_aware_variable__WEBPACK_IMPORTED_MODULE_3__.ApiAwareVariable);
|
|
230430
230430
|
},
|
|
230431
|
+
"./src/types/date-formatter.ts":
|
|
230432
|
+
/*!*************************************!*\
|
|
230433
|
+
!*** ./src/types/date-formatter.ts ***!
|
|
230434
|
+
\*************************************/ (__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
230435
|
+
"use strict";
|
|
230436
|
+
__webpack_require__.r(__webpack_exports__);
|
|
230437
|
+
},
|
|
230431
230438
|
"./src/types/event-notifier.ts":
|
|
230432
230439
|
/*!*************************************!*\
|
|
230433
230440
|
!*** ./src/types/event-notifier.ts ***!
|
|
@@ -231719,7 +231726,7 @@ window.requestAnimationFrame = function() {
|
|
|
231719
231726
|
case "date":
|
|
231720
231727
|
case "datetime":
|
|
231721
231728
|
case "timestamp":
|
|
231722
|
-
fieldValue = (0, _variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(fieldValue, fieldType);
|
|
231729
|
+
fieldValue = (0, _variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(fieldValue, fieldType, variable.dateFormatter);
|
|
231723
231730
|
filterCondition = filterCondition ? LiveVariableUtils.getFilterCondition(filterCondition) : matchModes["exact"];
|
|
231724
231731
|
break;
|
|
231725
231732
|
|
|
@@ -231946,7 +231953,7 @@ window.requestAnimationFrame = function() {
|
|
|
231946
231953
|
if (!lodash__WEBPACK_IMPORTED_MODULE_4___default().isEmpty(options.filterFields)) {
|
|
231947
231954
|
var operator = "";
|
|
231948
231955
|
for (var field in options.filterFields) {
|
|
231949
|
-
operator = options.filterFields[field]["logicalOp"] || "";
|
|
231956
|
+
operator = options.filterFields[field] && options.filterFields[field]["logicalOp"] || "";
|
|
231950
231957
|
break;
|
|
231951
231958
|
}
|
|
231952
231959
|
filterRules = {
|
|
@@ -231954,6 +231961,9 @@ window.requestAnimationFrame = function() {
|
|
|
231954
231961
|
rules: []
|
|
231955
231962
|
};
|
|
231956
231963
|
lodash__WEBPACK_IMPORTED_MODULE_4___default().forEach(options.filterFields, (function(filterObj, filterName) {
|
|
231964
|
+
if (!filterObj) {
|
|
231965
|
+
return;
|
|
231966
|
+
}
|
|
231957
231967
|
var filterCondition = matchModes[filterObj.matchMode] || matchModes[filterObj.filterCondition] || filterObj.filterCondition;
|
|
231958
231968
|
if (lodash__WEBPACK_IMPORTED_MODULE_4___default().includes(_constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.DB_CONSTANTS.DATABASE_EMPTY_MATCH_MODES, filterCondition) || !lodash__WEBPACK_IMPORTED_MODULE_4___default().isNil(filterObj.value) && filterObj.value !== "") {
|
|
231959
231969
|
var type = filterObj.type || LiveVariableUtils.getSqlType(variable, filterName, options.entityName);
|
|
@@ -232415,14 +232425,14 @@ window.requestAnimationFrame = function() {
|
|
|
232415
232425
|
return formData;
|
|
232416
232426
|
}
|
|
232417
232427
|
};
|
|
232418
|
-
var processRequestBody = function(inputData, params) {
|
|
232428
|
+
var processRequestBody = function(inputData, params, variable) {
|
|
232419
232429
|
var requestBody = {}, missingParams = [];
|
|
232420
232430
|
var paramValue;
|
|
232421
232431
|
lodash__WEBPACK_IMPORTED_MODULE_5___default().forEach(params, (function(param) {
|
|
232422
232432
|
paramValue = lodash__WEBPACK_IMPORTED_MODULE_5___default().get(inputData, param.name);
|
|
232423
232433
|
if (!lodash__WEBPACK_IMPORTED_MODULE_5___default().isUndefined(paramValue) && paramValue !== "" && paramValue !== null && !param.readOnly) {
|
|
232424
232434
|
paramValue = (0, _util_utils__WEBPACK_IMPORTED_MODULE_0__.isDateTimeType)(param.type) ? (0,
|
|
232425
|
-
_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(paramValue, param.type) : paramValue;
|
|
232435
|
+
_variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(paramValue, param.type, variable.dateFormatter) : paramValue;
|
|
232426
232436
|
if (lodash__WEBPACK_IMPORTED_MODULE_5___default().isArray(paramValue) && lodash__WEBPACK_IMPORTED_MODULE_5___default().toLower((0,
|
|
232427
232437
|
_util_utils__WEBPACK_IMPORTED_MODULE_0__.extractType)(param.type)) === "string") {
|
|
232428
232438
|
paramValue = lodash__WEBPACK_IMPORTED_MODULE_5___default().join(paramValue, ",");
|
|
@@ -232554,7 +232564,7 @@ window.requestAnimationFrame = function() {
|
|
|
232554
232564
|
if ((0, _util_utils__WEBPACK_IMPORTED_MODULE_0__.isDefined)(paramValue) && paramValue !== null && paramValue !== "" || isBodyTypeQueryProcedure && param.type !== "file") {
|
|
232555
232565
|
if (variable.serviceType === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.VARIABLE_CONSTANTS.SERVICE_TYPE.DATA && (0,
|
|
232556
232566
|
_util_utils__WEBPACK_IMPORTED_MODULE_0__.isDateTimeType)(param.type)) {
|
|
232557
|
-
paramValue = (0, _variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(paramValue, param.type);
|
|
232567
|
+
paramValue = (0, _variables_utils__WEBPACK_IMPORTED_MODULE_2__.formatDate)(paramValue, param.type, variable.dateFormatter);
|
|
232558
232568
|
}
|
|
232559
232569
|
if (lodash__WEBPACK_IMPORTED_MODULE_5___default().isArray(paramValue) && lodash__WEBPACK_IMPORTED_MODULE_5___default().toLower((0,
|
|
232560
232570
|
_util_utils__WEBPACK_IMPORTED_MODULE_0__.extractType)(param.type)) === "string" && variable.serviceType === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.VARIABLE_CONSTANTS.SERVICE_TYPE.DATA) {
|
|
@@ -232584,7 +232594,7 @@ window.requestAnimationFrame = function() {
|
|
|
232584
232594
|
case "BODY":
|
|
232585
232595
|
if (isBodyTypeQueryProcedure) {
|
|
232586
232596
|
setParamsOfChildNode();
|
|
232587
|
-
bodyInfo = processRequestBody(paramValueInfo, params);
|
|
232597
|
+
bodyInfo = processRequestBody(paramValueInfo, params, variable);
|
|
232588
232598
|
requestBody = bodyInfo.requestBody;
|
|
232589
232599
|
requiredParamMissing = lodash__WEBPACK_IMPORTED_MODULE_5___default().concat(requiredParamMissing, bodyInfo.missingParams);
|
|
232590
232600
|
} else {
|
|
@@ -232595,7 +232605,7 @@ window.requestAnimationFrame = function() {
|
|
|
232595
232605
|
case "FORMDATA":
|
|
232596
232606
|
if (isBodyTypeQueryProcedure && param.name === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.SWAGGER_CONSTANTS.WM_DATA_JSON) {
|
|
232597
232607
|
setParamsOfChildNode();
|
|
232598
|
-
bodyInfo = processRequestBody(paramValueInfo, params);
|
|
232608
|
+
bodyInfo = processRequestBody(paramValueInfo, params, variable);
|
|
232599
232609
|
requestBody = getFormData(getFormDataObj(), param, bodyInfo.requestBody);
|
|
232600
232610
|
requiredParamMissing = lodash__WEBPACK_IMPORTED_MODULE_5___default().concat(requiredParamMissing, bodyInfo.missingParams);
|
|
232601
232611
|
} else {
|
|
@@ -233060,7 +233070,7 @@ window.requestAnimationFrame = function() {
|
|
|
233060
233070
|
var getDateTimeFormatForType = function(type) {
|
|
233061
233071
|
return _utils__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_FORMATS[lodash__WEBPACK_IMPORTED_MODULE_3___default().toUpper(type)];
|
|
233062
233072
|
};
|
|
233063
|
-
var _formatDate = function(dateValue, type) {
|
|
233073
|
+
var _formatDate = function(dateValue, type, dateFormatter) {
|
|
233064
233074
|
var epoch;
|
|
233065
233075
|
if (lodash__WEBPACK_IMPORTED_MODULE_3___default().isDate(dateValue)) {
|
|
233066
233076
|
epoch = dateValue.getTime();
|
|
@@ -233079,18 +233089,18 @@ window.requestAnimationFrame = function() {
|
|
|
233079
233089
|
if (type === _utils__WEBPACK_IMPORTED_MODULE_0__.DataType.TIME && !epoch) {
|
|
233080
233090
|
epoch = moment__WEBPACK_IMPORTED_MODULE_2___default()((new Date).toDateString() + " " + dateValue).valueOf();
|
|
233081
233091
|
}
|
|
233082
|
-
return dateValue &&
|
|
233092
|
+
return dateValue && dateFormatter.format(epoch, getDateTimeFormatForType(type));
|
|
233083
233093
|
};
|
|
233084
|
-
var formatDate = function(value, type) {
|
|
233094
|
+
var formatDate = function(value, type, dateFormatter) {
|
|
233085
233095
|
if (lodash__WEBPACK_IMPORTED_MODULE_3___default().includes(type, ".")) {
|
|
233086
233096
|
type = lodash__WEBPACK_IMPORTED_MODULE_3___default().toLower((0, _utils__WEBPACK_IMPORTED_MODULE_0__.extractType)(type));
|
|
233087
233097
|
}
|
|
233088
233098
|
if (lodash__WEBPACK_IMPORTED_MODULE_3___default().isArray(value)) {
|
|
233089
233099
|
return lodash__WEBPACK_IMPORTED_MODULE_3___default().map(value, (function(val) {
|
|
233090
|
-
return _formatDate(val, type);
|
|
233100
|
+
return _formatDate(val, type, dateFormatter);
|
|
233091
233101
|
}));
|
|
233092
233102
|
}
|
|
233093
|
-
return _formatDate(value, type);
|
|
233103
|
+
return _formatDate(value, type, dateFormatter);
|
|
233094
233104
|
};
|
|
233095
233105
|
var parseErrors = function(errors) {
|
|
233096
233106
|
var errMsg = "";
|
|
@@ -233735,6 +233745,7 @@ window.requestAnimationFrame = function() {
|
|
|
233735
233745
|
var _src_types_http_client_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./src/types/http-client.service */ "./src/types/http-client.service.ts");
|
|
233736
233746
|
var _src_util_variable_live_variable_http_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./src/util/variable/live-variable.http.utils */ "./src/util/variable/live-variable.http.utils.ts");
|
|
233737
233747
|
var _src_util_variable_live_variable_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./src/util/variable/live-variable.utils */ "./src/util/variable/live-variable.utils.ts");
|
|
233748
|
+
var _src_types_date_formatter__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./src/types/date-formatter */ "./src/types/date-formatter.ts");
|
|
233738
233749
|
var TEST = "hello from variables";
|
|
233739
233750
|
})();
|
|
233740
233751
|
return __webpack_exports__;
|