@wavemaker/angular-codegen 11.5.1-rc.5402 → 11.5.1-rc.5410
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.5410",
|
|
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.5410",
|
|
5951
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.5.1-rc.5410.tgz",
|
|
5952
|
+
"integrity": "sha512-qb0sphfGun5pJ0wltm1XTeQSeoiIT9Qy0KcpVM+MN1eE0+F5RHBem0+Fvap4s8f7RLhbNuNv6S5aprGNDGuymQ==",
|
|
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.5410",
|
|
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.5410"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -96668,23 +96668,6 @@ CoreModule$1.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({ imports: [HttpClientModu
|
|
|
96668
96668
|
}], null, null); })();
|
|
96669
96669
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreModule$1, { imports: [HttpClientModule$1] }); })();
|
|
96670
96670
|
|
|
96671
|
-
class WmPipe {
|
|
96672
|
-
constructor(pipeName, customPipeManager) {
|
|
96673
|
-
this.pipeName = pipeName;
|
|
96674
|
-
this.customPipeManager = customPipeManager;
|
|
96675
|
-
this.pipeRef = this.customPipeManager ? this.customPipeManager.getCustomPipe(pipeName) : null;
|
|
96676
|
-
this.isCustomPipe = this.pipeRef && _.isFunction(this.pipeRef.formatter);
|
|
96677
|
-
}
|
|
96678
|
-
customFormatter(data, args) {
|
|
96679
|
-
try {
|
|
96680
|
-
return this.pipeRef.formatter(...args);
|
|
96681
|
-
}
|
|
96682
|
-
catch (error) {
|
|
96683
|
-
return data;
|
|
96684
|
-
}
|
|
96685
|
-
}
|
|
96686
|
-
}
|
|
96687
|
-
|
|
96688
96671
|
const getEpochValue = data => {
|
|
96689
96672
|
let epoch;
|
|
96690
96673
|
// For data in form of string number ('123'), convert to number (123). And don't parse date objects.
|
|
@@ -96713,11 +96696,8 @@ TrailingZeroDecimalPipe.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "trailingZ
|
|
|
96713
96696
|
name: 'trailingZeroDecimalPipe'
|
|
96714
96697
|
}]
|
|
96715
96698
|
}], function () { return [{ type: DecimalPipe }]; }, null); })();
|
|
96716
|
-
class ToDatePipe
|
|
96699
|
+
class ToDatePipe {
|
|
96717
96700
|
transform(data, format, timezone, compInstance) {
|
|
96718
|
-
if (this.isCustomPipe) {
|
|
96719
|
-
return this.customFormatter(data, arguments);
|
|
96720
|
-
}
|
|
96721
96701
|
let timestamp;
|
|
96722
96702
|
// '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
96703
|
if (data === 'null' || data === '') {
|
|
@@ -96746,21 +96726,19 @@ class ToDatePipe extends WmPipe {
|
|
|
96746
96726
|
}
|
|
96747
96727
|
return '';
|
|
96748
96728
|
}
|
|
96749
|
-
constructor(datePipe, i18nService
|
|
96750
|
-
super('toDate', customPipeManager);
|
|
96729
|
+
constructor(datePipe, i18nService) {
|
|
96751
96730
|
this.datePipe = datePipe;
|
|
96752
96731
|
this.i18nService = i18nService;
|
|
96753
|
-
this.customPipeManager = customPipeManager;
|
|
96754
96732
|
}
|
|
96755
96733
|
}
|
|
96756
|
-
ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16)
|
|
96734
|
+
ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(ɵɵdirectiveInject(DatePipe, 16), ɵɵdirectiveInject(AbstractI18nService$1, 16)); };
|
|
96757
96735
|
ToDatePipe.ɵpipe = /*@__PURE__*/ ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true });
|
|
96758
96736
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(ToDatePipe, [{
|
|
96759
96737
|
type: Pipe,
|
|
96760
96738
|
args: [{
|
|
96761
96739
|
name: 'toDate'
|
|
96762
96740
|
}]
|
|
96763
|
-
}], function () { return [{ type: DatePipe }, { type: AbstractI18nService$1 }
|
|
96741
|
+
}], function () { return [{ type: DatePipe }, { type: AbstractI18nService$1 }]; }, null); })();
|
|
96764
96742
|
class ToNumberPipe {
|
|
96765
96743
|
transform(data, fracSize) {
|
|
96766
96744
|
if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
|
|
@@ -125326,7 +125304,7 @@ class PipeProvider {
|
|
|
125326
125304
|
this.preparePipeMeta(CurrencyPipe$1, 'currency', true, [this._locale]),
|
|
125327
125305
|
this.preparePipeMeta(DatePipe$1, 'date', true, [this._locale]),
|
|
125328
125306
|
this.preparePipeMeta(ToDatePipe, 'toDate', true, [
|
|
125329
|
-
new DatePipe$1(this._locale)
|
|
125307
|
+
new DatePipe$1(this._locale)
|
|
125330
125308
|
]),
|
|
125331
125309
|
this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
|
|
125332
125310
|
new DecimalPipe$1(this._locale),
|