@taiga-ui/addon-doc 2.51.0 → 2.53.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.umd.js +98 -26
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-doc.umd.min.js.map +1 -1
- package/components/code/parse-code-block.d.ts +4 -0
- package/components/example/example.component.d.ts +2 -1
- package/components/navigation/navigation.component.d.ts +4 -1
- package/directives/scroll-into-view/scroll-into-view.directive.d.ts +3 -1
- package/esm2015/components/code/code.component.js +2 -2
- package/esm2015/components/code/parse-code-block.js +6 -1
- package/esm2015/components/demo/demo.component.js +2 -2
- package/esm2015/components/documentation/documentation.component.js +2 -2
- package/esm2015/components/example/example.component.js +10 -6
- package/esm2015/components/navigation/navigation.component.js +22 -12
- package/esm2015/components/navigation/navigation.providers.js +4 -1
- package/esm2015/components/page/page.component.js +2 -2
- package/esm2015/components/page/page.providers.js +2 -1
- package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +13 -9
- package/esm2015/internal/see-also/see-also.component.js +2 -2
- package/esm2015/public-api.js +4 -1
- package/esm2015/tokens/code-actions.js +5 -0
- package/esm2015/tokens/page-loaded.js +5 -0
- package/esm2015/tokens/scroll-behavior.js +3 -0
- package/esm2015/utils/coerce-value.js +7 -2
- package/esm2015/utils/color-conversion.js +10 -1
- package/esm2015/utils/generate-routes.js +4 -1
- package/esm2015/utils/inspect.js +4 -1
- package/esm2015/utils/raw-load-record.js +6 -1
- package/esm2015/utils/raw-load.js +6 -1
- package/esm2015/utils/transliterate-keyboard-layout.js +4 -1
- package/esm5/components/code/code.component.js +2 -2
- package/esm5/components/code/parse-code-block.js +6 -1
- package/esm5/components/demo/demo.component.js +2 -2
- package/esm5/components/documentation/documentation.component.js +2 -2
- package/esm5/components/example/example.component.js +10 -6
- package/esm5/components/navigation/navigation.component.js +22 -12
- package/esm5/components/navigation/navigation.providers.js +4 -1
- package/esm5/components/page/page.component.js +2 -2
- package/esm5/components/page/page.providers.js +2 -1
- package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +13 -9
- package/esm5/internal/see-also/see-also.component.js +2 -2
- package/esm5/public-api.js +4 -1
- package/esm5/tokens/code-actions.js +5 -0
- package/esm5/tokens/page-loaded.js +5 -0
- package/esm5/tokens/scroll-behavior.js +3 -0
- package/esm5/utils/coerce-value.js +7 -2
- package/esm5/utils/color-conversion.js +10 -1
- package/esm5/utils/generate-routes.js +4 -1
- package/esm5/utils/inspect.js +4 -1
- package/esm5/utils/raw-load-record.js +6 -1
- package/esm5/utils/raw-load.js +6 -1
- package/esm5/utils/transliterate-keyboard-layout.js +4 -1
- package/fesm2015/taiga-ui-addon-doc.js +93 -29
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/fesm5/taiga-ui-addon-doc.js +93 -29
- package/fesm5/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +3 -0
- package/taiga-ui-addon-doc.metadata.json +1 -1
- package/tokens/code-actions.d.ts +4 -0
- package/tokens/page-loaded.d.ts +3 -0
- package/tokens/scroll-behavior.d.ts +2 -0
- package/utils/coerce-value.d.ts +4 -0
- package/utils/color-conversion.d.ts +7 -0
- package/utils/generate-routes.d.ts +2 -0
- package/utils/inspect.d.ts +2 -0
- package/utils/raw-load-record.d.ts +4 -0
- package/utils/raw-load.d.ts +4 -0
- package/utils/transliterate-keyboard-layout.d.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter, __generator, __decorate, __param, __assign, __spread, __read, __values, __extends } from 'tslib';
|
|
2
2
|
import { Input, HostBinding, Component, NgModule, Inject, ChangeDetectionStrategy, InjectionToken, Renderer2, PLATFORM_ID, ViewChild, ContentChild, TemplateRef, HostListener, forwardRef, EventEmitter, Output, Directive, ChangeDetectorRef, ContentChildren, Attribute, Optional, Pipe, ViewEncapsulation, ElementRef } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, Subject, timer, Observable, merge, identity } from 'rxjs';
|
|
4
|
-
import { switchMap, map, switchMapTo, mapTo, startWith, takeUntil,
|
|
3
|
+
import { BehaviorSubject, Subject, timer, Observable, merge, identity, defer, of, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { switchMap, map, switchMapTo, mapTo, startWith, takeUntil, filter, debounceTime, mergeMap, take, distinctUntilChanged } from 'rxjs/operators';
|
|
5
5
|
import MarkdownIt from 'markdown-it';
|
|
6
6
|
import { CommonModule, isPlatformBrowser, Location as Location$1, DOCUMENT } from '@angular/common';
|
|
7
7
|
import { HighlightModule } from 'ngx-highlightjs';
|
|
@@ -17,6 +17,10 @@ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
|
17
17
|
import { TuiSidebarDirective, TuiSidebarModule } from '@taiga-ui/addon-mobile';
|
|
18
18
|
import { Title } from '@angular/platform-browser';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated: use {@link tuiRawLoad} instead
|
|
22
|
+
*/
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
20
24
|
function rawLoad(content) {
|
|
21
25
|
return __awaiter(this, void 0, void 0, function () {
|
|
22
26
|
var _a;
|
|
@@ -36,7 +40,12 @@ function rawLoad(content) {
|
|
|
36
40
|
});
|
|
37
41
|
});
|
|
38
42
|
}
|
|
43
|
+
var tuiRawLoad = rawLoad;
|
|
39
44
|
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated: use {@link tuiTryParseMarkdownCodeBlock} instead
|
|
47
|
+
*/
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
40
49
|
function tryParseMarkdownCodeBlock(text) {
|
|
41
50
|
if (text === void 0) { text = ''; }
|
|
42
51
|
var tokens = new MarkdownIt().parse(text, {});
|
|
@@ -51,6 +60,7 @@ function tryParseMarkdownCodeBlock(text) {
|
|
|
51
60
|
});
|
|
52
61
|
return result.length ? result : [text];
|
|
53
62
|
}
|
|
63
|
+
var tuiTryParseMarkdownCodeBlock = tryParseMarkdownCodeBlock;
|
|
54
64
|
|
|
55
65
|
var TuiDocCodeComponent = /** @class */ (function () {
|
|
56
66
|
function TuiDocCodeComponent() {
|
|
@@ -84,7 +94,7 @@ var TuiDocCodeComponent = /** @class */ (function () {
|
|
|
84
94
|
TuiDocCodeComponent = __decorate([
|
|
85
95
|
Component({
|
|
86
96
|
selector: 'tui-doc-code',
|
|
87
|
-
template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{filename}}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n><code [lineNumbers]=\"true\" [highlight]=\"content\"></code></pre>\n",
|
|
97
|
+
template: "<p\n *ngIf=\"filename\"\n class=\"t-header\"\n>\n {{ filename }}\n</p>\n<pre\n *ngFor=\"let content of processor$ | async\"\n class=\"t-code\"\n><code [lineNumbers]=\"true\" [highlight]=\"content\"></code></pre>\n",
|
|
88
98
|
styles: [":host{display:block}.t-header{font:var(--tui-font-text-s);font-weight:700}.t-code{margin:0}.t-code+.t-code{margin-top:1rem}.hljs:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear-disabled);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.hljs:not(:empty)::-webkit-scrollbar,.hljs:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.hljs:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host._has-filename .hljs:not(:empty){border-radius:.75rem}:host-context(tui-root._mobile) .hljs:not(:empty){padding:1rem}"]
|
|
89
99
|
})
|
|
90
100
|
], TuiDocCodeComponent);
|
|
@@ -326,7 +336,7 @@ var TuiDocDemoComponent = /** @class */ (function () {
|
|
|
326
336
|
TuiDocDemoComponent = TuiDocDemoComponent_1 = __decorate([
|
|
327
337
|
Component({
|
|
328
338
|
selector: 'tui-doc-demo',
|
|
329
|
-
template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n routerLink=\"/directives/mode\"\n >\n <code>tuiMode</code>\n </a>\n </ng-template>\n <ng-container *ngIf=\"isMobile; else desktop\">\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-mode\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiHintContent]=\"tooltip\"\n [formControl]=\"modeControl\"\n >\n tuiMode\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n ></tui-data-list-wrapper>\n </tui-select>\n </ng-container>\n <ng-template #desktop>\n tuiMode:\n <tui-tooltip\n describeId=\"form\"\n [content]=\"tooltip\"\n ></tui-tooltip>\n <div\n tuiGroup\n class=\"t-group\"\n [collapsed]=\"true\"\n >\n <tui-radio-block\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [item]=\"null\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onLight\n </tui-radio-block>\n </div>\n </ng-template>\n <tui-checkbox-labeled\n size=\"m\"\n class=\"t-checkbox\"\n [(ngModel)]=\"opaque\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n #wrapper\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"modeControl.value === 'onDark'\"\n [class.t-wrapper_gray]=\"modeControl.value === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n #content\n id=\"demoContent\"\n class=\"t-content\"\n >\n <form\n *ngIf=\"testForm\"\n class=\"t-form\"\n [formGroup]=\"testForm\"\n >\n <div class=\"t-input-wrapper\">\n <ng-container
|
|
339
|
+
template: "<div\n class=\"t-bg-toggle\"\n [tuiMode]=\"null\"\n>\n <ng-template #tooltip>\n {{ texts[0] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n routerLink=\"/directives/mode\"\n >\n <code>tuiMode</code>\n </a>\n </ng-template>\n <ng-container *ngIf=\"isMobile; else desktop\">\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-mode\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiHintContent]=\"tooltip\"\n [formControl]=\"modeControl\"\n >\n tuiMode\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"items\"\n ></tui-data-list-wrapper>\n </tui-select>\n </ng-container>\n <ng-template #desktop>\n tuiMode:\n <tui-tooltip\n describeId=\"form\"\n [content]=\"tooltip\"\n ></tui-tooltip>\n <div\n tuiGroup\n class=\"t-group\"\n [collapsed]=\"true\"\n >\n <tui-radio-block\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [item]=\"null\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n null\n </tui-radio-block>\n <tui-radio-block\n item=\"onDark\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onDark\n </tui-radio-block>\n <tui-radio-block\n item=\"onLight\"\n size=\"s\"\n nativeId=\"form\"\n class=\"tui-group__auto-width-item\"\n [hideRadio]=\"true\"\n [formControl]=\"modeControl\"\n >\n onLight\n </tui-radio-block>\n </div>\n </ng-template>\n <tui-checkbox-labeled\n size=\"m\"\n class=\"t-checkbox\"\n [(ngModel)]=\"opaque\"\n >\n {{ texts[1] }}\n </tui-checkbox-labeled>\n</div>\n<div\n #wrapper\n class=\"t-wrapper\"\n [class.t-wrapper_dark]=\"modeControl.value === 'onDark'\"\n [class.t-wrapper_gray]=\"modeControl.value === 'onLight'\"\n [class.t-wrapper_transparent]=\"!opaque\"\n>\n <div\n #content\n id=\"demoContent\"\n class=\"t-content\"\n >\n <form\n *ngIf=\"testForm\"\n class=\"t-form\"\n [formGroup]=\"testForm\"\n >\n <div class=\"t-input-wrapper\">\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n </div>\n <button\n tuiButton\n type=\"button\"\n size=\"s\"\n class=\"t-button\"\n [iconRight]=\"icon\"\n (click)=\"toggleDetails()\"\n >\n {{ texts[2] }}\n </button>\n <ng-template #icon>\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"expanded\"\n ></tui-svg>\n </ng-template>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"expanded\"\n >\n <ng-template tuiExpandContent>\n <pre class=\"t-value\">Form data: {{ testForm.value | json }}</pre>\n <div\n tuiGroup\n class=\"t-form-controls\"\n >\n <tui-select\n tuiTextfieldSize=\"s\"\n class=\"t-select\"\n [ngModel]=\"updateOn\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"updateOnChange($event)\"\n >\n updateOn\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"updateOnVariants\"\n ></tui-data-list-wrapper>\n </tui-select>\n <button\n tuiButton\n type=\"reset\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Reset\n </button>\n <button\n tuiButton\n type=\"submit\"\n size=\"s\"\n class=\"tui-group__auto-width-item\"\n >\n Submit\n </button>\n </div>\n </ng-template>\n </tui-expand>\n </form>\n <ng-content></ng-content>\n </div>\n <button\n tabindex=\"-1\"\n class=\"t-resizer\"\n (tuiDragStart)=\"onDragStart($event)\"\n (tuiDragContinues)=\"onDragContinues($event)\"\n (tuiDragEnd)=\"onDragEnd()\"\n >\n <span\n #resizerText\n class=\"t-resizer-text\"\n ></span>\n </button>\n</div>\n",
|
|
330
340
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
331
341
|
providers: [
|
|
332
342
|
TuiDestroyService,
|
|
@@ -382,11 +392,19 @@ var TuiDocDemoModule = /** @class */ (function () {
|
|
|
382
392
|
}());
|
|
383
393
|
|
|
384
394
|
/**
|
|
395
|
+
* TODO: duplicate, need fix it before v3
|
|
385
396
|
* TODO: move another package for reuse between addon-editor and addon-doc
|
|
397
|
+
* @deprecated: use {@link tuiRgbToHex} instead
|
|
386
398
|
*/
|
|
399
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
387
400
|
function rgbToHex(r, g, b) {
|
|
388
401
|
return "#" + [r, g, b].map(function (x) { return x.toString(16).padStart(2, '0'); }).join('');
|
|
389
402
|
}
|
|
403
|
+
var tuiRgbToHex = rgbToHex;
|
|
404
|
+
/**
|
|
405
|
+
* @deprecated: use {@link tuiHexToRgb} instead
|
|
406
|
+
*/
|
|
407
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
390
408
|
function hexToRgb(hex) {
|
|
391
409
|
var matches = hex
|
|
392
410
|
.replace('#', '')
|
|
@@ -398,6 +416,7 @@ function hexToRgb(hex) {
|
|
|
398
416
|
? matches.map(function (x) { return Number.parseInt(x, 16); })
|
|
399
417
|
: [0, 0, 0];
|
|
400
418
|
}
|
|
419
|
+
var tuiHexToRgb = hexToRgb;
|
|
401
420
|
|
|
402
421
|
function inspectArray(array, depth) {
|
|
403
422
|
if (depth === 0) {
|
|
@@ -437,11 +456,13 @@ function inspectObject(object, depth) {
|
|
|
437
456
|
return "{" + result + "}";
|
|
438
457
|
}
|
|
439
458
|
/**
|
|
459
|
+
* @deprecated: use {@link tuiInspectAny} instead
|
|
440
460
|
* Returns readable JS entity
|
|
441
461
|
* @param data
|
|
442
462
|
* @param depth
|
|
443
463
|
* @return readable JS entity
|
|
444
464
|
*/
|
|
465
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
445
466
|
function inspectAny(data, depth) {
|
|
446
467
|
if (data === null) {
|
|
447
468
|
return 'null';
|
|
@@ -463,8 +484,12 @@ function inspectAny(data, depth) {
|
|
|
463
484
|
}
|
|
464
485
|
return inspectObject(data, depth);
|
|
465
486
|
}
|
|
487
|
+
var tuiInspectAny = inspectAny;
|
|
466
488
|
|
|
467
|
-
|
|
489
|
+
/**
|
|
490
|
+
* @deprecated: use {@link tuiCoerceValue} instead
|
|
491
|
+
*/
|
|
492
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
468
493
|
function coerceValue(value) {
|
|
469
494
|
var prepared = String(value).trim();
|
|
470
495
|
if (isEmptyParamValue(prepared)) {
|
|
@@ -486,6 +511,7 @@ function coerceValue(value) {
|
|
|
486
511
|
return decodedValue;
|
|
487
512
|
}
|
|
488
513
|
}
|
|
514
|
+
var tuiCoerceValue = coerceValue;
|
|
489
515
|
function isEmptyParamValue(value) {
|
|
490
516
|
return ['undefined', 'null', 'NaN', 'Infinity'].includes(value);
|
|
491
517
|
}
|
|
@@ -494,6 +520,7 @@ function isBooleanParamValue(value) {
|
|
|
494
520
|
}
|
|
495
521
|
function isNumberParamValue(value) {
|
|
496
522
|
// TODO: investigate to disallow potentially catastrophic exponential-time regular expressions.
|
|
523
|
+
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
497
524
|
return /^-?[\d.]+(?:e-?\d+)?$/.test(value);
|
|
498
525
|
}
|
|
499
526
|
function isPossibleArray(value) {
|
|
@@ -748,7 +775,7 @@ var TuiDocDocumentationComponent = /** @class */ (function () {
|
|
|
748
775
|
TuiDocDocumentationComponent = __decorate([
|
|
749
776
|
Component({
|
|
750
777
|
selector: 'tui-doc-documentation',
|
|
751
|
-
template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container
|
|
778
|
+
template: "<h1\n *ngIf=\"heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h1>\n<ng-content></ng-content>\n<table class=\"t-table\">\n <tr class=\"t-row t-row_header\">\n <th class=\"t-th t-cell t-cell_prop\">{{ texts[2] }}</th>\n <th class=\"t-th\">{{ type }}</th>\n <th\n *ngIf=\"showValues && !isAPI\"\n class=\"t-th t-cell t-cell_value\"\n >\n {{ texts[3] }}\n </th>\n </tr>\n <tr\n *ngFor=\"let propertyConnector of propertiesConnectors\"\n class=\"t-row\"\n [class.t-deprecated]=\"propertyConnector.documentationPropertyDeprecated\"\n >\n <td class=\"t-cell\">\n <div\n automation-id=\"tui-documentation__property-name\"\n class=\"t-property\"\n >\n {{ stripOptional(propertyConnector.attrName) }}\n <tui-badge\n *ngIf=\"isOptional(propertyConnector.attrName)\"\n size=\"s\"\n value=\"Optional\"\n ></tui-badge>\n </div>\n <span\n *ngIf=\"propertyConnector.documentationPropertyDeprecated\"\n class=\"t-deprecated-label\"\n >\n deprecated\n </span>\n <ng-container [ngTemplateOutlet]=\"propertyConnector.template\"></ng-container>\n </td>\n <td class=\"t-cell\">\n <span class=\"type\">\n {{ propertyConnector.documentationPropertyType }}\n <tui-tooltip\n *ngIf=\"showContentTooltip(propertyConnector.documentationPropertyType)\"\n [describeId]=\"propertyConnector.attrName\"\n [content]=\"content\"\n >\n <ng-template #content>\n {{ texts[4] }}\n <a\n tuiLink\n tuiMode=\"onDark\"\n target=\"_blank\"\n href=\"https://github.com/tinkoff/ng-polymorpheus\"\n >\n <code>ng-polymorpheus</code>\n </a>\n </ng-template>\n </tui-tooltip>\n </span>\n </td>\n <td\n *ngIf=\"showValues\"\n class=\"t-cell\"\n >\n <ng-container *ngIf=\"propertyConnector.shouldShowValues; else elseEmitter\">\n <tui-select\n *ngIf=\"propertyConnector.hasItems; else noItems\"\n tuiTextfieldSize=\"m\"\n tuiDropdownLimitWidth=\"min\"\n [tuiTextfieldCleaner]=\"showCleaner(propertyConnector.documentationPropertyType)\"\n [tuiTextfieldLabelOutside]=\"true\"\n [nativeId]=\"propertyConnector.attrName\"\n [valueContent]=\"selectContent\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n >\n <code class=\"t-exception\">null</code>\n <tui-data-list-wrapper\n *tuiDataList\n [items]=\"propertyConnector.documentationPropertyValues\"\n [itemContent]=\"selectContent\"\n ></tui-data-list-wrapper>\n </tui-select>\n <ng-template\n #selectContent\n let-data\n >\n <code>{{ inspectAny(data) }}</code>\n </ng-template>\n\n <ng-template #noItems>\n <ng-container [ngSwitch]=\"propertyConnector.documentationPropertyType\">\n <tui-toggle\n *ngSwitchCase=\"'boolean'\"\n size=\"l\"\n [nativeId]=\"propertyConnector.attrName\"\n [showIcons]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-toggle>\n\n <tui-primitive-textfield\n *ngSwitchCase=\"'string'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue || ''\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-primitive-textfield>\n\n <div\n *ngSwitchCase=\"'color'\"\n tuiGroup\n >\n <tui-primitive-textfield\n tuiTextfieldType=\"text\"\n tuiTextfieldSize=\"m\"\n [attr.id]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiInputOpacity]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n [value]=\"getColor(propertyConnector.documentationPropertyValue)\"\n (valueChange)=\"onColorChange(propertyConnector, $event)\"\n ></tui-primitive-textfield>\n <tui-input-count\n tuiTextfieldSize=\"m\"\n [max]=\"100\"\n [ngModel]=\"getOpacity(propertyConnector.documentationPropertyValue)\"\n (ngModelChange)=\"onOpacityChange(propertyConnector, $event)\"\n >\n Opacity\n </tui-input-count>\n </div>\n\n <tui-input-count\n *ngSwitchCase=\"'number'\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [ngModel]=\"propertyConnector.documentationPropertyValue\"\n (ngModelChange)=\"propertyConnector.onValueChange($event)\"\n ></tui-input-count>\n\n <ng-container *ngSwitchCase=\"'PolymorpheusContent'\">\n <tui-primitive-textfield\n *ngIf=\"isPrimitivePolymorpheusContent(propertyConnector.documentationPropertyValue)\"\n tuiTextfieldSize=\"m\"\n [nativeId]=\"propertyConnector.attrName\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldCleaner]=\"true\"\n [value]=\"propertyConnector.documentationPropertyValue.toString()\"\n (valueChange)=\"propertyConnector.onValueChange($event)\"\n >\n Default content\n </tui-primitive-textfield>\n </ng-container>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #elseEmitter>\n <tui-notification\n class=\"t-output\"\n [@emitEvent]=\"propertyConnector.emits$ | async\"\n >\n Emit!\n </tui-notification>\n </ng-template>\n </td>\n </tr>\n</table>\n",
|
|
752
779
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
753
780
|
animations: [
|
|
754
781
|
trigger('emitEvent', [
|
|
@@ -846,10 +873,18 @@ var TuiDocDocumentationModule = /** @class */ (function () {
|
|
|
846
873
|
return TuiDocDocumentationModule;
|
|
847
874
|
}());
|
|
848
875
|
|
|
876
|
+
var TUI_DOC_CODE_ACTIONS = new InjectionToken('Code actions for the opened tab with code example', {
|
|
877
|
+
factory: function () { return ''; },
|
|
878
|
+
});
|
|
879
|
+
|
|
849
880
|
var TUI_DOC_CODE_EDITOR = new InjectionToken('Contains service for opening online IDE e.g. Stackblitz');
|
|
850
881
|
|
|
851
882
|
var TUI_DOC_EXAMPLE_CONTENT_PROCESSOR = new InjectionToken('Processes content in example', { factory: function () { return identity; } });
|
|
852
883
|
|
|
884
|
+
/**
|
|
885
|
+
* @deprecated: use {@link tuiRawLoadRecord} instead
|
|
886
|
+
*/
|
|
887
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
853
888
|
function rawLoadRecord(example) {
|
|
854
889
|
return __awaiter(this, void 0, void 0, function () {
|
|
855
890
|
var processedContent, _a, _b, _c, key, content, _d, _e, e_1_1;
|
|
@@ -892,11 +927,12 @@ function rawLoadRecord(example) {
|
|
|
892
927
|
});
|
|
893
928
|
});
|
|
894
929
|
}
|
|
930
|
+
var tuiRawLoadRecord = rawLoadRecord;
|
|
895
931
|
|
|
896
932
|
// Ambient type cannot be used without dynamic https://github.com/angular/angular/issues/23395
|
|
897
933
|
// @dynamic
|
|
898
934
|
var TuiDocExampleComponent = /** @class */ (function () {
|
|
899
|
-
function TuiDocExampleComponent(id, clipboard, notifications, location, copyTexts$, texts, codeEditor, processContent, isCypress) {
|
|
935
|
+
function TuiDocExampleComponent(id, clipboard, notifications, location, copyTexts$, texts, codeEditor, processContent, isCypress, codeActions) {
|
|
900
936
|
var _this = this;
|
|
901
937
|
this.id = id;
|
|
902
938
|
this.clipboard = clipboard;
|
|
@@ -907,6 +943,7 @@ var TuiDocExampleComponent = /** @class */ (function () {
|
|
|
907
943
|
this.codeEditor = codeEditor;
|
|
908
944
|
this.processContent = processContent;
|
|
909
945
|
this.isCypress = isCypress;
|
|
946
|
+
this.codeActions = codeActions;
|
|
910
947
|
this.rawLoader$$ = new BehaviorSubject({});
|
|
911
948
|
this.heading = '';
|
|
912
949
|
this.description = '';
|
|
@@ -957,7 +994,8 @@ var TuiDocExampleComponent = /** @class */ (function () {
|
|
|
957
994
|
{ type: Array, decorators: [{ type: Inject, args: [TUI_DOC_EXAMPLE_TEXTS,] }] },
|
|
958
995
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [TUI_DOC_CODE_EDITOR,] }] },
|
|
959
996
|
{ type: undefined, decorators: [{ type: Inject, args: [TUI_DOC_EXAMPLE_CONTENT_PROCESSOR,] }] },
|
|
960
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_CYPRESS,] }] }
|
|
997
|
+
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_CYPRESS,] }] },
|
|
998
|
+
{ type: Array, decorators: [{ type: Inject, args: [TUI_DOC_CODE_ACTIONS,] }] }
|
|
961
999
|
]; };
|
|
962
1000
|
__decorate([
|
|
963
1001
|
Input()
|
|
@@ -974,9 +1012,9 @@ var TuiDocExampleComponent = /** @class */ (function () {
|
|
|
974
1012
|
TuiDocExampleComponent = __decorate([
|
|
975
1013
|
Component({
|
|
976
1014
|
selector: 'tui-doc-example',
|
|
977
|
-
template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n polymorpheus-outlet\n [content]=\"heading | tuiDocExampleCapitalize\"\n ></span>\n <button\n *ngIf=\"id\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconLinkLarge\"\n appearance=\"icon\"\n class=\"t-link-icon\"\n [title]=\"copy$ | async\"\n (click)=\"copyExampleLink()\"\n ></button>\n</h3>\n<h4\n *ngIf=\"description\"\n polymorpheus-outlet\n class=\"t-description\"\n [content]=\"description | tuiDocExampleCapitalize\"\n></h4>\n\n<div\n *ngIf=\"processor$ | async as files\"\n class=\"t-example\"\n>\n <ng-container *ngIf=\"files | tuiDocExampleGetTabs: defaultTab as tabs\">\n <div class=\"t-tabs-wrapper\">\n <tui-tabs-with-more\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabs\">\n <button\n *tuiTab\n tuiTab\n >\n {{tab}}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"codeEditor\"\n tuiButton\n appearance=\"flat\"\n size=\"s\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n Edit on {{codeEditor.name}}\n </button>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isCypress\"\n [class.t-content_visible]=\"activeItemIndex === index\"\n >\n <ng-container
|
|
1015
|
+
template: "<h3\n *ngIf=\"heading\"\n class=\"t-title\"\n>\n <span\n polymorpheus-outlet\n [content]=\"heading | tuiDocExampleCapitalize\"\n ></span>\n <button\n *ngIf=\"id\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconLinkLarge\"\n appearance=\"icon\"\n class=\"t-link-icon\"\n [title]=\"copy$ | async\"\n (click)=\"copyExampleLink()\"\n ></button>\n</h3>\n<h4\n *ngIf=\"description\"\n polymorpheus-outlet\n class=\"t-description\"\n [content]=\"description | tuiDocExampleCapitalize\"\n></h4>\n\n<div\n *ngIf=\"processor$ | async as files\"\n class=\"t-example\"\n>\n <ng-container *ngIf=\"files | tuiDocExampleGetTabs: defaultTab as tabs\">\n <div class=\"t-tabs-wrapper\">\n <tui-tabs-with-more\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabs\">\n <button\n *tuiTab\n tuiTab\n >\n {{ tab }}\n </button>\n </ng-container>\n </tui-tabs-with-more>\n\n <button\n *ngIf=\"codeEditor\"\n tuiButton\n appearance=\"flat\"\n size=\"s\"\n [showLoader]=\"!!(loading$ | async)\"\n (click)=\"edit(files)\"\n >\n Edit on {{ codeEditor.name }}\n </button>\n </div>\n\n <div\n *ngFor=\"let tab of tabs; let index = index\"\n class=\"t-content\"\n [class.t-content_animated]=\"!isCypress\"\n [class.t-content_visible]=\"activeItemIndex === index\"\n >\n <ng-container\n *ngIf=\"index === defaultTabIndex; else anotherTab\"\n [ngTemplateOutlet]=\"preview\"\n ></ng-container>\n <ng-template #anotherTab>\n <ng-container\n [ngTemplateOutlet]=\"codeSection\"\n [ngTemplateOutletContext]=\"{$implicit: files[tabs[activeItemIndex]] || ''}\"\n ></ng-container>\n </ng-template>\n </div>\n </ng-container>\n</div>\n\n<ng-template #preview>\n <div\n automation-id=\"tui-doc-example\"\n class=\"t-demo\"\n >\n <ng-content></ng-content>\n </div>\n</ng-template>\n\n<ng-template\n #codeSection\n let-code\n>\n <section class=\"t-code-actions\">\n <ng-container *ngFor=\"let action of codeActions\">\n <div\n polymorpheus-outlet\n [content]=\"action\"\n [context]=\"{$implicit: code}\"\n ></div>\n </ng-container>\n <tui-doc-copy [cdkCopyToClipboard]=\"code\"></tui-doc-copy>\n </section>\n <tui-doc-code [code]=\"code\"></tui-doc-code>\n</ng-template>\n",
|
|
978
1016
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
979
|
-
styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host :host-context(tui-root._mobile){padding-top:2rem}.t-title{font:var(--tui-font-heading-5);margin:0 0 .5rem}:host-context(tui-root._mobile) .t-title{font:var(--tui-font-heading-6)}.t-description{font:var(--tui-font-text-m);font-weight:400;margin:0}.t-example{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}:host-context(tui-root._mobile) .t-tabs-wrapper{padding:0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.t-demo::-webkit-scrollbar,.t-demo::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo::-webkit-scrollbar{background-color:transparent}.t-demo::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host-context(tui-root._mobile) .t-demo{padding:1rem}.t-
|
|
1017
|
+
styles: [":host{position:relative;display:block;padding-top:3.5rem;clear:right}:host :host-context(tui-root._mobile){padding-top:2rem}.t-title{font:var(--tui-font-heading-5);margin:0 0 .5rem}:host-context(tui-root._mobile) .t-title{font:var(--tui-font-heading-6)}.t-description{font:var(--tui-font-text-m);font-weight:400;margin:0}.t-example{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem rgba(0,0,0,.1)}:host-context(tui-root._mobile) .t-example{margin-top:.75rem}.t-tabs-wrapper{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}:host-context(tui-root._mobile) .t-tabs-wrapper{padding:0 1rem}.t-tabs{flex-grow:1}.t-demo{padding:2rem;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){.t-demo::-webkit-scrollbar,.t-demo::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}.t-demo::-webkit-scrollbar{background-color:transparent}.t-demo::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host-context(tui-root._mobile) .t-demo{padding:1rem}.t-code-actions{position:absolute;top:4.375rem;right:1rem;display:flex;justify-content:flex-end;align-items:center}.t-code-actions>*{margin-left:.5rem}.t-link-icon{margin-left:.3rem;vertical-align:baseline}.t-content{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated{transition:opacity .3s ease-in-out}.t-content_visible{height:auto;visibility:visible;opacity:1}"]
|
|
980
1018
|
}),
|
|
981
1019
|
__param(0, Attribute('id')),
|
|
982
1020
|
__param(1, Inject(Clipboard)),
|
|
@@ -987,7 +1025,8 @@ var TuiDocExampleComponent = /** @class */ (function () {
|
|
|
987
1025
|
__param(6, Optional()),
|
|
988
1026
|
__param(6, Inject(TUI_DOC_CODE_EDITOR)),
|
|
989
1027
|
__param(7, Inject(TUI_DOC_EXAMPLE_CONTENT_PROCESSOR)),
|
|
990
|
-
__param(8, Inject(TUI_IS_CYPRESS))
|
|
1028
|
+
__param(8, Inject(TUI_IS_CYPRESS)),
|
|
1029
|
+
__param(9, Inject(TUI_DOC_CODE_ACTIONS))
|
|
991
1030
|
], TuiDocExampleComponent);
|
|
992
1031
|
return TuiDocExampleComponent;
|
|
993
1032
|
}());
|
|
@@ -1096,16 +1135,19 @@ var TuiDocMainComponent = /** @class */ (function () {
|
|
|
1096
1135
|
return TuiDocMainComponent;
|
|
1097
1136
|
}());
|
|
1098
1137
|
|
|
1138
|
+
var TUI_DOC_PAGE_LOADED = new InjectionToken('[TUI_DOC_PAGE_LOADED] Stream that emits if loading of page is over (for example, to begin scrollIntoView)', { factory: function () { return defer(function () { return timer(200).pipe(switchMapTo(of(true))); }); } });
|
|
1139
|
+
|
|
1099
1140
|
/**
|
|
1100
1141
|
* @deprecated: use {@link TuiScrollIntoViewLinkDirective}
|
|
1101
1142
|
* TODO: remove in v3.0
|
|
1102
1143
|
*/
|
|
1103
1144
|
var ScrollIntoViewDirective = /** @class */ (function () {
|
|
1104
|
-
function ScrollIntoViewDirective(destroy$, _a) {
|
|
1145
|
+
function ScrollIntoViewDirective(destroy$, _a, readyToScroll$) {
|
|
1105
1146
|
var nativeElement = _a.nativeElement;
|
|
1106
|
-
this.
|
|
1107
|
-
this.scroll$
|
|
1108
|
-
|
|
1147
|
+
this.readyToScroll$ = readyToScroll$;
|
|
1148
|
+
this.scroll$ = new ReplaySubject(1);
|
|
1149
|
+
this.readyToScroll$
|
|
1150
|
+
.pipe(filter(Boolean), switchMapTo(this.scroll$), debounceTime(750), filter(function (shallWe) { return shallWe && !!getElementObscurers(nativeElement); }), takeUntil(destroy$))
|
|
1109
1151
|
.subscribe(function () {
|
|
1110
1152
|
nativeElement.scrollIntoView();
|
|
1111
1153
|
});
|
|
@@ -1119,7 +1161,8 @@ var ScrollIntoViewDirective = /** @class */ (function () {
|
|
|
1119
1161
|
});
|
|
1120
1162
|
ScrollIntoViewDirective.ctorParameters = function () { return [
|
|
1121
1163
|
{ type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
1122
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
1164
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
1165
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_DOC_PAGE_LOADED,] }] }
|
|
1123
1166
|
]; };
|
|
1124
1167
|
__decorate([
|
|
1125
1168
|
Input()
|
|
@@ -1132,7 +1175,8 @@ var ScrollIntoViewDirective = /** @class */ (function () {
|
|
|
1132
1175
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1133
1176
|
,
|
|
1134
1177
|
__param(0, Inject(TuiDestroyService)),
|
|
1135
|
-
__param(1, Inject(ElementRef))
|
|
1178
|
+
__param(1, Inject(ElementRef)),
|
|
1179
|
+
__param(2, Inject(TUI_DOC_PAGE_LOADED))
|
|
1136
1180
|
], ScrollIntoViewDirective);
|
|
1137
1181
|
return ScrollIntoViewDirective;
|
|
1138
1182
|
}());
|
|
@@ -1179,6 +1223,8 @@ var TuiScrollIntoViewLinkModule = /** @class */ (function () {
|
|
|
1179
1223
|
return TuiScrollIntoViewLinkModule;
|
|
1180
1224
|
}());
|
|
1181
1225
|
|
|
1226
|
+
var TUI_DOC_SCROLL_BEHAVIOR = new InjectionToken('[TUI_DOC_SCROLL_BEHAVIOR] Defines the transition animation for scroll', { factory: function () { return 'smooth'; } });
|
|
1227
|
+
|
|
1182
1228
|
var MAP = {
|
|
1183
1229
|
а: 'f',
|
|
1184
1230
|
б: ',',
|
|
@@ -1214,10 +1260,12 @@ var MAP = {
|
|
|
1214
1260
|
я: 'z',
|
|
1215
1261
|
};
|
|
1216
1262
|
/**
|
|
1263
|
+
* @deprecated: use {@link tuiTransliterateKeyboardLayout} instead
|
|
1217
1264
|
* Translates text mistakenly typed in the Russian layout into English
|
|
1218
1265
|
* @param string string with Russian layout characters
|
|
1219
1266
|
* @return string with English layout characters
|
|
1220
1267
|
*/
|
|
1268
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1221
1269
|
function transliterateKeyboardLayout(string) {
|
|
1222
1270
|
var newStr = '';
|
|
1223
1271
|
for (var i = 0; i < string.length; i++) {
|
|
@@ -1225,6 +1273,7 @@ function transliterateKeyboardLayout(string) {
|
|
|
1225
1273
|
}
|
|
1226
1274
|
return newStr;
|
|
1227
1275
|
}
|
|
1276
|
+
var tuiTransliterateKeyboardLayout = transliterateKeyboardLayout;
|
|
1228
1277
|
|
|
1229
1278
|
var TUI_DOC_PAGES = new InjectionToken('Documentation pages', {
|
|
1230
1279
|
factory: function () { return []; },
|
|
@@ -1255,6 +1304,7 @@ var NAVIGATION_PROVIDERS = [
|
|
|
1255
1304
|
useFactory: itemsProviderFactory,
|
|
1256
1305
|
},
|
|
1257
1306
|
];
|
|
1307
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1258
1308
|
function titleProviderFactory(router, activatedRoute, titlePrefix, destroy$) {
|
|
1259
1309
|
return router.events.pipe(filter(function (event) { return event instanceof NavigationEnd; }), map(function () { return activatedRoute.firstChild; }), filter(isPresent), mergeMap(function (_a) {
|
|
1260
1310
|
var data = _a.data;
|
|
@@ -1264,6 +1314,7 @@ function titleProviderFactory(router, activatedRoute, titlePrefix, destroy$) {
|
|
|
1264
1314
|
return titlePrefix + title;
|
|
1265
1315
|
}), takeUntil(destroy$));
|
|
1266
1316
|
}
|
|
1317
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1267
1318
|
function labelsProviderFactory(pages) {
|
|
1268
1319
|
return pages
|
|
1269
1320
|
.map(function (_a) {
|
|
@@ -1273,6 +1324,7 @@ function labelsProviderFactory(pages) {
|
|
|
1273
1324
|
.filter(isPresent)
|
|
1274
1325
|
.filter(function (item, index, array) { return array.indexOf(item) === index; });
|
|
1275
1326
|
}
|
|
1327
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1276
1328
|
function itemsProviderFactory(pages) {
|
|
1277
1329
|
var labels = labelsProviderFactory(pages);
|
|
1278
1330
|
return __spread(labels.map(function (label) { return pages.filter(function (_a) {
|
|
@@ -1283,10 +1335,9 @@ function itemsProviderFactory(pages) {
|
|
|
1283
1335
|
]);
|
|
1284
1336
|
}
|
|
1285
1337
|
|
|
1286
|
-
var SCROLL_INTO_VIEW_DELAY = 200;
|
|
1287
1338
|
// @dynamic
|
|
1288
1339
|
var TuiDocNavigationComponent = /** @class */ (function () {
|
|
1289
|
-
function TuiDocNavigationComponent(changeDetectorRef, titleService, title$, documentRef, mode, sidebar, labels, items, searchText, router, activatedRoute) {
|
|
1340
|
+
function TuiDocNavigationComponent(changeDetectorRef, titleService, title$, documentRef, mode, sidebar, labels, items, searchText, router, activatedRoute, destroy$, readyToScroll$, scrollBehavior) {
|
|
1290
1341
|
var _this = this;
|
|
1291
1342
|
this.documentRef = documentRef;
|
|
1292
1343
|
this.mode = mode;
|
|
@@ -1296,6 +1347,9 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1296
1347
|
this.searchText = searchText;
|
|
1297
1348
|
this.router = router;
|
|
1298
1349
|
this.activatedRoute = activatedRoute;
|
|
1350
|
+
this.destroy$ = destroy$;
|
|
1351
|
+
this.readyToScroll$ = readyToScroll$;
|
|
1352
|
+
this.scrollBehavior = scrollBehavior;
|
|
1299
1353
|
this.menuOpen = false;
|
|
1300
1354
|
this.search = '';
|
|
1301
1355
|
this.open = false;
|
|
@@ -1380,9 +1434,9 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1380
1434
|
};
|
|
1381
1435
|
TuiDocNavigationComponent.prototype.handleAnchorLink = function (hash) {
|
|
1382
1436
|
var _this = this;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1437
|
+
this.readyToScroll$
|
|
1438
|
+
.pipe(filter(Boolean), take(1), takeUntil(this.destroy$))
|
|
1439
|
+
.subscribe(function () { return _this.navigateToAnchorLink(hash); });
|
|
1386
1440
|
};
|
|
1387
1441
|
TuiDocNavigationComponent.prototype.openActivePageGroup = function () {
|
|
1388
1442
|
var _this = this;
|
|
@@ -1413,7 +1467,7 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1413
1467
|
element.scrollIntoView({
|
|
1414
1468
|
block: 'start',
|
|
1415
1469
|
inline: 'nearest',
|
|
1416
|
-
behavior:
|
|
1470
|
+
behavior: this.scrollBehavior,
|
|
1417
1471
|
});
|
|
1418
1472
|
};
|
|
1419
1473
|
TuiDocNavigationComponent.ctorParameters = function () { return [
|
|
@@ -1427,7 +1481,10 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1427
1481
|
{ type: undefined, decorators: [{ type: Inject, args: [NAVIGATION_ITEMS,] }] },
|
|
1428
1482
|
{ type: String, decorators: [{ type: Inject, args: [TUI_DOC_SEARCH_TEXT,] }] },
|
|
1429
1483
|
{ type: Router, decorators: [{ type: Inject, args: [Router,] }] },
|
|
1430
|
-
{ type: ActivatedRoute, decorators: [{ type: Inject, args: [ActivatedRoute,] }] }
|
|
1484
|
+
{ type: ActivatedRoute, decorators: [{ type: Inject, args: [ActivatedRoute,] }] },
|
|
1485
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
1486
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_DOC_PAGE_LOADED,] }] },
|
|
1487
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_DOC_SCROLL_BEHAVIOR,] }] }
|
|
1431
1488
|
]; };
|
|
1432
1489
|
__decorate([
|
|
1433
1490
|
HostBinding('class._open')
|
|
@@ -1441,7 +1498,7 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1441
1498
|
TuiDocNavigationComponent = __decorate([
|
|
1442
1499
|
Component({
|
|
1443
1500
|
selector: 'tui-doc-navigation',
|
|
1444
|
-
template: "<tui-hosted-dropdown\n *tuiLet=\"filteredItems as filtered\"\n tuiAutoFocus\n tuiDropdownLimitWidth=\"fixed\"\n class=\"t-input\"\n [autoFocus]=\"!!sidebar\"\n [content]=\"dropdown\"\n [canOpen]=\"canOpen\"\n [(open)]=\"open\"\n>\n <tui-primitive-textfield\n iconAlign=\"left\"\n tuiTextfieldSize=\"m\"\n iconContent=\"tuiIconSearch\"\n [pseudoFocused]=\"open || null\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"search\"\n (valueChange)=\"onSearchChange($event)\"\n >\n {{ searchText }}\n </tui-primitive-textfield>\n <ng-template\n #dropdown\n let-activeZone\n >\n <tui-data-list>\n <tui-opt-group\n *ngFor=\"let group of filtered; let index = index\"\n [label]=\"labels[index] || ''\"\n >\n <a\n *ngFor=\"let item of group\"\n tuiOption\n [routerLink]=\"item.route\"\n (click)=\"onClick()\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-template>\n</tui-hosted-dropdown>\n\n<nav class=\"t-navigation\">\n <tui-scrollbar\n class=\"t-scrollbar\"\n [tuiMode]=\"mode$ | async\"\n >\n <tui-accordion\n [closeOthers]=\"false\"\n [rounded]=\"false\"\n >\n <tui-accordion-item\n *ngFor=\"let label of labels; index as index\"\n size=\"s\"\n [borders]=\"null\"\n [(open)]=\"!!openPagesArr[index]\"\n >\n <span class=\"t-label\">\n <strong>{{ label }}</strong>\n </span>\n <ng-template tuiAccordionItemContent>\n <div class=\"t-section\">\n <ng-container\n *ngFor=\"let item of items[index]; index as subIndex\"\n
|
|
1501
|
+
template: "<tui-hosted-dropdown\n *tuiLet=\"filteredItems as filtered\"\n tuiAutoFocus\n tuiDropdownLimitWidth=\"fixed\"\n class=\"t-input\"\n [autoFocus]=\"!!sidebar\"\n [content]=\"dropdown\"\n [canOpen]=\"canOpen\"\n [(open)]=\"open\"\n>\n <tui-primitive-textfield\n iconAlign=\"left\"\n tuiTextfieldSize=\"m\"\n iconContent=\"tuiIconSearch\"\n [pseudoFocused]=\"open || null\"\n [tuiTextfieldCleaner]=\"true\"\n [tuiTextfieldLabelOutside]=\"true\"\n [value]=\"search\"\n (valueChange)=\"onSearchChange($event)\"\n >\n {{ searchText }}\n </tui-primitive-textfield>\n <ng-template\n #dropdown\n let-activeZone\n >\n <tui-data-list>\n <tui-opt-group\n *ngFor=\"let group of filtered; let index = index\"\n [label]=\"labels[index] || ''\"\n >\n <a\n *ngFor=\"let item of group\"\n tuiOption\n [routerLink]=\"item.route\"\n (click)=\"onClick()\"\n >\n {{ item.title }}\n </a>\n </tui-opt-group>\n </tui-data-list>\n </ng-template>\n</tui-hosted-dropdown>\n\n<nav class=\"t-navigation\">\n <tui-scrollbar\n class=\"t-scrollbar\"\n [tuiMode]=\"mode$ | async\"\n >\n <tui-accordion\n [closeOthers]=\"false\"\n [rounded]=\"false\"\n >\n <tui-accordion-item\n *ngFor=\"let label of labels; index as index\"\n size=\"s\"\n [borders]=\"null\"\n [(open)]=\"!!openPagesArr[index]\"\n >\n <span class=\"t-label\">\n <strong>{{ label }}</strong>\n </span>\n <ng-template tuiAccordionItemContent>\n <div class=\"t-section\">\n <ng-container\n *ngFor=\"let item of items[index]; index as subIndex\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: index * 100 + subIndex}\"\n ></ng-container>\n </div>\n </ng-template>\n </tui-accordion-item>\n </tui-accordion>\n <div class=\"t-items-container\">\n <ng-container\n *ngFor=\"let item of itemsWithoutSections; let index = index\"\n [ngTemplateOutlet]=\"pages\"\n [ngTemplateOutletContext]=\"{item: item, index: items.length - 1 + index}\"\n ></ng-container>\n </div>\n\n <ng-template\n #pages\n let-item=\"item\"\n let-index=\"index\"\n >\n <a\n *ngIf=\"!item.subPages; else subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink\"\n [routerLink]=\"item.route\"\n [scrollIntoView]=\"isActive(item.route)\"\n (click)=\"closeMenu()\"\n >\n {{ item.title }}\n </a>\n <ng-template #subPages>\n <div\n routerLinkActive\n class=\"t-subsection\"\n [routerLinkActiveOptions]=\"{exact: false}\"\n >\n <button\n *ngIf=\"item.subPages\"\n tuiLink\n type=\"button\"\n class=\"t-sublink t-sublink_subsection\"\n (click)=\"onGroupClick(index)\"\n >\n <tui-svg\n src=\"tuiIconChevronRight\"\n class=\"t-chevron\"\n [class.t-chevron_active]=\"!!openPagesGroupsArr[index]\"\n ></tui-svg>\n {{ item.title }}\n </button>\n <tui-expand\n class=\"t-expand\"\n [expanded]=\"!!openPagesGroupsArr[index]\"\n >\n <div class=\"t-section t-section_bordered\">\n <a\n *ngFor=\"let subPage of item.subPages\"\n tuiLink\n routerLinkActive=\"t-sublink_active\"\n class=\"t-sublink t-sublink_small\"\n [routerLink]=\"subPage.route\"\n [scrollIntoView]=\"isActive(subPage.route)\"\n (click)=\"closeMenu()\"\n >\n {{ subPage.title }}\n </a>\n </div>\n </tui-expand>\n </div>\n </ng-template>\n </ng-template>\n </tui-scrollbar>\n</nav>\n\n<ng-content></ng-content>\n",
|
|
1445
1502
|
providers: NAVIGATION_PROVIDERS,
|
|
1446
1503
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1447
1504
|
styles: [":host{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input{display:block;margin:1.25rem}.t-navigation{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar{width:100%;scroll-behavior:smooth}.t-items-container{display:flex;flex-direction:column;padding:0 1rem}.t-label{margin-left:.5rem}.t-expand{margin-left:.25rem}.t-section{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection{margin-left:.5rem}.t-sublink{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:0 0;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection{margin-left:0;line-height:1.6rem}.t-sublink_active{color:var(--tui-text-01)}.t-chevron{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active{transform:rotate(90deg)}"]
|
|
@@ -1457,7 +1514,10 @@ var TuiDocNavigationComponent = /** @class */ (function () {
|
|
|
1457
1514
|
__param(7, Inject(NAVIGATION_ITEMS)),
|
|
1458
1515
|
__param(8, Inject(TUI_DOC_SEARCH_TEXT)),
|
|
1459
1516
|
__param(9, Inject(Router)),
|
|
1460
|
-
__param(10, Inject(ActivatedRoute))
|
|
1517
|
+
__param(10, Inject(ActivatedRoute)),
|
|
1518
|
+
__param(11, Inject(TuiDestroyService)),
|
|
1519
|
+
__param(12, Inject(TUI_DOC_PAGE_LOADED)),
|
|
1520
|
+
__param(13, Inject(TUI_DOC_SCROLL_BEHAVIOR))
|
|
1461
1521
|
], TuiDocNavigationComponent);
|
|
1462
1522
|
return TuiDocNavigationComponent;
|
|
1463
1523
|
}());
|
|
@@ -1598,6 +1658,7 @@ var PAGE_PROVIDERS = [
|
|
|
1598
1658
|
useFactory: seeAlsoProviderFactory,
|
|
1599
1659
|
},
|
|
1600
1660
|
];
|
|
1661
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1601
1662
|
function seeAlsoProviderFactory(_a, seeAlsoGroups) {
|
|
1602
1663
|
var nativeElement = _a.nativeElement;
|
|
1603
1664
|
var currentHeader = nativeElement.getAttribute('header');
|
|
@@ -1677,7 +1738,7 @@ var TuiDocPageComponent = /** @class */ (function () {
|
|
|
1677
1738
|
TuiDocPageComponent = __decorate([
|
|
1678
1739
|
Component({
|
|
1679
1740
|
selector: 'tui-doc-page',
|
|
1680
|
-
template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"deprecated !== null\"\n value=\"deprecated\"\n status=\"custom\"\n class=\"t-tag t-tag_deprecated\"\n ></tui-tag>\n <tui-tag\n *ngIf=\"package\"\n status=\"custom\"\n class=\"t-tag t-tag_package\"\n [value]=\"package\"\n [autoColor]=\"true\"\n ></tui-tag>\n </h1>\n <tui-tabs-with-more\n *ngIf=\"tabConnectors.length\"\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container
|
|
1741
|
+
template: "<header class=\"t-header\">\n <h1 class=\"t-title\">\n {{ header }}\n <tui-tag\n *ngIf=\"deprecated !== null\"\n value=\"deprecated\"\n status=\"custom\"\n class=\"t-tag t-tag_deprecated\"\n ></tui-tag>\n <tui-tag\n *ngIf=\"package\"\n status=\"custom\"\n class=\"t-tag t-tag_package\"\n [value]=\"package\"\n [autoColor]=\"true\"\n ></tui-tag>\n </h1>\n <tui-tabs-with-more\n *ngIf=\"tabConnectors.length\"\n class=\"t-tabs\"\n [(activeItemIndex)]=\"activeItemIndex\"\n >\n <ng-container *ngFor=\"let tab of tabConnectors; first as first; index as index\">\n <ng-container *ngIf=\"first; else dynamicTab\">\n <a\n *tuiTab\n tuiTab\n routerLink=\"./\"\n routerLinkActive\n [routerLinkActiveOptions]=\"{exact: true}\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-container>\n <ng-template #dynamicTab>\n <a\n *tuiTab\n tuiTab\n routerLinkActive\n [routerLink]=\"getRouterLink(tab.pageTab || defaultTabs[index])\"\n >\n {{ tab.pageTab || defaultTabs[index] }}\n </a>\n </ng-template>\n </ng-container>\n </tui-tabs-with-more>\n <tui-doc-source-code\n class=\"t-source-code\"\n [header]=\"header\"\n [package]=\"package\"\n [type]=\"type\"\n [path]=\"path\"\n ></tui-doc-source-code>\n</header>\n<div class=\"t-content\">\n <ng-content></ng-content>\n <tui-doc-see-also\n *ngIf=\"showSeeAlso\"\n class=\"t-see-also\"\n [seeAlso]=\"seeAlso\"\n ></tui-doc-see-also>\n <ng-container *ngFor=\"let tab of tabConnectors; index as index\">\n <ng-container\n *ngIf=\"index === activeItemIndex\"\n [ngTemplateOutlet]=\"tab.template\"\n ></ng-container>\n </ng-container>\n</div>\n",
|
|
1681
1742
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1682
1743
|
providers: PAGE_PROVIDERS,
|
|
1683
1744
|
styles: [":host{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-header{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title{min-width:100%;font-size:inherit;margin:0}.t-tag{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated{background-color:var(--tui-error-fill)}.t-tag.t-tag_package{color:#000}.t-tabs{flex:1;margin:1.125rem .3125rem 0 0}:host-context(tui-root._mobile) .t-tabs{margin-top:.25rem}.t-content{padding:2rem 0;margin:0 min(10vw,8.75rem)}:host-context(tui-root._mobile) .t-content{padding:2rem 1.25rem;margin:0}.t-see-also{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}:host-context(tui-root._mobile) .t-see-also{float:none;width:100%;margin:0 0 1.5rem}.t-source-code{align-self:flex-end;line-height:2.75rem}"]
|
|
@@ -1718,7 +1779,7 @@ var TuiDocSeeAlsoComponent = /** @class */ (function () {
|
|
|
1718
1779
|
TuiDocSeeAlsoComponent = __decorate([
|
|
1719
1780
|
Component({
|
|
1720
1781
|
selector: 'tui-doc-see-also',
|
|
1721
|
-
template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{', '}}</ng-container>\n</ng-container>\n",
|
|
1782
|
+
template: "<h5 class=\"header\">{{ text }}</h5>\n<ng-container *ngFor=\"let item of seeAlso; last as last\">\n <a\n tuiLink\n [routerLink]=\"getRouterLink(item)\"\n >\n {{ item }}\n </a>\n <ng-container *ngIf=\"!last\">{{ ', ' }}</ng-container>\n</ng-container>\n",
|
|
1722
1783
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1723
1784
|
styles: [":host{display:block}.header{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"]
|
|
1724
1785
|
}),
|
|
@@ -1898,8 +1959,10 @@ var TuiAddonDocModule = /** @class */ (function () {
|
|
|
1898
1959
|
}());
|
|
1899
1960
|
|
|
1900
1961
|
/**
|
|
1962
|
+
* @deprecated: use {@link tuiGenerateRoutes} instead
|
|
1901
1963
|
* Generates typical page routing structure
|
|
1902
1964
|
*/
|
|
1965
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1903
1966
|
function generateRoutes(type) {
|
|
1904
1967
|
return [
|
|
1905
1968
|
{
|
|
@@ -1914,6 +1977,7 @@ function generateRoutes(type) {
|
|
|
1914
1977
|
},
|
|
1915
1978
|
];
|
|
1916
1979
|
}
|
|
1980
|
+
var tuiGenerateRoutes = generateRoutes;
|
|
1917
1981
|
|
|
1918
1982
|
/**
|
|
1919
1983
|
* Public API Surface of @taiga-ui/addon-doc
|
|
@@ -1923,5 +1987,5 @@ function generateRoutes(type) {
|
|
|
1923
1987
|
* Generated bundle index. Do not edit.
|
|
1924
1988
|
*/
|
|
1925
1989
|
|
|
1926
|
-
export { DEMO_TEXTS, DOC_TEXTS, EXAMPLE_TEXTS, ScrollIntoViewDirective, ScrollIntoViewModule, TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, TUI_DOC_DEMO_TEXTS, TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXAMPLE_CONTENT_PROCESSOR, TUI_DOC_EXAMPLE_TEXTS, TUI_DOC_LOGO, TUI_DOC_MENU_TEXT, TUI_DOC_PAGES, TUI_DOC_RUSSIAN, TUI_DOC_SEARCH_TEXT, TUI_DOC_SEE_ALSO, TUI_DOC_SEE_ALSO_TEXT, TUI_DOC_SOURCE_CODE, TUI_DOC_SOURCE_CODE_TEXT, TUI_DOC_TITLE, TUI_EXAMPLE_PRIMARY_FILE_NAME, TuiAddonDocModule, TuiDocCodeComponent, TuiDocCodeModule, TuiDocCopyComponent, TuiDocCopyModule, TuiDocDemoComponent, TuiDocDemoModule, TuiDocDocumentationComponent, TuiDocDocumentationModule, TuiDocDocumentationPropertyConnectorDirective, TuiDocExampleComponent, TuiDocExampleModule, TuiDocMainComponent, TuiDocMainModule, TuiDocNavigationComponent, TuiDocNavigationModule, TuiDocPageComponent, TuiDocPageModule, TuiDocPageTabConnectorDirective, TuiScrollIntoViewLinkDirective, TuiScrollIntoViewLinkModule, coerceValue, generateRoutes, rawLoad, rawLoadRecord, tryParseMarkdownCodeBlock, TuiInputOpacityModule as ɵa, TuiInputOpacityDirective as ɵb, TuiDocExampleGetTabsPipe as ɵc, TuiDocExampleCapitalizePipe as ɵd, TuiDocHeaderModule as ɵe, NAVIGATION_TITLE as ɵf, NAVIGATION_LABELS as ɵg, NAVIGATION_ITEMS as ɵh, NAVIGATION_PROVIDERS as ɵi, titleProviderFactory as ɵj, labelsProviderFactory as ɵk, itemsProviderFactory as ɵl, TuiDocHeaderComponent as ɵm, PAGE_SEE_ALSO as ɵn, PAGE_PROVIDERS as ɵo, seeAlsoProviderFactory as ɵp, TuiDocSeeAlsoModule as ɵq, TuiDocSeeAlsoComponent as ɵr, TuiDocSourceCodeModule as ɵs, TuiDocSourceCodeComponent as ɵt };
|
|
1990
|
+
export { DEMO_TEXTS, DOC_TEXTS, EXAMPLE_TEXTS, ScrollIntoViewDirective, ScrollIntoViewModule, TUI_DOC_CODE_ACTIONS, TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, TUI_DOC_DEMO_TEXTS, TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXAMPLE_CONTENT_PROCESSOR, TUI_DOC_EXAMPLE_TEXTS, TUI_DOC_LOGO, TUI_DOC_MENU_TEXT, TUI_DOC_PAGES, TUI_DOC_PAGE_LOADED, TUI_DOC_RUSSIAN, TUI_DOC_SCROLL_BEHAVIOR, TUI_DOC_SEARCH_TEXT, TUI_DOC_SEE_ALSO, TUI_DOC_SEE_ALSO_TEXT, TUI_DOC_SOURCE_CODE, TUI_DOC_SOURCE_CODE_TEXT, TUI_DOC_TITLE, TUI_EXAMPLE_PRIMARY_FILE_NAME, TuiAddonDocModule, TuiDocCodeComponent, TuiDocCodeModule, TuiDocCopyComponent, TuiDocCopyModule, TuiDocDemoComponent, TuiDocDemoModule, TuiDocDocumentationComponent, TuiDocDocumentationModule, TuiDocDocumentationPropertyConnectorDirective, TuiDocExampleComponent, TuiDocExampleModule, TuiDocMainComponent, TuiDocMainModule, TuiDocNavigationComponent, TuiDocNavigationModule, TuiDocPageComponent, TuiDocPageModule, TuiDocPageTabConnectorDirective, TuiScrollIntoViewLinkDirective, TuiScrollIntoViewLinkModule, coerceValue, generateRoutes, rawLoad, rawLoadRecord, tryParseMarkdownCodeBlock, tuiCoerceValue, tuiGenerateRoutes, tuiRawLoad, tuiRawLoadRecord, tuiTryParseMarkdownCodeBlock, TuiInputOpacityModule as ɵa, TuiInputOpacityDirective as ɵb, TuiDocExampleGetTabsPipe as ɵc, TuiDocExampleCapitalizePipe as ɵd, TuiDocHeaderModule as ɵe, NAVIGATION_TITLE as ɵf, NAVIGATION_LABELS as ɵg, NAVIGATION_ITEMS as ɵh, NAVIGATION_PROVIDERS as ɵi, titleProviderFactory as ɵj, labelsProviderFactory as ɵk, itemsProviderFactory as ɵl, TuiDocHeaderComponent as ɵm, PAGE_SEE_ALSO as ɵn, PAGE_PROVIDERS as ɵo, seeAlsoProviderFactory as ɵp, TuiDocSeeAlsoModule as ɵq, TuiDocSeeAlsoComponent as ɵr, TuiDocSourceCodeModule as ɵs, TuiDocSourceCodeComponent as ɵt };
|
|
1927
1991
|
//# sourceMappingURL=taiga-ui-addon-doc.js.map
|