@dative-gpi/foundation-core-domain 1.0.137-widgetextensions → 1.0.137-widgetextensions2
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/dashboards/dashboardSettings.ts +24 -0
- package/models/dashboards/index.ts +1 -0
- package/models/widgetTemplates/widgetTemplateInfos.ts +4 -1
- package/models/widgets/index.ts +2 -1
- package/models/widgets/widgetDetails.ts +0 -1
- package/models/widgets/widgetInfos.ts +0 -6
- package/models/widgets/widgetInterface.ts +11 -0
- package/package.json +4 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
import type { CreateDashboardDatePresetDTO, CreateDashboardEntityPresetDTO, CreateDashboardVariableDTO, DashboardTranslationDTO, UpdateDashboardOrganisationDTO, UpdateDashboardOrganisationTypeDTO, UpdateDashboardShallowDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
|
|
4
|
+
export interface DashboardSettings {
|
|
5
|
+
folderId: string | null;
|
|
6
|
+
imageId: string | null;
|
|
7
|
+
image: string | null;
|
|
8
|
+
labelDefault: string;
|
|
9
|
+
locked: boolean;
|
|
10
|
+
code: string;
|
|
11
|
+
colors: string[];
|
|
12
|
+
icon: string;
|
|
13
|
+
tags: string[];
|
|
14
|
+
translations: DashboardTranslationDTO[];
|
|
15
|
+
entityPresetCode: string | null;
|
|
16
|
+
datePresetCode: string | null;
|
|
17
|
+
variableCode: string | null;
|
|
18
|
+
datePresets: CreateDashboardDatePresetDTO[];
|
|
19
|
+
entityPresets: CreateDashboardEntityPresetDTO[];
|
|
20
|
+
variables: CreateDashboardVariableDTO[];
|
|
21
|
+
scope: ApplicationScope;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type UpdateDashboardSettingsDTO = Omit<UpdateDashboardOrganisationDTO & UpdateDashboardOrganisationTypeDTO & UpdateDashboardShallowDTO, "widgets">;
|
|
@@ -17,6 +17,7 @@ const clean = <T>(meta: T): T => {
|
|
|
17
17
|
export class WidgetTemplateInfos {
|
|
18
18
|
id: string;
|
|
19
19
|
extensionId: string | null;
|
|
20
|
+
extensionHost: string | null;
|
|
20
21
|
label: string;
|
|
21
22
|
code: string;
|
|
22
23
|
icon: string;
|
|
@@ -28,7 +29,8 @@ export class WidgetTemplateInfos {
|
|
|
28
29
|
|
|
29
30
|
constructor(params: WidgetTemplateInfosDTO) {
|
|
30
31
|
this.id = params.id;
|
|
31
|
-
this.extensionId = params.extensionId
|
|
32
|
+
this.extensionId = params.extensionId ?? null;
|
|
33
|
+
this.extensionHost = params.extensionHost ?? null;
|
|
32
34
|
this.label = params.label;
|
|
33
35
|
this.code = params.code;
|
|
34
36
|
this.icon = params.icon;
|
|
@@ -43,6 +45,7 @@ export class WidgetTemplateInfos {
|
|
|
43
45
|
export interface WidgetTemplateInfosDTO {
|
|
44
46
|
id: string;
|
|
45
47
|
extensionId?: string;
|
|
48
|
+
extensionHost?: string;
|
|
46
49
|
label: string;
|
|
47
50
|
code: string;
|
|
48
51
|
icon: string;
|
package/models/widgets/index.ts
CHANGED
|
@@ -16,8 +16,6 @@ const clean = <T>(meta: T): T => {
|
|
|
16
16
|
export class WidgetInfos {
|
|
17
17
|
id: string;
|
|
18
18
|
templateId: string;
|
|
19
|
-
extensionId: string | null;
|
|
20
|
-
extensionHost: string | null;
|
|
21
19
|
hideBorders: boolean;
|
|
22
20
|
width: number;
|
|
23
21
|
height: number;
|
|
@@ -29,8 +27,6 @@ export class WidgetInfos {
|
|
|
29
27
|
constructor(params: WidgetInfosDTO) {
|
|
30
28
|
this.id = params.id;
|
|
31
29
|
this.templateId = params.templateId;
|
|
32
|
-
this.extensionId = params.extensionId || null;
|
|
33
|
-
this.extensionHost = params.extensionHost || null;
|
|
34
30
|
this.hideBorders = params.hideBorders;
|
|
35
31
|
this.width = params.width;
|
|
36
32
|
this.height = params.height;
|
|
@@ -44,8 +40,6 @@ export class WidgetInfos {
|
|
|
44
40
|
export interface WidgetInfosDTO {
|
|
45
41
|
id: string;
|
|
46
42
|
templateId: string;
|
|
47
|
-
extensionId?: string;
|
|
48
|
-
extensionHost?: string;
|
|
49
43
|
hideBorders: boolean;
|
|
50
44
|
width: number;
|
|
51
45
|
height: number;
|
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.137-
|
|
4
|
+
"version": "1.0.137-widgetextensions2",
|
|
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.137-
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.137-
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.137-widgetextensions2",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.137-widgetextensions2"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "cad1342d5c937276bcb3f03f852f273e8a182a9b"
|
|
17
17
|
}
|