@wavemaker/angular-codegen 11.5.1-rc.5402 → 11.5.1-rc.5413
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.
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@metrichor/jmespath": "^0.3.1",
|
|
37
37
|
"@wavemaker.com/nvd3": "1.0.0",
|
|
38
38
|
"@wavemaker/focus-trap": "^1.0.0",
|
|
39
|
-
"@wavemaker/variables": "11.5.1-rc.
|
|
39
|
+
"@wavemaker/variables": "11.5.1-rc.5413",
|
|
40
40
|
"@ztree/ztree_v3": "^3.5.48",
|
|
41
41
|
"angular-imask": "6.3.0",
|
|
42
42
|
"angular2-websocket": "0.9.7",
|
|
@@ -5947,9 +5947,9 @@
|
|
|
5947
5947
|
}
|
|
5948
5948
|
},
|
|
5949
5949
|
"node_modules/@wavemaker/variables": {
|
|
5950
|
-
"version": "11.5.1-rc.
|
|
5951
|
-
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.5.1-rc.
|
|
5952
|
-
"integrity": "sha512-
|
|
5950
|
+
"version": "11.5.1-rc.5413",
|
|
5951
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.5.1-rc.5413.tgz",
|
|
5952
|
+
"integrity": "sha512-N0uiiJepRzfaei1iRCNuXqrz4eaAXg2oCNBziQpdSgHHeJ2z7pa3IcPRPtvynLb5MKr8BnDEUFOtVwX3uV246Q==",
|
|
5953
5953
|
"dependencies": {
|
|
5954
5954
|
"@metrichor/jmespath": "^0.3.1",
|
|
5955
5955
|
"he": "^1.2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@metrichor/jmespath": "^0.3.1",
|
|
48
48
|
"@wavemaker.com/nvd3": "1.0.0",
|
|
49
49
|
"@wavemaker/focus-trap": "^1.0.0",
|
|
50
|
-
"@wavemaker/variables": "11.5.1-rc.
|
|
50
|
+
"@wavemaker/variables": "11.5.1-rc.5413",
|
|
51
51
|
"@ztree/ztree_v3": "^3.5.48",
|
|
52
52
|
"angular-imask": "6.3.0",
|
|
53
53
|
"angular2-websocket": "0.9.7",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"tslib": "2.4.1",
|
|
73
73
|
"x2js": "^3.4.4",
|
|
74
74
|
"zone.js": "~0.11.4",
|
|
75
|
-
"@wavemaker/app-ng-runtime": "11.5.1-rc.
|
|
75
|
+
"@wavemaker/app-ng-runtime": "11.5.1-rc.5413"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -96714,25 +96714,32 @@ TrailingZeroDecimalPipe.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "trailingZ
|
|
|
96714
96714
|
}]
|
|
96715
96715
|
}], function () { return [{ type: DecimalPipe }]; }, null); })();
|
|
96716
96716
|
class ToDatePipe extends WmPipe {
|
|
96717
|
-
|
|
96717
|
+
// This method calls the custom formatter fn after applying the exisitng date pattern
|
|
96718
|
+
returnFn(data, args) {
|
|
96718
96719
|
if (this.isCustomPipe) {
|
|
96719
|
-
|
|
96720
|
+
if (args) {
|
|
96721
|
+
args[0] = data;
|
|
96722
|
+
}
|
|
96723
|
+
return this.customFormatter(data, args);
|
|
96720
96724
|
}
|
|
96725
|
+
return data;
|
|
96726
|
+
}
|
|
96727
|
+
transform(data, format, timezone, compInstance) {
|
|
96721
96728
|
let timestamp;
|
|
96722
96729
|
// 'null' is to be treated as a special case, If user wants to enter null value, empty string will be passed to the backend
|
|
96723
96730
|
if (data === 'null' || data === '') {
|
|
96724
|
-
return '';
|
|
96731
|
+
return this.returnFn('', arguments);
|
|
96725
96732
|
}
|
|
96726
96733
|
if (!isDefined$1(data)) {
|
|
96727
|
-
return '';
|
|
96734
|
+
return this.returnFn('', arguments);
|
|
96728
96735
|
}
|
|
96729
96736
|
timestamp = getEpochValue(data);
|
|
96730
96737
|
if (timestamp) {
|
|
96731
96738
|
if (format === 'timestamp') {
|
|
96732
|
-
return timestamp;
|
|
96739
|
+
return this.returnFn(timestamp, arguments);
|
|
96733
96740
|
}
|
|
96734
96741
|
if (format === 'UTC') {
|
|
96735
|
-
return new Date(timestamp).toISOString();
|
|
96742
|
+
return this.returnFn(new Date(timestamp).toISOString(), arguments);
|
|
96736
96743
|
}
|
|
96737
96744
|
let formattedVal;
|
|
96738
96745
|
const timeZone = this.i18nService ? this.i18nService.getTimezone(compInstance) : timezone;
|
|
@@ -96742,9 +96749,9 @@ class ToDatePipe extends WmPipe {
|
|
|
96742
96749
|
else {
|
|
96743
96750
|
formattedVal = this.datePipe.transform(timestamp, format);
|
|
96744
96751
|
}
|
|
96745
|
-
return formattedVal;
|
|
96752
|
+
return this.returnFn(formattedVal, arguments);
|
|
96746
96753
|
}
|
|
96747
|
-
return '';
|
|
96754
|
+
return this.returnFn('', arguments);
|
|
96748
96755
|
}
|
|
96749
96756
|
constructor(datePipe, i18nService, customPipeManager) {
|
|
96750
96757
|
super('toDate', customPipeManager);
|