@equinor/mad-dfw 0.5.5 → 0.5.6
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/CHANGELOG.md +7 -0
- package/dist/{chunk-3ABNW3E2.js → chunk-2TLF63UB.js} +2 -2
- package/dist/{chunk-ZBIEH5QL.js → chunk-3QCSFFBK.js} +11 -2
- package/dist/{chunk-PZRC7KKH.js → chunk-BXAE3AAV.js} +1 -1
- package/dist/{chunk-KKQFJ6C4.js → chunk-CTARCKOR.js} +2 -2
- package/dist/{chunk-TBJQRBT4.js → chunk-YBJFHSLC.js} +7 -4
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCell.js +3 -3
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCellNavigation.d.ts +2 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCellNavigation.js +3 -3
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderPropertyList.js +2 -2
- package/dist/dfwcomponents/WorkOrderCell/index.js +5 -5
- package/dist/dfwcomponents/WorkOrderCell/utils.d.ts +1 -1
- package/dist/dfwcomponents/WorkOrderCell/utils.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CTARCKOR.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderCellNavigation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YBJFHSLC.js";
|
|
7
7
|
|
|
8
8
|
// src/dfwcomponents/WorkOrderCell/index.ts
|
|
9
9
|
var WorkOrderCell2 = WorkOrderCell;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// src/dfwcomponents/WorkOrderCell/utils.ts
|
|
2
|
-
var getStatusIconConfig = (status) => {
|
|
2
|
+
var getStatusIconConfig = (status, isBookmarked) => {
|
|
3
3
|
const statusMap = {
|
|
4
|
+
bookmarked: {
|
|
5
|
+
icon: isBookmarked ? "bookmark" : "bookmark-outline",
|
|
6
|
+
label: "Bookmarked",
|
|
7
|
+
textColor: "textTertiary",
|
|
8
|
+
iconColor: "primary"
|
|
9
|
+
},
|
|
4
10
|
notStarted: {
|
|
5
11
|
icon: "circle-outline",
|
|
6
12
|
label: "Not started",
|
|
@@ -40,7 +46,7 @@ var getStatusIconConfig = (status) => {
|
|
|
40
46
|
};
|
|
41
47
|
return statusMap[status];
|
|
42
48
|
};
|
|
43
|
-
var getStatusIconsAndLabels = (activeStatusIds, requiredEndDate, hseCritical, productionCritical) => {
|
|
49
|
+
var getStatusIconsAndLabels = (activeStatusIds, requiredEndDate, hseCritical, productionCritical, isBookmarked) => {
|
|
44
50
|
var _a;
|
|
45
51
|
const today = /* @__PURE__ */ new Date();
|
|
46
52
|
const iconsAndLabels = [];
|
|
@@ -61,6 +67,9 @@ var getStatusIconsAndLabels = (activeStatusIds, requiredEndDate, hseCritical, pr
|
|
|
61
67
|
} else {
|
|
62
68
|
iconsAndLabels.push(getStatusIconConfig("notStarted"));
|
|
63
69
|
}
|
|
70
|
+
if (isBookmarked !== void 0) {
|
|
71
|
+
iconsAndLabels.push(getStatusIconConfig("bookmarked", isBookmarked));
|
|
72
|
+
}
|
|
64
73
|
return iconsAndLabels;
|
|
65
74
|
};
|
|
66
75
|
var formatDate = (dateString) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-VDHOYF7Z.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderPropertyList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXAE3AAV.js";
|
|
7
7
|
import {
|
|
8
8
|
getStatusIconsAndLabels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QCSFFBK.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadValues
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-VDHOYF7Z.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderPropertyList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXAE3AAV.js";
|
|
7
7
|
import {
|
|
8
8
|
getStatusIconsAndLabels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QCSFFBK.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadProps,
|
|
@@ -31,6 +31,7 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
31
31
|
rightSwipeGroup,
|
|
32
32
|
additionalPropertyRows = [],
|
|
33
33
|
wrapValues = false,
|
|
34
|
+
isBookmarked,
|
|
34
35
|
onPress
|
|
35
36
|
} = _b, rest = __objRest(_b, [
|
|
36
37
|
"showSymbols",
|
|
@@ -39,6 +40,7 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
39
40
|
"rightSwipeGroup",
|
|
40
41
|
"additionalPropertyRows",
|
|
41
42
|
"wrapValues",
|
|
43
|
+
"isBookmarked",
|
|
42
44
|
"onPress"
|
|
43
45
|
]);
|
|
44
46
|
const styles = useStyles(themeStyles);
|
|
@@ -47,9 +49,10 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
47
49
|
workOrder.activeStatusIds,
|
|
48
50
|
workOrder.requiredEndDate,
|
|
49
51
|
workOrder.isHseCritical,
|
|
50
|
-
workOrder.isProductionCritical
|
|
52
|
+
workOrder.isProductionCritical,
|
|
53
|
+
isBookmarked
|
|
51
54
|
),
|
|
52
|
-
[workOrder]
|
|
55
|
+
[isBookmarked, workOrder]
|
|
53
56
|
);
|
|
54
57
|
return /* @__PURE__ */ React.createElement(
|
|
55
58
|
Cell,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-CTARCKOR.js";
|
|
4
4
|
import "../../chunk-VDHOYF7Z.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-BXAE3AAV.js";
|
|
6
|
+
import "../../chunk-3QCSFFBK.js";
|
|
7
7
|
import "../../chunk-2JQRYR7Z.js";
|
|
8
8
|
import "../../chunk-TBLBQCUH.js";
|
|
9
9
|
import "../../chunk-G2ADBYYC.js";
|
|
@@ -6,6 +6,7 @@ type WorkOrderCellNavigationProps = WorkOrderCellProps & {
|
|
|
6
6
|
onPress: () => void;
|
|
7
7
|
leftSwipeGroup?: SwipeGroup;
|
|
8
8
|
rightSwipeGroup?: SwipeGroup;
|
|
9
|
+
isBookmarked?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const WorkOrderCellNavigation: ({ showSymbols, workOrder, leftSwipeGroup, rightSwipeGroup, additionalPropertyRows, wrapValues, onPress, ...rest }: WorkOrderCellNavigationProps) => React.JSX.Element;
|
|
11
|
+
export declare const WorkOrderCellNavigation: ({ showSymbols, workOrder, leftSwipeGroup, rightSwipeGroup, additionalPropertyRows, wrapValues, isBookmarked, onPress, ...rest }: WorkOrderCellNavigationProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCellNavigation
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YBJFHSLC.js";
|
|
4
4
|
import "../../chunk-VDHOYF7Z.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-BXAE3AAV.js";
|
|
6
|
+
import "../../chunk-3QCSFFBK.js";
|
|
7
7
|
import "../../chunk-2JQRYR7Z.js";
|
|
8
8
|
import "../../chunk-TBLBQCUH.js";
|
|
9
9
|
import "../../chunk-G2ADBYYC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderPropertyList
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-BXAE3AAV.js";
|
|
4
|
+
import "../../chunk-3QCSFFBK.js";
|
|
5
5
|
import "../../chunk-2JQRYR7Z.js";
|
|
6
6
|
import "../../chunk-TBLBQCUH.js";
|
|
7
7
|
import "../../chunk-G2ADBYYC.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-2TLF63UB.js";
|
|
4
|
+
import "../../chunk-CTARCKOR.js";
|
|
5
|
+
import "../../chunk-YBJFHSLC.js";
|
|
6
6
|
import "../../chunk-VDHOYF7Z.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-BXAE3AAV.js";
|
|
8
|
+
import "../../chunk-3QCSFFBK.js";
|
|
9
9
|
import "../../chunk-2JQRYR7Z.js";
|
|
10
10
|
import "../../chunk-TBLBQCUH.js";
|
|
11
11
|
import "../../chunk-G2ADBYYC.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { StatusConfig } from "./types";
|
|
2
|
-
export declare const getStatusIconsAndLabels: (activeStatusIds?: string, requiredEndDate?: string, hseCritical?: boolean, productionCritical?: boolean) => StatusConfig[];
|
|
2
|
+
export declare const getStatusIconsAndLabels: (activeStatusIds?: string, requiredEndDate?: string, hseCritical?: boolean, productionCritical?: boolean, isBookmarked?: boolean) => StatusConfig[];
|
|
3
3
|
export declare const formatDate: (dateString: string) => string;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-2TLF63UB.js";
|
|
4
|
+
import "./chunk-CTARCKOR.js";
|
|
5
|
+
import "./chunk-YBJFHSLC.js";
|
|
6
6
|
import "./chunk-VDHOYF7Z.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BXAE3AAV.js";
|
|
8
|
+
import "./chunk-3QCSFFBK.js";
|
|
9
9
|
import "./chunk-2JQRYR7Z.js";
|
|
10
10
|
import {
|
|
11
11
|
PropertyRow
|