@taiga-ui/addon-doc
Version:
Taiga UI based library for developing documentation portals for Angular libraries.
47 lines (46 loc) • 2.82 kB
TypeScript
import type { Type } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import type { TuiRawLoaderContent } from '@taiga-ui/addon-doc/types';
import type { TuiContext } from '@taiga-ui/cdk/types';
import type { PolymorpheusContent } from '@taiga-ui/polymorpheus';
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
import * as i0 from "@angular/core";
export declare class TuiDocExample {
private readonly clipboard;
private readonly alerts;
private readonly location;
private readonly copyTexts$;
private readonly processContent;
private readonly rawLoader$$;
private readonly lazyLoader$$;
protected readonly fullscreenEnabled: boolean;
protected readonly icons: import("@taiga-ui/addon-doc/tokens").TuiDocIcons;
protected readonly options: import("./example.options").TuiDocExampleOptions;
protected readonly texts: [string, string, string];
protected readonly codeEditor: import("@taiga-ui/addon-doc/types").TuiCodeEditor | null;
protected readonly codeActions: readonly PolymorpheusContent<TuiContext<string>>[];
protected readonly route: ActivatedRoute;
protected readonly defaultTabIndex = 0;
protected readonly defaultTab: string;
protected activeItemIndex: number;
protected fullscreen: boolean;
protected readonly copy: import("@angular/core").Signal<string>;
protected readonly loading: import("@angular/core").WritableSignal<boolean>;
protected readonly processor: import("@angular/core").Signal<Record<string, string>>;
protected readonly lazyComponent: import("@angular/core").Signal<PolymorpheusComponent<unknown> | undefined>;
id: string | null;
heading: PolymorpheusContent;
description: PolymorpheusContent;
fullsize: boolean;
componentName: string;
set content(content: Record<string, TuiRawLoaderContent>);
set component(content: Promise<{
readonly default: Type<unknown>;
}>);
protected readonly visible: (files: Record<string, string>) => boolean;
protected getTabTitle(fileName: string): PolymorpheusContent;
protected copyExampleLink(target: EventTarget | null): void;
protected edit(files: Record<string, string>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocExample, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocExample, "tui-doc-example", never, { "id": { "alias": "id"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "description": { "alias": "description"; "required": false; }; "fullsize": { "alias": "fullsize"; "required": false; }; "componentName": { "alias": "componentName"; "required": false; }; "content": { "alias": "content"; "required": false; }; "component": { "alias": "component"; "required": false; }; }, {}, never, ["*"], true, never>;
}