@wemake4u/form-player 0.0.0-stage → 2.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.
- package/LICENSE +21 -0
- package/README.md +33 -3
- package/THIRD_PARTY_LICENSES.txt +67 -0
- package/fesm2022/wemake4u-form-player.mjs +13264 -0
- package/fesm2022/wemake4u-form-player.mjs.map +1 -0
- package/package.json +42 -3
- package/types/wemake4u-form-player.d.ts +1630 -0
|
@@ -0,0 +1,1630 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, DestroyRef, ElementRef, EnvironmentInjector, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges, Type } from "@angular/core";
|
|
3
|
+
import { ActivatedRoute, Params, Router } from "@angular/router";
|
|
4
|
+
import { AbstractControl, AbstractControlOptions, AsyncValidatorFn, FormControlStatus, FormGroup, ValidationErrors, ValidatorFn } from "@angular/forms";
|
|
5
|
+
import { Observable, Subject } from "rxjs";
|
|
6
|
+
import { SirioButtonVariant, SirioDialogSize, SirioSidenavItem, SirioStep, SirioToastService } from "@wemake4u/form-controls";
|
|
7
|
+
import { ConfirmationController, LanguageService, Message, MessageFactory, NotificationController, NotifyTypes, PromptController } from "@wemake4u/interact";
|
|
8
|
+
import { DomSanitizer, SafeHtml, SafeResourceUrl } from "@angular/platform-browser";
|
|
9
|
+
import { HttpClient } from "@angular/common/http";
|
|
10
|
+
import { FilterModel, IGetRowsParams } from "ag-grid-community";
|
|
11
|
+
declare class FormGroupEx<TControl extends { [K in keyof TControl]: AbstractControl<any>; }> extends FormGroup<TControl> {
|
|
12
|
+
constructor(controls: TControl, mode: FormGroupMode, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
|
|
13
|
+
getMode(): FormGroupMode;
|
|
14
|
+
isNull(): boolean;
|
|
15
|
+
setNull(): void;
|
|
16
|
+
setNotNull(): void;
|
|
17
|
+
private __isNull;
|
|
18
|
+
private sub?;
|
|
19
|
+
private mode;
|
|
20
|
+
private setNullValue;
|
|
21
|
+
private clearNullValue;
|
|
22
|
+
protected _updateValue(): void;
|
|
23
|
+
}
|
|
24
|
+
type FormGroupMode = 'default' | 'nullable';
|
|
25
|
+
declare function isNullableGroup(control: AbstractControl): control is FormGroupEx<any>;
|
|
26
|
+
export declare class GlobalService {
|
|
27
|
+
constructor();
|
|
28
|
+
clearProperties(): void;
|
|
29
|
+
setProperties(properties: Record<string, any>): void;
|
|
30
|
+
getProperties(): Record<string, any>;
|
|
31
|
+
getProperty(name: string, defaultValue?: any): any;
|
|
32
|
+
registerComponent(typeName: string, componentType: Type<any>): void;
|
|
33
|
+
getComponents(): Record<string, Type<any>>;
|
|
34
|
+
getComponent(typeName: string): Type<any> | null;
|
|
35
|
+
private properties;
|
|
36
|
+
private components;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalService, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
39
|
+
}
|
|
40
|
+
export declare class FeelService {
|
|
41
|
+
private globalService;
|
|
42
|
+
constructor(globalService: GlobalService);
|
|
43
|
+
private _verbose;
|
|
44
|
+
get verbose(): boolean;
|
|
45
|
+
evalTemplate(template: string, context?: any): string;
|
|
46
|
+
evalExpression(expression: string, context?: Record<string, any>): any;
|
|
47
|
+
evalUnaryTest(expression: string, context?: Record<string, any>, input?: any): boolean | null;
|
|
48
|
+
isValidExpression(expression: string): boolean;
|
|
49
|
+
isValidUnaryTest(expression: string): boolean;
|
|
50
|
+
getDependencies(expression: string, context?: Record<string, any>): (string | string[])[];
|
|
51
|
+
getTemplateDependencies(expression: string, context?: Record<string, any>): (string | string[])[];
|
|
52
|
+
private findAncestor;
|
|
53
|
+
private findDescendant;
|
|
54
|
+
private findChild;
|
|
55
|
+
private findChildren;
|
|
56
|
+
private getFunctionName;
|
|
57
|
+
private getStatusDependencies;
|
|
58
|
+
private splitQuoted;
|
|
59
|
+
private logWarnings;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeelService, never>;
|
|
61
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
62
|
+
}
|
|
63
|
+
type Path = string | number | Array<string | number>;
|
|
64
|
+
/** A path split into its segments (see normalizePath). */
|
|
65
|
+
type PathSegments = (string | number)[];
|
|
66
|
+
declare function normalizePath(path: Path): PathSegments;
|
|
67
|
+
declare function matchPath(pathA: Path, pathB: Path): boolean;
|
|
68
|
+
declare function stringifyPath(path: Path): string;
|
|
69
|
+
declare function isIndexSegment(segment: string | number): boolean;
|
|
70
|
+
export declare class ScopeService implements IEvaluatorProvider {
|
|
71
|
+
private parent;
|
|
72
|
+
constructor(parent: ScopeService | null);
|
|
73
|
+
private readonly injector;
|
|
74
|
+
private scope;
|
|
75
|
+
private readonly refreshSubject;
|
|
76
|
+
readonly onRefresh: Observable<Path>;
|
|
77
|
+
/** Paths requested with watch(), by key: watched again when the scope is replaced. */
|
|
78
|
+
private readonly requested;
|
|
79
|
+
/** Effects of the watched paths that go through signals, by key. */
|
|
80
|
+
private readonly watchers;
|
|
81
|
+
set(scope: Record<string, any> | null): void;
|
|
82
|
+
get(): Record<string, any> | null;
|
|
83
|
+
refresh(path?: Path): void;
|
|
84
|
+
refreshMany(...paths: Path[]): void;
|
|
85
|
+
/**
|
|
86
|
+
* Refreshes that concern the given path: the explicit ones (refresh(), setValue()) and, when the
|
|
87
|
+
* path goes through signals of the scope, the changes of those signals.
|
|
88
|
+
*/
|
|
89
|
+
watch(path: Path): Observable<Path>;
|
|
90
|
+
setValue(path: Path, value: any): void;
|
|
91
|
+
getContext(): Record<string, any>;
|
|
92
|
+
/** Watches the last signal along the path (nothing to do when the path has none). */
|
|
93
|
+
private watchSignals;
|
|
94
|
+
private unwatchAll;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [{
|
|
96
|
+
optional: true;
|
|
97
|
+
skipSelf: true;
|
|
98
|
+
}]>;
|
|
99
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
100
|
+
}
|
|
101
|
+
export declare class Control {
|
|
102
|
+
private readonly context;
|
|
103
|
+
constructor(context: ControlContext);
|
|
104
|
+
get name(): string;
|
|
105
|
+
protected getMetadata(): any;
|
|
106
|
+
protected getComponentRef(): any;
|
|
107
|
+
protected getElementRef(): ElementRef;
|
|
108
|
+
protected getInjector(): Injector;
|
|
109
|
+
protected getDestroyRef(): DestroyRef;
|
|
110
|
+
protected getRegister(): RegisterService | undefined;
|
|
111
|
+
protected onInit(): void;
|
|
112
|
+
protected onLoadState(): void;
|
|
113
|
+
protected onSaveState(): void;
|
|
114
|
+
protected onDestroy(): void;
|
|
115
|
+
protected getState<T = any>(): T | null;
|
|
116
|
+
protected setState(state: any): void;
|
|
117
|
+
protected clearState(): void;
|
|
118
|
+
private getId;
|
|
119
|
+
private State;
|
|
120
|
+
}
|
|
121
|
+
export declare class ContainerControl extends Control {
|
|
122
|
+
constructor(context: ControlContext);
|
|
123
|
+
findControl(predicate: (control: Control) => boolean, firstOnly: boolean): Control[];
|
|
124
|
+
}
|
|
125
|
+
export declare class ItemControl extends ContainerControl {
|
|
126
|
+
readonly index: number;
|
|
127
|
+
constructor(context: ControlContext, index: number);
|
|
128
|
+
}
|
|
129
|
+
export interface ControlContext {
|
|
130
|
+
name: string;
|
|
131
|
+
path: string;
|
|
132
|
+
metadata: any;
|
|
133
|
+
componentRef: any;
|
|
134
|
+
elementRef: ElementRef;
|
|
135
|
+
injector: Injector;
|
|
136
|
+
destroyRef: DestroyRef;
|
|
137
|
+
register: () => RegisterService | undefined;
|
|
138
|
+
}
|
|
139
|
+
declare class RegisterService implements IEvaluatorProvider {
|
|
140
|
+
private parent;
|
|
141
|
+
constructor(parent: RegisterService | null);
|
|
142
|
+
private controls;
|
|
143
|
+
register(name: string, control: Control): void;
|
|
144
|
+
unregister(name: string): void;
|
|
145
|
+
unregisterAll(): void;
|
|
146
|
+
identify(id: string, index?: number): void;
|
|
147
|
+
getPath(): string;
|
|
148
|
+
private _path?;
|
|
149
|
+
private identityNode?;
|
|
150
|
+
private get identityChain();
|
|
151
|
+
getContext(): Record<string, any>;
|
|
152
|
+
getControl(name: string): Control | null;
|
|
153
|
+
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
154
|
+
findControl(predicate: (control: Control) => boolean, firstOnly?: boolean, parent?: boolean): Control[];
|
|
155
|
+
private castString;
|
|
156
|
+
private resolveParent;
|
|
157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterService, [{
|
|
158
|
+
optional: true;
|
|
159
|
+
skipSelf: true;
|
|
160
|
+
}]>;
|
|
161
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
162
|
+
}
|
|
163
|
+
interface IdentityNode {
|
|
164
|
+
id: string;
|
|
165
|
+
index?: number;
|
|
166
|
+
}
|
|
167
|
+
export declare class ToastService implements IEvaluatorProvider {
|
|
168
|
+
private sirioToast;
|
|
169
|
+
private global;
|
|
170
|
+
constructor(sirioToast: SirioToastService, global: GlobalService);
|
|
171
|
+
private delayTime;
|
|
172
|
+
notifyInfo(message: string, title?: string, delay?: number): void;
|
|
173
|
+
notifySuccess(message: string, title?: string, delay?: number): void;
|
|
174
|
+
notifyWarning(message: string, title?: string, delay?: number): void;
|
|
175
|
+
notifyError(message: string, title?: string, delay?: number): void;
|
|
176
|
+
getContext(): Record<string, any>;
|
|
177
|
+
private notify;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
179
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
180
|
+
}
|
|
181
|
+
declare class MetadataService {
|
|
182
|
+
constructor();
|
|
183
|
+
setSchema(schema: any): void;
|
|
184
|
+
getSchema(): any;
|
|
185
|
+
setForms(forms: any[]): void;
|
|
186
|
+
getTemplateByName(name: string): any;
|
|
187
|
+
getForms(): any[];
|
|
188
|
+
getFormByName(name: string): any;
|
|
189
|
+
getFormIndexByName(name: string): number;
|
|
190
|
+
getFormNameByIndex(index: number): string | undefined;
|
|
191
|
+
private schema;
|
|
192
|
+
private forms;
|
|
193
|
+
private isValidFormIndex;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataService, never>;
|
|
195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
196
|
+
}
|
|
197
|
+
export declare class DialogService implements IEvaluatorProvider {
|
|
198
|
+
private readonly dialogs;
|
|
199
|
+
openDialog(formSchema: any, options?: FormDialogOptions): void;
|
|
200
|
+
/** Closes the top dialog without a result (onResult is not called). */
|
|
201
|
+
closeDialog(): void;
|
|
202
|
+
alert(text: string, options?: DialogOptions): void;
|
|
203
|
+
info(text: string, options?: DialogOptions): void;
|
|
204
|
+
confirm(text: string, options?: DialogOptions): void;
|
|
205
|
+
show(text: string, options?: DialogOptions): void;
|
|
206
|
+
prompt(text: string, defaultValue?: string, options?: DialogOptions): void;
|
|
207
|
+
getContext(): Record<string, any>;
|
|
208
|
+
private showDialog;
|
|
209
|
+
private createTextSchema;
|
|
210
|
+
private createInputSchema;
|
|
211
|
+
private ensureClosable;
|
|
212
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
213
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
214
|
+
}
|
|
215
|
+
export type DialogTypes = 'info' | 'warning' | 'danger';
|
|
216
|
+
export type DialogSizes = SirioDialogSize;
|
|
217
|
+
export type ButtonColors = SirioButtonVariant;
|
|
218
|
+
export interface DialogOptions {
|
|
219
|
+
type?: DialogTypes;
|
|
220
|
+
size?: DialogSizes;
|
|
221
|
+
title?: string;
|
|
222
|
+
isDrawer?: boolean;
|
|
223
|
+
closeButton?: boolean;
|
|
224
|
+
buttons?: DialogButtons;
|
|
225
|
+
customButtons?: CustomButton[];
|
|
226
|
+
keepOpen?: boolean;
|
|
227
|
+
onResult?: (result: DialogResult) => void;
|
|
228
|
+
}
|
|
229
|
+
export interface FormDialogOptions extends DialogOptions {
|
|
230
|
+
value?: any;
|
|
231
|
+
injector?: Injector;
|
|
232
|
+
showNav?: boolean;
|
|
233
|
+
showNavButton?: boolean;
|
|
234
|
+
showProgress?: boolean;
|
|
235
|
+
showFormTitle?: boolean;
|
|
236
|
+
/** role="alertdialog" (alert and confirm). */
|
|
237
|
+
alert?: boolean;
|
|
238
|
+
}
|
|
239
|
+
export interface DialogResult {
|
|
240
|
+
form: DynamicFormComponent;
|
|
241
|
+
setProperty: (name: string, value: unknown) => void;
|
|
242
|
+
action: DialogAction | string;
|
|
243
|
+
value?: any;
|
|
244
|
+
}
|
|
245
|
+
export interface CustomButton {
|
|
246
|
+
text: string;
|
|
247
|
+
color: ButtonColors;
|
|
248
|
+
action: string;
|
|
249
|
+
}
|
|
250
|
+
export type DialogAction = 'OK' | 'Cancel' | 'Yes' | 'No' | 'Confirm' | 'Close' | 'Abort' | 'Retry' | 'Ignore' | 'Try' | 'Continue';
|
|
251
|
+
export type DialogButtons = 'OK' | 'OKCancel' | 'ConfirmCancel' | 'AbortRetryIgnore' | 'YesNoCancel' | 'YesNo' | 'RetryCancel' | 'CancelTryContinue' | 'Custom';
|
|
252
|
+
interface OpenWindowFeatures {
|
|
253
|
+
width?: number;
|
|
254
|
+
height?: number;
|
|
255
|
+
left?: number;
|
|
256
|
+
top?: number;
|
|
257
|
+
toolbar?: boolean;
|
|
258
|
+
menubar?: boolean;
|
|
259
|
+
location?: boolean;
|
|
260
|
+
status?: boolean;
|
|
261
|
+
resizable?: boolean;
|
|
262
|
+
scrollbars?: boolean;
|
|
263
|
+
noopener?: boolean;
|
|
264
|
+
noreferrer?: boolean;
|
|
265
|
+
center?: boolean;
|
|
266
|
+
focus?: boolean;
|
|
267
|
+
}
|
|
268
|
+
type WindowTarget = '_blank' | '_self' | '_parent' | '_top' | string;
|
|
269
|
+
declare function openWindow(url: string, target?: WindowTarget, features?: OpenWindowFeatures): Window | null;
|
|
270
|
+
declare class FunctionService implements IEvaluatorProvider {
|
|
271
|
+
private metadata;
|
|
272
|
+
private dialog;
|
|
273
|
+
private injector;
|
|
274
|
+
constructor(metadata: MetadataService, dialog: DialogService, injector: Injector);
|
|
275
|
+
invokable(func: any): (...args: any[]) => any;
|
|
276
|
+
executeOnce<T>(observable: Observable<T>, callback: any): void;
|
|
277
|
+
asObservable<T>(value: T): Observable<T>;
|
|
278
|
+
setTimeout<T>(callback: any, delay: number): void;
|
|
279
|
+
openForm(template: string | object, options: DialogOptions): void;
|
|
280
|
+
openWindow(url: string, target?: WindowTarget, features?: OpenWindowFeatures): Window | null;
|
|
281
|
+
newGuid(): string;
|
|
282
|
+
range(from: number, to: number): number[];
|
|
283
|
+
hydrate<T = any>(value: T, deep?: boolean): T;
|
|
284
|
+
getContext(): Record<string, any>;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionService, never>;
|
|
286
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
287
|
+
}
|
|
288
|
+
type ControlType = 'array' | 'group' | 'control';
|
|
289
|
+
export type PatchPredicate = (control: AbstractControl, value: any) => boolean;
|
|
290
|
+
export interface PatchOptions {
|
|
291
|
+
emitEvent?: boolean;
|
|
292
|
+
emitError?: boolean;
|
|
293
|
+
emitWarn?: boolean;
|
|
294
|
+
validateType?: boolean;
|
|
295
|
+
fallbackValue?: any;
|
|
296
|
+
strict: boolean;
|
|
297
|
+
canPatch?: PatchPredicate;
|
|
298
|
+
}
|
|
299
|
+
export interface PathOptions {
|
|
300
|
+
emitError?: boolean;
|
|
301
|
+
emitWarn?: boolean;
|
|
302
|
+
create?: boolean;
|
|
303
|
+
expected?: ControlType;
|
|
304
|
+
breakOnArray?: boolean;
|
|
305
|
+
breakOnNull?: boolean;
|
|
306
|
+
}
|
|
307
|
+
export interface EnumerateOptions {
|
|
308
|
+
expandArray?: boolean;
|
|
309
|
+
expandGroup?: boolean;
|
|
310
|
+
skipDisabled?: boolean;
|
|
311
|
+
}
|
|
312
|
+
export type ExpandOptions = Omit<EnumerateOptions, 'skipDisabled'>;
|
|
313
|
+
export declare class FormService implements IEvaluatorProvider {
|
|
314
|
+
set(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
315
|
+
get(control: AbstractControl, path: Path, pathOptions?: PathOptions): any;
|
|
316
|
+
reset(control: AbstractControl, path: Path): any;
|
|
317
|
+
resetAll(control: AbstractControl, ...paths: string[]): void;
|
|
318
|
+
getControl(control: AbstractControl, path: Path, pathOptions?: PathOptions): AbstractControl | undefined;
|
|
319
|
+
prepend(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
320
|
+
append(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
321
|
+
insert(control: AbstractControl, path: Path, index: number, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
322
|
+
remove(control: AbstractControl, path: Path, index: number): boolean;
|
|
323
|
+
moveUp(control: AbstractControl, path: Path, index: number): boolean;
|
|
324
|
+
moveDown(control: AbstractControl, path: Path, index: number): boolean;
|
|
325
|
+
status(control: AbstractControl, path: Path, pathOptions?: PathOptions): FormControlStatus | undefined;
|
|
326
|
+
updateAllValueAndValidity(control: AbstractControl, emitEvent?: boolean): void;
|
|
327
|
+
getInvalidControls(control: AbstractControl): {
|
|
328
|
+
path: string;
|
|
329
|
+
control: AbstractControl;
|
|
330
|
+
}[];
|
|
331
|
+
patch(control: AbstractControl, value: any, options?: PatchOptions): void;
|
|
332
|
+
getPath(control: AbstractControl): (string | number)[];
|
|
333
|
+
getFullPath(control: AbstractControl): string;
|
|
334
|
+
waitForControl(formGroup: FormGroup, path: Path, pathOptions?: PathOptions): Observable<AbstractControl>;
|
|
335
|
+
statusChanges(control: AbstractControl, waitForPending?: () => void): Observable<FormControlStatus>;
|
|
336
|
+
buildControl(value: any): AbstractControl;
|
|
337
|
+
getContext(formGroup: any): Record<string, any>;
|
|
338
|
+
enumerateControls(source: AbstractControl | Iterable<AbstractControl>, options?: EnumerateOptions): Generator<AbstractControl>;
|
|
339
|
+
private applyPath;
|
|
340
|
+
private asObject;
|
|
341
|
+
private asArray;
|
|
342
|
+
private insertIntoArray;
|
|
343
|
+
private removeFromArray;
|
|
344
|
+
private createArrayItem;
|
|
345
|
+
private createControlFromValue;
|
|
346
|
+
private createControlFromArray;
|
|
347
|
+
private setUnknown;
|
|
348
|
+
private isUnknown;
|
|
349
|
+
private waitUntilSettled;
|
|
350
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
351
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
352
|
+
}
|
|
353
|
+
declare class FormatterService implements IEvaluatorProvider {
|
|
354
|
+
constructor();
|
|
355
|
+
formatDate(isoDate: string | null | undefined, options?: Intl.DateTimeFormatOptions, locale?: string): string;
|
|
356
|
+
formatTime(isoDate: string | null | undefined, options?: Intl.DateTimeFormatOptions, locale?: string): string;
|
|
357
|
+
formatDateTime(isoDate: string | null | undefined, options?: Intl.DateTimeFormatOptions, locale?: string): string;
|
|
358
|
+
formatCurrency(value: number, currency?: string, locale?: string): string;
|
|
359
|
+
formatNumber(value: number, decimals?: number, locale?: string): string;
|
|
360
|
+
getContext(): Record<string, any>;
|
|
361
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatterService, never>;
|
|
362
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
363
|
+
}
|
|
364
|
+
declare class JsonService implements IEvaluatorProvider {
|
|
365
|
+
constructor();
|
|
366
|
+
toJson(value: any, indent: boolean): string;
|
|
367
|
+
parseJson(value: any): any;
|
|
368
|
+
getContext(): Record<string, any>;
|
|
369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonService, never>;
|
|
370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
371
|
+
}
|
|
372
|
+
declare class WeakService {
|
|
373
|
+
constructor();
|
|
374
|
+
private cache;
|
|
375
|
+
exists(source: object, key: string): boolean;
|
|
376
|
+
call<T>(source: object, key: string, func: () => T, reusable?: ((value: T) => boolean) | null, store?: ((value: T) => any) | null, cacheable?: ((value: T) => boolean) | null): T;
|
|
377
|
+
invalidate(source: object, key: string): void;
|
|
378
|
+
invalidateAll(source: object): void;
|
|
379
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WeakService, never>;
|
|
380
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
381
|
+
}
|
|
382
|
+
declare class SubscribeService {
|
|
383
|
+
get dispatchMode(): DispatchMode;
|
|
384
|
+
set dispatchMode(value: DispatchMode);
|
|
385
|
+
subscribeChanges<T>(observable$: Observable<T>, control: AbstractControl, initial: T, destroyRef: DestroyRef, callback: (() => void) | ((oldValue: T, newValue: T) => void), logFn?: (control: AbstractControl) => void, emitWhenUnchanged?: boolean): void;
|
|
386
|
+
private _dispatchMode;
|
|
387
|
+
private dispatch;
|
|
388
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscribeService, never>;
|
|
389
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
390
|
+
}
|
|
391
|
+
type DispatchMode = 'sync' | 'async';
|
|
392
|
+
declare class Notifier<T = void> {
|
|
393
|
+
private readonly subject;
|
|
394
|
+
readonly changes: Observable<T>;
|
|
395
|
+
notify(value: T): void;
|
|
396
|
+
complete(): void;
|
|
397
|
+
}
|
|
398
|
+
interface SessionChange<T = unknown> {
|
|
399
|
+
key: string;
|
|
400
|
+
value: T | null;
|
|
401
|
+
previousValue: T | null;
|
|
402
|
+
}
|
|
403
|
+
declare class SessionService {
|
|
404
|
+
private readonly storage;
|
|
405
|
+
private readonly changes;
|
|
406
|
+
get<T>(key: string): T | null;
|
|
407
|
+
set<T>(key: string, value: T): void;
|
|
408
|
+
remove(key: string): void;
|
|
409
|
+
watch(): Observable<SessionChange>;
|
|
410
|
+
private write;
|
|
411
|
+
private parse;
|
|
412
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
|
|
413
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
414
|
+
}
|
|
415
|
+
declare class ProgrammabilityService {
|
|
416
|
+
private feelService;
|
|
417
|
+
private weakService;
|
|
418
|
+
private toastService;
|
|
419
|
+
private dialogService;
|
|
420
|
+
private formatterService;
|
|
421
|
+
private jsonService;
|
|
422
|
+
private functionService;
|
|
423
|
+
private formService;
|
|
424
|
+
private globalService;
|
|
425
|
+
private subscribeService;
|
|
426
|
+
private session;
|
|
427
|
+
private destroyRef;
|
|
428
|
+
private register;
|
|
429
|
+
private scope;
|
|
430
|
+
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService, jsonService: JsonService, functionService: FunctionService, formService: FormService, globalService: GlobalService, subscribeService: SubscribeService, session: SessionService, destroyRef: DestroyRef, register: RegisterService, scope: ScopeService);
|
|
431
|
+
readonly evaluationDone: Notifier<void>;
|
|
432
|
+
private predefinedFunctions;
|
|
433
|
+
private evaluatorProviders;
|
|
434
|
+
addEvaluatorProviders(evaluatorProvider: IEvaluatorProvider): void;
|
|
435
|
+
isExpression(text: string | null | undefined): boolean;
|
|
436
|
+
getExpression(text: string | null | undefined): string;
|
|
437
|
+
evaluateString(formGroup: FormGroup, value: string | null | undefined, options?: EvaluateOptions): string;
|
|
438
|
+
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null | undefined, options?: EvaluateOptions): boolean | null;
|
|
439
|
+
evaluateNumber(formGroup: FormGroup, value: number | string | null | undefined, options?: EvaluateOptions): number | null;
|
|
440
|
+
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
441
|
+
evaluateTemplate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
442
|
+
evaluateUnary(formGroup: FormGroup, value: string | null, input: any, options?: EvaluateOptions): any;
|
|
443
|
+
invalidate(value: string | null): void;
|
|
444
|
+
invalidateAll(): void;
|
|
445
|
+
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void, destroyRef?: DestroyRef): void;
|
|
446
|
+
getDependencies(formGroup: FormGroup, expression: string): (string | string[])[];
|
|
447
|
+
get verbose(): boolean;
|
|
448
|
+
get cacheable(): boolean;
|
|
449
|
+
private _verbose;
|
|
450
|
+
private _cacheable;
|
|
451
|
+
private onErrorHandler;
|
|
452
|
+
private Init;
|
|
453
|
+
private evalUnaryTest;
|
|
454
|
+
private evalExpression;
|
|
455
|
+
private evalTemplate;
|
|
456
|
+
private onError;
|
|
457
|
+
private getPredefinedFunctions;
|
|
458
|
+
private getFeelFunctions;
|
|
459
|
+
private getFormFunctions;
|
|
460
|
+
private getParentContext;
|
|
461
|
+
private getRootContext;
|
|
462
|
+
private getParent;
|
|
463
|
+
private getContext;
|
|
464
|
+
private watchingExpression;
|
|
465
|
+
private watchingTemplateExpression;
|
|
466
|
+
private watchingDependencies;
|
|
467
|
+
private invalidateExpression;
|
|
468
|
+
private invalidateAllExpression;
|
|
469
|
+
private processDependencies;
|
|
470
|
+
private getPath;
|
|
471
|
+
private readonly route;
|
|
472
|
+
private queryParams;
|
|
473
|
+
private readonly queryParams$;
|
|
474
|
+
private onQueryParamsChange;
|
|
475
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, null, null, null, null, null, null, null, {
|
|
476
|
+
optional: true;
|
|
477
|
+
}, {
|
|
478
|
+
optional: true;
|
|
479
|
+
}]>;
|
|
480
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
481
|
+
}
|
|
482
|
+
interface IEvaluatorProvider {
|
|
483
|
+
getContext(scope?: any): Record<string, any>;
|
|
484
|
+
}
|
|
485
|
+
interface EvaluateOptions {
|
|
486
|
+
cacheable?: boolean;
|
|
487
|
+
ignoreDeps?: boolean;
|
|
488
|
+
cacheInvalidated?: () => void;
|
|
489
|
+
destroyRef?: DestroyRef;
|
|
490
|
+
invokeArgs?: any[];
|
|
491
|
+
hydrate?: boolean;
|
|
492
|
+
extendContext?: ExtendContextFn;
|
|
493
|
+
transform?: TransformFn;
|
|
494
|
+
}
|
|
495
|
+
type ExtendContextFn = () => Record<string, any>;
|
|
496
|
+
type TransformFn<TIn = any, TOut = any> = (value: TIn) => TOut;
|
|
497
|
+
declare class ValidationService {
|
|
498
|
+
private languageService;
|
|
499
|
+
private programmability;
|
|
500
|
+
constructor(languageService: LanguageService, programmability: ProgrammabilityService);
|
|
501
|
+
private requiredMode;
|
|
502
|
+
readonly validationDone: Notifier<void>;
|
|
503
|
+
private _suppress;
|
|
504
|
+
set suppress(value: boolean);
|
|
505
|
+
get suppress(): boolean;
|
|
506
|
+
createCollection(): ValidationCollection;
|
|
507
|
+
addToCollection(collection: ValidationCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
508
|
+
setupCollection(collection: ValidationCollection, destroyRef?: DestroyRef): void;
|
|
509
|
+
validateRequired(control: AbstractControl, currentValue: any): ValidationErrors | null;
|
|
510
|
+
isRequired(control: AbstractControl): boolean;
|
|
511
|
+
allowSilentError(): boolean;
|
|
512
|
+
isSilentError(control: AbstractControl | null | undefined): boolean;
|
|
513
|
+
hasSilentErrors(controls: Iterable<AbstractControl>): boolean;
|
|
514
|
+
revealSilentErrors(controls: Iterable<AbstractControl>): void;
|
|
515
|
+
countErrors(controls: Iterable<AbstractControl>, includeSilent?: boolean): number;
|
|
516
|
+
private canAddToCollection;
|
|
517
|
+
private getRules;
|
|
518
|
+
private validateRules;
|
|
519
|
+
private createValidator;
|
|
520
|
+
private createAsyncValidator;
|
|
521
|
+
private createRequiredValidator;
|
|
522
|
+
private markSilent;
|
|
523
|
+
private validationErrors;
|
|
524
|
+
private watchForValidation;
|
|
525
|
+
private logValidation;
|
|
526
|
+
private readonly nullObserver;
|
|
527
|
+
private get language();
|
|
528
|
+
private locale;
|
|
529
|
+
private requiredValidators;
|
|
530
|
+
private requiredValidator;
|
|
531
|
+
private requiredTrueValidator;
|
|
532
|
+
private isTrueValidator;
|
|
533
|
+
private isRequiredSatisfied;
|
|
534
|
+
private getRequiredMessage;
|
|
535
|
+
private shouldSkipValidation;
|
|
536
|
+
private resolveSkipValidation;
|
|
537
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationService, never>;
|
|
538
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
539
|
+
}
|
|
540
|
+
interface ComponentContext {
|
|
541
|
+
component: any;
|
|
542
|
+
formGroup: FormGroup;
|
|
543
|
+
}
|
|
544
|
+
interface ValidationRule {
|
|
545
|
+
expression: string;
|
|
546
|
+
type: "validate" | "invalidate";
|
|
547
|
+
message: string;
|
|
548
|
+
async: boolean;
|
|
549
|
+
}
|
|
550
|
+
type ValidationCollection = Map<AbstractControl, ComponentContext>;
|
|
551
|
+
declare class DisableService {
|
|
552
|
+
private programmability;
|
|
553
|
+
private formService;
|
|
554
|
+
constructor(programmability: ProgrammabilityService, formService: FormService);
|
|
555
|
+
createCollection(): DisableCollection;
|
|
556
|
+
addToCollection(collection: DisableCollection, control: AbstractControl, parentGroup: FormGroup, component: any): void;
|
|
557
|
+
setupCollection(collection: DisableCollection, destroyRef?: DestroyRef): void;
|
|
558
|
+
private selfDisabled;
|
|
559
|
+
private applyRule;
|
|
560
|
+
private canAddToCollection;
|
|
561
|
+
private getPath;
|
|
562
|
+
private normalize;
|
|
563
|
+
private isContainer;
|
|
564
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisableService, never>;
|
|
565
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
566
|
+
}
|
|
567
|
+
interface DisableContext {
|
|
568
|
+
parentGroup: FormGroup;
|
|
569
|
+
component: any;
|
|
570
|
+
}
|
|
571
|
+
type DisableCollection = Map<AbstractControl, DisableContext>;
|
|
572
|
+
declare class ComputeService {
|
|
573
|
+
private programmability;
|
|
574
|
+
private formService;
|
|
575
|
+
constructor(programmability: ProgrammabilityService, formService: FormService);
|
|
576
|
+
createCollection(): ComputeCollection;
|
|
577
|
+
addToCollection(collection: ComputeCollection, control: AbstractControl, parentGroup: FormGroup, component: any): void;
|
|
578
|
+
setupCollection(collection: ComputeCollection, destroyRef?: DestroyRef): void;
|
|
579
|
+
private canAddToCollection;
|
|
580
|
+
private applyExpression;
|
|
581
|
+
private getPath;
|
|
582
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComputeService, never>;
|
|
583
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
584
|
+
}
|
|
585
|
+
interface ComputeContext {
|
|
586
|
+
parentGroup: FormGroup;
|
|
587
|
+
component: any;
|
|
588
|
+
}
|
|
589
|
+
type ComputeCollection = Map<AbstractControl, ComputeContext>;
|
|
590
|
+
declare class StatusService {
|
|
591
|
+
private formService;
|
|
592
|
+
private subscribeService;
|
|
593
|
+
private validationService;
|
|
594
|
+
private destroyRef;
|
|
595
|
+
constructor(formService: FormService, subscribeService: SubscribeService, validationService: ValidationService, destroyRef: DestroyRef);
|
|
596
|
+
readonly statusDone: Notifier<void>;
|
|
597
|
+
createCollection(key?: any): StatusCollection;
|
|
598
|
+
addToCollection(collection: StatusCollection, control: AbstractControl, component: any): void;
|
|
599
|
+
setupCollection(collection: StatusCollection, destroyRef?: DestroyRef): void;
|
|
600
|
+
countErrors(key: any, includeSilent?: boolean): number;
|
|
601
|
+
enumerateControls(key: any, deep?: boolean): Generator<AbstractControl>;
|
|
602
|
+
private invalidMap;
|
|
603
|
+
private canAddToCollection;
|
|
604
|
+
private readonly enumerateOptions;
|
|
605
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusService, never>;
|
|
606
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
607
|
+
}
|
|
608
|
+
declare class StatusCollection<TKey = any> {
|
|
609
|
+
key?: any | undefined;
|
|
610
|
+
constructor(key?: any | undefined);
|
|
611
|
+
readonly controls: Set<AbstractControl<any, any, any>>;
|
|
612
|
+
readonly children: Map<TKey, StatusCollection<TKey>>;
|
|
613
|
+
add(control: AbstractControl): this;
|
|
614
|
+
remove(control: AbstractControl): this;
|
|
615
|
+
has(control: AbstractControl): boolean;
|
|
616
|
+
clear(): void;
|
|
617
|
+
createCollection(key: TKey): StatusCollection<TKey>;
|
|
618
|
+
getCollection(key: TKey): StatusCollection<TKey> | undefined;
|
|
619
|
+
removeCollection(key: TKey): boolean;
|
|
620
|
+
getControls(deep?: boolean): IterableIterator<AbstractControl>;
|
|
621
|
+
}
|
|
622
|
+
declare class EventService {
|
|
623
|
+
private programmability;
|
|
624
|
+
private subscribeService;
|
|
625
|
+
private destroyRef;
|
|
626
|
+
constructor(programmability: ProgrammabilityService, subscribeService: SubscribeService, destroyRef: DestroyRef);
|
|
627
|
+
private _suppress;
|
|
628
|
+
set suppress(value: boolean);
|
|
629
|
+
get suppress(): boolean;
|
|
630
|
+
createCollection(): EventCollection;
|
|
631
|
+
addToCollection(collection: EventCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
632
|
+
setupCollection(collection: EventCollection, destroyRef?: DestroyRef): void;
|
|
633
|
+
private processHandler;
|
|
634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
635
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
636
|
+
}
|
|
637
|
+
interface EventContext {
|
|
638
|
+
component: any;
|
|
639
|
+
formGroup: FormGroup;
|
|
640
|
+
}
|
|
641
|
+
type EventCollection = Map<AbstractControl, EventContext>;
|
|
642
|
+
declare class LifetimeService<TKey> implements OnDestroy {
|
|
643
|
+
private readonly environmentInjector;
|
|
644
|
+
private readonly injectors;
|
|
645
|
+
constructor(environmentInjector: EnvironmentInjector);
|
|
646
|
+
resolve(key: TKey): DestroyRef;
|
|
647
|
+
destroy(key: TKey): void;
|
|
648
|
+
ngOnDestroy(): void;
|
|
649
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LifetimeService<any>, never>;
|
|
650
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
651
|
+
}
|
|
652
|
+
interface BuildRowsOptions {
|
|
653
|
+
path?: string | null;
|
|
654
|
+
groupMode?: FormGroupMode;
|
|
655
|
+
statusSource?: any;
|
|
656
|
+
destroyRef?: DestroyRef;
|
|
657
|
+
}
|
|
658
|
+
declare class FormBuilderService {
|
|
659
|
+
private validationService;
|
|
660
|
+
private disableService;
|
|
661
|
+
private computeService;
|
|
662
|
+
private statusService;
|
|
663
|
+
private eventService;
|
|
664
|
+
private metadata;
|
|
665
|
+
private lifetime;
|
|
666
|
+
private destroyRef;
|
|
667
|
+
constructor(validationService: ValidationService, disableService: DisableService, computeService: ComputeService, statusService: StatusService, eventService: EventService, metadata: MetadataService, lifetime: LifetimeService<FormGroup>, destroyRef: DestroyRef);
|
|
668
|
+
buildForm(formGroup: FormGroup, forms: Array<any>, groupMode?: FormGroupMode): void;
|
|
669
|
+
/**
|
|
670
|
+
* Configures a FormGroup starting from an array of rows (each row exposes `components`).
|
|
671
|
+
* Rows are registered in the group located at `options.path`, relative to `formGroup`.
|
|
672
|
+
*/
|
|
673
|
+
buildRows(formGroup: FormGroup, rows: Array<any>, options?: BuildRowsOptions): FormGroup;
|
|
674
|
+
private addRows;
|
|
675
|
+
private createCollections;
|
|
676
|
+
private setupCollections;
|
|
677
|
+
private hasValue;
|
|
678
|
+
private applyPath;
|
|
679
|
+
private splitPath;
|
|
680
|
+
private createFormGroup;
|
|
681
|
+
private addControls;
|
|
682
|
+
private isFormComponent;
|
|
683
|
+
private isContainerComponent;
|
|
684
|
+
private isComponentWithInput;
|
|
685
|
+
private isArrayComponent;
|
|
686
|
+
private getArrayItem;
|
|
687
|
+
private createFormArray;
|
|
688
|
+
private getContainers;
|
|
689
|
+
private getDefaultValue;
|
|
690
|
+
private getUpdateOn;
|
|
691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderService, never>;
|
|
692
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
693
|
+
}
|
|
694
|
+
export type BrowserNavigation = 'none' | 'fragment' | 'queryParam';
|
|
695
|
+
export declare class DynamicFormComponent implements OnInit, OnChanges, OnDestroy, IEvaluatorProvider {
|
|
696
|
+
private cdr;
|
|
697
|
+
private destroyRef;
|
|
698
|
+
private programmability;
|
|
699
|
+
private formBuilder;
|
|
700
|
+
private validationService;
|
|
701
|
+
private statusService;
|
|
702
|
+
private eventService;
|
|
703
|
+
private registerService;
|
|
704
|
+
private languageService;
|
|
705
|
+
private subscribeService;
|
|
706
|
+
private metadata;
|
|
707
|
+
private formService;
|
|
708
|
+
private dialog;
|
|
709
|
+
private injector;
|
|
710
|
+
private router;
|
|
711
|
+
private route;
|
|
712
|
+
private scope;
|
|
713
|
+
schema: any;
|
|
714
|
+
formGroup: FormGroup;
|
|
715
|
+
readOnly: boolean | null;
|
|
716
|
+
value: any;
|
|
717
|
+
strict: boolean;
|
|
718
|
+
showNav: boolean;
|
|
719
|
+
showNavButton: boolean;
|
|
720
|
+
showProgress: boolean;
|
|
721
|
+
showFormTitle: boolean;
|
|
722
|
+
progressStatus: boolean;
|
|
723
|
+
preventNavigationOnErrors: boolean;
|
|
724
|
+
browserNavigation: BrowserNavigation;
|
|
725
|
+
queryParamName: string;
|
|
726
|
+
navSize: 'normal' | 'small';
|
|
727
|
+
groupMode: FormGroupMode;
|
|
728
|
+
updateMode: 'changes' | 'submit';
|
|
729
|
+
valueChange: EventEmitter<any>;
|
|
730
|
+
initialized: EventEmitter<FormGroup<any>>;
|
|
731
|
+
activeNavChange: EventEmitter<any>;
|
|
732
|
+
formDiv: ElementRef<HTMLDivElement>;
|
|
733
|
+
constructor(cdr: ChangeDetectorRef, destroyRef: DestroyRef, programmability: ProgrammabilityService, formBuilder: FormBuilderService, validationService: ValidationService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, subscribeService: SubscribeService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector, router: Router, route: ActivatedRoute, scope: ScopeService);
|
|
734
|
+
Texts: {
|
|
735
|
+
i18n: {
|
|
736
|
+
it: {
|
|
737
|
+
TypeToSearch: string;
|
|
738
|
+
Upload: string;
|
|
739
|
+
ScrollLeft: string;
|
|
740
|
+
ScrollRight: string;
|
|
741
|
+
AddItem: string;
|
|
742
|
+
RemoveItem: string;
|
|
743
|
+
PreviousSection: string;
|
|
744
|
+
NextSection: string;
|
|
745
|
+
Show: string;
|
|
746
|
+
Remove: string;
|
|
747
|
+
Close: string;
|
|
748
|
+
Confirm: string;
|
|
749
|
+
OK: string;
|
|
750
|
+
Cancel: string;
|
|
751
|
+
Abort: string;
|
|
752
|
+
Retry: string;
|
|
753
|
+
Ignore: string;
|
|
754
|
+
Yes: string;
|
|
755
|
+
No: string;
|
|
756
|
+
Try: string;
|
|
757
|
+
Continue: string;
|
|
758
|
+
Name: string;
|
|
759
|
+
Size: string;
|
|
760
|
+
Type: string;
|
|
761
|
+
Actions: string;
|
|
762
|
+
ReadMore: string;
|
|
763
|
+
ReadLess: string;
|
|
764
|
+
SelectAll: string;
|
|
765
|
+
ChooseOne: string;
|
|
766
|
+
True: string;
|
|
767
|
+
False: string;
|
|
768
|
+
Blank: string;
|
|
769
|
+
NotBlank: string;
|
|
770
|
+
Information: string;
|
|
771
|
+
InformationAbout: string;
|
|
772
|
+
OpenMenu: string;
|
|
773
|
+
CloseMenu: string;
|
|
774
|
+
LoadingFailed: string;
|
|
775
|
+
ConfirmDelete: string;
|
|
776
|
+
MoveUp: string;
|
|
777
|
+
MoveDown: string;
|
|
778
|
+
NoData: string;
|
|
779
|
+
RequiredField: string;
|
|
780
|
+
Errors: string;
|
|
781
|
+
PreviousElement: string;
|
|
782
|
+
NextElement: string;
|
|
783
|
+
Elements: string;
|
|
784
|
+
Element: string;
|
|
785
|
+
GoToElement: string;
|
|
786
|
+
ElementsNavigation: string;
|
|
787
|
+
Of: string;
|
|
788
|
+
Download: string;
|
|
789
|
+
Uploading: string;
|
|
790
|
+
Downloading: string;
|
|
791
|
+
Deleting: string;
|
|
792
|
+
Selected: string;
|
|
793
|
+
SelectedPlural: string;
|
|
794
|
+
SomethingWentWrong: string;
|
|
795
|
+
TimeoutOccurred: string;
|
|
796
|
+
GenericError: string;
|
|
797
|
+
};
|
|
798
|
+
en: {
|
|
799
|
+
TypeToSearch: string;
|
|
800
|
+
Upload: string;
|
|
801
|
+
ScrollLeft: string;
|
|
802
|
+
ScrollRight: string;
|
|
803
|
+
AddItem: string;
|
|
804
|
+
RemoveItem: string;
|
|
805
|
+
PreviousSection: string;
|
|
806
|
+
NextSection: string;
|
|
807
|
+
Show: string;
|
|
808
|
+
Remove: string;
|
|
809
|
+
Close: string;
|
|
810
|
+
Confirm: string;
|
|
811
|
+
OK: string;
|
|
812
|
+
Cancel: string;
|
|
813
|
+
Abort: string;
|
|
814
|
+
Retry: string;
|
|
815
|
+
Ignore: string;
|
|
816
|
+
Yes: string;
|
|
817
|
+
No: string;
|
|
818
|
+
Try: string;
|
|
819
|
+
Continue: string;
|
|
820
|
+
Name: string;
|
|
821
|
+
Size: string;
|
|
822
|
+
Type: string;
|
|
823
|
+
Actions: string;
|
|
824
|
+
ReadMore: string;
|
|
825
|
+
ReadLess: string;
|
|
826
|
+
SelectAll: string;
|
|
827
|
+
ChooseOne: string;
|
|
828
|
+
True: string;
|
|
829
|
+
False: string;
|
|
830
|
+
Blank: string;
|
|
831
|
+
NotBlank: string;
|
|
832
|
+
Information: string;
|
|
833
|
+
InformationAbout: string;
|
|
834
|
+
OpenMenu: string;
|
|
835
|
+
CloseMenu: string;
|
|
836
|
+
LoadingFailed: string;
|
|
837
|
+
ConfirmDelete: string;
|
|
838
|
+
MoveUp: string;
|
|
839
|
+
MoveDown: string;
|
|
840
|
+
NoData: string;
|
|
841
|
+
RequiredField: string;
|
|
842
|
+
Errors: string;
|
|
843
|
+
PreviousElement: string;
|
|
844
|
+
NextElement: string;
|
|
845
|
+
Elements: string;
|
|
846
|
+
Element: string;
|
|
847
|
+
GoToElement: string;
|
|
848
|
+
ElementsNavigation: string;
|
|
849
|
+
Of: string;
|
|
850
|
+
Download: string;
|
|
851
|
+
Uploading: string;
|
|
852
|
+
Downloading: string;
|
|
853
|
+
Deleting: string;
|
|
854
|
+
Selected: string;
|
|
855
|
+
SelectedPlural: string;
|
|
856
|
+
SomethingWentWrong: string;
|
|
857
|
+
TimeoutOccurred: string;
|
|
858
|
+
GenericError: string;
|
|
859
|
+
};
|
|
860
|
+
de: {
|
|
861
|
+
TypeToSearch: string;
|
|
862
|
+
Upload: string;
|
|
863
|
+
ScrollLeft: string;
|
|
864
|
+
ScrollRight: string;
|
|
865
|
+
AddItem: string;
|
|
866
|
+
RemoveItem: string;
|
|
867
|
+
PreviousSection: string;
|
|
868
|
+
NextSection: string;
|
|
869
|
+
Show: string;
|
|
870
|
+
Remove: string;
|
|
871
|
+
Close: string;
|
|
872
|
+
Confirm: string;
|
|
873
|
+
OK: string;
|
|
874
|
+
Cancel: string;
|
|
875
|
+
Abort: string;
|
|
876
|
+
Retry: string;
|
|
877
|
+
Ignore: string;
|
|
878
|
+
Yes: string;
|
|
879
|
+
No: string;
|
|
880
|
+
Try: string;
|
|
881
|
+
Continue: string;
|
|
882
|
+
Name: string;
|
|
883
|
+
Size: string;
|
|
884
|
+
Type: string;
|
|
885
|
+
Actions: string;
|
|
886
|
+
ReadMore: string;
|
|
887
|
+
ReadLess: string;
|
|
888
|
+
SelectAll: string;
|
|
889
|
+
ChooseOne: string;
|
|
890
|
+
True: string;
|
|
891
|
+
False: string;
|
|
892
|
+
Blank: string;
|
|
893
|
+
NotBlank: string;
|
|
894
|
+
Information: string;
|
|
895
|
+
InformationAbout: string;
|
|
896
|
+
OpenMenu: string;
|
|
897
|
+
CloseMenu: string;
|
|
898
|
+
LoadingFailed: string;
|
|
899
|
+
ConfirmDelete: string;
|
|
900
|
+
MoveUp: string;
|
|
901
|
+
MoveDown: string;
|
|
902
|
+
NoData: string;
|
|
903
|
+
RequiredField: string;
|
|
904
|
+
Errors: string;
|
|
905
|
+
PreviousElement: string;
|
|
906
|
+
NextElement: string;
|
|
907
|
+
Elements: string;
|
|
908
|
+
Element: string;
|
|
909
|
+
GoToElement: string;
|
|
910
|
+
ElementsNavigation: string;
|
|
911
|
+
Of: string;
|
|
912
|
+
Download: string;
|
|
913
|
+
Uploading: string;
|
|
914
|
+
Downloading: string;
|
|
915
|
+
Deleting: string;
|
|
916
|
+
Selected: string;
|
|
917
|
+
SelectedPlural: string;
|
|
918
|
+
SomethingWentWrong: string;
|
|
919
|
+
TimeoutOccurred: string;
|
|
920
|
+
GenericError: string;
|
|
921
|
+
};
|
|
922
|
+
fr: {
|
|
923
|
+
TypeToSearch: string;
|
|
924
|
+
Upload: string;
|
|
925
|
+
ScrollLeft: string;
|
|
926
|
+
ScrollRight: string;
|
|
927
|
+
AddItem: string;
|
|
928
|
+
RemoveItem: string;
|
|
929
|
+
PreviousSection: string;
|
|
930
|
+
NextSection: string;
|
|
931
|
+
Show: string;
|
|
932
|
+
Remove: string;
|
|
933
|
+
Close: string;
|
|
934
|
+
Confirm: string;
|
|
935
|
+
OK: string;
|
|
936
|
+
Cancel: string;
|
|
937
|
+
Abort: string;
|
|
938
|
+
Retry: string;
|
|
939
|
+
Ignore: string;
|
|
940
|
+
Yes: string;
|
|
941
|
+
No: string;
|
|
942
|
+
Try: string;
|
|
943
|
+
Continue: string;
|
|
944
|
+
Name: string;
|
|
945
|
+
Size: string;
|
|
946
|
+
Type: string;
|
|
947
|
+
Actions: string;
|
|
948
|
+
ReadMore: string;
|
|
949
|
+
ReadLess: string;
|
|
950
|
+
SelectAll: string;
|
|
951
|
+
ChooseOne: string;
|
|
952
|
+
True: string;
|
|
953
|
+
False: string;
|
|
954
|
+
Blank: string;
|
|
955
|
+
NotBlank: string;
|
|
956
|
+
Information: string;
|
|
957
|
+
InformationAbout: string;
|
|
958
|
+
OpenMenu: string;
|
|
959
|
+
CloseMenu: string;
|
|
960
|
+
LoadingFailed: string;
|
|
961
|
+
ConfirmDelete: string;
|
|
962
|
+
MoveUp: string;
|
|
963
|
+
MoveDown: string;
|
|
964
|
+
NoData: string;
|
|
965
|
+
RequiredField: string;
|
|
966
|
+
Errors: string;
|
|
967
|
+
PreviousElement: string;
|
|
968
|
+
NextElement: string;
|
|
969
|
+
Elements: string;
|
|
970
|
+
Element: string;
|
|
971
|
+
GoToElement: string;
|
|
972
|
+
ElementsNavigation: string;
|
|
973
|
+
Of: string;
|
|
974
|
+
Download: string;
|
|
975
|
+
Uploading: string;
|
|
976
|
+
Downloading: string;
|
|
977
|
+
Deleting: string;
|
|
978
|
+
Selected: string;
|
|
979
|
+
SelectedPlural: string;
|
|
980
|
+
SomethingWentWrong: string;
|
|
981
|
+
TimeoutOccurred: string;
|
|
982
|
+
GenericError: string;
|
|
983
|
+
};
|
|
984
|
+
es: {
|
|
985
|
+
TypeToSearch: string;
|
|
986
|
+
Upload: string;
|
|
987
|
+
ScrollLeft: string;
|
|
988
|
+
ScrollRight: string;
|
|
989
|
+
AddItem: string;
|
|
990
|
+
RemoveItem: string;
|
|
991
|
+
PreviousSection: string;
|
|
992
|
+
NextSection: string;
|
|
993
|
+
Show: string;
|
|
994
|
+
Remove: string;
|
|
995
|
+
Close: string;
|
|
996
|
+
Confirm: string;
|
|
997
|
+
OK: string;
|
|
998
|
+
Cancel: string;
|
|
999
|
+
Abort: string;
|
|
1000
|
+
Retry: string;
|
|
1001
|
+
Ignore: string;
|
|
1002
|
+
Yes: string;
|
|
1003
|
+
No: string;
|
|
1004
|
+
Try: string;
|
|
1005
|
+
Continue: string;
|
|
1006
|
+
Name: string;
|
|
1007
|
+
Size: string;
|
|
1008
|
+
Type: string;
|
|
1009
|
+
Actions: string;
|
|
1010
|
+
ReadMore: string;
|
|
1011
|
+
ReadLess: string;
|
|
1012
|
+
SelectAll: string;
|
|
1013
|
+
ChooseOne: string;
|
|
1014
|
+
True: string;
|
|
1015
|
+
False: string;
|
|
1016
|
+
Blank: string;
|
|
1017
|
+
NotBlank: string;
|
|
1018
|
+
Information: string;
|
|
1019
|
+
InformationAbout: string;
|
|
1020
|
+
OpenMenu: string;
|
|
1021
|
+
CloseMenu: string;
|
|
1022
|
+
LoadingFailed: string;
|
|
1023
|
+
ConfirmDelete: string;
|
|
1024
|
+
MoveUp: string;
|
|
1025
|
+
MoveDown: string;
|
|
1026
|
+
NoData: string;
|
|
1027
|
+
RequiredField: string;
|
|
1028
|
+
Errors: string;
|
|
1029
|
+
PreviousElement: string;
|
|
1030
|
+
NextElement: string;
|
|
1031
|
+
Elements: string;
|
|
1032
|
+
Element: string;
|
|
1033
|
+
GoToElement: string;
|
|
1034
|
+
ElementsNavigation: string;
|
|
1035
|
+
Of: string;
|
|
1036
|
+
Download: string;
|
|
1037
|
+
Uploading: string;
|
|
1038
|
+
Downloading: string;
|
|
1039
|
+
Deleting: string;
|
|
1040
|
+
Selected: string;
|
|
1041
|
+
SelectedPlural: string;
|
|
1042
|
+
SomethingWentWrong: string;
|
|
1043
|
+
TimeoutOccurred: string;
|
|
1044
|
+
GenericError: string;
|
|
1045
|
+
};
|
|
1046
|
+
pt: {
|
|
1047
|
+
TypeToSearch: string;
|
|
1048
|
+
Upload: string;
|
|
1049
|
+
ScrollLeft: string;
|
|
1050
|
+
ScrollRight: string;
|
|
1051
|
+
AddItem: string;
|
|
1052
|
+
RemoveItem: string;
|
|
1053
|
+
PreviousSection: string;
|
|
1054
|
+
NextSection: string;
|
|
1055
|
+
Show: string;
|
|
1056
|
+
Remove: string;
|
|
1057
|
+
Close: string;
|
|
1058
|
+
Confirm: string;
|
|
1059
|
+
OK: string;
|
|
1060
|
+
Cancel: string;
|
|
1061
|
+
Abort: string;
|
|
1062
|
+
Retry: string;
|
|
1063
|
+
Ignore: string;
|
|
1064
|
+
Yes: string;
|
|
1065
|
+
No: string;
|
|
1066
|
+
Try: string;
|
|
1067
|
+
Continue: string;
|
|
1068
|
+
Name: string;
|
|
1069
|
+
Size: string;
|
|
1070
|
+
Type: string;
|
|
1071
|
+
Actions: string;
|
|
1072
|
+
ReadMore: string;
|
|
1073
|
+
ReadLess: string;
|
|
1074
|
+
SelectAll: string;
|
|
1075
|
+
ChooseOne: string;
|
|
1076
|
+
True: string;
|
|
1077
|
+
False: string;
|
|
1078
|
+
Blank: string;
|
|
1079
|
+
NotBlank: string;
|
|
1080
|
+
Information: string;
|
|
1081
|
+
InformationAbout: string;
|
|
1082
|
+
OpenMenu: string;
|
|
1083
|
+
CloseMenu: string;
|
|
1084
|
+
LoadingFailed: string;
|
|
1085
|
+
ConfirmDelete: string;
|
|
1086
|
+
MoveUp: string;
|
|
1087
|
+
MoveDown: string;
|
|
1088
|
+
NoData: string;
|
|
1089
|
+
RequiredField: string;
|
|
1090
|
+
Errors: string;
|
|
1091
|
+
PreviousElement: string;
|
|
1092
|
+
NextElement: string;
|
|
1093
|
+
Elements: string;
|
|
1094
|
+
Element: string;
|
|
1095
|
+
GoToElement: string;
|
|
1096
|
+
ElementsNavigation: string;
|
|
1097
|
+
Of: string;
|
|
1098
|
+
Download: string;
|
|
1099
|
+
Uploading: string;
|
|
1100
|
+
Downloading: string;
|
|
1101
|
+
Deleting: string;
|
|
1102
|
+
Selected: string;
|
|
1103
|
+
SelectedPlural: string;
|
|
1104
|
+
SomethingWentWrong: string;
|
|
1105
|
+
TimeoutOccurred: string;
|
|
1106
|
+
GenericError: string;
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
TypeToSearch: string;
|
|
1110
|
+
Upload: string;
|
|
1111
|
+
ScrollLeft: string;
|
|
1112
|
+
ScrollRight: string;
|
|
1113
|
+
AddItem: string;
|
|
1114
|
+
RemoveItem: string;
|
|
1115
|
+
PreviousSection: string;
|
|
1116
|
+
NextSection: string;
|
|
1117
|
+
Show: string;
|
|
1118
|
+
Remove: string;
|
|
1119
|
+
Close: string;
|
|
1120
|
+
Confirm: string;
|
|
1121
|
+
OK: string;
|
|
1122
|
+
Cancel: string;
|
|
1123
|
+
Abort: string;
|
|
1124
|
+
Retry: string;
|
|
1125
|
+
Ignore: string;
|
|
1126
|
+
Yes: string;
|
|
1127
|
+
No: string;
|
|
1128
|
+
Try: string;
|
|
1129
|
+
Continue: string;
|
|
1130
|
+
Name: string;
|
|
1131
|
+
Size: string;
|
|
1132
|
+
Type: string;
|
|
1133
|
+
Actions: string;
|
|
1134
|
+
ReadMore: string;
|
|
1135
|
+
ReadLess: string;
|
|
1136
|
+
SelectAll: string;
|
|
1137
|
+
ChooseOne: string;
|
|
1138
|
+
True: string;
|
|
1139
|
+
False: string;
|
|
1140
|
+
Blank: string;
|
|
1141
|
+
NotBlank: string;
|
|
1142
|
+
Information: string;
|
|
1143
|
+
InformationAbout: string;
|
|
1144
|
+
OpenMenu: string;
|
|
1145
|
+
CloseMenu: string;
|
|
1146
|
+
LoadingFailed: string;
|
|
1147
|
+
ConfirmDelete: string;
|
|
1148
|
+
MoveUp: string;
|
|
1149
|
+
MoveDown: string;
|
|
1150
|
+
NoData: string;
|
|
1151
|
+
RequiredField: string;
|
|
1152
|
+
Errors: string;
|
|
1153
|
+
PreviousElement: string;
|
|
1154
|
+
NextElement: string;
|
|
1155
|
+
Elements: string;
|
|
1156
|
+
Element: string;
|
|
1157
|
+
GoToElement: string;
|
|
1158
|
+
ElementsNavigation: string;
|
|
1159
|
+
Of: string;
|
|
1160
|
+
Download: string;
|
|
1161
|
+
Uploading: string;
|
|
1162
|
+
Downloading: string;
|
|
1163
|
+
Deleting: string;
|
|
1164
|
+
Selected: string;
|
|
1165
|
+
SelectedPlural: string;
|
|
1166
|
+
SomethingWentWrong: string;
|
|
1167
|
+
TimeoutOccurred: string;
|
|
1168
|
+
GenericError: string;
|
|
1169
|
+
};
|
|
1170
|
+
ngOnInit(): void;
|
|
1171
|
+
ngOnDestroy(): void;
|
|
1172
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1173
|
+
get forms(): Array<any>;
|
|
1174
|
+
locale(component: any, key: string): string;
|
|
1175
|
+
canPrevious(): boolean;
|
|
1176
|
+
goPrevious(): void;
|
|
1177
|
+
canNext(): boolean;
|
|
1178
|
+
goNext(): void;
|
|
1179
|
+
goTo(formName: string, extraParams?: Params): void;
|
|
1180
|
+
getControl(name: string): Control | null;
|
|
1181
|
+
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
1182
|
+
get activeNav(): number;
|
|
1183
|
+
set activeNav(value: number);
|
|
1184
|
+
getFormGroup(path: string | null): FormGroup;
|
|
1185
|
+
getFormStatus(form: any, index: number): FormStatus;
|
|
1186
|
+
countErrors(form: any): number;
|
|
1187
|
+
/**
|
|
1188
|
+
* Steps of the progress bar: one per enabled form, with the state of getFormStatus. The current form is the active
|
|
1189
|
+
* step; a form "active" without being the current one (progressStatus false) stays selectable.
|
|
1190
|
+
* The same object is returned while nothing changes (OnPush input of wm-sirio-stepper).
|
|
1191
|
+
*/
|
|
1192
|
+
getProgress(): FormProgress | null;
|
|
1193
|
+
private progressCache;
|
|
1194
|
+
/**
|
|
1195
|
+
* Entries of the side menu: one per enabled form (value = form index), disabled when the form is inactive, with
|
|
1196
|
+
* the number of errors as red badge. The same objects are returned while nothing changes: wm-sirio-sidenav finds
|
|
1197
|
+
* the current entry by identity.
|
|
1198
|
+
*/
|
|
1199
|
+
getSidenavItems(): FormSidenav | null;
|
|
1200
|
+
private sidenavCache;
|
|
1201
|
+
activateForm(formIndex: number | undefined): void;
|
|
1202
|
+
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
1203
|
+
evaluateTemplate(value: string | null): string;
|
|
1204
|
+
openForm(template: string, options: FormDialogOptions): void;
|
|
1205
|
+
openDialog(formSchema: any, options: FormDialogOptions): void;
|
|
1206
|
+
isChanged(): boolean;
|
|
1207
|
+
isValid(): boolean;
|
|
1208
|
+
getContext(): Record<string, any>;
|
|
1209
|
+
submit(): boolean;
|
|
1210
|
+
navigate(commands: any[], replaceUrl?: boolean, queryParams?: Params): void;
|
|
1211
|
+
private valueChangesSubscription;
|
|
1212
|
+
private _forms;
|
|
1213
|
+
private _activeNav;
|
|
1214
|
+
private defaultValue;
|
|
1215
|
+
private urlSub?;
|
|
1216
|
+
private initialQueryParams;
|
|
1217
|
+
private currentQueryParams;
|
|
1218
|
+
private listenToUrlChanges;
|
|
1219
|
+
private unlistenToUrlChanges;
|
|
1220
|
+
private selectUrlValue;
|
|
1221
|
+
private requestNavigation;
|
|
1222
|
+
private canNavigateTo;
|
|
1223
|
+
private navigateToUrl;
|
|
1224
|
+
private navigateFromUrl;
|
|
1225
|
+
private applyNavigation;
|
|
1226
|
+
private initQueryParams;
|
|
1227
|
+
private buildQueryParams;
|
|
1228
|
+
private toUrlValue;
|
|
1229
|
+
private fromUrlValue;
|
|
1230
|
+
private get urlKey();
|
|
1231
|
+
private get language();
|
|
1232
|
+
private onChangeSchema;
|
|
1233
|
+
private onChangeValue;
|
|
1234
|
+
private patchingValue;
|
|
1235
|
+
private assignActivaNav;
|
|
1236
|
+
private suspendValueChanges;
|
|
1237
|
+
private registerHandlers;
|
|
1238
|
+
private clearHandlers;
|
|
1239
|
+
private emittedValues;
|
|
1240
|
+
private isEmittedValue;
|
|
1241
|
+
private emitValueChange;
|
|
1242
|
+
private shouldEmit;
|
|
1243
|
+
readonly refreshed: Subject<void>;
|
|
1244
|
+
refresh(): void;
|
|
1245
|
+
private getNext;
|
|
1246
|
+
private getNextFrom;
|
|
1247
|
+
private getPrevious;
|
|
1248
|
+
private getPreviousFrom;
|
|
1249
|
+
private getMaxNav;
|
|
1250
|
+
private isFormActivable;
|
|
1251
|
+
private isDisabled;
|
|
1252
|
+
private isInactive;
|
|
1253
|
+
private canActivate;
|
|
1254
|
+
private hasPreviousErrors;
|
|
1255
|
+
private clearControls;
|
|
1256
|
+
private clearFormArrays;
|
|
1257
|
+
private getCurrentForm;
|
|
1258
|
+
private disableAutoFocus;
|
|
1259
|
+
private autoFocus;
|
|
1260
|
+
private canRevealErrors;
|
|
1261
|
+
private hasPotentialNextForm;
|
|
1262
|
+
hasSilentErrors(): boolean;
|
|
1263
|
+
showSilentErrors(): void;
|
|
1264
|
+
private hasActiveSilentErrors;
|
|
1265
|
+
private showActiveSilentErrors;
|
|
1266
|
+
private getSilentScope;
|
|
1267
|
+
private getAllControls;
|
|
1268
|
+
private getActiveControls;
|
|
1269
|
+
private getFormByIndex;
|
|
1270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, {
|
|
1271
|
+
optional: true;
|
|
1272
|
+
}]>;
|
|
1273
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, {
|
|
1274
|
+
"schema": {
|
|
1275
|
+
"alias": "schema";
|
|
1276
|
+
"required": false;
|
|
1277
|
+
};
|
|
1278
|
+
"formGroup": {
|
|
1279
|
+
"alias": "formGroup";
|
|
1280
|
+
"required": false;
|
|
1281
|
+
};
|
|
1282
|
+
"readOnly": {
|
|
1283
|
+
"alias": "readOnly";
|
|
1284
|
+
"required": false;
|
|
1285
|
+
};
|
|
1286
|
+
"value": {
|
|
1287
|
+
"alias": "value";
|
|
1288
|
+
"required": false;
|
|
1289
|
+
};
|
|
1290
|
+
"strict": {
|
|
1291
|
+
"alias": "strict";
|
|
1292
|
+
"required": false;
|
|
1293
|
+
};
|
|
1294
|
+
"showNav": {
|
|
1295
|
+
"alias": "showNav";
|
|
1296
|
+
"required": false;
|
|
1297
|
+
};
|
|
1298
|
+
"showNavButton": {
|
|
1299
|
+
"alias": "showNavButton";
|
|
1300
|
+
"required": false;
|
|
1301
|
+
};
|
|
1302
|
+
"showProgress": {
|
|
1303
|
+
"alias": "showProgress";
|
|
1304
|
+
"required": false;
|
|
1305
|
+
};
|
|
1306
|
+
"showFormTitle": {
|
|
1307
|
+
"alias": "showFormTitle";
|
|
1308
|
+
"required": false;
|
|
1309
|
+
};
|
|
1310
|
+
"progressStatus": {
|
|
1311
|
+
"alias": "progressStatus";
|
|
1312
|
+
"required": false;
|
|
1313
|
+
};
|
|
1314
|
+
"preventNavigationOnErrors": {
|
|
1315
|
+
"alias": "preventNavigationOnErrors";
|
|
1316
|
+
"required": false;
|
|
1317
|
+
};
|
|
1318
|
+
"browserNavigation": {
|
|
1319
|
+
"alias": "browserNavigation";
|
|
1320
|
+
"required": false;
|
|
1321
|
+
};
|
|
1322
|
+
"queryParamName": {
|
|
1323
|
+
"alias": "queryParamName";
|
|
1324
|
+
"required": false;
|
|
1325
|
+
};
|
|
1326
|
+
"navSize": {
|
|
1327
|
+
"alias": "navSize";
|
|
1328
|
+
"required": false;
|
|
1329
|
+
};
|
|
1330
|
+
"groupMode": {
|
|
1331
|
+
"alias": "groupMode";
|
|
1332
|
+
"required": false;
|
|
1333
|
+
};
|
|
1334
|
+
"updateMode": {
|
|
1335
|
+
"alias": "updateMode";
|
|
1336
|
+
"required": false;
|
|
1337
|
+
};
|
|
1338
|
+
"activeNav": {
|
|
1339
|
+
"alias": "activeNav";
|
|
1340
|
+
"required": false;
|
|
1341
|
+
};
|
|
1342
|
+
}, {
|
|
1343
|
+
"valueChange": "valueChange";
|
|
1344
|
+
"initialized": "initialized";
|
|
1345
|
+
"activeNavChange": "activeNavChange";
|
|
1346
|
+
}, never, never, true, never>;
|
|
1347
|
+
}
|
|
1348
|
+
/** State of a form in the progress bar and in the side navigation. */
|
|
1349
|
+
type FormStatus = 'inactive' | 'active' | 'success' | 'error';
|
|
1350
|
+
/** Steps of the progress bar and the form of each step. */
|
|
1351
|
+
interface FormProgress {
|
|
1352
|
+
steps: SirioStep[];
|
|
1353
|
+
formIndexes: number[];
|
|
1354
|
+
current: number;
|
|
1355
|
+
}
|
|
1356
|
+
/** Entries of the side menu and the current one. */
|
|
1357
|
+
interface FormSidenav {
|
|
1358
|
+
items: SirioSidenavItem[];
|
|
1359
|
+
active: SirioSidenavItem | null;
|
|
1360
|
+
}
|
|
1361
|
+
export declare function syncronize(target: any, source: any): any;
|
|
1362
|
+
export interface RefContext {
|
|
1363
|
+
parent: any;
|
|
1364
|
+
key: string | number | null;
|
|
1365
|
+
root: any;
|
|
1366
|
+
}
|
|
1367
|
+
export type RefResolver = (ref: string, ctx: RefContext) => any;
|
|
1368
|
+
export type AsyncRefResolver = (ref: string, ctx: RefContext) => Promise<any>;
|
|
1369
|
+
export interface ResolveRefsOptions {
|
|
1370
|
+
mergeRef?: boolean;
|
|
1371
|
+
}
|
|
1372
|
+
export declare function resolveRefs<T>(input: T, resolver: RefResolver, options?: ResolveRefsOptions): T;
|
|
1373
|
+
export declare function resolveRefsAsync<T>(input: T, resolver: AsyncRefResolver, options?: ResolveRefsOptions): Promise<T>;
|
|
1374
|
+
export declare function subscribeOnce<T>(source$: Observable<T>, next: (value: T) => void, error?: (err: any) => void, complete?: () => void): void;
|
|
1375
|
+
export declare function deepEqual(a: any, b: any, options?: {
|
|
1376
|
+
handleCircular?: boolean;
|
|
1377
|
+
}, visited?: WeakMap<any, any>): boolean;
|
|
1378
|
+
export declare function navigateTo(router: Router, uri: string): void;
|
|
1379
|
+
export declare function parseRoute(uri: string): {
|
|
1380
|
+
route: string;
|
|
1381
|
+
queryParams: Record<string, string>;
|
|
1382
|
+
};
|
|
1383
|
+
export declare class SanitizeService {
|
|
1384
|
+
private sanitizer;
|
|
1385
|
+
constructor(sanitizer: DomSanitizer);
|
|
1386
|
+
sanitizeHtml(html: string): string;
|
|
1387
|
+
sanitizeSafeHtml(html: string): SafeHtml;
|
|
1388
|
+
sanitizeSafeUrl(url: string): SafeResourceUrl;
|
|
1389
|
+
toString(safeHtml: SafeHtml): string;
|
|
1390
|
+
private sanitizeOption;
|
|
1391
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeService, never>;
|
|
1392
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1393
|
+
}
|
|
1394
|
+
export declare class MarkdownService {
|
|
1395
|
+
constructor();
|
|
1396
|
+
toHtml(text: string): string;
|
|
1397
|
+
/** Inline markdown only (bold, italic, links...): no block elements such as <p>. */
|
|
1398
|
+
toInlineHtml(text: string): string;
|
|
1399
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownService, never>;
|
|
1400
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1401
|
+
}
|
|
1402
|
+
declare class RestDataSource<T, T2 = T> {
|
|
1403
|
+
private http;
|
|
1404
|
+
private baseUrl;
|
|
1405
|
+
private params;
|
|
1406
|
+
private mapFn?;
|
|
1407
|
+
constructor(http: HttpClient, baseUrl: string);
|
|
1408
|
+
setParam(key: string, value: any): RestDataSource<T, T2>;
|
|
1409
|
+
setParams(params: Record<string, any>): RestDataSource<T, T2>;
|
|
1410
|
+
setMapFunction(mapFn: (data: T) => T2): RestDataSource<T, T2>;
|
|
1411
|
+
getMapFunction(): ((data: T) => T2) | undefined;
|
|
1412
|
+
getParam(key: string): any;
|
|
1413
|
+
getParams(): Record<string, any>;
|
|
1414
|
+
getData(): Observable<T2[]>;
|
|
1415
|
+
}
|
|
1416
|
+
interface IRowsSource {
|
|
1417
|
+
getRows: (params: IGetRowsParams) => void;
|
|
1418
|
+
}
|
|
1419
|
+
interface IDataSource {
|
|
1420
|
+
getData(params: Record<string, any>): Observable<any>;
|
|
1421
|
+
}
|
|
1422
|
+
export declare class DataService {
|
|
1423
|
+
private http;
|
|
1424
|
+
constructor(http: HttpClient);
|
|
1425
|
+
queryOData(url: string): IRowsSource;
|
|
1426
|
+
createRest(url: string): RestDataSource<any, any>;
|
|
1427
|
+
createRest<T>(url: string): RestDataSource<T, T>;
|
|
1428
|
+
createRest<T, T2>(url: string): RestDataSource<T, T2>;
|
|
1429
|
+
private createOData;
|
|
1430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
1431
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1432
|
+
}
|
|
1433
|
+
export declare class NavigationService {
|
|
1434
|
+
private router;
|
|
1435
|
+
constructor(router: Router);
|
|
1436
|
+
private _skipState;
|
|
1437
|
+
get skipState(): boolean;
|
|
1438
|
+
private shouldSkipState;
|
|
1439
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
1440
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1441
|
+
}
|
|
1442
|
+
export declare class DefaultConfirmationController implements ConfirmationController {
|
|
1443
|
+
private dialogService;
|
|
1444
|
+
constructor(dialogService: DialogService);
|
|
1445
|
+
confirm(message?: string, title?: string): Observable<boolean>;
|
|
1446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultConfirmationController, never>;
|
|
1447
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1448
|
+
}
|
|
1449
|
+
export declare class DefaultNotificationController implements NotificationController {
|
|
1450
|
+
private toast;
|
|
1451
|
+
private global;
|
|
1452
|
+
constructor(toast: ToastService, global: GlobalService);
|
|
1453
|
+
private delayTime;
|
|
1454
|
+
notify(type: NotifyTypes, message: string, title?: string): void;
|
|
1455
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultNotificationController, never>;
|
|
1456
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1457
|
+
}
|
|
1458
|
+
export declare class DefaultPromptController implements PromptController {
|
|
1459
|
+
private dialogService;
|
|
1460
|
+
constructor(dialogService: DialogService);
|
|
1461
|
+
prompt(message?: string, defaultValue?: string, title?: string): Observable<string | null>;
|
|
1462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPromptController, never>;
|
|
1463
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1464
|
+
}
|
|
1465
|
+
export declare class DefaultMessageFactory implements MessageFactory {
|
|
1466
|
+
languageService: LanguageService;
|
|
1467
|
+
constructor(languageService: LanguageService);
|
|
1468
|
+
createError(err: any): Message;
|
|
1469
|
+
private get language();
|
|
1470
|
+
private locale;
|
|
1471
|
+
private getTitleText;
|
|
1472
|
+
private getTimeoutText;
|
|
1473
|
+
private getDetailText;
|
|
1474
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultMessageFactory, never>;
|
|
1475
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1476
|
+
}
|
|
1477
|
+
export declare const builtIn: ({
|
|
1478
|
+
name: string;
|
|
1479
|
+
detail: string;
|
|
1480
|
+
info: string;
|
|
1481
|
+
entries: {
|
|
1482
|
+
name: string;
|
|
1483
|
+
type: string;
|
|
1484
|
+
detail: string;
|
|
1485
|
+
info: string;
|
|
1486
|
+
params: ({
|
|
1487
|
+
name: string;
|
|
1488
|
+
type: string;
|
|
1489
|
+
optional?: undefined;
|
|
1490
|
+
} | {
|
|
1491
|
+
name: string;
|
|
1492
|
+
type: string;
|
|
1493
|
+
optional: boolean;
|
|
1494
|
+
})[];
|
|
1495
|
+
}[];
|
|
1496
|
+
} | {
|
|
1497
|
+
name: string;
|
|
1498
|
+
entries: {
|
|
1499
|
+
name: string;
|
|
1500
|
+
type: string;
|
|
1501
|
+
detail: string;
|
|
1502
|
+
info: string;
|
|
1503
|
+
params: {
|
|
1504
|
+
name: string;
|
|
1505
|
+
type: string;
|
|
1506
|
+
}[];
|
|
1507
|
+
}[];
|
|
1508
|
+
})[];
|
|
1509
|
+
export declare class FormControl extends ContainerControl {}
|
|
1510
|
+
export declare class TextFieldControl extends Control {
|
|
1511
|
+
setRandomColor(): void;
|
|
1512
|
+
focus(): void;
|
|
1513
|
+
private getTextbox;
|
|
1514
|
+
private getNativeInput;
|
|
1515
|
+
private getRandomColor;
|
|
1516
|
+
}
|
|
1517
|
+
export declare class SelectControl extends Control {
|
|
1518
|
+
focus(): void;
|
|
1519
|
+
refresh(): void;
|
|
1520
|
+
private getSelect;
|
|
1521
|
+
}
|
|
1522
|
+
export declare class TagListControl extends Control {
|
|
1523
|
+
focus(): void;
|
|
1524
|
+
refresh(): void;
|
|
1525
|
+
private getSelect;
|
|
1526
|
+
}
|
|
1527
|
+
export declare class NumberControl extends Control {
|
|
1528
|
+
focus(): void;
|
|
1529
|
+
private getNumber;
|
|
1530
|
+
}
|
|
1531
|
+
export declare class DateControl extends Control {
|
|
1532
|
+
focus(): void;
|
|
1533
|
+
private getDate;
|
|
1534
|
+
}
|
|
1535
|
+
export declare class TimeControl extends Control {
|
|
1536
|
+
focus(): void;
|
|
1537
|
+
private getTime;
|
|
1538
|
+
}
|
|
1539
|
+
export declare class DateTimeControl extends Control {
|
|
1540
|
+
focus(): void;
|
|
1541
|
+
private getDateTime;
|
|
1542
|
+
}
|
|
1543
|
+
export declare class CheckBoxControl extends Control {
|
|
1544
|
+
focus(): void;
|
|
1545
|
+
private getCheckBox;
|
|
1546
|
+
}
|
|
1547
|
+
export declare class RadioControl extends Control {
|
|
1548
|
+
focus(): void;
|
|
1549
|
+
refresh(): void;
|
|
1550
|
+
private getRadio;
|
|
1551
|
+
}
|
|
1552
|
+
export declare class CheckListControl extends Control {
|
|
1553
|
+
focus(): void;
|
|
1554
|
+
refresh(): void;
|
|
1555
|
+
private getChecklist;
|
|
1556
|
+
}
|
|
1557
|
+
export declare class TextAreaControl extends Control {
|
|
1558
|
+
focus(): void;
|
|
1559
|
+
private getTextarea;
|
|
1560
|
+
}
|
|
1561
|
+
export declare class RangeControl extends Control {
|
|
1562
|
+
focus(): void;
|
|
1563
|
+
private getSlider;
|
|
1564
|
+
}
|
|
1565
|
+
export declare class FilePickerControl extends Control {
|
|
1566
|
+
focus(): void;
|
|
1567
|
+
private getFileUpload;
|
|
1568
|
+
}
|
|
1569
|
+
export declare class TextControl extends Control {}
|
|
1570
|
+
export declare class HtmlControl extends Control {}
|
|
1571
|
+
export declare class ImageControl extends Control {}
|
|
1572
|
+
export declare class TabControl extends ContainerControl {
|
|
1573
|
+
canNext(): boolean;
|
|
1574
|
+
goNext(): void;
|
|
1575
|
+
canPrevious(): boolean;
|
|
1576
|
+
goPrevious(): void;
|
|
1577
|
+
/** Selects a tab (missing or disabled tabs are ignored). */
|
|
1578
|
+
setActiveIndex(index: number): void;
|
|
1579
|
+
onLoadState(): void;
|
|
1580
|
+
onSaveState(): void;
|
|
1581
|
+
private createState;
|
|
1582
|
+
private get tab();
|
|
1583
|
+
}
|
|
1584
|
+
export declare class ChartControl extends Control {
|
|
1585
|
+
private getChart;
|
|
1586
|
+
}
|
|
1587
|
+
export declare class AccordionControl extends ContainerControl {
|
|
1588
|
+
/** Opens a section (missing, disabled or already open sections are ignored). */
|
|
1589
|
+
openPanel(index: number): void;
|
|
1590
|
+
onLoadState(): void;
|
|
1591
|
+
onSaveState(): void;
|
|
1592
|
+
private createState;
|
|
1593
|
+
private get accordion();
|
|
1594
|
+
}
|
|
1595
|
+
export declare class DynamicListControl extends ContainerControl {}
|
|
1596
|
+
export declare class GroupControl extends ContainerControl {}
|
|
1597
|
+
export declare class TableControl extends Control {
|
|
1598
|
+
setFilter(filter: FilterModel): void;
|
|
1599
|
+
getFilter(): FilterModel;
|
|
1600
|
+
clearFilter(): void;
|
|
1601
|
+
getOrder(): OrderModel;
|
|
1602
|
+
setOrder(order: OrderModel): void;
|
|
1603
|
+
refresh(): void;
|
|
1604
|
+
redraw(): void;
|
|
1605
|
+
private currentState;
|
|
1606
|
+
onLoadState(): void;
|
|
1607
|
+
onSaveState(): void;
|
|
1608
|
+
private createState;
|
|
1609
|
+
private applyState;
|
|
1610
|
+
private applyPagination;
|
|
1611
|
+
private applyPageSize;
|
|
1612
|
+
private applyPageNumber;
|
|
1613
|
+
private get grid();
|
|
1614
|
+
private paginationEnabled;
|
|
1615
|
+
}
|
|
1616
|
+
export interface OrderModelItem {
|
|
1617
|
+
colId: string;
|
|
1618
|
+
sort: 'asc' | 'desc';
|
|
1619
|
+
}
|
|
1620
|
+
export interface OrderModel extends Array<OrderModelItem> {}
|
|
1621
|
+
export declare class ButtonControl extends Control {
|
|
1622
|
+
/** The registered element is the native button (wmSirioButton of @wemake4u/form-controls). */
|
|
1623
|
+
focus(): void;
|
|
1624
|
+
}
|
|
1625
|
+
export declare class SeparatorControl extends Control {}
|
|
1626
|
+
export declare class SpacerControl extends Control {}
|
|
1627
|
+
export declare class IFrameControl extends Control {}
|
|
1628
|
+
export declare class TooltipControl extends Control {}
|
|
1629
|
+
export declare class DisplayFieldControl extends Control {}
|
|
1630
|
+
export {};
|