@wemake4u/form-player-se 1.0.30 → 1.0.31
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/esm2022/lib/common/path.mjs +35 -0
- package/esm2022/lib/directives/repeat.directive.mjs +1 -5
- package/esm2022/lib/directives/tabitem.directive.mjs +26 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +76 -10
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +52 -35
- package/esm2022/lib/locale/locale-de.mjs +3 -2
- package/esm2022/lib/locale/locale-en.mjs +3 -2
- package/esm2022/lib/locale/locale-es.mjs +3 -2
- package/esm2022/lib/locale/locale-fr.mjs +3 -2
- package/esm2022/lib/locale/locale-it.mjs +3 -2
- package/esm2022/lib/locale/locale-pt.mjs +3 -2
- package/esm2022/lib/services/form.service.mjs +41 -18
- package/esm2022/lib/services/programmability.service.mjs +54 -16
- package/esm2022/lib/services/scope.service.mjs +7 -1
- package/esm2022/lib/utils/isMeaningful.mjs +13 -0
- package/fesm2022/wemake4u-form-player-se.mjs +304 -87
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/common/path.d.ts +4 -0
- package/lib/components/deleteRowRenderer/deleteRowRenderer.component.d.ts +1 -0
- package/lib/components/objectURLRenderer/objectURLRenderer.component.d.ts +1 -0
- package/lib/components/setFilter/setFilter.component.d.ts +1 -0
- package/lib/dialog/dialog.component.d.ts +7 -0
- package/lib/directives/tabitem.directive.d.ts +9 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +25 -2
- package/lib/dynamic-form/dynamic-form.component.d.ts +12 -4
- package/lib/locale/locale-de.d.ts +1 -0
- package/lib/locale/locale-en.d.ts +1 -0
- package/lib/locale/locale-es.d.ts +1 -0
- package/lib/locale/locale-fr.d.ts +1 -0
- package/lib/locale/locale-it.d.ts +1 -0
- package/lib/locale/locale-pt.d.ts +1 -0
- package/lib/locale/locale.d.ts +7 -0
- package/lib/services/form.service.d.ts +7 -2
- package/lib/services/programmability.service.d.ts +1 -1
- package/lib/services/scope.service.d.ts +5 -0
- package/lib/utils/isMeaningful.d.ts +1 -0
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
47
47
|
OpenMenu: string;
|
|
48
48
|
CloseMenu: string;
|
|
49
49
|
LoadingFailed: string;
|
|
50
|
+
ConfirmDelete: string;
|
|
50
51
|
};
|
|
51
52
|
en: {
|
|
52
53
|
TypeToSearch: string;
|
|
@@ -86,6 +87,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
86
87
|
OpenMenu: string;
|
|
87
88
|
CloseMenu: string;
|
|
88
89
|
LoadingFailed: string;
|
|
90
|
+
ConfirmDelete: string;
|
|
89
91
|
};
|
|
90
92
|
de: {
|
|
91
93
|
TypeToSearch: string;
|
|
@@ -125,6 +127,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
125
127
|
OpenMenu: string;
|
|
126
128
|
CloseMenu: string;
|
|
127
129
|
LoadingFailed: string;
|
|
130
|
+
ConfirmDelete: string;
|
|
128
131
|
};
|
|
129
132
|
fr: {
|
|
130
133
|
TypeToSearch: string;
|
|
@@ -164,6 +167,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
164
167
|
OpenMenu: string;
|
|
165
168
|
CloseMenu: string;
|
|
166
169
|
LoadingFailed: string;
|
|
170
|
+
ConfirmDelete: string;
|
|
167
171
|
};
|
|
168
172
|
es: {
|
|
169
173
|
TypeToSearch: string;
|
|
@@ -203,6 +207,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
203
207
|
OpenMenu: string;
|
|
204
208
|
CloseMenu: string;
|
|
205
209
|
LoadingFailed: string;
|
|
210
|
+
ConfirmDelete: string;
|
|
206
211
|
};
|
|
207
212
|
pt: {
|
|
208
213
|
TypeToSearch: string;
|
|
@@ -242,6 +247,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
242
247
|
OpenMenu: string;
|
|
243
248
|
CloseMenu: string;
|
|
244
249
|
LoadingFailed: string;
|
|
250
|
+
ConfirmDelete: string;
|
|
245
251
|
};
|
|
246
252
|
};
|
|
247
253
|
TypeToSearch: string;
|
|
@@ -281,6 +287,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
281
287
|
OpenMenu: string;
|
|
282
288
|
CloseMenu: string;
|
|
283
289
|
LoadingFailed: string;
|
|
290
|
+
ConfirmDelete: string;
|
|
284
291
|
};
|
|
285
292
|
constructor(languageService: LanguageService);
|
|
286
293
|
ngOnInit(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TabItemDirective implements OnChanges {
|
|
4
|
+
componentRef: any;
|
|
5
|
+
disabled: any;
|
|
6
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabItemDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabItemDirective, "[tabItem]", never, { "componentRef": { "alias": "componentRef"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -6,6 +6,7 @@ import { SanitizeService } from '../services/sanitize.service';
|
|
|
6
6
|
import { MarkdownService } from '../services/markdown.service';
|
|
7
7
|
import { MimeService } from '../services/mime.service';
|
|
8
8
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
9
|
+
import { DialogService } from '../services/dialog.service';
|
|
9
10
|
import { WeakService } from '../services/weak.service';
|
|
10
11
|
import { RegisterService } from '../services/register.service';
|
|
11
12
|
import { MetadataService } from '../services/metadata.service';
|
|
@@ -33,6 +34,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
33
34
|
private formService;
|
|
34
35
|
private grid;
|
|
35
36
|
private chart;
|
|
37
|
+
private dialog;
|
|
36
38
|
private el;
|
|
37
39
|
private cdr;
|
|
38
40
|
rows: Array<any> | undefined;
|
|
@@ -78,6 +80,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
78
80
|
OpenMenu: string;
|
|
79
81
|
CloseMenu: string;
|
|
80
82
|
LoadingFailed: string;
|
|
83
|
+
ConfirmDelete: string;
|
|
81
84
|
};
|
|
82
85
|
en: {
|
|
83
86
|
TypeToSearch: string;
|
|
@@ -117,6 +120,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
117
120
|
OpenMenu: string;
|
|
118
121
|
CloseMenu: string;
|
|
119
122
|
LoadingFailed: string;
|
|
123
|
+
ConfirmDelete: string;
|
|
120
124
|
};
|
|
121
125
|
de: {
|
|
122
126
|
TypeToSearch: string;
|
|
@@ -156,6 +160,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
156
160
|
OpenMenu: string;
|
|
157
161
|
CloseMenu: string;
|
|
158
162
|
LoadingFailed: string;
|
|
163
|
+
ConfirmDelete: string;
|
|
159
164
|
};
|
|
160
165
|
fr: {
|
|
161
166
|
TypeToSearch: string;
|
|
@@ -195,6 +200,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
195
200
|
OpenMenu: string;
|
|
196
201
|
CloseMenu: string;
|
|
197
202
|
LoadingFailed: string;
|
|
203
|
+
ConfirmDelete: string;
|
|
198
204
|
};
|
|
199
205
|
es: {
|
|
200
206
|
TypeToSearch: string;
|
|
@@ -234,6 +240,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
234
240
|
OpenMenu: string;
|
|
235
241
|
CloseMenu: string;
|
|
236
242
|
LoadingFailed: string;
|
|
243
|
+
ConfirmDelete: string;
|
|
237
244
|
};
|
|
238
245
|
pt: {
|
|
239
246
|
TypeToSearch: string;
|
|
@@ -273,6 +280,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
273
280
|
OpenMenu: string;
|
|
274
281
|
CloseMenu: string;
|
|
275
282
|
LoadingFailed: string;
|
|
283
|
+
ConfirmDelete: string;
|
|
276
284
|
};
|
|
277
285
|
};
|
|
278
286
|
TypeToSearch: string;
|
|
@@ -312,8 +320,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
312
320
|
OpenMenu: string;
|
|
313
321
|
CloseMenu: string;
|
|
314
322
|
LoadingFailed: string;
|
|
323
|
+
ConfirmDelete: string;
|
|
315
324
|
};
|
|
316
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, formService: FormService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
325
|
+
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, formService: FormService, grid: GridService, chart: ChartService, dialog: DialogService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
317
326
|
ngOnInit(): void;
|
|
318
327
|
ngAfterViewInit(): void;
|
|
319
328
|
getRegister(): RegisterService;
|
|
@@ -337,8 +346,14 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
337
346
|
sanitize(html: string): SafeHtml;
|
|
338
347
|
getMimeTypes(extensions: string): string;
|
|
339
348
|
clickButton(component: any, event: any): void;
|
|
349
|
+
hasValues(component: any): boolean;
|
|
340
350
|
getValues(component: any): Observable<any>;
|
|
341
351
|
refreshValues(component: any): () => void;
|
|
352
|
+
toLabel(value: any, list: Array<{
|
|
353
|
+
label: string;
|
|
354
|
+
value: any;
|
|
355
|
+
}>): any;
|
|
356
|
+
supportValues(component: any): boolean;
|
|
342
357
|
getChartOptions(component: any): Observable<AgChartOptions>;
|
|
343
358
|
invalidateChart(component: any): () => void;
|
|
344
359
|
getChartData(component: any): any;
|
|
@@ -348,7 +363,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
348
363
|
getRowSource(component: any): any;
|
|
349
364
|
refreshRowSource(component: any): () => void;
|
|
350
365
|
addItem(formArray: FormArray): void;
|
|
351
|
-
removeItem(formArray: FormArray, index: number): void;
|
|
366
|
+
removeItem(formArray: FormArray, index: number, withConfirm: boolean): void;
|
|
367
|
+
moveUpItem(formArray: FormArray, index: number): void;
|
|
368
|
+
moveDownItem(formArray: FormArray, index: number): void;
|
|
352
369
|
createUploadTables(component: any): any;
|
|
353
370
|
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
354
371
|
getFeelableProperties(component: any): Record<string, any> | null;
|
|
@@ -362,6 +379,12 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
362
379
|
[x: string]: boolean;
|
|
363
380
|
};
|
|
364
381
|
getTextAlignment(component: any): string;
|
|
382
|
+
getHorizontalAlignment(component: any): {
|
|
383
|
+
"horizontal-left": boolean;
|
|
384
|
+
"horizontal-center": boolean;
|
|
385
|
+
"horizontal-right": boolean;
|
|
386
|
+
"horizontal-fill": boolean;
|
|
387
|
+
};
|
|
365
388
|
getLightView(component: any): string;
|
|
366
389
|
private noData;
|
|
367
390
|
private get language();
|
|
@@ -80,6 +80,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
80
80
|
OpenMenu: string;
|
|
81
81
|
CloseMenu: string;
|
|
82
82
|
LoadingFailed: string;
|
|
83
|
+
ConfirmDelete: string;
|
|
83
84
|
};
|
|
84
85
|
en: {
|
|
85
86
|
TypeToSearch: string;
|
|
@@ -119,6 +120,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
119
120
|
OpenMenu: string;
|
|
120
121
|
CloseMenu: string;
|
|
121
122
|
LoadingFailed: string;
|
|
123
|
+
ConfirmDelete: string;
|
|
122
124
|
};
|
|
123
125
|
de: {
|
|
124
126
|
TypeToSearch: string;
|
|
@@ -158,6 +160,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
158
160
|
OpenMenu: string;
|
|
159
161
|
CloseMenu: string;
|
|
160
162
|
LoadingFailed: string;
|
|
163
|
+
ConfirmDelete: string;
|
|
161
164
|
};
|
|
162
165
|
fr: {
|
|
163
166
|
TypeToSearch: string;
|
|
@@ -197,6 +200,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
197
200
|
OpenMenu: string;
|
|
198
201
|
CloseMenu: string;
|
|
199
202
|
LoadingFailed: string;
|
|
203
|
+
ConfirmDelete: string;
|
|
200
204
|
};
|
|
201
205
|
es: {
|
|
202
206
|
TypeToSearch: string;
|
|
@@ -236,6 +240,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
236
240
|
OpenMenu: string;
|
|
237
241
|
CloseMenu: string;
|
|
238
242
|
LoadingFailed: string;
|
|
243
|
+
ConfirmDelete: string;
|
|
239
244
|
};
|
|
240
245
|
pt: {
|
|
241
246
|
TypeToSearch: string;
|
|
@@ -275,6 +280,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
275
280
|
OpenMenu: string;
|
|
276
281
|
CloseMenu: string;
|
|
277
282
|
LoadingFailed: string;
|
|
283
|
+
ConfirmDelete: string;
|
|
278
284
|
};
|
|
279
285
|
};
|
|
280
286
|
TypeToSearch: string;
|
|
@@ -314,9 +320,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
314
320
|
OpenMenu: string;
|
|
315
321
|
CloseMenu: string;
|
|
316
322
|
LoadingFailed: string;
|
|
323
|
+
ConfirmDelete: string;
|
|
317
324
|
};
|
|
318
325
|
ngOnDestroy(): void;
|
|
319
|
-
private internalChange;
|
|
320
326
|
ngOnChanges(changes: SimpleChanges): void;
|
|
321
327
|
get forms(): Array<any>;
|
|
322
328
|
locale(component: any, key: string): string;
|
|
@@ -335,7 +341,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
335
341
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
336
342
|
evaluateTemplate(value: string | null): string;
|
|
337
343
|
openForm(template: string, options: FormDialogOptions): void;
|
|
338
|
-
refresh(): void;
|
|
339
344
|
isChanged(): boolean;
|
|
340
345
|
isValid(): boolean;
|
|
341
346
|
private valueChangesSubscription;
|
|
@@ -346,6 +351,11 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
346
351
|
private get language();
|
|
347
352
|
private onChangeSchema;
|
|
348
353
|
private onChangeValue;
|
|
354
|
+
private suspendValueChanges;
|
|
355
|
+
private internalChange;
|
|
356
|
+
private registerHandlers;
|
|
357
|
+
private clearHandlers;
|
|
358
|
+
refresh(): void;
|
|
349
359
|
private getNext;
|
|
350
360
|
private getPrevious;
|
|
351
361
|
private getMaxNav;
|
|
@@ -353,8 +363,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
353
363
|
private isInactive;
|
|
354
364
|
private clearControls;
|
|
355
365
|
private clearFormArrays;
|
|
356
|
-
private registerHandlers;
|
|
357
|
-
private clearHandlers;
|
|
358
366
|
private buildForm;
|
|
359
367
|
private addControls;
|
|
360
368
|
private createFormArray;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare const Texts: {
|
|
|
38
38
|
OpenMenu: string;
|
|
39
39
|
CloseMenu: string;
|
|
40
40
|
LoadingFailed: string;
|
|
41
|
+
ConfirmDelete: string;
|
|
41
42
|
};
|
|
42
43
|
en: {
|
|
43
44
|
TypeToSearch: string;
|
|
@@ -77,6 +78,7 @@ export declare const Texts: {
|
|
|
77
78
|
OpenMenu: string;
|
|
78
79
|
CloseMenu: string;
|
|
79
80
|
LoadingFailed: string;
|
|
81
|
+
ConfirmDelete: string;
|
|
80
82
|
};
|
|
81
83
|
de: {
|
|
82
84
|
TypeToSearch: string;
|
|
@@ -116,6 +118,7 @@ export declare const Texts: {
|
|
|
116
118
|
OpenMenu: string;
|
|
117
119
|
CloseMenu: string;
|
|
118
120
|
LoadingFailed: string;
|
|
121
|
+
ConfirmDelete: string;
|
|
119
122
|
};
|
|
120
123
|
fr: {
|
|
121
124
|
TypeToSearch: string;
|
|
@@ -155,6 +158,7 @@ export declare const Texts: {
|
|
|
155
158
|
OpenMenu: string;
|
|
156
159
|
CloseMenu: string;
|
|
157
160
|
LoadingFailed: string;
|
|
161
|
+
ConfirmDelete: string;
|
|
158
162
|
};
|
|
159
163
|
es: {
|
|
160
164
|
TypeToSearch: string;
|
|
@@ -194,6 +198,7 @@ export declare const Texts: {
|
|
|
194
198
|
OpenMenu: string;
|
|
195
199
|
CloseMenu: string;
|
|
196
200
|
LoadingFailed: string;
|
|
201
|
+
ConfirmDelete: string;
|
|
197
202
|
};
|
|
198
203
|
pt: {
|
|
199
204
|
TypeToSearch: string;
|
|
@@ -233,6 +238,7 @@ export declare const Texts: {
|
|
|
233
238
|
OpenMenu: string;
|
|
234
239
|
CloseMenu: string;
|
|
235
240
|
LoadingFailed: string;
|
|
241
|
+
ConfirmDelete: string;
|
|
236
242
|
};
|
|
237
243
|
};
|
|
238
244
|
TypeToSearch: string;
|
|
@@ -272,4 +278,5 @@ export declare const Texts: {
|
|
|
272
278
|
OpenMenu: string;
|
|
273
279
|
CloseMenu: string;
|
|
274
280
|
LoadingFailed: string;
|
|
281
|
+
ConfirmDelete: string;
|
|
275
282
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IEvaluatorProvider } from './programmability.service';
|
|
2
|
-
import { AbstractControl, FormControlStatus } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, FormGroup, FormControlStatus } from '@angular/forms';
|
|
3
|
+
import { Path } from '../common/path';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type Path = string | number | Array<string | number>;
|
|
5
6
|
type ControlType = 'array' | 'group' | 'control';
|
|
6
7
|
export interface PatchOptions {
|
|
7
8
|
emitEvent?: boolean;
|
|
@@ -16,6 +17,7 @@ export interface PathOptions {
|
|
|
16
17
|
emitWarn?: boolean;
|
|
17
18
|
create?: boolean;
|
|
18
19
|
expected?: ControlType;
|
|
20
|
+
breakOnArray?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export declare class FormService implements IEvaluatorProvider {
|
|
21
23
|
set(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
@@ -28,6 +30,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
28
30
|
moveUp(control: AbstractControl, path: Path, index: number): boolean;
|
|
29
31
|
moveDown(control: AbstractControl, path: Path, index: number): boolean;
|
|
30
32
|
status(control: AbstractControl, path: Path, pathOptions?: PathOptions): FormControlStatus | undefined;
|
|
33
|
+
updateAllValueAndValidity(control: AbstractControl, emitEvent?: boolean): void;
|
|
31
34
|
countInvalid(controls: Iterable<AbstractControl>): number;
|
|
32
35
|
getInvalidControls(control: AbstractControl): {
|
|
33
36
|
path: string;
|
|
@@ -35,6 +38,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
35
38
|
}[];
|
|
36
39
|
patch(control: AbstractControl, value: any, options?: PatchOptions): void;
|
|
37
40
|
getPath(control: AbstractControl): (string | number)[];
|
|
41
|
+
waitForControl(formGroup: FormGroup, path: Path, pathOptions?: PathOptions): Observable<AbstractControl>;
|
|
38
42
|
getContext(formGroup: any): Record<string, any>;
|
|
39
43
|
private applyPath;
|
|
40
44
|
private asObject;
|
|
@@ -44,6 +48,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
44
48
|
private createArrayItem;
|
|
45
49
|
private createControlFromValue;
|
|
46
50
|
private createControlFromArray;
|
|
51
|
+
private enumerateControls;
|
|
47
52
|
private collectErrors;
|
|
48
53
|
private setUnknown;
|
|
49
54
|
private isUnknown;
|
|
@@ -33,7 +33,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
33
33
|
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
34
34
|
evaluateNumber(formGroup: FormGroup, value: number | string | null): number | null;
|
|
35
35
|
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
36
|
-
evaluateTemplate(formGroup: FormGroup, value: string | null): any;
|
|
36
|
+
evaluateTemplate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
37
37
|
evaluateUnary(formGroup: FormGroup, value: string | null, input: any): any;
|
|
38
38
|
invalidate(value: string | null): void;
|
|
39
39
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Path } from '../common/path';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class ScopeService implements IEvaluatorProvider {
|
|
4
6
|
private parent;
|
|
5
7
|
constructor(parent: ScopeService | null);
|
|
6
8
|
private scope;
|
|
9
|
+
private readonly refreshSubject;
|
|
10
|
+
readonly onRefresh: Observable<Path>;
|
|
7
11
|
set(scope: Record<string, any> | null): void;
|
|
8
12
|
get(): Record<string, any> | null;
|
|
13
|
+
refresh(path?: Path): void;
|
|
9
14
|
getContext(): Record<string, any>;
|
|
10
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [{ optional: true; skipSelf: true; }]>;
|
|
11
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScopeService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isMeaningful(x: any): boolean;
|