@wemake4u/form-player-se 1.0.26 → 1.0.28
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/components/actionsCellRenderer/actionsCellRenderer.component.mjs +3 -3
- package/esm2022/lib/components/deleteRowRenderer/deleteRowRenderer.component.mjs +3 -3
- package/esm2022/lib/components/hostCellRenderer/hostCellRenderer.component.mjs +3 -3
- package/esm2022/lib/components/objectURLRenderer/objectURLRenderer.component.mjs +3 -3
- package/esm2022/lib/components/setFilter/setFilter.component.mjs +3 -3
- package/esm2022/lib/dialog/dialog.component.mjs +3 -3
- package/esm2022/lib/directives/accordion.directive.mjs +3 -3
- package/esm2022/lib/directives/accordionpanel.directive.mjs +3 -3
- package/esm2022/lib/directives/adorner.directive.mjs +3 -3
- package/esm2022/lib/directives/change.directive.mjs +3 -3
- package/esm2022/lib/directives/collapse.directive.mjs +3 -3
- package/esm2022/lib/directives/date.directive.mjs +3 -3
- package/esm2022/lib/directives/dialog.directive.mjs +3 -3
- package/esm2022/lib/directives/display.directive.mjs +3 -3
- package/esm2022/lib/directives/dropdown.directive.mjs +3 -3
- package/esm2022/lib/directives/formIndex.directive.mjs +3 -3
- package/esm2022/lib/directives/framesecurity.directive.mjs +3 -3
- package/esm2022/lib/directives/grid.directive.mjs +49 -13
- package/esm2022/lib/directives/number.directive.mjs +5 -8
- package/esm2022/lib/directives/readonly.directive.mjs +3 -3
- package/esm2022/lib/directives/refresh.directive.mjs +3 -3
- package/esm2022/lib/directives/register.directive.mjs +3 -3
- package/esm2022/lib/directives/repeat.directive.mjs +8 -7
- package/esm2022/lib/directives/tab.directive.mjs +3 -3
- package/esm2022/lib/directives/tabcontrol.directive.mjs +3 -3
- package/esm2022/lib/directives/text.directive.mjs +3 -3
- package/esm2022/lib/directives/updateblur.directive.mjs +3 -3
- package/esm2022/lib/directives/validationpatch.directive.mjs +34 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +36 -16
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +15 -10
- package/esm2022/lib/dynamic-host/dynamic-host.component.mjs +3 -3
- package/esm2022/lib/interact/confirmation.mjs +3 -3
- package/esm2022/lib/interact/notification.mjs +3 -3
- package/esm2022/lib/interact/prompt.mjs +3 -3
- package/esm2022/lib/services/chart.service.mjs +3 -3
- package/esm2022/lib/services/data.service.mjs +3 -3
- package/esm2022/lib/services/dialog.service.mjs +3 -3
- package/esm2022/lib/services/event.service.mjs +3 -3
- package/esm2022/lib/services/feel.service.mjs +3 -3
- package/esm2022/lib/services/form.service.mjs +3 -3
- package/esm2022/lib/services/formatter.service.mjs +3 -3
- package/esm2022/lib/services/function.service.mjs +3 -3
- package/esm2022/lib/services/global.service.mjs +3 -3
- package/esm2022/lib/services/grid.service.mjs +3 -3
- package/esm2022/lib/services/markdown.service.mjs +3 -3
- package/esm2022/lib/services/metadata.service.mjs +3 -3
- package/esm2022/lib/services/mime.service.mjs +3 -3
- package/esm2022/lib/services/programmability.service.mjs +85 -35
- package/esm2022/lib/services/register.service.mjs +3 -3
- package/esm2022/lib/services/sanitize.service.mjs +3 -3
- package/esm2022/lib/services/scope.service.mjs +3 -3
- package/esm2022/lib/services/toast.service.mjs +3 -3
- package/esm2022/lib/services/weak.service.mjs +3 -3
- package/esm2022/lib/shared/template-wrapper/template-wrapper.component.mjs +3 -3
- package/esm2022/lib/utils/syncronize.mjs +34 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/wemake4u-form-player-se.mjs +395 -225
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/directives/grid.directive.d.ts +2 -0
- package/lib/directives/validationpatch.directive.d.ts +7 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +5 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +2 -1
- package/lib/services/programmability.service.d.ts +3 -3
- package/lib/utils/syncronize.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -29,6 +29,8 @@ export declare class GridDirective implements OnChanges {
|
|
|
29
29
|
private showLoadError;
|
|
30
30
|
private get language();
|
|
31
31
|
private locale;
|
|
32
|
+
private wrapObservable;
|
|
33
|
+
private wrapRowsSource;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null]>;
|
|
33
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDirective, "[rowSource], [columnDefs]", never, { "rowSource": { "alias": "rowSource"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
36
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SirioValidationDirective } from 'ngx-sirio-lib';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ValidationPatchDirective extends SirioValidationDirective {
|
|
4
|
+
subscribeToNgControlChanges(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationPatchDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationPatchDirective, "[validation]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -10,6 +10,7 @@ import { EventService } from '../services/event.service';
|
|
|
10
10
|
import { WeakService } from '../services/weak.service';
|
|
11
11
|
import { RegisterService } from '../services/register.service';
|
|
12
12
|
import { MetadataService } from '../services/metadata.service';
|
|
13
|
+
import { GlobalService } from '../services/global.service';
|
|
13
14
|
import { FormService } from '../services/form.service';
|
|
14
15
|
import { GridService } from '../services/grid.service';
|
|
15
16
|
import { ChartService } from '../services/chart.service';
|
|
@@ -30,6 +31,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
30
31
|
private register;
|
|
31
32
|
private metadata;
|
|
32
33
|
private languageService;
|
|
34
|
+
private global;
|
|
33
35
|
private formService;
|
|
34
36
|
private grid;
|
|
35
37
|
private chart;
|
|
@@ -313,7 +315,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
313
315
|
CloseMenu: string;
|
|
314
316
|
LoadingFailed: string;
|
|
315
317
|
};
|
|
316
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, formService: FormService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
318
|
+
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, formService: FormService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
317
319
|
ngOnInit(): void;
|
|
318
320
|
ngAfterViewInit(): void;
|
|
319
321
|
getRegister(): RegisterService;
|
|
@@ -361,6 +363,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
361
363
|
getComponentAlignment(component: any): {
|
|
362
364
|
[x: string]: boolean;
|
|
363
365
|
};
|
|
366
|
+
getTextAlignment(component: any): string;
|
|
367
|
+
getLightView(component: any): string;
|
|
364
368
|
private noData;
|
|
365
369
|
private get language();
|
|
366
370
|
private getAlignmentRules;
|
|
@@ -331,6 +331,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
331
331
|
evaluateTemplate(value: string | null): string;
|
|
332
332
|
openForm(template: string, options: FormDialogOptions): void;
|
|
333
333
|
refresh(): void;
|
|
334
|
+
isChanged(): boolean;
|
|
335
|
+
isValid(): boolean;
|
|
334
336
|
private valueChangesSubscription;
|
|
335
337
|
private onCommandSubscription;
|
|
336
338
|
private _forms;
|
|
@@ -365,7 +367,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
365
367
|
private getUpdateOn;
|
|
366
368
|
private getDefaultValue;
|
|
367
369
|
private splitPath;
|
|
368
|
-
private hasValue;
|
|
369
370
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
370
371
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "showFormTitle": { "alias": "showFormTitle"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "onCommand": "onCommand"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
371
372
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { AbstractControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, FormGroup, ValidatorFn, AsyncValidatorFn } from '@angular/forms';
|
|
3
3
|
import { FeelService } from '../services/feel.service';
|
|
4
4
|
import { ScopeService } from '../services/scope.service';
|
|
5
5
|
import { RegisterService } from '../services/register.service';
|
|
@@ -38,7 +38,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
38
38
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
39
39
|
getDependencies(expression: string): (string | string[])[];
|
|
40
40
|
disable(formGroup: FormGroup, control: AbstractControl, value: boolean | string | null): void;
|
|
41
|
-
validate(formGroup: FormGroup, key: string, required?: boolean, validations?: ValidationRule[]): [ValidatorFn[], (control: AbstractControl) => void];
|
|
41
|
+
validate(formGroup: FormGroup, key: string, required?: boolean, validations?: ValidationRule[]): [ValidatorFn[], AsyncValidatorFn[], (control: AbstractControl) => void];
|
|
42
42
|
private cacheable;
|
|
43
43
|
private verbose;
|
|
44
44
|
private onErrorHandler;
|
|
@@ -61,7 +61,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
61
61
|
private getPath;
|
|
62
62
|
private validateFn;
|
|
63
63
|
private invalidateFn;
|
|
64
|
-
private
|
|
64
|
+
private createValidators;
|
|
65
65
|
private watchForValidation;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
67
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgrammabilityService>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function syncronize(target: any, source: any): any;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/dynamic-form/dynamic-form.component';
|
|
2
2
|
export * from './lib/utils/toFormData';
|
|
3
|
+
export * from './lib/utils/syncronize';
|
|
3
4
|
export * from './lib/services/toast.service';
|
|
4
5
|
export * from './lib/services/sanitize.service';
|
|
5
6
|
export * from './lib/services/feel.service';
|