@wavemaker/app-ng-runtime 11.4.0-next.141076 → 11.4.0-next.141078

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 (54) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +1 -1
  2. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  3. app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +3 -3
  4. app-ng-runtime/components/base/fesm2015/index.js +2 -2
  5. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  6. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
  7. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  8. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
  9. app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
  10. app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
  11. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  12. app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
  13. app-ng-runtime/components/data/list/bundles/index.umd.js +24 -39
  14. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  15. app-ng-runtime/components/data/list/esm2015/list.component.js +24 -39
  16. app-ng-runtime/components/data/list/fesm2015/index.js +23 -38
  17. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  18. app-ng-runtime/components/data/list/index.metadata.json +1 -1
  19. app-ng-runtime/components/data/pagination/bundles/index.umd.js +21 -4
  20. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  21. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +22 -5
  22. app-ng-runtime/components/data/pagination/fesm2015/index.js +21 -4
  23. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  24. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  25. app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
  26. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
  27. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +11 -3
  28. app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
  29. app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +12 -5
  30. app-ng-runtime/components/dialogs/default/fesm2015/index.js +11 -4
  31. app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
  32. app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
  33. app-ng-runtime/components/input/epoch/bundles/index.umd.js +27 -8
  34. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  35. app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
  36. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
  37. app-ng-runtime/components/input/epoch/fesm2015/index.js +30 -10
  38. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  39. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  40. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
  41. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
  42. app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
  43. app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
  44. app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
  45. app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
  46. app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
  47. app-ng-runtime/package.json +1 -1
  48. app-ng-runtime/variables/bundles/index.umd.js +10 -0
  49. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  50. app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
  51. app-ng-runtime/variables/fesm2015/index.js +7 -1
  52. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  53. app-ng-runtime/variables/index.metadata.json +1 -1
  54. app-ng-runtime/variables/service/variables.service.d.ts +4 -0
@@ -1,6 +1,7 @@
1
1
  import { Component, ElementRef, Directive, NgModule } from '@angular/core';
2
2
  import { addClass, App, AbstractNavigationService } from '@wm/core';
3
3
  import { provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
4
+ import { BsModalService } from 'ngx-bootstrap/modal';
4
5
  import { PageDirective } from '@wm/components/page';
5
6
  import { DeviceService } from '@wm/mobile/core';
6
7
  import { CommonModule } from '@angular/common';
@@ -24,16 +25,30 @@ PageContentLoaderComponent.ctorParameters = () => [
24
25
  ];
25
26
 
26
27
  class MobilePageDirective {
27
- constructor(app, elRef, deviceService, page, navigationService) {
28
+ constructor(app, elRef, modalService, deviceService, page, navigationService) {
29
+ this.modalService = modalService;
28
30
  this.deviceService = deviceService;
29
31
  this.page = page;
30
32
  this.navigationService = navigationService;
33
+ this.subscriptions = [];
31
34
  addClass(elRef.nativeElement, 'mobile-app-page');
32
35
  this._$ele = $(elRef.nativeElement);
33
36
  page.subscribe('wmMobileTabbar:ready', () => this._$ele.addClass('has-tabbar'));
37
+ let modalsOpened = [];
38
+ this.subscriptions = [
39
+ modalService.onShown.subscribe(({ id }) => {
40
+ id && modalsOpened.push(id);
41
+ }),
42
+ modalService.onHidden.subscribe(({ id }) => {
43
+ id && _.remove(modalsOpened, id);
44
+ })
45
+ ];
34
46
  // add backbutton listener on every page.
35
47
  this._backBtnListenerDestroyer = deviceService.onBackButtonTap($event => {
36
- if (app.landingPageName === app.activePageName) {
48
+ if (modalsOpened.length > 0) {
49
+ modalService.hide(modalsOpened.pop());
50
+ }
51
+ else if (app.landingPageName === app.activePageName) {
37
52
  window.navigator['app'].exitApp();
38
53
  }
39
54
  else {
@@ -43,6 +58,7 @@ class MobilePageDirective {
43
58
  });
44
59
  }
45
60
  ngOnDestroy() {
61
+ this.subscriptions.map((s) => s.unsubscribe());
46
62
  this._backBtnListenerDestroyer();
47
63
  }
48
64
  }
@@ -54,6 +70,7 @@ MobilePageDirective.decorators = [
54
70
  MobilePageDirective.ctorParameters = () => [
55
71
  { type: App },
56
72
  { type: ElementRef },
73
+ { type: BsModalService },
57
74
  { type: DeviceService },
58
75
  { type: PageDirective },
59
76
  { type: AbstractNavigationService }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../projects/mobile/components/page/default/src/page-content-loader/page-content-loader.component.ts","../../../../../../projects/mobile/components/page/default/src/page.directive.ts","../../../../../../projects/mobile/components/page/default/src/page.module.ts","../../../../../../projects/mobile/components/page/default/src/index.ts"],"sourcesContent":["import { Component, ElementRef } from '@angular/core';\n\nimport { addClass } from '@wm/core';\nimport { provideAsWidgetRef } from '@wm/components/base';\n\n@Component({\n selector: '[wmPageContentLoader]',\n templateUrl: './page-content-loader.component.html',\n providers: [\n provideAsWidgetRef(PageContentLoaderComponent)\n ]\n})\nexport class PageContentLoaderComponent {\n\n constructor(el: ElementRef) {\n addClass(el.nativeElement, 'app-page-content-loader');\n }\n}\n","import { Directive, ElementRef, OnDestroy } from '@angular/core';\n\nimport { addClass, AbstractNavigationService, App } from '@wm/core';\nimport { PageDirective } from '@wm/components/page';\nimport { DeviceService } from '@wm/mobile/core';\n\ndeclare const $;\n\n@Directive({\n selector: '[wmPage]'\n})\nexport class MobilePageDirective implements OnDestroy {\n\n private _$ele;\n\n private _backBtnListenerDestroyer;\n\n constructor(app: App,\n elRef: ElementRef,\n private deviceService: DeviceService,\n private page: PageDirective,\n private navigationService: AbstractNavigationService) {\n addClass(elRef.nativeElement, 'mobile-app-page');\n this._$ele = $(elRef.nativeElement);\n page.subscribe('wmMobileTabbar:ready', () => this._$ele.addClass('has-tabbar'));\n\n // add backbutton listener on every page.\n this._backBtnListenerDestroyer = deviceService.onBackButtonTap($event => {\n if (app.landingPageName === app.activePageName) {\n window.navigator['app'].exitApp();\n } else {\n this.navigationService.goToPrevious();\n }\n return false;\n });\n }\n\n public ngOnDestroy() {\n this._backBtnListenerDestroyer();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { MobilePageDirective } from './page.directive';\nimport { PageContentLoaderComponent } from './page-content-loader/page-content-loader.component';\n\nconst components = [\n MobilePageDirective,\n PageContentLoaderComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components],\n entryComponents: []\n})\nexport class PageModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAYa,0BAA0B;IAEnC,YAAY,EAAc;QACtB,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;KACzD;;;YAXJ,SAAS,SAAC;gBACP,QAAQ,EAAE,uBAAuB;gBACjC,oFAAmD;gBACnD,SAAS,EAAE;oBACP,kBAAkB,CAAC,0BAA0B,CAAC;iBACjD;aACJ;;;YAXmB,UAAU;;;MCWjB,mBAAmB;IAM5B,YAAY,GAAQ,EACR,KAAiB,EACT,aAA4B,EAC5B,IAAmB,EACnB,iBAA4C;QAF5C,kBAAa,GAAb,aAAa,CAAe;QAC5B,SAAI,GAAJ,IAAI,CAAe;QACnB,sBAAiB,GAAjB,iBAAiB,CAA2B;QAC5D,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;;QAGhF,IAAI,CAAC,yBAAyB,GAAG,aAAa,CAAC,eAAe,CAAC,MAAM;YACjE,IAAI,GAAG,CAAC,eAAe,KAAK,GAAG,CAAC,cAAc,EAAE;gBAC5C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;aACrC;iBAAM;gBACH,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;aACzC;YACD,OAAO,KAAK,CAAC;SAChB,CAAC,CAAC;KACN;IAEM,WAAW;QACd,IAAI,CAAC,yBAAyB,EAAE,CAAC;KACpC;;;YA/BJ,SAAS,SAAC;gBACP,QAAQ,EAAE,UAAU;aACvB;;;YAR6C,GAAG;YAF7B,UAAU;YAIrB,aAAa;YADb,aAAa;YADH,yBAAyB;;;ACM5C,MAAM,UAAU,GAAG;IACf,mBAAmB;IACnB,0BAA0B;CAC7B,CAAC;MAWW,UAAU;;;YATtB,QAAQ,SAAC;gBACN,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;iBACrB;gBACD,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;gBAC7B,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;gBACxB,eAAe,EAAE,EAAE;aACtB;;;ACrBD;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../projects/mobile/components/page/default/src/page-content-loader/page-content-loader.component.ts","../../../../../../projects/mobile/components/page/default/src/page.directive.ts","../../../../../../projects/mobile/components/page/default/src/page.module.ts","../../../../../../projects/mobile/components/page/default/src/index.ts"],"sourcesContent":["import { Component, ElementRef } from '@angular/core';\n\nimport { addClass } from '@wm/core';\nimport { provideAsWidgetRef } from '@wm/components/base';\n\n@Component({\n selector: '[wmPageContentLoader]',\n templateUrl: './page-content-loader.component.html',\n providers: [\n provideAsWidgetRef(PageContentLoaderComponent)\n ]\n})\nexport class PageContentLoaderComponent {\n\n constructor(el: ElementRef) {\n addClass(el.nativeElement, 'app-page-content-loader');\n }\n}\n","import { Directive, ElementRef, OnDestroy } from '@angular/core';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { Subscription } from 'rxjs';\n\nimport { addClass, AbstractNavigationService, App } from '@wm/core';\nimport { PageDirective } from '@wm/components/page';\nimport { DeviceService } from '@wm/mobile/core';\n\ndeclare const $, _;\n\n@Directive({\n selector: '[wmPage]'\n})\nexport class MobilePageDirective implements OnDestroy {\n\n private _$ele;\n\n private subscriptions: Subscription[] = [];\n private _backBtnListenerDestroyer;\n\n constructor(app: App,\n elRef: ElementRef,\n private modalService: BsModalService,\n private deviceService: DeviceService,\n private page: PageDirective,\n private navigationService: AbstractNavigationService) {\n addClass(elRef.nativeElement, 'mobile-app-page');\n this._$ele = $(elRef.nativeElement);\n page.subscribe('wmMobileTabbar:ready', () => this._$ele.addClass('has-tabbar'));\n let modalsOpened = [];\n this.subscriptions = [\n modalService.onShown.subscribe(({id}) => {\n id && modalsOpened.push(id);\n }),\n modalService.onHidden.subscribe(({id}) => {\n id && _.remove(modalsOpened, id);\n })\n ];\n // add backbutton listener on every page.\n this._backBtnListenerDestroyer = deviceService.onBackButtonTap($event => {\n if (modalsOpened.length > 0) {\n modalService.hide(modalsOpened.pop());\n } else if (app.landingPageName === app.activePageName) {\n window.navigator['app'].exitApp();\n } else {\n this.navigationService.goToPrevious();\n }\n return false;\n });\n }\n\n public ngOnDestroy() {\n this.subscriptions.map((s) => s.unsubscribe());\n this._backBtnListenerDestroyer();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { MobilePageDirective } from './page.directive';\nimport { PageContentLoaderComponent } from './page-content-loader/page-content-loader.component';\n\nconst components = [\n MobilePageDirective,\n PageContentLoaderComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components],\n entryComponents: []\n})\nexport class PageModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MAYa,0BAA0B;IAEnC,YAAY,EAAc;QACtB,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC;KACzD;;;YAXJ,SAAS,SAAC;gBACP,QAAQ,EAAE,uBAAuB;gBACjC,oFAAmD;gBACnD,SAAS,EAAE;oBACP,kBAAkB,CAAC,0BAA0B,CAAC;iBACjD;aACJ;;;YAXmB,UAAU;;;MCajB,mBAAmB;IAO5B,YAAY,GAAQ,EACR,KAAiB,EACT,YAA4B,EAC5B,aAA4B,EAC5B,IAAmB,EACnB,iBAA4C;QAH5C,iBAAY,GAAZ,YAAY,CAAgB;QAC5B,kBAAa,GAAb,aAAa,CAAe;QAC5B,SAAI,GAAJ,IAAI,CAAe;QACnB,sBAAiB,GAAjB,iBAAiB,CAA2B;QARxD,kBAAa,GAAmB,EAAE,CAAC;QASvC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;QAChF,IAAI,YAAY,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,aAAa,GAAG;YACjB,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,EAAC;gBAChC,EAAE,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAC/B,CAAC;YACF,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,EAAC;gBACjC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;aACpC,CAAC;SACL,CAAC;;QAEF,IAAI,CAAC,yBAAyB,GAAG,aAAa,CAAC,eAAe,CAAC,MAAM;YACjE,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC;aACzC;iBAAM,IAAI,GAAG,CAAC,eAAe,KAAK,GAAG,CAAC,cAAc,EAAE;gBACnD,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;aACrC;iBAAM;gBACH,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;aACzC;YACD,OAAO,KAAK,CAAC;SAChB,CAAC,CAAC;KACN;IAEM,WAAW;QACd,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC/C,IAAI,CAAC,yBAAyB,EAAE,CAAC;KACpC;;;YA5CJ,SAAS,SAAC;gBACP,QAAQ,EAAE,UAAU;aACvB;;;YAR6C,GAAG;YAJ7B,UAAU;YACrB,cAAc;YAKd,aAAa;YADb,aAAa;YADH,yBAAyB;;;ACI5C,MAAM,UAAU,GAAG;IACf,mBAAmB;IACnB,0BAA0B;CAC7B,CAAC;MAWW,UAAU;;;YATtB,QAAQ,SAAC;gBACN,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;iBACrB;gBACD,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;gBAC7B,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;gBACxB,eAAe,EAAE,EAAE;aACtB;;;ACrBD;;;;;;"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"PageContentLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"[wmPageContentLoader]","providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@wm/components/base","name":"provideAsWidgetRef","line":9,"character":8},"arguments":[{"__symbolic":"reference","name":"PageContentLoaderComponent"}]}],"template":"<div class=\"loader bg-primary\"></div>\n<div class=\"load-info\"></div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":20}]}]}},"MobilePageDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[wmPage]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@wm/core","name":"App","line":17,"character":21},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":23},{"__symbolic":"reference","module":"@wm/mobile/core","name":"DeviceService","line":19,"character":39},{"__symbolic":"reference","module":"@wm/components/page","name":"PageDirective","line":20,"character":30},{"__symbolic":"reference","module":"@wm/core","name":"AbstractNavigationService","line":21,"character":43}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"PageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":8},{"__symbolic":"reference","module":"@wm/components/base","name":"WmComponentsModule","line":16,"character":8}],"declarations":[{"__symbolic":"reference","name":"MobilePageDirective"},{"__symbolic":"reference","name":"PageContentLoaderComponent"}],"exports":[{"__symbolic":"reference","name":"MobilePageDirective"},{"__symbolic":"reference","name":"PageContentLoaderComponent"}],"entryComponents":[]}]}],"members":{}}},"origins":{"PageContentLoaderComponent":"./page-content-loader/page-content-loader.component","MobilePageDirective":"./page.directive","PageModule":"./page.module"},"importAs":"@wm/mobile/components/page"}
1
+ {"__symbolic":"module","version":4,"metadata":{"PageContentLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"[wmPageContentLoader]","providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@wm/components/base","name":"provideAsWidgetRef","line":9,"character":8},"arguments":[{"__symbolic":"reference","name":"PageContentLoaderComponent"}]}],"template":"<div class=\"loader bg-primary\"></div>\n<div class=\"load-info\"></div>"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":14,"character":20}]}]}},"MobilePageDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[wmPage]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@wm/core","name":"App","line":20,"character":21},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":21,"character":23},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"BsModalService","line":22,"character":38},{"__symbolic":"reference","module":"@wm/mobile/core","name":"DeviceService","line":23,"character":39},{"__symbolic":"reference","module":"@wm/components/page","name":"PageDirective","line":24,"character":30},{"__symbolic":"reference","module":"@wm/core","name":"AbstractNavigationService","line":25,"character":43}]}],"ngOnDestroy":[{"__symbolic":"method"}]}},"PageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":15,"character":8},{"__symbolic":"reference","module":"@wm/components/base","name":"WmComponentsModule","line":16,"character":8}],"declarations":[{"__symbolic":"reference","name":"MobilePageDirective"},{"__symbolic":"reference","name":"PageContentLoaderComponent"}],"exports":[{"__symbolic":"reference","name":"MobilePageDirective"},{"__symbolic":"reference","name":"PageContentLoaderComponent"}],"entryComponents":[]}]}],"members":{}}},"origins":{"PageContentLoaderComponent":"./page-content-loader/page-content-loader.component","MobilePageDirective":"./page.directive","PageModule":"./page.module"},"importAs":"@wm/mobile/components/page"}
@@ -1,13 +1,16 @@
1
1
  import { ElementRef, OnDestroy } from '@angular/core';
2
+ import { BsModalService } from 'ngx-bootstrap/modal';
2
3
  import { AbstractNavigationService, App } from '@wm/core';
3
4
  import { PageDirective } from '@wm/components/page';
4
5
  import { DeviceService } from '@wm/mobile/core';
5
6
  export declare class MobilePageDirective implements OnDestroy {
7
+ private modalService;
6
8
  private deviceService;
7
9
  private page;
8
10
  private navigationService;
9
11
  private _$ele;
12
+ private subscriptions;
10
13
  private _backBtnListenerDestroyer;
11
- constructor(app: App, elRef: ElementRef, deviceService: DeviceService, page: PageDirective, navigationService: AbstractNavigationService);
14
+ constructor(app: App, elRef: ElementRef, modalService: BsModalService, deviceService: DeviceService, page: PageDirective, navigationService: AbstractNavigationService);
12
15
  ngOnDestroy(): void;
13
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-ng-runtime",
3
- "version": "11.4.0-next.141076",
3
+ "version": "11.4.0-next.141078",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3486,6 +3486,14 @@
3486
3486
  { type: core.AbstractHttpService }
3487
3487
  ]; };
3488
3488
 
3489
+ var Formatter = /** @class */ (function () {
3490
+ function Formatter() {
3491
+ }
3492
+ Formatter.prototype.format = function (value, format) {
3493
+ return exports.appManager.getPipe('date').transform(value, format);
3494
+ };
3495
+ return Formatter;
3496
+ }());
3489
3497
  var VariablesService = /** @class */ (function () {
3490
3498
  function VariablesService(httpService, metadataService, navigationService, routerService, toasterService, oAuthService, securityService, dialogService) {
3491
3499
  this.httpService = httpService;
@@ -3611,6 +3619,7 @@
3611
3619
  if (this.isVariableSeperated(variablesJson, variableName)) {
3612
3620
  this.processBinding(varInstance, scope, 'dataBinding', this.getBindSourceTarget(varInstance));
3613
3621
  varInstance.httpService = this.httpService;
3622
+ varInstance.dateFormatter = new Formatter();
3614
3623
  varInstance.subscribe('afterInvoke', function () { return core.$invokeWatchers(true); });
3615
3624
  if (varInstance.category === 'wm.LiveVariable' && varInstance.operation === 'read') {
3616
3625
  core.processFilterExpBindNode(varInstance._context, varInstance.filterExpressions, varInstance);
@@ -3705,6 +3714,7 @@
3705
3714
  exports.DB_CONSTANTS = DB_CONSTANTS;
3706
3715
  exports.DeviceVariableManager = DeviceVariableManager;
3707
3716
  exports.DeviceVariableService = DeviceVariableService;
3717
+ exports.Formatter = Formatter;
3708
3718
  exports.MetadataService = MetadataService;
3709
3719
  exports.SWAGGER_CONSTANTS = SWAGGER_CONSTANTS;
3710
3720
  exports.VARIABLE_CONSTANTS = VARIABLE_CONSTANTS;