@dative-gpi/foundation-shared-components 1.0.142 → 1.0.143-onboarding
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/FSCard.vue +21 -4
- package/components/FSChip.vue +52 -38
- package/components/FSInformationsMenu.vue +124 -0
- package/components/FSMenu.vue +47 -0
- package/components/deviceOrganisations/FSConnectivity.vue +5 -3
- package/components/deviceOrganisations/FSStatus.vue +5 -3
- package/components/deviceOrganisations/FSWorstAlert.vue +10 -8
- package/components/deviceOrganisations/FSWorstAlertCard.vue +1 -1
- package/components/fields/FSColorField.vue +4 -3
- package/components/fields/FSDateField.vue +4 -2
- package/components/fields/FSDateTimeField.vue +5 -2
- package/components/fields/FSRichTextField.vue +4 -2
- package/components/fields/FSTreeViewField.vue +4 -2
- package/components/lists/FSFilterButton.vue +4 -2
- package/components/lists/FSHeaderButton.vue +4 -2
- package/components/lists/FSHiddenButton.vue +4 -2
- package/components/tiles/FSChartTileUI.vue +54 -40
- package/components/tiles/FSDashboardOrganisationTypeTileUI.vue +14 -2
- package/components/tiles/FSDashboardShallowTileUI.vue +14 -2
- package/components/tiles/FSGroupTileUI.vue +54 -113
- package/components/tiles/FSLocationTileUI.vue +57 -103
- package/components/tiles/FSSimpleTileUI.vue +23 -14
- package/components/tiles/FSTile.vue +1 -0
- package/package.json +4 -4
- package/styles/components/fs_card.scss +8 -0
- package/tools/alertsTools.ts +43 -16
- package/utils/badge.ts +9 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<FSMenu
|
|
3
3
|
:closeOnContentClick="false"
|
|
4
4
|
v-model="expanded"
|
|
5
5
|
>
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</FSFadeOut>
|
|
80
80
|
</FSCol>
|
|
81
81
|
</FSCard>
|
|
82
|
-
</
|
|
82
|
+
</FSMenu>
|
|
83
83
|
</template>
|
|
84
84
|
|
|
85
85
|
<script lang="ts">
|
|
@@ -94,6 +94,7 @@ import FSDivider from "../FSDivider.vue";
|
|
|
94
94
|
import FSCard from "../FSCard.vue";
|
|
95
95
|
import FSChip from "../FSChip.vue";
|
|
96
96
|
import FSSpan from "../FSSpan.vue";
|
|
97
|
+
import FSMenu from '../FSMenu.vue';
|
|
97
98
|
import FSCol from "../FSCol.vue";
|
|
98
99
|
|
|
99
100
|
export default defineComponent({
|
|
@@ -105,6 +106,7 @@ export default defineComponent({
|
|
|
105
106
|
FSCard,
|
|
106
107
|
FSChip,
|
|
107
108
|
FSSpan,
|
|
109
|
+
FSMenu,
|
|
108
110
|
FSCol
|
|
109
111
|
},
|
|
110
112
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<FSMenu
|
|
3
3
|
v-model="expanded"
|
|
4
4
|
>
|
|
5
5
|
<template
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</FSCol>
|
|
62
62
|
</FSCol>
|
|
63
63
|
</FSCard>
|
|
64
|
-
</
|
|
64
|
+
</FSMenu>
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script lang="ts">
|
|
@@ -73,6 +73,7 @@ import FSButton from "../FSButton.vue";
|
|
|
73
73
|
import FSCard from "../FSCard.vue";
|
|
74
74
|
import FSSpan from "../FSSpan.vue";
|
|
75
75
|
import FSChip from "../FSChip.vue";
|
|
76
|
+
import FSMenu from '../FSMenu.vue';
|
|
76
77
|
import FSCol from "../FSCol.vue";
|
|
77
78
|
|
|
78
79
|
export default defineComponent({
|
|
@@ -82,6 +83,7 @@ export default defineComponent({
|
|
|
82
83
|
FSCard,
|
|
83
84
|
FSChip,
|
|
84
85
|
FSSpan,
|
|
86
|
+
FSMenu,
|
|
85
87
|
FSCol
|
|
86
88
|
},
|
|
87
89
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<FSMenu
|
|
3
3
|
:closeOnContentClick="false"
|
|
4
4
|
v-model="expanded"
|
|
5
5
|
>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</FSFadeOut>
|
|
56
56
|
</FSCol>
|
|
57
57
|
</FSCard>
|
|
58
|
-
</
|
|
58
|
+
</FSMenu>
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script lang="ts">
|
|
@@ -66,6 +66,7 @@ import { type ColorBase, ColorEnum, type FSDataTableColumn } from "@dative-gpi/f
|
|
|
66
66
|
import FSCard from "../FSCard.vue";
|
|
67
67
|
import FSChip from "../FSChip.vue";
|
|
68
68
|
import FSSpan from "../FSSpan.vue";
|
|
69
|
+
import FSMenu from '../FSMenu.vue';
|
|
69
70
|
import FSCol from "../FSCol.vue";
|
|
70
71
|
|
|
71
72
|
export default defineComponent({
|
|
@@ -74,6 +75,7 @@ export default defineComponent({
|
|
|
74
75
|
FSCard,
|
|
75
76
|
FSChip,
|
|
76
77
|
FSSpan,
|
|
78
|
+
FSMenu,
|
|
77
79
|
FSCol
|
|
78
80
|
},
|
|
79
81
|
props: {
|
|
@@ -1,54 +1,60 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSTile
|
|
3
|
-
:width="['
|
|
4
|
-
:height="['
|
|
3
|
+
:width="['324px','272px']"
|
|
4
|
+
:height="['132px', '116px']"
|
|
5
|
+
:padding="['16px', '12px']"
|
|
5
6
|
borderRadius="8px"
|
|
6
7
|
v-bind="$attrs"
|
|
7
8
|
>
|
|
8
|
-
<
|
|
9
|
-
|
|
9
|
+
<FSRow
|
|
10
|
+
align="center-left"
|
|
11
|
+
gap="16px"
|
|
12
|
+
:wrap="false"
|
|
10
13
|
>
|
|
11
|
-
<
|
|
14
|
+
<FSCol
|
|
12
15
|
align="center-left"
|
|
13
|
-
|
|
14
|
-
gap="16px"
|
|
15
|
-
:wrap="false"
|
|
16
|
+
:gap="['12px', '8px']"
|
|
16
17
|
>
|
|
17
|
-
<
|
|
18
|
+
<FSSpan
|
|
19
|
+
font="text-overline"
|
|
20
|
+
:lineClamp="4"
|
|
21
|
+
>
|
|
22
|
+
{{ $props.label }}
|
|
23
|
+
</FSSpan>
|
|
24
|
+
<FSRow
|
|
18
25
|
align="center-left"
|
|
19
|
-
gap="
|
|
26
|
+
:gap="['12px', '8px']"
|
|
20
27
|
>
|
|
21
|
-
<FSSpan
|
|
22
|
-
font="text-overline"
|
|
23
|
-
:lineClamp="4"
|
|
24
|
-
>
|
|
25
|
-
{{ $props.label }}
|
|
26
|
-
</FSSpan>
|
|
27
28
|
<FSIcon
|
|
28
|
-
:color="ColorEnum.
|
|
29
|
-
size="18px"
|
|
29
|
+
:color="ColorEnum.Primary"
|
|
30
|
+
:size="['18px', '16px']"
|
|
30
31
|
>
|
|
31
32
|
{{ chartIcon(type) }}
|
|
32
33
|
</FSIcon>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
>
|
|
38
|
-
<FSImage
|
|
39
|
-
v-if="$props.imageId"
|
|
40
|
-
:height="['82px','90px']"
|
|
41
|
-
:width="['82px','90px']"
|
|
42
|
-
:imageId="$props.imageId"
|
|
43
|
-
/>
|
|
44
|
-
<FSIcon
|
|
45
|
-
v-else-if="$props.icon"
|
|
46
|
-
:size="['82px','90px']"
|
|
47
|
-
:icon="$props.icon"
|
|
34
|
+
<FSChip
|
|
35
|
+
v-if="$props.scope === ApplicationScope.OrganisationType"
|
|
36
|
+
:color="ColorEnum.Light"
|
|
37
|
+
:label="$tr('ui.chart-origin.organisation-type', 'Shared')"
|
|
48
38
|
/>
|
|
49
|
-
</
|
|
50
|
-
</
|
|
51
|
-
|
|
39
|
+
</FSRow>
|
|
40
|
+
</FSCol>
|
|
41
|
+
<FSCol
|
|
42
|
+
align="center-right"
|
|
43
|
+
width="hug"
|
|
44
|
+
>
|
|
45
|
+
<FSImage
|
|
46
|
+
v-if="$props.imageId"
|
|
47
|
+
:imageId="$props.imageId"
|
|
48
|
+
:height="['84px', '72px']"
|
|
49
|
+
:width="['84px', '72px']"
|
|
50
|
+
/>
|
|
51
|
+
<FSIconCard
|
|
52
|
+
v-else-if="$props.icon"
|
|
53
|
+
:size="['84px', '72px']"
|
|
54
|
+
:icon="$props.icon"
|
|
55
|
+
/>
|
|
56
|
+
</FSCol>
|
|
57
|
+
</FSRow>
|
|
52
58
|
</FSTile>
|
|
53
59
|
</template>
|
|
54
60
|
|
|
@@ -57,16 +63,17 @@ import { defineComponent } from "vue";
|
|
|
57
63
|
import type { PropType } from "vue";
|
|
58
64
|
|
|
59
65
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
60
|
-
import { ChartType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
66
|
+
import { ApplicationScope, ChartType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
61
67
|
|
|
62
68
|
import { chartIcon } from "@dative-gpi/foundation-shared-components/tools";
|
|
63
69
|
|
|
64
70
|
import FSImage from "../FSImage.vue";
|
|
65
71
|
import FSTile from "./FSTile.vue";
|
|
66
72
|
import FSSpan from "../FSSpan.vue";
|
|
67
|
-
import FSIcon from "../FSIcon.vue";
|
|
68
73
|
import FSRow from "../FSRow.vue";
|
|
69
74
|
import FSCol from "../FSCol.vue";
|
|
75
|
+
import FSIconCard from '../FSIconCard.vue';
|
|
76
|
+
import FSChip from '../FSChip.vue';
|
|
70
77
|
|
|
71
78
|
|
|
72
79
|
export default defineComponent({
|
|
@@ -74,10 +81,11 @@ export default defineComponent({
|
|
|
74
81
|
components: {
|
|
75
82
|
FSImage,
|
|
76
83
|
FSTile,
|
|
77
|
-
FSIcon,
|
|
78
84
|
FSRow,
|
|
79
85
|
FSCol,
|
|
80
86
|
FSSpan,
|
|
87
|
+
FSChip,
|
|
88
|
+
FSIconCard
|
|
81
89
|
},
|
|
82
90
|
props: {
|
|
83
91
|
label: {
|
|
@@ -99,11 +107,17 @@ export default defineComponent({
|
|
|
99
107
|
type: Number as PropType<ChartType>,
|
|
100
108
|
required: false,
|
|
101
109
|
default: ChartType.None
|
|
102
|
-
}
|
|
110
|
+
},
|
|
111
|
+
scope: {
|
|
112
|
+
type: Number as PropType<ApplicationScope>,
|
|
113
|
+
required: false,
|
|
114
|
+
default: ApplicationScope.None
|
|
115
|
+
},
|
|
103
116
|
},
|
|
104
117
|
setup() {
|
|
105
118
|
return {
|
|
106
119
|
ColorEnum,
|
|
120
|
+
ApplicationScope,
|
|
107
121
|
chartIcon
|
|
108
122
|
};
|
|
109
123
|
}
|
|
@@ -3,7 +3,16 @@
|
|
|
3
3
|
:bottomColor="color"
|
|
4
4
|
:icon="$props.icon"
|
|
5
5
|
v-bind="$attrs"
|
|
6
|
-
|
|
6
|
+
>
|
|
7
|
+
<template
|
|
8
|
+
#append-info
|
|
9
|
+
>
|
|
10
|
+
<FSChip
|
|
11
|
+
:label="$tr('ui.dashboard-type.organisation-type', 'Shared')"
|
|
12
|
+
:color="ColorEnum.Light"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
</FSSimpleTileUI>
|
|
7
16
|
</template>
|
|
8
17
|
|
|
9
18
|
<script lang="ts">
|
|
@@ -12,10 +21,12 @@ import { computed, defineComponent, type PropType } from "vue";
|
|
|
12
21
|
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
13
22
|
|
|
14
23
|
import FSSimpleTileUI from "./FSSimpleTileUI.vue";
|
|
24
|
+
import FSChip from '@dative-gpi/foundation-shared-components/components/FSChip.vue';
|
|
15
25
|
|
|
16
26
|
export default defineComponent({
|
|
17
27
|
name: "FSDashboardOrganisationTypeTileUI",
|
|
18
28
|
components: {
|
|
29
|
+
FSChip,
|
|
19
30
|
FSSimpleTileUI
|
|
20
31
|
},
|
|
21
32
|
props: {
|
|
@@ -39,7 +50,8 @@ export default defineComponent({
|
|
|
39
50
|
});
|
|
40
51
|
|
|
41
52
|
return {
|
|
42
|
-
color
|
|
53
|
+
color,
|
|
54
|
+
ColorEnum
|
|
43
55
|
};
|
|
44
56
|
}
|
|
45
57
|
});
|
|
@@ -3,7 +3,16 @@
|
|
|
3
3
|
:bottomColor="color"
|
|
4
4
|
:icon="$props.icon"
|
|
5
5
|
v-bind="$attrs"
|
|
6
|
-
|
|
6
|
+
>
|
|
7
|
+
<template
|
|
8
|
+
#append-info
|
|
9
|
+
>
|
|
10
|
+
<FSChip
|
|
11
|
+
:label="$tr('ui.dashboard-type.shallow', 'Shallow copy')"
|
|
12
|
+
:color="ColorEnum.Light"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
</FSSimpleTileUI>
|
|
7
16
|
</template>
|
|
8
17
|
|
|
9
18
|
<script lang="ts">
|
|
@@ -12,10 +21,12 @@ import { computed, defineComponent, type PropType } from "vue";
|
|
|
12
21
|
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
13
22
|
|
|
14
23
|
import FSSimpleTileUI from "./FSSimpleTileUI.vue";
|
|
24
|
+
import FSChip from '@dative-gpi/foundation-shared-components/components/FSChip.vue';
|
|
15
25
|
|
|
16
26
|
export default defineComponent({
|
|
17
27
|
name: "FSDashboardShallowTileUI",
|
|
18
28
|
components: {
|
|
29
|
+
FSChip,
|
|
19
30
|
FSSimpleTileUI
|
|
20
31
|
},
|
|
21
32
|
props: {
|
|
@@ -39,7 +50,8 @@ export default defineComponent({
|
|
|
39
50
|
});
|
|
40
51
|
|
|
41
52
|
return {
|
|
42
|
-
color
|
|
53
|
+
color,
|
|
54
|
+
ColorEnum
|
|
43
55
|
};
|
|
44
56
|
}
|
|
45
57
|
});
|
|
@@ -1,135 +1,95 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<FSSimpleTileUI
|
|
3
3
|
:activeColor="ColorEnum.Primary"
|
|
4
4
|
:bottomColor="ColorEnum.Error"
|
|
5
5
|
:width="$props.width"
|
|
6
6
|
:modelValue="$props.modelValue"
|
|
7
|
+
:label="$props.label"
|
|
8
|
+
:code="$props.code"
|
|
9
|
+
:imageId="$props.imageId"
|
|
10
|
+
:icon="$props.icon"
|
|
7
11
|
v-bind="$attrs"
|
|
8
12
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
width="fill"
|
|
13
|
+
<template
|
|
14
|
+
#append-info
|
|
12
15
|
>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
gap="24px"
|
|
16
|
-
:height="imageSize"
|
|
17
|
-
:wrap="false"
|
|
16
|
+
<FSCol
|
|
17
|
+
gap="6px"
|
|
18
18
|
>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
:width="infoWidth"
|
|
19
|
+
<FSRow
|
|
20
|
+
align="center-left"
|
|
22
21
|
>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
:lineClamp="1"
|
|
29
|
-
>
|
|
30
|
-
{{ $props.label }}
|
|
31
|
-
</FSSpan>
|
|
32
|
-
<FSSpan
|
|
33
|
-
font="text-overline"
|
|
34
|
-
variant="soft"
|
|
35
|
-
>
|
|
36
|
-
{{ $props.code }}
|
|
37
|
-
</FSSpan>
|
|
38
|
-
</FSCol>
|
|
39
|
-
<FSCol
|
|
40
|
-
gap="6px"
|
|
22
|
+
<FSColor
|
|
23
|
+
height="24px"
|
|
24
|
+
width="24px"
|
|
25
|
+
:color="ColorEnum.Primary"
|
|
26
|
+
:border="false"
|
|
41
27
|
>
|
|
42
28
|
<FSRow
|
|
43
|
-
align="center-
|
|
29
|
+
align="center-center"
|
|
44
30
|
>
|
|
45
|
-
<FSColor
|
|
46
|
-
padding="0 8px"
|
|
47
|
-
height="24px"
|
|
48
|
-
:color="ColorEnum.Primary"
|
|
49
|
-
:border="false"
|
|
50
|
-
>
|
|
51
|
-
<FSRow
|
|
52
|
-
align="center-center"
|
|
53
|
-
>
|
|
54
|
-
<FSSpan
|
|
55
|
-
font="text-overline"
|
|
56
|
-
>
|
|
57
|
-
{{ groupsLabel }}
|
|
58
|
-
</FSSpan>
|
|
59
|
-
</FSRow>
|
|
60
|
-
</FSColor>
|
|
61
31
|
<FSSpan
|
|
62
32
|
font="text-overline"
|
|
63
33
|
>
|
|
64
|
-
{{
|
|
34
|
+
{{ groupsBadgeContent }}
|
|
65
35
|
</FSSpan>
|
|
66
36
|
</FSRow>
|
|
37
|
+
</FSColor>
|
|
38
|
+
<FSSpan
|
|
39
|
+
font="text-overline"
|
|
40
|
+
>
|
|
41
|
+
{{ $tr("ui.common.groups", "Group(s)") }}
|
|
42
|
+
</FSSpan>
|
|
43
|
+
</FSRow>
|
|
44
|
+
<FSRow
|
|
45
|
+
align="center-left"
|
|
46
|
+
>
|
|
47
|
+
<FSColor
|
|
48
|
+
height="24px"
|
|
49
|
+
width="24px"
|
|
50
|
+
:color="ColorEnum.Success"
|
|
51
|
+
:border="false"
|
|
52
|
+
>
|
|
67
53
|
<FSRow
|
|
68
|
-
align="center-
|
|
54
|
+
align="center-center"
|
|
69
55
|
>
|
|
70
|
-
<FSColor
|
|
71
|
-
padding="0 8px"
|
|
72
|
-
height="24px"
|
|
73
|
-
:color="ColorEnum.Success"
|
|
74
|
-
:border="false"
|
|
75
|
-
>
|
|
76
|
-
<FSRow
|
|
77
|
-
align="center-center"
|
|
78
|
-
>
|
|
79
|
-
<FSSpan
|
|
80
|
-
font="text-overline"
|
|
81
|
-
>
|
|
82
|
-
{{ deviceOrganisationsLabel }}
|
|
83
|
-
</FSSpan>
|
|
84
|
-
</FSRow>
|
|
85
|
-
</FSColor>
|
|
86
56
|
<FSSpan
|
|
87
57
|
font="text-overline"
|
|
88
58
|
>
|
|
89
|
-
{{
|
|
59
|
+
{{ deviceOrganisationsBadgeContent }}
|
|
90
60
|
</FSSpan>
|
|
91
61
|
</FSRow>
|
|
92
|
-
</
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
:backgroundColor="ColorEnum.Background"
|
|
103
|
-
:icon="$props.icon"
|
|
104
|
-
:size="imageSize"
|
|
105
|
-
/>
|
|
106
|
-
</FSRow>
|
|
107
|
-
</FSCol>
|
|
108
|
-
</FSTile>
|
|
62
|
+
</FSColor>
|
|
63
|
+
<FSSpan
|
|
64
|
+
font="text-overline"
|
|
65
|
+
>
|
|
66
|
+
{{ $tr("ui.common.devices", "Device(s)") }}
|
|
67
|
+
</FSSpan>
|
|
68
|
+
</FSRow>
|
|
69
|
+
</FSCol>
|
|
70
|
+
</template>
|
|
71
|
+
</FSSimpleTileUI>
|
|
109
72
|
</template>
|
|
110
73
|
|
|
111
74
|
<script lang="ts">
|
|
112
75
|
import { computed, defineComponent, type PropType } from "vue";
|
|
113
76
|
|
|
114
|
-
import {
|
|
77
|
+
import { capNumberToString } from '@dative-gpi/foundation-shared-components/utils';
|
|
78
|
+
|
|
115
79
|
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
116
80
|
|
|
117
|
-
import
|
|
118
|
-
import FSImage from "../FSImage.vue";
|
|
81
|
+
import FSSimpleTileUI from './FSSimpleTileUI.vue';
|
|
119
82
|
import FSColor from "../FSColor.vue";
|
|
120
83
|
import FSSpan from "../FSSpan.vue";
|
|
121
|
-
import FSTile from "./FSTile.vue";
|
|
122
84
|
import FSCol from "../FSCol.vue";
|
|
123
85
|
import FSRow from "../FSRow.vue";
|
|
124
86
|
|
|
125
87
|
export default defineComponent({
|
|
126
88
|
name: "FSGroupTileUI",
|
|
127
89
|
components: {
|
|
128
|
-
|
|
129
|
-
FSImage,
|
|
90
|
+
FSSimpleTileUI,
|
|
130
91
|
FSColor,
|
|
131
92
|
FSSpan,
|
|
132
|
-
FSTile,
|
|
133
93
|
FSCol,
|
|
134
94
|
FSRow
|
|
135
95
|
},
|
|
@@ -175,33 +135,14 @@ export default defineComponent({
|
|
|
175
135
|
},
|
|
176
136
|
},
|
|
177
137
|
setup(props) {
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
const groupsLabel = computed((): string => {
|
|
181
|
-
return props.recursiveGroupsIds.length > 99 ? "99+" : props.recursiveGroupsIds.length.toString();
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
const deviceOrganisationsLabel = computed((): string => {
|
|
185
|
-
return props.recursiveDeviceOrganisationsIds.length > 99 ? "99+" : props.recursiveDeviceOrganisationsIds.length.toString();
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
const imageSize = computed((): number => {
|
|
189
|
-
return isMobileSized.value ? 90 : 100;
|
|
190
|
-
});
|
|
138
|
+
const groupsBadgeContent = computed(() => capNumberToString(props.recursiveGroupsIds.length));
|
|
191
139
|
|
|
192
|
-
const
|
|
193
|
-
if (!props.imageId && !props.icon) {
|
|
194
|
-
return "100%";
|
|
195
|
-
}
|
|
196
|
-
return `calc(100% - ${imageSize.value}px - 24px)`;
|
|
197
|
-
});
|
|
140
|
+
const deviceOrganisationsBadgeContent = computed(() => capNumberToString(props.recursiveDeviceOrganisationsIds.length));
|
|
198
141
|
|
|
199
142
|
return {
|
|
200
|
-
|
|
201
|
-
|
|
143
|
+
deviceOrganisationsBadgeContent,
|
|
144
|
+
groupsBadgeContent,
|
|
202
145
|
ColorEnum,
|
|
203
|
-
imageSize,
|
|
204
|
-
infoWidth
|
|
205
146
|
};
|
|
206
147
|
}
|
|
207
148
|
});
|