ps-toolkit-ui 1.11.87 → 1.11.89
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/ps-toolkit-ui.umd.js +12 -0
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/sidebar/sidebar.component.js +8 -1
- package/esm2015/lib/services/sidebar.service.js +6 -1
- package/fesm2015/ps-toolkit-ui.js +12 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/services/sidebar.service.d.ts +3 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2407,11 +2407,16 @@
|
|
|
2407
2407
|
var SidebarService = /** @class */ (function () {
|
|
2408
2408
|
function SidebarService() {
|
|
2409
2409
|
this.countSource = new rxjs.BehaviorSubject(0);
|
|
2410
|
+
this.countAllSource = new rxjs.BehaviorSubject(0);
|
|
2410
2411
|
this.currentCount = this.countSource.asObservable();
|
|
2412
|
+
this.currentCountAll = this.countAllSource.asObservable();
|
|
2411
2413
|
}
|
|
2412
2414
|
SidebarService.prototype.changeCount = function (count) {
|
|
2413
2415
|
this.countSource.next(count);
|
|
2414
2416
|
};
|
|
2417
|
+
SidebarService.prototype.changeCountAll = function (countAll) {
|
|
2418
|
+
this.countAllSource.next(countAll);
|
|
2419
|
+
};
|
|
2415
2420
|
return SidebarService;
|
|
2416
2421
|
}());
|
|
2417
2422
|
SidebarService.decorators = [
|
|
@@ -2442,6 +2447,13 @@
|
|
|
2442
2447
|
_this.currentSidebar.count += c;
|
|
2443
2448
|
}
|
|
2444
2449
|
});
|
|
2450
|
+
service.currentCountAll.subscribe(function (c) {
|
|
2451
|
+
console.log(_this.currentSidebar, 111);
|
|
2452
|
+
if (_this.currentSidebar) {
|
|
2453
|
+
console.log(_this.currentSidebar.countAll, c, 222);
|
|
2454
|
+
_this.currentSidebar.countAll += c;
|
|
2455
|
+
}
|
|
2456
|
+
});
|
|
2445
2457
|
}
|
|
2446
2458
|
SidebarComponent.prototype.setActive = function () {
|
|
2447
2459
|
var active = HelperClass.getData('active', this.router.routerState, this.router.routerState.root)[0];
|