@dative-gpi/foundation-shared-components 1.0.122 → 1.0.123

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.
Files changed (65) hide show
  1. package/components/FSCalendarTwin.vue +1 -1
  2. package/components/FSClock.vue +2 -2
  3. package/components/FSDialogFormBody.vue +3 -3
  4. package/components/FSDialogMultiFormBody.vue +4 -4
  5. package/components/FSDialogRemove.vue +1 -1
  6. package/components/FSDialogSubmit.vue +2 -2
  7. package/components/agenda/FSAgendaDialogCalendar.vue +1 -1
  8. package/components/autocompletes/FSAutoCompleteAddress.vue +1 -1
  9. package/components/autocompletes/FSAutocompleteLanguage.vue +1 -1
  10. package/components/autocompletes/FSAutocompleteTimeZone.vue +1 -1
  11. package/components/buttons/FSButtonAdd.vue +1 -1
  12. package/components/buttons/FSButtonAddLabel.vue +1 -1
  13. package/components/buttons/FSButtonCancel.vue +1 -1
  14. package/components/buttons/FSButtonCancelLabel.vue +1 -1
  15. package/components/buttons/FSButtonCopy.vue +1 -1
  16. package/components/buttons/FSButtonDuplicate.vue +1 -1
  17. package/components/buttons/FSButtonDuplicateLabel.vue +1 -1
  18. package/components/buttons/FSButtonEdit.vue +1 -1
  19. package/components/buttons/FSButtonEditLabel.vue +1 -1
  20. package/components/buttons/FSButtonFile.vue +1 -1
  21. package/components/buttons/FSButtonFileLabel.vue +1 -1
  22. package/components/buttons/FSButtonNext.vue +1 -1
  23. package/components/buttons/FSButtonNextLabel.vue +1 -1
  24. package/components/buttons/FSButtonPrevious.vue +1 -1
  25. package/components/buttons/FSButtonPreviousLabel.vue +1 -1
  26. package/components/buttons/FSButtonRedo.vue +1 -1
  27. package/components/buttons/FSButtonRedoLabel.vue +1 -1
  28. package/components/buttons/FSButtonRemove.vue +1 -1
  29. package/components/buttons/FSButtonRemoveLabel.vue +1 -1
  30. package/components/buttons/FSButtonSave.vue +1 -1
  31. package/components/buttons/FSButtonSaveLabel.vue +1 -1
  32. package/components/buttons/FSButtonSearch.vue +1 -1
  33. package/components/buttons/FSButtonSearchLabel.vue +1 -1
  34. package/components/buttons/FSButtonUndo.vue +1 -1
  35. package/components/buttons/FSButtonUndoLabel.vue +1 -1
  36. package/components/buttons/FSButtonUpdate.vue +1 -1
  37. package/components/buttons/FSButtonUpdateLabel.vue +1 -1
  38. package/components/buttons/FSButtonValidate.vue +1 -1
  39. package/components/buttons/FSButtonValidateLabel.vue +1 -1
  40. package/components/fields/FSAutocompleteField.vue +1 -1
  41. package/components/fields/FSEntityFieldUI.vue +2 -2
  42. package/components/fields/FSMagicConfigField.vue +2 -2
  43. package/components/fields/FSSelectField.vue +2 -2
  44. package/components/fields/FSTranslateField.vue +1 -1
  45. package/components/fields/FSTranslateRichTextField.vue +1 -1
  46. package/components/fields/FSTranslateTextArea.vue +1 -1
  47. package/components/fields/periodicField/FSPeriodicDailyField.vue +1 -1
  48. package/components/fields/periodicField/FSPeriodicMonthlyField.vue +7 -7
  49. package/components/fields/periodicField/FSPeriodicWeeklyField.vue +2 -2
  50. package/components/fields/periodicField/FSPeriodicYearlyField.vue +2 -2
  51. package/components/lists/FSDataTableUI.vue +4 -4
  52. package/components/lists/FSFilterButton.vue +1 -1
  53. package/components/selects/FSSelectDashboardVariableType.vue +4 -4
  54. package/components/selects/FSSelectDateSetting.vue +1 -1
  55. package/components/selects/FSSelectListMode.vue +2 -2
  56. package/components/selects/chartSelectors/FSFilterTypeSelector.vue +1 -1
  57. package/components/selects/chartSelectors/FSPlotPerSelector.vue +1 -1
  58. package/components/selects/chartSelectors/FSSelectEntityType.vue +5 -5
  59. package/components/tiles/FSGroupTileUI.vue +2 -2
  60. package/components/tiles/FSLocationTileUI.vue +1 -1
  61. package/components/toggleSets/FSToggleSetPosition.vue +1 -1
  62. package/package.json +4 -4
  63. package/tools/alertsTools.ts +4 -4
  64. package/tools/chartsTools.ts +37 -37
  65. package/tools/timeRangeTools.ts +8 -8
@@ -14,7 +14,7 @@
14
14
  align="center-right"
15
15
  >
16
16
  <FSButton
17
- :label="$tr('ui.calendar.today', 'Today')"
17
+ :label="$tr('ui.common.today', 'Today')"
18
18
  @click="onClickToday"
19
19
  />
20
20
  </FSRow>
@@ -30,7 +30,7 @@
30
30
  v-if="$props.slider"
31
31
  >
32
32
  <FSSlider
33
- :label="$tr('ui.clock.hours', 'Hours')"
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.clock.minutes', 'Minutes')"
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("button.cancel", "Cancel");
240
+ return props.cancelButtonLabel ?? $tr("ui.common.cancel", "Cancel");
241
241
  });
242
242
 
243
243
  const submitLabel = computed(() => {
244
- return props.submitButtonLabel ?? $tr("button.submit", "Submit");
244
+ return props.submitButtonLabel ?? $tr("ui.common.submit", "Submit");
245
245
  });
246
246
 
247
247
  const validateLabel = computed(() => {
248
- return props.validateButtonLabel ?? $tr("button.validate", "Done");
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("button.cancel", "Cancel")
204
- : $tr("button.back", "Back");
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("button.validate", "Validate")
210
- : $tr("button.next", "Next");
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('button.remove', 'Remove')"
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("button.cancel", "Cancel");
188
+ return props.cancelButtonLabel ?? $tr("ui.common.cancel", "Cancel");
189
189
  });
190
190
 
191
191
  const submitLabel = computed(() => {
192
- return props.submitButtonLabel ?? $tr("button.validate", "Validate");
192
+ return props.submitButtonLabel ?? $tr("ui.common.validate", "Validate");
193
193
  });
194
194
 
195
195
  return {
@@ -16,7 +16,7 @@
16
16
  <FSButton
17
17
  color="primary"
18
18
  width="100%"
19
- :label="$tr('button.submit', 'Validate')"
19
+ :label="$tr('ui.common.submit', 'Validate')"
20
20
  @click="onSubmit"
21
21
  />
22
22
  </FSCol>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSAutocompleteField
3
- :label="$props.label ?? $tr('autocomplete.address.label', 'Address')"
3
+ :label="$props.label ?? $tr('ui.common.address', 'Address')"
4
4
  :clearable="false"
5
5
  :toggleSet="false"
6
6
  :multiple="false"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSAutocompleteField
3
- :label="$tr('autocomplete.language.label', 'Language')"
3
+ :label="$tr('ui.common.language', 'Language')"
4
4
  :toggleSet="!$props.toggleSetDisabled && toggleSet"
5
5
  :multiple="$props.multiple"
6
6
  :placeholder="placeholder"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSAutocompleteField
3
3
  itemTitle="id"
4
- :label="$tr('autocomplete.time-zone.label', 'Time zone')"
4
+ :label="$tr('ui.common.time-zone', 'Time zone')"
5
5
  :toggleSet="!$props.toggleSetDisabled && toggleSet"
6
6
  :multiple="$props.multiple"
7
7
  :placeholder="placeholder"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-plus-circle-outline"
4
- :label="$tr('button.add', 'Add')"
4
+ :label="$tr('ui.common.add', 'Add')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.add', 'Add')"
3
+ :label="$tr('ui.common.add', 'Add')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-cancel"
4
- :label="$tr('button.cancel', 'Cancel')"
4
+ :label="$tr('ui.common.cancel', 'Cancel')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.cancel', 'Cancel')"
3
+ :label="$tr('ui.common.cancel', 'Cancel')"
4
4
  :color="ColorEnum.Light"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-content-copy"
4
- :label="$tr('button.copy', 'Copy')"
4
+ :label="$tr('ui.common.copy', 'Copy')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-content-copy"
4
- :label="$tr('button.duplicate', 'Duplicate')"
4
+ :label="$tr('ui.common.duplicate', 'Duplicate')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.duplicate', 'Duplicate')"
3
+ :label="$tr('ui.common.duplicate', 'Duplicate')"
4
4
  :color="ColorEnum.Light"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-pencil-outline"
4
- :label="$tr('button.edit', 'Edit')"
4
+ :label="$tr('ui.common.edit', 'Edit')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.edit', 'Edit')"
3
+ :label="$tr('ui.common.edit', 'Edit')"
4
4
  :color="ColorEnum.Light"
5
5
  v-bind="$attrs"
6
6
  />
@@ -2,7 +2,7 @@
2
2
  <div>
3
3
  <FSButton
4
4
  prependIcon="mdi-upload-outline"
5
- :label="$tr('button.import-file', 'Import file')"
5
+ :label="$tr('ui.common.import-file', 'Import file')"
6
6
  :color="ColorEnum.Light"
7
7
  @click="onClick"
8
8
  v-bind="$attrs"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <FSButton
4
- :label="$tr('button.import-file', 'Import file')"
4
+ :label="$tr('ui.common.import-file', 'Import file')"
5
5
  :color="ColorEnum.Light"
6
6
  @click="onClick"
7
7
  v-bind="$attrs"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  appendIcon="mdi-chevron-right"
4
- :label="$tr('button.next', 'Next')"
4
+ :label="$tr('ui.common.next', 'Next')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.next', 'Next')"
3
+ :label="$tr('ui.common.next', 'Next')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-chevron-left"
4
- :label="$tr('button.previous', 'Previous')"
4
+ :label="$tr('ui.common.previous', 'Previous')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.previous', 'Previous')"
3
+ :label="$tr('ui.common.previous', 'Previous')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-redo-variant"
4
- :label="$tr('button.redo', 'Redo')"
4
+ :label="$tr('ui.common.redo', 'Redo')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.redo', 'Redo')"
3
+ :label="$tr('ui.common.redo', 'Redo')"
4
4
  :color="ColorEnum.Light"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-delete-outline"
4
- :label="$tr('button.remove', 'Remove')"
4
+ :label="$tr('ui.common.remove', 'Remove')"
5
5
  :color="ColorEnum.Error"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.remove', 'Remove')"
3
+ :label="$tr('ui.common.remove', 'Remove')"
4
4
  :color="ColorEnum.Error"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-content-save-outline"
4
- :label="$tr('button.save', 'Save')"
4
+ :label="$tr('ui.common.save', 'Save')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.save', 'Save')"
3
+ :label="$tr('ui.common.save', 'Save')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-magnify"
4
- :label="$tr('button.search', 'Search')"
4
+ :label="$tr('ui.common.search', 'Search')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.search', 'Search')"
3
+ :label="$tr('ui.common.search', 'Search')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-undo-variant"
4
- :label="$tr('button.undo', 'Undo')"
4
+ :label="$tr('ui.common.undo', 'Undo')"
5
5
  :color="ColorEnum.Light"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.undo', 'Undo')"
3
+ :label="$tr('ui.common.undo', 'Undo')"
4
4
  :color="ColorEnum.Light"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-pencil-outline"
4
- :label="$tr('button.update', 'Update')"
4
+ :label="$tr('ui.common.update', 'Update')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.update', 'Update')"
3
+ :label="$tr('ui.common.update', 'Update')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <FSButton
3
3
  prependIcon="mdi-check"
4
- :label="$tr('button.validate', 'Validate')"
4
+ :label="$tr('ui.common.validate', 'Validate')"
5
5
  :color="ColorEnum.Primary"
6
6
  v-bind="$attrs"
7
7
  />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSButton
3
- :label="$tr('button.validate', 'Validate')"
3
+ :label="$tr('ui.common.validate', 'Validate')"
4
4
  :color="ColorEnum.Primary"
5
5
  v-bind="$attrs"
6
6
  />
@@ -222,7 +222,7 @@
222
222
  padding="4px 3px"
223
223
  >
224
224
  <FSSpan>
225
- {{ $tr("autocomplete-field.no-data", "No data") }}
225
+ {{ $tr("ui.common.no-data", "No data") }}
226
226
  </FSSpan>
227
227
  </FSRow>
228
228
  </template>
@@ -24,7 +24,7 @@
24
24
  v-if="itemsCount > 0"
25
25
  >
26
26
  <FSButton
27
- :label="$tr('button.edit', 'Edit')"
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('button.select', 'Select')"
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('magic-config-field.value', 'Value')"
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('magic-config-field.label', 'Label')"
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("select-field.no-data", "No data") }}
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("select-field.no-data", "No data") }}
397
+ {{ $tr("ui.common.no-data", "No data") }}
398
398
  </FSSpan>
399
399
  </FSRow>
400
400
  </template>
@@ -43,7 +43,7 @@
43
43
  gap="32px"
44
44
  >
45
45
  <FSTextField
46
- :label="$tr('translate-field.default-value', 'Default value')"
46
+ :label="$tr('ui.common.default-value', 'Default value')"
47
47
  :editable="false"
48
48
  :modelValue="$props.modelValue"
49
49
  />
@@ -7,7 +7,7 @@
7
7
  >
8
8
  <FSRichTextField
9
9
  :editable="false"
10
- :label="$tr('translate-rich-text-field.default-value', 'Default value')"
10
+ :label="$tr('ui.common.default-value', 'Default value')"
11
11
  :modelValue="$props.modelValue"
12
12
  v-bind="$attrs"
13
13
  />
@@ -44,7 +44,7 @@
44
44
  gap="32px"
45
45
  >
46
46
  <FSTextArea
47
- :label="$tr('translate-text-area.default-value', 'Default value')"
47
+ :label="$tr('ui.common.default-value', 'Default value')"
48
48
  :editable="false"
49
49
  :rows="($attrs.rows as number)"
50
50
  :modelValue="$props.modelValue"
@@ -14,7 +14,7 @@
14
14
  <FSSpan
15
15
  :font="font"
16
16
  >
17
- {{ $tr('periodic-field.every', 'Every') }}
17
+ {{ $tr('ui.common.every', 'Every') }}
18
18
  </FSSpan>
19
19
  <FSNumberField
20
20
  :editable="$props.editable"
@@ -14,7 +14,7 @@
14
14
  <FSSpan
15
15
  :font="font"
16
16
  >
17
- {{ $tr("periodic-monthly-field.day", "Day") }}
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("periodic-monthly-field.every", "Every") }}
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("periodic-monthly-field.at", "at") }}
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("periodic-monthly-field.first" , "First") },
123
- { id: 2, label: $tr("periodic-monthly-field.second", "Second") },
124
- { id: 3, label: $tr("periodic-monthly-field.third" , "Third") },
125
- { id: 4, label: $tr("periodic-monthly-field.fourth", "Fourth") },
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("periodic-weekly-field.every", "Every") }}
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("periodic-weekly-field.at", "at") }}
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("periodic-yearly-field.everyyear", "Every year") }}
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("periodic-yearly-field.at", "at") }}
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-table.empty", "No 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-table.empty", "No 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-table.empty", "No 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("data-table.all-rows", "All") }
935
+ { id: -1, label: $tr("ui.common.all", "All") }
936
936
  ];
937
937
 
938
938
  const showFiltersRow = computed((): boolean => {
@@ -32,7 +32,7 @@
32
32
  <FSSpan
33
33
  font="text-overline"
34
34
  >
35
- {{ $tr("button.filter", "Filter") }}
35
+ {{ $tr("ui.common.filter", "Filter") }}
36
36
  </FSSpan>
37
37
  <FSChip
38
38
  class="fs-filter-button-chip"
@@ -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.dashboard-variable-type.number", "Number") },
38
- { id: DashboardVariableType.String, label: $tr("ui.dashboard-variable-type.string", "String") },
39
- { id: DashboardVariableType.TimeStep, label: $tr("ui.dashboard-variable-type.time-step", "Time step")},
40
- { id: DashboardVariableType.PlotPer, label: $tr("ui.dashboard-variable-type.plot-per", "Plot per")}
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.date-setting.none", "None") });
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.list-mode.table", "Table"), icon: "mdi-format-list-bulleted" },
43
- { id: ListModes.Iterator, label: $tr("ui.list-mode.iterator", "Tuile"), icon: "mdi-view-grid-outline" },
42
+ { id: ListModes.Table, label: $tr("ui.common.table", "Table"), icon: "mdi-format-list-bulleted" },
43
+ { id: ListModes.Iterator, label: $tr("ui.common.iterator", "Tuile"), icon: "mdi-view-grid-outline" },
44
44
  ];
45
45
 
46
46
  return {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSAutocompleteField
3
- :label="label ?? $tr('autocomplete.filter-type.label','Filter type')"
3
+ :label="label ?? $tr('ui.common.filter-type','Filter type')"
4
4
  :toggleSet="true"
5
5
  :items="filterTypeItems"
6
6
  :modelValue="modelValue"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <FSAutocompleteField
3
- :label="label ?? $tr('autocomplete.plot-per.label','Plot per')"
3
+ :label="label ?? $tr('ui.common.plot-per','Plot per')"
4
4
  :items="plotPerItems"
5
5
  :modelValue="modelValue"
6
6
  @update:modelValue="$emit('update:modelValue', $event)"
@@ -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.entity-type.models", "Models") },
44
- { id: EntityType.Device, label: $tr("ui.entity-type.devices", "Devices") },
45
- { id: EntityType.Group, label: $tr("ui.entity-type.groups", "Groups") },
46
- { id: EntityType.Location, label: $tr("ui.entity-type.locations", "Locations") }
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.entity-type.none", "None") });
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("group-tile.groups", "Group(s)") }}
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("group-tile.devices", "Device(s)") }}
90
+ {{ $tr("ui.common.devices", "Device(s)") }}
91
91
  </FSSpan>
92
92
  </FSRow>
93
93
  </FSCol>
@@ -64,7 +64,7 @@
64
64
  <FSSpan
65
65
  font="text-overline"
66
66
  >
67
- {{ $tr("location-tile.devices", "Devices") }}
67
+ {{ $tr("ui.common.devices", "Equipment(s)") }}
68
68
  </FSSpan>
69
69
  </FSRow>
70
70
  <FSRow
@@ -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.position.none", "None") });
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.122",
4
+ "version": "1.0.123",
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.122",
14
- "@dative-gpi/foundation-shared-services": "1.0.122"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.123",
14
+ "@dative-gpi/foundation-shared-services": "1.0.123"
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": "f560913fe361a3fbce48afbd4f06a85917bb39c7"
38
+ "gitHead": "04157720c6327851c1867bd7133a0cebf945d5b6"
39
39
  }
@@ -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.criticity.warning", "Warning");
51
- case Criticity.Error: return $tr("ui.criticity.error", "Error");
52
- case Criticity.Information: return $tr("ui.criticity.information", "Information")
53
- default: return $tr("ui.criticity.none", "None");
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
  }
@@ -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.chart-origin.none", "None");
12
- case ChartOrigin.Organisation: return $tr("ui.chart-origin.organisation", "Custom");
13
- case ChartOrigin.OrganisationType: return $tr("ui.chart-origin.organisation-type", "Shared");
11
+ case ChartOrigin.None: return $tr("ui.common.none", "None");
12
+ case ChartOrigin.Organisation: return $tr("ui.chart-origin.custom", "Custom");
13
+ case ChartOrigin.OrganisationType: return $tr("ui.chart-origin.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.chart-type.none", "None");
34
+ default: return $tr("ui.common.none", "None");
35
35
  }
36
36
  }
37
37
 
@@ -90,9 +90,9 @@ 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-type.last", "Last");
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.aggregation-type.minimum", "Minimum");
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
98
  default: return $tr("ui.aggregation-type.none", "None");
@@ -101,10 +101,10 @@ export const aggregationTypeLabel = (aggregationType: AggregationType): string =
101
101
 
102
102
  export const axisTypeLabel = (axisType: AxisType | number): string => {
103
103
  switch (axisType) {
104
- case AxisType.Date: return $tr("ui.axis-type.date", "Date");
105
- case AxisType.Value: return $tr("ui.axis-type.value", "Value");
106
- case AxisType.Category: return $tr("ui.axis-type.category", "Category");
107
- default: return $tr("ui.axis-type.none", "None");
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
 
@@ -134,10 +134,10 @@ export const filterTypeLabel = (filterType: FilterType | number): string => {
134
134
 
135
135
  export const heatmapRuleLabel = (heatMap: HeatmapRule | number): string => {
136
136
  switch (heatMap) {
137
- case HeatmapRule.Gradient: return $tr("ui.heatmap-rule.gradient", "Gradient");
138
- case HeatmapRule.Ranges: return $tr("ui.heatmap-rule.ranges", "Ranges");
139
- case HeatmapRule.Fixed: return $tr("ui.heatmap-rule.fixed", "Fixed");
140
- default: return $tr("ui.heatmap-rule.none", "None");
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.operation-on.none", "None");
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.planning-type.none", "None");
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.plot-per.model", "Model");
166
- case PlotPer.Group: return $tr("ui.plot-per.group", "Group");
167
- case PlotPer.Location: return $tr("ui.plot-per.location", "Location");
168
- case PlotPer.Device: return $tr("ui.plot-per.device", "Device");
169
- default: return $tr("ui.plot-per.none", "None");
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.serie-type.lines", "Lines");
176
- case SerieType.Area: return $tr("ui.serie-type.area", "Area");
177
- case SerieType.Range: return $tr("ui.serie-type.range", "Range");
178
- case SerieType.Histogram: return $tr("ui.serie-type.histogram", "Histogram");
179
- case SerieType.Operation: return $tr("ui.serie-type.operation", "Operation");
180
- case SerieType.Planning: return $tr("ui.serie-type.planning", "Planning");
181
- case SerieType.ScatterPlot: return $tr("ui.serie-type.scatter-plot", "Scatter plot");
182
- case SerieType.Top: return $tr("ui.serie-type.top", "Top");
183
- case SerieType.Bars: return $tr("ui.serie-type.bars", "Bars");
184
- case SerieType.StackedBars: return $tr("ui.serie-type.stacked-bars", "Stacked bars");
185
- case SerieType.Pie: return $tr("ui.serie-type.pie", "Pie");
186
- case SerieType.Heatmap: return $tr('ui.serie-type.heatmap', 'Heatmap');
187
- case SerieType.Slider: return $tr("ui.serie-type.slider", "Slider");
188
- case SerieType.Gauge: return $tr("ui.serie-type.gauge", "Gauge");
189
- case SerieType.ScoreCard: return $tr("ui.serie-type.score-card", "Score card");
190
- case SerieType.Table: return $tr("ui.serie-type.table", "Table");
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
  };
@@ -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.days.monday", "Monday");
109
+ return $tr("ui.common.monday", "Monday");
110
110
  case Days.Tuesday:
111
- return $tr("ui.days.tuesday", "Tuesday");
111
+ return $tr("ui.common.tuesday", "Tuesday");
112
112
  case Days.Wednesday:
113
- return $tr("ui.days.wednesday", "Wednesday");
113
+ return $tr("ui.common.wednesday", "Wednesday");
114
114
  case Days.Thursday:
115
- return $tr("ui.days.thursday", "Thursday");
115
+ return $tr("ui.common.thursday", "Thursday");
116
116
  case Days.Friday:
117
- return $tr("ui.days.friday", "Friday");
117
+ return $tr("ui.common.friday", "Friday");
118
118
  case Days.Saturday:
119
- return $tr("ui.days.saturday", "Saturday");
119
+ return $tr("ui.common.saturday", "Saturday");
120
120
  case Days.Sunday:
121
- return $tr("ui.days.sunday", "Sunday");
121
+ return $tr("ui.common.sunday", "Sunday");
122
122
  default:
123
- return $tr("ui.days.all-days", "All days");
123
+ return $tr("ui.common.all-days", "All days");
124
124
  }
125
125
  }