@felfhenor/shell 0.0.0-stage → 0.2.7

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,312 @@
1
+ import { FFButtonFeedback, FFI18nParams } from "@felfhenor/ui/core";
2
+ import * as i0 from "@angular/core";
3
+ import { EnvironmentProviders, InjectionToken, PipeTransform, TemplateRef } from "@angular/core";
4
+ import { FelOptions, FelWindowState, SaveBackup, SaveBlockReason } from "@felfhenor/core";
5
+ export declare class FelAudioService {
6
+ private readonly config;
7
+ private readonly destroyRef;
8
+ private readonly context;
9
+ private readonly master;
10
+ private readonly buffers;
11
+ private readonly focused;
12
+ private bgm?;
13
+ private bgmWanted?;
14
+ private readonly masterVolume;
15
+ private readonly bgmVolume;
16
+ readonly buttonFeedback: FFButtonFeedback;
17
+ constructor();
18
+ private listen;
19
+ private onSound;
20
+ private buffer;
21
+ private isAudible;
22
+ playSfx(name: string, detune?: number): Promise<void>;
23
+ private fadeOut;
24
+ playBgm(name: string | undefined): Promise<void>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelAudioService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
27
+ }
28
+ export interface FelSound {
29
+ src: string;
30
+ volume?: number;
31
+ }
32
+ export declare class FelGameBarComponent {
33
+ settings: import("@angular/core").OutputEmitterRef<void>;
34
+ protected readonly paused: import("@angular/core").Signal<boolean>;
35
+ protected readonly savingOff: import("@angular/core").Signal<string | undefined>;
36
+ protected togglePause(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelGameBarComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelGameBarComponent, "fel-game-bar", never, {}, {
39
+ "settings": "settings";
40
+ }, never, ["*"], true, never>;
41
+ }
42
+ export declare class FelMainMenuComponent {
43
+ continue: import("@angular/core").OutputEmitterRef<void>;
44
+ newGame: import("@angular/core").OutputEmitterRef<void>;
45
+ settings: import("@angular/core").OutputEmitterRef<void>;
46
+ changelog: import("@angular/core").OutputEmitterRef<void>;
47
+ quit: import("@angular/core").OutputEmitterRef<void>;
48
+ protected readonly isDesktop: boolean;
49
+ protected readonly hasRun: import("@angular/core").Signal<boolean>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelMainMenuComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelMainMenuComponent, "fel-main-menu", never, {}, {
52
+ "continue": "continue";
53
+ "newGame": "newGame";
54
+ "settings": "settings";
55
+ "changelog": "changelog";
56
+ "quit": "quit";
57
+ }, never, ["*"], true, never>;
58
+ }
59
+ export declare class FelSaveAlertsComponent {
60
+ restoreBackup: import("@angular/core").OutputEmitterRef<void>;
61
+ protected readonly loadFailed: import("@angular/core").Signal<boolean>;
62
+ protected readonly newerSave: import("@angular/core").Signal<boolean>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSaveAlertsComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSaveAlertsComponent, "fel-save-alerts", never, {}, {
65
+ "restoreBackup": "restoreBackup";
66
+ }, never, never, true, never>;
67
+ }
68
+ export declare class FelSettingsTabDirective {
69
+ readonly template: TemplateRef<any>;
70
+ felSettingsTab: import("@angular/core").InputSignal<string>;
71
+ label: import("@angular/core").InputSignal<string>;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsTabDirective, never>;
73
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FelSettingsTabDirective, "ng-template[felSettingsTab]", never, {
74
+ "felSettingsTab": {
75
+ "alias": "felSettingsTab";
76
+ "required": true;
77
+ "isSignal": true;
78
+ };
79
+ "label": {
80
+ "alias": "label";
81
+ "required": true;
82
+ "isSignal": true;
83
+ };
84
+ }, {}, never, never, true, never>;
85
+ }
86
+ export declare class FelSettingsLayoutComponent {
87
+ closed: import("@angular/core").OutputEmitterRef<void>;
88
+ protected readonly tabs: import("@angular/core").Signal<readonly FelSettingsTabDirective[]>;
89
+ protected readonly selected: import("@angular/core").WritableSignal<string | undefined>;
90
+ protected readonly activeTab: import("@angular/core").Signal<FelSettingsTabDirective>;
91
+ protected readonly active: import("@angular/core").Signal<string>;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsLayoutComponent, never>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsLayoutComponent, "fel-settings-layout", never, {}, {
94
+ "closed": "closed";
95
+ }, ["tabs"], never, true, never>;
96
+ }
97
+ export declare class FelTitleComponent {
98
+ logo: import("@angular/core").InputSignal<string | undefined>;
99
+ protected readonly name: string;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelTitleComponent, never>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelTitleComponent, "fel-title", never, {
102
+ "logo": {
103
+ "alias": "logo";
104
+ "required": false;
105
+ "isSignal": true;
106
+ };
107
+ }, {}, never, never, true, never>;
108
+ }
109
+ export declare const FEL_CHANGELOG_URL = "changelog.md";
110
+ export declare const felChangelogUnseen: import("@angular/core").Signal<boolean>;
111
+ export declare function felChangelogMarkSeen(): Promise<void>;
112
+ export declare function felChangelogSkipOnFirstLaunch(): Promise<void>;
113
+ export declare function felChangelogLoad(): Promise<string>;
114
+ export interface FelChangelogBlock {
115
+ kind: 'heading' | 'item' | 'text';
116
+ text: string;
117
+ level?: number;
118
+ }
119
+ export declare function felChangelogParse(markdown: string): FelChangelogBlock[];
120
+ export declare const FEL_CHANGELOG_MODAL = "fel-changelog";
121
+ declare module '@felfhenor/ui/core' {
122
+ interface FFModalRegistry {
123
+ 'fel-changelog': true;
124
+ }
125
+ }
126
+ export declare class FelChangelogModalComponent {
127
+ protected readonly blocks: import("@angular/core").WritableSignal<FelChangelogBlock[]>;
128
+ constructor();
129
+ protected close(): void;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelChangelogModalComponent, never>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelChangelogModalComponent, "fel-changelog-modal", never, {}, {}, never, never, true, never>;
132
+ }
133
+ export interface FelShellConfig {
134
+ audio?: {
135
+ sfx?: Record<string, FelSound>;
136
+ bgm?: Record<string, FelSound>;
137
+ };
138
+ }
139
+ export declare const FEL_SHELL_CONFIG: InjectionToken<FelShellConfig>;
140
+ export declare function felText(key: string, params?: FFI18nParams): string;
141
+ export declare const FEL_STRINGS: Record<string, string>;
142
+ export declare class FelTextPipe implements PipeTransform {
143
+ transform(key: string, params?: FFI18nParams): string;
144
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelTextPipe, never>;
145
+ static ɵpipe: i0.ɵɵPipeDeclaration<FelTextPipe, "felT", true>;
146
+ }
147
+ export declare class FelOverlaysComponent {
148
+ protected readonly catchUp: import("@angular/core").Signal<import("@felfhenor/core").LoopCatchUpProgress | undefined>;
149
+ protected readonly confirmingSkip: import("@angular/core").WritableSignal<boolean>;
150
+ protected readonly paused: import("@angular/core").Signal<boolean>;
151
+ protected readonly remaining: import("@angular/core").Signal<string>;
152
+ protected skip(): Promise<void>;
153
+ protected resume(): void;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelOverlaysComponent, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelOverlaysComponent, "fel-overlays", never, {}, {}, never, never, true, never>;
156
+ }
157
+ export declare function provideFelShell(config?: FelShellConfig): EnvironmentProviders;
158
+ type Pending = {
159
+ kind: 'newRun';
160
+ } | {
161
+ kind: 'restore';
162
+ backup: SaveBackup;
163
+ };
164
+ export declare class FelSavePanelComponent {
165
+ protected readonly isDesktop: boolean;
166
+ protected readonly backups: import("@angular/core").WritableSignal<SaveBackup[]>;
167
+ protected readonly exported: import("@angular/core").WritableSignal<string>;
168
+ protected readonly pending: import("@angular/core").WritableSignal<Pending | undefined>;
169
+ protected readonly message: import("@angular/core").WritableSignal<{
170
+ ok: boolean;
171
+ text: string;
172
+ } | undefined>;
173
+ protected readonly savingOff: import("@angular/core").Signal<string | undefined>;
174
+ constructor();
175
+ private refresh;
176
+ private report;
177
+ protected backupLabel(backup: SaveBackup): string;
178
+ protected export(): void;
179
+ protected import(json: string): Promise<void>;
180
+ protected importFile(event: Event): Promise<void>;
181
+ protected exportWithLogs(): Promise<void>;
182
+ protected openFolder(): void;
183
+ protected confirm(pending: Pending): Promise<void>;
184
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSavePanelComponent, never>;
185
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSavePanelComponent, "fel-save-panel", never, {}, {}, never, never, true, never>;
186
+ }
187
+ export declare function felSaveBlockText(reasons: SaveBlockReason[]): string | undefined;
188
+ type BooleanOption = { [K in keyof FelOptions]: FelOptions[K] extends boolean ? K : never; }[keyof FelOptions];
189
+ type NumberOption = { [K in keyof FelOptions]: FelOptions[K] extends number ? K : never; }[keyof FelOptions];
190
+ export declare function felSetOption<K extends keyof FelOptions>(key: K, value: FelOptions[K]): void;
191
+ export declare class FelOptionToggleComponent {
192
+ option: import("@angular/core").InputSignal<BooleanOption>;
193
+ label: import("@angular/core").InputSignal<string>;
194
+ protected readonly value: import("@angular/core").Signal<boolean>;
195
+ protected toggle(): void;
196
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelOptionToggleComponent, never>;
197
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelOptionToggleComponent, "fel-option-toggle", never, {
198
+ "option": {
199
+ "alias": "option";
200
+ "required": true;
201
+ "isSignal": true;
202
+ };
203
+ "label": {
204
+ "alias": "label";
205
+ "required": true;
206
+ "isSignal": true;
207
+ };
208
+ }, {}, never, never, true, never>;
209
+ }
210
+ export declare class FelOptionSliderComponent {
211
+ option: import("@angular/core").InputSignal<NumberOption>;
212
+ label: import("@angular/core").InputSignal<string>;
213
+ min: import("@angular/core").InputSignal<number>;
214
+ max: import("@angular/core").InputSignal<number>;
215
+ step: import("@angular/core").InputSignal<number>;
216
+ protected readonly value: import("@angular/core").Signal<number>;
217
+ protected readonly percent: import("@angular/core").Signal<string>;
218
+ protected set(event: Event): void;
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelOptionSliderComponent, never>;
220
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelOptionSliderComponent, "fel-option-slider", never, {
221
+ "option": {
222
+ "alias": "option";
223
+ "required": true;
224
+ "isSignal": true;
225
+ };
226
+ "label": {
227
+ "alias": "label";
228
+ "required": true;
229
+ "isSignal": true;
230
+ };
231
+ "min": {
232
+ "alias": "min";
233
+ "required": false;
234
+ "isSignal": true;
235
+ };
236
+ "max": {
237
+ "alias": "max";
238
+ "required": false;
239
+ "isSignal": true;
240
+ };
241
+ "step": {
242
+ "alias": "step";
243
+ "required": false;
244
+ "isSignal": true;
245
+ };
246
+ }, {}, never, never, true, never>;
247
+ }
248
+ export declare class FelSettingsAudioComponent {
249
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsAudioComponent, never>;
250
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsAudioComponent, "fel-settings-audio", never, {}, {}, never, never, true, never>;
251
+ }
252
+ export declare class FelSettingsControlsComponent {
253
+ protected readonly families: string[];
254
+ protected readonly current: import("@angular/core").Signal<string>;
255
+ protected set(family: string): void;
256
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsControlsComponent, never>;
257
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsControlsComponent, "fel-settings-controls", never, {}, {}, never, never, true, never>;
258
+ }
259
+ export declare class FelSettingsDebugComponent {
260
+ protected readonly tickRates: number[];
261
+ protected readonly hasDevTools: boolean;
262
+ protected readonly tickRate: import("@angular/core").Signal<number>;
263
+ protected setTickRate(rate: number): void;
264
+ protected openDevTools(): void;
265
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsDebugComponent, never>;
266
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsDebugComponent, "fel-settings-debug", never, {}, {}, never, never, true, never>;
267
+ }
268
+ export declare class FelSettingsDisplayComponent {
269
+ protected readonly motion: ("reduce" | "system" | "full")[];
270
+ protected readonly windowState: import("@angular/core").WritableSignal<FelWindowState | undefined>;
271
+ protected readonly motionPreference: import("@angular/core").Signal<"reduce" | "system" | "full">;
272
+ protected readonly sizesThatFit: import("@angular/core").Signal<[number, number][]>;
273
+ constructor();
274
+ protected setMotion(choice: FelOptions['motionPreference']): void;
275
+ protected toggleFullscreen(state: FelWindowState): Promise<void>;
276
+ protected setSize([width, height]: [number, number]): Promise<void>;
277
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsDisplayComponent, never>;
278
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsDisplayComponent, "fel-settings-display", never, {}, {}, never, never, true, never>;
279
+ }
280
+ export interface FelNotificationCategory {
281
+ id: string;
282
+ label: string;
283
+ }
284
+ export declare class FelSettingsGameComponent {
285
+ locales: import("@angular/core").InputSignal<string[]>;
286
+ notificationCategories: import("@angular/core").InputSignal<FelNotificationCategory[]>;
287
+ protected readonly isDesktop: boolean;
288
+ protected readonly autosaveTicks: number[];
289
+ protected readonly locale: import("@angular/core").Signal<string>;
290
+ protected readonly notifications: import("@angular/core").Signal<boolean>;
291
+ protected readonly autosave: import("@angular/core").Signal<number>;
292
+ protected setLocale(code: string): void;
293
+ protected toggleNotifications(): Promise<void>;
294
+ protected isCategoryOn(id: string): boolean;
295
+ protected toggleCategory(id: string): void;
296
+ protected setAutosave(ticks: number): void;
297
+ static ɵfac: i0.ɵɵFactoryDeclaration<FelSettingsGameComponent, never>;
298
+ static ɵcmp: i0.ɵɵComponentDeclaration<FelSettingsGameComponent, "fel-settings-game", never, {
299
+ "locales": {
300
+ "alias": "locales";
301
+ "required": false;
302
+ "isSignal": true;
303
+ };
304
+ "notificationCategories": {
305
+ "alias": "notificationCategories";
306
+ "required": false;
307
+ "isSignal": true;
308
+ };
309
+ }, {}, never, never, true, never>;
310
+ }
311
+ export declare function felDurationText(ms: number): string;
312
+ export {};
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.