@onecx/angular-accelerator 7.1.0 → 7.3.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/index.d.ts CHANGED
@@ -188,6 +188,7 @@ declare class LoadingIndicatorDirective implements OnChanges {
188
188
  overlayFullPage: boolean;
189
189
  isLoaderSmall?: boolean | undefined;
190
190
  private componentRef;
191
+ private loaderElement;
191
192
  ngOnChanges(changes: SimpleChanges): void;
192
193
  private elementLoader;
193
194
  private toggleLoadingIndicator;
@@ -1055,7 +1056,7 @@ interface DiagramComponentState {
1055
1056
  activeDiagramType?: DiagramType;
1056
1057
  }
1057
1058
  declare class DiagramComponent implements OnInit, OnChanges {
1058
- private translateService;
1059
+ private readonly translateService;
1059
1060
  data: DiagramData[] | undefined;
1060
1061
  sumKey: string;
1061
1062
  /**
@@ -1064,6 +1065,7 @@ declare class DiagramComponent implements OnInit, OnChanges {
1064
1065
  * 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.
1065
1066
  */
1066
1067
  fillMissingColors: boolean;
1068
+ fullHeight: boolean;
1067
1069
  private _diagramType;
1068
1070
  selectedDiagramType: DiagramLayouts | undefined;
1069
1071
  chartType: 'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar';
@@ -1075,6 +1077,7 @@ declare class DiagramComponent implements OnInit, OnChanges {
1075
1077
  dataSelected: EventEmitter<any>;
1076
1078
  diagramTypeChanged: EventEmitter<DiagramType>;
1077
1079
  componentStateChanged: EventEmitter<DiagramComponentState>;
1080
+ get useFullHeight(): boolean;
1078
1081
  chartOptions: ChartOptions | undefined;
1079
1082
  chartData: ChartData | undefined;
1080
1083
  amountOfData: number | undefined | null;
@@ -1091,7 +1094,7 @@ declare class DiagramComponent implements OnInit, OnChanges {
1091
1094
  dataClicked(event: []): void;
1092
1095
  onDiagramTypeChanged(event: any): void;
1093
1096
  static ɵfac: i0.ɵɵFactoryDeclaration<DiagramComponent, never>;
1094
- 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>;
1097
+ static ɵcmp: i0.ɵɵComponentDeclaration<DiagramComponent, "ocx-diagram", never, { "data": { "alias": "data"; "required": false; }; "sumKey": { "alias": "sumKey"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "fullHeight": { "alias": "fullHeight"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; }, { "dataSelected": "dataSelected"; "diagramTypeChanged": "diagramTypeChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
1095
1098
  }
1096
1099
 
1097
1100
  type FilterViewDisplayMode = 'chips' | 'button';
@@ -1177,26 +1180,34 @@ declare class GroupByCountDiagramComponent implements OnInit {
1177
1180
  private translateService;
1178
1181
  sumKey: string;
1179
1182
  diagramType: DiagramType;
1183
+ fullHeight: boolean;
1180
1184
  /**
1181
1185
  * This property determines if diagram should generate the colors for the data that does not have any set.
1182
1186
  *
1183
- * 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.
1187
+ * Setting this property to false will result in using the provided colors only if every data item has one.
1188
+ * In the scenario where at least one item does not have a color set, diagram will generate all colors.
1184
1189
  */
1185
1190
  fillMissingColors: boolean;
1186
1191
  supportedDiagramTypes: DiagramType[];
1187
- private _data$;
1192
+ private readonly _allLabelKeys$;
1193
+ get allLabelKeys(): string[];
1194
+ set allLabelKeys(value: string[]);
1195
+ private readonly _showAllLabels$;
1196
+ get showAllLabels(): boolean;
1197
+ set showAllLabels(value: boolean);
1188
1198
  get data(): unknown[];
1189
1199
  set data(value: unknown[]);
1190
1200
  diagramData$: Observable<DiagramData[]> | undefined;
1191
- private _columnType$;
1201
+ private readonly _columnType$;
1202
+ private readonly _data$;
1192
1203
  get columnType(): ColumnType;
1193
1204
  set columnType(value: ColumnType);
1194
- private _columnField$;
1205
+ private readonly _columnField$;
1195
1206
  get columnField(): string;
1196
1207
  set columnField(value: string);
1197
1208
  get column(): DiagramColumn;
1198
1209
  set column(value: DiagramColumn);
1199
- private _colors$;
1210
+ private readonly _colors$;
1200
1211
  get colors(): Record<string, string>;
1201
1212
  set colors(value: Record<string, string>);
1202
1213
  dataSelected: EventEmitter<any>;
@@ -1206,7 +1217,7 @@ declare class GroupByCountDiagramComponent implements OnInit {
1206
1217
  dataClicked(event: any): void;
1207
1218
  onDiagramTypeChanged(newDiagramType: DiagramType): void;
1208
1219
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupByCountDiagramComponent, never>;
1209
- 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; }; "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>;
1220
+ static ɵcmp: i0.ɵɵComponentDeclaration<GroupByCountDiagramComponent, "ocx-group-by-count-diagram", never, { "sumKey": { "alias": "sumKey"; "required": false; }; "diagramType": { "alias": "diagramType"; "required": false; }; "fullHeight": { "alias": "fullHeight"; "required": false; }; "fillMissingColors": { "alias": "fillMissingColors"; "required": false; }; "supportedDiagramTypes": { "alias": "supportedDiagramTypes"; "required": false; }; "allLabelKeys": { "alias": "allLabelKeys"; "required": false; }; "showAllLabels": { "alias": "showAllLabels"; "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>;
1210
1221
  }
1211
1222
 
1212
1223
  type InteractiveDataViewComponentState = ColumnGroupSelectionComponentState & CustomGroupColumnSelectorComponentState & DataLayoutSelectionComponentState & DataListGridSortingComponentState & DataViewComponentState & FilterViewComponentState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/angular-accelerator",
3
- "version": "7.1.0",
3
+ "version": "7.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,18 +15,18 @@
15
15
  "@angular/router": "^20.0.0",
16
16
  "@ngx-translate/core": "^17.0.0",
17
17
  "@ngneat/until-destroy": "^10.0.0",
18
- "@onecx/integration-interface": "^7.1.0",
19
- "@onecx/accelerator": "^7.1.0",
20
- "@onecx/angular-integration-interface": "^7.1.0",
21
- "@onecx/angular-remote-components": "^7.1.0",
22
- "@onecx/angular-testing": "^7.1.0",
23
- "@onecx/angular-utils": "^7.1.0",
18
+ "@onecx/integration-interface": "^7.3.0",
19
+ "@onecx/accelerator": "^7.3.0",
20
+ "@onecx/angular-integration-interface": "^7.3.0",
21
+ "@onecx/angular-remote-components": "^7.3.0",
22
+ "@onecx/angular-testing": "^7.3.0",
23
+ "@onecx/angular-utils": "^7.3.0",
24
24
  "chart.js": "^4.4.3",
25
25
  "d3-scale-chromatic": "^3.1.0",
26
26
  "rxjs": "~7.8.1",
27
27
  "primeng": "^20.3.0",
28
28
  "@nx/devkit": "^22.0.2",
29
- "@onecx/nx-migration-utils": "^7.1.0"
29
+ "@onecx/nx-migration-utils": "^7.3.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0"
@@ -0,0 +1,48 @@
1
+ $overlay-bg-color: rgba(0, 0, 0, 0.5);
2
+ $loader-border-bottom-color: transparent;
3
+
4
+ /* You can add global styles to this file, and also import other style files */
5
+ @keyframes rotation {
6
+ 0% {
7
+ transform: rotate(0deg);
8
+ }
9
+ 100% {
10
+ transform: rotate(360deg);
11
+ }
12
+ }
13
+ .element-overlay {
14
+ &::before {
15
+ content: '';
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ background-color: $overlay-bg-color;
22
+ z-index: 1;
23
+ }
24
+ position: relative;
25
+ cursor: default;
26
+ pointer-events: none;
27
+ }
28
+ .loader {
29
+ width: 28px;
30
+ height: 28px;
31
+ border: 3px solid var(--primary-color);
32
+ border-bottom-color: $loader-border-bottom-color;
33
+ border-radius: 50%;
34
+ display: inline-block;
35
+ box-sizing: border-box;
36
+ animation: rotation 1s linear infinite;
37
+ position: absolute;
38
+ top: 50%;
39
+ left: 50%;
40
+ transform: translate(-50%, -50%);
41
+ z-index: 2;
42
+ &.loader-small {
43
+ width: 20px;
44
+ height: 20px;
45
+ top: 20%;
46
+ left: 45%;
47
+ }
48
+ }
@@ -132,7 +132,9 @@ declare class DiagramHarness extends ComponentHarness {
132
132
  getTotalNumberOfResults(): Promise<number | undefined>;
133
133
  getSumLabel(): Promise<string | undefined>;
134
134
  getDiagramTypeSelectButton(): Promise<_onecx_angular_testing.TestElement | null>;
135
+ getCanvasElement(): Promise<_onecx_angular_testing.TestElement | null>;
135
136
  getAllSelectionButtons(): Promise<_onecx_angular_testing.TestElement[]>;
137
+ getCanvasAriaLabel(): Promise<string | null>;
136
138
  }
137
139
 
138
140
  declare class FilterViewHarness extends ContentContainerComponentHarness {