@dative-gpi/foundation-shared-components 1.0.162 → 1.0.163

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/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.162",
4
+ "version": "1.0.163",
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.162",
14
- "@dative-gpi/foundation-shared-services": "1.0.162"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.163",
14
+ "@dative-gpi/foundation-shared-services": "1.0.163"
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": "3b098f1cccbf68b3917a8f7d2f627e3e29cde9b4"
38
+ "gitHead": "87a3d2002d315e05a30acc571c37ca6d5cbf1bce"
39
39
  }
@@ -1,6 +1,6 @@
1
1
  import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
2
2
  import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/enums";
3
- import { ColorEnum } from "../models"
3
+ import { ColorEnum } from "../models";
4
4
  import { getTimeBestString } from "../utils";
5
5
 
6
6
  const { $tr } = useTranslationsProvider();
@@ -8,12 +8,12 @@ const { $tr } = useTranslationsProvider();
8
8
  export const AlertTools = {
9
9
  statusIcon(value: AlertStatus): string {
10
10
  switch (value) {
11
- case AlertStatus.Pending: return "mdi-timer-outline";
12
- case AlertStatus.Untriggered: return "mdi-timer-off-outline";
13
- case AlertStatus.Unresolved: return "mdi-alert-circle-outline";
14
- case AlertStatus.Resolved: return "mdi-check-circle-outline";
15
- case AlertStatus.Expired: return "mdi-clock-outline";
16
- case AlertStatus.Triggered: return "mdi-alert-circle-outline";
11
+ case AlertStatus.Pending: return "mdi-timer-sand";
12
+ case AlertStatus.Untriggered: return "mdi-close-octagon";
13
+ case AlertStatus.Unresolved: return "mdi-cancel";
14
+ case AlertStatus.Resolved: return "mdi-check-circle";
15
+ case AlertStatus.Expired: return "mdi-timeline-clock-outline";
16
+ case AlertStatus.Triggered: return "mdi-timer-sand";
17
17
  case AlertStatus.Abandoned: return "mdi-cancel"
18
18
  default: return "";
19
19
  }
@@ -82,10 +82,11 @@ export const AlertTools = {
82
82
  },
83
83
  statusColor(status: AlertStatus): ColorEnum {
84
84
  switch (status) {
85
- case AlertStatus.None:
86
85
  case AlertStatus.Pending:
87
- case AlertStatus.Expired:
88
86
  return ColorEnum.Warning;
87
+ case AlertStatus.Expired:
88
+ case AlertStatus.Abandoned:
89
+ return ColorEnum.Dark;
89
90
  case AlertStatus.Unresolved:
90
91
  case AlertStatus.Triggered:
91
92
  return ColorEnum.Error;