@dative-gpi/foundation-core-domain 1.0.139-widgethiddencode → 1.0.140-widgetextension
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/models/dashboardShallows/dashboardShallowDetails.ts +5 -5
- package/models/{dashboardShallowWidgets/dashboardShallowWidgetDetails.ts → dashboardWidgetOverrides/dashboardWidgetOverrideDetails.ts} +1 -1
- package/models/{dashboardShallowWidgets/dashboardShallowWidgetInfos.ts → dashboardWidgetOverrides/dashboardWidgetOverrideInfos.ts} +3 -3
- package/models/dashboardWidgetOverrides/index.ts +2 -0
- package/models/index.ts +1 -1
- package/package.json +4 -4
- package/models/dashboardShallowWidgets/index.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CreateDashboardShallowEntityPresetDTO, DashboardShallowEntityPresetInfos, type DashboardShallowEntityPresetInfosDTO } from "../dashboardShallowEntityPresets";
|
|
2
2
|
import { type CreateDashboardShallowDatePresetDTO, DashboardShallowDatePresetInfos, type DashboardShallowDatePresetInfosDTO } from "../dashboardShallowDatePresets";
|
|
3
3
|
import { type CreateDashboardShallowVariableDTO, DashboardShallowVariableInfos, type DashboardShallowVariableInfosDTO } from "../dashboardShallowVariables";
|
|
4
|
-
import { type
|
|
4
|
+
import { type CreateDashboardWidgetOverrideDTO, DashboardWidgetOverrideInfos, type DashboardWidgetOverrideInfosDTO } from "../dashboardWidgetOverrides";
|
|
5
5
|
import { DashboardEntityPresetInfos, type DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
6
6
|
import { DashboardDatePresetInfos, type DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
7
7
|
import { DashboardVariableInfos, type DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
@@ -26,7 +26,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
26
26
|
overrideDatePresets: DashboardShallowDatePresetInfos[];
|
|
27
27
|
overrideEntityPresets: DashboardShallowEntityPresetInfos[];
|
|
28
28
|
overrideVariables: DashboardShallowVariableInfos[];
|
|
29
|
-
overrideWidgets:
|
|
29
|
+
overrideWidgets: DashboardWidgetOverrideInfos[];
|
|
30
30
|
|
|
31
31
|
get datePresets() : DashboardDatePresetInfos[] {
|
|
32
32
|
return this.defaultDatePresets.map(d => {
|
|
@@ -66,7 +66,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
66
66
|
this.overrideDatePresets = params.overrideDatePresets.map(dto => new DashboardShallowDatePresetInfos(dto));
|
|
67
67
|
this.overrideEntityPresets = params.overrideEntityPresets.map(dto => new DashboardShallowEntityPresetInfos(dto));
|
|
68
68
|
this.overrideVariables = params.overrideVariables.map(dto => new DashboardShallowVariableInfos(dto));
|
|
69
|
-
this.overrideWidgets = params.overrideWidgets.map(dto => new
|
|
69
|
+
this.overrideWidgets = params.overrideWidgets.map(dto => new DashboardWidgetOverrideInfos(dto));
|
|
70
70
|
|
|
71
71
|
this.entityPresetCode = params.entityPresetCode;
|
|
72
72
|
this.datePresetCode = params.datePresetCode;
|
|
@@ -84,7 +84,7 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
|
|
|
84
84
|
overrideDatePresets: DashboardShallowDatePresetInfosDTO[];
|
|
85
85
|
overrideEntityPresets: DashboardShallowEntityPresetInfosDTO[];
|
|
86
86
|
overrideVariables: DashboardShallowVariableInfosDTO[];
|
|
87
|
-
overrideWidgets:
|
|
87
|
+
overrideWidgets: DashboardWidgetOverrideInfosDTO[];
|
|
88
88
|
translations: DashboardTranslationDTO[];
|
|
89
89
|
dashboardId: string;
|
|
90
90
|
scope: number;
|
|
@@ -113,7 +113,7 @@ export interface UpdateDashboardShallowDTO {
|
|
|
113
113
|
overrideDatePresets: CreateDashboardShallowDatePresetDTO[];
|
|
114
114
|
overrideEntityPresets: CreateDashboardShallowEntityPresetDTO[];
|
|
115
115
|
overrideVariables: CreateDashboardShallowVariableDTO[];
|
|
116
|
-
overrideWidgets:
|
|
116
|
+
overrideWidgets: CreateDashboardWidgetOverrideDTO[];
|
|
117
117
|
translations: DashboardTranslationDTO[];
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -14,17 +14,17 @@ const clean = <T>(meta: T): T => {
|
|
|
14
14
|
return newMeta;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class
|
|
17
|
+
export class DashboardWidgetOverrideInfos {
|
|
18
18
|
hiddenCode: string;
|
|
19
19
|
meta: { [key: string]: string };
|
|
20
20
|
|
|
21
|
-
constructor(params:
|
|
21
|
+
constructor(params: DashboardWidgetOverrideInfosDTO) {
|
|
22
22
|
this.hiddenCode = params.hiddenCode;
|
|
23
23
|
this.meta = clean(params.meta);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export interface
|
|
27
|
+
export interface DashboardWidgetOverrideInfosDTO {
|
|
28
28
|
hiddenCode: string;
|
|
29
29
|
meta: { [key: string]: string };
|
|
30
30
|
}
|
package/models/index.ts
CHANGED
|
@@ -19,7 +19,7 @@ export * from "./dashboardShallowDatePresets"; // No service
|
|
|
19
19
|
export * from "./dashboardShallowEntityPresets"; // No service
|
|
20
20
|
export * from "./dashboardShallows";
|
|
21
21
|
export * from "./dashboardShallowVariables"; // No service
|
|
22
|
-
export * from "./
|
|
22
|
+
export * from "./dashboardWidgetOverrides"; // No service
|
|
23
23
|
export * from "./dashboardVariables"; // No service
|
|
24
24
|
export * from "./dashboardVariableValues"; // No service
|
|
25
25
|
export * from "./dataCategories";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.140-widgetextension",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.140-widgetextension",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.140-widgetextension"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "c96ac75503470baa6c4eae4c5fa6c07dff67436b"
|
|
17
17
|
}
|