@netwo/devkit 0.0.0-stage → 1.0.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.
@@ -0,0 +1,1670 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { numberAttribute, Signal, Type, Provider, AfterViewInit, ElementRef, Injector, ResourceRef, WritableSignal, ResourceStatus, ResourceSnapshot, Resource, ComponentRef, TemplateRef, EnvironmentInjector, PipeTransform, EnvironmentProviders, QueryList, NgZone, OnDestroy, Renderer2, ViewContainerRef, NgModuleRef, InjectionToken, CreateSignalOptions } from '@angular/core';
3
+ import * as _angular_router from '@angular/router';
4
+ import { ActivatedRouteSnapshot, RouterStateSnapshot, Router, Event, NavigationError, NavigationEnd, NavigationStart, Data, ResolveData, IsActiveMatchOptions, CanActivateChildFn, CanActivateFn, CanDeactivateFn, CanMatchFn, ViewTransitionsFeatureOptions, ParamMap } from '@angular/router';
5
+ import * as _netwo_devkit_angular from '@netwo/devkit/angular';
6
+ import { ComponentStore, OnStoreInit } from '@ngrx/component-store';
7
+ import * as rxjs from 'rxjs';
8
+ import { Observable, ObservableInput, Subject, OperatorFunction, MonoTypeOperatorFunction } from 'rxjs';
9
+ import { NonEmptyArray, I18nPluralMap, BinaryComparer, Sort, ValueOrObs, RequireOnlyOne, EmptyObj, IntRange, Mapper, UserInput, ValueOrArr, Into, CamelCase, VoidFn, PaginatedResult, Pagination, Constructor } from '@netwo/devkit';
10
+ import { DataSource, CollectionViewer } from '@angular/cdk/collections';
11
+ import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
12
+ import { ConnectedPosition } from '@angular/cdk/overlay';
13
+ import { Breakpoints } from '@angular/cdk/layout';
14
+ import { Time } from '@angular/common';
15
+ import { DateTime } from 'luxon';
16
+ import { PhoneNumber } from 'google-libphonenumber';
17
+ import { RxMethod } from '@ngrx/signals/rxjs-interop';
18
+ import * as _ngrx_signals from '@ngrx/signals';
19
+ import { SignalStoreFeature, EmptyFeatureResult, SignalStoreFeatureResult } from '@ngrx/signals';
20
+
21
+ declare function numberClampAttribute(min: number, max: number): typeof numberAttribute;
22
+ type IsMultiple<T extends boolean | number> = T extends boolean ? T : T extends 0 | 1 ? false : true;
23
+ interface Multiplicity {
24
+ readonly multiple: boolean;
25
+ readonly count: number;
26
+ }
27
+ declare const multiplicitySingle: {
28
+ multiple: boolean;
29
+ count: number;
30
+ };
31
+ declare function multiplicityAttribute(value: unknown): Multiplicity;
32
+
33
+ declare const Color: readonly ["accent", "error", "success", "info", "warning", "highlight", "background", "disable", undefined];
34
+ type Color = (typeof Color)[number];
35
+ interface ColorStateConf {
36
+ readonly defaultValue?: Color;
37
+ }
38
+ declare const injectColorStateConf: {
39
+ (): ColorStateConf;
40
+ (injectOptions: _angular_core.InjectOptions & {
41
+ optional?: false;
42
+ } & {
43
+ injector?: _angular_core.Injector;
44
+ }): ColorStateConf;
45
+ (injectOptions: _angular_core.InjectOptions & {
46
+ injector?: _angular_core.Injector;
47
+ }): ColorStateConf | null;
48
+ };
49
+ declare const provideColorStateConf: (() => _angular_core.Provider) & ((value: ColorStateConf | (() => ColorStateConf)) => _angular_core.Provider);
50
+ declare class ColorStateDirective {
51
+ private readonly conf;
52
+ readonly _color: _angular_core.InputSignal<"accent" | "error" | "success" | "info" | "warning" | "highlight" | "background" | "disable" | undefined>;
53
+ readonly color: _angular_core.WritableSignal<"accent" | "error" | "success" | "info" | "warning" | "highlight" | "background" | "disable" | undefined>;
54
+ get colorClass(): string[];
55
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorStateDirective, never>;
56
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColorStateDirective, "[color]", never, { "_color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
57
+ }
58
+
59
+ declare const Direction: readonly ["ltr", "rtl"];
60
+ type Direction = (typeof Direction)[number];
61
+ interface DirectionStateConf {
62
+ readonly defaultValue?: Direction;
63
+ }
64
+ declare const injectDirectionStateConf: {
65
+ (): DirectionStateConf;
66
+ (injectOptions: _angular_core.InjectOptions & {
67
+ optional?: false;
68
+ } & {
69
+ injector?: _angular_core.Injector;
70
+ }): DirectionStateConf;
71
+ (injectOptions: _angular_core.InjectOptions & {
72
+ injector?: _angular_core.Injector;
73
+ }): DirectionStateConf | null;
74
+ };
75
+ declare const provideDirectionStateConf: (() => _angular_core.Provider) & ((value: DirectionStateConf | (() => DirectionStateConf)) => _angular_core.Provider);
76
+ declare class DirectionStateDirective {
77
+ private readonly conf;
78
+ readonly _direction: _angular_core.InputSignal<"ltr" | "rtl">;
79
+ readonly direction: _angular_core.WritableSignal<"ltr" | "rtl">;
80
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DirectionStateDirective, never>;
81
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DirectionStateDirective, never, never, { "_direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
82
+ }
83
+
84
+ interface DisabledStateConf {
85
+ readonly defaultValue?: boolean;
86
+ }
87
+ declare const injectDisabledStateConf: {
88
+ (): DisabledStateConf;
89
+ (injectOptions: _angular_core.InjectOptions & {
90
+ optional?: false;
91
+ } & {
92
+ injector?: _angular_core.Injector;
93
+ }): DisabledStateConf;
94
+ (injectOptions: _angular_core.InjectOptions & {
95
+ injector?: _angular_core.Injector;
96
+ }): DisabledStateConf | null;
97
+ };
98
+ declare const provideDisabledStateConf: (() => _angular_core.Provider) & ((value: DisabledStateConf | (() => DisabledStateConf)) => _angular_core.Provider);
99
+ declare class DisabledStateDirective {
100
+ private readonly conf;
101
+ readonly _disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
102
+ private readonly externals;
103
+ readonly disabled: _angular_core.WritableSignal<boolean>;
104
+ register(value: Signal<boolean>): () => void;
105
+ unregister(value: Signal<boolean>): void;
106
+ clear(): void;
107
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DisabledStateDirective, never>;
108
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DisabledStateDirective, never, never, { "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
109
+ }
110
+
111
+ declare const Hue: readonly [10, 20, 40, 60, 80, 100, 120, undefined];
112
+ type Hue = (typeof Hue)[number];
113
+ interface HueStateConf {
114
+ readonly defaultValue?: Hue;
115
+ }
116
+ declare const injectHueStateConf: {
117
+ (): HueStateConf;
118
+ (injectOptions: _angular_core.InjectOptions & {
119
+ optional?: false;
120
+ } & {
121
+ injector?: _angular_core.Injector;
122
+ }): HueStateConf;
123
+ (injectOptions: _angular_core.InjectOptions & {
124
+ injector?: _angular_core.Injector;
125
+ }): HueStateConf | null;
126
+ };
127
+ declare const provideHueStateConf: (() => _angular_core.Provider) & ((value: HueStateConf | (() => HueStateConf)) => _angular_core.Provider);
128
+ declare class HueStateDirective {
129
+ private readonly conf;
130
+ readonly _hue: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
131
+ readonly hue: _angular_core.WritableSignal<number | undefined>;
132
+ get clazz(): string[];
133
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HueStateDirective, never>;
134
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HueStateDirective, "[hue]", never, { "_hue": { "alias": "hue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
135
+ }
136
+
137
+ interface InlineStateConf {
138
+ readonly defaultValue?: boolean;
139
+ }
140
+ declare const injectInlineStateConf: {
141
+ (): InlineStateConf;
142
+ (injectOptions: _angular_core.InjectOptions & {
143
+ optional?: false;
144
+ } & {
145
+ injector?: _angular_core.Injector;
146
+ }): InlineStateConf;
147
+ (injectOptions: _angular_core.InjectOptions & {
148
+ injector?: _angular_core.Injector;
149
+ }): InlineStateConf | null;
150
+ };
151
+ declare const provideInlineStateConf: (() => _angular_core.Provider) & ((value: InlineStateConf | (() => InlineStateConf)) => _angular_core.Provider);
152
+ declare class InlineStateDirective {
153
+ private readonly conf;
154
+ readonly _inline: _angular_core.InputSignalWithTransform<boolean, unknown>;
155
+ readonly inline: _angular_core.WritableSignal<boolean>;
156
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineStateDirective, never>;
157
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InlineStateDirective, never, never, { "_inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
158
+ }
159
+
160
+ interface InvalidStateConf {
161
+ readonly defaultValue?: boolean;
162
+ }
163
+ declare const injectInvalidStateConf: {
164
+ (): InvalidStateConf;
165
+ (injectOptions: _angular_core.InjectOptions & {
166
+ optional?: false;
167
+ } & {
168
+ injector?: _angular_core.Injector;
169
+ }): InvalidStateConf;
170
+ (injectOptions: _angular_core.InjectOptions & {
171
+ injector?: _angular_core.Injector;
172
+ }): InvalidStateConf | null;
173
+ };
174
+ declare const provideInvalidStateConf: (() => _angular_core.Provider) & ((value: InvalidStateConf | (() => InvalidStateConf)) => _angular_core.Provider);
175
+ declare class InvalidStateDirective {
176
+ private readonly conf;
177
+ readonly _invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
178
+ readonly invalid: _angular_core.WritableSignal<boolean>;
179
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<InvalidStateDirective, never>;
180
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<InvalidStateDirective, never, never, { "_invalid": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
181
+ }
182
+
183
+ interface LoadingStateConf {
184
+ readonly defaultValue?: boolean;
185
+ }
186
+ declare const injectLoadingStateConf: {
187
+ (): LoadingStateConf;
188
+ (injectOptions: _angular_core.InjectOptions & {
189
+ optional?: false;
190
+ } & {
191
+ injector?: _angular_core.Injector;
192
+ }): LoadingStateConf;
193
+ (injectOptions: _angular_core.InjectOptions & {
194
+ injector?: _angular_core.Injector;
195
+ }): LoadingStateConf | null;
196
+ };
197
+ declare const provideLoadingStateConf: (() => _angular_core.Provider) & ((value: LoadingStateConf | (() => LoadingStateConf)) => _angular_core.Provider);
198
+ declare class LoadingStateDirective {
199
+ private readonly conf;
200
+ readonly _loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
201
+ readonly loading: _angular_core.WritableSignal<boolean>;
202
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingStateDirective, never>;
203
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LoadingStateDirective, never, never, { "_loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
204
+ }
205
+
206
+ declare const Orientation: readonly ["horizontal", "vertical"];
207
+ type Orientation = (typeof Orientation)[number];
208
+ interface OrientationStateConf {
209
+ readonly defaultValue?: Orientation;
210
+ }
211
+ declare const injectOrientationStateConf: {
212
+ (): OrientationStateConf;
213
+ (injectOptions: _angular_core.InjectOptions & {
214
+ optional?: false;
215
+ } & {
216
+ injector?: _angular_core.Injector;
217
+ }): OrientationStateConf;
218
+ (injectOptions: _angular_core.InjectOptions & {
219
+ injector?: _angular_core.Injector;
220
+ }): OrientationStateConf | null;
221
+ };
222
+ declare const provideOrientationStateConf: (() => _angular_core.Provider) & ((value: OrientationStateConf | (() => OrientationStateConf)) => _angular_core.Provider);
223
+ declare class OrientationStateDirective {
224
+ private readonly conf;
225
+ readonly _orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
226
+ readonly orientation: _angular_core.WritableSignal<"horizontal" | "vertical">;
227
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<OrientationStateDirective, never>;
228
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<OrientationStateDirective, never, never, { "_orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
229
+ }
230
+
231
+ declare const Radius: readonly ["rounded", "soft", "circle", undefined];
232
+ type Radius = (typeof Radius)[number];
233
+ interface RadiusStateConf {
234
+ readonly defaultValue?: Radius;
235
+ }
236
+ declare const injectRadiusStateConf: {
237
+ (): RadiusStateConf;
238
+ (injectOptions: _angular_core.InjectOptions & {
239
+ optional?: false;
240
+ } & {
241
+ injector?: _angular_core.Injector;
242
+ }): RadiusStateConf;
243
+ (injectOptions: _angular_core.InjectOptions & {
244
+ injector?: _angular_core.Injector;
245
+ }): RadiusStateConf | null;
246
+ };
247
+ declare const provideRadiusStateConf: (() => _angular_core.Provider) & ((value: RadiusStateConf | (() => RadiusStateConf)) => _angular_core.Provider);
248
+ declare class RadiusStateDirective {
249
+ private readonly conf;
250
+ readonly _radius: _angular_core.InputSignal<"rounded" | "soft" | "circle" | undefined>;
251
+ readonly radius: _angular_core.WritableSignal<"rounded" | "soft" | "circle" | undefined>;
252
+ get radiusClass(): string[];
253
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RadiusStateDirective, never>;
254
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RadiusStateDirective, never, never, { "_radius": { "alias": "radius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
255
+ }
256
+
257
+ interface ReadonlyStateConf {
258
+ readonly defaultValue?: boolean;
259
+ }
260
+ declare const injectReadonlyStateConf: {
261
+ (): ReadonlyStateConf;
262
+ (injectOptions: _angular_core.InjectOptions & {
263
+ optional?: false;
264
+ } & {
265
+ injector?: _angular_core.Injector;
266
+ }): ReadonlyStateConf;
267
+ (injectOptions: _angular_core.InjectOptions & {
268
+ injector?: _angular_core.Injector;
269
+ }): ReadonlyStateConf | null;
270
+ };
271
+ declare const provideReadonlyStateConf: (() => _angular_core.Provider) & ((value: ReadonlyStateConf | (() => ReadonlyStateConf)) => _angular_core.Provider);
272
+ declare class ReadonlyStateDirective {
273
+ private readonly conf;
274
+ readonly _readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
275
+ readonly readonly: _angular_core.WritableSignal<boolean>;
276
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReadonlyStateDirective, never>;
277
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ReadonlyStateDirective, never, never, { "_readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
278
+ }
279
+
280
+ interface RequiredStateConf {
281
+ readonly defaultValue?: boolean;
282
+ }
283
+ declare const injectRequiredStateConf: {
284
+ (): RequiredStateConf;
285
+ (injectOptions: _angular_core.InjectOptions & {
286
+ optional?: false;
287
+ } & {
288
+ injector?: _angular_core.Injector;
289
+ }): RequiredStateConf;
290
+ (injectOptions: _angular_core.InjectOptions & {
291
+ injector?: _angular_core.Injector;
292
+ }): RequiredStateConf | null;
293
+ };
294
+ declare const provideRequiredStateConf: (() => _angular_core.Provider) & ((value: RequiredStateConf | (() => RequiredStateConf)) => _angular_core.Provider);
295
+ declare class RequiredStateDirective {
296
+ private readonly conf;
297
+ readonly _required: _angular_core.InputSignalWithTransform<boolean, unknown>;
298
+ readonly required: _angular_core.WritableSignal<boolean>;
299
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RequiredStateDirective, never>;
300
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RequiredStateDirective, never, never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
301
+ }
302
+
303
+ declare const Size: readonly ["small", "medium", "large", undefined];
304
+ type Size = (typeof Size)[number];
305
+ interface SizeStateConf {
306
+ readonly defaultValue?: Size;
307
+ }
308
+ declare const injectSizeStateConf: {
309
+ (): SizeStateConf;
310
+ (injectOptions: _angular_core.InjectOptions & {
311
+ optional?: false;
312
+ } & {
313
+ injector?: _angular_core.Injector;
314
+ }): SizeStateConf;
315
+ (injectOptions: _angular_core.InjectOptions & {
316
+ injector?: _angular_core.Injector;
317
+ }): SizeStateConf | null;
318
+ };
319
+ declare const provideSizeStateConf: (() => _angular_core.Provider) & ((value: SizeStateConf | (() => SizeStateConf)) => _angular_core.Provider);
320
+ declare class SizeStateDirective {
321
+ private readonly conf;
322
+ readonly _size: _angular_core.InputSignal<"small" | "medium" | "large" | undefined>;
323
+ readonly size: _angular_core.WritableSignal<"small" | "medium" | "large" | undefined>;
324
+ get sizeClass(): string[];
325
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SizeStateDirective, never>;
326
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SizeStateDirective, never, never, { "_size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
327
+ }
328
+
329
+ interface MinimalActivatedRouteSnapshot {
330
+ readonly routeConfig: ActivatedRouteSnapshot['routeConfig'];
331
+ readonly url: ActivatedRouteSnapshot['url'];
332
+ readonly params: ActivatedRouteSnapshot['params'];
333
+ readonly queryParams: ActivatedRouteSnapshot['queryParams'];
334
+ readonly fragment: ActivatedRouteSnapshot['fragment'];
335
+ readonly data: ActivatedRouteSnapshot['data'];
336
+ readonly outlet: ActivatedRouteSnapshot['outlet'];
337
+ readonly title: ActivatedRouteSnapshot['title'];
338
+ readonly firstChild?: MinimalActivatedRouteSnapshot;
339
+ readonly children: MinimalActivatedRouteSnapshot[];
340
+ }
341
+ interface MinimalRouterStateSnapshot {
342
+ readonly root: MinimalActivatedRouteSnapshot;
343
+ readonly url: string;
344
+ }
345
+ declare function getDeepestRoute(route: MinimalActivatedRouteSnapshot): MinimalActivatedRouteSnapshot;
346
+ declare class MinimalRouterStateSerializer {
347
+ serialize(routerState: RouterStateSnapshot): MinimalRouterStateSnapshot;
348
+ private serializeRoute;
349
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MinimalRouterStateSerializer, never>;
350
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<MinimalRouterStateSerializer>;
351
+ }
352
+
353
+ declare function provideRouterStore(): Provider[];
354
+ interface RouterState {
355
+ readonly routerState: MinimalRouterStateSnapshot;
356
+ }
357
+ declare class RouterStore extends ComponentStore<RouterState> implements OnStoreInit {
358
+ private readonly router;
359
+ private readonly serializer;
360
+ private readonly routerState$;
361
+ private readonly rootRoute$;
362
+ readonly currentRoute$: Observable<_netwo_devkit_angular.MinimalActivatedRouteSnapshot>;
363
+ readonly fragment$: Observable<string | null>;
364
+ readonly queryParams$: Observable<_angular_router.Params>;
365
+ readonly routeData$: Observable<_angular_router.Data>;
366
+ readonly routeParams$: Observable<_angular_router.Params>;
367
+ readonly title$: Observable<string | undefined>;
368
+ readonly url$: Observable<string>;
369
+ constructor(router: Router, serializer: MinimalRouterStateSerializer);
370
+ ngrxOnStoreInit(): void;
371
+ private readonly updateRouterState;
372
+ selectQueryParam(param: string): Observable<string | undefined>;
373
+ selectRouteData<TValue>(key: string): Observable<TValue | undefined>;
374
+ selectRouteParam(param: string): Observable<string | undefined>;
375
+ selectRouterEvents<AcceptedRouterEvents extends Type<Event>[]>(...acceptedEventTypes: AcceptedRouterEvents): Observable<InstanceType<AcceptedRouterEvents[number]>>;
376
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterStore, never>;
377
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RouterStore>;
378
+ }
379
+
380
+ interface NearTopConf {
381
+ readonly defaultValue: boolean;
382
+ readonly threshold: number;
383
+ }
384
+ declare const injectNearTopConf: {
385
+ (): Partial<NearTopConf>;
386
+ (injectOptions: _angular_core.InjectOptions & {
387
+ optional?: false;
388
+ } & {
389
+ injector?: _angular_core.Injector;
390
+ }): Partial<NearTopConf>;
391
+ (injectOptions: _angular_core.InjectOptions & {
392
+ injector?: _angular_core.Injector;
393
+ }): Partial<NearTopConf> | null;
394
+ };
395
+ declare const provideNearTopConf: (() => _angular_core.Provider) & ((value: Partial<NearTopConf> | (() => Partial<NearTopConf>)) => _angular_core.Provider);
396
+ declare class NearTopDirective {
397
+ private readonly elementRef;
398
+ private readonly conf;
399
+ private readonly threshold;
400
+ readonly scrollContainer: HTMLElement;
401
+ readonly topTouched: _angular_core.OutputEmitterRef<void>;
402
+ readonly isNearTop: _angular_core.WritableSignal<boolean>;
403
+ constructor();
404
+ scrolled(emitChange?: boolean): void;
405
+ private updateNearTop;
406
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NearTopDirective, never>;
407
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NearTopDirective, "[nearTop]", ["nearTop"], {}, { "topTouched": "topTouched"; }, never, never, true, never>;
408
+ }
409
+
410
+ declare class AnchorToTopItemDirective {
411
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AnchorToTopItemDirective, never>;
412
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AnchorToTopItemDirective, "[anchorToTopItem]", never, {}, {}, never, never, true, never>;
413
+ }
414
+ declare class AnchorToTopDirective implements AfterViewInit {
415
+ private readonly nearTopDirective;
416
+ private readonly destroyRef;
417
+ private readonly items;
418
+ ngAfterViewInit(): void;
419
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AnchorToTopDirective, never>;
420
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AnchorToTopDirective, "[anchorToTop]", ["anchorToTop"], {}, {}, ["items"], never, true, [{ directive: typeof NearTopDirective; inputs: {}; outputs: { "topTouched": "topTouched"; }; }]>;
421
+ }
422
+
423
+ declare class ClampTargetDirective {
424
+ readonly elementRef: ElementRef<HTMLElement>;
425
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClampTargetDirective, never>;
426
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClampTargetDirective, "[netwoClampTarget]", never, {}, {}, never, never, true, never>;
427
+ }
428
+ declare class ClampObserverDirective {
429
+ private readonly host;
430
+ private readonly destroyRef;
431
+ readonly cssSelector: _angular_core.InputSignal<string | undefined>;
432
+ readonly observerDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
433
+ readonly target: _angular_core.Signal<ClampTargetDirective | undefined>;
434
+ readonly clamped: _angular_core.WritableSignal<boolean>;
435
+ constructor();
436
+ private isClamped;
437
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClampObserverDirective, never>;
438
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClampObserverDirective, "[netwoClampObserver]", ["netwoClampObserver"], { "cssSelector": { "alias": "netwoClampObserver"; "required": false; "isSignal": true; }; "observerDisabled": { "alias": "observerDisabled"; "required": false; "isSignal": true; }; }, {}, ["target"], never, true, never>;
439
+ }
440
+
441
+ declare class ErrorDirective {
442
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ErrorDirective, never>;
443
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ErrorDirective, "netwo-error,[netwoError]", never, {}, {}, never, never, true, never>;
444
+ }
445
+
446
+ declare class HideIfEmptyDirective {
447
+ private readonly destroyRef;
448
+ private readonly elementRef;
449
+ readonly selector: _angular_core.ModelSignal<string | undefined>;
450
+ readonly hasContent: _angular_core.WritableSignal<boolean>;
451
+ constructor();
452
+ private toggleDisplay;
453
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HideIfEmptyDirective, never>;
454
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HideIfEmptyDirective, "[netwoHideIfEmpty]", never, { "selector": { "alias": "netwoHideIfEmpty"; "required": false; "isSignal": true; }; }, { "selector": "netwoHideIfEmptyChange"; }, never, never, true, never>;
455
+ }
456
+
457
+ declare class HintDirective {
458
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HintDirective, never>;
459
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HintDirective, "netwo-hint,[netwoHint]", never, {}, {}, never, never, true, never>;
460
+ }
461
+
462
+ declare class LabelDirective {
463
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelDirective, never>;
464
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LabelDirective, "netwo-label,[netwoLabel]", never, {}, {}, never, never, true, never>;
465
+ }
466
+
467
+ type ImplicitContext<T, D extends object = object> = {
468
+ $implicit: T;
469
+ } & D;
470
+ /**
471
+ * Force typings for the context of NgTemplate
472
+ *
473
+ * Example:
474
+ *
475
+ * ``` items.component.ts
476
+ * itemCtx: ImplicitContext<string, {
477
+ * arg1: number;
478
+ * arg2: boolean;
479
+ * }>;
480
+ * ```
481
+ *
482
+ * ``` items.component.html
483
+ * <ng-template let-item let-arg1="arg1" let-arg2="arg2" [templateCtx]="itemCtx"
484
+ * ```
485
+ *
486
+ * item will be typed as string, arg1 is number and arg2 is boolean
487
+ */
488
+ declare class TemplateContextDirective<T> {
489
+ readonly templateCtx: _angular_core.InputSignal<T>;
490
+ static ngTemplateContextGuard<T>(_dir: TemplateContextDirective<T>, _ctx: unknown): _ctx is T;
491
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplateContextDirective<any>, never>;
492
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TemplateContextDirective<any>, "[templateCtx]", never, { "templateCtx": { "alias": "templateCtx"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
493
+ }
494
+
495
+ type LetContext<T> = ImplicitContext<T, {
496
+ netwoLet: T;
497
+ }>;
498
+ declare class LetDirective<T> {
499
+ private readonly context;
500
+ set value(value: T);
501
+ get value(): T;
502
+ static netwoLetUseIfTypeGuard: void;
503
+ static ngTemplateGuard_netwoLet: 'binding';
504
+ static ngTemplateContextGuard<T>(_dir: LetDirective<T>, _ctx: any): _ctx is LetContext<Exclude<T, false | 0 | '' | null | undefined>>;
505
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LetDirective<any>, never>;
506
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LetDirective<any>, "[netwoLet]", ["netwoLet"], { "value": { "alias": "netwoLet"; "required": false; }; }, {}, never, never, true, never>;
507
+ }
508
+
509
+ interface NearBottonConf {
510
+ readonly defaultValue: boolean;
511
+ readonly threshold: number;
512
+ }
513
+ declare const injectNearBottomConf: {
514
+ (): Partial<NearBottonConf>;
515
+ (injectOptions: _angular_core.InjectOptions & {
516
+ optional?: false;
517
+ } & {
518
+ injector?: _angular_core.Injector;
519
+ }): Partial<NearBottonConf>;
520
+ (injectOptions: _angular_core.InjectOptions & {
521
+ injector?: _angular_core.Injector;
522
+ }): Partial<NearBottonConf> | null;
523
+ };
524
+ declare const provideNearBottomConf: (() => _angular_core.Provider) & ((value: Partial<NearBottonConf> | (() => Partial<NearBottonConf>)) => _angular_core.Provider);
525
+ declare class NearBottomDirective {
526
+ private readonly elementRef;
527
+ private readonly conf;
528
+ private readonly threshold;
529
+ readonly scrollContainer: HTMLElement;
530
+ readonly bottomTouched: _angular_core.OutputEmitterRef<void>;
531
+ readonly isNearBottom: _angular_core.WritableSignal<boolean>;
532
+ constructor();
533
+ scrolled(emitChange?: boolean): void;
534
+ private updateNearBottom;
535
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NearBottomDirective, never>;
536
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NearBottomDirective, "[nearBottom]", ["nearBottom"], {}, { "bottomTouched": "bottomTouched"; }, never, never, true, never>;
537
+ }
538
+
539
+ declare class PreventDefaultDirective {
540
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PreventDefaultDirective, never>;
541
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PreventDefaultDirective, "[preventDefault]", never, {}, {}, never, never, true, never>;
542
+ }
543
+
544
+ declare function patchRouterLinkDisabled(disabled: Signal<boolean>): void;
545
+ declare class RouterLinkDisabledDirective {
546
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
547
+ constructor();
548
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterLinkDisabledDirective, never>;
549
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RouterLinkDisabledDirective, "[routerLinkDisabled]", never, { "disabled": { "alias": "routerLinkDisabled"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
550
+ }
551
+
552
+ declare class ScrollToBottomItemDirective {
553
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollToBottomItemDirective, never>;
554
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollToBottomItemDirective, "[scrollToBottomItem]", never, {}, {}, never, never, true, never>;
555
+ }
556
+ declare class ScrollToBottomDirective {
557
+ private readonly nearBottomDirective;
558
+ readonly autoScrollToBottom: _angular_core.InputSignalWithTransform<boolean, unknown>;
559
+ readonly items: _angular_core.Signal<readonly ScrollToBottomItemDirective[]>;
560
+ constructor();
561
+ private onItemElementsChanged;
562
+ scrollToBottom(behavior: 'auto' | 'smooth'): void;
563
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollToBottomDirective, never>;
564
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollToBottomDirective, "[scrollToBottom]", ["scrollToBottom"], { "autoScrollToBottom": { "alias": "autoScrollToBottom"; "required": false; "isSignal": true; }; }, {}, ["items"], never, true, [{ directive: typeof NearBottomDirective; inputs: {}; outputs: { "bottomTouched": "bottomTouched"; }; }]>;
565
+ }
566
+
567
+ declare class StopPropagationDirective {
568
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
569
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StopPropagationDirective, "[stopPropagation]", never, {}, {}, never, never, true, never>;
570
+ }
571
+
572
+ declare class SubtitleDirective {
573
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SubtitleDirective, never>;
574
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SubtitleDirective, "netwo-subtitle,[netwoSubtitle]", never, {}, {}, never, never, true, never>;
575
+ }
576
+
577
+ declare class TitleDirective {
578
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TitleDirective, never>;
579
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TitleDirective, "netwo-title,[netwoTitle]", never, {}, {}, never, never, true, never>;
580
+ }
581
+
582
+ declare const anchorTarget: readonly ["_self", "_blank", "_parent", "_top", "_unfencedTop"];
583
+ type AnchorTarget = (typeof anchorTarget)[number];
584
+ declare class WindowOpenDirective {
585
+ private readonly window;
586
+ readonly url: _angular_core.InputSignal<string>;
587
+ readonly target: _angular_core.InputSignal<"_self" | "_blank" | "_parent" | "_top" | "_unfencedTop">;
588
+ onClick(): void;
589
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowOpenDirective, never>;
590
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WindowOpenDirective, "[netwoWindowOpen]", never, { "url": { "alias": "netwoWindowOpen"; "required": true; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
591
+ }
592
+
593
+ interface CurrencyOptions {
594
+ readonly digitsInfo?: string;
595
+ readonly injector?: Injector;
596
+ readonly noIndicator?: boolean;
597
+ }
598
+ declare function formatCurrency(value: number, options?: CurrencyOptions): string | undefined;
599
+
600
+ interface CurrencyPerMonthOptions extends Omit<CurrencyOptions, 'noIndicator'> {
601
+ readonly periodicity?: number;
602
+ }
603
+ declare function formatMonthlyCurrency(value: number, options?: CurrencyPerMonthOptions): string | undefined;
604
+
605
+ type FormattedValue = string | I18nPluralMap;
606
+ interface UnitFormatterRule<TValue, TUnit extends number = number> {
607
+ convert: (value: TValue) => TUnit;
608
+ format: (unit: TUnit) => FormattedValue;
609
+ matches: (unit: TUnit) => boolean;
610
+ }
611
+ type UnitFormatterRulesFn<TValue, TUnit extends number = number> = () => NonEmptyArray<UnitFormatterRule<TValue, TUnit>>;
612
+ interface UnitFormatterConfig<TValue, TRawValue = TValue, TUnit extends number = number> {
613
+ readonly coerce?: (value: TRawValue) => TValue;
614
+ readonly fallback: (rawValue: TRawValue, value: TValue) => string;
615
+ readonly rules: UnitFormatterRulesFn<TValue, TUnit>;
616
+ }
617
+ interface UnitFormatterFn<TValue> {
618
+ (value: TValue, options?: {
619
+ injector?: Injector;
620
+ }): string;
621
+ }
622
+ declare function createUnitFormatter<TValue, TValueRaw = TValue, TUnit extends number = number>({ coerce, fallback, rules, }: UnitFormatterConfig<TValue, TValueRaw, TUnit>): UnitFormatterFn<TValueRaw>;
623
+
624
+ declare function broadcastChannel<TMessage>(name: string, guard: (data: unknown) => data is TMessage): {
625
+ close: () => void;
626
+ closed: _angular_core.Signal<boolean>;
627
+ listen: (fn: (msg: TMessage) => void) => (() => void);
628
+ messages$: rxjs.Observable<TMessage>;
629
+ publish: (evt: TMessage) => void;
630
+ };
631
+
632
+ interface WrappedParams<T> {
633
+ readonly reload: number;
634
+ readonly params: T;
635
+ }
636
+ interface LoaderResourceState<T, R> {
637
+ readonly error: Error | undefined;
638
+ readonly nextParams: R | undefined;
639
+ readonly params: R;
640
+ readonly result: T;
641
+ readonly status: ResourceStatus;
642
+ }
643
+ type LoaderResourceStream<T, R> = (params: R, abortSignal: AbortSignal) => ObservableInput<T>;
644
+ interface LoaderResourceImplConfig<T, R> {
645
+ readonly compareParams: BinaryComparer<R>;
646
+ readonly compareResult?: BinaryComparer<T>;
647
+ readonly defaultValue: T;
648
+ readonly injector: Injector;
649
+ readonly lazy: boolean;
650
+ }
651
+ interface LoaderResourceRef<T, R> extends ResourceRef<T> {
652
+ hasValue(): this is LoaderResourceRef<Exclude<T, undefined>, R>;
653
+ readonly isError: Signal<boolean>;
654
+ readonly isIdle: Signal<boolean>;
655
+ readonly isResolved: Signal<boolean>;
656
+ readonly params: WritableSignal<R>;
657
+ }
658
+ declare class LoaderResourceImpl<T, R> implements LoaderResourceRef<T, R> {
659
+ readonly srcParams: WritableSignal<R>;
660
+ readonly stream: LoaderResourceStream<T, R>;
661
+ readonly config: LoaderResourceImplConfig<T, R>;
662
+ private loadSub;
663
+ private destroyed;
664
+ private readonly initialState;
665
+ protected readonly state: WritableSignal<LoaderResourceState<T, R>>;
666
+ readonly status: Signal<ResourceStatus>;
667
+ readonly error: Signal<Error | undefined>;
668
+ readonly isError: Signal<boolean>;
669
+ readonly isIdle: Signal<boolean>;
670
+ readonly isResolved: Signal<boolean>;
671
+ readonly isLoading: Signal<boolean>;
672
+ readonly value: WritableSignal<T>;
673
+ readonly params: WritableSignal<R>;
674
+ private readonly nextParams;
675
+ private readonly externalParams;
676
+ readonly snapshot: Signal<ResourceSnapshot<T>>;
677
+ protected readonly abort$: Subject<void>;
678
+ protected createOperator(): <In extends WrappedParams<R>, Out extends T>(project: (input: In) => Observable<Out>) => OperatorFunction<In, Out>;
679
+ constructor(srcParams: WritableSignal<R>, stream: LoaderResourceStream<T, R>, config: LoaderResourceImplConfig<T, R>);
680
+ hasValue(): this is LoaderResourceRef<Exclude<T, undefined>, R>;
681
+ asReadonly(): Resource<T>;
682
+ destroy(): void;
683
+ set(value: T): void;
684
+ update(updater: (value: T) => T): void;
685
+ setParams(params: R): void;
686
+ updateParams(updater: (params: R) => R): void;
687
+ reload(): boolean;
688
+ protected reset(): void;
689
+ protected compareParams(prev: R, next: R): boolean;
690
+ }
691
+ interface LoaderResourceOptions<T, R> {
692
+ readonly compareParams?: BinaryComparer<R>;
693
+ readonly compareResult?: BinaryComparer<T>;
694
+ readonly defaultValue?: NoInfer<T>;
695
+ readonly injector?: Injector;
696
+ readonly lazy?: boolean;
697
+ readonly params: () => R;
698
+ readonly stream: LoaderResourceStream<T, R>;
699
+ }
700
+ declare function loaderResource<T, R>(opts: LoaderResourceOptions<T, R> & {
701
+ readonly defaultValue: T;
702
+ }): LoaderResourceRef<T, R>;
703
+ declare function loaderResource<T, R>(opts: LoaderResourceOptions<T, R>): LoaderResourceRef<T | undefined, R>;
704
+
705
+ interface PagedResult<T> {
706
+ readonly data: T[];
707
+ readonly total: number;
708
+ }
709
+ interface PagedParams<T> {
710
+ readonly params: T;
711
+ readonly pageIndex: number;
712
+ readonly pageSize: number;
713
+ readonly search?: string;
714
+ readonly sort?: Sort;
715
+ }
716
+ type PagedResourceRef<T, R> = LoaderResourceRef<PagedResult<T>, PagedParams<R>>;
717
+ type PagedResourceStream<T, R> = LoaderResourceStream<PagedResult<T>, PagedParams<R>>;
718
+ interface PagedResourceOptions<T, R> {
719
+ readonly compareParams?: BinaryComparer<R>;
720
+ readonly compareResult?: BinaryComparer<T[]>;
721
+ readonly defaultPageSize?: number;
722
+ readonly defaultValue?: PagedResult<NoInfer<T>>;
723
+ readonly injector?: Injector;
724
+ readonly lazy?: boolean;
725
+ readonly params?: () => R;
726
+ readonly stream: PagedResourceStream<T, R>;
727
+ }
728
+ declare function pagedResource<T, R>({ compareParams, compareResult, defaultPageSize, defaultValue, params, injector, lazy, stream, }: PagedResourceOptions<T, R>): PagedResourceRef<T, R>;
729
+ declare function pagedParamsComparer<T>(comparer: BinaryComparer<T>): BinaryComparer<PagedParams<T>>;
730
+ declare function pagedResultComparer<T>(comparer: BinaryComparer<T[]>): BinaryComparer<PagedResult<T>>;
731
+ declare function pagedParams<T>(params: (() => T) | undefined, pageSize: number): WritableSignal<PagedParams<T>>;
732
+ declare function pagedResult<T>(data: T[]): PagedResult<T>;
733
+
734
+ interface ScrollResourceRef<T, R> extends PagedResourceRef<T, R> {
735
+ isPageLoaded(pageIndex: number): boolean;
736
+ loadPage(pageIndex: number): void;
737
+ loadPagesInRange(startOffset: number, endOffset: number): void;
738
+ reload(currentIndex?: number): boolean;
739
+ reset(): void;
740
+ }
741
+ type ScrollResourceStream<T, R> = PagedResourceStream<T, R>;
742
+ interface ScrollResourceOptions<T, R> extends PagedResourceOptions<T, R> {
743
+ readonly loadDelay?: number;
744
+ readonly maxParallelLoad?: number;
745
+ }
746
+ declare function scrollResource<T, R>({ compareParams, compareResult, defaultPageSize, defaultValue, injector, lazy, loadDelay, maxParallelLoad, params, stream, }: ScrollResourceOptions<T, R>): ScrollResourceRef<T, R>;
747
+
748
+ declare class ScrollDataSource<TResult, TFilters> extends DataSource<TResult> {
749
+ readonly ref: ScrollResourceRef<TResult, TFilters>;
750
+ readonly injector: Injector;
751
+ private _subscription;
752
+ private readonly data$;
753
+ constructor(ref: ScrollResourceRef<TResult, TFilters>, injector: Injector);
754
+ connect(collectionViewer: CollectionViewer): Observable<readonly TResult[]>;
755
+ disconnect(_collectionViewer: CollectionViewer): void;
756
+ }
757
+
758
+ declare function isChunkError(src: NavigationError): boolean;
759
+
760
+ declare function makeInjectionRunnable<Fn extends (...args: any[]) => any>(fn: Fn, injector?: Injector): (...args: Parameters<Fn>) => ReturnType<Fn>;
761
+ declare function makeNonReactive<Fn extends (...args: any[]) => any>(fn: Fn): (...args: Parameters<Fn>) => ReturnType<Fn>;
762
+
763
+ declare function isTemplateRef<T = unknown>(obj: unknown): obj is TemplateRef<T>;
764
+ declare function isComponentRef<T = unknown>(obj: unknown): obj is ComponentRef<T>;
765
+ declare function isFunctionConstructor<C = unknown>(value: unknown): value is Type<C>;
766
+ declare function isHttpResponse<T>(error: unknown): error is HttpResponse<T>;
767
+ declare function isHttpErrorResponse(error: unknown): error is HttpErrorResponse;
768
+ declare function isInjector(value: any): value is Injector;
769
+ declare function isResourceRef<T = unknown>(value: any): value is ResourceRef<T>;
770
+ declare function isNavigationStart(value: Event): value is NavigationStart;
771
+ declare function isNavigationEnd(value: Event): value is NavigationEnd;
772
+ declare function isNavigationError(value: Event): value is NavigationError;
773
+
774
+ type ContainsAllKeys<TSuper, TSub> = {
775
+ [K in keyof TSub]: K extends keyof TSuper ? true : false;
776
+ }[keyof TSub] extends true ? keyof TSuper : never;
777
+ type RequireSubsetOf<TSuper extends string, TSub extends string> = ContainsAllKeys<Record<TSuper, any>, Record<TSub, any>>;
778
+ type InjectableDict = Record<string, Type<any>>;
779
+ type InjectedDict<TDict extends InjectableDict> = {
780
+ [K in keyof TDict]: TDict[K] extends Type<infer U> ? U | undefined : never;
781
+ };
782
+ type InjectFn<TDict extends InjectableDict> = <TKey extends string>(selector: Signal<RequireSubsetOf<TKey, keyof TDict & string> | undefined>) => Signal<InjectedDict<TDict>>;
783
+ type ProvideFn = () => Provider;
784
+ declare function createInjectDict<TDict extends InjectableDict>(dict: TDict): [InjectFn<TDict>, ProvideFn];
785
+
786
+ declare function getCurrentInjector(): Injector | undefined;
787
+
788
+ declare function safeResourceValue<T>(input: Resource<T>, defaultValue: NoInfer<T>): Signal<NonNullable<T>>;
789
+ declare function safeResourceValue<T>(input: Resource<T>): Signal<T | undefined>;
790
+
791
+ declare const OverlayPosition: readonly ["bottom-center", "bottom-end", "bottom-start", "end-bottom", "end-center", "end-top", "start-bottom", "start-center", "start-top", "top-center", "top-end", "top-start"];
792
+ type OverlayPosition = (typeof OverlayPosition)[number];
793
+ declare const BOTTOM_CENTER_POSITION: ConnectedPosition;
794
+ declare const BOTTOM_END_POSITION: ConnectedPosition;
795
+ declare const BOTTOM_START_POSITION: ConnectedPosition;
796
+ declare const END_BOTTOM_POSITION: ConnectedPosition;
797
+ declare const END_CENTER_POSITION: ConnectedPosition;
798
+ declare const END_TOP_POSITION: ConnectedPosition;
799
+ declare const START_BOTTOM_POSITION: ConnectedPosition;
800
+ declare const START_CENTER_POSITION: ConnectedPosition;
801
+ declare const START_TOP_POSITION: ConnectedPosition;
802
+ declare const TOP_CENTER_POSITION: ConnectedPosition;
803
+ declare const TOP_END_POSITION: ConnectedPosition;
804
+ declare const TOP_START_POSITION: ConnectedPosition;
805
+ declare const OVERLAY_POSITIONS: Record<OverlayPosition, ConnectedPosition[]>;
806
+
807
+ declare function provideExistingOrFallback(clazz: Type<unknown>): Provider[];
808
+
809
+ declare function data(...items: Data[]): Data;
810
+ declare function resolveData(...items: ResolveData[]): ResolveData;
811
+ declare function dataEntry<const TKey extends string, TValue>(key: TKey, value: TValue): Readonly<Record<TKey, TValue>>;
812
+
813
+ declare const IsUrlSubset: IsActiveMatchOptions;
814
+ declare const IsUrlExact: IsActiveMatchOptions;
815
+
816
+ type AnyGuardFn = CanActivateChildFn | CanActivateFn | CanDeactivateFn<unknown> | CanMatchFn;
817
+ type GuardGroup<T extends AnyGuardFn> = T[];
818
+ type GuardRef<T extends AnyGuardFn> = T & {
819
+ then: (...group: GuardGroup<T>) => GuardRef<T>;
820
+ };
821
+ declare function composeGuards<T extends AnyGuardFn>(...firstGroup: GuardGroup<T>): GuardRef<T>;
822
+
823
+ declare function useScreenSize(injector?: Injector): _angular_core.Signal<{
824
+ match: string;
825
+ breakpoints: {
826
+ [Breakpoints.XSmall]: boolean;
827
+ [Breakpoints.Small]: boolean;
828
+ [Breakpoints.Medium]: boolean;
829
+ [Breakpoints.Large]: boolean;
830
+ [Breakpoints.XLarge]: boolean;
831
+ };
832
+ }>;
833
+
834
+ interface TaskEffectOrigin<InputType> {
835
+ readonly input: InputType;
836
+ readonly taskId: number;
837
+ }
838
+ type TaskEffectEvent<InputType, SuccessType> = RequireOnlyOne<TaskEffectEventMapping<SuccessType>, never, 'type'> & {
839
+ readonly origin: TaskEffectOrigin<InputType>;
840
+ };
841
+ interface TaskEffectEventMapping<SuccessType> {
842
+ readonly error: TaskEffectError;
843
+ readonly complete: TaskEffectComplete<SuccessType>;
844
+ readonly cancel: EmptyObj;
845
+ }
846
+ interface TaskEffectComplete<SuccessType> {
847
+ readonly result: SuccessType[];
848
+ }
849
+ interface TaskEffectError {
850
+ readonly err: unknown;
851
+ }
852
+ interface TaskEffectReport<InputType, SuccessType> {
853
+ readonly events: TaskEffectEvent<InputType, SuccessType>[];
854
+ readonly cancelled: boolean;
855
+ readonly completed: boolean;
856
+ readonly failed: boolean;
857
+ readonly success: boolean;
858
+ }
859
+ interface TaskEffectFn<InputType, SuccessType> {
860
+ (input: InputType, index: number): ObservableInput<SuccessType>;
861
+ }
862
+ interface TaskEffectConf<InputType, SuccessType> {
863
+ input?: InputType;
864
+ task: TaskEffectFn<InputType, SuccessType>;
865
+ start?: (input: NoInfer<InputType>) => void;
866
+ success?: (result: SuccessType, input: NoInfer<InputType>) => void;
867
+ error?: (err: unknown, input: NoInfer<InputType>) => void;
868
+ complete?: (result: SuccessType[], input: NoInfer<InputType>) => void;
869
+ finalize?: (input: NoInfer<InputType>) => void;
870
+ operator?: <OriginType extends TaskEffectOrigin<InputType>, SuccessType>(task: TaskEffectFn<OriginType, SuccessType>) => OperatorFunction<OriginType, SuccessType>;
871
+ injector?: Injector;
872
+ }
873
+ interface TaskEffectRef<InputType, SuccessType> {
874
+ readonly afterFirstTask$: Observable<SuccessType>;
875
+ readonly afterTask$: Observable<SuccessType[]>;
876
+ readonly cancel: () => void;
877
+ readonly loading: Signal<boolean>;
878
+ readonly report$: Observable<TaskEffectReport<InputType, SuccessType>>;
879
+ }
880
+ interface TaskEffectCallerFn<InputType, SuccessType> {
881
+ loading: Signal<boolean>;
882
+ (input?: ValueOrObs<InputType>, callerConf?: TaskEffectCallerConf): TaskEffectRef<InputType, SuccessType>;
883
+ }
884
+ interface TaskEffectCallerConf {
885
+ injector?: Injector;
886
+ }
887
+ declare function taskEffect<InputType, SuccessType>(conf: TaskEffectConf<InputType, SuccessType>): TaskEffectCallerFn<InputType, SuccessType>;
888
+ declare class TaskError extends Error {
889
+ readonly causes: unknown[];
890
+ constructor(message: string, causes: unknown[]);
891
+ }
892
+
893
+ type BaseNum = IntRange<0, 10>;
894
+ type TwoDigit<T> = T extends BaseNum ? `0${T}` : `${T & number}`;
895
+ type Hours = TwoDigit<IntRange<0, 24>>;
896
+ type Minutes = TwoDigit<IntRange<0, 60>>;
897
+ type RawTime = `${Hours}:${Minutes}`;
898
+ type TimeInput = RawTime | Time | Date | DateTime;
899
+
900
+ declare class TimeUtils {
901
+ private readonly hours;
902
+ private readonly minutes;
903
+ private constructor();
904
+ static of(input: TimeInput): TimeUtils;
905
+ into(): Time;
906
+ intoRaw(): RawTime;
907
+ intoDateTime(date?: Date): DateTime;
908
+ isAfter(target: TimeUtils): boolean;
909
+ isAfterOrEq(target: TimeUtils): boolean;
910
+ isBefore(target: TimeUtils): boolean;
911
+ isBeforeOrEq(target: TimeUtils): boolean;
912
+ isSame(target: TimeUtils): boolean;
913
+ add(target: TimeUtils): TimeUtils;
914
+ subtract(target: TimeUtils): TimeUtils;
915
+ }
916
+
917
+ declare function triggerFileDownload(file: File, options?: {
918
+ injector?: Injector;
919
+ target?: '_self' | '_blank';
920
+ }): void;
921
+
922
+ declare const skipForFragmentAndQueryChange: ViewTransitionsFeatureOptions;
923
+
924
+ declare function getRootInjector(): EnvironmentInjector;
925
+ declare function setRootInjector(injector: EnvironmentInjector): void;
926
+
927
+ declare class AddressPipe implements PipeTransform {
928
+ transform(customer: {
929
+ streetNumber: string | undefined;
930
+ street: string | undefined;
931
+ zipCode: string | undefined;
932
+ city: string | undefined;
933
+ } | undefined): string;
934
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AddressPipe, never>;
935
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<AddressPipe, "address", true>;
936
+ }
937
+
938
+ declare class DiffOfArrPipe implements PipeTransform {
939
+ transform(arr1: string[], arr2: string[]): string[];
940
+ transform<T>(arr1: T[], arr2: T[], comparer?: BinaryComparer<T>): T[];
941
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DiffOfArrPipe, never>;
942
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<DiffOfArrPipe, "diffOfArr", true>;
943
+ }
944
+
945
+ declare class FilterOfArrPipe implements PipeTransform {
946
+ transform<T, Args extends unknown[] = []>(items: T[], predicate: Mapper<T, boolean, Args>, ...args: Args): T[];
947
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterOfArrPipe, never>;
948
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<FilterOfArrPipe, "filterOfArr", true>;
949
+ }
950
+
951
+ declare class GroupByOfArrPipe implements PipeTransform {
952
+ transform<K, V>(items: V[], keyGetter: (item: V) => K): Map<K, V[]>;
953
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<GroupByOfArrPipe, never>;
954
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<GroupByOfArrPipe, "groupByOfArr", true>;
955
+ }
956
+
957
+ declare class JoinOfArrPipe implements PipeTransform {
958
+ transform<T>(items: T[], separator?: string): string;
959
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<JoinOfArrPipe, never>;
960
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<JoinOfArrPipe, "joinOfArr", true>;
961
+ }
962
+
963
+ declare class MapOfArrPipe implements PipeTransform {
964
+ transform<T, U>(items: T[], callbackfn: (value: T, index: number, array: T[]) => U): U[];
965
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapOfArrPipe, never>;
966
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<MapOfArrPipe, "mapOfArr", true>;
967
+ }
968
+
969
+ declare class PluckOfArrPipe implements PipeTransform {
970
+ transform<T extends object, K extends keyof T>(items: T[], key: K): T[K][];
971
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PluckOfArrPipe, never>;
972
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<PluckOfArrPipe, "pluckOfArr", true>;
973
+ }
974
+
975
+ declare class SortOfArrPipe implements PipeTransform {
976
+ transform<T>(items: T[], sortfn: (a: T, b: T) => number): T[];
977
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortOfArrPipe, never>;
978
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<SortOfArrPipe, "sortOfArr", true>;
979
+ }
980
+
981
+ declare class CapitalizePipe implements PipeTransform {
982
+ transform(value: string | undefined | null): string | undefined | null;
983
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CapitalizePipe, never>;
984
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<CapitalizePipe, "capitalize", true>;
985
+ }
986
+
987
+ declare class CurrencyPipe implements PipeTransform {
988
+ private readonly injector;
989
+ transform(value: number | undefined, options?: Omit<CurrencyOptions, 'injector'>): string | undefined;
990
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CurrencyPipe, never>;
991
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<CurrencyPipe, "currency", true>;
992
+ }
993
+
994
+ declare class FileSizePipe implements PipeTransform {
995
+ transform(value: number): string;
996
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileSizePipe, never>;
997
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<FileSizePipe, "fileSize", true>;
998
+ }
999
+
1000
+ declare class FrenchPhoneNumberPipe implements PipeTransform {
1001
+ transform(value?: string): string | undefined;
1002
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrenchPhoneNumberPipe, never>;
1003
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<FrenchPhoneNumberPipe, "frenchPhoneNumber", true>;
1004
+ }
1005
+
1006
+ declare function keyIn<T extends object, K extends keyof T>(value: T, key: K): boolean;
1007
+ declare class KeyInPipe implements PipeTransform {
1008
+ transform<T extends object, K extends keyof T>(value: T, key: K): boolean;
1009
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyInPipe, never>;
1010
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<KeyInPipe, "keyIn", true>;
1011
+ }
1012
+
1013
+ declare class LinkifyPipe implements PipeTransform {
1014
+ transform(value: string, options?: {
1015
+ target?: '_self' | '_blank';
1016
+ classList?: string[];
1017
+ text?: string | ((url: string) => string);
1018
+ }): string;
1019
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LinkifyPipe, never>;
1020
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<LinkifyPipe, "linkify", true>;
1021
+ }
1022
+
1023
+ /**
1024
+ * Maps object to an arbitrary result through a mapper function
1025
+ *
1026
+ * Example
1027
+ * ```
1028
+ * {{ object | map: toTile }}
1029
+ * ```
1030
+ */
1031
+ declare class MapPipe implements PipeTransform {
1032
+ /**
1033
+ * @param value an item to transform
1034
+ * @param mapper a mapping function
1035
+ * @param args arbitrary number of additional arguments
1036
+ */
1037
+ transform<I, O, Args extends unknown[] = []>(value: I, mapper: Mapper<I, O, Args>, ...args: Args): O;
1038
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MapPipe, never>;
1039
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<MapPipe, "map", true>;
1040
+ }
1041
+
1042
+ declare class MonthlyCurrencyPipe implements PipeTransform {
1043
+ private readonly injector;
1044
+ transform(value: number | undefined, options?: Omit<CurrencyPerMonthOptions, 'injector'>): string | undefined;
1045
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MonthlyCurrencyPipe, never>;
1046
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<MonthlyCurrencyPipe, "monthlyCurrency", true>;
1047
+ }
1048
+
1049
+ declare class PhoneNumberPipe implements PipeTransform {
1050
+ transform(value: PhoneNumber | string): string | undefined;
1051
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
1052
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<PhoneNumberPipe, "phoneNumber", true>;
1053
+ }
1054
+
1055
+ declare class StrictTitleCasePipe implements PipeTransform {
1056
+ transform(value: string | undefined | null): string | undefined | null;
1057
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrictTitleCasePipe, never>;
1058
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<StrictTitleCasePipe, "strictTitleCase", true>;
1059
+ }
1060
+
1061
+ declare class TruncatePipe implements PipeTransform {
1062
+ transform(value: string, length?: number): string;
1063
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TruncatePipe, never>;
1064
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
1065
+ }
1066
+
1067
+ declare class UserFullnamePipe implements PipeTransform {
1068
+ transform(value: UserInput): string;
1069
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserFullnamePipe, never>;
1070
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<UserFullnamePipe, "userFullname", true>;
1071
+ }
1072
+
1073
+ declare class UserInitialPipe implements PipeTransform {
1074
+ transform(value: UserInput): string;
1075
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserInitialPipe, never>;
1076
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<UserInitialPipe, "userInitial", true>;
1077
+ }
1078
+
1079
+ interface DevkitConf {
1080
+ readonly currencyCode: string;
1081
+ }
1082
+ declare function provideDevKitAngular(conf?: Partial<DevkitConf>): EnvironmentProviders;
1083
+
1084
+ type DeploymentStage = 'dev' | 'demo' | 'prod' | 'crowdin';
1085
+ interface DeploymentStageWithProviders<Stage extends DeploymentStage = DeploymentStage> {
1086
+ readonly stage: Stage;
1087
+ readonly providers: Array<Provider | EnvironmentProviders>;
1088
+ }
1089
+ declare const injectDeploymentStage: {
1090
+ (): DeploymentStage;
1091
+ (injectOptions: _angular_core.InjectOptions & {
1092
+ optional?: false;
1093
+ } & {
1094
+ injector?: _angular_core.Injector;
1095
+ }): DeploymentStage;
1096
+ (injectOptions: _angular_core.InjectOptions & {
1097
+ injector?: _angular_core.Injector;
1098
+ }): DeploymentStage | null;
1099
+ };
1100
+
1101
+ declare function provideDeploymentStage<Stage extends DeploymentStage>(stage: Stage, providers: Array<Provider | EnvironmentProviders>): DeploymentStageWithProviders<Stage>;
1102
+
1103
+ declare const injectDocumentVisibilityState: {
1104
+ (): Signal<DocumentVisibilityState>;
1105
+ (injectOptions: _angular_core.InjectOptions & {
1106
+ optional?: false;
1107
+ } & {
1108
+ injector?: _angular_core.Injector;
1109
+ }): Signal<DocumentVisibilityState>;
1110
+ (injectOptions: _angular_core.InjectOptions & {
1111
+ injector?: _angular_core.Injector;
1112
+ }): Signal<DocumentVisibilityState> | null;
1113
+ };
1114
+
1115
+ declare const injectAppVersion: {
1116
+ (): string;
1117
+ (injectOptions: _angular_core.InjectOptions & {
1118
+ optional?: false;
1119
+ } & {
1120
+ injector?: _angular_core.Injector;
1121
+ }): string;
1122
+ (injectOptions: _angular_core.InjectOptions & {
1123
+ injector?: _angular_core.Injector;
1124
+ }): string | null;
1125
+ };
1126
+ declare const provideAppVersion: (() => _angular_core.Provider) & ((value: string | (() => string)) => _angular_core.Provider);
1127
+
1128
+ type WindowWrapper = Window & typeof globalThis;
1129
+ declare function windowFactory(platformId: object): WindowWrapper;
1130
+ declare const injectWindow: {
1131
+ (): WindowWrapper;
1132
+ (injectOptions: _angular_core.InjectOptions & {
1133
+ optional?: false;
1134
+ } & {
1135
+ injector?: _angular_core.Injector;
1136
+ }): WindowWrapper;
1137
+ (injectOptions: _angular_core.InjectOptions & {
1138
+ injector?: _angular_core.Injector;
1139
+ }): WindowWrapper | null;
1140
+ };
1141
+
1142
+ type FocusState = 'focus' | 'blur';
1143
+ declare function windowFocusState(window: WindowWrapper): Observable<FocusState>;
1144
+ declare function lostFocusDuration(window: WindowWrapper): Observable<number>;
1145
+
1146
+ declare const injectWindowFocusState: {
1147
+ (): Signal<FocusState>;
1148
+ (injectOptions: _angular_core.InjectOptions & {
1149
+ optional?: false;
1150
+ } & {
1151
+ injector?: _angular_core.Injector;
1152
+ }): Signal<FocusState>;
1153
+ (injectOptions: _angular_core.InjectOptions & {
1154
+ injector?: _angular_core.Injector;
1155
+ }): Signal<FocusState> | null;
1156
+ };
1157
+
1158
+ declare function fromNextRender(injector?: Injector): Observable<void>;
1159
+
1160
+ type RxMethodInvokable<I, O> = RxMethod<I> & {
1161
+ invoke: (input: I) => Observable<O>;
1162
+ };
1163
+ declare function useRxMethod<Input, Output>(fn: (input: Input) => ObservableInput<Output>, config?: {
1164
+ injector?: Injector;
1165
+ operator?: <I extends Input, O>(fn: (input: I) => ObservableInput<Output>) => OperatorFunction<I, O>;
1166
+ }): RxMethodInvokable<Input, Output>;
1167
+
1168
+ declare class ReplayQueryListObservable<T> extends Observable<T[]> {
1169
+ private constructor();
1170
+ static of<T>(input: QueryList<T>): ReplayQueryListObservable<T>;
1171
+ }
1172
+
1173
+ declare function enterZone<T>(ngZone: NgZone): MonoTypeOperatorFunction<T>;
1174
+ declare function leaveZone<T>(ngZone: NgZone): MonoTypeOperatorFunction<T>;
1175
+
1176
+ type LogLevel = 'info' | 'debug' | 'trace' | 'warn' | 'error';
1177
+ interface LogData {
1178
+ readonly level: LogLevel;
1179
+ readonly message: string;
1180
+ }
1181
+ declare class LogPrinter {
1182
+ readonly level: LogLevel;
1183
+ private readonly _print;
1184
+ private readonly _message$;
1185
+ readonly message$: rxjs.Observable<string>;
1186
+ constructor(level: LogLevel, _print: (...data: any[]) => void);
1187
+ destroy(): void;
1188
+ print(message: string, logger: Logger): void;
1189
+ private decorate;
1190
+ }
1191
+ type Input = string | Function | Type<unknown>;
1192
+ declare class Logger implements OnDestroy {
1193
+ readonly prefixName: string | null;
1194
+ private readonly infoPrinter;
1195
+ private readonly debugPrinter;
1196
+ private readonly tracePrinter;
1197
+ private readonly warnPrinter;
1198
+ private readonly errorPrinter;
1199
+ private readonly printers;
1200
+ readonly log$: rxjs.Observable<LogData>;
1201
+ constructor(prefixName: string | null);
1202
+ ngOnDestroy(): void;
1203
+ forSource(source: Input): Logger;
1204
+ info(message: string): void;
1205
+ debug(message: string): void;
1206
+ trace(message: string): void;
1207
+ warn(message: string): void;
1208
+ error(message: string): void;
1209
+ private toPrefixName;
1210
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Logger, [{ optional: true; }]>;
1211
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<Logger>;
1212
+ }
1213
+
1214
+ type StyleValues = Record<string, Record<string, string>>;
1215
+ interface PrintBaseOptions {
1216
+ readonly title: string;
1217
+ readonly style: StyleValues;
1218
+ readonly cssList: string[];
1219
+ readonly delay: number;
1220
+ readonly openNewTab: boolean;
1221
+ readonly previewOnly: boolean;
1222
+ readonly useExistingCss: boolean;
1223
+ }
1224
+ interface PrintSelectOptions extends Partial<PrintBaseOptions> {
1225
+ readonly sectionId: string;
1226
+ }
1227
+ interface PrintContentOptions extends Partial<PrintBaseOptions> {
1228
+ readonly contents: string;
1229
+ }
1230
+ interface PrintHtmlElementOptions extends Partial<PrintBaseOptions> {
1231
+ readonly nativeElement: HTMLElement;
1232
+ readonly renderer: Renderer2;
1233
+ }
1234
+ type PrintOptions = PrintSelectOptions | PrintContentOptions;
1235
+ /**
1236
+ * This service provides functionality to print specific sections or custom content with various print options.
1237
+ * Usage examples:
1238
+ *
1239
+ * // Example 1: Print a specific section with additional options
1240
+ * const printSelectOptions: PrintSelectOptions = {
1241
+ * sectionId: 'someTagId',
1242
+ * title: 'Print Example',
1243
+ * style: { h1: { 'font-family': 'Arial', 'font-size': '16px' } },
1244
+ * cssList: ['custom-styles.css'],
1245
+ * delay: 500,
1246
+ * openNewTab: false,
1247
+ * previewOnly: false,
1248
+ * useExistingCss: false,
1249
+ * };
1250
+ * printer.print(printSelectOptions);
1251
+ *
1252
+ * // Example 2: Print custom content with additional options
1253
+ * const printContentOptions: PrintContentOptions = {
1254
+ * contents: '<div><h1>Hello, Print!</h1></div>',
1255
+ * title: 'Print Example',
1256
+ * style: { h1: { 'font-family': 'Arial', 'font-size': '16px' } },
1257
+ * cssList: ['custom-styles.css'],
1258
+ * delay: 0,
1259
+ * openNewTab: false,
1260
+ * previewOnly: false,
1261
+ * useExistingCss: false,
1262
+ * };
1263
+ * printer.print(printContentOptions);
1264
+ */
1265
+ declare class Printer {
1266
+ private readonly window;
1267
+ private readonly errorHandler;
1268
+ print(options: PrintOptions): void;
1269
+ printAsyncHtmlElement(options: PrintHtmlElementOptions): Promise<void>;
1270
+ private getElementTag;
1271
+ private getHtmlContents;
1272
+ private getStyleSheetFile;
1273
+ private getStyleValues;
1274
+ private updateInputDefaults;
1275
+ private updateSelectDefaults;
1276
+ private updateTextAreaDefaults;
1277
+ private updateCanvasToImage;
1278
+ private canvasToImageHtml;
1279
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<Printer, never>;
1280
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<Printer>;
1281
+ }
1282
+
1283
+ type StorageType = 'session' | 'local';
1284
+ type StorageTarget = ValueOrArr<StorageType> | 'all';
1285
+ declare class StorageService {
1286
+ private readonly logger;
1287
+ private readonly window;
1288
+ private readonly sessionStorage;
1289
+ private readonly localStorage;
1290
+ /**
1291
+ * Stores a key/value pair in storage according to session parameter.
1292
+ * @param key the key of value to store.
1293
+ * @param value the value to store.
1294
+ * @param target indicates where to store key/value pair.
1295
+ */
1296
+ store(key: string, value: unknown, target?: StorageTarget): void;
1297
+ /**
1298
+ * Get value corresponding to given key from storage.
1299
+ * @param key the key of value to retrieve.
1300
+ * @param target boolean which indicates from where to retrieve the value corresponding to given key.
1301
+ * @returns an option containing the value corresponding to given key or none if no value was found.
1302
+ */
1303
+ get<T>(key: string, target?: StorageTarget): T | undefined;
1304
+ /**
1305
+ * Indicated if there is an entry corresponding to given key in storage.
1306
+ * @param key the key to look for.
1307
+ * @param target indicates which storage to clear. Default is true.
1308
+ * @returns true if there is an entry corresponding to given key, false else.
1309
+ */
1310
+ hasKey(key: string, target?: StorageTarget): boolean;
1311
+ /**
1312
+ * Remove entry from storage.
1313
+ * @param key the key corresponding to te entry to remove.
1314
+ * @param target indicates from where to remove the entry corresponding to given key.
1315
+ */
1316
+ remove(key: string, target?: StorageTarget): void;
1317
+ /**
1318
+ * Clear the storage.
1319
+ * @param target indicates which storage to clear. Default is true.
1320
+ */
1321
+ clear(target?: StorageTarget): void;
1322
+ private getTargetedStorages;
1323
+ private isSupported;
1324
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StorageService, never>;
1325
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<StorageService>;
1326
+ }
1327
+
1328
+ type SelectId<Def extends ViewDef<Component>, Component = ExtractComponent<Def>, Id extends string = string> = Into<Def, Id>;
1329
+ type ExtractComponent<Def extends ViewDef<unknown>> = Def extends ViewDef<infer Component> ? Component : never;
1330
+ interface ViewDef<Component> {
1331
+ readonly component: Type<Component>;
1332
+ }
1333
+ interface ViewResolverConf<Def extends ViewDef<Component>, Component extends Type<unknown> = ExtractComponent<Def>, Id extends string = string> {
1334
+ readonly token: InjectionToken<Def[]>;
1335
+ readonly selectId?: SelectId<Def, Component, Id>;
1336
+ }
1337
+ interface RenderOptions {
1338
+ container: ViewContainerRef;
1339
+ injector?: Injector;
1340
+ createOptions?: {
1341
+ index?: number;
1342
+ injector?: Injector;
1343
+ ngModuleRef?: NgModuleRef<unknown>;
1344
+ environmentInjector?: EnvironmentInjector | NgModuleRef<unknown>;
1345
+ projectableNodes?: Node[][];
1346
+ };
1347
+ }
1348
+ declare function buildViewResolver<Def extends ViewDef<Component>, Component extends Type<unknown> = ExtractComponent<Def>, Id extends string = string>(conf: ViewResolverConf<Def, Component, Id>): readonly [() => ViewResolver<Def, Component, Id>, () => Provider[]];
1349
+ /**
1350
+ * View Resolver to register a list of definitions and render a component depending of a selected id
1351
+ *
1352
+ * @example
1353
+ *
1354
+ * export class CustomContainerComponent implements OnInit {
1355
+ * @Input() customInput: any;
1356
+ *
1357
+ * @ViewChild('container', {
1358
+ * read: ViewContainerRef,
1359
+ * static: true,
1360
+ * })
1361
+ * private readonly container: ViewContainerRef;
1362
+ *
1363
+ * constructor(
1364
+ * private readonly viewResolver: ViewResolver<CustomViewDef>
1365
+ * ) {}
1366
+ *
1367
+ * ngOnInit() {
1368
+ * const instance = this.viewResolver.render('customId', {
1369
+ * container: this.container,
1370
+ * })
1371
+ * instance.customInput = this.customInput
1372
+ * }
1373
+ */
1374
+ declare class ViewResolver<Def extends ViewDef<Component>, Component extends Type<unknown> = ExtractComponent<Def>, Id extends string = string> {
1375
+ private readonly injector;
1376
+ private readonly conf;
1377
+ readonly selectId: SelectId<Def, Component, Id>;
1378
+ readonly defs: Def[];
1379
+ private readonly registeredDefs;
1380
+ get ids(): Id[];
1381
+ /**
1382
+ * Add a non injectable definition
1383
+ */
1384
+ register(def: Def): void;
1385
+ /**
1386
+ * true if the definition exist for le given id, otherwise false
1387
+ */
1388
+ has(id: Id, options?: {
1389
+ injector?: Injector;
1390
+ }): boolean;
1391
+ /**
1392
+ * Find the definitions for the given id
1393
+ */
1394
+ find(id: Id, options?: {
1395
+ injector?: Injector;
1396
+ }): Def | undefined;
1397
+ /**
1398
+ * Render a component depending of a definition given by token injection
1399
+ */
1400
+ render(def: Def, options: Omit<RenderOptions, 'injector'>): ComponentRef<Component>;
1401
+ render(id: Id, options: RenderOptions): ComponentRef<Component>;
1402
+ private getDefs;
1403
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewResolver<any, any, any>, never>;
1404
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ViewResolver<any, any, any>>;
1405
+ }
1406
+
1407
+ type CallStatus = 'init' | 'loading' | 'loaded' | {
1408
+ error: unknown;
1409
+ };
1410
+ interface CallStatusState {
1411
+ callStatus: CallStatus;
1412
+ }
1413
+ type CallStatusComputed = {
1414
+ isLoading: Signal<boolean>;
1415
+ } & {
1416
+ isLoaded: Signal<boolean>;
1417
+ } & {
1418
+ error: Signal<unknown | undefined>;
1419
+ };
1420
+ type CallStatusMethods = {
1421
+ _setLoading: () => void;
1422
+ } & {
1423
+ _setLoaded: () => void;
1424
+ } & {
1425
+ _setError: (error?: unknown) => void;
1426
+ };
1427
+ type NamedCallStatusState<TCollection extends string> = {
1428
+ [K in TCollection as `${K}CallStatus`]: CallStatus;
1429
+ };
1430
+ type NamedCallStatusComputed<TCollection extends string> = {
1431
+ [K in TCollection as `is${Capitalize<string & K>}Loading`]: Signal<boolean>;
1432
+ } & {
1433
+ [K in TCollection as `is${Capitalize<string & K>}Loaded`]: Signal<boolean>;
1434
+ } & {
1435
+ [K in TCollection as `${K}Error`]: Signal<unknown | undefined>;
1436
+ };
1437
+ type NamedCallStatusMethods<TCollection extends string> = {
1438
+ [K in TCollection as `_set${Capitalize<string & K>}Loading`]: () => void;
1439
+ } & {
1440
+ [K in TCollection as `_set${Capitalize<string & K>}Loaded`]: () => void;
1441
+ } & {
1442
+ [K in TCollection as `_set${Capitalize<string & K>}Error`]: (error?: unknown) => void;
1443
+ };
1444
+ interface WithCallStatusConfig<TCollection extends string> {
1445
+ readonly collection?: TCollection;
1446
+ readonly initialValue?: CallStatus;
1447
+ }
1448
+ declare function withCallStatus<TCollection extends string = ''>(config?: WithCallStatusConfig<TCollection>): SignalStoreFeature<EmptyFeatureResult, TCollection extends '' ? {
1449
+ state: CallStatusState;
1450
+ props: CallStatusComputed;
1451
+ methods: CallStatusMethods;
1452
+ } : {
1453
+ state: NamedCallStatusState<TCollection>;
1454
+ props: NamedCallStatusComputed<TCollection>;
1455
+ methods: NamedCallStatusMethods<TCollection>;
1456
+ }>;
1457
+
1458
+ type NamespacePrefix<Namespace extends string> = Namespace extends '' ? '' : CamelCase<Namespace>;
1459
+ type NamespaceTitle<Namespace extends string> = Capitalize<NamespacePrefix<Namespace>>;
1460
+ type NamespacedKey<Namespace extends string, Key extends string> = Namespace extends '' ? Key : Key extends `is${infer Suffix}` ? `is${NamespaceTitle<Namespace>}${Suffix}` : Key extends `has${infer Suffix}` ? `has${NamespaceTitle<Namespace>}${Suffix}` : `${NamespacePrefix<Namespace>}${Capitalize<Key>}`;
1461
+ type NamespacedMethodKey<Namespace extends string, Verb extends string, Subject extends string> = `${Verb}${Namespace extends '' ? Subject : `${NamespaceTitle<Namespace>}${Subject}`}`;
1462
+
1463
+ type FilterPrimitive = string | number | boolean;
1464
+ type FilterArrayValue = (string | number)[];
1465
+ type FilterValue = FilterPrimitive | FilterArrayValue | undefined;
1466
+ type FilterState<Filters> = {
1467
+ [Key in keyof Filters]: FilterValue;
1468
+ };
1469
+ type EmptyFilters = Record<never, FilterValue>;
1470
+
1471
+ interface PaginatedResourceParams extends Pagination {
1472
+ readonly search: string;
1473
+ readonly sort: Sort | undefined;
1474
+ }
1475
+ interface PaginatedResourceOptions<TFilters extends FilterState<TFilters> = EmptyFilters> {
1476
+ readonly pageSize?: number;
1477
+ readonly initialFilters?: TFilters;
1478
+ }
1479
+ interface NamespacedPaginatedResourceOptions<TNamespace extends string, TFilters extends FilterState<TFilters> = EmptyFilters> extends PaginatedResourceOptions<TFilters> {
1480
+ readonly namespace: TNamespace;
1481
+ }
1482
+ type PaginatedResourceItem<TResult> = TResult extends PaginatedResult<infer TItem> ? TItem : never;
1483
+ type PaginatedResourceResult<TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>> = TResult & PaginatedResourceParams & TFilters;
1484
+ type PaginatedResourceState<TFilters extends FilterState<TFilters>> = PaginatedResourceParams & {
1485
+ readonly filters: TFilters;
1486
+ };
1487
+ interface PaginatedResourceProps<TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>> {
1488
+ readonly activeFilterCount: Signal<number>;
1489
+ readonly hasFilters: Signal<boolean>;
1490
+ readonly hasPagedError: Signal<boolean>;
1491
+ readonly hasSearchOrFilters: Signal<boolean>;
1492
+ readonly isLoading: Signal<boolean>;
1493
+ readonly isPagedInitialLoading: Signal<boolean>;
1494
+ readonly isPagedLoading: Signal<boolean>;
1495
+ readonly isPagedRefreshing: Signal<boolean>;
1496
+ readonly isPagedRefreshingEmptySearch: Signal<boolean>;
1497
+ readonly pagedItems: Signal<PaginatedResourceItem<TResult>[]>;
1498
+ readonly pagedResource: ResourceRef<TResult | undefined>;
1499
+ readonly pagedResult: Signal<PaginatedResourceResult<TResult, TFilters> | undefined>;
1500
+ readonly pagedTotal: Signal<number>;
1501
+ readonly sort: Signal<Sort | undefined>;
1502
+ }
1503
+ interface PaginatedResourceMethods<TFilters extends FilterState<TFilters>> extends Record<string, Function> {
1504
+ clearFilters: VoidFn;
1505
+ clearSearchAndFilters: VoidFn;
1506
+ setFilter: <TKey extends keyof TFilters & string>(key: TKey, value: TFilters[TKey]) => void;
1507
+ setPage: VoidFn<[page: number]>;
1508
+ setPageSize: VoidFn<[pageSize: number]>;
1509
+ setSearch: VoidFn<[search: string]>;
1510
+ setSort: VoidFn<[sort: Sort | undefined]>;
1511
+ }
1512
+ interface PaginatedResourceFeatureResult<TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>> {
1513
+ state: PaginatedResourceState<TFilters>;
1514
+ props: PaginatedResourceProps<TResult, TFilters>;
1515
+ methods: PaginatedResourceMethods<TFilters>;
1516
+ }
1517
+ type NamespacedPaginatedResourceState<TNamespace extends string, TFilters extends FilterState<TFilters>> = Record<NamespacedKey<TNamespace, 'page'>, number> & Record<NamespacedKey<TNamespace, 'pageSize'>, number> & Record<NamespacedKey<TNamespace, 'search'>, string> & Record<NamespacedKey<TNamespace, 'sort'>, Sort | undefined> & Record<NamespacedKey<TNamespace, 'filters'>, TFilters>;
1518
+ type NamespacedPaginatedResourceProps<TNamespace extends string, TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>> = Record<NamespacedKey<TNamespace, 'pagedResource'>, ResourceRef<TResult | undefined>> & Record<NamespacedKey<TNamespace, 'pagedItems'>, Signal<PaginatedResourceItem<TResult>[]>> & Record<NamespacedKey<TNamespace, 'pagedResult'>, Signal<PaginatedResourceResult<TResult, TFilters> | undefined>> & Record<NamespacedKey<TNamespace, 'pagedTotal'>, Signal<number>> & Record<NamespacedKey<TNamespace, 'sort'>, Signal<Sort | undefined>> & Record<NamespacedKey<TNamespace, 'activeFilterCount'>, Signal<number>> & Record<NamespacedKey<TNamespace, 'hasFilters'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isFilterActive'>, <TKey extends keyof TFilters & string>(key: TKey) => boolean> & Record<NamespacedKey<TNamespace, 'hasSearchOrFilters'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isPagedInitialLoading'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isPagedRefreshing'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isPagedRefreshingEmptySearch'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isPagedLoading'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'isLoading'>, Signal<boolean>> & Record<NamespacedKey<TNamespace, 'hasPagedError'>, Signal<boolean>>;
1519
+ type NamespacedPaginatedResourceMethods<TNamespace extends string, TFilters extends FilterState<TFilters>> = Record<string, Function> & Record<NamespacedMethodKey<TNamespace, 'set', 'Page'>, VoidFn<[page: number]>> & Record<NamespacedMethodKey<TNamespace, 'set', 'PageSize'>, VoidFn<[pageSize: number]>> & Record<NamespacedMethodKey<TNamespace, 'set', 'Search'>, VoidFn<[search: string]>> & Record<NamespacedMethodKey<TNamespace, 'set', 'Sort'>, VoidFn<[sort: Sort | undefined]>> & Record<NamespacedMethodKey<TNamespace, 'set', 'Filter'>, <TKey extends keyof TFilters & string>(key: TKey, value: TFilters[TKey]) => void> & Record<NamespacedMethodKey<TNamespace, 'clear', 'Filters'>, VoidFn> & Record<NamespacedMethodKey<TNamespace, 'clear', 'SearchAndFilters'>, VoidFn>;
1520
+ interface NamespacedPaginatedResourceFeatureResult<TNamespace extends string, TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>> {
1521
+ state: NamespacedPaginatedResourceState<TNamespace, TFilters>;
1522
+ props: NamespacedPaginatedResourceProps<TNamespace, TResult, TFilters>;
1523
+ methods: NamespacedPaginatedResourceMethods<TNamespace, TFilters>;
1524
+ }
1525
+ declare function withPaginatedResource<TResult extends PaginatedResult<unknown>, TNamespace extends string, TFilters extends FilterState<TFilters> = EmptyFilters>(options: NamespacedPaginatedResourceOptions<TNamespace, TFilters>, factory: (params: Signal<PaginatedResourceParams & TFilters>) => ResourceRef<TResult | undefined>): SignalStoreFeature<EmptyFeatureResult, NamespacedPaginatedResourceFeatureResult<TNamespace, TResult, TFilters>>;
1526
+ declare function withPaginatedResource<TResult extends PaginatedResult<unknown>, TFilters extends FilterState<TFilters>>(options: PaginatedResourceOptions<TFilters>, factory: (params: Signal<PaginatedResourceParams & TFilters>) => ResourceRef<TResult | undefined>): SignalStoreFeature<EmptyFeatureResult, PaginatedResourceFeatureResult<TResult, TFilters>>;
1527
+ declare function withPaginatedResource<TResult extends PaginatedResult<unknown>>(factory: (params: Signal<PaginatedResourceParams>) => ResourceRef<TResult | undefined>): SignalStoreFeature<EmptyFeatureResult, PaginatedResourceFeatureResult<TResult, EmptyFilters>>;
1528
+
1529
+ interface CumulativePaginatedResourceOptions<Namespace extends string, Item, Filters extends FilterState<Filters>> {
1530
+ readonly initialFilters?: Filters;
1531
+ readonly namespace?: Namespace;
1532
+ readonly pageSize?: number;
1533
+ readonly selectId: (item: Item) => PropertyKey;
1534
+ }
1535
+ type CumulativePaginatedResourceProps<Namespace extends string, Item> = Record<NamespacedKey<Namespace, 'items'>, Signal<Item[]>> & Record<NamespacedKey<Namespace, 'nextPageItemCount'>, Signal<number>> & Record<NamespacedKey<Namespace, 'hasNextPage'>, Signal<boolean>>;
1536
+ type CumulativePaginatedResourceMethods<Namespace extends string> = Record<NamespacedMethodKey<Namespace, 'loadNext', 'Page'>, () => void> & Record<NamespacedMethodKey<Namespace, 'reset', 'Pagination'>, () => void> & Record<NamespacedMethodKey<Namespace, 'reset', 'VisiblePage'>, () => void> & Record<NamespacedMethodKey<Namespace, 'retry', 'Page'>, () => void>;
1537
+ declare function withCumulativePaginatedResource<Item, const Namespace extends string = '', Filters extends FilterState<Filters> = EmptyFilters>(options: CumulativePaginatedResourceOptions<Namespace, Item, Filters>, factory: (params: Signal<PaginatedResourceParams & Filters>) => ResourceRef<PaginatedResult<Item> | undefined>): SignalStoreFeature<EmptyFeatureResult, {
1538
+ state: NamespacedPaginatedResourceState<Namespace, Filters>;
1539
+ props: NamespacedPaginatedResourceProps<Namespace, PaginatedResult<Item>, Filters> & CumulativePaginatedResourceProps<Namespace, Item> & CumulativePaginatedResourceMethods<Namespace>;
1540
+ methods: NamespacedPaginatedResourceMethods<Namespace, Filters>;
1541
+ }>;
1542
+
1543
+ interface InvalidationRevisionOptions<Namespace extends string> {
1544
+ readonly namespace?: Namespace;
1545
+ }
1546
+ type RevisionKey<Namespace extends string> = NamespacedKey<Namespace, 'revision'>;
1547
+ type InvalidateKey<Namespace extends string> = NamespacedMethodKey<Namespace, 'invalidate', ''>;
1548
+ type InvalidationRevisionState<Namespace extends string> = Record<RevisionKey<Namespace>, number>;
1549
+ type InvalidationRevisionMethods<Namespace extends string> = Record<InvalidateKey<Namespace>, () => void>;
1550
+ declare function withInvalidationRevision<const Namespace extends string = ''>(options?: InvalidationRevisionOptions<Namespace>): _ngrx_signals.SignalStoreFeature<_ngrx_signals.EmptyFeatureResult, {
1551
+ state: InvalidationRevisionState<Namespace> extends infer T ? { [K in keyof T]: T[K]; } : never;
1552
+ props: {};
1553
+ methods: InvalidationRevisionMethods<Namespace> extends infer T_1 ? { [K_1 in keyof T_1]: T_1[K_1]; } : never;
1554
+ }>;
1555
+
1556
+ interface PageResourceConfig<TSource, TResult = NonNullable<TSource>> {
1557
+ readonly defaultValue?: NoInfer<TSource>;
1558
+ readonly resource: ResourceRef<TSource>;
1559
+ readonly transform?: (value: NonNullable<TSource>) => TResult;
1560
+ }
1561
+ type PageResourceInput<TSource = any, TResult = NonNullable<TSource>> = ResourceRef<TSource> | PageResourceConfig<TSource, TResult>;
1562
+ type AnyResourcesInput = Record<string, PageResourceInput<any, any>>;
1563
+ type PageResourceRefValueOf<T> = T extends ResourceRef<infer R> ? R : T extends {
1564
+ readonly resource: ResourceRef<infer R>;
1565
+ } ? R : never;
1566
+ type PageResourceSignalValueOf<T> = T extends {
1567
+ readonly defaultValue: unknown;
1568
+ readonly resource: ResourceRef<infer TSource>;
1569
+ readonly transform?: undefined;
1570
+ } ? NonNullable<TSource> : T extends PageResourceConfig<any, infer TResult> ? TResult : PageResourceRefValueOf<T> | undefined;
1571
+ type ResourceRefsOf<T extends AnyResourcesInput> = {
1572
+ [K in keyof T]: T[K] extends ResourceRef<infer R> ? ResourceRef<R> : T[K] extends {
1573
+ readonly resource: ResourceRef<infer R>;
1574
+ } ? ResourceRef<R> : never;
1575
+ };
1576
+ declare function pageResourceConfig<TSource, TResult = NonNullable<TSource>>(config: PageResourceConfig<TSource, TResult>): PageResourceConfig<TSource, TResult>;
1577
+ declare function withPageResources<T extends AnyResourcesInput>(sourcesObj: T): _ngrx_signals.SignalStoreFeature<_ngrx_signals.SignalStoreFeatureResult, {
1578
+ state: {};
1579
+ props: { [K in keyof T]: Signal<PageResourceSignalValueOf<T[K]>>; } & {
1580
+ pageErrors: Signal<unknown[]>;
1581
+ firstPageError: Signal<unknown>;
1582
+ isPageError: Signal<boolean>;
1583
+ isPageInitializing: Signal<boolean>;
1584
+ isPageStable: Signal<boolean>;
1585
+ pageStatus: Signal<Status>;
1586
+ pageResources: {
1587
+ every: {
1588
+ isError: Signal<boolean>;
1589
+ isIdle: Signal<boolean>;
1590
+ isLoading: Signal<boolean>;
1591
+ isLocal: Signal<boolean>;
1592
+ isReloading: Signal<boolean>;
1593
+ isResolved: Signal<boolean>;
1594
+ };
1595
+ some: {
1596
+ isError: Signal<boolean>;
1597
+ isIdle: Signal<boolean>;
1598
+ isLoading: Signal<boolean>;
1599
+ isLocal: Signal<boolean>;
1600
+ isReloading: Signal<boolean>;
1601
+ isResolved: Signal<boolean>;
1602
+ };
1603
+ } & ResourceRefsOf<T>;
1604
+ reloadPage(): void;
1605
+ awaitPageReady(errorCtor?: Constructor<Error>): Promise<boolean>;
1606
+ };
1607
+ methods: {};
1608
+ }>;
1609
+ type Status = 'initializing' | 'stable' | 'error';
1610
+
1611
+ interface EntityConfig {
1612
+ entity: unknown;
1613
+ collection: string;
1614
+ }
1615
+ declare function withResetState(...configs: EntityConfig[]): _ngrx_signals.SignalStoreFeature<_ngrx_signals.EmptyFeatureResult, {
1616
+ state: {};
1617
+ props: {
1618
+ resetState(): void;
1619
+ };
1620
+ methods: {};
1621
+ }>;
1622
+
1623
+ type RequiredParamMap = Omit<ParamMap, 'get'> & {
1624
+ get(name: string): string;
1625
+ };
1626
+ type ParamMapWithRequired = ParamMap & {
1627
+ required: RequiredParamMap;
1628
+ };
1629
+ declare function withRouteParams<T extends Record<string, any>>(mapper: (route: {
1630
+ paramMap: ParamMapWithRequired;
1631
+ queryParamMap: ParamMapWithRequired;
1632
+ data?: Data;
1633
+ }) => T): _ngrx_signals.SignalStoreFeature<_ngrx_signals.SignalStoreFeatureResult, {
1634
+ state: {};
1635
+ props: { [K in keyof T]: Signal<T[K]>; };
1636
+ methods: {};
1637
+ }>;
1638
+
1639
+ interface SyncMethods extends Record<string, Function> {
1640
+ clearStorage(): void;
1641
+ readFromStorage(): void;
1642
+ writeToStorage(): void;
1643
+ }
1644
+ interface StorageSyncFeatureResult {
1645
+ readonly state: object;
1646
+ readonly props: object;
1647
+ readonly methods: SyncMethods;
1648
+ }
1649
+ interface StorageSyncConf<State extends object> {
1650
+ autoSync?: boolean;
1651
+ key: string;
1652
+ parse?: (stateStr: string) => State;
1653
+ select?: (state: State) => unknown;
1654
+ storage?: () => Storage;
1655
+ stringify?: (state: State) => string;
1656
+ }
1657
+ declare function withStorageSync<Input extends SignalStoreFeatureResult>(configOrKey: StorageSyncConf<Input['state']> | string): SignalStoreFeature<Input, StorageSyncFeatureResult>;
1658
+
1659
+ type Sliced<T> = WritableSignal<T> & {
1660
+ [K in keyof T]: T[K] extends object ? Sliced<T[K]> : WritableSignal<T[K]>;
1661
+ };
1662
+ declare function sliceSignal<T extends object>(initial: T, options?: CreateSignalOptions<T>): Sliced<T>;
1663
+
1664
+ type ResourceRefValueOf<T> = T extends ResourceRef<infer R> ? R : never;
1665
+
1666
+ type ValueOrSignal<T> = T | Signal<T>;
1667
+ declare function resolveValueOrSignal<T>(valueOrSignal: ValueOrSignal<T>): Signal<T>;
1668
+
1669
+ export { AddressPipe, AnchorToTopDirective, AnchorToTopItemDirective, BOTTOM_CENTER_POSITION, BOTTOM_END_POSITION, BOTTOM_START_POSITION, CapitalizePipe, ClampObserverDirective, ClampTargetDirective, Color, ColorStateDirective, CurrencyPipe, DiffOfArrPipe, Direction, DirectionStateDirective, DisabledStateDirective, END_BOTTOM_POSITION, END_CENTER_POSITION, END_TOP_POSITION, ErrorDirective, FileSizePipe, FilterOfArrPipe, FrenchPhoneNumberPipe, GroupByOfArrPipe, HideIfEmptyDirective, HintDirective, Hue, HueStateDirective, InlineStateDirective, InvalidStateDirective, IsUrlExact, IsUrlSubset, JoinOfArrPipe, KeyInPipe, LabelDirective, LetDirective, LinkifyPipe, LoaderResourceImpl, LoadingStateDirective, LogPrinter, Logger, MapOfArrPipe, MapPipe, MinimalRouterStateSerializer, MonthlyCurrencyPipe, NearBottomDirective, NearTopDirective, OVERLAY_POSITIONS, Orientation, OrientationStateDirective, OverlayPosition, PhoneNumberPipe, PluckOfArrPipe, PreventDefaultDirective, Printer, Radius, RadiusStateDirective, ReadonlyStateDirective, ReplayQueryListObservable, RequiredStateDirective, RouterLinkDisabledDirective, RouterStore, START_BOTTOM_POSITION, START_CENTER_POSITION, START_TOP_POSITION, ScrollDataSource, ScrollToBottomDirective, ScrollToBottomItemDirective, Size, SizeStateDirective, SortOfArrPipe, StopPropagationDirective, StorageService, StrictTitleCasePipe, SubtitleDirective, TOP_CENTER_POSITION, TOP_END_POSITION, TOP_START_POSITION, TaskError, TemplateContextDirective, TimeUtils, TitleDirective, TruncatePipe, UserFullnamePipe, UserInitialPipe, ViewResolver, WindowOpenDirective, anchorTarget, broadcastChannel, buildViewResolver, composeGuards, createInjectDict, createUnitFormatter, data, dataEntry, enterZone, formatCurrency, formatMonthlyCurrency, fromNextRender, getCurrentInjector, getDeepestRoute, getRootInjector, injectAppVersion, injectColorStateConf, injectDeploymentStage, injectDirectionStateConf, injectDisabledStateConf, injectDocumentVisibilityState, injectHueStateConf, injectInlineStateConf, injectInvalidStateConf, injectLoadingStateConf, injectNearBottomConf, injectNearTopConf, injectOrientationStateConf, injectRadiusStateConf, injectReadonlyStateConf, injectRequiredStateConf, injectSizeStateConf, injectWindow, injectWindowFocusState, isChunkError, isComponentRef, isFunctionConstructor, isHttpErrorResponse, isHttpResponse, isInjector, isNavigationEnd, isNavigationError, isNavigationStart, isResourceRef, isTemplateRef, keyIn, leaveZone, loaderResource, lostFocusDuration, makeInjectionRunnable, makeNonReactive, multiplicityAttribute, multiplicitySingle, numberClampAttribute, pageResourceConfig, pagedParams, pagedParamsComparer, pagedResource, pagedResult, pagedResultComparer, patchRouterLinkDisabled, provideAppVersion, provideColorStateConf, provideDeploymentStage, provideDevKitAngular, provideDirectionStateConf, provideDisabledStateConf, provideExistingOrFallback, provideHueStateConf, provideInlineStateConf, provideInvalidStateConf, provideLoadingStateConf, provideNearBottomConf, provideNearTopConf, provideOrientationStateConf, provideRadiusStateConf, provideReadonlyStateConf, provideRequiredStateConf, provideRouterStore, provideSizeStateConf, resolveData, resolveValueOrSignal, safeResourceValue, scrollResource, setRootInjector, skipForFragmentAndQueryChange, sliceSignal, taskEffect, triggerFileDownload, useRxMethod, useScreenSize, windowFactory, windowFocusState, withCallStatus, withCumulativePaginatedResource, withInvalidationRevision, withPageResources, withPaginatedResource, withResetState, withRouteParams, withStorageSync };
1670
+ export type { AnchorTarget, CallStatus, CurrencyOptions, CurrencyPerMonthOptions, DeploymentStage, DeploymentStageWithProviders, DevkitConf, FocusState, GuardRef, ImplicitContext, IsMultiple, LoaderResourceImplConfig, LoaderResourceOptions, LoaderResourceRef, LoaderResourceStream, LogData, LogLevel, MinimalActivatedRouteSnapshot, MinimalRouterStateSnapshot, Multiplicity, NamespacedPaginatedResourceMethods, NamespacedPaginatedResourceProps, NamespacedPaginatedResourceState, NearBottonConf, NearTopConf, PagedParams, PagedResourceOptions, PagedResourceRef, PagedResourceStream, PagedResult, PaginatedResourceParams, PrintOptions, RawTime, RenderOptions, ResourceRefValueOf, RxMethodInvokable, ScrollResourceOptions, ScrollResourceRef, ScrollResourceStream, StorageSyncConf, StyleValues, SyncMethods, TaskEffectCallerConf, TaskEffectCallerFn, TaskEffectConf, TaskEffectEvent, TaskEffectFn, TaskEffectOrigin, TaskEffectRef, TaskEffectReport, TimeInput, UnitFormatterConfig, UnitFormatterFn, UnitFormatterRule, UnitFormatterRulesFn, ValueOrSignal, ViewDef, ViewResolverConf, WindowWrapper, WithCallStatusConfig, WrappedParams };