@ngrdt/core 0.0.97 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngrdt-core.mjs +264 -73
- package/fesm2022/ngrdt-core.mjs.map +1 -1
- package/package.json +6 -6
- package/{index.d.ts → types/ngrdt-core.d.ts} +184 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { InjectionToken, AfterViewInit, OnDestroy, OnInit, Type, DestroyRef, ComponentRef, PipeTransform, ElementRef, WritableSignal, Signal } from '@angular/core';
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterViewInit, OnDestroy, OnInit, Type, DestroyRef, ComponentRef, EnvironmentProviders, PipeTransform, ElementRef, WritableSignal, Signal } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as _ngrdt_core from '@ngrdt/core';
|
|
@@ -28,19 +28,22 @@ declare class RdtAutoFocusOnInitDirective implements AfterViewInit, OnDestroy {
|
|
|
28
28
|
private readonly autofocusable;
|
|
29
29
|
ngOnDestroy(): void;
|
|
30
30
|
ngAfterViewInit(): void;
|
|
31
|
-
static ɵfac:
|
|
32
|
-
static ɵdir:
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtAutoFocusOnInitDirective, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtAutoFocusOnInitDirective, "[rdtAutofocusOnInit]", never, {}, {}, never, never, true, never>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare class RdtAutofocusableDirective implements OnInit {
|
|
36
36
|
readonly component: _ngrdt_core.RdtAutofocusable | null;
|
|
37
37
|
ngOnInit(): void;
|
|
38
|
-
static ɵfac:
|
|
39
|
-
static ɵdir:
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtAutofocusableDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtAutofocusableDirective, "[rdtAutofocusable]", never, {}, {}, never, never, true, never>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
declare function getRdtAutofocusable(src: Iterable<RdtAutofocusableDirective>): RdtAutofocusable | null;
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Your component should implement RdtGuarded and call rdtUseGuard(this) in its constructor instead.
|
|
46
|
+
*/
|
|
44
47
|
declare class RdtContainerDirective extends RdtChildDirective {
|
|
45
48
|
readonly rdtChildren: Set<RdtChildDirective>;
|
|
46
49
|
registerChild(child: RdtChildDirective): void;
|
|
@@ -53,39 +56,69 @@ declare class RdtContainerDirective extends RdtChildDirective {
|
|
|
53
56
|
getChildrenByClass<T>(childClass: Type<T>): T[];
|
|
54
57
|
private _getChildrenRecursive;
|
|
55
58
|
private _getChildrenByClassRecursive;
|
|
56
|
-
static ɵfac:
|
|
57
|
-
static ɵdir:
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtContainerDirective, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtContainerDirective, "[rdtContainer]", never, {}, {}, never, never, true, never>;
|
|
58
61
|
}
|
|
59
62
|
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Your component should implement RdtGuarded instead.
|
|
65
|
+
*/
|
|
60
66
|
interface RdtIsActive {
|
|
61
67
|
rdtIsActive(): boolean;
|
|
62
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Your component should implement RdtGuarded instead.
|
|
71
|
+
*/
|
|
63
72
|
interface RdtCanLeaveView {
|
|
64
73
|
rdtCanLeaveView(): RdtBooleanResult;
|
|
65
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Your component should implement RdtGuarded instead.
|
|
77
|
+
*/
|
|
66
78
|
interface RdtCanEnterView {
|
|
67
79
|
rdtCanEnterView(): RdtBooleanResult;
|
|
68
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Your component should implement RdtGuarded instead.
|
|
83
|
+
*/
|
|
69
84
|
interface RdtOnViewWillLeave {
|
|
70
85
|
rdtOnViewWillLeave(): void;
|
|
71
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Your component should implement RdtGuarded instead.
|
|
89
|
+
*/
|
|
72
90
|
interface RdtOnViewWillEnter {
|
|
73
91
|
rdtOnViewWillEnter(): void;
|
|
74
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Your component should implement RdtGuarded and call rdtUseGuard(this) in its constructor instead.
|
|
95
|
+
*/
|
|
75
96
|
declare const RDT_GUARDED_COMPONENT: InjectionToken<RdtIsActive | RdtCanLeaveView | RdtCanEnterView | RdtOnViewWillEnter | RdtOnViewWillLeave>;
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Your component should implement RdtGuardedContainer and assign readonly guardRegistry = rdtUseGuardContainer(this).
|
|
99
|
+
*/
|
|
76
100
|
declare const RDT_CONTAINER: InjectionToken<RdtContainerDirective>;
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
*/
|
|
77
104
|
declare function canTransition$(from: Nullable<RdtContainerDirective>, to: Nullable<RdtContainerDirective>): rxjs.Observable<boolean>;
|
|
78
105
|
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated
|
|
108
|
+
*/
|
|
79
109
|
declare class RdtComponentGuardStoreService {
|
|
80
110
|
private readonly guards;
|
|
81
111
|
registerGuard(guard: RdtChildDirective): void;
|
|
82
112
|
removeGuard(guard: RdtChildDirective): void;
|
|
83
113
|
getGuards(): RdtChildDirective[];
|
|
84
114
|
checkCanLeaveGlobal$(): rxjs.Observable<boolean>;
|
|
85
|
-
static ɵfac:
|
|
86
|
-
static ɵprov:
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtComponentGuardStoreService, never>;
|
|
116
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RdtComponentGuardStoreService>;
|
|
87
117
|
}
|
|
88
118
|
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated Your component should implement RdtGuarded and call rdtUseGuard(this) in its constructor instead.
|
|
121
|
+
*/
|
|
89
122
|
declare class RdtChildDirective implements OnInit, OnDestroy {
|
|
90
123
|
readonly guardStore: RdtComponentGuardStoreService;
|
|
91
124
|
readonly destroyRef: DestroyRef;
|
|
@@ -99,14 +132,14 @@ declare class RdtChildDirective implements OnInit, OnDestroy {
|
|
|
99
132
|
onViewWillEnter(): void;
|
|
100
133
|
onViewWillLeave(): void;
|
|
101
134
|
getParentByClass<T extends RdtContainerDirective>(parentClass: Type<T>): T | null;
|
|
102
|
-
static ɵfac:
|
|
103
|
-
static ɵdir:
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtChildDirective, never>;
|
|
136
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtChildDirective, "[rdtChild]", never, {}, {}, never, never, true, never>;
|
|
104
137
|
}
|
|
105
138
|
|
|
106
139
|
declare abstract class RdtComponentOutletDirective<TComponent, TInputs> {
|
|
107
140
|
abstract readonly componentClass: Type<TComponent>;
|
|
108
141
|
private readonly _viewContainerRef;
|
|
109
|
-
readonly inputs:
|
|
142
|
+
readonly inputs: i0.InputSignal<Partial<TInputs>>;
|
|
110
143
|
get instance(): TComponent | undefined;
|
|
111
144
|
get componentRef(): ComponentRef<TComponent> | undefined;
|
|
112
145
|
private _componentRef?;
|
|
@@ -124,8 +157,8 @@ declare abstract class RdtComponentOutletDirective<TComponent, TInputs> {
|
|
|
124
157
|
private _applyInputStateDiff;
|
|
125
158
|
private _safeSetInput;
|
|
126
159
|
private _hasAngularInput;
|
|
127
|
-
static ɵfac:
|
|
128
|
-
static ɵdir:
|
|
160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtComponentOutletDirective<any, any>, never>;
|
|
161
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtComponentOutletDirective<any, any>, never, never, { "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
129
162
|
}
|
|
130
163
|
|
|
131
164
|
interface RdtAlertDialogConfig {
|
|
@@ -146,6 +179,111 @@ interface RdtDialogServiceInt {
|
|
|
146
179
|
|
|
147
180
|
declare const RDT_DIALOG_SERVICE_PROVIDER: InjectionToken<RdtDialogServiceInt>;
|
|
148
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Interface for components that can be guarded against leaving or entering.
|
|
184
|
+
* Implement this and call `rdtUseGuard(this)` in the constructor to register.
|
|
185
|
+
* @template TMeta Project-specific metadata type passed to the blocker resolver.
|
|
186
|
+
*/
|
|
187
|
+
interface RdtGuarded<TMeta = unknown> {
|
|
188
|
+
/** Whether this component is ready to be unmounted. Return `false` to block. */
|
|
189
|
+
canLeave(): boolean;
|
|
190
|
+
/** Metadata describing why leaving is blocked. Only called when `canLeave()` returns `false`. */
|
|
191
|
+
getLeaveGuardMeta?(): TMeta;
|
|
192
|
+
/** Whether this component is ready to be mounted. Return `false` to block. Defaults to `true` if not implemented. */
|
|
193
|
+
canEnter?(): boolean;
|
|
194
|
+
/** Metadata describing why entering is blocked. Only called when `canEnter()` returns `false`. */
|
|
195
|
+
getEnterGuardMeta?(): TMeta;
|
|
196
|
+
/** Called when the component blocked leaving and the transition was denied. Use to highlight errors, focus save buttons, etc. */
|
|
197
|
+
onLeavePrevented?(): void;
|
|
198
|
+
/** Called when the component blocked entering and the transition was denied. */
|
|
199
|
+
onEnterPrevented?(): void;
|
|
200
|
+
/** Called when the component blocked leaving but the user chose to proceed anyway. Use to auto-save, clean up, etc. */
|
|
201
|
+
onLeaveForced?(): void;
|
|
202
|
+
/** Called when the component blocked entering but the user chose to proceed anyway. */
|
|
203
|
+
onEnterForced?(): void;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Represents a guard that is currently blocking a transition.
|
|
208
|
+
* Passed to `RdtGuardBlockerResolver.resolve()` for the project to decide how to handle it.
|
|
209
|
+
* @template TMeta Project-specific metadata type.
|
|
210
|
+
*/
|
|
211
|
+
interface RdtGuardBlocker<TMeta = unknown> {
|
|
212
|
+
/** The guard component that is blocking. */
|
|
213
|
+
guard: RdtGuarded<TMeta>;
|
|
214
|
+
/** Whether this blocker is preventing leaving or entering. */
|
|
215
|
+
kind: 'leave' | 'enter';
|
|
216
|
+
/** Metadata from `getLeaveGuardMeta()` or `getEnterGuardMeta()`. */
|
|
217
|
+
meta: TMeta;
|
|
218
|
+
/** Blockers from nested child registries. */
|
|
219
|
+
children: RdtGuardBlocker<TMeta>[];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare class RdtGuardRegistry {
|
|
223
|
+
private entries;
|
|
224
|
+
private resolver;
|
|
225
|
+
register(guard: RdtGuarded, childRegistry?: RdtGuardRegistry): void;
|
|
226
|
+
unregister(guard: RdtGuarded): void;
|
|
227
|
+
hasLeaveBlockers(): boolean;
|
|
228
|
+
hasEnterBlockers(): boolean;
|
|
229
|
+
collectLeaveBlockers(): RdtGuardBlocker[];
|
|
230
|
+
collectEnterBlockers(): RdtGuardBlocker[];
|
|
231
|
+
private getChildRegistries;
|
|
232
|
+
canLeaveAll(): Observable<boolean>;
|
|
233
|
+
canEnterAll(): Observable<boolean>;
|
|
234
|
+
canSwitch(destinationRegistry?: RdtGuardRegistry): Observable<boolean>;
|
|
235
|
+
private resolveBlockers;
|
|
236
|
+
private notifyPrevented;
|
|
237
|
+
private notifyForced;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtGuardRegistry, never>;
|
|
239
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RdtGuardRegistry>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* A guarded component that owns a child registry.
|
|
244
|
+
* Routed components should implement this so `preventDataLossGuardFn` from `@ngrdt/router` can access the registry.
|
|
245
|
+
*/
|
|
246
|
+
interface RdtGuardedContainer extends Omit<RdtGuarded, 'canLeave'> {
|
|
247
|
+
guardRegistry: RdtGuardRegistry;
|
|
248
|
+
/** Whether this container itself is ready to be unmounted. If omitted, children are checked automatically via the registry. */
|
|
249
|
+
canLeave?(): boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Returns the child registries that are currently active.
|
|
252
|
+
* Used when collecting blockers to recurse only into relevant children.
|
|
253
|
+
* If not implemented, the linked `childRegistry` (all entries) is used.
|
|
254
|
+
*/
|
|
255
|
+
getActiveChildRegistries?(): RdtGuardRegistry[];
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare abstract class RdtGuardBlockerResolver<TMeta = unknown> {
|
|
259
|
+
abstract resolve(blockers: RdtGuardBlocker<TMeta>[]): Observable<boolean>;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Flattens a blocker tree into leaf blockers (those with no children).
|
|
264
|
+
* Useful in blocker resolvers to get the actual component-level blockers
|
|
265
|
+
* without the intermediate container blockers.
|
|
266
|
+
*/
|
|
267
|
+
declare function rdtFlattenBlockers<TMeta = unknown>(blockers: RdtGuardBlocker<TMeta>[]): RdtGuardBlocker<TMeta>[];
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Provides the root-level RdtGuardRegistry, the global RdtGuardBlockerResolver,
|
|
271
|
+
* and a `beforeunload` listener that prevents closing the browser tab when there are leave blockers.
|
|
272
|
+
*/
|
|
273
|
+
declare function provideRdtGuardBlockerResolver(resolver: Type<RdtGuardBlockerResolver>): EnvironmentProviders;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Call in the constructor of a guarded leaf component.
|
|
277
|
+
* Registers the component with the nearest ancestor RdtGuardRegistry.
|
|
278
|
+
*/
|
|
279
|
+
declare function rdtUseGuard(component: RdtGuarded): void;
|
|
280
|
+
/**
|
|
281
|
+
* Call in the constructor of a container component.
|
|
282
|
+
* Returns the container's own RdtGuardRegistry (for querying children)
|
|
283
|
+
* and registers the container with its parent's registry, linking the child registry.
|
|
284
|
+
*/
|
|
285
|
+
declare function rdtUseGuardContainer(component: RdtGuarded | RdtGuardedContainer): RdtGuardRegistry;
|
|
286
|
+
|
|
149
287
|
type RdtCurrencyCode = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL';
|
|
150
288
|
|
|
151
289
|
type RdtLocaleCode = 'af-ZA' | 'am-ET' | 'ar-AE' | 'ar-BH' | 'ar-DZ' | 'ar-EG' | 'ar-IQ' | 'ar-JO' | 'ar-KW' | 'ar-LB' | 'ar-LY' | 'ar-MA' | 'ar-OM' | 'ar-QA' | 'ar-SA' | 'ar-SY' | 'ar-TN' | 'ar-YE' | 'as-IN' | 'az-AZ' | 'be-BY' | 'bg-BG' | 'bn-BD' | 'bn-IN' | 'bs-BA' | 'ca-ES' | 'cs-CZ' | 'cy-GB' | 'da-DK' | 'de-AT' | 'de-CH' | 'de-DE' | 'de-LI' | 'de-LU' | 'el-GR' | 'en-AU' | 'en-BZ' | 'en-CA' | 'en-CB' | 'en-GB' | 'en-IE' | 'en-JM' | 'en-NZ' | 'en-PH' | 'en-TT' | 'en-US' | 'en-ZA' | 'en-ZW' | 'es-AR' | 'es-BO' | 'es-CL' | 'es-CO' | 'es-CR' | 'es-DO' | 'es-EC' | 'es-ES' | 'es-GT' | 'es-HN' | 'es-MX' | 'es-NI' | 'es-PA' | 'es-PE' | 'es-PR' | 'es-PY' | 'es-SV' | 'es-US' | 'es-UY' | 'es-VE' | 'et-EE' | 'eu-ES' | 'fa-IR' | 'fi-FI' | 'fil-PH' | 'fo-FO' | 'fr-BE' | 'fr-CA' | 'fr-CH' | 'fr-EP' | 'fr-FR' | 'fr-LU' | 'fr-MC' | 'gl-ES' | 'gu-IN' | 'he-IL' | 'hi-IN' | 'hr-BA' | 'hr-HR' | 'hu-HU' | 'hy-AM' | 'id-ID' | 'ig-NG' | 'is-IS' | 'it-CH' | 'it-IT' | 'ja-JP' | 'ka-GE' | 'kk-KZ' | 'km-KH' | 'kn-IN' | 'ko-KR' | 'ky-KG' | 'lo-LA' | 'lt-LT' | 'lv-LV' | 'mi-NZ' | 'mk-MK' | 'ml-IN' | 'mn-MN' | 'mr-IN' | 'ms-BN' | 'ms-MY' | 'mt-MT' | 'nb-NO' | 'ne-NP' | 'nl-BE' | 'nl-NL' | 'nn-NO' | 'or-IN' | 'pa-IN' | 'pl-PL' | 'ps-AF' | 'pt-BR' | 'pt-PT' | 'qu-BO' | 'qu-EC' | 'qu-PE' | 'ro-RO' | 'ru-RU' | 'rw-RW' | 'sa-IN' | 'se-FI' | 'se-NO' | 'se-SE' | 'si-LK' | 'sk-SK' | 'sl-SI' | 'sq-AL' | 'sr-BA' | 'sr-RS' | 'sv-FI' | 'sv-SE' | 'sw-KE' | 'ta-IN' | 'te-IN' | 'th-TH' | 'tk-TM' | 'tn-ZA' | 'tr-TR' | 'uk-UA' | 'ur-PK' | 'uz-UZ' | 'vi-VN' | 'wo-SN' | 'xh-ZA' | 'yo-NG' | 'zh-CN' | 'zh-HK' | 'zh-MO' | 'zh-SG' | 'zh-TW' | 'zu-ZA';
|
|
@@ -191,6 +329,7 @@ declare const csRdtDictionary: {
|
|
|
191
329
|
readonly RDT_GOV_DATE_NEXT_MONTH: "Další měsíc";
|
|
192
330
|
readonly RDT_GOV_DATE_PREV_YEAR: "Předchozí rok";
|
|
193
331
|
readonly RDT_GOV_DATE_NEXT_YEAR: "Další rok";
|
|
332
|
+
readonly RDT_FORM_UNSAVED_CHANGES: "Ve formuláři máte neuložené změny. Opravdu chcete odejít?";
|
|
194
333
|
};
|
|
195
334
|
|
|
196
335
|
declare const enUsRdtDictionary: {
|
|
@@ -234,6 +373,7 @@ declare const enUsRdtDictionary: {
|
|
|
234
373
|
readonly RDT_GOV_DATE_NEXT_MONTH: "Next month";
|
|
235
374
|
readonly RDT_GOV_DATE_PREV_YEAR: "Previous year";
|
|
236
375
|
readonly RDT_GOV_DATE_NEXT_YEAR: "Next year";
|
|
376
|
+
readonly RDT_FORM_UNSAVED_CHANGES: "You have unsaved changes. Are you sure you want to leave?";
|
|
237
377
|
};
|
|
238
378
|
|
|
239
379
|
interface RdtLocaleFormatConfig {
|
|
@@ -281,15 +421,15 @@ type RdtLocaleStore = {
|
|
|
281
421
|
declare class RdtFormatPipe implements PipeTransform {
|
|
282
422
|
private translateService;
|
|
283
423
|
transform(key: Date | number, currency?: RdtCurrencyCode): string;
|
|
284
|
-
static ɵfac:
|
|
285
|
-
static ɵpipe:
|
|
424
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtFormatPipe, never>;
|
|
425
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RdtFormatPipe, "rdtFormat", true>;
|
|
286
426
|
}
|
|
287
427
|
|
|
288
428
|
declare class RdtTranslatePipe implements PipeTransform {
|
|
289
429
|
private translateService;
|
|
290
430
|
transform(value: RdtTranslateKey, params?: RdtTranslateParams): string;
|
|
291
|
-
static ɵfac:
|
|
292
|
-
static ɵpipe:
|
|
431
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtTranslatePipe, never>;
|
|
432
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RdtTranslatePipe, "rdtTranslate", true>;
|
|
293
433
|
}
|
|
294
434
|
|
|
295
435
|
declare const RDT_DEFAULT_LOCALE_STORE: RdtLocaleStore;
|
|
@@ -297,13 +437,13 @@ declare const RDT_LOCALE_STORE_PROVIDER: InjectionToken<RdtLocaleStore>;
|
|
|
297
437
|
|
|
298
438
|
declare class RdtTranslateService {
|
|
299
439
|
private readonly _localeStore;
|
|
300
|
-
readonly availableLocales:
|
|
440
|
+
readonly availableLocales: i0.Signal<RdtLocaleCode[]>;
|
|
301
441
|
private readonly _localeCode;
|
|
302
|
-
readonly currentLocaleCode:
|
|
303
|
-
readonly currentLanguage:
|
|
304
|
-
readonly currentLocale:
|
|
305
|
-
readonly currentFormat:
|
|
306
|
-
readonly currentDictionary:
|
|
442
|
+
readonly currentLocaleCode: i0.Signal<RdtLocaleCode>;
|
|
443
|
+
readonly currentLanguage: i0.Signal<string>;
|
|
444
|
+
readonly currentLocale: i0.Signal<RdtLocale>;
|
|
445
|
+
readonly currentFormat: i0.Signal<Readonly<_ngrdt_core.RdtLocaleFormatInt>>;
|
|
446
|
+
readonly currentDictionary: i0.Signal<Readonly<RdtDictionary>>;
|
|
307
447
|
readonly currentLocaleChange$: Observable<Readonly<RdtLocale>>;
|
|
308
448
|
constructor();
|
|
309
449
|
setCurrentLocale(locale: RdtLocaleCode): void;
|
|
@@ -323,8 +463,8 @@ declare class RdtTranslateService {
|
|
|
323
463
|
registerLocale(code: RdtLocaleCode, locale: RdtLocale): void;
|
|
324
464
|
isLocaleAvailable(locale: string): locale is RdtLocaleCode;
|
|
325
465
|
private getNearestLocaleCode;
|
|
326
|
-
static ɵfac:
|
|
327
|
-
static ɵprov:
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtTranslateService, never>;
|
|
467
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RdtTranslateService>;
|
|
328
468
|
}
|
|
329
469
|
|
|
330
470
|
declare const RDT_DEFAULT_DISABLED_KEY: unique symbol;
|
|
@@ -332,29 +472,29 @@ declare const RDT_DEFAULT_LOADING_KEY: unique symbol;
|
|
|
332
472
|
declare abstract class RdtInteractiveElementComponent implements RdtAutofocusable {
|
|
333
473
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
334
474
|
readonly destroyRef: DestroyRef;
|
|
335
|
-
readonly disabledInput:
|
|
336
|
-
protected readonly disabledMap:
|
|
337
|
-
readonly disabled:
|
|
338
|
-
protected readonly disabledEffect:
|
|
339
|
-
readonly loadingInput:
|
|
340
|
-
protected readonly loadingMap:
|
|
341
|
-
readonly loading:
|
|
475
|
+
readonly disabledInput: i0.InputSignalWithTransform<boolean, unknown>;
|
|
476
|
+
protected readonly disabledMap: i0.WritableSignal<Record<symbol, boolean>>;
|
|
477
|
+
readonly disabled: i0.Signal<boolean>;
|
|
478
|
+
protected readonly disabledEffect: i0.EffectRef;
|
|
479
|
+
readonly loadingInput: i0.InputSignalWithTransform<boolean, unknown>;
|
|
480
|
+
protected readonly loadingMap: i0.WritableSignal<Record<symbol, boolean>>;
|
|
481
|
+
readonly loading: i0.Signal<boolean>;
|
|
342
482
|
get uid(): string;
|
|
343
483
|
protected _uid: string;
|
|
344
|
-
readonly idInput:
|
|
345
|
-
readonly id:
|
|
346
|
-
readonly autofocusInput:
|
|
347
|
-
readonly autofocus:
|
|
348
|
-
readonly focused:
|
|
484
|
+
readonly idInput: i0.InputSignalWithTransform<{}, unknown>;
|
|
485
|
+
readonly id: i0.WritableSignal<{}>;
|
|
486
|
+
readonly autofocusInput: i0.InputSignalWithTransform<boolean, unknown>;
|
|
487
|
+
readonly autofocus: i0.WritableSignal<boolean>;
|
|
488
|
+
readonly focused: i0.WritableSignal<boolean>;
|
|
349
489
|
abstract focus(): void;
|
|
350
490
|
abstract canFocus(): RdtBooleanResult;
|
|
351
|
-
protected readonly autofocusEffect:
|
|
491
|
+
protected readonly autofocusEffect: i0.AfterRenderRef;
|
|
352
492
|
setDisabledState(isDisabled: boolean, key?: symbol): void;
|
|
353
493
|
setLoadingState(isLoading: boolean, key?: symbol): void;
|
|
354
494
|
onFocus(): void;
|
|
355
495
|
onBlur(): void;
|
|
356
|
-
static ɵfac:
|
|
357
|
-
static ɵdir:
|
|
496
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdtInteractiveElementComponent, never>;
|
|
497
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdtInteractiveElementComponent, never, never, { "disabledInput": { "alias": "rdtDisabled"; "required": false; "isSignal": true; }; "loadingInput": { "alias": "loading"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "autofocusInput": { "alias": "autofocus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
358
498
|
}
|
|
359
499
|
|
|
360
500
|
type RdtLinkedState<TInput> = {
|
|
@@ -379,5 +519,5 @@ interface RdtNotificationServiceInt {
|
|
|
379
519
|
|
|
380
520
|
declare const RDT_NOTIFICATION_SERVICE_PROVIDER: InjectionToken<RdtNotificationServiceInt>;
|
|
381
521
|
|
|
382
|
-
export { RDT_AUTOFOCUSABLE_COMPONENT, RDT_CONTAINER, RDT_DEFAULT_DISABLED_KEY, RDT_DEFAULT_LOADING_KEY, RDT_DEFAULT_LOCALE_STORE, RDT_DIALOG_SERVICE_PROVIDER, RDT_GUARDED_COMPONENT, RDT_LOCALE_STORE_PROVIDER, RDT_NOTIFICATION_SERVICE_PROVIDER, RdtAutoFocusOnInitDirective, RdtAutofocusableDirective, RdtChildDirective, RdtComponentGuardStoreService, RdtComponentOutletDirective, RdtContainerDirective, RdtFormatPipe, RdtInteractiveElementComponent, RdtLocaleFormat, RdtTranslatePipe, RdtTranslateService, canTransition$, csRdtDictionary, csRdtLocaleFormat, enUsRdtDictionary, enUsRdtLocaleFormat, getRdtAutofocusable, rdtCreateLinkedState, rdtGetAllResultsTrue$, rdtGetResult
|
|
383
|
-
export type { RdtAlertDialogConfig, RdtAutofocusable, RdtBooleanResult, RdtCanEnterView, RdtCanLeaveView, RdtConfirmDialogConfig, RdtCreateLinkedStateParams, RdtCurrencyCode, RdtDialogServiceInt, RdtDictionary, RdtIsActive, RdtLinkedState, RdtLocale, RdtLocaleCode, RdtLocaleFormatConfig, RdtLocaleFormatInt, RdtLocaleStore, RdtNotificationServiceInt, RdtNotificationSimpleConfig, RdtOnViewWillEnter, RdtOnViewWillLeave, RdtTranslateKey, RdtTranslateParams, RdtTranslateValue };
|
|
522
|
+
export { RDT_AUTOFOCUSABLE_COMPONENT, RDT_CONTAINER, RDT_DEFAULT_DISABLED_KEY, RDT_DEFAULT_LOADING_KEY, RDT_DEFAULT_LOCALE_STORE, RDT_DIALOG_SERVICE_PROVIDER, RDT_GUARDED_COMPONENT, RDT_LOCALE_STORE_PROVIDER, RDT_NOTIFICATION_SERVICE_PROVIDER, RdtAutoFocusOnInitDirective, RdtAutofocusableDirective, RdtChildDirective, RdtComponentGuardStoreService, RdtComponentOutletDirective, RdtContainerDirective, RdtFormatPipe, RdtGuardBlockerResolver, RdtGuardRegistry, RdtInteractiveElementComponent, RdtLocaleFormat, RdtTranslatePipe, RdtTranslateService, canTransition$, csRdtDictionary, csRdtLocaleFormat, enUsRdtDictionary, enUsRdtLocaleFormat, getRdtAutofocusable, provideRdtGuardBlockerResolver, rdtCreateLinkedState, rdtFlattenBlockers, rdtGetAllResultsTrue$, rdtGetResult$, rdtUseGuard, rdtUseGuardContainer };
|
|
523
|
+
export type { RdtAlertDialogConfig, RdtAutofocusable, RdtBooleanResult, RdtCanEnterView, RdtCanLeaveView, RdtConfirmDialogConfig, RdtCreateLinkedStateParams, RdtCurrencyCode, RdtDialogServiceInt, RdtDictionary, RdtGuardBlocker, RdtGuarded, RdtGuardedContainer, RdtIsActive, RdtLinkedState, RdtLocale, RdtLocaleCode, RdtLocaleFormatConfig, RdtLocaleFormatInt, RdtLocaleStore, RdtNotificationServiceInt, RdtNotificationSimpleConfig, RdtOnViewWillEnter, RdtOnViewWillLeave, RdtTranslateKey, RdtTranslateParams, RdtTranslateValue };
|