@wemake4u/form-player-se 1.0.38 → 1.0.39
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/controls/table.mjs +4 -1
- package/esm2022/lib/directives/alert.directive.mjs +44 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +5 -4
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +2 -1
- package/esm2022/lib/services/grid.service.mjs +42 -15
- package/esm2022/lib/services/scope.service.mjs +6 -1
- package/fesm2022/wemake4u-form-player-se.mjs +121 -44
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/controls/table.d.ts +1 -0
- package/lib/directives/alert.directive.d.ts +15 -0
- package/lib/services/grid.service.d.ts +6 -2
- package/lib/services/scope.service.d.ts +1 -0
- package/package.json +1 -1
package/lib/controls/table.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AlertDirective implements OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
preventClose: boolean | null;
|
|
7
|
+
private viewInitialized;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
+
private applyPreventClose;
|
|
12
|
+
private toggleClass;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlertDirective, "[preventClose]", never, { "preventClose": { "alias": "preventClose"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Module, RowSelectionOptions, ColDef, GridOptions, GridApi } from 'ag-grid-community';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormatterService } from '../services/formatter.service';
|
|
4
|
+
import { MarkdownService } from '../services/markdown.service';
|
|
4
5
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
5
6
|
import { WeakService } from '../services/weak.service';
|
|
6
7
|
import { LanguageService } from '@wemake4u/interact';
|
|
@@ -9,8 +10,9 @@ export declare class GridService {
|
|
|
9
10
|
private formatter;
|
|
10
11
|
private languageService;
|
|
11
12
|
private programmability;
|
|
13
|
+
private markdownService;
|
|
12
14
|
private weak;
|
|
13
|
-
constructor(formatter: FormatterService, languageService: LanguageService, programmability: ProgrammabilityService, weak: WeakService);
|
|
15
|
+
constructor(formatter: FormatterService, languageService: LanguageService, programmability: ProgrammabilityService, markdownService: MarkdownService, weak: WeakService);
|
|
14
16
|
getModules(): Module[];
|
|
15
17
|
getOptions(component: any, formGroup: FormGroup): GridOptions;
|
|
16
18
|
getColumnDefs(component: any, columns: any, formGroup: FormGroup): ColDef[];
|
|
@@ -31,7 +33,8 @@ export declare class GridService {
|
|
|
31
33
|
private groupColumns;
|
|
32
34
|
private groupsToColumnDefs;
|
|
33
35
|
private setCellDataType;
|
|
34
|
-
private
|
|
36
|
+
private setRowStyle;
|
|
37
|
+
private setColStyles;
|
|
35
38
|
private setCellRenderer;
|
|
36
39
|
private setCellChangeFlash;
|
|
37
40
|
private setAutoHeight;
|
|
@@ -52,6 +55,7 @@ export declare class GridService {
|
|
|
52
55
|
getRowSelection(component: any, formGroup: FormGroup): RowSelectionOptions | undefined;
|
|
53
56
|
private hasRowId;
|
|
54
57
|
private getRowId;
|
|
58
|
+
private applyStyle;
|
|
55
59
|
private onRowSelectable;
|
|
56
60
|
private onRowSelected;
|
|
57
61
|
private onRowSelecting;
|
|
@@ -11,6 +11,7 @@ export declare class ScopeService implements IEvaluatorProvider {
|
|
|
11
11
|
set(scope: Record<string, any> | null): void;
|
|
12
12
|
get(): Record<string, any> | null;
|
|
13
13
|
refresh(path?: Path): void;
|
|
14
|
+
refreshMany(...paths: Path[]): void;
|
|
14
15
|
getContext(): Record<string, any>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [{ optional: true; skipSelf: true; }]>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScopeService>;
|