@dative-gpi/foundation-shared-components 0.0.173 → 0.0.175

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 (138) hide show
  1. package/components/FSAccordion.vue +2 -1
  2. package/components/FSAccordionPanel.vue +2 -1
  3. package/components/FSBadge.vue +7 -3
  4. package/components/FSBreadcrumbs.vue +4 -2
  5. package/components/FSButton.vue +5 -3
  6. package/components/FSCalendar.vue +4 -2
  7. package/components/FSCalendarTwin.vue +4 -2
  8. package/components/FSCard.vue +4 -2
  9. package/components/FSCardPlaceholder.vue +2 -1
  10. package/components/FSCheckbox.vue +4 -2
  11. package/components/FSChip.vue +4 -2
  12. package/components/FSClickable.vue +5 -3
  13. package/components/FSClock.vue +4 -2
  14. package/components/FSCol.vue +2 -1
  15. package/components/FSColor.vue +4 -2
  16. package/components/FSColorIcon.vue +5 -3
  17. package/components/FSDialog.vue +4 -2
  18. package/components/FSDialogForm.vue +4 -2
  19. package/components/FSDialogMenu.vue +4 -2
  20. package/components/FSDialogMultiForm.vue +4 -2
  21. package/components/FSDialogSubmit.vue +4 -2
  22. package/components/FSDivider.vue +4 -2
  23. package/components/FSEditImage.vue +4 -2
  24. package/components/FSErrorToast.vue +2 -1
  25. package/components/FSFadeOut.vue +2 -1
  26. package/components/FSForm.vue +2 -1
  27. package/components/FSGrid.vue +4 -2
  28. package/components/FSGridMosaic.vue +3 -2
  29. package/components/FSIcon.vue +3 -2
  30. package/components/FSIconCard.vue +4 -2
  31. package/components/FSIconCheck.vue +2 -1
  32. package/components/FSIconFlag.vue +2 -1
  33. package/components/FSImage.vue +2 -1
  34. package/components/FSLabel.vue +4 -2
  35. package/components/FSLink.vue +5 -3
  36. package/components/FSLoader.vue +2 -1
  37. package/components/FSOptionGroup.vue +24 -20
  38. package/components/FSOptionItem.vue +4 -2
  39. package/components/FSPagination.vue +4 -2
  40. package/components/FSRadio.vue +4 -2
  41. package/components/FSRadioGroup.vue +6 -4
  42. package/components/FSRow.vue +2 -1
  43. package/components/FSSlideGroup.vue +2 -1
  44. package/components/FSSlider.vue +4 -2
  45. package/components/FSSpan.vue +2 -1
  46. package/components/FSSwitch.vue +12 -8
  47. package/components/FSTab.vue +4 -2
  48. package/components/FSTabs.vue +4 -2
  49. package/components/FSTag.vue +11 -4
  50. package/components/FSTagGroup.vue +4 -2
  51. package/components/FSText.vue +4 -2
  52. package/components/FSToggleSet.vue +4 -2
  53. package/components/FSTooltip.vue +15 -4
  54. package/components/FSWindow.vue +2 -1
  55. package/components/FSWrapGroup.vue +2 -1
  56. package/components/autocompletes/FSAutocompleteLanguage.vue +3 -4
  57. package/components/autocompletes/FSAutocompleteTimeZone.vue +3 -2
  58. package/components/buttons/FSButtonFile.vue +2 -2
  59. package/components/buttons/FSButtonFileIcon.vue +2 -2
  60. package/components/buttons/FSButtonFileLabel.vue +2 -2
  61. package/components/buttons/FSButtonFileMini.vue +2 -2
  62. package/components/deviceOrganisations/FSConnectivity.vue +3 -2
  63. package/components/deviceOrganisations/FSConnectivityCard.vue +3 -2
  64. package/components/deviceOrganisations/FSStatus.vue +3 -2
  65. package/components/deviceOrganisations/FSStatusCard.vue +3 -2
  66. package/components/deviceOrganisations/FSStatusesCarousel.vue +3 -2
  67. package/components/deviceOrganisations/FSStatusesRow.vue +3 -2
  68. package/components/deviceOrganisations/FSWorstAlert.vue +3 -2
  69. package/components/deviceOrganisations/FSWorstAlertCard.vue +4 -2
  70. package/components/fields/FSAutocompleteField.vue +4 -3
  71. package/components/fields/FSBaseField.vue +2 -1
  72. package/components/fields/FSColorField.vue +2 -1
  73. package/components/fields/FSDateField.vue +4 -2
  74. package/components/fields/FSDateRangeField.vue +4 -2
  75. package/components/fields/FSDateTimeField.vue +4 -2
  76. package/components/fields/FSDateTimeRangeField.vue +4 -2
  77. package/components/fields/FSIconField.vue +5 -3
  78. package/components/fields/FSMagicConfigField.vue +2 -1
  79. package/components/fields/FSMagicField.vue +2 -1
  80. package/components/fields/FSNumberField.vue +2 -1
  81. package/components/fields/FSPasswordField.vue +2 -1
  82. package/components/fields/FSRichTextField.vue +8 -4
  83. package/components/fields/FSSearchField.vue +4 -2
  84. package/components/fields/FSSelectField.vue +5 -4
  85. package/components/fields/FSTagField.vue +4 -2
  86. package/components/fields/FSTermField.vue +2 -1
  87. package/components/fields/FSTextArea.vue +2 -1
  88. package/components/fields/FSTextField.vue +2 -1
  89. package/components/fields/FSTimeField.vue +2 -1
  90. package/components/fields/FSTimeSlotField.vue +2 -1
  91. package/components/fields/FSTranslateField.vue +4 -2
  92. package/components/fields/FSTreeViewField.vue +4 -3
  93. package/components/lists/FSDataIteratorItem.vue +4 -2
  94. package/components/lists/FSDataTableUI.vue +9 -5
  95. package/components/lists/FSFilterButton.vue +4 -2
  96. package/components/lists/FSHiddenButton.vue +4 -2
  97. package/components/selects/FSSelectAutoRefresh.vue +2 -1
  98. package/components/selects/FSSelectDashboardVariableType.vue +2 -1
  99. package/components/selects/FSSelectDateSetting.vue +2 -1
  100. package/components/selects/FSSelectDays.vue +2 -1
  101. package/components/tiles/FSDashboardOrganisationTileUI.vue +4 -2
  102. package/components/tiles/FSDashboardOrganisationTypeTileUI.vue +4 -2
  103. package/components/tiles/FSDashboardShallowTileUI.vue +4 -2
  104. package/components/tiles/FSDeviceOrganisationTileUI.vue +3 -2
  105. package/components/tiles/FSFolderTileUI.vue +4 -2
  106. package/components/tiles/FSGroupTileUI.vue +4 -3
  107. package/components/tiles/FSSimpleTileUI.vue +4 -2
  108. package/components/tiles/FSTile.vue +5 -4
  109. package/components/tiles/FSUserOrganisationTileUI.vue +2 -1
  110. package/composables/useAuthTokens.ts +2 -1
  111. package/composables/useAutocomplete.ts +2 -1
  112. package/composables/useColors.ts +2 -1
  113. package/composables/useDebounce.ts +2 -1
  114. package/composables/useRules.ts +2 -1
  115. package/composables/useSlots.ts +2 -1
  116. package/composables/useTables.ts +1 -1
  117. package/composables/useTreeView.ts +2 -1
  118. package/elements/FSFormElement.ts +2 -1
  119. package/icons/flags/France.vue +21 -5
  120. package/icons/flags/Germany.vue +16 -4
  121. package/icons/flags/GreatBritain.vue +25 -6
  122. package/icons/flags/Italy.vue +21 -5
  123. package/icons/flags/Portugal.vue +225 -51
  124. package/icons/flags/Spain.vue +2781 -543
  125. package/icons/flags/UnitedStates.vue +31 -7
  126. package/icons/widgetTemplates/DevicesWidget.vue +189 -189
  127. package/icons/widgetTemplates/ProfileWidget.vue +9 -9
  128. package/icons/widgetTemplates/TextWidget.vue +6 -6
  129. package/models/breadcrumbs.ts +1 -1
  130. package/models/deviceAlerts.ts +1 -1
  131. package/models/deviceConnectivities.ts +1 -1
  132. package/package.json +5 -5
  133. package/plugins/colorPlugin.ts +2 -2
  134. package/shims-plugin.d.ts +2 -2
  135. package/styles/components/fs_option_group.scss +1 -0
  136. package/styles/components/fs_select_field.scss +1 -0
  137. package/themes/default.ts +1 -1
  138. package/utils/lexical.ts +1 -1
@@ -55,10 +55,12 @@
55
55
  </template>
56
56
 
57
57
  <script lang="ts">
58
- import { computed, defineComponent, PropType } from "vue";
58
+ import type { PropType } from "vue";
59
+ import { computed, defineComponent } from "vue";
59
60
 
60
61
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
61
- import { FSDeviceAlert, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
62
+ import type { FSDeviceAlert} from "@dative-gpi/foundation-shared-components/models";
63
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
62
64
  import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
63
65
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
64
66
 
@@ -292,7 +292,8 @@
292
292
  </template>
293
293
 
294
294
  <script lang="ts">
295
- import { computed, defineComponent, PropType, ref, watch } from "vue";
295
+ import type { PropType} from "vue";
296
+ import { computed, defineComponent, ref, watch } from "vue";
296
297
 
297
298
  import { useBreakpoints, useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
298
299
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -488,7 +489,7 @@ export default defineComponent({
488
489
  if (props.multiple) {
489
490
  if (Array.isArray(props.modelValue)) {
490
491
  return props.modelValue.map((value: any) => {
491
- const item = props.items.find((item: Object) => item[props.itemValue] === value);
492
+ const item = props.items.find((item: object) => item[props.itemValue] === value);
492
493
  if (item) {
493
494
  return item[props.itemTitle];
494
495
  }
@@ -496,7 +497,7 @@ export default defineComponent({
496
497
  }
497
498
  }
498
499
  if (props.modelValue) {
499
- const item = props.items.find((item: Object) => item[props.itemValue] === props.modelValue);
500
+ const item = props.items.find((item: object) => item[props.itemValue] === props.modelValue);
500
501
  if (item) {
501
502
  return item[props.itemTitle];
502
503
  }
@@ -54,7 +54,8 @@
54
54
  </template>
55
55
 
56
56
  <script lang="ts">
57
- import { computed, defineComponent, PropType } from "vue";
57
+ import type { PropType } from "vue";
58
+ import { computed, defineComponent } from "vue";
58
59
 
59
60
  import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
60
61
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -133,7 +133,8 @@
133
133
  </template>
134
134
 
135
135
  <script lang="ts">
136
- import { computed, defineComponent, PropType, ref } from "vue";
136
+ import type { PropType} from "vue";
137
+ import { computed, defineComponent, ref } from "vue";
137
138
 
138
139
  import { getPercentageFromHex, getHexFromPercentage } from "@dative-gpi/foundation-shared-components/utils";
139
140
  import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
@@ -147,10 +147,12 @@
147
147
  </template>
148
148
 
149
149
  <script lang="ts">
150
- import { computed, defineComponent, PropType, ref } from "vue";
150
+ import type { PropType} from "vue";
151
+ import { computed, defineComponent, ref } from "vue";
151
152
 
152
153
  import { useBreakpoints, useRules } from "@dative-gpi/foundation-shared-components/composables";
153
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
154
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
155
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
154
156
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
155
157
 
156
158
  import FSDialogMenu from "../FSDialogMenu.vue";
@@ -58,9 +58,11 @@
58
58
  </template>
59
59
 
60
60
  <script lang="ts">
61
- import { computed, defineComponent, PropType, ref } from "vue";
61
+ import type { PropType} from "vue";
62
+ import { computed, defineComponent, ref } from "vue";
62
63
 
63
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
64
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
65
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
64
66
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
65
67
  import { useRules } from "@dative-gpi/foundation-shared-components/composables";
66
68
 
@@ -193,10 +193,12 @@
193
193
  </template>
194
194
 
195
195
  <script lang="ts">
196
- import { computed, defineComponent, PropType, ref, watch } from "vue";
196
+ import type { PropType} from "vue";
197
+ import { computed, defineComponent, ref, watch } from "vue";
197
198
 
198
199
  import { useBreakpoints, useRules } from "@dative-gpi/foundation-shared-components/composables";
199
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
200
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
201
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
200
202
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
201
203
 
202
204
  import FSDialogMenu from "../FSDialogMenu.vue";
@@ -76,9 +76,11 @@
76
76
  </template>
77
77
 
78
78
  <script lang="ts">
79
- import { computed, defineComponent, PropType, ref } from "vue";
79
+ import type { PropType} from "vue";
80
+ import { computed, defineComponent, ref } from "vue";
80
81
 
81
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
82
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
83
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
82
84
  import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
83
85
  import { useRules } from "@dative-gpi/foundation-shared-components/composables";
84
86
 
@@ -43,12 +43,14 @@
43
43
  </template>
44
44
 
45
45
  <script lang="ts">
46
- import { computed, defineComponent, PropType, ref, watch } from "vue";
46
+ import type { PropType} from "vue";
47
+ import { computed, defineComponent, ref, watch } from "vue";
47
48
 
48
49
  import { Icons, sortByLevenshteinDistance } from "@dative-gpi/foundation-shared-components/utils";
49
50
  import { useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
50
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
51
- import { FSToggle } from "@dative-gpi/foundation-shared-components/models";
51
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
52
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
53
+ import type { FSToggle } from "@dative-gpi/foundation-shared-components/models";
52
54
 
53
55
  import FSToggleSet from "../FSToggleSet.vue";
54
56
  import FSTextField from "./FSTextField.vue";
@@ -38,7 +38,8 @@
38
38
  </template>
39
39
 
40
40
  <script lang="ts">
41
- import { computed, defineComponent, PropType } from "vue";
41
+ import type { PropType } from "vue";
42
+ import { computed, defineComponent } from "vue";
42
43
 
43
44
  import { DateRules, IconRules, NumberRules, TextRules, TimeRules } from "../../models";
44
45
  import { useMagicFieldProvider } from "../../composables";
@@ -58,7 +58,8 @@
58
58
  </template>
59
59
 
60
60
  <script lang="ts">
61
- import { computed, defineComponent, PropType } from "vue";
61
+ import type { PropType } from "vue";
62
+ import { computed, defineComponent } from "vue";
62
63
 
63
64
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
64
65
 
@@ -19,7 +19,8 @@
19
19
  </template>
20
20
 
21
21
  <script lang="ts">
22
- import { defineComponent, PropType } from "vue";
22
+ import type { PropType } from "vue";
23
+ import { defineComponent } from "vue";
23
24
 
24
25
  import FSTextField from "./FSTextField.vue";
25
26
 
@@ -33,7 +33,8 @@
33
33
  </template>
34
34
 
35
35
  <script lang="ts">
36
- import { computed, defineComponent, PropType, ref } from "vue";
36
+ import type { PropType} from "vue";
37
+ import { computed, defineComponent, ref } from "vue";
37
38
 
38
39
  import { useColors } from "@dative-gpi/foundation-shared-components/composables";
39
40
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -176,16 +176,20 @@
176
176
  </template>
177
177
 
178
178
  <script lang="ts">
179
- import { $createParagraphNode, $getSelection, $isElementNode, $isRangeSelection, $setSelection, CAN_UNDO_COMMAND, createEditor, ElementNode, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, ParagraphNode, UNDO_COMMAND } from "lexical";
180
- import { $createHeadingNode, HeadingNode, HeadingTagType, registerRichText } from "@lexical/rich-text";
179
+ import type { ElementNode} from "lexical";
180
+ import { $createParagraphNode, $getSelection, $isElementNode, $isRangeSelection, $setSelection, CAN_UNDO_COMMAND, createEditor, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, ParagraphNode, UNDO_COMMAND } from "lexical";
181
+ import type { HeadingTagType} from "@lexical/rich-text";
182
+ import { $createHeadingNode, HeadingNode, registerRichText } from "@lexical/rich-text";
181
183
  import { createEmptyHistoryState, registerHistory } from "@lexical/history";
182
- import { computed, defineComponent, onMounted, PropType, ref, watch } from "vue";
184
+ import type { PropType} from "vue";
185
+ import { computed, defineComponent, onMounted, ref, watch } from "vue";
183
186
  import { $createLinkNode, $isLinkNode, LinkNode } from "@lexical/link";
184
187
  import { $wrapNodes } from "@lexical/selection";
185
188
 
186
189
  import { useBreakpoints, useColors } from "@dative-gpi/foundation-shared-components/composables";
187
190
  import { getAncestor, getSelectedNode } from "@dative-gpi/foundation-shared-components/utils";
188
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
191
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
192
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
189
193
 
190
194
  import FSTextField from "./FSTextField.vue";
191
195
  import FSIcon from "../FSIcon.vue";
@@ -51,10 +51,12 @@
51
51
  </template>
52
52
 
53
53
  <script lang="ts">
54
- import { computed, defineComponent, PropType, ref, watch } from "vue";
54
+ import type { PropType} from "vue";
55
+ import { computed, defineComponent, ref, watch } from "vue";
55
56
 
56
57
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
57
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
58
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
59
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
58
60
 
59
61
  import { useSlots } from "../../composables";
60
62
 
@@ -241,7 +241,8 @@
241
241
  </template>
242
242
 
243
243
  <script lang="ts">
244
- import { computed, defineComponent, PropType, ref } from "vue";
244
+ import type { PropType} from "vue";
245
+ import { computed, defineComponent, ref } from "vue";
245
246
 
246
247
  import { useBreakpoints, useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
247
248
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -369,7 +370,7 @@ export default defineComponent({
369
370
  };
370
371
  });
371
372
 
372
- const listStyle = computed((): { [key: string] : Object } => {
373
+ const listStyle = computed((): { [key: string] : object } => {
373
374
  return {
374
375
  style: style.value
375
376
  };
@@ -386,7 +387,7 @@ export default defineComponent({
386
387
  if (props.multiple) {
387
388
  if (Array.isArray(props.modelValue)) {
388
389
  return props.modelValue.map((value: any) => {
389
- const item = props.items.find((item: Object) => item[props.itemValue] === value);
390
+ const item = props.items.find((item: object) => item[props.itemValue] === value);
390
391
  if (item) {
391
392
  return item[props.itemTitle];
392
393
  }
@@ -394,7 +395,7 @@ export default defineComponent({
394
395
  }
395
396
  }
396
397
  if (props.modelValue) {
397
- const item = props.items.find((item: Object) => item[props.itemValue] === props.modelValue);
398
+ const item = props.items.find((item: object) => item[props.itemValue] === props.modelValue);
398
399
  if (item) {
399
400
  return item[props.itemTitle];
400
401
  }
@@ -49,10 +49,12 @@
49
49
  </template>
50
50
 
51
51
  <script lang="ts">
52
- import { computed, defineComponent, PropType, ref } from "vue";
52
+ import type { PropType} from "vue";
53
+ import { computed, defineComponent, ref } from "vue";
53
54
 
54
55
  import { useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
55
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
56
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
57
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
56
58
 
57
59
  import FSTextField from "./FSTextField.vue";
58
60
  import FSTagGroup from "../FSTagGroup.vue";
@@ -77,7 +77,8 @@
77
77
  </template>
78
78
 
79
79
  <script lang="ts">
80
- import { computed, defineComponent, onMounted, PropType, ref} from "vue";
80
+ import type { PropType} from "vue";
81
+ import { computed, defineComponent, onMounted, ref} from "vue";
81
82
  import _ from "lodash";
82
83
 
83
84
  import { DateRules, NumberRules, TextRules } from "@dative-gpi/foundation-shared-components/models";
@@ -54,7 +54,8 @@
54
54
  </template>
55
55
 
56
56
  <script lang="ts">
57
- import { computed, defineComponent, PropType } from "vue";
57
+ import type { PropType } from "vue";
58
+ import { computed, defineComponent } from "vue";
58
59
 
59
60
  import { useColors, useBreakpoints, useRules } from "@dative-gpi/foundation-shared-components/composables";
60
61
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -65,7 +65,8 @@
65
65
  </template>
66
66
 
67
67
  <script lang="ts">
68
- import { computed, defineComponent, PropType } from "vue";
68
+ import type { PropType } from "vue";
69
+ import { computed, defineComponent } from "vue";
69
70
 
70
71
  import { useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
71
72
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -53,7 +53,8 @@
53
53
  </template>
54
54
 
55
55
  <script lang="ts">
56
- import { computed, defineComponent, PropType, ref } from "vue";
56
+ import type { PropType} from "vue";
57
+ import { computed, defineComponent, ref } from "vue";
57
58
 
58
59
  import { useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
59
60
  import { getTimeScaleIndex, timeScale } from "@dative-gpi/foundation-shared-components/utils";
@@ -61,7 +61,8 @@
61
61
  </template>
62
62
 
63
63
  <script lang="ts">
64
- import { computed, defineComponent, PropType } from "vue";
64
+ import type { PropType } from "vue";
65
+ import { computed, defineComponent } from "vue";
65
66
 
66
67
  import { useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
67
68
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -84,9 +84,11 @@
84
84
  </template>
85
85
 
86
86
  <script lang="ts">
87
- import { computed, defineComponent, onMounted, PropType, ref } from "vue";
87
+ import type { PropType} from "vue";
88
+ import { computed, defineComponent, onMounted, ref } from "vue";
88
89
 
89
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
90
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
91
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
90
92
  import { useLanguages } from "@dative-gpi/foundation-shared-services/composables";
91
93
 
92
94
  import { useColors, useSlots } from "../../composables";
@@ -240,7 +240,8 @@
240
240
  </template>
241
241
 
242
242
  <script lang="ts">
243
- import { computed, defineComponent, PropType, ref } from "vue";
243
+ import type { PropType} from "vue";
244
+ import { computed, defineComponent, ref } from "vue";
244
245
 
245
246
  import { useBreakpoints, useColors, useRules, useSlots } from "@dative-gpi/foundation-shared-components/composables";
246
247
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -405,7 +406,7 @@ export default defineComponent({
405
406
  if (props.multiple) {
406
407
  if (Array.isArray(props.modelValue)) {
407
408
  return props.modelValue.map((value: any) => {
408
- const item = props.items.find((item: Object) => item[props.itemValue] === value);
409
+ const item = props.items.find((item: object) => item[props.itemValue] === value);
409
410
  if (item) {
410
411
  return item[props.itemTitle];
411
412
  }
@@ -413,7 +414,7 @@ export default defineComponent({
413
414
  }
414
415
  }
415
416
  if (props.modelValue) {
416
- const item = props.items.find((item: Object) => item[props.itemValue] === props.modelValue);
417
+ const item = props.items.find((item: object) => item[props.itemValue] === props.modelValue);
417
418
  if (item) {
418
419
  return item[props.itemTitle];
419
420
  }
@@ -67,9 +67,11 @@
67
67
  </template>
68
68
 
69
69
  <script lang="ts">
70
- import { computed, defineComponent, PropType } from "vue";
70
+ import type { PropType } from "vue";
71
+ import { computed, defineComponent } from "vue";
71
72
 
72
- import { ColorEnum, FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
73
+ import type { FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
74
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
73
75
 
74
76
  import FSCheckbox from "../FSCheckbox.vue";
75
77
  import FSCard from "../FSCard.vue";
@@ -689,10 +689,12 @@
689
689
  </template>
690
690
 
691
691
  <script lang="ts">
692
- import { computed, defineComponent, nextTick, onMounted, onUnmounted, PropType, ref, Ref, Slot, watch } from "vue";
692
+ import type { PropType, Ref, Slot} from "vue";
693
+ import { computed, defineComponent, nextTick, onMounted, onUnmounted, ref, watch } from "vue";
693
694
  import { useRouter } from "vue-router";
694
695
 
695
- import { ColorEnum, FSDataTableColumn, FSDataTableFilter, FSDataTableOrder, FSToggle } from "@dative-gpi/foundation-shared-components/models";
696
+ import type { FSDataTableColumn, FSDataTableFilter, FSDataTableOrder, FSToggle } from "@dative-gpi/foundation-shared-components/models";
697
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
696
698
  import { useBreakpoints, useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
697
699
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
698
700
  import { uuidv4 } from "@dative-gpi/bones-ui/tools/uuid"
@@ -1387,10 +1389,12 @@ export default defineComponent({
1387
1389
  target.insertAdjacentElement("beforebegin", dragged);
1388
1390
  target.classList.remove("fs-dropzone-include");
1389
1391
  }
1390
- else if (dragged?.getAttribute("data-initial-index") !== null) {
1392
+ else if (dragged!.getAttribute("data-initial-index") !== null) {
1391
1393
  target.classList.add("fs-dropzone-include");
1392
- const tbodyElement = (event.target as HTMLElement)?.closest(elementContainerSelector) as HTMLElement;
1393
- resetRowIndex(+dragged?.getAttribute('data-initial-index')!, Array.from(tbodyElement.children).indexOf(dragged), dragged, tbodyElement);
1394
+ const tbodyElement = (event.target as HTMLElement)?.closest(elementContainerSelector) as HTMLElement ?? null;
1395
+ if (tbodyElement !== null) {
1396
+ resetRowIndex(+dragged!.getAttribute('data-initial-index')!, Array.from(tbodyElement.children).indexOf(dragged), dragged, tbodyElement);
1397
+ }
1394
1398
  }
1395
1399
  }
1396
1400
  }
@@ -87,9 +87,11 @@
87
87
  </template>
88
88
 
89
89
  <script lang="ts">
90
- import { computed, defineComponent, PropType, ref } from "vue";
90
+ import type { PropType} from "vue";
91
+ import { computed, defineComponent, ref } from "vue";
91
92
 
92
- import { ColorBase, ColorEnum, FSDataTableColumn, FSDataTableFilter } from "@dative-gpi/foundation-shared-components/models";
93
+ import type { ColorBase, FSDataTableColumn, FSDataTableFilter } from "@dative-gpi/foundation-shared-components/models";
94
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
93
95
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
94
96
 
95
97
  import FSSearchField from "../fields/FSSearchField.vue";
@@ -61,9 +61,11 @@
61
61
  </template>
62
62
 
63
63
  <script lang="ts">
64
- import { defineComponent, PropType, ref } from "vue";
64
+ import type { PropType} from "vue";
65
+ import { defineComponent, ref } from "vue";
65
66
 
66
- import { ColorBase, ColorEnum, FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
67
+ import type { ColorBase, FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
68
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
67
69
 
68
70
  import FSCard from "../FSCard.vue";
69
71
  import FSChip from "../FSChip.vue";
@@ -9,7 +9,8 @@
9
9
  </template>
10
10
 
11
11
  <script lang="ts">
12
- import { computed, PropType, defineComponent } from "vue";
12
+ import type { PropType} from "vue";
13
+ import { computed, defineComponent } from "vue";
13
14
 
14
15
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
15
16
  import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
@@ -9,7 +9,8 @@
9
9
  </template>
10
10
 
11
11
  <script lang="ts">
12
- import { computed, PropType, defineComponent } from "vue";
12
+ import type { PropType} from "vue";
13
+ import { computed, defineComponent } from "vue";
13
14
 
14
15
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
15
16
  import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/models";
@@ -9,7 +9,8 @@
9
9
  </template>
10
10
 
11
11
  <script lang="ts">
12
- import { computed, defineComponent, PropType } from "vue";
12
+ import type { PropType } from "vue";
13
+ import { computed, defineComponent } from "vue";
13
14
 
14
15
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
15
16
  import { DateSetting } from "@dative-gpi/foundation-shared-domain/models";
@@ -9,7 +9,8 @@
9
9
  </template>
10
10
 
11
11
  <script lang="ts">
12
- import { computed, PropType, defineComponent } from "vue";
12
+ import type { PropType} from "vue";
13
+ import { computed, defineComponent } from "vue";
13
14
 
14
15
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
15
16
  import { Days } from "@dative-gpi/foundation-shared-domain/models";
@@ -7,9 +7,11 @@
7
7
  </template>
8
8
 
9
9
  <script lang="ts">
10
- import { computed, defineComponent, PropType } from "vue";
10
+ import type { PropType } from "vue";
11
+ import { computed, defineComponent } from "vue";
11
12
 
12
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
14
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
15
 
14
16
  import FSSimpleTileUI from "./FSSimpleTileUI.vue";
15
17
 
@@ -7,9 +7,11 @@
7
7
  </template>
8
8
 
9
9
  <script lang="ts">
10
- import { computed, defineComponent, PropType } from "vue";
10
+ import type { PropType } from "vue";
11
+ import { computed, defineComponent } from "vue";
11
12
 
12
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
14
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
15
 
14
16
  import FSSimpleTileUI from "./FSSimpleTileUI.vue";
15
17
 
@@ -7,9 +7,11 @@
7
7
  </template>
8
8
 
9
9
  <script lang="ts">
10
- import { computed, defineComponent, PropType } from "vue";
10
+ import type { PropType } from "vue";
11
+ import { computed, defineComponent } from "vue";
11
12
 
12
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
14
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
13
15
 
14
16
  import FSSimpleTileUI from "./FSSimpleTileUI.vue";
15
17
 
@@ -63,9 +63,10 @@
63
63
  </template>
64
64
 
65
65
  <script lang="ts">
66
- import { computed, defineComponent, PropType } from "vue";
66
+ import type { PropType } from "vue";
67
+ import { computed, defineComponent } from "vue";
67
68
 
68
- import { FSModelStatus, FSDeviceStatus, FSDeviceAlert, FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
69
+ import type { FSModelStatus, FSDeviceStatus, FSDeviceAlert, FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
69
70
  import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
70
71
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
71
72
 
@@ -8,9 +8,11 @@
8
8
  </template>
9
9
 
10
10
  <script lang="ts">
11
- import { computed, defineComponent, PropType } from "vue";
11
+ import type { PropType } from "vue";
12
+ import { computed, defineComponent } from "vue";
12
13
 
13
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
14
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
15
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
14
16
 
15
17
  import FSSimpleTileUI from "./FSSimpleTileUI.vue";
16
18
 
@@ -100,7 +100,8 @@
100
100
  </template>
101
101
 
102
102
  <script lang="ts">
103
- import { computed, defineComponent, PropType } from "vue";
103
+ import type { PropType } from "vue";
104
+ import { computed, defineComponent } from "vue";
104
105
 
105
106
  import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
106
107
  import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
@@ -139,12 +140,12 @@ export default defineComponent({
139
140
  default: null
140
141
  },
141
142
  recursiveGroupsIds: {
142
- type: Array as PropType<String[]>,
143
+ type: Array as PropType<string[]>,
143
144
  required: false,
144
145
  default: () => []
145
146
  },
146
147
  recursiveDeviceOrganisationsIds: {
147
- type: Array as PropType<String[]>,
148
+ type: Array as PropType<string[]>,
148
149
  required: false,
149
150
  default: () => []
150
151
  },
@@ -49,10 +49,12 @@
49
49
  </template>
50
50
 
51
51
  <script lang="ts">
52
- import { computed, defineComponent, PropType } from "vue";
52
+ import type { PropType } from "vue";
53
+ import { computed, defineComponent } from "vue";
53
54
 
54
55
  import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
55
- import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
56
+ import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
57
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
56
58
 
57
59
  import FSIconCard from "../FSIconCard.vue";
58
60
  import FSImage from "../FSImage.vue";