@wemake4u/form-player-se 1.0.19 → 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/controls/chart.mjs +10 -0
- package/esm2022/lib/controls/factory.mjs +4 -1
- package/esm2022/lib/dialog/dialog.component.mjs +6 -5
- 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 +33 -15
- package/esm2022/lib/services/chart.service.mjs +304 -0
- package/esm2022/lib/services/dialog.service.mjs +4 -2
- package/esm2022/lib/services/grid.service.mjs +14 -14
- 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 +449 -41
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/controls/chart.d.ts +4 -0
- package/lib/dialog/dialog.component.d.ts +1 -0
- 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 +7 -1
- package/lib/services/chart.service.d.ts +37 -0
- package/lib/services/grid.service.d.ts +8 -8
- package/lib/services/programmability.service.d.ts +3 -2
- package/lib/utils/observableAll.d.ts +2 -0
- package/package.json +4 -2
|
@@ -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;
|
|
@@ -11,10 +11,12 @@ import { WeakService } from '../services/weak.service';
|
|
|
11
11
|
import { RegisterService } from '../services/register.service';
|
|
12
12
|
import { MetadataService } from '../services/metadata.service';
|
|
13
13
|
import { GridService } from '../services/grid.service';
|
|
14
|
+
import { ChartService } from '../services/chart.service';
|
|
14
15
|
import { ButtonColors } from 'ngx-sirio-lib';
|
|
15
16
|
import { Observable } from 'rxjs';
|
|
16
17
|
import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
17
18
|
import { Module, GridOptions } from 'ag-grid-community';
|
|
19
|
+
import { AgChartOptions } from 'ag-charts-community';
|
|
18
20
|
import * as i0 from "@angular/core";
|
|
19
21
|
export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, IDynamicFieldsComponent {
|
|
20
22
|
private sanitizer;
|
|
@@ -26,6 +28,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
26
28
|
private register;
|
|
27
29
|
private metadata;
|
|
28
30
|
private grid;
|
|
31
|
+
private chart;
|
|
29
32
|
private el;
|
|
30
33
|
private cdr;
|
|
31
34
|
rows: Array<any> | undefined;
|
|
@@ -299,7 +302,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
299
302
|
OpenMenu: string;
|
|
300
303
|
CloseMenu: string;
|
|
301
304
|
};
|
|
302
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, grid: GridService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
305
|
+
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
303
306
|
ngOnInit(): void;
|
|
304
307
|
ngAfterViewInit(): void;
|
|
305
308
|
getRegister(): RegisterService;
|
|
@@ -325,6 +328,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
325
328
|
clickButton(component: any, event: any): void;
|
|
326
329
|
getValues(component: any): Observable<any>;
|
|
327
330
|
refreshValues(component: any): () => void;
|
|
331
|
+
getChartOptions(component: any): Observable<AgChartOptions>;
|
|
332
|
+
invalidateChart(component: any): () => void;
|
|
333
|
+
getChartData(component: any): any;
|
|
328
334
|
getGridOptions(component: any): GridOptions;
|
|
329
335
|
getGridModules(component: any): Module[];
|
|
330
336
|
onGridSelectionChanged(component: any, event: any): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AgChartOptions } from 'ag-charts-community';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ChartService {
|
|
7
|
+
private programmability;
|
|
8
|
+
constructor(programmability: ProgrammabilityService);
|
|
9
|
+
getOptions(component: any, formGroup: FormGroup, language: string): Observable<AgChartOptions>;
|
|
10
|
+
getDataExpression(component: any): string;
|
|
11
|
+
private bindData;
|
|
12
|
+
private locale;
|
|
13
|
+
private getTheme;
|
|
14
|
+
private getSeries;
|
|
15
|
+
private getSeriesOptionsNames;
|
|
16
|
+
private getBaseSeriesOptions;
|
|
17
|
+
private getBarSeriesOptions;
|
|
18
|
+
private getLineSeriesOptions;
|
|
19
|
+
private getAreaSeriesOptions;
|
|
20
|
+
private getAreaSeriesOptionsNames;
|
|
21
|
+
private getScatterSeriesOptions;
|
|
22
|
+
private getScatterSeriesOptionsNames;
|
|
23
|
+
private getBubbleSeriesOptions;
|
|
24
|
+
private getBubbleSeriesOptionsNames;
|
|
25
|
+
private getPieSeriesOptions;
|
|
26
|
+
private getPieSeriesOptionsNames;
|
|
27
|
+
private getDonutSeriesOptions;
|
|
28
|
+
private getDonutSeriesOptionsNames;
|
|
29
|
+
private getProps;
|
|
30
|
+
private isBoolean;
|
|
31
|
+
private isString;
|
|
32
|
+
private isNumber;
|
|
33
|
+
private isDirection;
|
|
34
|
+
private isInterpolation;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartService, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartService>;
|
|
37
|
+
}
|
|
@@ -7,11 +7,11 @@ export declare class GridService {
|
|
|
7
7
|
private formatter;
|
|
8
8
|
private programmability;
|
|
9
9
|
constructor(formatter: FormatterService, programmability: ProgrammabilityService);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
getModules(): Module[];
|
|
11
|
+
getOptions(component: any, formGroup: FormGroup, language: string): GridOptions;
|
|
12
|
+
onSelectionChanged(component: any, formGroup: FormGroup, event: any): any;
|
|
13
13
|
private locale;
|
|
14
|
-
private
|
|
14
|
+
private getColumns;
|
|
15
15
|
private setCellDataType;
|
|
16
16
|
private setCellRenderer;
|
|
17
17
|
private setResizable;
|
|
@@ -30,10 +30,10 @@ export declare class GridService {
|
|
|
30
30
|
private setValueFormatter;
|
|
31
31
|
private getRowSelection;
|
|
32
32
|
private onRowSelectable;
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
33
|
+
private getPaginable;
|
|
34
|
+
private getPageSize;
|
|
35
|
+
private getTexts;
|
|
36
|
+
private getTheme;
|
|
37
37
|
private getDataTypeDefinitions;
|
|
38
38
|
private getMap;
|
|
39
39
|
private formatMap;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wemake4u/form-player-se",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^18.2.0",
|
|
6
6
|
"@angular/common": "^18.2.0",
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
"rxjs": "~7.8.0",
|
|
10
10
|
"bootstrap": "5.3.3",
|
|
11
11
|
"ag-grid-angular": "^33.0.4",
|
|
12
|
-
"@ag-grid-community/angular": "32.3.7",
|
|
12
|
+
"@ag-grid-community/angular": "^32.3.7",
|
|
13
13
|
"@ag-grid-community/locale": "^33.1.0",
|
|
14
|
+
"ag-charts-angular": "^11.3.2",
|
|
15
|
+
"ag-charts-community": "^11.3.2",
|
|
14
16
|
"ngx-sirio-lib": "^1.2.6-A16",
|
|
15
17
|
"util": "^0.12.5"
|
|
16
18
|
},
|