@wemake4u/form-player-se 1.0.1 → 1.0.3
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/directives/dropdown.directive.mjs +8 -7
- package/esm2022/lib/directives/repeat.directive.mjs +6 -2
- package/esm2022/lib/directives/tab.directive.mjs +5 -1
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +50 -19
- package/esm2022/lib/locale/locale-it.mjs +6 -2
- package/esm2022/lib/services/markdown.service.mjs +13 -7
- package/esm2022/lib/services/programmability.service.mjs +21 -25
- package/esm2022/lib/services/proxy.service.mjs +1 -1
- package/esm2022/lib/services/sanitize.service.mjs +4 -1
- package/esm2022/lib/shared/template-wrapper/template-wrapper.component.mjs +33 -0
- package/esm2022/lib/utils/gridCells.mjs +61 -9
- package/fesm2022/wemake4u-form-player-se.mjs +191 -64
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/directives/dropdown.directive.d.ts +1 -1
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +5 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +4 -0
- package/lib/locale/locale-it.d.ts +4 -0
- package/lib/services/programmability.service.d.ts +7 -3
- package/lib/services/proxy.service.d.ts +1 -0
- package/lib/services/sanitize.service.d.ts +1 -0
- package/lib/shared/template-wrapper/template-wrapper.component.d.ts +10 -0
- package/lib/utils/gridCells.d.ts +17 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ export declare class DropdownDirective implements AfterViewInit {
|
|
|
7
7
|
private sirioSelect;
|
|
8
8
|
constructor(el: ElementRef, renderer: Renderer2, sirioSelect: SirioSelectComponent);
|
|
9
9
|
ngAfterViewInit(): void;
|
|
10
|
-
private
|
|
10
|
+
private handleValue;
|
|
11
11
|
private handleSearchable;
|
|
12
12
|
private deactivate;
|
|
13
13
|
private activate;
|
|
@@ -37,6 +37,10 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit {
|
|
|
37
37
|
NextSection: string;
|
|
38
38
|
Show: string;
|
|
39
39
|
Close: string;
|
|
40
|
+
Name: string;
|
|
41
|
+
Size: string;
|
|
42
|
+
Type: string;
|
|
43
|
+
Actions: string;
|
|
40
44
|
};
|
|
41
45
|
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, formatter: FormatterService, weak: WeakService, register: RegisterService, el: ElementRef);
|
|
42
46
|
ngOnInit(): void;
|
|
@@ -47,7 +51,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit {
|
|
|
47
51
|
isWarning(component: any): boolean;
|
|
48
52
|
evaluateString(value: string | null): string;
|
|
49
53
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
50
|
-
evaluateNumber(value: number | null): number | null;
|
|
54
|
+
evaluateNumber(value: number | string | null): number | null;
|
|
51
55
|
evaluateUrl(value: string | null): SafeResourceUrl;
|
|
52
56
|
evaluateTemplate(value: string | null): string;
|
|
53
57
|
evaluate(text: string | null, cacheable?: boolean): any;
|
|
@@ -34,6 +34,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
34
34
|
NextSection: string;
|
|
35
35
|
Show: string;
|
|
36
36
|
Close: string;
|
|
37
|
+
Name: string;
|
|
38
|
+
Size: string;
|
|
39
|
+
Type: string;
|
|
40
|
+
Actions: string;
|
|
37
41
|
};
|
|
38
42
|
ngOnDestroy(): void;
|
|
39
43
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -2,7 +2,7 @@ import { OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FeelService } from '../services/feel.service';
|
|
4
4
|
import { ScopeService } from '../services/scope.service';
|
|
5
|
-
import { ProxyService } from '../services/proxy.service';
|
|
5
|
+
import { ProxyService, ProxyConfigFn } from '../services/proxy.service';
|
|
6
6
|
import { RegisterService } from '../services/register.service';
|
|
7
7
|
import { ToastService } from '../services/toast.service';
|
|
8
8
|
import { WeakService } from '../services/weak.service';
|
|
@@ -20,9 +20,9 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
20
20
|
isExpression(text: string | null): boolean;
|
|
21
21
|
getExpression(text: string | null): string;
|
|
22
22
|
evaluateString(formGroup: FormGroup, value: string | null): string;
|
|
23
|
-
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null): boolean | null;
|
|
23
|
+
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
24
24
|
evaluateNumber(formGroup: FormGroup, value: number | string | null): number | null;
|
|
25
|
-
evaluate(formGroup: FormGroup, value: string | null,
|
|
25
|
+
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
26
26
|
evaluateTemplate(formGroup: FormGroup, value: string | null): any;
|
|
27
27
|
evaluateUnary(formGroup: FormGroup, value: string | null, input: any): any;
|
|
28
28
|
private cacheable;
|
|
@@ -37,3 +37,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
38
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgrammabilityService>;
|
|
39
39
|
}
|
|
40
|
+
export interface EvaluateOptions {
|
|
41
|
+
cacheable?: boolean;
|
|
42
|
+
proxyFn?: ProxyConfigFn;
|
|
43
|
+
}
|
|
@@ -6,6 +6,7 @@ export declare class SanitizeService {
|
|
|
6
6
|
sanitizeHtml(html: string): string;
|
|
7
7
|
sanitizeSafeHtml(html: string): SafeHtml;
|
|
8
8
|
sanitizeSafeUrl(url: string): SafeResourceUrl;
|
|
9
|
+
toString(safeHtml: SafeHtml): string;
|
|
9
10
|
private sanitizeOption;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<SanitizeService>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateWrapperComponent {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
context: any;
|
|
6
|
+
constructor();
|
|
7
|
+
getTemplateRef(): TemplateRef<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateWrapperComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateWrapperComponent, "app-template-wrapper", never, { "template": { "alias": "template"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
package/lib/utils/gridCells.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ICellRendererAngularComp } from 'ag-grid-angular';
|
|
2
2
|
import { ICellRendererParams } from 'ag-grid-community';
|
|
3
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ObjectURLRendererComponent implements ICellRendererAngularComp {
|
|
5
6
|
params: ICellRendererParams;
|
|
@@ -7,7 +8,7 @@ export declare class ObjectURLRendererComponent implements ICellRendererAngularC
|
|
|
7
8
|
onClick(event: Event): void;
|
|
8
9
|
refresh(): boolean;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectURLRendererComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectURLRendererComponent, "ng-component", never, {}, {}, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectURLRendererComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
11
12
|
}
|
|
12
13
|
export declare class DeleteRowCellRenderer implements ICellRendererAngularComp {
|
|
13
14
|
params: any;
|
|
@@ -15,5 +16,19 @@ export declare class DeleteRowCellRenderer implements ICellRendererAngularComp {
|
|
|
15
16
|
onClick(event: Event): void;
|
|
16
17
|
refresh(): boolean;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteRowCellRenderer, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteRowCellRenderer, "ng-component", never, {}, {}, never, never,
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteRowCellRenderer, "ng-component", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
export declare class ActionsCellRenderer implements ICellRendererAngularComp {
|
|
22
|
+
private programmability;
|
|
23
|
+
constructor(programmability: ProgrammabilityService);
|
|
24
|
+
params: any;
|
|
25
|
+
agInit(params: any): void;
|
|
26
|
+
refresh(): boolean;
|
|
27
|
+
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
28
|
+
evaluateString(value: string | null): string;
|
|
29
|
+
clickButton(action: any, event: any): any;
|
|
30
|
+
private getData;
|
|
31
|
+
private getFormGroup;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsCellRenderer, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellRenderer, "ng-component", never, {}, {}, never, never, true, never>;
|
|
19
34
|
}
|