@dative-gpi/foundation-shared-components 1.0.122 → 1.0.124
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/components/FSCalendar.vue +1 -1
- package/components/FSCalendarTwin.vue +1 -1
- package/components/FSClock.vue +2 -2
- package/components/FSDialogFormBody.vue +3 -3
- package/components/FSDialogMultiFormBody.vue +4 -4
- package/components/FSDialogRemove.vue +1 -1
- package/components/FSDialogSubmit.vue +2 -2
- package/components/agenda/FSAgendaDialogCalendar.vue +1 -1
- package/components/autocompletes/FSAutoCompleteAddress.vue +1 -1
- package/components/autocompletes/FSAutocompleteLanguage.vue +1 -1
- package/components/autocompletes/FSAutocompleteTimeZone.vue +1 -1
- package/components/buttons/FSButtonAdd.vue +1 -1
- package/components/buttons/FSButtonAddLabel.vue +1 -1
- package/components/buttons/FSButtonCancel.vue +1 -1
- package/components/buttons/FSButtonCancelLabel.vue +1 -1
- package/components/buttons/FSButtonCopy.vue +1 -1
- package/components/buttons/FSButtonCopyLabel.vue +1 -1
- package/components/buttons/FSButtonDuplicate.vue +1 -1
- package/components/buttons/FSButtonDuplicateLabel.vue +1 -1
- package/components/buttons/FSButtonEdit.vue +1 -1
- package/components/buttons/FSButtonEditLabel.vue +1 -1
- package/components/buttons/FSButtonFile.vue +1 -1
- package/components/buttons/FSButtonFileLabel.vue +1 -1
- package/components/buttons/FSButtonNext.vue +1 -1
- package/components/buttons/FSButtonNextLabel.vue +1 -1
- package/components/buttons/FSButtonPrevious.vue +1 -1
- package/components/buttons/FSButtonPreviousLabel.vue +1 -1
- package/components/buttons/FSButtonRedo.vue +1 -1
- package/components/buttons/FSButtonRedoLabel.vue +1 -1
- package/components/buttons/FSButtonRemove.vue +1 -1
- package/components/buttons/FSButtonRemoveLabel.vue +1 -1
- package/components/buttons/FSButtonSave.vue +1 -1
- package/components/buttons/FSButtonSaveLabel.vue +1 -1
- package/components/buttons/FSButtonSearch.vue +1 -1
- package/components/buttons/FSButtonSearchLabel.vue +1 -1
- package/components/buttons/FSButtonUndo.vue +1 -1
- package/components/buttons/FSButtonUndoLabel.vue +1 -1
- package/components/buttons/FSButtonUpdate.vue +1 -1
- package/components/buttons/FSButtonUpdateLabel.vue +1 -1
- package/components/buttons/FSButtonValidate.vue +1 -1
- package/components/buttons/FSButtonValidateLabel.vue +1 -1
- package/components/fields/FSAutocompleteField.vue +1 -1
- package/components/fields/FSEntityFieldUI.vue +2 -2
- package/components/fields/FSMagicConfigField.vue +2 -2
- package/components/fields/FSSelectField.vue +2 -2
- package/components/fields/FSTranslateField.vue +1 -1
- package/components/fields/FSTranslateRichTextField.vue +1 -1
- package/components/fields/FSTranslateTextArea.vue +1 -1
- package/components/fields/periodicField/FSPeriodicDailyField.vue +1 -1
- package/components/fields/periodicField/FSPeriodicMonthlyField.vue +7 -7
- package/components/fields/periodicField/FSPeriodicWeeklyField.vue +2 -2
- package/components/fields/periodicField/FSPeriodicYearlyField.vue +2 -2
- package/components/lists/FSDataTableUI.vue +4 -4
- package/components/lists/FSFilterButton.vue +1 -1
- package/components/selects/FSSelectDashboardVariableType.vue +4 -4
- package/components/selects/FSSelectDateSetting.vue +1 -1
- package/components/selects/FSSelectListMode.vue +2 -2
- package/components/selects/chartSelectors/FSFilterTypeSelector.vue +1 -1
- package/components/selects/chartSelectors/FSPlotPerSelector.vue +1 -1
- package/components/selects/chartSelectors/FSSelectEntityType.vue +5 -5
- package/components/tiles/FSGroupTileUI.vue +2 -2
- package/components/tiles/FSLocationTileUI.vue +1 -1
- package/components/toggleSets/FSToggleSetPosition.vue +1 -1
- package/package.json +4 -4
- package/tools/alertsTools.ts +4 -4
- package/tools/chartsTools.ts +45 -45
- package/tools/timeRangeTools.ts +8 -8
package/components/FSClock.vue
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
v-if="$props.slider"
|
|
31
31
|
>
|
|
32
32
|
<FSSlider
|
|
33
|
-
:label="$tr('ui.
|
|
33
|
+
:label="$tr('ui.common.hours', 'Hours')"
|
|
34
34
|
:readonly="!$props.editable"
|
|
35
35
|
:color="$props.color"
|
|
36
36
|
:step="1"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
v-model="innerHours"
|
|
40
40
|
/>
|
|
41
41
|
<FSSlider
|
|
42
|
-
:label="$tr('ui.
|
|
42
|
+
:label="$tr('ui.common.minutes', 'Minutes')"
|
|
43
43
|
:readonly="!$props.editable"
|
|
44
44
|
:color="$props.color"
|
|
45
45
|
:step="1"
|
|
@@ -237,15 +237,15 @@ export default defineComponent({
|
|
|
237
237
|
});
|
|
238
238
|
|
|
239
239
|
const cancelLabel = computed(() => {
|
|
240
|
-
return props.cancelButtonLabel ?? $tr("
|
|
240
|
+
return props.cancelButtonLabel ?? $tr("ui.common.cancel", "Cancel");
|
|
241
241
|
});
|
|
242
242
|
|
|
243
243
|
const submitLabel = computed(() => {
|
|
244
|
-
return props.submitButtonLabel ?? $tr("
|
|
244
|
+
return props.submitButtonLabel ?? $tr("ui.common.submit", "Submit");
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
const validateLabel = computed(() => {
|
|
248
|
-
return props.validateButtonLabel ?? $tr("
|
|
248
|
+
return props.validateButtonLabel ?? $tr("ui.common.validate", "Validate");
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
const resetFormValidation = () => {
|
|
@@ -200,14 +200,14 @@ export default defineComponent({
|
|
|
200
200
|
|
|
201
201
|
const previousButtonLabel = computed(() => {
|
|
202
202
|
return currentStep.value == 1
|
|
203
|
-
? props.cancelButtonLabel ?? $tr("
|
|
204
|
-
: $tr("
|
|
203
|
+
? props.cancelButtonLabel ?? $tr("ui.common.cancel", "Cancel")
|
|
204
|
+
: $tr("ui.common.back", "Back");
|
|
205
205
|
});
|
|
206
206
|
|
|
207
207
|
const nextButtonLabel = computed(() => {
|
|
208
208
|
return currentStep.value == props.steps
|
|
209
|
-
? props.submitButtonLabel ?? $tr("
|
|
210
|
-
: $tr("
|
|
209
|
+
? props.submitButtonLabel ?? $tr("ui.common.validate", "Validate")
|
|
210
|
+
: $tr("ui.common.next", "Next");
|
|
211
211
|
});
|
|
212
212
|
|
|
213
213
|
const nextButtonVariant = computed(() => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<FSDialogSubmit
|
|
3
3
|
width="460px"
|
|
4
4
|
:title="title"
|
|
5
|
-
:submitButtonLabel="$tr('
|
|
5
|
+
:submitButtonLabel="$tr('ui.common.remove', 'Remove')"
|
|
6
6
|
:submitButtonColor="ColorEnum.Error"
|
|
7
7
|
:modelValue="$props.modelValue"
|
|
8
8
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
@@ -185,11 +185,11 @@ export default defineComponent({
|
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
const cancelLabel = computed(() => {
|
|
188
|
-
return props.cancelButtonLabel ?? $tr("
|
|
188
|
+
return props.cancelButtonLabel ?? $tr("ui.common.cancel", "Cancel");
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
const submitLabel = computed(() => {
|
|
192
|
-
return props.submitButtonLabel ?? $tr("
|
|
192
|
+
return props.submitButtonLabel ?? $tr("ui.common.validate", "Validate");
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSAutocompleteField
|
|
3
3
|
itemTitle="id"
|
|
4
|
-
:label="$tr('
|
|
4
|
+
:label="$tr('ui.common.time-zone', 'Time zone')"
|
|
5
5
|
:toggleSet="!$props.toggleSetDisabled && toggleSet"
|
|
6
6
|
:multiple="$props.multiple"
|
|
7
7
|
:placeholder="placeholder"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
v-if="itemsCount > 0"
|
|
25
25
|
>
|
|
26
26
|
<FSButton
|
|
27
|
-
:label="$tr('
|
|
27
|
+
:label="$tr('ui.common.edit', 'Edit')"
|
|
28
28
|
icon="mdi-pencil"
|
|
29
29
|
@click="$emit('click:select')"
|
|
30
30
|
/>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
v-else
|
|
34
34
|
>
|
|
35
35
|
<FSButton
|
|
36
|
-
:label="$tr('
|
|
36
|
+
:label="$tr('ui.common.select', 'Select')"
|
|
37
37
|
icon="mdi-plus-circle-multiple-outline"
|
|
38
38
|
@click="$emit('click:select')"
|
|
39
39
|
/>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<component
|
|
6
6
|
class="fs-magic-config-field-value"
|
|
7
7
|
:is="get($props.type)"
|
|
8
|
-
:label="$tr('
|
|
8
|
+
:label="$tr('ui.common.value', 'Value')"
|
|
9
9
|
:editable="$props.editable"
|
|
10
10
|
:required="true"
|
|
11
11
|
:rules="rules"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
gap="24px"
|
|
17
17
|
>
|
|
18
18
|
<FSTranslateField
|
|
19
|
-
:label="$tr('
|
|
19
|
+
:label="$tr('ui.common.label', 'Label')"
|
|
20
20
|
:editable="$props.editable"
|
|
21
21
|
:modelValue="$props.labelDefault"
|
|
22
22
|
:translations="$props.translations"
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
padding="4px 3px"
|
|
208
208
|
>
|
|
209
209
|
<FSSpan>
|
|
210
|
-
{{ $tr("
|
|
210
|
+
{{ $tr("ui.common.no-data", "No data") }}
|
|
211
211
|
</FSSpan>
|
|
212
212
|
</FSRow>
|
|
213
213
|
</template>
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
padding="15px"
|
|
395
395
|
>
|
|
396
396
|
<FSSpan>
|
|
397
|
-
{{ $tr("
|
|
397
|
+
{{ $tr("ui.common.no-data", "No data") }}
|
|
398
398
|
</FSSpan>
|
|
399
399
|
</FSRow>
|
|
400
400
|
</template>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<FSSpan
|
|
15
15
|
:font="font"
|
|
16
16
|
>
|
|
17
|
-
{{ $tr("
|
|
17
|
+
{{ $tr("ui.common.day", "Day") }}
|
|
18
18
|
</FSSpan>
|
|
19
19
|
<FSSelectField
|
|
20
20
|
:editable="$props.editable"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<FSSpan
|
|
46
46
|
:font="font"
|
|
47
47
|
>
|
|
48
|
-
{{ $tr("
|
|
48
|
+
{{ $tr("ui.common.every", "Every") }}
|
|
49
49
|
</FSSpan>
|
|
50
50
|
<FSSelectField
|
|
51
51
|
:editable="$props.editable"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<FSSpan
|
|
66
66
|
:font="font"
|
|
67
67
|
>
|
|
68
|
-
{{ $tr("
|
|
68
|
+
{{ $tr("ui.common.at", "at") }}
|
|
69
69
|
</FSSpan>
|
|
70
70
|
<FSClock
|
|
71
71
|
:editable="$props.editable"
|
|
@@ -119,10 +119,10 @@ export default defineComponent({
|
|
|
119
119
|
const { $tr } = useTranslationsProvider();
|
|
120
120
|
|
|
121
121
|
const dayWeekNumbers = [
|
|
122
|
-
{ id: 1, label: $tr("
|
|
123
|
-
{ id: 2, label: $tr("
|
|
124
|
-
{ id: 3, label: $tr("
|
|
125
|
-
{ id: 4, label: $tr("
|
|
122
|
+
{ id: 1, label: $tr("ui.common.first" , "First") },
|
|
123
|
+
{ id: 2, label: $tr("ui.common.second", "Second") },
|
|
124
|
+
{ id: 3, label: $tr("ui.common.third" , "Third") },
|
|
125
|
+
{ id: 4, label: $tr("ui.common.fourth", "Fourth") },
|
|
126
126
|
];
|
|
127
127
|
|
|
128
128
|
const availableConfigurations = [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<FSSpan
|
|
15
15
|
:font="font"
|
|
16
16
|
>
|
|
17
|
-
{{ $tr("
|
|
17
|
+
{{ $tr("ui.common.every", "Every") }}
|
|
18
18
|
</FSSpan>
|
|
19
19
|
<FSSelectDays
|
|
20
20
|
:editable="$props.editable"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<FSSpan
|
|
27
27
|
:font="font"
|
|
28
28
|
>
|
|
29
|
-
{{ $tr("
|
|
29
|
+
{{ $tr("ui.common.at", "at") }}
|
|
30
30
|
</FSSpan>
|
|
31
31
|
<FSClock
|
|
32
32
|
:editable="$props.editable"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<FSSpan
|
|
15
15
|
:font="font"
|
|
16
16
|
>
|
|
17
|
-
{{ $tr("
|
|
17
|
+
{{ $tr("ui.common.every-year", "Every year") }}
|
|
18
18
|
</FSSpan>
|
|
19
19
|
<FSSelectMonths
|
|
20
20
|
:editable="$props.editable"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<FSSpan
|
|
34
34
|
:font="font"
|
|
35
35
|
>
|
|
36
|
-
{{ $tr("
|
|
36
|
+
{{ $tr("ui.common.at", "at") }}
|
|
37
37
|
</FSSpan>
|
|
38
38
|
<FSClock
|
|
39
39
|
:editable="$props.editable"
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
<FSText
|
|
150
150
|
font="text-overline"
|
|
151
151
|
>
|
|
152
|
-
{{ $tr("data
|
|
152
|
+
{{ $tr("ui.common.no-data", "No data") }}
|
|
153
153
|
</FSText>
|
|
154
154
|
</template>
|
|
155
155
|
<template
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
<FSText
|
|
439
439
|
font="text-overline"
|
|
440
440
|
>
|
|
441
|
-
{{ $tr("data
|
|
441
|
+
{{ $tr("ui.common.no-data", "No data") }}
|
|
442
442
|
</FSText>
|
|
443
443
|
</template>
|
|
444
444
|
<template
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
<FSText
|
|
610
610
|
font="text-overline"
|
|
611
611
|
>
|
|
612
|
-
{{ $tr("data
|
|
612
|
+
{{ $tr("ui.common.no-data", "No data") }}
|
|
613
613
|
</FSText>
|
|
614
614
|
</template>
|
|
615
615
|
<template
|
|
@@ -932,7 +932,7 @@ export default defineComponent({
|
|
|
932
932
|
{ id: 5, label: "5" },
|
|
933
933
|
{ id: 10, label: "10" },
|
|
934
934
|
{ id: 30, label: "30" },
|
|
935
|
-
{ id: -1, label: $tr("
|
|
935
|
+
{ id: -1, label: $tr("ui.common.all", "All") }
|
|
936
936
|
];
|
|
937
937
|
|
|
938
938
|
const showFiltersRow = computed((): boolean => {
|
|
@@ -34,10 +34,10 @@ export default defineComponent({
|
|
|
34
34
|
const { $tr } = useTranslationsProvider();
|
|
35
35
|
|
|
36
36
|
const dashboardVariableTypes = computed((): { id: DashboardVariableType; label: string }[] => ([
|
|
37
|
-
{ id: DashboardVariableType.Number, label: $tr("ui.
|
|
38
|
-
{ id: DashboardVariableType.String, label: $tr("ui.
|
|
39
|
-
{ id: DashboardVariableType.TimeStep, label: $tr("ui.
|
|
40
|
-
{ id: DashboardVariableType.PlotPer, label: $tr("ui.
|
|
37
|
+
{ id: DashboardVariableType.Number, label: $tr("ui.common.number", "Number") },
|
|
38
|
+
{ id: DashboardVariableType.String, label: $tr("ui.common.string", "String") },
|
|
39
|
+
{ id: DashboardVariableType.TimeStep, label: $tr("ui.common.time-step", "Time step")},
|
|
40
|
+
{ id: DashboardVariableType.PlotPer, label: $tr("ui.common.plot-per", "Plot per")}
|
|
41
41
|
]));
|
|
42
42
|
|
|
43
43
|
return {
|
|
@@ -88,7 +88,7 @@ export default defineComponent({
|
|
|
88
88
|
dateSettings.push({ id: DateSetting.LastPeriod, label: $tr("ui.date-setting.last-period", "Last period") });
|
|
89
89
|
}
|
|
90
90
|
if (props.useNone) {
|
|
91
|
-
dateSettings.unshift({ id: DateSetting.None, label: $tr("ui.
|
|
91
|
+
dateSettings.unshift({ id: DateSetting.None, label: $tr("ui.common.none", "None") });
|
|
92
92
|
}
|
|
93
93
|
return dateSettings;
|
|
94
94
|
})
|
|
@@ -39,8 +39,8 @@ export default defineComponent({
|
|
|
39
39
|
const { $tr } = useTranslationsProvider();
|
|
40
40
|
|
|
41
41
|
const items = [
|
|
42
|
-
{ id: ListModes.Table, label: $tr("ui.
|
|
43
|
-
{ id: ListModes.Iterator, label: $tr("ui.
|
|
42
|
+
{ id: ListModes.Table, label: $tr("ui.common.table", "Table"), icon: "mdi-format-list-bulleted" },
|
|
43
|
+
{ id: ListModes.Iterator, label: $tr("ui.common.iterator", "Tile"), icon: "mdi-view-grid-outline" },
|
|
44
44
|
];
|
|
45
45
|
|
|
46
46
|
return {
|
|
@@ -40,13 +40,13 @@ export default defineComponent({
|
|
|
40
40
|
|
|
41
41
|
const entityTypes = computed((): { id: EntityType; label: string }[] => {
|
|
42
42
|
const items = [
|
|
43
|
-
{ id: EntityType.Model, label: $tr("ui.
|
|
44
|
-
{ id: EntityType.Device, label: $tr("ui.
|
|
45
|
-
{ id: EntityType.Group, label: $tr("ui.
|
|
46
|
-
{ id: EntityType.Location, label: $tr("ui.
|
|
43
|
+
{ id: EntityType.Model, label: $tr("ui.common.models", "Model(s)") },
|
|
44
|
+
{ id: EntityType.Device, label: $tr("ui.common.devices", "Device(s)") },
|
|
45
|
+
{ id: EntityType.Group, label: $tr("ui.common.groups", "Group(s)") },
|
|
46
|
+
{ id: EntityType.Location, label: $tr("ui.common.locations", "Location(s)") }
|
|
47
47
|
];
|
|
48
48
|
if (props.useNone) {
|
|
49
|
-
items.unshift({ id: EntityType.None, label: $tr("ui.
|
|
49
|
+
items.unshift({ id: EntityType.None, label: $tr("ui.common.none", "None") });
|
|
50
50
|
}
|
|
51
51
|
return items;
|
|
52
52
|
});
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
<FSSpan
|
|
63
63
|
font="text-overline"
|
|
64
64
|
>
|
|
65
|
-
{{ $tr("
|
|
65
|
+
{{ $tr("ui.common.groups", "Group(s)") }}
|
|
66
66
|
</FSSpan>
|
|
67
67
|
</FSRow>
|
|
68
68
|
<FSRow
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<FSSpan
|
|
88
88
|
font="text-overline"
|
|
89
89
|
>
|
|
90
|
-
{{ $tr("
|
|
90
|
+
{{ $tr("ui.common.devices", "Device(s)") }}
|
|
91
91
|
</FSSpan>
|
|
92
92
|
</FSRow>
|
|
93
93
|
</FSCol>
|
|
@@ -48,7 +48,7 @@ export default defineComponent({
|
|
|
48
48
|
{ id: Position.Ordinate, label: $tr("ui.position.ordinate", "Bottom") }
|
|
49
49
|
];
|
|
50
50
|
if (props.useNone) {
|
|
51
|
-
items.unshift({ id: Position.None, label: $tr("ui.
|
|
51
|
+
items.unshift({ id: Position.None, label: $tr("ui.common.none", "None") });
|
|
52
52
|
}
|
|
53
53
|
return items;
|
|
54
54
|
});
|
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.124",
|
|
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.124",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.124"
|
|
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": "dbe55d5165ef715e8debfa3e459c0d76da412f2d"
|
|
39
39
|
}
|
package/tools/alertsTools.ts
CHANGED
|
@@ -47,10 +47,10 @@ export const AlertTools = {
|
|
|
47
47
|
},
|
|
48
48
|
criticityLabel(value: Criticity): string {
|
|
49
49
|
switch (value) {
|
|
50
|
-
case Criticity.Warning: return $tr("ui.
|
|
51
|
-
case Criticity.Error: return $tr("ui.
|
|
52
|
-
case Criticity.Information: return $tr("ui.
|
|
53
|
-
default: return $tr("ui.
|
|
50
|
+
case Criticity.Warning: return $tr("ui.common.warning", "Warning");
|
|
51
|
+
case Criticity.Error: return $tr("ui.common.error", "Error");
|
|
52
|
+
case Criticity.Information: return $tr("ui.common.information", "Information")
|
|
53
|
+
default: return $tr("ui.common.none", "None");
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
package/tools/chartsTools.ts
CHANGED
|
@@ -8,9 +8,9 @@ const { $tr } = useTranslationsProvider();
|
|
|
8
8
|
|
|
9
9
|
export const chartOriginLabel = (type: ChartOrigin): string => {
|
|
10
10
|
switch (type) {
|
|
11
|
-
case ChartOrigin.None: return $tr("ui.
|
|
12
|
-
case ChartOrigin.Organisation: return $tr("ui.
|
|
13
|
-
case ChartOrigin.OrganisationType: return $tr("ui.
|
|
11
|
+
case ChartOrigin.None: return $tr("ui.common.none", "None");
|
|
12
|
+
case ChartOrigin.Organisation: return $tr("ui.common.custom", "Custom");
|
|
13
|
+
case ChartOrigin.OrganisationType: return $tr("ui.common.shared", "Shared");
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -31,7 +31,7 @@ export const chartTypeLabel = (value: ChartType): string => {
|
|
|
31
31
|
case ChartType.Slider: return $tr("ui.chart-type.slider", "Slider");
|
|
32
32
|
case ChartType.Table: return $tr("ui.chart-type.table", "Table");
|
|
33
33
|
case ChartType.XY: return $tr("ui.chart-type.xy", "XY");
|
|
34
|
-
default: return $tr("ui.
|
|
34
|
+
default: return $tr("ui.common.none", "None");
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ export const colorSetLabel = (value: ColorSets | number): string => {
|
|
|
43
43
|
case ColorSets.Hash: return $tr("ui.color-sets.hash", "Hash");
|
|
44
44
|
case ColorSets.Kelly: return $tr("ui.color-sets.material", "Kelly");
|
|
45
45
|
case ColorSets.ZeileisHornikMurrell: return $tr("ui.color-sets.material", "ZeileisHornikMurrell");
|
|
46
|
-
default: return $tr("ui.
|
|
46
|
+
default: return $tr("ui.common.none", "None");
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -90,36 +90,36 @@ export const aggregationTypeLabel = (aggregationType: AggregationType): string =
|
|
|
90
90
|
case AggregationType.Mean: return $tr("ui.aggregation-type.mean", "Mean");
|
|
91
91
|
case AggregationType.Median: return $tr("ui.aggregation-type.median", "Median");
|
|
92
92
|
case AggregationType.First: return $tr("ui.aggregation-type.first", "First");
|
|
93
|
-
case AggregationType.Last: return $tr("ui.aggregation
|
|
93
|
+
case AggregationType.Last: return $tr("ui.aggregation.last", "Last");
|
|
94
94
|
case AggregationType.Difference: return $tr("ui.aggregation-type.difference", "Difference");
|
|
95
|
-
case AggregationType.Minimum: return $tr("ui.
|
|
95
|
+
case AggregationType.Minimum: return $tr("ui.common.minimum", "Minimum");
|
|
96
96
|
case AggregationType.Maximum: return $tr("ui.common.maximum", "Maximum");
|
|
97
97
|
case AggregationType.Range: return $tr("ui.aggregation-type.range", "Range");
|
|
98
|
-
default: return $tr("ui.
|
|
98
|
+
default: return $tr("ui.common.none", "None");
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
export const axisTypeLabel = (axisType: AxisType | number): string => {
|
|
103
103
|
switch (axisType) {
|
|
104
|
-
case AxisType.Date: return $tr("ui.
|
|
105
|
-
case AxisType.Value: return $tr("ui.
|
|
106
|
-
case AxisType.Category: return $tr("ui.
|
|
107
|
-
default: return $tr("ui.
|
|
104
|
+
case AxisType.Date: return $tr("ui.common.date", "Date");
|
|
105
|
+
case AxisType.Value: return $tr("ui.common.value", "Value");
|
|
106
|
+
case AxisType.Category: return $tr("ui.common.category", "Category");
|
|
107
|
+
default: return $tr("ui.common.none", "None");
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
export const displayAsLabel = (display: DisplayAs | number): string => {
|
|
112
112
|
switch (display) {
|
|
113
|
-
case DisplayAs.Bars: return $tr("ui.
|
|
114
|
-
case DisplayAs.Lines: return $tr("ui.
|
|
115
|
-
case DisplayAs.Points: return $tr("ui.
|
|
116
|
-
default: return $tr("ui.
|
|
113
|
+
case DisplayAs.Bars: return $tr("ui.common.bars", "Bars");
|
|
114
|
+
case DisplayAs.Lines: return $tr("ui.common.lines", "Lines");
|
|
115
|
+
case DisplayAs.Points: return $tr("ui.common.point", "Points");
|
|
116
|
+
default: return $tr("ui.common.none", "None");
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
export const filterTypeLabel = (filterType: FilterType | number): string => {
|
|
121
121
|
switch (filterType) {
|
|
122
|
-
case FilterType.Contains: return $tr("ui.
|
|
122
|
+
case FilterType.Contains: return $tr("ui.common.contains", "contains");
|
|
123
123
|
case FilterType.Different: return "≠";
|
|
124
124
|
case FilterType.EndsWith: return $tr("ui.filter-type.ends-with", "ends with");
|
|
125
125
|
case FilterType.Equal: return "=";
|
|
@@ -128,16 +128,16 @@ export const filterTypeLabel = (filterType: FilterType | number): string => {
|
|
|
128
128
|
case FilterType.More: return ">";
|
|
129
129
|
case FilterType.MoreOrEqual: return "≥";
|
|
130
130
|
case FilterType.StartsWith: return $tr("ui.filter-type.starts-with", "start with");
|
|
131
|
-
default: return $tr("ui.
|
|
131
|
+
default: return $tr("ui.common.none", "None");
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
export const heatmapRuleLabel = (heatMap: HeatmapRule | number): string => {
|
|
136
136
|
switch (heatMap) {
|
|
137
|
-
case HeatmapRule.Gradient: return $tr("ui.
|
|
138
|
-
case HeatmapRule.Ranges: return $tr("ui.
|
|
139
|
-
case HeatmapRule.Fixed: return $tr("ui.
|
|
140
|
-
default: return $tr("ui.
|
|
137
|
+
case HeatmapRule.Gradient: return $tr("ui.common.gradient", "Gradient");
|
|
138
|
+
case HeatmapRule.Ranges: return $tr("ui.common.ranges", "Ranges");
|
|
139
|
+
case HeatmapRule.Fixed: return $tr("ui.common.fixed", "Fixed");
|
|
140
|
+
default: return $tr("ui.common.none", "None");
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
|
|
@@ -146,7 +146,7 @@ export const operationOnLabel = (operationOn: OperationOn | number): string => {
|
|
|
146
146
|
case OperationOn.SameEntity: return $tr("ui.operation-on.same-entity", "Same entity");
|
|
147
147
|
case OperationOn.SameGroup: return $tr("ui.operation-on.same-group", "Same group");
|
|
148
148
|
case OperationOn.SameGroupAndEntity: return $tr("ui.operation-on.same-group-entity", "Same group and entity");
|
|
149
|
-
default: return $tr("ui.
|
|
149
|
+
default: return $tr("ui.common.none", "None");
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
|
|
@@ -155,39 +155,39 @@ export const planningTypeLabel = (planningType: PlanningType | number): string =
|
|
|
155
155
|
case PlanningType.UntilNext: return $tr("ui.planning-type.until-next", "Until next");
|
|
156
156
|
case PlanningType.ElapsedTime: return $tr("ui.planning-type.elapsed-time", "Elapsed time");
|
|
157
157
|
case PlanningType.SinglePoint: return $tr("ui.planning-type.single-point", "Single point");
|
|
158
|
-
default: return $tr("ui.
|
|
158
|
+
default: return $tr("ui.common.none", "None");
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
export const plotPerLabel = (plotper: PlotPer | number): string => {
|
|
163
163
|
switch (plotper) {
|
|
164
164
|
case PlotPer.SinglePlot: return $tr("ui.plot-per.single-slot", "Single slot");
|
|
165
|
-
case PlotPer.Model: return $tr("ui.
|
|
166
|
-
case PlotPer.Group: return $tr("ui.
|
|
167
|
-
case PlotPer.Location: return $tr("ui.
|
|
168
|
-
case PlotPer.Device: return $tr("ui.
|
|
169
|
-
default: return $tr("ui.
|
|
165
|
+
case PlotPer.Model: return $tr("ui.common.model", "Model");
|
|
166
|
+
case PlotPer.Group: return $tr("ui.common.group", "Group");
|
|
167
|
+
case PlotPer.Location: return $tr("ui.common.location", "Location");
|
|
168
|
+
case PlotPer.Device: return $tr("ui.common.device", "Device");
|
|
169
|
+
default: return $tr("ui.common.none", "None");
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
export const serieTypeLabel = (serieType: SerieType): string => {
|
|
174
174
|
switch (serieType) {
|
|
175
|
-
case SerieType.Lines: return $tr("ui.
|
|
176
|
-
case SerieType.Area: return $tr("ui.
|
|
177
|
-
case SerieType.Range: return $tr("ui.
|
|
178
|
-
case SerieType.Histogram: return $tr("ui.
|
|
179
|
-
case SerieType.Operation: return $tr("ui.
|
|
180
|
-
case SerieType.Planning: return $tr("ui.
|
|
181
|
-
case SerieType.ScatterPlot: return $tr("ui.
|
|
182
|
-
case SerieType.Top: return $tr("ui.
|
|
183
|
-
case SerieType.Bars: return $tr("ui.
|
|
184
|
-
case SerieType.StackedBars: return $tr("ui.
|
|
185
|
-
case SerieType.Pie: return $tr("ui.
|
|
186
|
-
case SerieType.Heatmap: return $tr('ui.
|
|
187
|
-
case SerieType.Slider: return $tr("ui.
|
|
188
|
-
case SerieType.Gauge: return $tr("ui.
|
|
189
|
-
case SerieType.ScoreCard: return $tr("ui.
|
|
190
|
-
case SerieType.Table: return $tr("ui.
|
|
175
|
+
case SerieType.Lines: return $tr("ui.common.lines", "Lines");
|
|
176
|
+
case SerieType.Area: return $tr("ui.common.area", "Area");
|
|
177
|
+
case SerieType.Range: return $tr("ui.common.range", "Range");
|
|
178
|
+
case SerieType.Histogram: return $tr("ui.common.histogram", "Histogram");
|
|
179
|
+
case SerieType.Operation: return $tr("ui.common.operation", "Operation");
|
|
180
|
+
case SerieType.Planning: return $tr("ui.common.planning", "Planning");
|
|
181
|
+
case SerieType.ScatterPlot: return $tr("ui.common.scatter-plot", "Scatter plot");
|
|
182
|
+
case SerieType.Top: return $tr("ui.common.top", "Top");
|
|
183
|
+
case SerieType.Bars: return $tr("ui.common.bars", "Bars");
|
|
184
|
+
case SerieType.StackedBars: return $tr("ui.common.stacked-bars", "Stacked bars");
|
|
185
|
+
case SerieType.Pie: return $tr("ui.common.pie", "Pie");
|
|
186
|
+
case SerieType.Heatmap: return $tr('ui.common.heatmap', 'Heatmap');
|
|
187
|
+
case SerieType.Slider: return $tr("ui.common.slider", "Slider");
|
|
188
|
+
case SerieType.Gauge: return $tr("ui.common.gauge", "Gauge");
|
|
189
|
+
case SerieType.ScoreCard: return $tr("ui.common.score-card", "Score card");
|
|
190
|
+
case SerieType.Table: return $tr("ui.common.table", "Table");
|
|
191
191
|
default: return "";
|
|
192
192
|
}
|
|
193
193
|
};
|
package/tools/timeRangeTools.ts
CHANGED
|
@@ -106,20 +106,20 @@ export interface DateTimeRange {
|
|
|
106
106
|
export const dayLabel = (day: Days | number): string => {
|
|
107
107
|
switch (day) {
|
|
108
108
|
case Days.Monday:
|
|
109
|
-
return $tr("ui.
|
|
109
|
+
return $tr("ui.common.monday", "Monday");
|
|
110
110
|
case Days.Tuesday:
|
|
111
|
-
return $tr("ui.
|
|
111
|
+
return $tr("ui.common.tuesday", "Tuesday");
|
|
112
112
|
case Days.Wednesday:
|
|
113
|
-
return $tr("ui.
|
|
113
|
+
return $tr("ui.common.wednesday", "Wednesday");
|
|
114
114
|
case Days.Thursday:
|
|
115
|
-
return $tr("ui.
|
|
115
|
+
return $tr("ui.common.thursday", "Thursday");
|
|
116
116
|
case Days.Friday:
|
|
117
|
-
return $tr("ui.
|
|
117
|
+
return $tr("ui.common.friday", "Friday");
|
|
118
118
|
case Days.Saturday:
|
|
119
|
-
return $tr("ui.
|
|
119
|
+
return $tr("ui.common.saturday", "Saturday");
|
|
120
120
|
case Days.Sunday:
|
|
121
|
-
return $tr("ui.
|
|
121
|
+
return $tr("ui.common.sunday", "Sunday");
|
|
122
122
|
default:
|
|
123
|
-
return $tr("ui.
|
|
123
|
+
return $tr("ui.common.all-days", "All days");
|
|
124
124
|
}
|
|
125
125
|
}
|