@wavemaker/app-ng-runtime 11.5.0-next.141089 → 11.5.0-next.141091

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 (58) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +2 -46
  2. app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +3 -34
  3. app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +3 -16
  4. app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +1 -1
  5. app-ng-runtime/components/base/fesm2015/index.mjs +3 -47
  6. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  7. app-ng-runtime/components/base/fesm2020/index.mjs +3 -47
  8. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  9. app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +0 -1
  10. app-ng-runtime/components/data/list/bundles/index.umd.js +6 -8
  11. app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +9 -11
  12. app-ng-runtime/components/data/list/fesm2015/index.mjs +8 -10
  13. app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
  14. app-ng-runtime/components/data/list/fesm2020/index.mjs +8 -8
  15. app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
  16. app-ng-runtime/components/data/list/list-item.directive.d.ts +2 -3
  17. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +1 -0
  18. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +1 -0
  19. app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +2 -1
  20. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +1 -0
  21. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
  22. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +1 -0
  23. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
  24. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +12 -9
  25. app-ng-runtime/components/navigation/menu/esm2020/menu-dropdown-item/menu-dropdown-item.component.mjs +6 -5
  26. app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +6 -5
  27. app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +6 -5
  28. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +12 -9
  29. app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
  30. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +12 -9
  31. app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
  32. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +4 -3
  33. app-ng-runtime/components/navigation/menu/menu.component.d.ts +4 -3
  34. app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +4 -3
  35. app-ng-runtime/core/bundles/index.umd.js +58 -0
  36. app-ng-runtime/core/esm2020/public_api.mjs +2 -2
  37. app-ng-runtime/core/esm2020/utils/utils.mjs +56 -1
  38. app-ng-runtime/core/fesm2015/index.mjs +58 -1
  39. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  40. app-ng-runtime/core/fesm2020/index.mjs +58 -1
  41. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  42. app-ng-runtime/core/public_api.d.ts +1 -1
  43. app-ng-runtime/core/utils/utils.d.ts +2 -0
  44. app-ng-runtime/package.json +1 -1
  45. app-ng-runtime/runtime/base/bundles/index.umd.js +4 -0
  46. app-ng-runtime/runtime/base/esm2020/services/dynamic-component-ref-provider.service.mjs +4 -1
  47. app-ng-runtime/runtime/base/esm2020/util/fragment-monitor.mjs +2 -1
  48. app-ng-runtime/runtime/base/fesm2015/index.mjs +4 -0
  49. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  50. app-ng-runtime/runtime/base/fesm2020/index.mjs +4 -0
  51. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  52. app-ng-runtime/runtime/base/util/fragment-monitor.d.ts +1 -0
  53. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +1 -0
  54. app-ng-runtime/runtime/dynamic/esm2020/app/services/component-ref-provider.service.mjs +2 -1
  55. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs +1 -0
  56. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs.map +1 -1
  57. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs +1 -0
  58. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs.map +1 -1
@@ -3,7 +3,7 @@ import { InjectionToken, forwardRef, ElementRef, inject, ViewContainerRef, Injec
3
3
  import * as i1$1 from '@angular/common';
4
4
  import { Location, CommonModule } from '@angular/common';
5
5
  import * as i1 from '@wm/core';
6
- import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, setCSS, isDefined, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, setAttr, isMobileApp, switchClass, removeAttr, $parseEvent, $invokeWatchers, $watch, transformFileURI, ComponentType, noop as noop$1, isLargeTabletLandscape, isLargeTabletPortrait, isKitkatDevice, debounce, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, isMobile, AbstractDialogService, DataSource, processFilterExpBindNode, MatchMode, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, findValueOf, validateAccessRoles, VALIDATOR, isIos } from '@wm/core';
6
+ import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, setCSS, isDefined, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, findParent, setAttr, isMobileApp, switchClass, removeAttr, $parseEvent, $invokeWatchers, $watch, transformFileURI, ComponentType, noop as noop$1, isLargeTabletLandscape, isLargeTabletPortrait, isKitkatDevice, debounce, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, isMobile, AbstractDialogService, DataSource, processFilterExpBindNode, MatchMode, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, findValueOf, validateAccessRoles, VALIDATOR, isIos } from '@wm/core';
7
7
  import { SecurityModule, SecurityService } from '@wm/security';
8
8
  import { createFocusTrap } from '@wavemaker/focus-trap/dist/focus-trap';
9
9
  import * as i1$2 from '@angular/platform-browser';
@@ -950,37 +950,6 @@ class BaseComponent {
950
950
  this.__cloneable__ = false;
951
951
  this.$attrs = new Map();
952
952
  this.isMuted = false;
953
- this.findParentlView = (lView) => {
954
- //console.log("---*************--widgetType--*************---", this.widgetType);
955
- let parentlView = lView[3];
956
- if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
957
- return this.findParentlView(parentlView);
958
- }
959
- let componentType = lView[1]["type"];
960
- if (this.widgetType === "wm-button") {
961
- if (componentType === 0 || componentType === 1) {
962
- let p = lView[8];
963
- // ts-ignore
964
- if (p.constructor.name === 'DialogComponent') {
965
- return this.findParentlView(parentlView);
966
- }
967
- else {
968
- return p;
969
- }
970
- }
971
- else { // when componentType == 2, then fetch parent again
972
- return this.findParentlView(parentlView);
973
- }
974
- }
975
- else {
976
- if (componentType === 0 || componentType === 1) {
977
- return lView[8];
978
- }
979
- else { // when componentType == 2, then fetch parent again
980
- return this.findParentlView(parentlView);
981
- }
982
- }
983
- };
984
953
  const elementRef = inj.get(ElementRef);
985
954
  this.nativeElement = elementRef.nativeElement;
986
955
  //making the code compatible in both the JIT and AOT modes
@@ -993,7 +962,7 @@ class BaseComponent {
993
962
  // this.viewParent = _viewParent || (this.viewContainerRef as any).parentInjector._lView[8];
994
963
  // https://github.com/angular/angular/blob/main/packages/core/src/render3/interfaces/view.ts
995
964
  let lView = this.inj._lView;
996
- this.viewParent = lView[8] === null ? this.viewParentApp : this.findParentlView(lView);
965
+ this.viewParent = findParent(lView, this.viewParentApp);
997
966
  //console.log("---*************--context--*************---", lView[8]);
998
967
  this.context = this.inj._lView[8];
999
968
  this.displayType = config.displayType || DISPLAY_TYPE.BLOCK;
@@ -1724,20 +1693,7 @@ class LazyLoadDirective {
1724
1693
  this.viewContainer = viewContainer;
1725
1694
  let viewParentApp = inj ? inj.get(App) : inject(App);
1726
1695
  let lView = inj._lView;
1727
- const getParentlView = (lView) => {
1728
- let parentlView = lView[3];
1729
- if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
1730
- return getParentlView(parentlView);
1731
- }
1732
- let componentType = lView[1]["type"];
1733
- if (componentType === 0 || componentType === 1) {
1734
- return lView[8];
1735
- }
1736
- else { // when componentType == 2, then fetch parent again
1737
- return getParentlView(parentlView);
1738
- }
1739
- };
1740
- this.viewParent = getParentlView(lView) || viewParentApp;
1696
+ this.viewParent = findParent(lView, viewParentApp);
1741
1697
  //this.context = (inj as any).view.context;
1742
1698
  this.context = inj._lView[8];
1743
1699
  }