@onecx/angular-accelerator 5.28.0 → 5.30.0
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/assets/i18n/de.json +1 -0
- package/assets/i18n/en.json +1 -0
- package/esm2022/lib/components/column-group-selection/column-group-selection.component.mjs +3 -3
- package/esm2022/lib/components/data-table/data-table.component.mjs +14 -13
- package/esm2022/lib/components/diagram/diagram.component.mjs +26 -3
- package/esm2022/lib/components/group-by-count-diagram/group-by-count-diagram.component.mjs +24 -6
- package/esm2022/lib/components/page-header/page-header.component.mjs +4 -3
- package/esm2022/lib/model/diagram-data.mjs +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +69 -27
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/lib/components/diagram/diagram.component.d.ts +8 -1
- package/lib/components/group-by-count-diagram/group-by-count-diagram.component.d.ts +10 -1
- package/lib/components/page-header/page-header.component.d.ts +2 -0
- package/lib/model/diagram-data.d.ts +1 -0
- package/package.json +5 -5
|
@@ -21,6 +21,12 @@ export declare class DiagramComponent implements OnInit, OnChanges {
|
|
|
21
21
|
private translateService;
|
|
22
22
|
data: DiagramData[] | undefined;
|
|
23
23
|
sumKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* This property determines if diagram should generate the colors for the data that does not have any set.
|
|
26
|
+
*
|
|
27
|
+
* Setting this property to false will result in using the provided colors only if every data item has one. In the scenario where at least one item does not have a color set, diagram will generate all colors.
|
|
28
|
+
*/
|
|
29
|
+
fillMissingColors: boolean;
|
|
24
30
|
private _diagramType;
|
|
25
31
|
selectedDiagramType: DiagramLayouts | undefined;
|
|
26
32
|
chartType: 'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar';
|
|
@@ -42,11 +48,12 @@ export declare class DiagramComponent implements OnInit, OnChanges {
|
|
|
42
48
|
ngOnChanges(): void;
|
|
43
49
|
ngOnInit(): void;
|
|
44
50
|
generateChart(colorScale: any, colorRangeInfo: any): void;
|
|
51
|
+
generateColors(data: DiagramData[], colorScale: any, colorRangeInfo: any): any;
|
|
45
52
|
generateTotal(data: DiagramData[]): number;
|
|
46
53
|
generateDiagramValueString(data: DiagramData[]): string;
|
|
47
54
|
private diagramTypeToChartType;
|
|
48
55
|
dataClicked(event: []): void;
|
|
49
56
|
onDiagramTypeChanged(event: any): void;
|
|
50
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<DiagramComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "ocx-diagram", never, { "data": { "alias": "data"; "required": false; }; "sumKey": { "alias": "sumKey"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "ocx-diagram", never, { "data": { "alias": "data"; "required": false; }; "sumKey": { "alias": "sumKey"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
52
59
|
}
|
|
@@ -13,6 +13,12 @@ export declare class GroupByCountDiagramComponent implements OnInit {
|
|
|
13
13
|
private translateService;
|
|
14
14
|
sumKey: string;
|
|
15
15
|
diagramType: DiagramType;
|
|
16
|
+
/**
|
|
17
|
+
* This property determines if diagram should generate the colors for the data that does not have any set.
|
|
18
|
+
*
|
|
19
|
+
* Setting this property to false will result in using the provided colors only if every data item has one. In the scenario where at least one item does not have a color set, diagram will generate all colors.
|
|
20
|
+
*/
|
|
21
|
+
fillMissingColors: boolean;
|
|
16
22
|
/**
|
|
17
23
|
* @deprecated Will be replaced by diagramType
|
|
18
24
|
*/
|
|
@@ -31,6 +37,9 @@ export declare class GroupByCountDiagramComponent implements OnInit {
|
|
|
31
37
|
set columnField(value: string);
|
|
32
38
|
get column(): DiagramColumn;
|
|
33
39
|
set column(value: DiagramColumn);
|
|
40
|
+
private _colors$;
|
|
41
|
+
get colors(): Record<string, string>;
|
|
42
|
+
set colors(value: Record<string, string>);
|
|
34
43
|
dataSelected: EventEmitter<any>;
|
|
35
44
|
diagramTypeChanged: EventEmitter<DiagramType>;
|
|
36
45
|
componentStateChanged: EventEmitter<GroupByCountDiagramComponentState>;
|
|
@@ -39,5 +48,5 @@ export declare class GroupByCountDiagramComponent implements OnInit {
|
|
|
39
48
|
dataClicked(event: any): void;
|
|
40
49
|
onDiagramTypeChanged(newDiagramType: DiagramType): void;
|
|
41
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupByCountDiagramComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupByCountDiagramComponent, "ocx-group-by-count-diagram", never, { "sumKey": { "alias": "sumKey"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "type": { "alias": "type"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; "data": { "alias": "data"; "required": false; }; "columnType": { "alias": "columnType"; "required": false; }; "columnField": { "alias": "columnField"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupByCountDiagramComponent, "ocx-group-by-count-diagram", never, { "sumKey": { "alias": "sumKey"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "type": { "alias": "type"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; "data": { "alias": "data"; "required": false; }; "columnType": { "alias": "columnType"; "required": false; }; "columnField": { "alias": "columnField"; "required": false; }; "column": { "alias": "column"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
43
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/angular-accelerator",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^18.0.5",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"@angular/router": "^18.0.5",
|
|
12
12
|
"@ngx-translate/core": "^15.0.0",
|
|
13
13
|
"@ngneat/until-destroy": "^10.0.0",
|
|
14
|
-
"@onecx/integration-interface": "^5.
|
|
15
|
-
"@onecx/angular-integration-interface": "^5.
|
|
16
|
-
"@onecx/angular-remote-components": "^5.
|
|
17
|
-
"@onecx/angular-testing": "^5.
|
|
14
|
+
"@onecx/integration-interface": "^5.30.0",
|
|
15
|
+
"@onecx/angular-integration-interface": "^5.30.0",
|
|
16
|
+
"@onecx/angular-remote-components": "^5.30.0",
|
|
17
|
+
"@onecx/angular-testing": "^5.30.0",
|
|
18
18
|
"chart.js": "^4.4.3",
|
|
19
19
|
"d3-scale-chromatic": "^3.1.0",
|
|
20
20
|
"rxjs": "~7.8.1",
|