@dative-gpi/foundation-shared-components 0.0.174 → 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.
- package/components/FSAccordion.vue +2 -1
- package/components/FSAccordionPanel.vue +2 -1
- package/components/FSBadge.vue +7 -3
- package/components/FSBreadcrumbs.vue +4 -2
- package/components/FSButton.vue +5 -3
- package/components/FSCalendar.vue +4 -2
- package/components/FSCalendarTwin.vue +4 -2
- package/components/FSCard.vue +4 -2
- package/components/FSCardPlaceholder.vue +2 -1
- package/components/FSCheckbox.vue +4 -2
- package/components/FSChip.vue +4 -2
- package/components/FSClickable.vue +5 -3
- package/components/FSClock.vue +4 -2
- package/components/FSCol.vue +2 -1
- package/components/FSColor.vue +4 -2
- package/components/FSColorIcon.vue +5 -3
- package/components/FSDialog.vue +4 -2
- package/components/FSDialogForm.vue +4 -2
- package/components/FSDialogMenu.vue +4 -2
- package/components/FSDialogMultiForm.vue +4 -2
- package/components/FSDialogSubmit.vue +4 -2
- package/components/FSDivider.vue +4 -2
- package/components/FSEditImage.vue +4 -2
- package/components/FSErrorToast.vue +2 -1
- package/components/FSFadeOut.vue +2 -1
- package/components/FSForm.vue +2 -1
- package/components/FSGrid.vue +4 -2
- package/components/FSGridMosaic.vue +3 -2
- package/components/FSIcon.vue +3 -2
- package/components/FSIconCard.vue +4 -2
- package/components/FSIconCheck.vue +2 -1
- package/components/FSIconFlag.vue +2 -1
- package/components/FSImage.vue +2 -1
- package/components/FSLabel.vue +4 -2
- package/components/FSLink.vue +5 -3
- package/components/FSLoader.vue +2 -1
- package/components/FSOptionGroup.vue +24 -20
- package/components/FSOptionItem.vue +4 -2
- package/components/FSPagination.vue +4 -2
- package/components/FSRadio.vue +4 -2
- package/components/FSRadioGroup.vue +6 -4
- package/components/FSRow.vue +2 -1
- package/components/FSSlideGroup.vue +2 -1
- package/components/FSSlider.vue +4 -2
- package/components/FSSpan.vue +2 -1
- package/components/FSSwitch.vue +12 -8
- package/components/FSTab.vue +4 -2
- package/components/FSTabs.vue +4 -2
- package/components/FSTag.vue +11 -4
- package/components/FSTagGroup.vue +4 -2
- package/components/FSText.vue +4 -2
- package/components/FSToggleSet.vue +4 -2
- package/components/FSTooltip.vue +15 -4
- package/components/FSWindow.vue +2 -1
- package/components/FSWrapGroup.vue +2 -1
- package/components/autocompletes/FSAutocompleteLanguage.vue +3 -4
- package/components/autocompletes/FSAutocompleteTimeZone.vue +3 -2
- package/components/buttons/FSButtonFile.vue +2 -2
- package/components/buttons/FSButtonFileIcon.vue +2 -2
- package/components/buttons/FSButtonFileLabel.vue +2 -2
- package/components/buttons/FSButtonFileMini.vue +2 -2
- package/components/deviceOrganisations/FSConnectivity.vue +3 -2
- package/components/deviceOrganisations/FSConnectivityCard.vue +3 -2
- package/components/deviceOrganisations/FSStatus.vue +3 -2
- package/components/deviceOrganisations/FSStatusCard.vue +3 -2
- package/components/deviceOrganisations/FSStatusesCarousel.vue +3 -2
- package/components/deviceOrganisations/FSStatusesRow.vue +3 -2
- package/components/deviceOrganisations/FSWorstAlert.vue +3 -2
- package/components/deviceOrganisations/FSWorstAlertCard.vue +4 -2
- package/components/fields/FSAutocompleteField.vue +4 -3
- package/components/fields/FSBaseField.vue +2 -1
- package/components/fields/FSColorField.vue +2 -1
- package/components/fields/FSDateField.vue +4 -2
- package/components/fields/FSDateRangeField.vue +4 -2
- package/components/fields/FSDateTimeField.vue +4 -2
- package/components/fields/FSDateTimeRangeField.vue +4 -2
- package/components/fields/FSIconField.vue +5 -3
- package/components/fields/FSMagicConfigField.vue +2 -1
- package/components/fields/FSMagicField.vue +2 -1
- package/components/fields/FSNumberField.vue +2 -1
- package/components/fields/FSPasswordField.vue +2 -1
- package/components/fields/FSRichTextField.vue +8 -4
- package/components/fields/FSSearchField.vue +4 -2
- package/components/fields/FSSelectField.vue +5 -4
- package/components/fields/FSTagField.vue +4 -2
- package/components/fields/FSTermField.vue +2 -1
- package/components/fields/FSTextArea.vue +2 -1
- package/components/fields/FSTextField.vue +2 -1
- package/components/fields/FSTimeField.vue +2 -1
- package/components/fields/FSTimeSlotField.vue +2 -1
- package/components/fields/FSTranslateField.vue +4 -2
- package/components/fields/FSTreeViewField.vue +4 -3
- package/components/lists/FSDataIteratorItem.vue +4 -2
- package/components/lists/FSDataTableUI.vue +9 -5
- package/components/lists/FSFilterButton.vue +4 -2
- package/components/lists/FSHiddenButton.vue +4 -2
- package/components/selects/FSSelectAutoRefresh.vue +2 -1
- package/components/selects/FSSelectDashboardVariableType.vue +2 -1
- package/components/selects/FSSelectDateSetting.vue +2 -1
- package/components/selects/FSSelectDays.vue +2 -1
- package/components/tiles/FSDashboardOrganisationTileUI.vue +4 -2
- package/components/tiles/FSDashboardOrganisationTypeTileUI.vue +4 -2
- package/components/tiles/FSDashboardShallowTileUI.vue +4 -2
- package/components/tiles/FSDeviceOrganisationTileUI.vue +3 -2
- package/components/tiles/FSFolderTileUI.vue +4 -2
- package/components/tiles/FSGroupTileUI.vue +4 -3
- package/components/tiles/FSSimpleTileUI.vue +4 -2
- package/components/tiles/FSTile.vue +5 -4
- package/components/tiles/FSUserOrganisationTileUI.vue +2 -1
- package/composables/useAuthTokens.ts +2 -1
- package/composables/useAutocomplete.ts +2 -1
- package/composables/useColors.ts +2 -1
- package/composables/useDebounce.ts +2 -1
- package/composables/useRules.ts +2 -1
- package/composables/useSlots.ts +2 -1
- package/composables/useTables.ts +1 -1
- package/composables/useTreeView.ts +2 -1
- package/elements/FSFormElement.ts +2 -1
- package/icons/flags/France.vue +21 -5
- package/icons/flags/Germany.vue +16 -4
- package/icons/flags/GreatBritain.vue +25 -6
- package/icons/flags/Italy.vue +21 -5
- package/icons/flags/Portugal.vue +225 -51
- package/icons/flags/Spain.vue +2781 -543
- package/icons/flags/UnitedStates.vue +31 -7
- package/icons/widgetTemplates/DevicesWidget.vue +189 -189
- package/icons/widgetTemplates/ProfileWidget.vue +9 -9
- package/icons/widgetTemplates/TextWidget.vue +6 -6
- package/models/breadcrumbs.ts +1 -1
- package/models/deviceAlerts.ts +1 -1
- package/models/deviceConnectivities.ts +1 -1
- package/package.json +4 -4
- package/plugins/colorPlugin.ts +2 -2
- package/shims-plugin.d.ts +2 -2
- package/styles/components/fs_option_group.scss +1 -0
- package/styles/components/fs_select_field.scss +1 -0
- package/themes/default.ts +1 -1
- package/utils/lexical.ts +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSWrapGroup
|
|
3
|
-
v-if="['wrap'].includes(
|
|
3
|
+
v-if="['wrap'].includes(props.variant)"
|
|
4
4
|
class="fs-option-group"
|
|
5
|
-
:padding="
|
|
6
|
-
:gap="
|
|
5
|
+
:padding="props.padding"
|
|
6
|
+
:gap="props.gap"
|
|
7
7
|
:style="style"
|
|
8
8
|
>
|
|
9
9
|
<template
|
|
10
|
-
v-if="
|
|
10
|
+
v-if="props.values.length"
|
|
11
11
|
>
|
|
12
12
|
<template
|
|
13
13
|
v-if="!$slots.item"
|
|
14
14
|
>
|
|
15
15
|
<FSOptionItem
|
|
16
|
-
v-for="(item, index) in
|
|
16
|
+
v-for="(item, index) in props.values"
|
|
17
17
|
:prependIcon="item.prependIcon"
|
|
18
18
|
:appendIcon="item.appendIcon"
|
|
19
|
-
:editable="
|
|
19
|
+
:editable="props.editable"
|
|
20
20
|
:variant="getVariant(item)"
|
|
21
21
|
:color="getColor(item)"
|
|
22
22
|
:class="getClass(item)"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
v-else
|
|
31
31
|
>
|
|
32
32
|
<template
|
|
33
|
-
v-for="item in
|
|
33
|
+
v-for="item in props.values"
|
|
34
34
|
>
|
|
35
35
|
<slot
|
|
36
36
|
name="item"
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
<FSSlideGroup
|
|
48
48
|
v-else
|
|
49
49
|
class="fs-option-group"
|
|
50
|
-
:padding="
|
|
51
|
-
:gap="
|
|
50
|
+
:padding="props.padding"
|
|
51
|
+
:gap="props.gap"
|
|
52
52
|
:style="style"
|
|
53
53
|
>
|
|
54
54
|
<template
|
|
55
|
-
v-if="
|
|
55
|
+
v-if="props.values.length"
|
|
56
56
|
>
|
|
57
57
|
<template
|
|
58
58
|
v-if="!$slots.item"
|
|
59
59
|
>
|
|
60
60
|
<FSOptionItem
|
|
61
|
-
v-for="(item, index) in
|
|
61
|
+
v-for="(item, index) in props.values"
|
|
62
62
|
:prependIcon="item.prependIcon"
|
|
63
63
|
:appendIcon="item.appendIcon"
|
|
64
|
-
:editable="
|
|
64
|
+
:editable="props.editable"
|
|
65
65
|
:variant="getVariant(item)"
|
|
66
66
|
:color="getColor(item)"
|
|
67
67
|
:class="getClass(item)"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
v-else
|
|
76
76
|
>
|
|
77
77
|
<template
|
|
78
|
-
v-for="item in
|
|
78
|
+
v-for="item in props.values"
|
|
79
79
|
>
|
|
80
80
|
<slot
|
|
81
81
|
name="item"
|
|
@@ -92,12 +92,14 @@
|
|
|
92
92
|
</template>
|
|
93
93
|
|
|
94
94
|
<script lang="ts">
|
|
95
|
-
import {
|
|
95
|
+
import type { PropType } from "vue";
|
|
96
|
+
import { computed, defineComponent } from "vue";
|
|
96
97
|
|
|
97
|
-
import { ColorBase
|
|
98
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
99
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
98
100
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
99
101
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
100
|
-
import { FSToggle } from "@dative-gpi/foundation-shared-components/models";
|
|
102
|
+
import type { FSToggle } from "@dative-gpi/foundation-shared-components/models";
|
|
101
103
|
|
|
102
104
|
import FSOptionItem from "./FSOptionItem.vue";
|
|
103
105
|
import FSSlideGroup from "./FSSlideGroup.vue";
|
|
@@ -202,14 +204,15 @@ export default defineComponent({
|
|
|
202
204
|
const { getColors } = useColors();
|
|
203
205
|
|
|
204
206
|
const lights = getColors(ColorEnum.Light);
|
|
205
|
-
|
|
207
|
+
const backgrounds = getColors(ColorEnum.Background);
|
|
206
208
|
const colors = getColors(props.optionColor);
|
|
207
209
|
|
|
208
210
|
const style = computed((): { [key: string] : string | null | undefined } => {
|
|
209
211
|
return {
|
|
210
|
-
"--fs-option-group-
|
|
211
|
-
"--fs-option-group-border-
|
|
212
|
-
"--fs-option-group-border-
|
|
212
|
+
"--fs-option-group-background-color": backgrounds.base,
|
|
213
|
+
"--fs-option-group-border-size" : props.border ? "1px" : "0",
|
|
214
|
+
"--fs-option-group-border-radius" : sizeToVar(props.borderRadius),
|
|
215
|
+
"--fs-option-group-border-color" : lights.base
|
|
213
216
|
};
|
|
214
217
|
});
|
|
215
218
|
|
|
@@ -289,6 +292,7 @@ export default defineComponent({
|
|
|
289
292
|
};
|
|
290
293
|
|
|
291
294
|
return {
|
|
295
|
+
props,
|
|
292
296
|
style,
|
|
293
297
|
getVariant,
|
|
294
298
|
getColor,
|
|
@@ -52,9 +52,11 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script lang="ts">
|
|
55
|
-
import {
|
|
55
|
+
import type { PropType } from "vue";
|
|
56
|
+
import { computed, defineComponent } from "vue";
|
|
56
57
|
|
|
57
|
-
import { ColorBase
|
|
58
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
59
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
58
60
|
import { sizeToVar, varToSize } from "@dative-gpi/foundation-shared-components/utils";
|
|
59
61
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
60
62
|
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script lang="ts">
|
|
19
|
-
import {
|
|
19
|
+
import type { PropType } from "vue";
|
|
20
|
+
import { computed, defineComponent } from "vue";
|
|
20
21
|
|
|
21
|
-
import { ColorBase
|
|
22
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
23
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
22
24
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
23
25
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
24
26
|
|
package/components/FSRadio.vue
CHANGED
|
@@ -59,10 +59,12 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script lang="ts">
|
|
62
|
-
import {
|
|
62
|
+
import type { PropType } from "vue";
|
|
63
|
+
import { computed, defineComponent } from "vue";
|
|
63
64
|
|
|
64
65
|
import { useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
65
|
-
import { ColorBase
|
|
66
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
67
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
66
68
|
|
|
67
69
|
import FSIcon from "./FSIcon.vue";
|
|
68
70
|
import FSSpan from "./FSSpan.vue";
|
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script lang="ts">
|
|
32
|
-
import {
|
|
32
|
+
import type { PropType } from "vue";
|
|
33
|
+
import { defineComponent } from "vue";
|
|
33
34
|
|
|
34
|
-
import { ColorBase
|
|
35
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
36
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
35
37
|
|
|
36
38
|
import FSRadio from "./FSRadio.vue";
|
|
37
39
|
import FSCol from "./FSCol.vue";
|
|
@@ -71,11 +73,11 @@ export default defineComponent({
|
|
|
71
73
|
},
|
|
72
74
|
emits: ["update:modelValue"],
|
|
73
75
|
setup(props, { emit }) {
|
|
74
|
-
const isSelected = (item:
|
|
76
|
+
const isSelected = (item: string | boolean | number): boolean => {
|
|
75
77
|
return item == props.modelValue;
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
const onToggle = (item:
|
|
80
|
+
const onToggle = (item: string | boolean | number): void => {
|
|
79
81
|
if (item != props.modelValue) {
|
|
80
82
|
emit("update:modelValue", item);
|
|
81
83
|
}
|
package/components/FSRow.vue
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script lang="ts">
|
|
12
|
-
import {
|
|
12
|
+
import type { PropType } from "vue";
|
|
13
|
+
import { computed, defineComponent } from "vue";
|
|
13
14
|
|
|
14
15
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
15
16
|
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script lang="ts">
|
|
43
|
-
import {
|
|
43
|
+
import type { PropType} from "vue";
|
|
44
|
+
import { computed, defineComponent, onMounted, onUnmounted, ref } from "vue";
|
|
44
45
|
|
|
45
46
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
46
47
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
package/components/FSSlider.vue
CHANGED
|
@@ -64,9 +64,11 @@
|
|
|
64
64
|
</template>
|
|
65
65
|
|
|
66
66
|
<script lang="ts">
|
|
67
|
-
import {
|
|
67
|
+
import type { PropType } from "vue";
|
|
68
|
+
import { computed, defineComponent } from "vue";
|
|
68
69
|
|
|
69
|
-
import { ColorBase
|
|
70
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
71
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
70
72
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
71
73
|
|
|
72
74
|
import FSSpan from "./FSSpan.vue";
|
package/components/FSSpan.vue
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts">
|
|
14
|
-
import {
|
|
14
|
+
import type { PropType } from "vue";
|
|
15
|
+
import { computed, defineComponent } from "vue";
|
|
15
16
|
|
|
16
17
|
import { useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
17
18
|
|
package/components/FSSwitch.vue
CHANGED
|
@@ -20,17 +20,19 @@
|
|
|
20
20
|
/>
|
|
21
21
|
<slot>
|
|
22
22
|
<FSSpan
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
v-if="$props.label"
|
|
24
|
+
class="fs-switch-label"
|
|
25
|
+
:style="style"
|
|
26
|
+
:font="font"
|
|
27
|
+
@click.stop="onToggle"
|
|
28
28
|
>
|
|
29
29
|
{{ $props.label }}
|
|
30
30
|
</FSSpan>
|
|
31
31
|
</slot>
|
|
32
32
|
</FSRow>
|
|
33
|
-
<slot
|
|
33
|
+
<slot
|
|
34
|
+
name="description"
|
|
35
|
+
>
|
|
34
36
|
<FSSpan
|
|
35
37
|
v-if="$props.description"
|
|
36
38
|
class="fs-switch-description"
|
|
@@ -44,10 +46,12 @@
|
|
|
44
46
|
</template>
|
|
45
47
|
|
|
46
48
|
<script lang="ts">
|
|
47
|
-
import {
|
|
49
|
+
import type { PropType } from "vue";
|
|
50
|
+
import { computed, defineComponent } from "vue";
|
|
48
51
|
|
|
49
52
|
import { useColors, useRules } from "@dative-gpi/foundation-shared-components/composables";
|
|
50
|
-
import { ColorBase
|
|
53
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
54
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
51
55
|
|
|
52
56
|
import FSSpan from "./FSSpan.vue";
|
|
53
57
|
import FSCol from "./FSCol.vue";
|
package/components/FSTab.vue
CHANGED
|
@@ -55,9 +55,11 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<script lang="ts">
|
|
58
|
-
import {
|
|
58
|
+
import type { PropType } from "vue";
|
|
59
|
+
import { defineComponent } from "vue";
|
|
59
60
|
|
|
60
|
-
import { ColorBase
|
|
61
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
62
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
61
63
|
|
|
62
64
|
import FSSpan from "./FSSpan.vue";
|
|
63
65
|
import FSIcon from "./FSIcon.vue";
|
package/components/FSTabs.vue
CHANGED
|
@@ -22,10 +22,12 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script lang="ts">
|
|
25
|
-
import {
|
|
25
|
+
import type { PropType } from "vue";
|
|
26
|
+
import { computed, defineComponent } from "vue";
|
|
26
27
|
|
|
27
28
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
28
|
-
import { ColorBase
|
|
29
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
30
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
29
31
|
|
|
30
32
|
export default defineComponent({
|
|
31
33
|
name: "FSTabs",
|
package/components/FSTag.vue
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
:wrap="false"
|
|
8
8
|
v-bind="$attrs"
|
|
9
9
|
>
|
|
10
|
-
<slot
|
|
10
|
+
<slot
|
|
11
|
+
v-bind="{ color: $props.color, colors }"
|
|
12
|
+
>
|
|
11
13
|
<FSSpan
|
|
12
14
|
v-if="$props.label"
|
|
13
15
|
class="fs-tag-label"
|
|
@@ -15,7 +17,10 @@
|
|
|
15
17
|
{{ $props.label }}
|
|
16
18
|
</FSSpan>
|
|
17
19
|
</slot>
|
|
18
|
-
<slot
|
|
20
|
+
<slot
|
|
21
|
+
name="button"
|
|
22
|
+
v-bind="{ color: $props.color, colors }"
|
|
23
|
+
>
|
|
19
24
|
<v-btn
|
|
20
25
|
v-if="$props.editable"
|
|
21
26
|
class="fs-tag-button"
|
|
@@ -33,9 +38,11 @@
|
|
|
33
38
|
</template>
|
|
34
39
|
|
|
35
40
|
<script lang="ts">
|
|
36
|
-
import {
|
|
41
|
+
import type { PropType } from "vue";
|
|
42
|
+
import { computed, defineComponent } from "vue";
|
|
37
43
|
|
|
38
|
-
import { ColorBase
|
|
44
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
45
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
39
46
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
40
47
|
|
|
41
48
|
import FSIcon from "./FSIcon.vue";
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script lang="ts">
|
|
35
|
-
import {
|
|
35
|
+
import type { PropType } from "vue";
|
|
36
|
+
import { defineComponent } from "vue";
|
|
36
37
|
|
|
37
|
-
import { ColorBase
|
|
38
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
39
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
38
40
|
|
|
39
41
|
import FSWrapGroup from "./FSWrapGroup.vue";
|
|
40
42
|
import FSTag from "./FSTag.vue";
|
package/components/FSText.vue
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts">
|
|
14
|
-
import {
|
|
14
|
+
import type { PropType } from "vue";
|
|
15
|
+
import { computed, defineComponent } from "vue";
|
|
15
16
|
|
|
16
17
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
17
|
-
import { ColorBase
|
|
18
|
+
import type { ColorBase} from "@dative-gpi/foundation-shared-components/models";
|
|
19
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
18
20
|
|
|
19
21
|
export default defineComponent({
|
|
20
22
|
name: "FSText",
|
|
@@ -94,9 +94,11 @@
|
|
|
94
94
|
</template>
|
|
95
95
|
|
|
96
96
|
<script lang="ts">
|
|
97
|
-
import {
|
|
97
|
+
import type { PropType} from "vue";
|
|
98
|
+
import { defineComponent, ref } from "vue";
|
|
98
99
|
|
|
99
|
-
import { ColorBase,
|
|
100
|
+
import type { ColorBase, FSToggle } from "@dative-gpi/foundation-shared-components/models";
|
|
101
|
+
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
100
102
|
|
|
101
103
|
import FSSlideGroup from "./FSSlideGroup.vue";
|
|
102
104
|
import FSWrapGroup from "./FSWrapGroup.vue";
|
package/components/FSTooltip.vue
CHANGED
|
@@ -3,11 +3,22 @@
|
|
|
3
3
|
class="fs-tooltip"
|
|
4
4
|
location="top"
|
|
5
5
|
>
|
|
6
|
-
<template
|
|
7
|
-
|
|
6
|
+
<template
|
|
7
|
+
#activator="{ props }"
|
|
8
|
+
>
|
|
9
|
+
<slot
|
|
10
|
+
name="activator"
|
|
11
|
+
v-bind="props"
|
|
12
|
+
/>
|
|
8
13
|
</template>
|
|
9
|
-
<template
|
|
10
|
-
|
|
14
|
+
<template
|
|
15
|
+
v-for="(_, name) in $slots"
|
|
16
|
+
v-slot:[name]="slotData"
|
|
17
|
+
>
|
|
18
|
+
<slot
|
|
19
|
+
:name="name"
|
|
20
|
+
v-bind="slotData"
|
|
21
|
+
/>
|
|
11
22
|
</template>
|
|
12
23
|
</v-tooltip>
|
|
13
24
|
</template>
|
package/components/FSWindow.vue
CHANGED
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script lang="ts">
|
|
30
|
-
import {
|
|
30
|
+
import type { PropType, VNode } from "vue";
|
|
31
|
+
import { computed, defineComponent } from "vue";
|
|
31
32
|
|
|
32
33
|
import { useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
33
34
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script lang="ts">
|
|
22
|
-
import {
|
|
22
|
+
import type { PropType} from "vue";
|
|
23
|
+
import { computed, defineComponent, onMounted, onUnmounted, ref } from "vue";
|
|
23
24
|
|
|
24
25
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
25
26
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script lang="ts">
|
|
52
|
-
import {
|
|
52
|
+
import type { PropType } from "vue";
|
|
53
|
+
import { computed, defineComponent } from "vue"
|
|
53
54
|
|
|
54
55
|
import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
|
|
55
56
|
import { useLanguages } from "@dative-gpi/foundation-shared-services/composables";
|
|
56
|
-
import { LanguageFilters } from "@dative-gpi/foundation-shared-domain/models";
|
|
57
|
+
import type { LanguageFilters } from "@dative-gpi/foundation-shared-domain/models";
|
|
57
58
|
|
|
58
59
|
import FSAutocompleteField from "../fields/FSAutocompleteField.vue";
|
|
59
|
-
import FSCheckbox from "../FSCheckbox.vue";
|
|
60
60
|
import FSIcon from "../FSIcon.vue";
|
|
61
61
|
import FSSpan from "../FSSpan.vue";
|
|
62
62
|
import FSRow from "../FSRow.vue";
|
|
@@ -65,7 +65,6 @@ export default defineComponent({
|
|
|
65
65
|
name: "FSAutocompleteLanguage",
|
|
66
66
|
components: {
|
|
67
67
|
FSAutocompleteField,
|
|
68
|
-
FSCheckbox,
|
|
69
68
|
FSIcon,
|
|
70
69
|
FSSpan,
|
|
71
70
|
FSRow
|
|
@@ -65,9 +65,10 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script lang="ts">
|
|
68
|
-
import {
|
|
68
|
+
import type { PropType } from "vue";
|
|
69
|
+
import { computed, defineComponent } from "vue";
|
|
69
70
|
|
|
70
|
-
import { TimeZoneFilters, TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
71
|
+
import type { TimeZoneFilters, TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
71
72
|
import { useAutocomplete } from "@dative-gpi/foundation-shared-components/composables";
|
|
72
73
|
import { useTimeZones } from "@dative-gpi/foundation-shared-services/composables";
|
|
73
74
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
@@ -51,8 +51,8 @@ export default defineComponent({
|
|
|
51
51
|
const input = ref<HTMLFormElement | null>(null);
|
|
52
52
|
|
|
53
53
|
const clear = (): void => {
|
|
54
|
-
if (input.value) {
|
|
55
|
-
input.value.form
|
|
54
|
+
if (input.value && input.value.form) {
|
|
55
|
+
input.value.form.reset();
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -51,8 +51,8 @@ export default defineComponent({
|
|
|
51
51
|
const input = ref<HTMLFormElement | null>(null);
|
|
52
52
|
|
|
53
53
|
const clear = (): void => {
|
|
54
|
-
if (input.value) {
|
|
55
|
-
input.value.form
|
|
54
|
+
if (input.value && input.value.form) {
|
|
55
|
+
input.value.form.reset();
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -50,8 +50,8 @@ export default defineComponent({
|
|
|
50
50
|
const input = ref<HTMLFormElement | null>(null);
|
|
51
51
|
|
|
52
52
|
const clear = (): void => {
|
|
53
|
-
if (input.value) {
|
|
54
|
-
input.value.form
|
|
53
|
+
if (input.value && input.value.form) {
|
|
54
|
+
input.value.form.reset();
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -55,8 +55,8 @@ export default defineComponent({
|
|
|
55
55
|
const input = ref<HTMLFormElement | null>(null);
|
|
56
56
|
|
|
57
57
|
const clear = (): void => {
|
|
58
|
-
if (input.value) {
|
|
59
|
-
input.value.form
|
|
58
|
+
if (input.value && input.value.form) {
|
|
59
|
+
input.value.form.reset();
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script lang="ts">
|
|
27
|
-
import {
|
|
27
|
+
import type { PropType} from "vue";
|
|
28
|
+
import { defineComponent, ref } from "vue";
|
|
28
29
|
|
|
29
|
-
import { FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
|
|
30
|
+
import type { FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
|
|
30
31
|
|
|
31
32
|
import FSConnectivityCard from "./FSConnectivityCard.vue";
|
|
32
33
|
import FSColorIcon from "../FSColorIcon.vue";
|
|
@@ -55,9 +55,10 @@
|
|
|
55
55
|
</template>
|
|
56
56
|
|
|
57
57
|
<script lang="ts">
|
|
58
|
-
import {
|
|
58
|
+
import type { PropType } from "vue";
|
|
59
|
+
import { computed, defineComponent } from "vue";
|
|
59
60
|
|
|
60
|
-
import { FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
|
|
61
|
+
import type { FSDeviceConnectivity } from "@dative-gpi/foundation-shared-components/models";
|
|
61
62
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
62
63
|
|
|
63
64
|
import { connectivityLabel } from "../../utils";
|
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script lang="ts">
|
|
28
|
-
import {
|
|
28
|
+
import type { PropType} from "vue";
|
|
29
|
+
import { defineComponent, ref } from "vue";
|
|
29
30
|
|
|
30
|
-
import { FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
31
|
+
import type { FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
31
32
|
|
|
32
33
|
import FSStatusCard from "./FSStatusCard.vue";
|
|
33
34
|
import FSColorIcon from "../FSColorIcon.vue";
|
|
@@ -67,9 +67,10 @@
|
|
|
67
67
|
</template>
|
|
68
68
|
|
|
69
69
|
<script lang="ts">
|
|
70
|
-
import {
|
|
70
|
+
import type { PropType } from "vue";
|
|
71
|
+
import { computed, defineComponent } from "vue";
|
|
71
72
|
|
|
72
|
-
import { FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
73
|
+
import type { FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
73
74
|
import { useAppTimeZone } from "@dative-gpi/foundation-shared-services/composables";
|
|
74
75
|
|
|
75
76
|
import FSButton from "../FSButton.vue";
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script lang="ts">
|
|
42
|
-
import {
|
|
42
|
+
import type { PropType} from "vue";
|
|
43
|
+
import { defineComponent, ref } from "vue";
|
|
43
44
|
|
|
44
|
-
import { FSDeviceStatus, FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
45
|
+
import type { FSDeviceStatus, FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
45
46
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
46
47
|
|
|
47
48
|
import FSButton from "../FSButton.vue";
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script lang="ts">
|
|
30
|
-
import {
|
|
30
|
+
import type { PropType } from "vue";
|
|
31
|
+
import { defineComponent } from "vue";
|
|
31
32
|
|
|
32
|
-
import { FSDeviceAlert, FSDeviceConnectivity, FSDeviceStatus, FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
33
|
+
import type { FSDeviceAlert, FSDeviceConnectivity, FSDeviceStatus, FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-shared-components/models";
|
|
33
34
|
import { ConnectivityStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
34
35
|
|
|
35
36
|
import FSConnectivity from "./FSConnectivity.vue";
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script lang="ts">
|
|
32
|
-
import {
|
|
32
|
+
import type { PropType} from "vue";
|
|
33
|
+
import { computed, defineComponent, ref } from "vue";
|
|
33
34
|
|
|
34
35
|
import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
35
|
-
import { FSDeviceAlert } from "@dative-gpi/foundation-shared-components/models";
|
|
36
|
+
import type { FSDeviceAlert } from "@dative-gpi/foundation-shared-components/models";
|
|
36
37
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
37
38
|
|
|
38
39
|
import FSWorstAlertCard from "./FSWorstAlertCard.vue";
|