@coolon/angular-ui-powerups 13.0.0 → 13.0.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/esm2020/lib/place/place-router.mjs +6 -2
- package/esm2020/lib/services/visibility-service.mjs +11 -7
- package/fesm2015/coolon-angular-ui-powerups.mjs +14 -6
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +14 -6
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/services/visibility-service.d.ts +5 -1
- package/package.json +1 -2
|
@@ -65,7 +65,6 @@ import * as i2$4 from '@angular/material/list';
|
|
|
65
65
|
import { MatListModule } from '@angular/material/list';
|
|
66
66
|
import 'reflect-metadata';
|
|
67
67
|
import { style, query, group, animate, trigger, transition } from '@angular/animations';
|
|
68
|
-
import * as wakeEvent from 'wake-event';
|
|
69
68
|
|
|
70
69
|
class CommandDirective extends GarbageCollector {
|
|
71
70
|
constructor(elementRef, matButton, matMenuItem) {
|
|
@@ -8655,6 +8654,10 @@ class PlaceRouter extends GarbageCollector {
|
|
|
8655
8654
|
// @Trace()
|
|
8656
8655
|
async doNavigation(visit, runNavigationCommands) {
|
|
8657
8656
|
if (this.navigationInProgress.value) {
|
|
8657
|
+
Logger.get().error('Navigation already in progress', {
|
|
8658
|
+
visit: visit,
|
|
8659
|
+
session: this.navigationSession
|
|
8660
|
+
});
|
|
8658
8661
|
lang.illegalState('Navigation already in progress');
|
|
8659
8662
|
}
|
|
8660
8663
|
const navigation = this.createNavigationSession(this.urlService.getCurrentRouterUrl());
|
|
@@ -9816,7 +9819,7 @@ class VisibilityService extends GarbageCollector {
|
|
|
9816
9819
|
// private _throttledWakeEvents: Stream<Instant>;
|
|
9817
9820
|
constructor(document) {
|
|
9818
9821
|
super();
|
|
9819
|
-
this.
|
|
9822
|
+
this._visible$ = new MutableValueModel();
|
|
9820
9823
|
this.document = document; // see https://stackoverflow.com/a/53715642
|
|
9821
9824
|
const { chain } = Dsl.disposeWith(this);
|
|
9822
9825
|
// Set the name of the hidden property and the change event for visibility
|
|
@@ -9844,8 +9847,7 @@ class VisibilityService extends GarbageCollector {
|
|
|
9844
9847
|
this.document.removeEventListener(this.eventName, handler);
|
|
9845
9848
|
});
|
|
9846
9849
|
}
|
|
9847
|
-
|
|
9848
|
-
this._visibleModel.value = this.isVisible();
|
|
9850
|
+
this._visible$.value = this.isVisible();
|
|
9849
9851
|
// give the network a chance to come back or we end up with a bunch of failed requests.
|
|
9850
9852
|
// should probably also implement a connection service so that we can go
|
|
9851
9853
|
// connectionServer.ensureConnectedThen(fireWakeEvent);
|
|
@@ -9856,11 +9858,17 @@ class VisibilityService extends GarbageCollector {
|
|
|
9856
9858
|
// }
|
|
9857
9859
|
// @trace
|
|
9858
9860
|
updateVisibilityState() {
|
|
9859
|
-
this.
|
|
9861
|
+
this._visible$.value = this.isVisible();
|
|
9860
9862
|
// this._wakeEvents.publish(Instant.now());
|
|
9861
9863
|
}
|
|
9864
|
+
/**
|
|
9865
|
+
* @deprecated use visible$ instead.
|
|
9866
|
+
*/
|
|
9862
9867
|
get visibleModel() {
|
|
9863
|
-
return this.
|
|
9868
|
+
return this._visible$.readonly;
|
|
9869
|
+
}
|
|
9870
|
+
get visible$() {
|
|
9871
|
+
return this._visible$.readonly;
|
|
9864
9872
|
}
|
|
9865
9873
|
isHidden() {
|
|
9866
9874
|
return !!this.document[this.attributeName];
|