@dative-gpi/foundation-core-domain 1.0.24 → 1.0.26
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { translate } from "@dative-gpi/foundation-shared-services/tools/translate";
|
|
2
3
|
|
|
3
4
|
import type { DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTranslation";
|
|
4
5
|
import { DashboardDatePresetTranslation } from "./dashboardDatePresetTranslation";
|
|
5
6
|
|
|
6
7
|
export class DashboardDatePresetInfos {
|
|
7
8
|
hiddenCode: string;
|
|
8
|
-
label: string;
|
|
9
9
|
labelDefault: string;
|
|
10
10
|
startDate: string;
|
|
11
11
|
endDate: string;
|
|
@@ -13,9 +13,12 @@ export class DashboardDatePresetInfos {
|
|
|
13
13
|
autoRefresh: AutoRefresh;
|
|
14
14
|
translations: DashboardDatePresetTranslation[];
|
|
15
15
|
|
|
16
|
+
get label() {
|
|
17
|
+
return translate(this.translations, t => t.label, this.labelDefault)
|
|
18
|
+
};
|
|
19
|
+
|
|
16
20
|
constructor(params: DashboardDatePresetInfosDTO) {
|
|
17
21
|
this.hiddenCode = params.hiddenCode;
|
|
18
|
-
this.label = params.label;
|
|
19
22
|
this.labelDefault = params.labelDefault;
|
|
20
23
|
this.startDate = params.startDate;
|
|
21
24
|
this.endDate = params.endDate;
|
|
@@ -27,7 +30,6 @@ export class DashboardDatePresetInfos {
|
|
|
27
30
|
|
|
28
31
|
export interface DashboardDatePresetInfosDTO {
|
|
29
32
|
hiddenCode: string;
|
|
30
|
-
label: string;
|
|
31
33
|
labelDefault: string;
|
|
32
34
|
startDate: string;
|
|
33
35
|
endDate: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { translate } from "@dative-gpi/foundation-shared-services/tools/translate";
|
|
2
|
+
|
|
1
3
|
import type { DashboardEntityPresetTranslationDTO } from "./dashboardEntityPresetTranslation";
|
|
2
4
|
import { DashboardEntityPresetTranslation } from "./dashboardEntityPresetTranslation";
|
|
3
5
|
import type { SelectedEntities } from "../enums/sharedEnums";
|
|
4
6
|
|
|
5
7
|
export class DashboardEntityPresetInfos {
|
|
6
8
|
hiddenCode: string;
|
|
7
|
-
label: string;
|
|
8
9
|
labelDefault: string;
|
|
9
10
|
singleEntity: boolean;
|
|
10
11
|
selectedEntities: SelectedEntities;
|
|
@@ -12,9 +13,12 @@ export class DashboardEntityPresetInfos {
|
|
|
12
13
|
entitiesIds: string[];
|
|
13
14
|
translations: DashboardEntityPresetTranslation[];
|
|
14
15
|
|
|
16
|
+
get label() {
|
|
17
|
+
return translate(this.translations, t => t.label, this.labelDefault)
|
|
18
|
+
};
|
|
19
|
+
|
|
15
20
|
constructor(params: DashboardEntityPresetInfosDTO) {
|
|
16
21
|
this.hiddenCode = params.hiddenCode;
|
|
17
|
-
this.label = params.label;
|
|
18
22
|
this.labelDefault = params.labelDefault;
|
|
19
23
|
this.singleEntity = params.singleEntity;
|
|
20
24
|
this.selectedEntities = params.selectedEntities;
|
|
@@ -26,7 +30,6 @@ export class DashboardEntityPresetInfos {
|
|
|
26
30
|
|
|
27
31
|
export interface DashboardEntityPresetInfosDTO {
|
|
28
32
|
hiddenCode: string;
|
|
29
|
-
label: string;
|
|
30
33
|
labelDefault: string;
|
|
31
34
|
singleEntity: boolean;
|
|
32
35
|
selectedEntities: SelectedEntities;
|
|
@@ -3,26 +3,28 @@ import type { DashboardVariableType } from "@dative-gpi/foundation-shared-domain
|
|
|
3
3
|
import { DashboardVariableTranslation, type DashboardVariableTranslationDTO } from "./dashboardVariableTranslation";
|
|
4
4
|
import { DashboardVariableValue, type DashboardVariableValueDTO } from "../dashboardVariableValues";
|
|
5
5
|
|
|
6
|
+
import { translate } from "@dative-gpi/foundation-shared-services/tools/translate";
|
|
7
|
+
|
|
6
8
|
export class DashboardVariableInfos {
|
|
7
9
|
hiddenCode: string;
|
|
8
10
|
variableType: DashboardVariableType;
|
|
9
|
-
label: string;
|
|
10
11
|
labelDefault: string;
|
|
11
12
|
code: string;
|
|
12
13
|
value: string;
|
|
13
|
-
defaultValue: string;
|
|
14
14
|
useOnlyAllowedValues: boolean;
|
|
15
15
|
allowedValues: DashboardVariableValue[];
|
|
16
16
|
translations: DashboardVariableTranslation[];
|
|
17
|
+
|
|
18
|
+
get label() {
|
|
19
|
+
return translate(this.translations, t => t.label, this.labelDefault)
|
|
20
|
+
};
|
|
17
21
|
|
|
18
22
|
constructor(params: DashboardVariableInfosDTO) {
|
|
19
23
|
this.hiddenCode = params.hiddenCode;
|
|
20
24
|
this.variableType = params.variableType;
|
|
21
|
-
this.label = params.label;
|
|
22
25
|
this.labelDefault = params.labelDefault;
|
|
23
26
|
this.code = params.code;
|
|
24
27
|
this.value = params.value;
|
|
25
|
-
this.defaultValue = params.defaultValue;
|
|
26
28
|
this.useOnlyAllowedValues = params.useOnlyAllowedValues;
|
|
27
29
|
this.allowedValues = params.allowedValues.map(dto => new DashboardVariableValue(dto));
|
|
28
30
|
this.translations = params.translations.map(t => new DashboardVariableTranslation(t));
|
|
@@ -32,11 +34,9 @@ export class DashboardVariableInfos {
|
|
|
32
34
|
export interface DashboardVariableInfosDTO {
|
|
33
35
|
hiddenCode: string;
|
|
34
36
|
variableType: DashboardVariableType;
|
|
35
|
-
label: string;
|
|
36
37
|
labelDefault: string;
|
|
37
38
|
code: string;
|
|
38
39
|
value: string;
|
|
39
|
-
defaultValue: string;
|
|
40
40
|
useOnlyAllowedValues: boolean;
|
|
41
41
|
allowedValues: DashboardVariableValueDTO[];
|
|
42
42
|
translations: DashboardVariableTranslationDTO[];
|
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.26",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.26",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.26"
|
|
14
15
|
},
|
|
15
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "55c73ec6624ef58f78303ce68256236984c83ca9"
|
|
16
17
|
}
|