@wavemaker/app-ng-runtime 11.5.0-next.141090 → 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 (48) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +3 -51
  2. app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +3 -27
  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 +2 -13
  5. app-ng-runtime/components/base/fesm2015/index.mjs +4 -52
  6. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  7. app-ng-runtime/components/base/fesm2020/index.mjs +4 -52
  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/base/widgets/common/partial-param/partial-param.directive.d.ts +0 -1
  11. app-ng-runtime/components/data/list/bundles/index.umd.js +6 -8
  12. app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +9 -11
  13. app-ng-runtime/components/data/list/fesm2015/index.mjs +8 -10
  14. app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
  15. app-ng-runtime/components/data/list/fesm2020/index.mjs +8 -8
  16. app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
  17. app-ng-runtime/components/data/list/list-item.directive.d.ts +2 -3
  18. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +1 -0
  19. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +1 -0
  20. app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +2 -1
  21. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +1 -0
  22. app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
  23. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +1 -0
  24. app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
  25. app-ng-runtime/core/bundles/index.umd.js +58 -0
  26. app-ng-runtime/core/esm2020/public_api.mjs +2 -2
  27. app-ng-runtime/core/esm2020/utils/utils.mjs +56 -1
  28. app-ng-runtime/core/fesm2015/index.mjs +58 -1
  29. app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
  30. app-ng-runtime/core/fesm2020/index.mjs +58 -1
  31. app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
  32. app-ng-runtime/core/public_api.d.ts +1 -1
  33. app-ng-runtime/core/utils/utils.d.ts +2 -0
  34. app-ng-runtime/package.json +1 -1
  35. app-ng-runtime/runtime/base/bundles/index.umd.js +4 -0
  36. app-ng-runtime/runtime/base/esm2020/services/dynamic-component-ref-provider.service.mjs +4 -1
  37. app-ng-runtime/runtime/base/esm2020/util/fragment-monitor.mjs +2 -1
  38. app-ng-runtime/runtime/base/fesm2015/index.mjs +4 -0
  39. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  40. app-ng-runtime/runtime/base/fesm2020/index.mjs +4 -0
  41. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  42. app-ng-runtime/runtime/base/util/fragment-monitor.d.ts +1 -0
  43. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +1 -0
  44. app-ng-runtime/runtime/dynamic/esm2020/app/services/component-ref-provider.service.mjs +2 -1
  45. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs +1 -0
  46. app-ng-runtime/runtime/dynamic/fesm2015/index.mjs.map +1 -1
  47. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs +1 -0
  48. app-ng-runtime/runtime/dynamic/fesm2020/index.mjs.map +1 -1
@@ -3779,6 +3779,61 @@ const setListClass = (scope) => {
3779
3779
  scope.itemsPerRowClass = 'col-xs-12';
3780
3780
  }
3781
3781
  };
3782
+ const findParent = (lView, viewParentApp) => {
3783
+ // console.log("---*************--lView--*************---", lView);
3784
+ // console.log("---*************--viewParentApp--*************---", viewParentApp);
3785
+ let parentObj = findViewParent(lView, { 'parent': {}, 'root': {} });
3786
+ // console.log("---*************--parentObj--*************---", parentObj);
3787
+ let finalParent = {};
3788
+ if (parentObj['parent'] === null || parentObj['root'] === null) {
3789
+ parentObj['root'] = viewParentApp;
3790
+ parentObj['parent'] = {};
3791
+ }
3792
+ let mergFunc = function (objValue, srcValue, key) {
3793
+ const protectedKeys = ['viewParent'];
3794
+ if (protectedKeys.includes(key)) {
3795
+ return objValue;
3796
+ }
3797
+ return srcValue;
3798
+ };
3799
+ if (_.isEmpty(parentObj['parent'])) {
3800
+ finalParent = _.mergeWith(parentObj.root, parentObj.parent, mergFunc);
3801
+ }
3802
+ else {
3803
+ finalParent = _.mergeWith(parentObj.parent, parentObj.root, mergFunc);
3804
+ }
3805
+ // console.log("---*************--finalParent--*************---", finalParent);
3806
+ return finalParent;
3807
+ };
3808
+ const findViewParent = (lView, parentObj) => {
3809
+ if (lView[3] === null) {
3810
+ parentObj['root'] = lView[8];
3811
+ return parentObj;
3812
+ }
3813
+ let parentlView = lView[3];
3814
+ if (typeof lView[1] === "boolean") { // this is lContainer, not lView if this is boolean
3815
+ return findViewParent(parentlView, parentObj);
3816
+ }
3817
+ let componentType = lView[1]["type"];
3818
+ if (componentType === 0 || componentType === 1) {
3819
+ let p = lView[8];
3820
+ // ts-ignore
3821
+ if (p.hasOwnProperty("isDynamicComponent") || p.hasOwnProperty("isPageComponent")) {
3822
+ parentObj['root'] = p;
3823
+ return parentObj;
3824
+ }
3825
+ else {
3826
+ if (_.isEmpty(parentObj['parent'])) {
3827
+ parentObj['parent'] = p;
3828
+ // console.log(".......parentObj........", parentObj)
3829
+ }
3830
+ return findViewParent(parentlView, parentObj);
3831
+ }
3832
+ }
3833
+ else { // when componentType == 2, then fetch parent again
3834
+ return findViewParent(parentlView, parentObj);
3835
+ }
3836
+ };
3782
3837
 
3783
3838
  var Utils = /*#__PURE__*/Object.freeze({
3784
3839
  __proto__: null,
@@ -3803,8 +3858,10 @@ var Utils = /*#__PURE__*/Object.freeze({
3803
3858
  extractCurrentItemExpr: extractCurrentItemExpr,
3804
3859
  extractType: extractType,
3805
3860
  fetchContent: fetchContent,
3861
+ findParent: findParent,
3806
3862
  findRootContainer: findRootContainer,
3807
3863
  findValueOf: findValueOf,
3864
+ findViewParent: findViewParent,
3808
3865
  generateGUId: generateGUId,
3809
3866
  getAbortableDefer: getAbortableDefer,
3810
3867
  getAndroidVersion: getAndroidVersion,
@@ -5112,5 +5169,5 @@ class LRUCache {
5112
5169
  * Generated bundle index. Do not edit.
5113
5170
  */
5114
5171
 
5115
- export { $appDigest, $invokeWatchers, $parseEvent, $parseExpr, $unwatch, $watch, AbstractDialogService, AbstractHttpService, AbstractI18nService, AbstractNavigationService, AbstractSpinnerService, AbstractToasterService, App, AppConstants, AppDefaults, CURRENCY_INFO, ComponentType, ConstantService, CoreModule, CustomPipeManager, DEFAULT_FORMATS, DataSource, DataType, DynamicComponentRefProvider, EventNotifier, FIRST_TIME_WATCH, FieldTypeService, FieldWidgetService, FormWidgetType, IDGenerator, IDataSource, LRUCache, MatchMode, PaginationService, PartialRefProvider, ScriptLoaderService, ScriptStore, StatePersistence, UserDefinedExecutionContext, UtilsService, VALIDATOR, Viewport, _WM_APP_PROJECT, addClass, addEventListenerOnElement, addForIdAttributes, adjustContainerPosition, adjustContainerRightEdges, appendNode, appendScriptToHead, checkIsCustomPipeExpression, closePopover, convertToBlob, createCSSRule, createElement, deHyphenate, debounce, defer, detectChanges, encodeUrl, encodeUrlParams, executePromiseChain, extendProto, extractCurrentItemExpr, extractType, fetchContent, findRootContainer, findValueOf, generateGUId, getAbortableDefer, getAndroidVersion, getAppSetting, getBlob, getClonedObject, getDatasourceFromExpr, getDateObj, getDisplayDateTimeFormat, getEvaluatedExprValue, getFiles, getFnByExpr, getFnForBindExpr, getFnForEventExpr, getFormWidgetTemplate, getFormattedDate, getMomentLocaleObject, getNativeDateObject, getNgModelAttr, getRequiredFormWidget, getResourceURL, getRouteNameFromLink, getRowActionAttrs, getSessionStorageItem, getUrlParams, getValidDateObject, getValidJSON, getWebkitTraslationMatrix, getWmProjectProperties, hasCordova, hasOffsetStr, initCaps, insertAfter, insertBefore, isAndroid, isAndroidTablet, isAppleProduct, isArray, isAudioFile, isBoolean, isChangeFromWatch, isDataSourceEqual, isDateTimeType, isDefined, isElementInViewport, isEmptyObject, isEqualWithFields, isFirstTimeChange, isIE, isImageFile, isInsecureContentRequest, isIos, isIpad, isIphone, isIpod, isKitkatDevice, isLargeTabletLandscape, isLargeTabletPortrait, isMobile, isMobileApp, isNumber, isNumberType, isObject, isPageable, isString, isValidWebURL, isVideoFile, loadScript, loadScripts, loadStyleSheet, loadStyleSheets, muteWatchers, noop, openLink, periodSeparate, prettifyLabel, prettifyLabels, processFilterExpBindNode, registerFnByExpr, removeAttr, removeClass, removeExtraSlashes, removeNode, replace, replaceAt, resetChangeFromWatch, retryIfFails, scrollToElement, setAppRef, setAttr, setCSS, setCSSFromObj, setHtml, setListClass, setNgZone, setPipeProvider, setProperty, setSessionStorageItem, setTranslation3dPosition, setWmProjectProperties, spaceSeparate, stringStartsWith, switchClass, toBoolean, toDimension, toPromise, toggleClass, transformFileURI, triggerFn, triggerItemAction, unMuteWatchers, updateTemplateAttrs, validateAccessRoles, validateDataSourceCtx, xmlToJson };
5172
+ export { $appDigest, $invokeWatchers, $parseEvent, $parseExpr, $unwatch, $watch, AbstractDialogService, AbstractHttpService, AbstractI18nService, AbstractNavigationService, AbstractSpinnerService, AbstractToasterService, App, AppConstants, AppDefaults, CURRENCY_INFO, ComponentType, ConstantService, CoreModule, CustomPipeManager, DEFAULT_FORMATS, DataSource, DataType, DynamicComponentRefProvider, EventNotifier, FIRST_TIME_WATCH, FieldTypeService, FieldWidgetService, FormWidgetType, IDGenerator, IDataSource, LRUCache, MatchMode, PaginationService, PartialRefProvider, ScriptLoaderService, ScriptStore, StatePersistence, UserDefinedExecutionContext, UtilsService, VALIDATOR, Viewport, _WM_APP_PROJECT, addClass, addEventListenerOnElement, addForIdAttributes, adjustContainerPosition, adjustContainerRightEdges, appendNode, appendScriptToHead, checkIsCustomPipeExpression, closePopover, convertToBlob, createCSSRule, createElement, deHyphenate, debounce, defer, detectChanges, encodeUrl, encodeUrlParams, executePromiseChain, extendProto, extractCurrentItemExpr, extractType, fetchContent, findParent, findRootContainer, findValueOf, generateGUId, getAbortableDefer, getAndroidVersion, getAppSetting, getBlob, getClonedObject, getDatasourceFromExpr, getDateObj, getDisplayDateTimeFormat, getEvaluatedExprValue, getFiles, getFnByExpr, getFnForBindExpr, getFnForEventExpr, getFormWidgetTemplate, getFormattedDate, getMomentLocaleObject, getNativeDateObject, getNgModelAttr, getRequiredFormWidget, getResourceURL, getRouteNameFromLink, getRowActionAttrs, getSessionStorageItem, getUrlParams, getValidDateObject, getValidJSON, getWebkitTraslationMatrix, getWmProjectProperties, hasCordova, hasOffsetStr, initCaps, insertAfter, insertBefore, isAndroid, isAndroidTablet, isAppleProduct, isArray, isAudioFile, isBoolean, isChangeFromWatch, isDataSourceEqual, isDateTimeType, isDefined, isElementInViewport, isEmptyObject, isEqualWithFields, isFirstTimeChange, isIE, isImageFile, isInsecureContentRequest, isIos, isIpad, isIphone, isIpod, isKitkatDevice, isLargeTabletLandscape, isLargeTabletPortrait, isMobile, isMobileApp, isNumber, isNumberType, isObject, isPageable, isString, isValidWebURL, isVideoFile, loadScript, loadScripts, loadStyleSheet, loadStyleSheets, muteWatchers, noop, openLink, periodSeparate, prettifyLabel, prettifyLabels, processFilterExpBindNode, registerFnByExpr, removeAttr, removeClass, removeExtraSlashes, removeNode, replace, replaceAt, resetChangeFromWatch, retryIfFails, scrollToElement, setAppRef, setAttr, setCSS, setCSSFromObj, setHtml, setListClass, setNgZone, setPipeProvider, setProperty, setSessionStorageItem, setTranslation3dPosition, setWmProjectProperties, spaceSeparate, stringStartsWith, switchClass, toBoolean, toDimension, toPromise, toggleClass, transformFileURI, triggerFn, triggerItemAction, unMuteWatchers, updateTemplateAttrs, validateAccessRoles, validateDataSourceCtx, xmlToJson };
5116
5173
  //# sourceMappingURL=index.mjs.map