@wavemaker/angular-codegen 11.8.2-next.27365 → 11.8.2-next.27366

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/focus-trap": "1.0.1",
38
38
  "@wavemaker/nvd3": "1.8.11",
39
- "@wavemaker/variables": "11.8.2-next.27365",
39
+ "@wavemaker/variables": "11.8.2-next.27366",
40
40
  "@ztree/ztree_v3": "3.5.48",
41
41
  "angular-imask": "^7.6.1",
42
42
  "angular2-websocket": "0.9.7",
@@ -6397,9 +6397,9 @@
6397
6397
  }
6398
6398
  },
6399
6399
  "node_modules/@wavemaker/variables": {
6400
- "version": "11.8.2-next.27365",
6401
- "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.2-next.27365.tgz",
6402
- "integrity": "sha512-NuGfEketSHEKKmyF3aj5RqePEAsj6/ASJOHzgrkxOrrVP9cgH+eH/9jfP91MQAoihXP6+aMBMrINY+TkcqCn2Q==",
6400
+ "version": "11.8.2-next.27366",
6401
+ "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.8.2-next.27366.tgz",
6402
+ "integrity": "sha512-obbkW+2pZaUbKrBUrPAygYDLRepvmczJ89OzfZKBeGsbwO6VX2OaFgzrzPvrtWqz7wseDc7JO+c2gDGiwSBKGA==",
6403
6403
  "dependencies": {
6404
6404
  "@metrichor/jmespath": "^0.3.1",
6405
6405
  "he": "^1.2.0",
@@ -45,7 +45,7 @@
45
45
  "@metrichor/jmespath": "0.3.1",
46
46
  "@wavemaker/focus-trap": "1.0.1",
47
47
  "@wavemaker/nvd3": "1.8.11",
48
- "@wavemaker/variables": "11.8.2-next.27365",
48
+ "@wavemaker/variables": "11.8.2-next.27366",
49
49
  "@ztree/ztree_v3": "3.5.48",
50
50
  "angular-imask": "^7.6.1",
51
51
  "angular2-websocket": "0.9.7",
@@ -70,7 +70,7 @@
70
70
  "tslib": "2.4.1",
71
71
  "x2js": "3.4.4",
72
72
  "zone.js": "0.14.7",
73
- "@wavemaker/app-ng-runtime": "11.8.2-next.27365"
73
+ "@wavemaker/app-ng-runtime": "11.8.2-next.27366"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -143879,7 +143879,7 @@ const getFormattedDate$1 = (datePipe, dateObj, format, timeZone, isTimeStampType
143879
143879
  if (format === 'UTC') {
143880
143880
  return new Date(dateObj).toISOString();
143881
143881
  }
143882
- if (timeZone && timeZone !== moment.defaultZone?.name) {
143882
+ if (timeZone) {
143883
143883
  const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
143884
143884
  if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
143885
143885
  return moment(dateObj).format(momentFormat);
@@ -144322,7 +144322,7 @@ const getMomentLocaleObject$1 = (timeZone, dateObj) => {
144322
144322
  return new Date(new Date(moment(dateObj).tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
144323
144323
  }
144324
144324
  else {
144325
- return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
144325
+ return new Date(new Date(moment().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
144326
144326
  }
144327
144327
  };
144328
144328
  const loadScript$1 = async (url, loadViaScriptTag, cacheable = false) => {
@@ -202107,7 +202107,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
202107
202107
  if (format === 'UTC') {
202108
202108
  return new Date(dateObj).toISOString();
202109
202109
  }
202110
- if (timeZone && timeZone !== moment.defaultZone?.name) {
202110
+ if (timeZone) {
202111
202111
  const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
202112
202112
  if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
202113
202113
  return moment(dateObj).format(momentFormat);
@@ -202550,7 +202550,7 @@ const getMomentLocaleObject = (timeZone, dateObj) => {
202550
202550
  return new Date(new Date(moment(dateObj).tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
202551
202551
  }
202552
202552
  else {
202553
- return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
202553
+ return new Date(new Date(moment().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
202554
202554
  }
202555
202555
  };
202556
202556
  const loadScript = async (url, loadViaScriptTag, cacheable = false) => {
@@ -87270,7 +87270,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
87270
87270
  if (format === 'UTC') {
87271
87271
  return new Date(dateObj).toISOString();
87272
87272
  }
87273
- if (timeZone && timeZone !== moment.defaultZone?.name) {
87273
+ if (timeZone) {
87274
87274
  const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
87275
87275
  if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
87276
87276
  return moment(dateObj).format(momentFormat);
@@ -87713,7 +87713,7 @@ const getMomentLocaleObject = (timeZone, dateObj) => {
87713
87713
  return new Date(new Date(moment(dateObj).tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
87714
87714
  }
87715
87715
  else {
87716
- return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
87716
+ return new Date(new Date(moment().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
87717
87717
  }
87718
87718
  };
87719
87719
  const loadScript = async (url, loadViaScriptTag, cacheable = false) => {
@@ -98461,7 +98461,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
98461
98461
  if (format === 'UTC') {
98462
98462
  return new Date(dateObj).toISOString();
98463
98463
  }
98464
- if (timeZone && timeZone !== moment.defaultZone?.name) {
98464
+ if (timeZone) {
98465
98465
  const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
98466
98466
  if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
98467
98467
  return moment(dateObj).format(momentFormat);
@@ -98904,7 +98904,7 @@ const getMomentLocaleObject = (timeZone, dateObj) => {
98904
98904
  return new Date(new Date(moment(dateObj).tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
98905
98905
  }
98906
98906
  else {
98907
- return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
98907
+ return new Date(new Date(moment().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
98908
98908
  }
98909
98909
  };
98910
98910
  const loadScript = async (url, loadViaScriptTag, cacheable = false) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.8.2-next.27365",
3
+ "version": "11.8.2-next.27366",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {