@wavemaker/app-ng-runtime 11.4.0-next.24568 → 11.4.0-next.24570
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.
- app-ng-runtime/build-task/bundles/index.umd.js +1 -1
- app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
- app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
- app-ng-runtime/build-task/fesm2015/index.js +1 -1
- app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +5 -0
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
- app-ng-runtime/components/base/fesm2015/index.js +6 -1
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
- app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
- app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
- app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
- app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
- app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/form/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +24 -39
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +24 -39
- app-ng-runtime/components/data/list/fesm2015/index.js +23 -38
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/list/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +21 -4
- app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +22 -5
- app-ng-runtime/components/data/pagination/fesm2015/index.js +21 -4
- app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +11 -4
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table.component.js +12 -5
- app-ng-runtime/components/data/table/fesm2015/index.js +11 -4
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/index.metadata.json +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +11 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +12 -4
- app-ng-runtime/components/dialogs/default/fesm2015/index.js +11 -3
- app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +28 -9
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +2 -2
- app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
- app-ng-runtime/components/input/epoch/fesm2015/index.js +31 -11
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +4 -1
- app-ng-runtime/components/navigation/popover/fesm2015/index.js +3 -0
- app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
- app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
- app-ng-runtime/package.json +1 -1
|
@@ -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 (
|
|
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
|
|
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,GAA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AC;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":
|
|
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
|
}
|