@universis/ngx-tables 0.8.1 → 0.8.2
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.
- package/bundles/universis-ngx-tables.umd.js +17 -5
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/tables.activated-table.service.js +16 -2
- package/esm5/lib/tables.activated-table.service.js +16 -2
- package/fesm2015/universis-ngx-tables.js +16 -4
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +16 -4
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/tables.activated-table.service.d.ts +11 -0
- package/package.json +1 -1
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('iso-639-1/build'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@universis/ngx-tables', ['exports', 'iso-639-1/build', '
|
|
4
|
-
(factory((global.universis = global.universis || {}, global.universis['ngx-tables'] = {}),global.ISO6391,global.
|
|
5
|
-
}(this, (function (exports,ISO6391,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('iso-639-1/build'), require('jquery'), require('datatables.net'), require('datatables.net-scroller'), require('datatables.net-colreorder'), require('datatables.net-buttons'), require('rxjs'), require('rxjs/add/observable/combineLatest'), require('@angular/common/http'), require('@themost/client'), require('@themost/angular'), require('@angular/common'), require('@ngx-translate/core'), require('@angular/forms'), require('@universis/common'), require('@universis/common/routing'), require('@universis/forms'), require('angular-formio'), require('ngx-bootstrap/modal'), require('ngx-bootstrap/progressbar'), require('ngx-pipes'), require('lodash'), require('@angular/core'), require('@angular/router'), require('@ngrx/store'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@universis/ngx-tables', ['exports', 'iso-639-1/build', 'jquery', 'datatables.net', 'datatables.net-scroller', 'datatables.net-colreorder', 'datatables.net-buttons', 'rxjs', 'rxjs/add/observable/combineLatest', '@angular/common/http', '@themost/client', '@themost/angular', '@angular/common', '@ngx-translate/core', '@angular/forms', '@universis/common', '@universis/common/routing', '@universis/forms', 'angular-formio', 'ngx-bootstrap/modal', 'ngx-bootstrap/progressbar', 'ngx-pipes', 'lodash', '@angular/core', '@angular/router', '@ngrx/store', 'rxjs/operators'], factory) :
|
|
4
|
+
(factory((global.universis = global.universis || {}, global.universis['ngx-tables'] = {}),global.ISO6391,global.jQuery_,null,null,null,null,global.rxjs,global.rxjs['add/observable/combineLatest'],global.ng.common.http,global.client,global.i1,global.ng.common,global.core,global.ng.forms,global.i2,global.routing,global.forms$1,global.angularFormio,global.modal,global.progressbar,global.ngxPipes,global.lodash,global.ng.core,global.ng.router,global.store,global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports,ISO6391,jQuery_,datatables_net,datatables_netScroller,datatables_netColreorder,datatables_netButtons,rxjs,combineLatest,http,client,i1,common,core,forms,i2,routing,forms$1,angularFormio,modal,progressbar,ngxPipes,lodash,i0,i1$1,store,operators) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1034,10 +1034,20 @@
|
|
|
1034
1034
|
var _this = this;
|
|
1035
1035
|
this._router = _router;
|
|
1036
1036
|
this._activatedRoute = _activatedRoute;
|
|
1037
|
+
/**
|
|
1038
|
+
* Get the last table that was set as active
|
|
1039
|
+
* Note: Emitted value may be null (e.g. reset on route changes)
|
|
1040
|
+
*/
|
|
1041
|
+
this.lastActiveTable = new rxjs.BehaviorSubject(null);
|
|
1042
|
+
/**
|
|
1043
|
+
* Omit the last emitted value to observe only new active table changes
|
|
1044
|
+
* Note: Emitted value may be null (e.g. reset on route changes)
|
|
1045
|
+
*/
|
|
1046
|
+
this.nextActiveTable = this.lastActiveTable.pipe(operators.skip(1));
|
|
1037
1047
|
_router.events.forEach(function (event) {
|
|
1038
1048
|
if (event instanceof i1$1.NavigationStart) {
|
|
1039
1049
|
if (_this._activeTable) {
|
|
1040
|
-
_this.
|
|
1050
|
+
_this.activeTable = null;
|
|
1041
1051
|
}
|
|
1042
1052
|
}
|
|
1043
1053
|
});
|
|
@@ -1048,6 +1058,8 @@
|
|
|
1048
1058
|
},
|
|
1049
1059
|
set: function (tableComponent) {
|
|
1050
1060
|
this._activeTable = tableComponent;
|
|
1061
|
+
// provide change to observers
|
|
1062
|
+
this.lastActiveTable.next(this._activeTable);
|
|
1051
1063
|
},
|
|
1052
1064
|
enumerable: true,
|
|
1053
1065
|
configurable: true
|