@taiga-ui/addon-doc 3.59.0 → 3.60.0-canary.799e7d6
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 +40 -40
- package/bundles/taiga-ui-addon-doc-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js +3 -3
- package/bundles/taiga-ui-addon-doc-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-languages.umd.js +11 -11
- package/bundles/taiga-ui-addon-doc-languages.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-services.umd.js +9 -9
- package/bundles/taiga-ui-addon-doc-services.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-tokens.umd.js +25 -25
- package/bundles/taiga-ui-addon-doc-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-doc-utils.umd.js +74 -74
- package/bundles/taiga-ui-addon-doc-utils.umd.js.map +1 -1
- package/esm2015/components/documentation/pipes/cleaner.pipe.js +3 -3
- package/esm2015/components/documentation/pipes/color.pipe.js +13 -13
- package/esm2015/components/documentation/pipes/inspect.pipe.js +4 -4
- package/esm2015/components/documentation/pipes/opacity.pipe.js +8 -8
- package/esm2015/components/documentation/pipes/optional.pipe.js +3 -3
- package/esm2015/components/documentation/pipes/primitive-polymorpheus-content.pipe.js +2 -2
- package/esm2015/components/documentation/pipes/strip-optional.pipe.js +3 -3
- package/esm2015/components/documentation/pipes/type-reference.pipe.js +3 -3
- package/esm2015/components/example/example-get-tabs.pipe.js +2 -2
- package/esm2015/components/example/example.options.js +2 -2
- package/esm2015/components/main/main.component.js +1 -1
- package/esm2015/components/navigation/navigation.providers.js +4 -4
- package/esm2015/components/page/page.providers.js +4 -4
- package/esm2015/interfaces/page.js +4 -4
- package/esm2015/languages/russian.js +12 -12
- package/esm2015/services/theme-night.options.js +2 -2
- package/esm2015/services/theme-night.service.js +5 -5
- package/esm2015/services/theme.options.js +3 -3
- package/esm2015/services/theme.service.js +3 -3
- package/esm2015/tokens/code-actions.js +2 -2
- package/esm2015/tokens/code-editor.js +2 -2
- package/esm2015/tokens/doc-icons.js +6 -6
- package/esm2015/tokens/i18n.js +16 -16
- package/esm2015/tokens/logo.js +2 -2
- package/esm2015/tokens/pages.js +1 -1
- package/esm2015/tokens/scroll-behavior.js +2 -2
- package/esm2015/tokens/title.js +2 -2
- package/esm2015/utils/coerce-boolean.js +2 -2
- package/esm2015/utils/coerce-value.js +7 -7
- package/esm2015/utils/generate-routes.js +3 -3
- package/esm2015/utils/inspect.js +14 -14
- package/esm2015/utils/is-page-group.js +2 -2
- package/esm2015/utils/parse-code-block.js +3 -3
- package/esm2015/utils/sort-pages.js +3 -3
- package/esm2015/utils/to-flat-map-pages.js +3 -3
- package/esm2015/utils/transliterate-keyboard-layout.js +34 -34
- package/esm2015/utils/type-reference-parser.js +13 -13
- package/fesm2015/taiga-ui-addon-doc-components.js +40 -40
- package/fesm2015/taiga-ui-addon-doc-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-interfaces.js +3 -3
- package/fesm2015/taiga-ui-addon-doc-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-languages.js +11 -11
- package/fesm2015/taiga-ui-addon-doc-languages.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-services.js +9 -9
- package/fesm2015/taiga-ui-addon-doc-services.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-tokens.js +25 -25
- package/fesm2015/taiga-ui-addon-doc-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-doc-utils.js +74 -74
- package/fesm2015/taiga-ui-addon-doc-utils.js.map +1 -1
- package/package.json +38 -38
- package/tokens/pages.d.ts +4 -2
|
@@ -552,23 +552,23 @@ class TuiGetColorPipe {
|
|
|
552
552
|
transform(color) {
|
|
553
553
|
if (color.length === 4) {
|
|
554
554
|
return color
|
|
555
|
-
.split(
|
|
555
|
+
.split('')
|
|
556
556
|
.reduce((result, current) => [...result, current, current], [])
|
|
557
|
-
.join(
|
|
558
|
-
.replace(
|
|
557
|
+
.join('')
|
|
558
|
+
.replace('#', '');
|
|
559
559
|
}
|
|
560
|
-
if (color.startsWith(
|
|
560
|
+
if (color.startsWith('#')) {
|
|
561
561
|
return color;
|
|
562
562
|
}
|
|
563
|
-
if (color ===
|
|
564
|
-
return
|
|
563
|
+
if (color === 'transparent') {
|
|
564
|
+
return '#000000';
|
|
565
565
|
}
|
|
566
566
|
const parsed = color
|
|
567
|
-
.replace(
|
|
568
|
-
.replace(
|
|
569
|
-
.replace(
|
|
570
|
-
.replace(
|
|
571
|
-
.split(
|
|
567
|
+
.replace('rgb(', '')
|
|
568
|
+
.replace('rgba(', '')
|
|
569
|
+
.replace(')', '')
|
|
570
|
+
.replace(' ', '')
|
|
571
|
+
.split(',')
|
|
572
572
|
.map(v => Number.parseInt(v, 10));
|
|
573
573
|
return tuiRgbToHex(...parsed);
|
|
574
574
|
}
|
|
@@ -577,23 +577,23 @@ TuiGetColorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version:
|
|
|
577
577
|
TuiGetColorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiGetColorPipe, name: "tuiGetColorPipe" });
|
|
578
578
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiGetColorPipe, decorators: [{
|
|
579
579
|
type: Pipe,
|
|
580
|
-
args: [{ name:
|
|
580
|
+
args: [{ name: 'tuiGetColorPipe' }]
|
|
581
581
|
}] });
|
|
582
582
|
|
|
583
583
|
class TuiGetOpacityPipe {
|
|
584
584
|
transform(color) {
|
|
585
|
-
if (color.startsWith(
|
|
585
|
+
if (color.startsWith('#') || color.startsWith('rgb(')) {
|
|
586
586
|
return 100;
|
|
587
587
|
}
|
|
588
|
-
if (color ===
|
|
588
|
+
if (color === 'transparent') {
|
|
589
589
|
return 0;
|
|
590
590
|
}
|
|
591
|
-
const lastComma = color.lastIndexOf(
|
|
591
|
+
const lastComma = color.lastIndexOf(',');
|
|
592
592
|
const parsed = color
|
|
593
593
|
.slice(lastComma)
|
|
594
|
-
.replace(
|
|
595
|
-
.replace(
|
|
596
|
-
.replace(
|
|
594
|
+
.replace(')', '')
|
|
595
|
+
.replace(' ', '')
|
|
596
|
+
.replace(',', '');
|
|
597
597
|
return Math.round(Number.parseFloat(parsed) * 100);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
@@ -601,7 +601,7 @@ TuiGetOpacityPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
|
601
601
|
TuiGetOpacityPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiGetOpacityPipe, name: "tuiGetOpacity" });
|
|
602
602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiGetOpacityPipe, decorators: [{
|
|
603
603
|
type: Pipe,
|
|
604
|
-
args: [{ name:
|
|
604
|
+
args: [{ name: 'tuiGetOpacity' }]
|
|
605
605
|
}] });
|
|
606
606
|
|
|
607
607
|
class TuiInputOpacityDirective {
|
|
@@ -635,26 +635,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
635
635
|
|
|
636
636
|
class TuiStripOptionalPipe {
|
|
637
637
|
transform(name) {
|
|
638
|
-
return name.replace(
|
|
638
|
+
return name.replace('?', '');
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
TuiStripOptionalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiStripOptionalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
642
642
|
TuiStripOptionalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiStripOptionalPipe, name: "tuiStripOptionalPipe" });
|
|
643
643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiStripOptionalPipe, decorators: [{
|
|
644
644
|
type: Pipe,
|
|
645
|
-
args: [{ name:
|
|
645
|
+
args: [{ name: 'tuiStripOptionalPipe' }]
|
|
646
646
|
}] });
|
|
647
647
|
|
|
648
648
|
class TuiIsOptionalPipe {
|
|
649
649
|
transform(name) {
|
|
650
|
-
return name.includes(
|
|
650
|
+
return name.includes('?');
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
TuiIsOptionalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiIsOptionalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
654
654
|
TuiIsOptionalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiIsOptionalPipe, name: "tuiIsOptionalPipe" });
|
|
655
655
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiIsOptionalPipe, decorators: [{
|
|
656
656
|
type: Pipe,
|
|
657
|
-
args: [{ name:
|
|
657
|
+
args: [{ name: 'tuiIsOptionalPipe' }]
|
|
658
658
|
}] });
|
|
659
659
|
|
|
660
660
|
class TuiDocTypeReferencePipe {
|
|
@@ -672,14 +672,14 @@ class TuiDocTypeReferencePipe {
|
|
|
672
672
|
reference: (_b = (_a = this.linkHandler) === null || _a === void 0 ? void 0 : _a.call(this, extracted)) !== null && _b !== void 0 ? _b : null,
|
|
673
673
|
});
|
|
674
674
|
})
|
|
675
|
-
.sort((a, b) => { var _a, _b, _c; return (_c = (_a = b.reference) === null || _a === void 0 ? void 0 : _a.localeCompare((_b = a.reference) !== null && _b !== void 0 ? _b :
|
|
675
|
+
.sort((a, b) => { var _a, _b, _c; return (_c = (_a = b.reference) === null || _a === void 0 ? void 0 : _a.localeCompare((_b = a.reference) !== null && _b !== void 0 ? _b : '')) !== null && _c !== void 0 ? _c : -1; });
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
TuiDocTypeReferencePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocTypeReferencePipe, deps: [{ token: TUI_DOC_TYPE_REFERENCE_PARSER }, { token: TUI_DOC_TYPE_REFERENCE_HANDLER }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
679
679
|
TuiDocTypeReferencePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocTypeReferencePipe, name: "tuiDocTypeReference" });
|
|
680
680
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocTypeReferencePipe, decorators: [{
|
|
681
681
|
type: Pipe,
|
|
682
|
-
args: [{ name:
|
|
682
|
+
args: [{ name: 'tuiDocTypeReference' }]
|
|
683
683
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
684
684
|
type: Inject,
|
|
685
685
|
args: [TUI_DOC_TYPE_REFERENCE_PARSER]
|
|
@@ -690,14 +690,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
690
690
|
|
|
691
691
|
class TuiShowCleanerPipe {
|
|
692
692
|
transform(type) {
|
|
693
|
-
return type.includes(
|
|
693
|
+
return type.includes('null');
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
TuiShowCleanerPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiShowCleanerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
697
697
|
TuiShowCleanerPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiShowCleanerPipe, name: "tuiShowCleanerPipe" });
|
|
698
698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiShowCleanerPipe, decorators: [{
|
|
699
699
|
type: Pipe,
|
|
700
|
-
args: [{ name:
|
|
700
|
+
args: [{ name: 'tuiShowCleanerPipe' }]
|
|
701
701
|
}] });
|
|
702
702
|
|
|
703
703
|
class TuiInspectPipe {
|
|
@@ -705,7 +705,7 @@ class TuiInspectPipe {
|
|
|
705
705
|
this.isE2E = isE2E;
|
|
706
706
|
}
|
|
707
707
|
transform(value, depth = 2) {
|
|
708
|
-
if (this.isE2E && typeof value ===
|
|
708
|
+
if (this.isE2E && typeof value === 'function') {
|
|
709
709
|
/**
|
|
710
710
|
* @description:
|
|
711
711
|
* When developing in production mode the webpack bundler minify
|
|
@@ -713,7 +713,7 @@ class TuiInspectPipe {
|
|
|
713
713
|
* of the function may differ from build to build, which can be to
|
|
714
714
|
* various problems when screenshot testing on e2e.
|
|
715
715
|
*/
|
|
716
|
-
return
|
|
716
|
+
return 'λ(x) => y';
|
|
717
717
|
}
|
|
718
718
|
return tuiInspectAny(value, depth);
|
|
719
719
|
}
|
|
@@ -722,7 +722,7 @@ TuiInspectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version:
|
|
|
722
722
|
TuiInspectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInspectPipe, name: "tuiInspectAny" });
|
|
723
723
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInspectPipe, decorators: [{
|
|
724
724
|
type: Pipe,
|
|
725
|
-
args: [{ name:
|
|
725
|
+
args: [{ name: 'tuiInspectAny' }]
|
|
726
726
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
727
727
|
type: Inject,
|
|
728
728
|
args: [TUI_IS_E2E]
|
|
@@ -737,7 +737,7 @@ TuiIsPrimitivePolymorpheusContentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersi
|
|
|
737
737
|
TuiIsPrimitivePolymorpheusContentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiIsPrimitivePolymorpheusContentPipe, name: "tuiIsPrimitivePolymorpheusContentPipe" });
|
|
738
738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiIsPrimitivePolymorpheusContentPipe, decorators: [{
|
|
739
739
|
type: Pipe,
|
|
740
|
-
args: [{ name:
|
|
740
|
+
args: [{ name: 'tuiIsPrimitivePolymorpheusContentPipe' }]
|
|
741
741
|
}] });
|
|
742
742
|
|
|
743
743
|
// @bad TODO subscribe propertiesConnectors changes
|
|
@@ -946,7 +946,7 @@ const TUI_DOC_EXAMPLE_DEFAULT_OPTIONS = {
|
|
|
946
946
|
files[TUI_EXAMPLE_PRIMARY_FILE_NAME.HTML]),
|
|
947
947
|
tabTitles: new Map(),
|
|
948
948
|
fullsize: true,
|
|
949
|
-
linkIcon:
|
|
949
|
+
linkIcon: 'tuiIconLink',
|
|
950
950
|
};
|
|
951
951
|
/**
|
|
952
952
|
* Default parameters for DocExample component
|
|
@@ -965,7 +965,7 @@ TuiDocExampleGetTabsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0",
|
|
|
965
965
|
TuiDocExampleGetTabsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocExampleGetTabsPipe, name: "tuiDocExampleGetTabs" });
|
|
966
966
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocExampleGetTabsPipe, decorators: [{
|
|
967
967
|
type: Pipe,
|
|
968
|
-
args: [{ name:
|
|
968
|
+
args: [{ name: 'tuiDocExampleGetTabs' }]
|
|
969
969
|
}] });
|
|
970
970
|
|
|
971
971
|
class TuiDocExampleComponent {
|
|
@@ -1147,15 +1147,15 @@ function labelsProviderFactory(pages) {
|
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Page title
|
|
1149
1149
|
*/
|
|
1150
|
-
const NAVIGATION_TITLE = new InjectionToken(
|
|
1150
|
+
const NAVIGATION_TITLE = new InjectionToken('[NAVIGATION_TITLE]');
|
|
1151
1151
|
/**
|
|
1152
1152
|
* Navigation sections labels for search
|
|
1153
1153
|
*/
|
|
1154
|
-
const NAVIGATION_LABELS = new InjectionToken(
|
|
1154
|
+
const NAVIGATION_LABELS = new InjectionToken('[NAVIGATION_LABELS]');
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Navigation pages
|
|
1157
1157
|
*/
|
|
1158
|
-
const NAVIGATION_ITEMS = new InjectionToken(
|
|
1158
|
+
const NAVIGATION_ITEMS = new InjectionToken('[NAVIGATION_ITEMS]');
|
|
1159
1159
|
const NAVIGATION_PROVIDERS = [
|
|
1160
1160
|
TuiDestroyService,
|
|
1161
1161
|
{
|
|
@@ -1758,7 +1758,7 @@ TuiDocMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
1758
1758
|
useExisting: forwardRef(() => TuiDocMainComponent),
|
|
1759
1759
|
},
|
|
1760
1760
|
TuiSwipeService,
|
|
1761
|
-
], ngImport: i0, template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n", styles: ["
|
|
1761
|
+
], ngImport: i0, template: "<tui-theme-night *ngIf=\"theme.isDefaultTheme && night.useDefaultNightTheme && (night$ | async)\"></tui-theme-night>\n<tui-root>\n <div class=\"tui-doc-page\">\n <tui-doc-navigation class=\"tui-doc-navigation\">\n <ng-content select=\"tuiDocNavigation\"></ng-content>\n </tui-doc-navigation>\n <div class=\"tui-doc-content\">\n <router-outlet class=\"tui-doc-outlet\"></router-outlet>\n </div>\n </div>\n <header tuiDocHeader>\n <ng-content select=\"tuiDocHeader\"></ng-content>\n <button\n appearance=\"secondary\"\n shape=\"rounded\"\n size=\"s\"\n tuiIconButton\n tuiMode=\"onLight\"\n type=\"button\"\n class=\"tui-doc-night-mode-switch\"\n [icon]=\"icon\"\n (click)=\"night.toggle()\"\n ></button>\n </header>\n <ng-container ngProjectAs=\"tuiOverContent\">\n <ng-content select=\"tuiOverContent\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverDialogs\">\n <ng-content select=\"tuiOverDialogs\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverAlerts\">\n <ng-content select=\"tuiOverAlerts\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverPortals\">\n <ng-content select=\"tuiOverPortals\"></ng-content>\n </ng-container>\n <ng-container ngProjectAs=\"tuiOverHints\">\n <ng-content select=\"tuiOverHints\"></ng-content>\n </ng-container>\n</tui-root>\n", styles: ["@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*=\"language-\"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*=\"language-\"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*=\"language-\"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9625em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9625em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:normal;color:var(--tui-text-01)}tui-doc-code .hljs-property{color:var(--tui-support-14)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:bold;color:var(--tui-link)}tui-doc-code .hljs-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{font-weight:bold;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:normal}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:bold}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:bold}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n"], components: [{ type: i2.TuiThemeNightComponent, selector: "tui-theme-night" }, { type: i2.TuiRootComponent, selector: "tui-root" }, { type: TuiDocNavigationComponent, selector: "tui-doc-navigation" }, { type: TuiDocHeaderComponent, selector: "header[tuiDocHeader]" }, { type: i2.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }, { type: i2.TuiModeDirective, selector: "[tuiMode]", inputs: ["tuiMode"] }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
1762
1762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDocMainComponent, decorators: [{
|
|
1763
1763
|
type: Component,
|
|
1764
1764
|
args: [{
|
|
@@ -1839,17 +1839,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1839
1839
|
/**
|
|
1840
1840
|
* Array if related page titles
|
|
1841
1841
|
*/
|
|
1842
|
-
const PAGE_SEE_ALSO = new InjectionToken(
|
|
1842
|
+
const PAGE_SEE_ALSO = new InjectionToken('[PAGE_SEE_ALSO]');
|
|
1843
1843
|
const PAGE_PROVIDERS = [
|
|
1844
1844
|
{
|
|
1845
1845
|
provide: PAGE_SEE_ALSO,
|
|
1846
1846
|
deps: [ElementRef, TUI_DOC_SEE_ALSO],
|
|
1847
1847
|
useFactory: ({ nativeElement }, seeAlsoGroups) => {
|
|
1848
|
-
const currentHeader = nativeElement.getAttribute(
|
|
1848
|
+
const currentHeader = nativeElement.getAttribute('header');
|
|
1849
1849
|
const groups = seeAlsoGroups.filter(group => group.includes(currentHeader)) || [];
|
|
1850
1850
|
const seeAlsoSet = new Set(groups
|
|
1851
1851
|
.join()
|
|
1852
|
-
.split(
|
|
1852
|
+
.split(',')
|
|
1853
1853
|
.filter(component => component && component !== currentHeader));
|
|
1854
1854
|
return Array.from(seeAlsoSet);
|
|
1855
1855
|
},
|