@smartbit4all/ng-client 4.0.113 → 4.0.115
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/smart-chart/api/api/api.mjs +2 -0
- package/esm2022/lib/smart-chart/api/api.module.mjs +40 -0
- package/esm2022/lib/smart-chart/api/configuration.mjs +91 -0
- package/esm2022/lib/smart-chart/api/index.mjs +7 -0
- package/esm2022/lib/smart-chart/api/model/chartData.mjs +2 -0
- package/esm2022/lib/smart-chart/api/model/chartDescriptor.mjs +2 -0
- package/esm2022/lib/smart-chart/api/model/chartOrientation.mjs +16 -0
- package/esm2022/lib/smart-chart/api/model/chartType.mjs +21 -0
- package/esm2022/lib/smart-chart/api/model/chartValue.mjs +13 -0
- package/esm2022/lib/smart-chart/api/model/diagramDataContainer.mjs +2 -0
- package/esm2022/lib/smart-chart/api/model/diagramDataItem.mjs +13 -0
- package/esm2022/lib/smart-chart/api/model/diagramDataSet.mjs +2 -0
- package/esm2022/lib/smart-chart/api/model/diagramDataSetConstructionInstruction.mjs +13 -0
- package/esm2022/lib/smart-chart/api/model/diagramDescriptor.mjs +13 -0
- package/esm2022/lib/smart-chart/api/model/diagramUiModel.mjs +2 -0
- package/esm2022/lib/smart-chart/api/model/models.mjs +13 -0
- package/esm2022/lib/smart-chart/api/model/pieChartLegendPosition.mjs +16 -0
- package/esm2022/lib/smart-chart/api/param.mjs +2 -0
- package/esm2022/lib/smart-chart/api/variables.mjs +9 -0
- package/esm2022/lib/smart-chart/default-chart-options.provider.mjs +233 -0
- package/esm2022/lib/smart-chart/projects.mjs +7 -0
- package/esm2022/lib/smart-chart/smart-chart.component.mjs +96 -0
- package/esm2022/lib/smart-chart/smart-chart.module.mjs +39 -0
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +3 -3
- package/esm2022/lib/view-context/smart-view-context.module.mjs +10 -4
- package/esm2022/projects.mjs +2 -1
- package/fesm2022/smartbit4all-ng-client.mjs +472 -6
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-chart/api/api/api.d.ts +1 -0
- package/lib/smart-chart/api/api.module.d.ts +11 -0
- package/lib/smart-chart/api/configuration.d.ts +104 -0
- package/lib/smart-chart/api/index.d.ts +6 -0
- package/lib/smart-chart/api/model/chartData.d.ts +16 -0
- package/lib/smart-chart/api/model/chartDescriptor.d.ts +37 -0
- package/lib/smart-chart/api/model/chartOrientation.d.ts +16 -0
- package/lib/smart-chart/api/model/chartType.d.ts +21 -0
- package/lib/smart-chart/api/model/chartValue.d.ts +16 -0
- package/lib/smart-chart/api/model/diagramDataContainer.d.ts +20 -0
- package/lib/smart-chart/api/model/diagramDataItem.d.ts +24 -0
- package/lib/smart-chart/api/model/diagramDataSet.d.ts +21 -0
- package/lib/smart-chart/api/model/diagramDataSetConstructionInstruction.d.ts +21 -0
- package/lib/smart-chart/api/model/diagramDescriptor.d.ts +49 -0
- package/lib/smart-chart/api/model/diagramUiModel.d.ts +18 -0
- package/lib/smart-chart/api/model/models.d.ts +12 -0
- package/lib/smart-chart/api/model/pieChartLegendPosition.d.ts +16 -0
- package/lib/smart-chart/api/param.d.ts +37 -0
- package/lib/smart-chart/api/variables.d.ts +8 -0
- package/lib/smart-chart/default-chart-options.provider.d.ts +31 -0
- package/lib/smart-chart/projects.d.ts +3 -0
- package/lib/smart-chart/smart-chart.component.d.ts +19 -0
- package/lib/smart-chart/smart-chart.module.d.ts +11 -0
- package/lib/view-context/smart-view-context.module.d.ts +2 -1
- package/package.json +1 -1
- package/projects.d.ts +1 -0
- package/smartbit4all-ng-client-4.0.115.tgz +0 -0
- package/smartbit4all-ng-client-4.0.113.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const APIS: never[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ApiModule {
|
|
6
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
7
|
+
constructor(parentModule: ApiModule, http: HttpClient);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Param } from './param';
|
|
3
|
+
export interface ConfigurationParameters {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
6
|
+
*/
|
|
7
|
+
apiKeys?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
username?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
14
|
+
*/
|
|
15
|
+
accessToken?: string | (() => string);
|
|
16
|
+
basePath?: string;
|
|
17
|
+
withCredentials?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Takes care of encoding query- and form-parameters.
|
|
20
|
+
*/
|
|
21
|
+
encoder?: HttpParameterCodec;
|
|
22
|
+
/**
|
|
23
|
+
* Override the default method for encoding path parameters in various
|
|
24
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
25
|
+
* <p>
|
|
26
|
+
* See {@link README.md} for more details
|
|
27
|
+
* </p>
|
|
28
|
+
*/
|
|
29
|
+
encodeParam?: (param: Param) => string;
|
|
30
|
+
/**
|
|
31
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
32
|
+
* document. They should map to the value used for authentication
|
|
33
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
34
|
+
*/
|
|
35
|
+
credentials?: {
|
|
36
|
+
[key: string]: string | (() => string | undefined);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare class Configuration {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
apiKeys?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
username?: string;
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
50
|
+
*/
|
|
51
|
+
accessToken?: string | (() => string);
|
|
52
|
+
basePath?: string;
|
|
53
|
+
withCredentials?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Takes care of encoding query- and form-parameters.
|
|
56
|
+
*/
|
|
57
|
+
encoder?: HttpParameterCodec;
|
|
58
|
+
/**
|
|
59
|
+
* Encoding of various path parameter
|
|
60
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
61
|
+
* <p>
|
|
62
|
+
* See {@link README.md} for more details
|
|
63
|
+
* </p>
|
|
64
|
+
*/
|
|
65
|
+
encodeParam: (param: Param) => string;
|
|
66
|
+
/**
|
|
67
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
68
|
+
* document. They should map to the value used for authentication
|
|
69
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
70
|
+
*/
|
|
71
|
+
credentials: {
|
|
72
|
+
[key: string]: string | (() => string | undefined);
|
|
73
|
+
};
|
|
74
|
+
constructor(configurationParameters?: ConfigurationParameters);
|
|
75
|
+
/**
|
|
76
|
+
* Select the correct content-type to use for a request.
|
|
77
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
78
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
79
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
80
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
81
|
+
*/
|
|
82
|
+
selectHeaderContentType(contentTypes: string[]): string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Select the correct accept content-type to use for a request.
|
|
85
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
86
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
87
|
+
* @param accepts - the array of content types that are available for selection.
|
|
88
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
89
|
+
*/
|
|
90
|
+
selectHeaderAccept(accepts: string[]): string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Check if the given MIME is a JSON MIME.
|
|
93
|
+
* JSON MIME examples:
|
|
94
|
+
* application/json
|
|
95
|
+
* application/json; charset=UTF8
|
|
96
|
+
* APPLICATION/JSON
|
|
97
|
+
* application/vnd.company+json
|
|
98
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
99
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
100
|
+
*/
|
|
101
|
+
isJsonMime(mime: string): boolean;
|
|
102
|
+
lookupCredential(key: string): string | undefined;
|
|
103
|
+
private defaultEncodeParam;
|
|
104
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChartValue } from './chartValue';
|
|
13
|
+
export interface ChartData {
|
|
14
|
+
uri?: string;
|
|
15
|
+
chartValues: Array<ChartValue>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PieChartLegendPosition } from './pieChartLegendPosition';
|
|
13
|
+
import { ChartType } from './chartType';
|
|
14
|
+
import { ChartOrientation } from './chartOrientation';
|
|
15
|
+
export interface ChartDescriptor {
|
|
16
|
+
uri?: string;
|
|
17
|
+
type: ChartType;
|
|
18
|
+
xAxisLabel?: string;
|
|
19
|
+
yAxisLabel?: string;
|
|
20
|
+
showXAxisLabel?: boolean;
|
|
21
|
+
showYAxisLabel?: boolean;
|
|
22
|
+
roundEdges?: boolean;
|
|
23
|
+
showGridLines?: boolean;
|
|
24
|
+
showDataLabel?: boolean;
|
|
25
|
+
orientation?: ChartOrientation;
|
|
26
|
+
showLegend?: boolean;
|
|
27
|
+
legendPosition?: PieChartLegendPosition;
|
|
28
|
+
explodeCicles?: boolean;
|
|
29
|
+
doughnut?: boolean;
|
|
30
|
+
legendTitle?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom filter object attachable with this uri.
|
|
33
|
+
*/
|
|
34
|
+
filterUri?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace ChartDescriptor {
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type ChartOrientation = 'Horizontal' | 'Vertical';
|
|
13
|
+
export declare const ChartOrientation: {
|
|
14
|
+
Horizontal: ChartOrientation;
|
|
15
|
+
Vertical: ChartOrientation;
|
|
16
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type ChartType = 'BarChart' | 'GroupedBarChart' | 'StackedBarChart' | 'NormalizedBarChart' | 'PieChart' | 'AdvancedPieChart' | 'PieGrid';
|
|
13
|
+
export declare const ChartType: {
|
|
14
|
+
BarChart: ChartType;
|
|
15
|
+
GroupedBarChart: ChartType;
|
|
16
|
+
StackedBarChart: ChartType;
|
|
17
|
+
NormalizedBarChart: ChartType;
|
|
18
|
+
PieChart: ChartType;
|
|
19
|
+
AdvancedPieChart: ChartType;
|
|
20
|
+
PieGrid: ChartType;
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ChartValue {
|
|
13
|
+
name: string;
|
|
14
|
+
value?: object;
|
|
15
|
+
series: Array<ChartValue>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DiagramDataSet } from './diagramDataSet';
|
|
13
|
+
/**
|
|
14
|
+
* Contains sets of data for a diagram.
|
|
15
|
+
*/
|
|
16
|
+
export interface DiagramDataContainer {
|
|
17
|
+
uri?: string;
|
|
18
|
+
items: Array<DiagramDataSet>;
|
|
19
|
+
labels: Array<string>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Contains an items data, based on the type of the diagram.
|
|
14
|
+
*/
|
|
15
|
+
export interface DiagramDataItem {
|
|
16
|
+
label?: string;
|
|
17
|
+
xValue?: number;
|
|
18
|
+
yValue?: number;
|
|
19
|
+
/**
|
|
20
|
+
* This property specifies the radius of each bubble in a bubble chart. It is used to determine the size of the bubbles relative to their data values.
|
|
21
|
+
*/
|
|
22
|
+
rValue?: number;
|
|
23
|
+
itemColor?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DiagramDataItem } from './diagramDataItem';
|
|
13
|
+
export interface DiagramDataSet {
|
|
14
|
+
/**
|
|
15
|
+
* The type can be set specifically for the dataset. This allows the dataset to be rendered as the specified type, while other datasets in the diagram remain rendered as the basic chart type. For example, you can render one dataset as a \'line\' type in a \'bar\' chart.
|
|
16
|
+
*/
|
|
17
|
+
dataSetType?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
dataSetcolor?: string;
|
|
20
|
+
items: Array<DiagramDataItem>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface DiagramDataSetConstructionInstruction {
|
|
13
|
+
xValuePath?: Array<string>;
|
|
14
|
+
yValuePath?: Array<string>;
|
|
15
|
+
rValuePath?: Array<string>;
|
|
16
|
+
labelValuePath?: Array<string>;
|
|
17
|
+
colorValuePath?: Array<string>;
|
|
18
|
+
loadLatest?: boolean;
|
|
19
|
+
dataSetLabel?: string;
|
|
20
|
+
dataSetType?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A descriptor for the diagram.
|
|
14
|
+
*/
|
|
15
|
+
export interface DiagramDescriptor {
|
|
16
|
+
uri?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The type of the diagram.
|
|
19
|
+
*/
|
|
20
|
+
diagramType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the starting point for rendering the chart\'s X-axis. For example, if the minimum X value in the dataset is -30 and this property is set to -35, an extra \"padding\" of 5 units will be added below the lowest data point.
|
|
23
|
+
*/
|
|
24
|
+
diagramMinX?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the ending point for rendering the chart\'s X-axis. For instance, if the maximum X value in the dataset is 30 and this property is set to 35, an additional \"padding\" of 5 units will be added above the highest data point.
|
|
27
|
+
*/
|
|
28
|
+
diagramMaxX?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the starting point for rendering the chart\'s Y-axis. For example, if the minimum Y value in the dataset is -30 and this property is set to -35, an extra \"padding\" of 5 units will be added below the lowest data point.
|
|
31
|
+
*/
|
|
32
|
+
diagramMinY?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the ending point for rendering the chart\'s Y-axis. For instance, if the maximum Y value in the dataset is 30 and this property is set to 35, an additional \"padding\" of 5 units will be added above the highest data point.
|
|
35
|
+
*/
|
|
36
|
+
diagramMaxY?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether the labels on the X-Axis are displayed on the chart. Set to `true` to show the labels, or `false` to hide them.
|
|
39
|
+
*/
|
|
40
|
+
showLabelsForXAxis?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Determines whether the labels on the Y-Axis are displayed on the chart. Set to `true` to show the labels, or `false` to hide them.
|
|
43
|
+
*/
|
|
44
|
+
showLabelsForYAxis?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Determines whether the legend for the chart is displayed. Set to `true` to show the legend, or `false` to hide it.
|
|
47
|
+
*/
|
|
48
|
+
showLegendForChart?: boolean;
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { DiagramDescriptor } from './diagramDescriptor';
|
|
13
|
+
import { DiagramDataContainer } from './diagramDataContainer';
|
|
14
|
+
export interface DiagramUiModel {
|
|
15
|
+
uri?: string;
|
|
16
|
+
Descriptor?: DiagramDescriptor;
|
|
17
|
+
DiagramData?: DiagramDataContainer;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './chartData';
|
|
2
|
+
export * from './chartDescriptor';
|
|
3
|
+
export * from './chartOrientation';
|
|
4
|
+
export * from './chartType';
|
|
5
|
+
export * from './chartValue';
|
|
6
|
+
export * from './diagramDataContainer';
|
|
7
|
+
export * from './diagramDataItem';
|
|
8
|
+
export * from './diagramDataSet';
|
|
9
|
+
export * from './diagramDataSetConstructionInstruction';
|
|
10
|
+
export * from './diagramDescriptor';
|
|
11
|
+
export * from './diagramUiModel';
|
|
12
|
+
export * from './pieChartLegendPosition';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chart API
|
|
3
|
+
* API for consume charts.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type PieChartLegendPosition = 'right' | 'below';
|
|
13
|
+
export declare const PieChartLegendPosition: {
|
|
14
|
+
Right: PieChartLegendPosition;
|
|
15
|
+
Below: PieChartLegendPosition;
|
|
16
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard parameter styles defined by OpenAPI spec
|
|
3
|
+
*/
|
|
4
|
+
export type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
5
|
+
/**
|
|
6
|
+
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
|
7
|
+
*/
|
|
8
|
+
export type ParamStyle = StandardParamStyle | string;
|
|
9
|
+
/**
|
|
10
|
+
* Standard parameter locations defined by OpenAPI spec
|
|
11
|
+
*/
|
|
12
|
+
export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
13
|
+
/**
|
|
14
|
+
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
15
|
+
*/
|
|
16
|
+
export type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
|
|
17
|
+
/**
|
|
18
|
+
* Standard {@link DataType}s plus your own types/classes.
|
|
19
|
+
*/
|
|
20
|
+
export type DataType = StandardDataType | string;
|
|
21
|
+
/**
|
|
22
|
+
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
23
|
+
*/
|
|
24
|
+
export type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
25
|
+
export type DataFormat = StandardDataFormat | string;
|
|
26
|
+
/**
|
|
27
|
+
* The parameter to encode.
|
|
28
|
+
*/
|
|
29
|
+
export interface Param {
|
|
30
|
+
name: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
in: ParamLocation;
|
|
33
|
+
style: ParamStyle;
|
|
34
|
+
explode: boolean;
|
|
35
|
+
dataType: DataType;
|
|
36
|
+
dataFormat: DataFormat | undefined;
|
|
37
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DiagramDataContainer } from './api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const CUSTOM_CHART_OPTIONS: InjectionToken<ChartJsFactory>;
|
|
5
|
+
export interface ChartJsFactory {
|
|
6
|
+
readonly chartType: string;
|
|
7
|
+
readonly chartJsType: string;
|
|
8
|
+
createOptions(chartData: DiagramDataContainer): any;
|
|
9
|
+
transformData(chartData: DiagramDataContainer): any;
|
|
10
|
+
}
|
|
11
|
+
export declare function transformDataToBasicDataSets(chartData: DiagramDataContainer): any;
|
|
12
|
+
export declare function transformDataToBarLikeDataSet(chartData: DiagramDataContainer): any;
|
|
13
|
+
export declare function transformDataToScatter(chartData: DiagramDataContainer): any;
|
|
14
|
+
export declare function transformDataToBubble(chartData: DiagramDataContainer): any;
|
|
15
|
+
export declare const barChart: ChartJsFactory;
|
|
16
|
+
export declare const horizontalBarChart: ChartJsFactory;
|
|
17
|
+
export declare const radarChart: ChartJsFactory;
|
|
18
|
+
export declare const stackedBarChart: ChartJsFactory;
|
|
19
|
+
export declare const pieChart: ChartJsFactory;
|
|
20
|
+
export declare const doughnutChart: ChartJsFactory;
|
|
21
|
+
export declare const scatterChart: ChartJsFactory;
|
|
22
|
+
export declare const bubbleChart: ChartJsFactory;
|
|
23
|
+
export declare const multiAxisLineChart: ChartJsFactory;
|
|
24
|
+
export declare const polarAreaChart: ChartJsFactory;
|
|
25
|
+
export declare class DefaultChartOptionsProvider {
|
|
26
|
+
private readonly factoriesByType;
|
|
27
|
+
constructor(factories: ChartJsFactory[] | undefined);
|
|
28
|
+
getFactory(chartType: string): ChartJsFactory;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultChartOptionsProvider, [{ optional: true; }]>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultChartOptionsProvider>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefaultChartOptionsProvider } from './default-chart-options.provider';
|
|
2
|
+
import { DiagramUiModel } from './api';
|
|
3
|
+
import { ComponentLibrary } from '../view-context/utility/componentLibrary';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartChartComponent {
|
|
6
|
+
private chartOptionProvider;
|
|
7
|
+
compLib: ComponentLibrary;
|
|
8
|
+
diagramUiModel: DiagramUiModel;
|
|
9
|
+
options?: any;
|
|
10
|
+
data: any;
|
|
11
|
+
type: any;
|
|
12
|
+
componentLibrary: typeof ComponentLibrary;
|
|
13
|
+
constructor(chartOptionProvider: DefaultChartOptionsProvider, compLib: ComponentLibrary);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private deepMerge;
|
|
16
|
+
private convertBackendOptions;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartChartComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartChartComponent, "smart-chart", never, { "diagramUiModel": { "alias": "diagramUiModel"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders, Provider } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./smart-chart.component";
|
|
4
|
+
import * as i2 from "@angular/platform-browser";
|
|
5
|
+
import * as i3 from "primeng/chart";
|
|
6
|
+
export declare class SmartChartModule {
|
|
7
|
+
static forRoot(providers: Provider[]): ModuleWithProviders<SmartChartModule>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartChartModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartChartModule, [typeof i1.SmartChartComponent], [typeof i2.BrowserModule, typeof i3.ChartModule], [typeof i1.SmartChartComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartChartModule>;
|
|
11
|
+
}
|
|
@@ -57,8 +57,9 @@ import * as i55 from "primeng/dynamicdialog";
|
|
|
57
57
|
import * as i56 from "primeng/fileupload";
|
|
58
58
|
import * as i57 from "primeng/chips";
|
|
59
59
|
import * as i58 from "primeng/calendar";
|
|
60
|
+
import * as i59 from "../smart-chart/smart-chart.module";
|
|
60
61
|
export declare class SmartViewContextModule {
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartViewContextModule, never>;
|
|
62
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartViewContextModule, [typeof i1.MessageDialogComponent, typeof i2.SmartViewContextErrorDialogComponent, typeof i3.SmartViewRedirect, typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i6.UiActionConfirmDialogComponent, typeof i7.UiActionFileUploadDialogComponent, typeof i8.InvalidFieldsSnackBarComponent, typeof i9.SmartformComponent, typeof i10.UiActionDialogButtonComponent, typeof i11.SmartformwidgetComponent, typeof i12.SmartfileuploaderComponent, typeof i13.TrackCapsDirective, typeof i14.ComparableDropdownDirective, typeof i15.ComparableMultiselectDirective, typeof i16.LargeFileSnackBarComponent, typeof i17.SortableWidgetComponent, typeof i18.SmartMonthPickerComponent, typeof i19.HighlightPipe], [typeof i20.CommonModule, typeof i21.HttpClientModule, typeof i22.MatCommonModule, typeof i23.MatButtonModule, typeof i24.ButtonModule, typeof i25.MatIconModule, typeof i26.MatSnackBarModule, typeof i27.SmartIconModule, typeof i28.MatTooltipModule, typeof i29.SharedModule, typeof i30.SharedModule, typeof i31.BrowserModule, typeof i32.MatChipsModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule, typeof i34.MatFormFieldModule, typeof i35.MatCheckboxModule, typeof i36.MatSelectModule, typeof i37.MatInputModule, typeof i38.MatDatepickerModule, typeof i39.MatMomentDateModule, typeof i40.MatRadioModule, typeof i41.MatSlideToggleModule, typeof i42.MatAutocompleteModule, typeof i43.QuillModule, typeof i44.DragDropModule, typeof i45.YouTubePlayerModule, typeof i46.InputTextModule, typeof i47.DropdownModule, typeof i48.MultiSelectModule, typeof i33.FormsModule, typeof i49.InputSwitchModule, typeof i50.InputNumberModule, typeof i51.InputTextareaModule, typeof i52.ImageModule, typeof i53.FloatLabelModule, typeof i20.CommonModule, typeof i54.ToastModule, typeof i55.DynamicDialogModule, typeof i56.FileUploadModule, typeof i57.ChipsModule, typeof i58.CalendarModule], [typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i9.SmartformComponent, typeof i11.SmartformwidgetComponent, typeof i10.UiActionDialogButtonComponent, typeof i12.SmartfileuploaderComponent, typeof i19.HighlightPipe, typeof i14.ComparableDropdownDirective, typeof i15.ComparableMultiselectDirective]>;
|
|
63
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartViewContextModule, [typeof i1.MessageDialogComponent, typeof i2.SmartViewContextErrorDialogComponent, typeof i3.SmartViewRedirect, typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i6.UiActionConfirmDialogComponent, typeof i7.UiActionFileUploadDialogComponent, typeof i8.InvalidFieldsSnackBarComponent, typeof i9.SmartformComponent, typeof i10.UiActionDialogButtonComponent, typeof i11.SmartformwidgetComponent, typeof i12.SmartfileuploaderComponent, typeof i13.TrackCapsDirective, typeof i14.ComparableDropdownDirective, typeof i15.ComparableMultiselectDirective, typeof i16.LargeFileSnackBarComponent, typeof i17.SortableWidgetComponent, typeof i18.SmartMonthPickerComponent, typeof i19.HighlightPipe], [typeof i20.CommonModule, typeof i21.HttpClientModule, typeof i22.MatCommonModule, typeof i23.MatButtonModule, typeof i24.ButtonModule, typeof i25.MatIconModule, typeof i26.MatSnackBarModule, typeof i27.SmartIconModule, typeof i28.MatTooltipModule, typeof i29.SharedModule, typeof i30.SharedModule, typeof i31.BrowserModule, typeof i32.MatChipsModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule, typeof i34.MatFormFieldModule, typeof i35.MatCheckboxModule, typeof i36.MatSelectModule, typeof i37.MatInputModule, typeof i38.MatDatepickerModule, typeof i39.MatMomentDateModule, typeof i40.MatRadioModule, typeof i41.MatSlideToggleModule, typeof i42.MatAutocompleteModule, typeof i43.QuillModule, typeof i44.DragDropModule, typeof i45.YouTubePlayerModule, typeof i46.InputTextModule, typeof i47.DropdownModule, typeof i48.MultiSelectModule, typeof i33.FormsModule, typeof i49.InputSwitchModule, typeof i50.InputNumberModule, typeof i51.InputTextareaModule, typeof i52.ImageModule, typeof i53.FloatLabelModule, typeof i20.CommonModule, typeof i54.ToastModule, typeof i55.DynamicDialogModule, typeof i56.FileUploadModule, typeof i57.ChipsModule, typeof i58.CalendarModule, typeof i59.SmartChartModule], [typeof i4.UiActionToolbarComponent, typeof i5.UiActionInputDialogComponent, typeof i9.SmartformComponent, typeof i11.SmartformwidgetComponent, typeof i10.UiActionDialogButtonComponent, typeof i12.SmartfileuploaderComponent, typeof i19.HighlightPipe, typeof i14.ComparableDropdownDirective, typeof i15.ComparableMultiselectDirective, typeof i59.SmartChartModule]>;
|
|
63
64
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartViewContextModule>;
|
|
64
65
|
}
|
package/package.json
CHANGED
package/projects.d.ts
CHANGED
|
Binary file
|
|
Binary file
|