@equinor/echo-framework 0.10.21 → 0.10.23

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.
@@ -38,6 +38,7 @@ export declare enum LegendType {
38
38
  CPCLStatus = "CPCLStatus",
39
39
  Notifications = "Notifications",
40
40
  WorkOrders = "WorkOrders",
41
+ WorkOrderRevision = "WorkOrderRevision",
41
42
  ValvePosition = "ValvePosition",
42
43
  MeasuringPosition = "MeasuringPosition",
43
44
  WorkPermit = "WorkPermit"
@@ -6,10 +6,13 @@ import { LegendStatus, LegendType } from '../types/legend';
6
6
  */
7
7
  export declare function getLegendStatusColor(tagStatus?: LegendStatus | string): string;
8
8
  /**
9
- * Returns the matching legend status for a given legend type.
10
- * @param legendType {LegendType}
11
- * @param status {string} the status to be matched with the given legendType
12
- * @returns {string | LegendStatus}
9
+ * @deprecated use toLegendStatusOrString instead
13
10
  */
14
11
  export declare function legendTypeToLegendStatus(legendType: LegendType, status: string): string | LegendStatus;
12
+ /**
13
+ * Returns the matching legend status for a given string, otherwise return original string.
14
+ * @param status {string} the status to be matched with LegendStatus
15
+ * @returns {LegendStatus | string}
16
+ */
17
+ export declare function toLegendStatusOrString(status: string): LegendStatus | string;
15
18
  export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.10.21",
3
+ "version": "0.10.23",
4
4
  "description": "Modules and components for EchoWeb, utilizing EchoCore",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@babel/preset-react": "^7.18.6",
54
54
  "@equinor/echo-base": "^0.6.22",
55
55
  "@equinor/echo-core": "^0.7.3",
56
- "@equinor/echo-components": "^0.5.17",
56
+ "@equinor/echo-components": "^0.5.19",
57
57
  "@equinor/echo-scripts": "^0.1.5",
58
58
  "@equinor/echo-search": "^0.13.11",
59
59
  "@equinor/echo-update": "^1.3.1",