@wavemaker/app-ng-runtime 11.14.1-3.6306 → 11.14.1-31.647762

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.
Files changed (50) hide show
  1. package/components/base/bundles/index.umd.js +17 -87
  2. package/components/base/esm2022/pipes/custom-pipes.mjs +10 -10
  3. package/components/base/esm2022/utils/widget-utils.mjs +3 -3
  4. package/components/base/esm2022/widgets/common/base/base.component.mjs +7 -68
  5. package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +3 -7
  6. package/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -7
  7. package/components/base/fesm2022/index.mjs +18 -88
  8. package/components/base/fesm2022/index.mjs.map +1 -1
  9. package/components/base/pipes/custom-pipes.d.ts +5 -5
  10. package/components/basic/label/bundles/index.umd.js +1 -9
  11. package/components/basic/label/esm2022/label.directive.mjs +2 -10
  12. package/components/basic/label/fesm2022/index.mjs +1 -9
  13. package/components/basic/label/fesm2022/index.mjs.map +1 -1
  14. package/components/data/table/bundles/index.umd.js +11 -218
  15. package/components/data/table/esm2022/table.component.mjs +12 -219
  16. package/components/data/table/fesm2022/index.mjs +11 -218
  17. package/components/data/table/fesm2022/index.mjs.map +1 -1
  18. package/components/data/table/table.component.d.ts +2 -6
  19. package/components/navigation/menu/bundles/index.umd.js +0 -5
  20. package/components/navigation/menu/esm2022/menu.component.mjs +1 -6
  21. package/components/navigation/menu/fesm2022/index.mjs +0 -5
  22. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  23. package/components/navigation/popover/bundles/index.umd.js +6 -6
  24. package/components/navigation/popover/esm2022/popover.component.mjs +4 -4
  25. package/components/navigation/popover/fesm2022/index.mjs +3 -3
  26. package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  27. package/components/navigation/popover/popover.component.d.ts +0 -6
  28. package/core/bundles/index.umd.js +82 -332
  29. package/core/esm2022/public_api.mjs +3 -3
  30. package/core/esm2022/utils/utils.mjs +2 -6
  31. package/core/esm2022/utils/watcher.mjs +81 -323
  32. package/core/fesm2022/index.mjs +84 -331
  33. package/core/fesm2022/index.mjs.map +1 -1
  34. package/core/public_api.d.ts +2 -2
  35. package/core/utils/utils.d.ts +0 -1
  36. package/core/utils/watcher.d.ts +5 -26
  37. package/locales/moment-timezone/moment-timezone-with-data.js +179 -27
  38. package/npm-shrinkwrap.json +2 -2
  39. package/package-lock.json +2 -2
  40. package/package.json +1 -1
  41. package/runtime/base/bundles/index.umd.js +2 -37
  42. package/runtime/base/esm2022/components/app-component/app.component.mjs +2 -7
  43. package/runtime/base/esm2022/components/base-page.component.mjs +2 -9
  44. package/runtime/base/esm2022/components/base-partial.component.mjs +2 -10
  45. package/runtime/base/esm2022/components/base-prefab.component.mjs +2 -10
  46. package/runtime/base/esm2022/components/base-spa-page.component.mjs +2 -9
  47. package/runtime/base/esm2022/services/pipe-provider.service.mjs +4 -4
  48. package/runtime/base/fesm2022/index.mjs +3 -38
  49. package/runtime/base/fesm2022/index.mjs.map +1 -1
  50. package/scripts/datatable/datatable.js +2 -19
@@ -5,7 +5,7 @@ import { ActivatedRoute, Router, RouterOutlet, NavigationStart, NavigationEnd, N
5
5
  import * as i5 from '@angular/common';
6
6
  import { DOCUMENT, ɵgetDOM as _getDOM, CommonModule, AsyncPipe, SlicePipe, PercentPipe, I18nPluralPipe, NgLocalization, I18nSelectPipe, KeyValuePipe, UpperCasePipe, LowerCasePipe, JsonPipe, DecimalPipe, TitleCasePipe, CurrencyPipe, DatePipe } from '@angular/common';
7
7
  import * as i1 from '@wm/core';
8
- import { $appDigest, isDefined, getWmProjectProperties, triggerFn, fetchContent, _WM_APP_PROJECT, stringStartsWith, loadStyleSheets, loadScripts, noop as noop$1, App, AbstractI18nService, ScriptLoaderService, Viewport, UtilsService, $invokeWatchers, registerFnByExpr, $unwatchAllByScope, LRUCache, muteWatchers, AbstractNavigationService, isIos, isAndroid, unMuteWatchers, $watch, isIE, CustomPipeManager, getSessionStorageItem, setPipeProvider, DynamicComponentRefProvider, FieldWidgetService, FieldTypeService, ConstantService, AbstractToasterService, StatePersistence, AbstractSpinnerService, AbstractDialogService, EventNotifier, setCSS, setSessionStorageItem, replace, setNgZone, setAppRef, addClass, removeClass, extendProto, $parseExpr, AppDefaults, isObject as isObject$1, isIphone, isIpod, isIpad } from '@wm/core';
8
+ import { $appDigest, isDefined, getWmProjectProperties, triggerFn, fetchContent, _WM_APP_PROJECT, stringStartsWith, loadStyleSheets, loadScripts, noop as noop$1, App, AbstractI18nService, ScriptLoaderService, Viewport, UtilsService, $invokeWatchers, registerFnByExpr, LRUCache, muteWatchers, AbstractNavigationService, isIos, isAndroid, unMuteWatchers, $watch, isIE, CustomPipeManager, getSessionStorageItem, setPipeProvider, DynamicComponentRefProvider, FieldWidgetService, FieldTypeService, ConstantService, AbstractToasterService, StatePersistence, AbstractSpinnerService, AbstractDialogService, EventNotifier, setCSS, setSessionStorageItem, replace, setNgZone, setAppRef, addClass, removeClass, extendProto, $parseExpr, AppDefaults, isObject as isObject$1, isIphone, isIpod, isIpad } from '@wm/core';
9
9
  import * as i2 from '@wm/security';
10
10
  import { SecurityService } from '@wm/security';
11
11
  import * as i4 from '@wm/variables';
@@ -923,14 +923,6 @@ class BasePartialComponent extends FragmentMonitor {
923
923
  });
924
924
  }
925
925
  ngOnDestroy() {
926
- // MEMORY LEAK FIX: Unwatch all Partial-scoped watchers for THIS specific partial when partial is destroyed
927
- // Only unwatch watchers for this partial, not all partials (other partials may still be on the page)
928
- if (this.partialName) {
929
- const removedCount = $unwatchAllByScope('Partial', this.partialName);
930
- if (removedCount > 0) {
931
- console.log(`🧹 Cleaned up ${removedCount} Partial-scoped watcher(s) for partial ${this.partialName}`);
932
- }
933
- }
934
926
  this.destroy$.complete();
935
927
  }
936
928
  ngOnAttach(refreshData) {
@@ -1376,13 +1368,6 @@ class BasePageComponent extends FragmentMonitor {
1376
1368
  });
1377
1369
  }
1378
1370
  ngOnDestroy() {
1379
- // MEMORY LEAK FIX: Unwatch all Page-scoped watchers for THIS specific page when page is destroyed
1380
- if (this.pageName) {
1381
- const removedCount = $unwatchAllByScope('Page', this.pageName);
1382
- if (removedCount > 0) {
1383
- console.log(`🧹 Cleaned up ${removedCount} Page-scoped watcher(s) for page ${this.pageName}`);
1384
- }
1385
- }
1386
1371
  //this.captureApplicationThumbnail();
1387
1372
  this.savePageSnapShot();
1388
1373
  this.destroy$.complete();
@@ -1977,14 +1962,6 @@ class BasePrefabComponent extends FragmentMonitor {
1977
1962
  });
1978
1963
  }
1979
1964
  ngOnDestroy() {
1980
- // MEMORY LEAK FIX: Unwatch all Prefab-scoped watchers for THIS specific prefab when prefab is destroyed
1981
- // Only unwatch watchers for this prefab, not all prefabs (other prefabs may still be on the page)
1982
- if (this.prefabName) {
1983
- const removedCount = $unwatchAllByScope('Prefab', this.prefabName);
1984
- if (removedCount > 0) {
1985
- console.log(`🧹 Cleaned up ${removedCount} Prefab-scoped watcher(s) for prefab ${this.prefabName}`);
1986
- }
1987
- }
1988
1965
  this.destroy$.complete();
1989
1966
  }
1990
1967
  // user overrides this
@@ -2741,13 +2718,6 @@ class BaseSpaPageComponent extends FragmentMonitor {
2741
2718
  });
2742
2719
  }
2743
2720
  ngOnDestroy() {
2744
- // MEMORY LEAK FIX: Unwatch all Page-scoped watchers for THIS specific page when page is destroyed
2745
- if (this.pageName) {
2746
- const removedCount = $unwatchAllByScope('Page', this.pageName);
2747
- if (removedCount > 0) {
2748
- console.log(`🧹 Cleaned up ${removedCount} Page-scoped watcher(s) for page ${this.pageName}`);
2749
- }
2750
- }
2751
2721
  this.savePageSnapShot();
2752
2722
  this.destroy$.complete();
2753
2723
  }
@@ -3137,7 +3107,7 @@ class PipeProvider {
3137
3107
  this.preparePipeMeta(CurrencyPipe, 'currency', true, [this._locale]),
3138
3108
  this.preparePipeMeta(DatePipe, 'date', true, [this._locale]),
3139
3109
  this.preparePipeMeta(ToDatePipe, 'toDate', true, [
3140
- new DatePipe(this._locale), undefined, this.injector.get(App), this.injector.get(CustomPipeManager)
3110
+ new DatePipe(this._locale), undefined, this.injector.get(CustomPipeManager)
3141
3111
  ]),
3142
3112
  this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
3143
3113
  new DecimalPipe(this._locale),
@@ -3154,7 +3124,7 @@ class PipeProvider {
3154
3124
  new DecimalPipe(this._locale)
3155
3125
  ]),
3156
3126
  this.preparePipeMeta(StringToNumberPipe, 'stringToNumber', true),
3157
- this.preparePipeMeta(CustomPipe, 'custom', true, [this.injector.get(App), this.injector.get(CustomPipeManager)]),
3127
+ this.preparePipeMeta(CustomPipe, 'custom', true, [this.injector.get(CustomPipeManager)]),
3158
3128
  this.preparePipeMeta(TrustAsPipe, 'trustAs', true, [this.domSanitizer]),
3159
3129
  this.preparePipeMeta(SanitizePipe, 'sanitize', true, [this.domSanitizer]),
3160
3130
  this.preparePipeMeta(TemplateReplacePipe, 'templateReplace', true),
@@ -4598,11 +4568,6 @@ class AppComponent {
4598
4568
  $invokeWatchers();
4599
4569
  }
4600
4570
  ngOnDestroy() {
4601
- // MEMORY LEAK FIX: Unwatch all App-scoped watchers when app is destroyed
4602
- const removedCount = $unwatchAllByScope('App');
4603
- if (removedCount > 0) {
4604
- console.log(`🧹 Cleaned up ${removedCount} App-scoped watcher(s) on app destroy`);
4605
- }
4606
4571
  if (this.navigationEndSubscription) {
4607
4572
  this.navigationEndSubscription.unsubscribe();
4608
4573
  }