@edsis/angular 22.0.70 → 22.0.72

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.
@@ -0,0 +1,101 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders } from '@angular/core';
3
+
4
+ declare const EDSIS_RUNTIME_SCHEMA_VERSION: 1;
5
+ declare const EDSIS_RUNTIME_PLATFORMS: readonly ["windows", "macos", "linux", "ios", "android", "web"];
6
+ declare const EDSIS_RUNTIME_CAPABILITIES: readonly ["window-controls", "window-layout", "app-menu", "tray", "notification-badge", "native-notification", "dialog", "clipboard-text", "open-url", "network-diagnostics", "google-native-sign-in"];
7
+ type EdsisRuntimePlatform = (typeof EDSIS_RUNTIME_PLATFORMS)[number];
8
+ type EdsisRuntimeCapability = (typeof EDSIS_RUNTIME_CAPABILITIES)[number];
9
+ type EdsisRuntimeEnvironment = 'production' | 'development' | 'local';
10
+ type EdsisRuntimeHost = 'tauri' | 'browser';
11
+ type EdsisDeviceFamily = 'desktop' | 'tablet' | 'responsive';
12
+ type EdsisUiProfile = 'desktop' | 'tablet' | 'responsive';
13
+ interface EdsisRuntimeContextV1 {
14
+ readonly schemaVersion: 1;
15
+ readonly host: EdsisRuntimeHost;
16
+ readonly environment: EdsisRuntimeEnvironment;
17
+ readonly platform: EdsisRuntimePlatform;
18
+ readonly deviceFamily: EdsisDeviceFamily;
19
+ readonly uiProfile: EdsisUiProfile;
20
+ readonly app: {
21
+ readonly identifier: string;
22
+ readonly name: string;
23
+ readonly version: string;
24
+ readonly arch: string;
25
+ readonly debug: boolean;
26
+ };
27
+ readonly capabilities: readonly EdsisRuntimeCapability[];
28
+ }
29
+ declare function isEdsisRuntimeContextV1(value: unknown): value is EdsisRuntimeContextV1;
30
+ declare function freezeEdsisRuntimeContext(context: EdsisRuntimeContextV1): EdsisRuntimeContextV1;
31
+ declare function createBrowserRuntimeContext(environment: EdsisRuntimeEnvironment): EdsisRuntimeContextV1;
32
+
33
+ type EdsisWindowControlAction = 'close' | 'minimize' | 'toggle-maximize';
34
+ declare class NativeHostService {
35
+ private readonly runtime;
36
+ supports(capability: EdsisRuntimeCapability): boolean;
37
+ emitWindowControl(action: EdsisWindowControlAction): Promise<void>;
38
+ startDragging(): Promise<void>;
39
+ setNotificationBadge(unreadCount: number): Promise<void>;
40
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NativeHostService, never>;
41
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<NativeHostService>;
42
+ }
43
+ /** Browser-safe compatibility helper for callers outside Angular injection. */
44
+ declare function setNativeNotificationBadge(unreadCount: number): Promise<void>;
45
+
46
+ interface EdsisRuntimeConfig {
47
+ readonly browserEnvironment?: EdsisRuntimeEnvironment;
48
+ readonly eventTimeoutMs?: number;
49
+ }
50
+ interface ResolvedEdsisRuntimeConfig {
51
+ readonly browserEnvironment: EdsisRuntimeEnvironment;
52
+ readonly eventTimeoutMs: number;
53
+ }
54
+ declare const EDSIS_RUNTIME_CONFIG: InjectionToken<ResolvedEdsisRuntimeConfig>;
55
+
56
+ declare const EDSIS_RUNTIME_READY_EVENT: "edsis:runtime-ready";
57
+ declare global {
58
+ interface Window {
59
+ readonly EDSIS_RUNTIME?: unknown;
60
+ }
61
+ }
62
+ declare class RuntimeContextService {
63
+ private readonly documentRef;
64
+ private readonly config;
65
+ private readonly contextState;
66
+ private initialization;
67
+ readonly context: _angular_core.Signal<EdsisRuntimeContextV1>;
68
+ readonly isDesktopShell: _angular_core.Signal<boolean>;
69
+ readonly isTabletShell: _angular_core.Signal<boolean>;
70
+ readonly isIPadOS: _angular_core.Signal<boolean>;
71
+ readonly isAndroidTablet: _angular_core.Signal<boolean>;
72
+ initialize(): Promise<void>;
73
+ supports(capability: EdsisRuntimeCapability): boolean;
74
+ private resolveContext;
75
+ private applyContext;
76
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuntimeContextService, never>;
77
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RuntimeContextService>;
78
+ }
79
+
80
+ declare function provideEdsisRuntime(config?: EdsisRuntimeConfig): EnvironmentProviders;
81
+
82
+ declare const EDSIS_TABLET_MINIMUM_VIEWPORT_WIDTH = 600;
83
+ type TabletViewportBlockReason = 'portrait' | 'too-narrow' | null;
84
+ declare class TabletViewportService {
85
+ private readonly documentRef;
86
+ private readonly widthState;
87
+ private readonly heightState;
88
+ private initialized;
89
+ readonly width: _angular_core.Signal<number>;
90
+ readonly height: _angular_core.Signal<number>;
91
+ readonly isLandscape: _angular_core.Signal<boolean>;
92
+ readonly meetsMinimumWidth: _angular_core.Signal<boolean>;
93
+ readonly blockReason: _angular_core.Signal<TabletViewportBlockReason>;
94
+ readonly isSupported: _angular_core.Signal<boolean>;
95
+ initialize(): void;
96
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabletViewportService, never>;
97
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<TabletViewportService>;
98
+ }
99
+
100
+ export { EDSIS_RUNTIME_CAPABILITIES, EDSIS_RUNTIME_CONFIG, EDSIS_RUNTIME_PLATFORMS, EDSIS_RUNTIME_READY_EVENT, EDSIS_RUNTIME_SCHEMA_VERSION, EDSIS_TABLET_MINIMUM_VIEWPORT_WIDTH, NativeHostService, RuntimeContextService, TabletViewportService, createBrowserRuntimeContext, freezeEdsisRuntimeContext, isEdsisRuntimeContextV1, provideEdsisRuntime, setNativeNotificationBadge };
101
+ export type { EdsisDeviceFamily, EdsisRuntimeCapability, EdsisRuntimeConfig, EdsisRuntimeContextV1, EdsisRuntimeEnvironment, EdsisRuntimeHost, EdsisRuntimePlatform, EdsisUiProfile, EdsisWindowControlAction, ResolvedEdsisRuntimeConfig, TabletViewportBlockReason };