@taiga-ui/addon-doc 5.0.0-canary.c343ecb → 5.0.0-canary.c951fc6
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/README.md +9 -12
- package/components/api/api-item.component.d.ts +1 -1
- package/components/api/api.component.d.ts +1 -1
- package/components/theme-switcher/theme-switcher.component.d.ts +1 -2
- package/fesm2022/taiga-ui-addon-doc-components.mjs +49 -35
- package/fesm2022/taiga-ui-addon-doc-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-doc-utils.mjs +2 -2
- package/fesm2022/taiga-ui-addon-doc-utils.mjs.map +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -35,24 +35,21 @@ npm i @taiga-ui/addon-doc
|
|
|
35
35
|
```typescript
|
|
36
36
|
import {Component} from '@angular/core';
|
|
37
37
|
import {TuiDocMain} from '@taiga-ui/addon-doc';
|
|
38
|
-
import {
|
|
38
|
+
import {provideHighlightOptions} from 'ngx-highlightjs';
|
|
39
39
|
import {App} from './app.component';
|
|
40
40
|
|
|
41
41
|
@Component({
|
|
42
42
|
imports: [TuiDocMain],
|
|
43
43
|
providers: [
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
less: () => import('highlight.js/lib/languages/less' as string),
|
|
52
|
-
xml: () => import('highlight.js/lib/languages/xml' as string),
|
|
53
|
-
},
|
|
44
|
+
provideHighlightOptions({
|
|
45
|
+
coreLibraryLoader: () => import('highlight.js/lib/core' as string),
|
|
46
|
+
lineNumbersLoader: () => import('ngx-highlightjs/line-numbers' as string), // Optional, only if you want the line numbers
|
|
47
|
+
languages: {
|
|
48
|
+
typescript: () => import('highlight.js/lib/languages/typescript' as string),
|
|
49
|
+
less: () => import('highlight.js/lib/languages/less' as string),
|
|
50
|
+
xml: () => import('highlight.js/lib/languages/xml' as string),
|
|
54
51
|
},
|
|
55
|
-
},
|
|
52
|
+
}),
|
|
56
53
|
],
|
|
57
54
|
})
|
|
58
55
|
export class App {}
|
|
@@ -14,7 +14,7 @@ export declare class TuiDocAPIItem<T> implements OnInit {
|
|
|
14
14
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
15
15
|
readonly type: import("@angular/core").InputSignal<string>;
|
|
16
16
|
readonly value: import("@angular/core").ModelSignal<T | undefined>;
|
|
17
|
-
readonly items: import("@angular/core").
|
|
17
|
+
readonly items: import("@angular/core").InputSignalWithTransform<readonly T[], readonly T[] | undefined>;
|
|
18
18
|
protected readonly hasCleaner: import("@angular/core").Signal<boolean>;
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
onValueChange(value: T): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class TuiDocAPI {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDocAPI, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocAPI, "table[tuiDocAPI]", never, {}, {}, never, ["*", "tbody"], true, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDocAPI, "table[tuiDocAPI]", never, {}, {}, never, ["th", "*", "tbody"], true, never>;
|
|
5
5
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const TUI_THEME_KEY: InjectionToken<string>;
|
|
4
4
|
export declare const TUI_THEME: InjectionToken<string>;
|
|
5
5
|
export declare const TUI_THEMES: InjectionToken<Record<string, string>>;
|
|
6
|
-
export declare function tuiDocThemeProvider(): FactoryProvider;
|
|
7
6
|
export declare class TuiDocThemeSwitcher {
|
|
8
7
|
private readonly storage;
|
|
9
8
|
private readonly key;
|