@dative-gpi/foundation-shared-components 1.0.52 → 1.0.54

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.
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <FSTile
3
+ :activeColor="$props.color"
4
+ :bottomColor="$props.color"
5
+ :modelValue="$props.modelValue"
6
+ v-bind="$attrs"
7
+ >
8
+ <FSRow
9
+ align="center-center"
10
+ width="100%"
11
+ gap="24px"
12
+ :wrap="false"
13
+ >
14
+ <FSCol
15
+ gap="12px"
16
+ width="100%"
17
+ class="fs-location-tile-text-container"
18
+ >
19
+ <FSCol
20
+ gap="6px"
21
+ >
22
+ <FSSpan
23
+ font="text-button"
24
+ :lineClamp="1"
25
+ >
26
+ {{ $props.label }}
27
+ </FSSpan>
28
+ <FSSpan
29
+ font="text-overline"
30
+ variant="soft"
31
+ >
32
+ {{ $props.code }}
33
+ </FSSpan>
34
+ </FSCol>
35
+ <FSRow
36
+ :wrap="false"
37
+ align="center-left"
38
+ >
39
+ <FSColor
40
+ padding="0 8px"
41
+ height="24px"
42
+ :color="ColorEnum.Light"
43
+ :border="false"
44
+ >
45
+ <FSRow
46
+ align="center-center"
47
+ >
48
+ <FSSpan
49
+ font="text-overline"
50
+ >
51
+ {{ $props.deviceCount }}
52
+ </FSSpan>
53
+ </FSRow>
54
+ </FSColor>
55
+ <FSSpan
56
+ font="text-overline"
57
+ >
58
+ {{ $tr("ui.location-tile.device(s)", "Device(s) in this location.") }}
59
+ </FSSpan>
60
+ </FSRow>
61
+ </FSCol>
62
+ <FSCol
63
+ width="hug"
64
+ >
65
+ <FSIconCard
66
+ :icon="$props.icon"
67
+ :iconColor="$props.color"
68
+ size="100px"
69
+ iconSize="38px"
70
+ variant="background"
71
+ :border="true"
72
+ />
73
+ </FSCol>
74
+ </FSRow>
75
+ </FSTile>
76
+ </template>
77
+
78
+ <script lang="ts">
79
+ import { defineComponent, type PropType } from "vue";
80
+
81
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
82
+
83
+ import FSIconCard from "../FSIconCard.vue";
84
+ import FSColor from "../FSColor.vue";
85
+ import FSSpan from "../FSSpan.vue";
86
+ import FSTile from "./FSTile.vue";
87
+ import FSCol from "../FSCol.vue";
88
+ import FSRow from "../FSRow.vue";
89
+
90
+ export default defineComponent({
91
+ name: "FSGroupTileUI",
92
+ components: {
93
+ FSIconCard,
94
+ FSColor,
95
+ FSSpan,
96
+ FSTile,
97
+ FSCol,
98
+ FSRow
99
+ },
100
+ props: {
101
+ label: {
102
+ type: String as PropType<string | null>,
103
+ required: false,
104
+ default: null
105
+ },
106
+ code: {
107
+ type: String as PropType<string | null>,
108
+ required: false,
109
+ default: null
110
+ },
111
+ color: {
112
+ type: String,
113
+ required: false,
114
+ default: () => ColorEnum.Primary
115
+ },
116
+ icon: {
117
+ type: String,
118
+ required: false,
119
+ default: "mdi-map-marker"
120
+ },
121
+ deviceCount: {
122
+ type: Number,
123
+ required: false,
124
+ default: 0
125
+ },
126
+ modelValue: {
127
+ type: Boolean,
128
+ required: false,
129
+ default: false
130
+ },
131
+ },
132
+ setup() {
133
+ return {
134
+ ColorEnum
135
+ };
136
+ }
137
+ });
138
+ </script>
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.52",
4
+ "version": "1.0.54",
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.52",
14
- "@dative-gpi/foundation-shared-services": "1.0.52"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.54",
14
+ "@dative-gpi/foundation-shared-services": "1.0.54"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "3f7d88cfca5c1c30336482b58d65c559e4bdd386"
38
+ "gitHead": "332546e736d95d481dc97c06af935200d8344b2c"
39
39
  }
@@ -42,4 +42,8 @@
42
42
  width: 32px;
43
43
  height: 32px;
44
44
  }
45
+ }
46
+
47
+ .fs-location-tile-text-container {
48
+ min-width: 0;
45
49
  }