@rxap/layout 12.2.0 → 12.2.3
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/rxap-layout.umd.js +33 -8
- package/bundles/rxap-layout.umd.js.map +1 -1
- package/esm2015/lib/navigation/navigation-item.js.map +1 -1
- package/esm2015/lib/navigation/navigation.component.module.js +9 -6
- package/esm2015/lib/navigation/navigation.component.module.js.map +1 -1
- package/esm2015/lib/navigation/navigation.service.js +10 -6
- package/esm2015/lib/navigation/navigation.service.js.map +1 -1
- package/esm2015/lib/navigation/replace-router-paths.pipe.js +14 -1
- package/esm2015/lib/navigation/replace-router-paths.pipe.js.map +1 -1
- package/fesm2015/rxap-layout.js +29 -9
- package/fesm2015/rxap-layout.js.map +1 -1
- package/lib/navigation/navigation-item.d.ts +2 -2
- package/lib/navigation/navigation.component.module.d.ts +13 -13
- package/lib/navigation/replace-router-paths.pipe.d.ts +5 -0
- package/package.json +9 -8
|
@@ -1655,18 +1655,22 @@
|
|
|
1655
1655
|
var isVisibleArray$ = navigationItem.status
|
|
1656
1656
|
.map(function (statusToken) { return _this.injector.get(statusToken); })
|
|
1657
1657
|
.map(function (status) {
|
|
1658
|
-
var isVisible = status.isVisible(navigationItem
|
|
1658
|
+
var isVisible = status.isVisible(navigationItem);
|
|
1659
1659
|
if (typeof isVisible === 'boolean') {
|
|
1660
1660
|
return rxjs$1.of(isVisible);
|
|
1661
1661
|
}
|
|
1662
1662
|
else {
|
|
1663
1663
|
return rxjs$1.from(isVisible);
|
|
1664
1664
|
}
|
|
1665
|
-
})
|
|
1665
|
+
}).map(function (isVisible$) { return isVisible$.pipe(operators.catchError(function (e) {
|
|
1666
|
+
console.error('isVisible method failed: ' + e.message);
|
|
1667
|
+
return rxjs$1.of(false);
|
|
1668
|
+
})); });
|
|
1666
1669
|
// TODO : dont wait for all status services to complete, but cancel waiting if one returns false
|
|
1667
1670
|
return rxjs$1.combineLatest(isVisibleArray$).pipe(operators.map(function (isVisibleArray) { return isVisibleArray.reduce(function (acc, isVisible) { return acc && isVisible; }, true); }), operators.map(function (isVisible) { return (isVisible ? navigationItem : null); }), operators.switchMap(function (navigationItemOrNull) {
|
|
1671
|
+
var _a;
|
|
1668
1672
|
if (navigationItemOrNull) {
|
|
1669
|
-
if (navigationItemOrNull.children) {
|
|
1673
|
+
if ((_a = navigationItemOrNull.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1670
1674
|
return _this.checkNavigationStatusProviders(navigationItemOrNull.children).pipe(operators.map(function (children) { return (Object.assign(Object.assign({}, navigationItemOrNull), { children: children })); }));
|
|
1671
1675
|
}
|
|
1672
1676
|
return rxjs$1.of(navigationItemOrNull);
|
|
@@ -2732,6 +2736,24 @@
|
|
|
2732
2736
|
}]
|
|
2733
2737
|
}], function () { return [{ type: ReplaceRouterPathsService }]; }, null);
|
|
2734
2738
|
})();
|
|
2739
|
+
var ReplaceRouterPathsPipeModule = /** @class */ (function () {
|
|
2740
|
+
function ReplaceRouterPathsPipeModule() {
|
|
2741
|
+
}
|
|
2742
|
+
return ReplaceRouterPathsPipeModule;
|
|
2743
|
+
}());
|
|
2744
|
+
ReplaceRouterPathsPipeModule.ɵfac = function ReplaceRouterPathsPipeModule_Factory(t) { return new (t || ReplaceRouterPathsPipeModule)(); };
|
|
2745
|
+
ReplaceRouterPathsPipeModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: ReplaceRouterPathsPipeModule });
|
|
2746
|
+
ReplaceRouterPathsPipeModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({});
|
|
2747
|
+
(function () {
|
|
2748
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReplaceRouterPathsPipeModule, [{
|
|
2749
|
+
type: i0.NgModule,
|
|
2750
|
+
args: [{
|
|
2751
|
+
declarations: [ReplaceRouterPathsPipe],
|
|
2752
|
+
exports: [ReplaceRouterPathsPipe]
|
|
2753
|
+
}]
|
|
2754
|
+
}], null, null);
|
|
2755
|
+
})();
|
|
2756
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(ReplaceRouterPathsPipeModule, { declarations: [ReplaceRouterPathsPipe], exports: [ReplaceRouterPathsPipe] }); })();
|
|
2735
2757
|
|
|
2736
2758
|
var NavigationComponentModule = /** @class */ (function () {
|
|
2737
2759
|
function NavigationComponentModule() {
|
|
@@ -2751,13 +2773,14 @@
|
|
|
2751
2773
|
i6.MatRippleModule,
|
|
2752
2774
|
i2$5.MatDividerModule,
|
|
2753
2775
|
i3$5.StopPropagationDirectiveModule,
|
|
2754
|
-
i3$6.MatTooltipModule
|
|
2776
|
+
i3$6.MatTooltipModule,
|
|
2777
|
+
ReplaceRouterPathsPipeModule
|
|
2755
2778
|
]] });
|
|
2756
2779
|
(function () {
|
|
2757
2780
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationComponentModule, [{
|
|
2758
2781
|
type: i0.NgModule,
|
|
2759
2782
|
args: [{
|
|
2760
|
-
declarations: [NavigationComponent, NavigationItemComponent
|
|
2783
|
+
declarations: [NavigationComponent, NavigationItemComponent],
|
|
2761
2784
|
imports: [
|
|
2762
2785
|
i3$3.MatIconModule,
|
|
2763
2786
|
i1$2.MatButtonModule,
|
|
@@ -2769,14 +2792,15 @@
|
|
|
2769
2792
|
i6.MatRippleModule,
|
|
2770
2793
|
i2$5.MatDividerModule,
|
|
2771
2794
|
i3$5.StopPropagationDirectiveModule,
|
|
2772
|
-
i3$6.MatTooltipModule
|
|
2795
|
+
i3$6.MatTooltipModule,
|
|
2796
|
+
ReplaceRouterPathsPipeModule
|
|
2773
2797
|
],
|
|
2774
2798
|
exports: [NavigationComponent]
|
|
2775
2799
|
}]
|
|
2776
2800
|
}], null, null);
|
|
2777
2801
|
})();
|
|
2778
2802
|
(function () {
|
|
2779
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(NavigationComponentModule, { declarations: [NavigationComponent, NavigationItemComponent
|
|
2803
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(NavigationComponentModule, { declarations: [NavigationComponent, NavigationItemComponent], imports: [i3$3.MatIconModule,
|
|
2780
2804
|
i1$2.MatButtonModule,
|
|
2781
2805
|
flexLayout.FlexLayoutModule,
|
|
2782
2806
|
i1$4.RouterModule,
|
|
@@ -2786,7 +2810,8 @@
|
|
|
2786
2810
|
i6.MatRippleModule,
|
|
2787
2811
|
i2$5.MatDividerModule,
|
|
2788
2812
|
i3$5.StopPropagationDirectiveModule,
|
|
2789
|
-
i3$6.MatTooltipModule
|
|
2813
|
+
i3$6.MatTooltipModule,
|
|
2814
|
+
ReplaceRouterPathsPipeModule], exports: [NavigationComponent] });
|
|
2790
2815
|
})();
|
|
2791
2816
|
i0__namespace.ɵɵsetComponentScope(NavigationItemComponent, [i1__namespace$4.RouterLinkWithHref, i1__namespace$4.RouterLinkActive, i6__namespace.MatRipple, i3__namespace$6.MatTooltip, i2__namespace.NgIf, i3__namespace$3.MatIcon, i6__namespace$1.IconDirective, NavigationComponent, i1__namespace$3.DefaultFlexDirective, i2__namespace.NgForOf], [i2__namespace.AsyncPipe]);
|
|
2792
2817
|
|