@deepkit/desktop-ui
Version:
Library for desktop UI widgets in Angular 10+
87 lines (86 loc) • 4.72 kB
TypeScript
import { ApplicationRef, ModuleWithProviders, Renderer2, RendererFactory2 } from '@angular/core';
import { Router } from '@angular/router';
import { WindowRegistry } from '../window/window-state';
import * as i0 from "@angular/core";
import * as i1 from "./menu.component";
import * as i2 from "./utils";
import * as i3 from "./dui-view.directive";
import * as i4 from "./cd-counter.component";
import * as i5 from "./dui-responsive.directive";
import * as i6 from "./pipes";
import * as i7 from "@angular/common";
import * as i8 from "./reactivate-change-detection";
export * from './reactivate-change-detection';
export * from './cd-counter.component';
export * from './dui-view.directive';
export * from './dui-responsive.directive';
export * from './utils';
export * from './menu.component';
export * from './pipes';
export * from './state';
export declare class BaseComponent {
disabled?: boolean;
get isDisabled(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent, never, never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
}
export declare class UiComponentComponent extends BaseComponent {
name: string;
static ɵfac: i0.ɵɵFactoryDeclaration<UiComponentComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<UiComponentComponent, "ui-component", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
}
export declare class OverlayStackItem {
host: HTMLElement;
protected stack: OverlayStackItem[];
release: () => void;
constructor(host: HTMLElement, stack: OverlayStackItem[], release: () => void);
getAllAfter(): OverlayStackItem[];
getPrevious(): OverlayStackItem | undefined;
isLast(): boolean;
getAllBefore(): OverlayStackItem[];
}
export declare class OverlayStack {
stack: OverlayStackItem[];
register(host: HTMLElement): OverlayStackItem;
}
export declare class Storage {
getItem(key: string): any;
setItem(key: string, value: any): void;
removeItem(key: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Storage, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<Storage>;
}
export declare class DuiApp {
protected app: ApplicationRef;
protected document: Document;
protected storage: Storage;
protected windowRegistry?: WindowRegistry | undefined;
protected router?: Router | undefined;
protected darkMode?: boolean;
protected platform: 'web' | 'darwin' | 'linux' | 'win32';
themeDetection: boolean;
render: Renderer2;
constructor(app: ApplicationRef, document: Document, rendererFactory: RendererFactory2, storage: Storage, windowRegistry?: WindowRegistry | undefined, router?: Router | undefined);
start(): void;
setPlatform(platform: 'web' | 'darwin' | 'linux' | 'win32'): void;
getPlatform(): string;
isDarkMode(): boolean;
setAutoDarkMode(): void;
get theme(): 'auto' | 'light' | 'dark';
set theme(theme: 'auto' | 'light' | 'dark');
isDarkModeOverwritten(): boolean;
setGlobalDarkMode(darkMode: boolean): void;
getVibrancy(): 'ultra-dark' | 'light';
disableThemeDetection(): void;
setDarkMode(darkMode?: boolean): void;
protected isPreferDarkColorSchema(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<DuiApp, [null, null, null, null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<DuiApp>;
}
export declare class DuiAppModule {
constructor(app: DuiApp, document: Document);
static forRoot(): ModuleWithProviders<DuiAppModule>;
static ɵfac: i0.ɵɵFactoryDeclaration<DuiAppModule, [null, { optional: true; }]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<DuiAppModule, [typeof UiComponentComponent, typeof i1.MenuDirective, typeof i1.MenuSeparatorDirective, typeof i1.MenuRadioDirective, typeof i1.MenuCheckboxDirective, typeof i1.MenuItemDirective, typeof i2.OpenExternalDirective, typeof i3.ViewDirective, typeof i4.CdCounterComponent, typeof i5.DuiResponsiveDirective, typeof i6.AsyncRenderPipe, typeof i6.ObjectURLPipe, typeof i6.HumanFileSizePipe], [typeof i7.CommonModule, typeof i8.ReactiveChangeDetectionModule], [typeof UiComponentComponent, typeof i1.MenuDirective, typeof i1.MenuSeparatorDirective, typeof i1.MenuRadioDirective, typeof i1.MenuCheckboxDirective, typeof i1.MenuItemDirective, typeof i2.OpenExternalDirective, typeof i3.ViewDirective, typeof i4.CdCounterComponent, typeof i5.DuiResponsiveDirective, typeof i6.AsyncRenderPipe, typeof i6.ObjectURLPipe, typeof i6.HumanFileSizePipe]>;
static ɵinj: i0.ɵɵInjectorDeclaration<DuiAppModule>;
}