@wavemaker/angular-codegen 11.7.1-next.141125 → 11.7.1-next.141127

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.
@@ -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) {
87273
+ if (timeZone && timeZone !== moment.defaultZone?.name) {
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().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
87716
+ return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
87717
87717
  }
87718
87718
  };
87719
87719
  const loadScript = async (url, loadViaScriptTag, cacheable = false) => {
@@ -88910,6 +88910,28 @@ class CustomPipeManager {
88910
88910
  args: [{ providedIn: 'root' }]
88911
88911
  }], null, null); })();
88912
88912
 
88913
+ class CustomIconsLoaderService {
88914
+ constructor() {
88915
+ this.http = inject(HttpClient);
88916
+ }
88917
+ load() {
88918
+ this.http.get('./font.config.js', { responseType: 'text' }).subscribe((fontConfig) => {
88919
+ const cssPaths = [], regex = /"csspath":\s*"([^"]+)"/g;
88920
+ let match;
88921
+ while ((match = regex.exec(fontConfig)) !== null) {
88922
+ cssPaths.push(match[1]);
88923
+ }
88924
+ loadStyleSheets(cssPaths);
88925
+ }, (error) => { });
88926
+ }
88927
+ static { this.ɵfac = function CustomIconsLoaderService_Factory(t) { return new (t || CustomIconsLoaderService)(); }; }
88928
+ static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: CustomIconsLoaderService, factory: CustomIconsLoaderService.ɵfac, providedIn: 'root' }); }
88929
+ }
88930
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CustomIconsLoaderService, [{
88931
+ type: Injectable,
88932
+ args: [{ providedIn: 'root' }]
88933
+ }], null, null); })();
88934
+
88913
88935
  class StatePersistence {
88914
88936
  constructor() {
88915
88937
  this.HISTORY_HANDLER = 'replace';
@@ -90386,10 +90408,10 @@ register('wm-carousel-template', () => {
90386
90408
  pre: (attrs, shared, parentCarousel) => {
90387
90409
  const carouselRef = parentCarousel.get('carousel_ref');
90388
90410
  return `<div *ngIf="!${carouselRef}.fieldDefs">{{${carouselRef}.nodatamessage}}</div>
90389
- <${carouselContentTagName} wmCarouselTemplate ${getAttrMarkup(attrs)} *ngFor="let item of ${carouselRef}.fieldDefs; let i = index;">
90411
+ <${carouselContentTagName} wmCarouselTemplate #carouselTemplateRef="carouselTemplateRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${carouselRef}.fieldDefs; let i = index;">
90390
90412
  <ng-container [ngTemplateOutlet]="carouselTempRef${counter$1}"
90391
90413
  [ngTemplateOutletContext]="{item:item, index:i}"
90392
- [ngTemplateOutletInjector]="${carouselRef}.createCustomInjector('carousel_item_' + i, {item:item, index:i})"></ng-container>
90414
+ [ngTemplateOutletInjector]="${carouselRef}.createCustomInjector('carousel_item_' + carouselTemplateRef.trackId, {item:item, index:i})"></ng-container>
90393
90415
  </${carouselContentTagName}>
90394
90416
  <ng-template #carouselTempRef${counter$1++} let-item="item" let-index="index">`;
90395
90417
  },
@@ -90923,10 +90945,10 @@ register('wm-repeat-template', () => {
90923
90945
  const widgetRef = (parentAccordion && parentAccordion.get('accordion_ref')) || (parentTab && parentTab.get('tabs_ref'));
90924
90946
  if (widgetRef) {
90925
90947
  return `<div *ngIf="${widgetRef}.fieldDefs && !${widgetRef}.fieldDefs.length">{{${widgetRef}.nodatamessage}}</div>
90926
- <${dynamicTemplateTagName} wmRepeatTemplate ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
90948
+ <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
90927
90949
  <ng-container [ngTemplateOutlet]="widgetRef${counter}"
90928
90950
  [ngTemplateOutletContext]="{item:item, index:i}"
90929
- [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_widget_'+ i, {item:item, index:i})"></ng-container>
90951
+ [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_pane_' + repeatItemRef.trackId, {item:item, index:i})"></ng-container>
90930
90952
  </${dynamicTemplateTagName}>
90931
90953
  <ng-template #widgetRef${counter++} let-item="item" let-index="index">`;
90932
90954
  }
@@ -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) {
98464
+ if (timeZone && timeZone !== moment.defaultZone?.name) {
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().tz(timeZone).format()).toLocaleString("en-US", { timeZone: timeZone }));
98907
+ return new Date(new Date(moment().format()).toLocaleString("en-US", { timeZone: timeZone }));
98908
98908
  }
98909
98909
  };
98910
98910
  const loadScript = async (url, loadViaScriptTag, cacheable = false) => {
@@ -100101,6 +100101,28 @@ class CustomPipeManager {
100101
100101
  args: [{ providedIn: 'root' }]
100102
100102
  }], null, null); })();
100103
100103
 
100104
+ class CustomIconsLoaderService {
100105
+ constructor() {
100106
+ this.http = inject(HttpClient);
100107
+ }
100108
+ load() {
100109
+ this.http.get('./font.config.js', { responseType: 'text' }).subscribe((fontConfig) => {
100110
+ const cssPaths = [], regex = /"csspath":\s*"([^"]+)"/g;
100111
+ let match;
100112
+ while ((match = regex.exec(fontConfig)) !== null) {
100113
+ cssPaths.push(match[1]);
100114
+ }
100115
+ loadStyleSheets(cssPaths);
100116
+ }, (error) => { });
100117
+ }
100118
+ static { this.ɵfac = function CustomIconsLoaderService_Factory(t) { return new (t || CustomIconsLoaderService)(); }; }
100119
+ static { this.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: CustomIconsLoaderService, factory: CustomIconsLoaderService.ɵfac, providedIn: 'root' }); }
100120
+ }
100121
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(CustomIconsLoaderService, [{
100122
+ type: Injectable,
100123
+ args: [{ providedIn: 'root' }]
100124
+ }], null, null); })();
100125
+
100104
100126
  class StatePersistence {
100105
100127
  constructor() {
100106
100128
  this.HISTORY_HANDLER = 'replace';
@@ -101577,10 +101599,10 @@ register('wm-carousel-template', () => {
101577
101599
  pre: (attrs, shared, parentCarousel) => {
101578
101600
  const carouselRef = parentCarousel.get('carousel_ref');
101579
101601
  return `<div *ngIf="!${carouselRef}.fieldDefs">{{${carouselRef}.nodatamessage}}</div>
101580
- <${carouselContentTagName} wmCarouselTemplate ${getAttrMarkup(attrs)} *ngFor="let item of ${carouselRef}.fieldDefs; let i = index;">
101602
+ <${carouselContentTagName} wmCarouselTemplate #carouselTemplateRef="carouselTemplateRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${carouselRef}.fieldDefs; let i = index;">
101581
101603
  <ng-container [ngTemplateOutlet]="carouselTempRef${counter$1}"
101582
101604
  [ngTemplateOutletContext]="{item:item, index:i}"
101583
- [ngTemplateOutletInjector]="${carouselRef}.createCustomInjector('carousel_item_' + i, {item:item, index:i})"></ng-container>
101605
+ [ngTemplateOutletInjector]="${carouselRef}.createCustomInjector('carousel_item_' + carouselTemplateRef.trackId, {item:item, index:i})"></ng-container>
101584
101606
  </${carouselContentTagName}>
101585
101607
  <ng-template #carouselTempRef${counter$1++} let-item="item" let-index="index">`;
101586
101608
  },
@@ -102114,10 +102136,10 @@ register('wm-repeat-template', () => {
102114
102136
  const widgetRef = (parentAccordion && parentAccordion.get('accordion_ref')) || (parentTab && parentTab.get('tabs_ref'));
102115
102137
  if (widgetRef) {
102116
102138
  return `<div *ngIf="${widgetRef}.fieldDefs && !${widgetRef}.fieldDefs.length">{{${widgetRef}.nodatamessage}}</div>
102117
- <${dynamicTemplateTagName} wmRepeatTemplate ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
102139
+ <${dynamicTemplateTagName} wmRepeatTemplate #repeatItemRef="repeatItemRef" ${getAttrMarkup(attrs)} *ngFor="let item of ${widgetRef}.fieldDefs; let i = index;">
102118
102140
  <ng-container [ngTemplateOutlet]="widgetRef${counter}"
102119
102141
  [ngTemplateOutletContext]="{item:item, index:i}"
102120
- [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_widget_'+ i, {item:item, index:i})"></ng-container>
102142
+ [ngTemplateOutletInjector]="${widgetRef}.createCustomInjector('dynamic_pane_' + repeatItemRef.trackId, {item:item, index:i})"></ng-container>
102121
102143
  </${dynamicTemplateTagName}>
102122
102144
  <ng-template #widgetRef${counter++} let-item="item" let-index="index">`;
102123
102145
  }
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "cheerio": "^1.0.0-rc.2",
12
+ "cheerio": "1.0.0-rc.12",
13
13
  "decode-uri-component": "^0.2.0",
14
14
  "express": "^4.16.4",
15
15
  "fast-xml-parser": "^3.19.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.7.1-next.141125",
3
+ "version": "11.7.1-next.141127",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "author": "",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "cheerio": "^1.0.0-rc.2",
14
+ "cheerio": "1.0.0-rc.12",
15
15
  "decode-uri-component": "^0.2.0",
16
16
  "express": "^4.16.4",
17
17
  "fast-xml-parser": "^3.19.0",