@taiga-ui/addon-doc 5.0.0-canary.cf66fed → 5.0.0-canary.d205016

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 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 {HIGHLIGHT_OPTIONS} from 'ngx-highlightjs';
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
- provide: HIGHLIGHT_OPTIONS,
46
- useValue: {
47
- coreLibraryLoader: () => import('highlight.js/lib/core' as string),
48
- lineNumbersLoader: () => import('highlightjs-line-numbers.js' as string), // Optional, only if you want the line numbers
49
- languages: {
50
- typescript: () => import('highlight.js/lib/languages/typescript' as string),
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").InputSignal<readonly T[]>;
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
  }
@@ -16,8 +16,8 @@ export declare class TuiDocDemo implements AfterViewInit {
16
16
  private readonly darkMode;
17
17
  protected readonly template: Signal<TemplateRef<any> | undefined>;
18
18
  protected readonly rendered: import("@angular/core").WritableSignal<boolean>;
19
- protected theme: Signal<"dark" | "light">;
20
- protected dark: import("@angular/core").WritableSignal<boolean>;
19
+ protected readonly theme: Signal<"dark" | "light">;
20
+ protected readonly dark: import("@angular/core").WritableSignal<boolean>;
21
21
  protected readonly $: import("rxjs").Subscription;
22
22
  protected form?: FormGroup;
23
23
  protected readonly updateOnVariants: readonly ["change", "blur", "submit"];
@@ -7,7 +7,7 @@ export declare class TuiDocNavigation {
7
7
  private readonly searchInput;
8
8
  private readonly router;
9
9
  private readonly doc;
10
- protected open: import("@angular/core").WritableSignal<boolean>;
10
+ protected readonly open: import("@angular/core").WritableSignal<boolean>;
11
11
  protected menuOpen: boolean;
12
12
  protected readonly drawer: TuiDrawer | null;
13
13
  protected readonly labels: readonly string[];