@taiga-ui/addon-doc 3.42.1 → 3.43.0
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/taiga-ui-addon-doc-components.umd.js +7 -9
- package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
- package/esm2015/components/navigation/navigation.providers.js +2 -4
- package/fesm2015/taiga-ui-addon-doc-components.js +1 -3
- package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
- package/package.json +5 -5
|
@@ -1545,15 +1545,13 @@
|
|
|
1545
1545
|
{
|
|
1546
1546
|
provide: NAVIGATION_TITLE,
|
|
1547
1547
|
deps: [i6$1.Router, i6$1.ActivatedRoute, tokens.TUI_DOC_TITLE, i6.TuiDestroyService],
|
|
1548
|
-
useFactory: function (router, activatedRoute, titlePrefix, destroy$) {
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}), operators.takeUntil(destroy$));
|
|
1556
|
-
},
|
|
1548
|
+
useFactory: function (router, activatedRoute, titlePrefix, destroy$) { return router.events.pipe(operators.filter(function (event) { return event instanceof i6$1.NavigationEnd; }), operators.map(function () { return activatedRoute.firstChild; }), operators.filter(i6.tuiIsPresent), operators.mergeMap(function (_a) {
|
|
1549
|
+
var data = _a.data;
|
|
1550
|
+
return data;
|
|
1551
|
+
}), operators.map(function (_a) {
|
|
1552
|
+
var title = _a.title;
|
|
1553
|
+
return "" + titlePrefix + title;
|
|
1554
|
+
}), operators.takeUntil(destroy$)); },
|
|
1557
1555
|
},
|
|
1558
1556
|
{
|
|
1559
1557
|
provide: NAVIGATION_LABELS,
|