@dative-gpi/foundation-shared-components 1.0.114 → 1.0.115

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,90 @@
1
+
2
+ <template>
3
+ <FSTile
4
+ width="200px"
5
+ height="130px"
6
+ borderRadius="6px"
7
+ v-bind="$attrs"
8
+ >
9
+ <FSCol
10
+ align="center-center"
11
+ gap="6px"
12
+ >
13
+ <FSIcon
14
+ :icon="$props.icon"
15
+ size="24px"
16
+ />
17
+ <FSSpan
18
+ :lineClamp="1"
19
+ >
20
+ {{ $props.label }}
21
+ </FSSpan>
22
+ <FSSpan
23
+ font="text-overline"
24
+ :lineClamp="1"
25
+ >
26
+ {{ epochToShortTimeFormat($props.triggerProcessedTimestamp) }}
27
+ </FSSpan>
28
+ <FSSpan
29
+ font="text-overline"
30
+ :lineClamp="1"
31
+ >
32
+ {{ $props.deviceOrganisationLabel }}
33
+ </FSSpan>
34
+ </FSCol>
35
+ </FSTile>
36
+ </template>
37
+
38
+ <script lang="ts">
39
+ import { defineComponent } from "vue";
40
+ import type { PropType } from "vue";
41
+
42
+ import { useDateFormat } from "@dative-gpi/foundation-shared-services/composables";
43
+ import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
44
+
45
+ import FSTile from "./FSTile.vue";
46
+ import FSSpan from "../FSSpan.vue";
47
+ import FSIcon from "../FSIcon.vue";
48
+ import FSCol from "../FSCol.vue";
49
+
50
+
51
+ export default defineComponent({
52
+ name: "FSAlertTileUI",
53
+ components: {
54
+ FSTile,
55
+ FSIcon,
56
+ FSSpan,
57
+ FSCol,
58
+ },
59
+ props: {
60
+ label: {
61
+ type: String as PropType<string | null>,
62
+ required: false,
63
+ default: null
64
+ },
65
+ deviceOrganisationLabel: {
66
+ type: String as PropType<string | null>,
67
+ required: false,
68
+ default: null
69
+ },
70
+ icon: {
71
+ type: String as PropType<string | null>,
72
+ required: false,
73
+ default: null
74
+ },
75
+ triggerProcessedTimestamp: {
76
+ type: Number as PropType<number | null>,
77
+ required: false,
78
+ default: null
79
+ }
80
+ },
81
+ setup() {
82
+ const { epochToShortTimeFormat } = useDateFormat();
83
+
84
+ return {
85
+ ColorEnum,
86
+ epochToShortTimeFormat
87
+ };
88
+ }
89
+ });
90
+ </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.114",
4
+ "version": "1.0.115",
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.114",
14
- "@dative-gpi/foundation-shared-services": "1.0.114"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.115",
14
+ "@dative-gpi/foundation-shared-services": "1.0.115"
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": "48de9927d991f8b2f063f63a3ac97697edcd03cb"
38
+ "gitHead": "0ff354e450d124ae789dcca1d4e08d76b927ed22"
39
39
  }