@taiga-ui/addon-doc 3.22.0-dev.main-4770a98 → 3.23.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 +115 -23
- package/bundles/taiga-ui-addon-doc.umd.js.map +1 -1
- package/components/main/main.component.d.ts +6 -7
- package/esm2015/components/demo/demo.component.js +1 -1
- package/esm2015/components/documentation/documentation.component.js +2 -2
- package/esm2015/components/example/example.component.js +1 -1
- package/esm2015/components/main/main.component.js +16 -22
- package/esm2015/internal/header/header.component.js +1 -1
- package/esm2015/public-api.js +6 -1
- package/esm2015/services/theme-night.options.js +4 -0
- package/esm2015/services/theme-night.service.js +40 -0
- package/esm2015/services/theme.options.js +8 -0
- package/esm2015/services/theme.service.js +38 -0
- package/fesm2015/taiga-ui-addon-doc.js +95 -25
- package/fesm2015/taiga-ui-addon-doc.js.map +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +4 -0
- package/services/theme-night.options.d.ts +3 -0
- package/services/theme-night.service.d.ts +12 -0
- package/services/theme.options.d.ts +5 -0
- package/services/theme.service.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/addon-doc",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "Taiga UI based library for developing documentation portals for Angular libraries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@angular/forms": ">=12.0.0",
|
|
28
28
|
"@angular/router": ">=12.0.0",
|
|
29
29
|
"@ng-web-apis/common": ">=2.0.0",
|
|
30
|
-
"@taiga-ui/addon-mobile": ">=3.
|
|
31
|
-
"@taiga-ui/cdk": ">=3.
|
|
32
|
-
"@taiga-ui/core": ">=3.
|
|
33
|
-
"@taiga-ui/kit": ">=3.
|
|
30
|
+
"@taiga-ui/addon-mobile": ">=3.23.0",
|
|
31
|
+
"@taiga-ui/cdk": ">=3.23.0",
|
|
32
|
+
"@taiga-ui/core": ">=3.23.0",
|
|
33
|
+
"@taiga-ui/kit": ">=3.23.0",
|
|
34
34
|
"@tinkoff/ng-polymorpheus": ">=4.0.0"
|
|
35
35
|
},
|
|
36
36
|
"main": "bundles/taiga-ui-addon-doc.umd.js",
|
package/public-api.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export * from './tokens/source-code';
|
|
|
47
47
|
export * from './tokens/title';
|
|
48
48
|
export * from './tokens/url-state-handler';
|
|
49
49
|
export * from './types/pages';
|
|
50
|
+
export * from './services/theme.options';
|
|
51
|
+
export * from './services/theme.service';
|
|
52
|
+
export * from './services/theme-night.options';
|
|
53
|
+
export * from './services/theme-night.service';
|
|
50
54
|
export * from './addon-doc.module';
|
|
51
55
|
export * from './utils/coerce-value';
|
|
52
56
|
export * from './utils/generate-routes';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiThemeNightService extends BehaviorSubject<boolean> {
|
|
4
|
+
readonly windowRef: Window;
|
|
5
|
+
readonly storage: Storage;
|
|
6
|
+
readonly key: string;
|
|
7
|
+
constructor(windowRef: Window, storage: Storage, key: string);
|
|
8
|
+
next(night: boolean): void;
|
|
9
|
+
toggle(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiThemeNightService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiThemeNightService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const TUI_THEME_STORAGE_DEFAULT_KEY: "tuiTheme";
|
|
3
|
+
export declare const TUI_THEME_STORAGE_KEY: InjectionToken<string>;
|
|
4
|
+
export declare const TUI_THEME_DEFAULT_NAME: "Taiga UI";
|
|
5
|
+
export declare const TUI_THEME_NAME: InjectionToken<string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiThemeService extends BehaviorSubject<string> {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly key: string;
|
|
6
|
+
private readonly storage;
|
|
7
|
+
constructor(name: string, key: string, storage: Storage);
|
|
8
|
+
next(theme: string): void;
|
|
9
|
+
get isDefaultTheme(): boolean;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiThemeService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiThemeService>;
|
|
12
|
+
}
|