@eui/core 18.0.0-rc.18 → 18.0.0-rc.19
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/docs/dependencies.html +1 -1
- package/docs/index.html +1 -1
- package/docs/injectables/EuiThemeService.html +297 -96
- package/docs/interfaces/IEuiTheme.html +387 -0
- package/docs/interfaces/ThemeState.html +309 -0
- package/docs/js/menu-wc.js +6 -0
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/enumerations.html +66 -6
- package/docs/miscellaneous/variables.html +55 -0
- package/esm2022/lib/services/eui-theme.service.mjs +186 -26
- package/fesm2022/eui-core.mjs +187 -29
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/services/eui-theme.service.d.ts +41 -15
- package/lib/services/eui-theme.service.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,24 +1,50 @@
|
|
|
1
|
-
import { GlobalConfig } from '@eui/base';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { GlobalConfig } from '@eui/base';
|
|
3
|
+
import { EuiAppShellService } from './eui-app-shell.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare enum EuiTheme {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
ECL_EC = "ecl-ec",
|
|
8
|
+
ECL_EC_RTL = "ecl-ec-rtl",
|
|
9
|
+
ECL_EU = "ecl-eu",
|
|
10
|
+
ECL_EU_RTL = "ecl-eu-rtl",
|
|
11
|
+
EUI_LEGACY = "eui-legacy",
|
|
12
|
+
EUI_LEGACY_HC = "eui-legacy-high-contrast",
|
|
13
|
+
DARK = "dark",
|
|
14
|
+
COMPACT = "compact"
|
|
15
|
+
}
|
|
16
|
+
interface IEuiTheme {
|
|
17
|
+
name: EuiTheme;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
styleSheet: string;
|
|
20
|
+
cssClass: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ThemeState {
|
|
23
|
+
themes: IEuiTheme[];
|
|
24
|
+
theme: any;
|
|
8
25
|
}
|
|
9
26
|
export declare class EuiThemeService {
|
|
27
|
+
private document;
|
|
10
28
|
protected config: GlobalConfig;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
private asService;
|
|
30
|
+
private _state$;
|
|
31
|
+
constructor(document: Document, config: GlobalConfig, asService: EuiAppShellService);
|
|
32
|
+
get state$(): Observable<ThemeState>;
|
|
33
|
+
get state(): ThemeState;
|
|
34
|
+
isDefault(): boolean;
|
|
35
|
+
isEclEc(): boolean;
|
|
36
|
+
isEclEcRtl(): boolean;
|
|
37
|
+
isEclEu(): boolean;
|
|
38
|
+
isEclEuRtl(): boolean;
|
|
39
|
+
isEuiLegacy(): boolean;
|
|
40
|
+
isEuiLegacyHc(): boolean;
|
|
41
|
+
isDark(): boolean;
|
|
42
|
+
isCompact(): boolean;
|
|
43
|
+
setActiveTheme(theme: EuiTheme, isActive: boolean): void;
|
|
44
|
+
private _renderTheme;
|
|
45
|
+
private _renderThemeCss;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EuiThemeService, [null, { optional: true; }, null]>;
|
|
22
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<EuiThemeService>;
|
|
23
48
|
}
|
|
49
|
+
export {};
|
|
24
50
|
//# sourceMappingURL=eui-theme.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-theme.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/eui-theme.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eui-theme.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/eui-theme.service.ts"],"names":[],"mappings":"AACA,OAA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Ae;yCAtGd,eAAe;6CAAf,eAAe;CAqI3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/core",
|
|
3
|
-
"version": "18.0.0-rc.
|
|
3
|
+
"version": "18.0.0-rc.19",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"description": "eUI core package - holding UI components for Desktop applications",
|
|
6
6
|
"homepage": "https://eui.ecdevops.eu",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@eui/base": "18.0.0-rc.
|
|
13
|
+
"@eui/base": "18.0.0-rc.19",
|
|
14
14
|
"rxjs": "^7.8.0",
|
|
15
15
|
"extend": "^3.0.2",
|
|
16
16
|
"localforage": "^1.10.0",
|