@dative-gpi/foundation-shared-components 1.0.124 → 1.0.125
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.
|
@@ -205,31 +205,31 @@ export default defineComponent({
|
|
|
205
205
|
const items = [
|
|
206
206
|
{
|
|
207
207
|
id: EntityType.Model,
|
|
208
|
-
label: $tr("ui.
|
|
208
|
+
label: $tr("ui.common.models", "Models")
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
id: EntityType.Group,
|
|
212
|
-
label: $tr("ui.
|
|
212
|
+
label: $tr("ui.common.groups", "Groups")
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
id: EntityType.Location,
|
|
216
|
-
label: $tr("ui.
|
|
216
|
+
label: $tr("ui.common.locations", "Locations")
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
id: EntityType.Device,
|
|
220
|
-
label: $tr("ui.
|
|
220
|
+
label: $tr("ui.common.devices", "Devices")
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
id: EntityType.User,
|
|
224
|
-
label: $tr("ui.
|
|
224
|
+
label: $tr("ui.common.users", "Users")
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
id: EntityType.Dashboard,
|
|
228
|
-
label: $tr("ui.
|
|
228
|
+
label: $tr("ui.common.dashboards", "Dashboards")
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
id: EntityType.Folder,
|
|
232
|
-
label: $tr("ui.
|
|
232
|
+
label: $tr("ui.common.folders", "Folders")
|
|
233
233
|
}
|
|
234
234
|
];
|
|
235
235
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSAutocompleteField
|
|
3
|
-
:label="label ?? $tr('
|
|
3
|
+
:label="label ?? $tr('autocomplete.display-as.label','Display as')"
|
|
4
4
|
:items="displayAsItems"
|
|
5
5
|
:modelValue="modelValue"
|
|
6
6
|
@update:modelValue="$emit('update:modelValue', $event)"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.125",
|
|
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.125",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.125"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fe376a2d6846d6830925a36d0d7a54ec6e71a141"
|
|
39
39
|
}
|
package/tools/chartsTools.ts
CHANGED
|
@@ -112,7 +112,7 @@ export const displayAsLabel = (display: DisplayAs | number): string => {
|
|
|
112
112
|
switch (display) {
|
|
113
113
|
case DisplayAs.Bars: return $tr("ui.common.bars", "Bars");
|
|
114
114
|
case DisplayAs.Lines: return $tr("ui.common.lines", "Lines");
|
|
115
|
-
case DisplayAs.Points: return $tr("ui.common.
|
|
115
|
+
case DisplayAs.Points: return $tr("ui.common.points", "Points");
|
|
116
116
|
default: return $tr("ui.common.none", "None");
|
|
117
117
|
}
|
|
118
118
|
};
|
|
@@ -179,7 +179,7 @@ export const serieTypeLabel = (serieType: SerieType): string => {
|
|
|
179
179
|
case SerieType.Operation: return $tr("ui.common.operation", "Operation");
|
|
180
180
|
case SerieType.Planning: return $tr("ui.common.planning", "Planning");
|
|
181
181
|
case SerieType.ScatterPlot: return $tr("ui.common.scatter-plot", "Scatter plot");
|
|
182
|
-
case SerieType.Top: return $tr("ui.
|
|
182
|
+
case SerieType.Top: return $tr("ui.serie-type.top", "Top");
|
|
183
183
|
case SerieType.Bars: return $tr("ui.common.bars", "Bars");
|
|
184
184
|
case SerieType.StackedBars: return $tr("ui.common.stacked-bars", "Stacked bars");
|
|
185
185
|
case SerieType.Pie: return $tr("ui.common.pie", "Pie");
|
|
@@ -187,7 +187,7 @@ export const serieTypeLabel = (serieType: SerieType): string => {
|
|
|
187
187
|
case SerieType.Slider: return $tr("ui.common.slider", "Slider");
|
|
188
188
|
case SerieType.Gauge: return $tr("ui.common.gauge", "Gauge");
|
|
189
189
|
case SerieType.ScoreCard: return $tr("ui.common.score-card", "Score card");
|
|
190
|
-
case SerieType.Table: return $tr("ui.
|
|
190
|
+
case SerieType.Table: return $tr("ui.serie-type.table", "Table");
|
|
191
191
|
default: return "";
|
|
192
192
|
}
|
|
193
193
|
};
|
package/utils/sort.ts
CHANGED
package/utils/time.ts
CHANGED
|
@@ -5,13 +5,13 @@ import { TimeUnit } from "@dative-gpi/foundation-shared-domain/enums"
|
|
|
5
5
|
const { $tr } = useTranslationsProvider();
|
|
6
6
|
|
|
7
7
|
export const timeSteps = [
|
|
8
|
-
{ id: TimeUnit.Second, label: $tr("ui.
|
|
9
|
-
{ id: TimeUnit.Minute, label: $tr("ui.
|
|
10
|
-
{ id: TimeUnit.Hour, label: $tr("ui.
|
|
11
|
-
{ id: TimeUnit.Day, label: $tr("ui.
|
|
12
|
-
{ id: TimeUnit.Week, label: $tr("ui.
|
|
13
|
-
{ id: TimeUnit.Month, label: $tr("ui.
|
|
14
|
-
{ id: TimeUnit.Year, label: $tr("ui.
|
|
8
|
+
{ id: TimeUnit.Second, label: $tr("ui.common.second", "Second"), plural: $tr("ui.common.seconds", "Seconds") },
|
|
9
|
+
{ id: TimeUnit.Minute, label: $tr("ui.common.minute", "Minute"), plural: $tr("ui.common.minutes", "Minutes") },
|
|
10
|
+
{ id: TimeUnit.Hour, label: $tr("ui.common.hour", "Hour"), plural: $tr("ui.common.hours", "Hours") },
|
|
11
|
+
{ id: TimeUnit.Day, label: $tr("ui.common.day", "Day"), plural: $tr("ui.common.days", "Days") },
|
|
12
|
+
{ id: TimeUnit.Week, label: $tr("ui.common.week", "Week"), plural: $tr("ui.common.weeks", "Weeks") },
|
|
13
|
+
{ id: TimeUnit.Month, label: $tr("ui.common.month", "Month"), plural: $tr("ui.common.months", "Months") },
|
|
14
|
+
{ id: TimeUnit.Year, label: $tr("ui.common.year", "Year"), plural: $tr("ui.common.years", "Years") },
|
|
15
15
|
];
|
|
16
16
|
|
|
17
17
|
export const timeStepToString = (value: { value: number, unit: TimeUnit } | null): string => {
|
|
@@ -29,11 +29,11 @@ export const timeStepToString = (value: { value: number, unit: TimeUnit } | null
|
|
|
29
29
|
|
|
30
30
|
// TODO : remove everything below this line
|
|
31
31
|
export const timeScale: any[] = [
|
|
32
|
-
{ id: 1, label: $tr("ui.
|
|
33
|
-
{ id: 60, label: $tr("ui.
|
|
34
|
-
{ id: 3600, label: $tr("ui.
|
|
35
|
-
{ id: 86400, label: $tr("ui.
|
|
36
|
-
{ id: 604800, label: $tr("ui.
|
|
32
|
+
{ id: 1, label: $tr("ui.common.second", "Second"), plural: $tr("ui.common.seconds", "Seconds") },
|
|
33
|
+
{ id: 60, label: $tr("ui.common.minute", "Minute"), plural: $tr("ui.common.minutes", "Minutes") },
|
|
34
|
+
{ id: 3600, label: $tr("ui.common.hour", "Hour"), plural: $tr("ui.common.hours", "Hours") },
|
|
35
|
+
{ id: 86400, label: $tr("ui.common.day", "Day"), plural: $tr("ui.common.days", "Days") },
|
|
36
|
+
{ id: 604800, label: $tr("ui.common.week", "Week"), plural: $tr("ui.common.weeks", "Weeks") },
|
|
37
37
|
];
|
|
38
38
|
|
|
39
39
|
export const getTimeScaleIndex = (value: number): number => {
|