@taiga-ui/addon-doc 3.15.0-dev.main-4b799b5 → 3.15.0-dev.main-0804b74
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.umd.js +11 -5
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/esm2015/components/copy/copy.component.js +4 -4
- package/esm2015/components/navigation/navigation.component.js +7 -2
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
- package/esm2015/internal/header/header.component.js +4 -4
- package/esm2015/tokens/page-loaded.js +3 -3
- package/fesm2015/taiga-ui-addon-doc.js +12 -7
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +2 -2
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
}
|
|
468
468
|
Object.defineProperty(TuiDocCopyComponent.prototype, "copied$", {
|
|
469
469
|
get: function () {
|
|
470
|
-
return this.copy$.pipe(operators.
|
|
470
|
+
return this.copy$.pipe(operators.switchMap(function () { return i9.timer(COPIED_TIMEOUT).pipe(operators.map(i6.ALWAYS_FALSE_HANDLER), operators.startWith(true)); }));
|
|
471
471
|
},
|
|
472
472
|
enumerable: false,
|
|
473
473
|
configurable: true
|
|
@@ -1790,7 +1790,7 @@
|
|
|
1790
1790
|
}]
|
|
1791
1791
|
}] });
|
|
1792
1792
|
|
|
1793
|
-
var TUI_DOC_PAGE_LOADED = new i0.InjectionToken("[TUI_DOC_PAGE_LOADED] Stream that emits if loading of page is over (for example, to begin scrollIntoView)", { factory: function () { return i9.defer(function () { return i9.timer(200).pipe(operators.
|
|
1793
|
+
var TUI_DOC_PAGE_LOADED = new i0.InjectionToken("[TUI_DOC_PAGE_LOADED] Stream that emits if loading of page is over (for example, to begin scrollIntoView)", { factory: function () { return i9.defer(function () { return i9.timer(200).pipe(operators.switchMap(function () { return i9.of(true); })); }); } });
|
|
1794
1794
|
|
|
1795
1795
|
var TUI_DOC_SCROLL_BEHAVIOR = new i0.InjectionToken("[TUI_DOC_SCROLL_BEHAVIOR] Defines the transition animation for scroll", { factory: function () { return "smooth"; } });
|
|
1796
1796
|
|
|
@@ -1898,11 +1898,12 @@
|
|
|
1898
1898
|
|
|
1899
1899
|
var TuiScrollIntoViewLinkDirective = /** @class */ (function () {
|
|
1900
1900
|
function TuiScrollIntoViewLinkDirective(destroy$, _a, readyToScroll$) {
|
|
1901
|
+
var _this = this;
|
|
1901
1902
|
var nativeElement = _a.nativeElement;
|
|
1902
1903
|
this.readyToScroll$ = readyToScroll$;
|
|
1903
1904
|
this.scroll$ = new i9.ReplaySubject(1);
|
|
1904
1905
|
this.readyToScroll$
|
|
1905
|
-
.pipe(operators.filter(Boolean), operators.
|
|
1906
|
+
.pipe(operators.filter(Boolean), operators.switchMap(function () { return _this.scroll$; }), operators.debounceTime(750), operators.filter(function (shallWe) { return shallWe && !!i6.tuiGetElementObscures(nativeElement); }), operators.takeUntil(destroy$))
|
|
1906
1907
|
.subscribe(function () {
|
|
1907
1908
|
nativeElement.scrollIntoView();
|
|
1908
1909
|
});
|
|
@@ -2021,7 +2022,12 @@
|
|
|
2021
2022
|
]); }, []);
|
|
2022
2023
|
};
|
|
2023
2024
|
TuiDocNavigationComponent.prototype.isActiveRoute = function (route) {
|
|
2024
|
-
return this.router.isActive(route,
|
|
2025
|
+
return this.router.isActive(route, {
|
|
2026
|
+
paths: 'subset',
|
|
2027
|
+
queryParams: 'subset',
|
|
2028
|
+
fragment: 'ignored',
|
|
2029
|
+
matrixParams: 'ignored',
|
|
2030
|
+
});
|
|
2025
2031
|
};
|
|
2026
2032
|
TuiDocNavigationComponent.prototype.handleAnchorLink = function (hash) {
|
|
2027
2033
|
var _this = this;
|
|
@@ -2145,7 +2151,7 @@
|
|
|
2145
2151
|
this.router = router;
|
|
2146
2152
|
this.swipes$ = swipes$;
|
|
2147
2153
|
this.stream$ = new i9.Subject();
|
|
2148
|
-
this.open$ = i9.merge(this.router.events.pipe(operators.
|
|
2154
|
+
this.open$ = i9.merge(this.router.events.pipe(operators.map(i6.ALWAYS_FALSE_HANDLER)), this.stream$, this.swipes$.pipe(operators.filter(function (swipe) { return swipe.direction === 'left' || swipe.direction === 'right'; }), operators.map(function (swipe) { return swipe.direction === 'right'; }))).pipe(operators.startWith(false), operators.distinctUntilChanged());
|
|
2149
2155
|
}
|
|
2150
2156
|
TuiDocHeaderComponent.prototype.onClick = function () {
|
|
2151
2157
|
this.stream$.next(true);
|