@wemake4u/form-player-se 1.0.20 → 1.0.21
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/change.directive.mjs +27 -0
- package/esm2022/lib/directives/dropdown.directive.mjs +14 -1
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +12 -4
- package/esm2022/lib/services/chart.service.mjs +59 -19
- package/esm2022/lib/services/programmability.service.mjs +26 -6
- package/esm2022/lib/services/weak.service.mjs +1 -2
- package/esm2022/lib/utils/observableAll.mjs +26 -0
- package/fesm2022/wemake4u-form-player-se.mjs +154 -28
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/directives/change.directive.d.ts +9 -0
- package/lib/directives/dropdown.directive.d.ts +5 -2
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +3 -1
- package/lib/services/chart.service.d.ts +5 -2
- package/lib/services/programmability.service.d.ts +3 -2
- package/lib/utils/observableAll.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChangeDirective implements OnChanges {
|
|
4
|
+
observe: any;
|
|
5
|
+
callback?: () => void;
|
|
6
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChangeDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChangeDirective, "[observe]", never, { "observe": { "alias": "observe"; "required": false; }; "callback": { "alias": "callback"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { SirioSelectComponent } from 'ngx-sirio-lib';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DropdownDirective implements AfterViewInit {
|
|
4
|
+
export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
5
5
|
private el;
|
|
6
6
|
private renderer;
|
|
7
7
|
private sirioSelect;
|
|
8
8
|
constructor(el: ElementRef, renderer: Renderer2, sirioSelect: SirioSelectComponent);
|
|
9
|
+
private optionsSubscription?;
|
|
9
10
|
ngAfterViewInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
10
12
|
private handleValue;
|
|
11
13
|
private handleSearchable;
|
|
14
|
+
private handleOptionsChanges;
|
|
12
15
|
private deactivate;
|
|
13
16
|
private activate;
|
|
14
17
|
private onKeyUp;
|
|
@@ -328,7 +328,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
328
328
|
clickButton(component: any, event: any): void;
|
|
329
329
|
getValues(component: any): Observable<any>;
|
|
330
330
|
refreshValues(component: any): () => void;
|
|
331
|
-
getChartOptions(component: any): AgChartOptions
|
|
331
|
+
getChartOptions(component: any): Observable<AgChartOptions>;
|
|
332
|
+
invalidateChart(component: any): () => void;
|
|
333
|
+
getChartData(component: any): any;
|
|
332
334
|
getGridOptions(component: any): GridOptions;
|
|
333
335
|
getGridModules(component: any): Module[];
|
|
334
336
|
onGridSelectionChanged(component: any, event: any): void;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import { AgChartOptions } from 'ag-charts-community';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ChartService {
|
|
6
7
|
private programmability;
|
|
7
8
|
constructor(programmability: ProgrammabilityService);
|
|
8
|
-
getOptions(component: any, formGroup: FormGroup, language: string): AgChartOptions
|
|
9
|
+
getOptions(component: any, formGroup: FormGroup, language: string): Observable<AgChartOptions>;
|
|
10
|
+
getDataExpression(component: any): string;
|
|
11
|
+
private bindData;
|
|
9
12
|
private locale;
|
|
13
|
+
private getTheme;
|
|
10
14
|
private getSeries;
|
|
11
15
|
private getSeriesOptionsNames;
|
|
12
16
|
private getBaseSeriesOptions;
|
|
@@ -23,7 +27,6 @@ export declare class ChartService {
|
|
|
23
27
|
private getDonutSeriesOptions;
|
|
24
28
|
private getDonutSeriesOptionsNames;
|
|
25
29
|
private getProps;
|
|
26
|
-
private getDataProps;
|
|
27
30
|
private isBoolean;
|
|
28
31
|
private isString;
|
|
29
32
|
private isNumber;
|
|
@@ -22,6 +22,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
22
22
|
ngOnDestroy(): void;
|
|
23
23
|
isExpression(text: string | null): boolean;
|
|
24
24
|
getExpression(text: string | null): string;
|
|
25
|
+
watchExpression(formGroup: FormGroup, value: string | null, callback: (value: any) => void): void;
|
|
25
26
|
evaluateString(formGroup: FormGroup, value: string | null): string;
|
|
26
27
|
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
27
28
|
evaluateNumber(formGroup: FormGroup, value: number | string | null): number | null;
|
|
@@ -37,8 +38,8 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
37
38
|
private getParentContext;
|
|
38
39
|
private getParent;
|
|
39
40
|
private getContext;
|
|
40
|
-
private
|
|
41
|
-
private
|
|
41
|
+
private watchingExpression;
|
|
42
|
+
private watchingDependencies;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
43
44
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgrammabilityService>;
|
|
44
45
|
}
|