@wemake4u/form-player-se 1.0.19 → 1.0.20
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/dynamic-fields/dynamic-fields.component.mjs +24 -14
- package/esm2022/lib/services/chart.service.mjs +264 -0
- package/esm2022/lib/services/dialog.service.mjs +4 -2
- package/esm2022/lib/services/grid.service.mjs +14 -14
- package/fesm2022/wemake4u-form-player-se.mjs +315 -33
- 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/dynamic-fields/dynamic-fields.component.d.ts +5 -1
- package/lib/services/chart.service.d.ts +34 -0
- package/lib/services/grid.service.d.ts +8 -8
- package/package.json +4 -2
|
@@ -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,7 @@ 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): AgChartOptions;
|
|
328
332
|
getGridOptions(component: any): GridOptions;
|
|
329
333
|
getGridModules(component: any): Module[];
|
|
330
334
|
onGridSelectionChanged(component: any, event: any): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
|
+
import { AgChartOptions } from 'ag-charts-community';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ChartService {
|
|
6
|
+
private programmability;
|
|
7
|
+
constructor(programmability: ProgrammabilityService);
|
|
8
|
+
getOptions(component: any, formGroup: FormGroup, language: string): AgChartOptions;
|
|
9
|
+
private locale;
|
|
10
|
+
private getSeries;
|
|
11
|
+
private getSeriesOptionsNames;
|
|
12
|
+
private getBaseSeriesOptions;
|
|
13
|
+
private getBarSeriesOptions;
|
|
14
|
+
private getLineSeriesOptions;
|
|
15
|
+
private getAreaSeriesOptions;
|
|
16
|
+
private getAreaSeriesOptionsNames;
|
|
17
|
+
private getScatterSeriesOptions;
|
|
18
|
+
private getScatterSeriesOptionsNames;
|
|
19
|
+
private getBubbleSeriesOptions;
|
|
20
|
+
private getBubbleSeriesOptionsNames;
|
|
21
|
+
private getPieSeriesOptions;
|
|
22
|
+
private getPieSeriesOptionsNames;
|
|
23
|
+
private getDonutSeriesOptions;
|
|
24
|
+
private getDonutSeriesOptionsNames;
|
|
25
|
+
private getProps;
|
|
26
|
+
private getDataProps;
|
|
27
|
+
private isBoolean;
|
|
28
|
+
private isString;
|
|
29
|
+
private isNumber;
|
|
30
|
+
private isDirection;
|
|
31
|
+
private isInterpolation;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChartService>;
|
|
34
|
+
}
|
|
@@ -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;
|
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.20",
|
|
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
|
},
|