@basis-ng/primitives 0.0.1-alpha.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/core/components/alert/alert.component.d.ts +20 -0
- package/core/components/attached-box/attached-box.component.d.ts +125 -0
- package/core/components/attached-box/types/alignment.type.d.ts +1 -0
- package/core/components/attached-box/types/direction.type.d.ts +1 -0
- package/core/components/attached-box/types/position.type.d.ts +1 -0
- package/core/components/badge/badge.component.d.ts +9 -0
- package/core/components/bottom-sheet/bottom-sheet.component.d.ts +60 -0
- package/core/components/button/button.component.d.ts +17 -0
- package/core/components/button-group/button-group.component.d.ts +9 -0
- package/core/components/checkbox/checkbox.component.d.ts +26 -0
- package/core/components/color-picker/color-picker.component.d.ts +61 -0
- package/core/components/icon/icon.component.d.ts +29 -0
- package/core/components/input/input.component.d.ts +78 -0
- package/core/components/input-group/input-group.component.d.ts +13 -0
- package/core/components/menu/menu.component.d.ts +14 -0
- package/core/components/menu/shared/components/menu-item/menu-item.component.d.ts +9 -0
- package/core/components/menu/shared/components/menu-item-checkbox/menu-item-checkbox.component.d.ts +9 -0
- package/core/components/menu/shared/components/menu-item-radio/menu-item-radio.component.d.ts +9 -0
- package/core/components/menu/shared/components/menu-label/menu-label.component.d.ts +8 -0
- package/core/components/menu/shared/directives/menu-trigger.directive.d.ts +14 -0
- package/core/components/range/range.component.d.ts +26 -0
- package/core/components/search/search.component.d.ts +121 -0
- package/core/components/select/select.component.d.ts +48 -0
- package/core/components/side-sheet/side-sheet.component.d.ts +46 -0
- package/core/components/spinner/spinner.component.d.ts +9 -0
- package/core/components/switch/switch.component.d.ts +35 -0
- package/core/components/table/components/row/components/row-item/row-item.component.d.ts +12 -0
- package/core/components/table/components/row/row.component.d.ts +9 -0
- package/core/components/table/table.component.d.ts +5 -0
- package/core/components/tabs/components/tab/tab.component.d.ts +25 -0
- package/core/components/tabs/tabs.component.d.ts +60 -0
- package/core/components/textarea/textarea.component.d.ts +48 -0
- package/core/components/tooltip/tooltip.component.d.ts +36 -0
- package/core/components/tree/shared/components/tree-node/tree-node.component.d.ts +43 -0
- package/core/components/tree/tree.component.d.ts +56 -0
- package/core/directives/in-viewport.directive.d.ts +13 -0
- package/core/services/in-viewport.service.d.ts +23 -0
- package/core/services/responsive.service.d.ts +47 -0
- package/core/services/theme.service.d.ts +44 -0
- package/fesm2022/basis-ng-primitives.mjs +2415 -0
- package/fesm2022/basis-ng-primitives.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +26 -0
- package/public-api.d.ts +40 -0
- package/shared/components/label/label.component.d.ts +34 -0
- package/shared/components/option/option.component.d.ts +10 -0
- package/shared/directives/lazy-content.directive.d.ts +7 -0
- package/shared/services/utils.service.d.ts +16 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ThemeService {
|
|
3
|
+
/**
|
|
4
|
+
* Signal representing the current theme.
|
|
5
|
+
*
|
|
6
|
+
* Possible values:
|
|
7
|
+
* - `'light'`: Light theme.
|
|
8
|
+
* - `'dark'`: Dark theme.
|
|
9
|
+
* - `'auto'`: Automatically determine the theme.
|
|
10
|
+
*/
|
|
11
|
+
readonly theme: import("@angular/core").WritableSignal<"light" | "dark" | "auto">;
|
|
12
|
+
/**
|
|
13
|
+
* Renderer2 instance for manipulating the DOM.
|
|
14
|
+
* Used to set the `data-theme` attribute on the document root (`<html>`).
|
|
15
|
+
*/
|
|
16
|
+
private renderer;
|
|
17
|
+
/**
|
|
18
|
+
* RendererFactory2 instance for creating Renderer2 instances.
|
|
19
|
+
* Injected to create the renderer.
|
|
20
|
+
*/
|
|
21
|
+
private rendererFactory;
|
|
22
|
+
constructor();
|
|
23
|
+
/**
|
|
24
|
+
* Applies the specified theme to the document root (`<html>`).
|
|
25
|
+
*
|
|
26
|
+
* @param theme - The theme to apply. Possible values:
|
|
27
|
+
* - `'light'`: Apply the light theme.
|
|
28
|
+
* - `'dark'`: Apply the dark theme.
|
|
29
|
+
* - `'auto'`: Remove the theme attribute and let the system decide.
|
|
30
|
+
*/
|
|
31
|
+
applyTheme(theme: 'light' | 'dark' | 'auto'): void;
|
|
32
|
+
/**
|
|
33
|
+
* Toggles the theme between `'light'` and `'dark'`.
|
|
34
|
+
* If the current theme is `'light'`, it switches to `'dark'`, and vice versa.
|
|
35
|
+
*/
|
|
36
|
+
toggleTheme(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Removes the `data-theme` attribute from the document body.
|
|
39
|
+
* This is used when the theme is set to `'auto'`.
|
|
40
|
+
*/
|
|
41
|
+
removeTheme(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
44
|
+
}
|