@theseam/ui-common 0.3.9 → 0.3.10
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/theseam-ui-common-framework.umd.js +10 -3
- package/bundles/theseam-ui-common-framework.umd.js.map +1 -1
- package/esm2015/framework/side-nav/side-nav.component.js +11 -4
- package/fesm2015/theseam-ui-common-framework.js +10 -3
- package/fesm2015/theseam-ui-common-framework.js.map +1 -1
- package/framework/theseam-ui-common-framework.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1781,13 +1781,13 @@
|
|
|
1781
1781
|
this.hasHeaderToggle = true;
|
|
1782
1782
|
this._items = new rxjs.BehaviorSubject([]);
|
|
1783
1783
|
this._expanded = new rxjs.BehaviorSubject(true);
|
|
1784
|
-
this.expanded$ = this._expanded.asObservable()
|
|
1784
|
+
this.expanded$ = this._expanded.asObservable();
|
|
1785
1785
|
this._overlay = new rxjs.BehaviorSubject(false);
|
|
1786
1786
|
this.overlay$ = this._overlay.asObservable();
|
|
1787
1787
|
this.toggleExpand = new i0.EventEmitter();
|
|
1788
1788
|
this._backdropHidden = new rxjs.BehaviorSubject(true);
|
|
1789
1789
|
this.items$ = this._items.asObservable().pipe(operators.switchMap(function (items) { return _this._sideNav.createItemsObservable(items); }), operators.shareReplay({ bufferSize: 1, refCount: true }));
|
|
1790
|
-
this.isMobile$ = this._layout.isMobile$.pipe(operators.tap(function (isMobile) { return isMobile
|
|
1790
|
+
this.isMobile$ = this._layout.isMobile$.pipe(operators.tap(function (isMobile) { return isMobile ? _this.collapse() : _this.expand(); }));
|
|
1791
1791
|
this.sideNavExpandedState$ = rxjs.combineLatest([this.expanded$, this.overlay$]).pipe(operators.map(function (_a) {
|
|
1792
1792
|
var _b = __read(_a, 2), expanded = _b[0], overlay = _b[1];
|
|
1793
1793
|
return expanded
|
|
@@ -1803,7 +1803,14 @@
|
|
|
1803
1803
|
});
|
|
1804
1804
|
Object.defineProperty(SideNavComponent.prototype, "expanded", {
|
|
1805
1805
|
get: function () { return this._expanded.value; },
|
|
1806
|
-
set: function (value) {
|
|
1806
|
+
set: function (value) {
|
|
1807
|
+
var expanded = coercion.coerceBooleanProperty(value);
|
|
1808
|
+
var emit = expanded !== this.expanded;
|
|
1809
|
+
this._expanded.next(expanded);
|
|
1810
|
+
if (emit) {
|
|
1811
|
+
this.toggleExpand.emit(coercion.coerceBooleanProperty(value));
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1807
1814
|
enumerable: false,
|
|
1808
1815
|
configurable: true
|
|
1809
1816
|
});
|