@equinor/mad-dfw 0.5.3 → 0.5.5
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 +13 -0
- package/dist/{chunk-KJHXRF5U.js → chunk-3ABNW3E2.js} +2 -2
- package/dist/{chunk-5EFVKCUB.js → chunk-KKQFJ6C4.js} +8 -5
- package/dist/{chunk-36WMXUZG.js → chunk-PZRC7KKH.js} +6 -3
- package/dist/{chunk-KBFX3MNW.js → chunk-TBJQRBT4.js} +7 -4
- package/dist/{chunk-DQQOZB3E.js → chunk-TBLBQCUH.js} +5 -3
- package/dist/{chunk-SJFZ7LJV.js → chunk-ZBIEH5QL.js} +1 -1
- package/dist/dfwcomponents/PropertyRow/PropertyRow.d.ts +2 -1
- package/dist/dfwcomponents/PropertyRow/PropertyRow.js +1 -1
- package/dist/dfwcomponents/PropertyRow/index.js +1 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCell.d.ts +1 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCell.js +4 -4
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCellNavigation.d.ts +1 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCellNavigation.js +4 -4
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderPropertyList.d.ts +2 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderPropertyList.js +3 -3
- package/dist/dfwcomponents/WorkOrderCell/index.js +6 -6
- package/dist/dfwcomponents/WorkOrderCell/types.d.ts +4 -0
- package/dist/dfwcomponents/WorkOrderCell/utils.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @equinor/mad-dfw
|
|
2
2
|
|
|
3
|
+
## 0.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 32f5bc9: New prop, `wrapValues`, that wraps the text values in the `WorkOrderCell` and
|
|
8
|
+
`WorkOrderCell.Navigation`.
|
|
9
|
+
|
|
10
|
+
## 0.5.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 455b6ee: Changed the finished icon in the `WorkOrderCell` from `circle` to `check-circle`
|
|
15
|
+
|
|
3
16
|
## 0.5.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KKQFJ6C4.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderCellNavigation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TBJQRBT4.js";
|
|
7
7
|
|
|
8
8
|
// src/dfwcomponents/WorkOrderCell/index.ts
|
|
9
9
|
var WorkOrderCell2 = WorkOrderCell;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-VDHOYF7Z.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderPropertyList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PZRC7KKH.js";
|
|
7
7
|
import {
|
|
8
8
|
getStatusIconsAndLabels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZBIEH5QL.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadValues
|
|
@@ -31,14 +31,16 @@ var WorkOrderCell = (_a) => {
|
|
|
31
31
|
readyForOperationButton,
|
|
32
32
|
tecoButton,
|
|
33
33
|
workOrder,
|
|
34
|
-
additionalPropertyRows = []
|
|
34
|
+
additionalPropertyRows = [],
|
|
35
|
+
wrapValues = false
|
|
35
36
|
} = _b, rest = __objRest(_b, [
|
|
36
37
|
"showSymbols",
|
|
37
38
|
"startJobButton",
|
|
38
39
|
"readyForOperationButton",
|
|
39
40
|
"tecoButton",
|
|
40
41
|
"workOrder",
|
|
41
|
-
"additionalPropertyRows"
|
|
42
|
+
"additionalPropertyRows",
|
|
43
|
+
"wrapValues"
|
|
42
44
|
]);
|
|
43
45
|
var _a2, _b2, _c;
|
|
44
46
|
const breakpoint = useBreakpoint();
|
|
@@ -67,7 +69,8 @@ var WorkOrderCell = (_a) => {
|
|
|
67
69
|
WorkOrderPropertyList,
|
|
68
70
|
{
|
|
69
71
|
workOrder,
|
|
70
|
-
additionalPropertyRows
|
|
72
|
+
additionalPropertyRows,
|
|
73
|
+
wrapValues
|
|
71
74
|
}
|
|
72
75
|
)), shouldShowActions && /* @__PURE__ */ React.createElement(
|
|
73
76
|
View,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatDate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZBIEH5QL.js";
|
|
4
4
|
import {
|
|
5
5
|
PropertyRow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TBLBQCUH.js";
|
|
7
7
|
|
|
8
8
|
// src/dfwcomponents/WorkOrderCell/WorkOrderPropertyList.tsx
|
|
9
9
|
import React from "react";
|
|
@@ -65,7 +65,8 @@ var propertyRowConfig = [
|
|
|
65
65
|
];
|
|
66
66
|
var WorkOrderPropertyList = ({
|
|
67
67
|
workOrder,
|
|
68
|
-
additionalPropertyRows = []
|
|
68
|
+
additionalPropertyRows = [],
|
|
69
|
+
wrapValues
|
|
69
70
|
}) => {
|
|
70
71
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, propertyRowConfig.map((item) => {
|
|
71
72
|
const label = typeof item.label === "function" ? item.label(workOrder) : item.label;
|
|
@@ -80,6 +81,7 @@ var WorkOrderPropertyList = ({
|
|
|
80
81
|
label,
|
|
81
82
|
value,
|
|
82
83
|
textColor,
|
|
84
|
+
wrapValues,
|
|
83
85
|
selectable: true
|
|
84
86
|
}
|
|
85
87
|
);
|
|
@@ -89,6 +91,7 @@ var WorkOrderPropertyList = ({
|
|
|
89
91
|
key: `additional-${index}`,
|
|
90
92
|
label: item.label,
|
|
91
93
|
value: item.value,
|
|
94
|
+
wrapValues,
|
|
92
95
|
selectable: true
|
|
93
96
|
}
|
|
94
97
|
)));
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-VDHOYF7Z.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderPropertyList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PZRC7KKH.js";
|
|
7
7
|
import {
|
|
8
8
|
getStatusIconsAndLabels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZBIEH5QL.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest,
|
|
12
12
|
__spreadProps,
|
|
@@ -30,6 +30,7 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
30
30
|
leftSwipeGroup,
|
|
31
31
|
rightSwipeGroup,
|
|
32
32
|
additionalPropertyRows = [],
|
|
33
|
+
wrapValues = false,
|
|
33
34
|
onPress
|
|
34
35
|
} = _b, rest = __objRest(_b, [
|
|
35
36
|
"showSymbols",
|
|
@@ -37,6 +38,7 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
37
38
|
"leftSwipeGroup",
|
|
38
39
|
"rightSwipeGroup",
|
|
39
40
|
"additionalPropertyRows",
|
|
41
|
+
"wrapValues",
|
|
40
42
|
"onPress"
|
|
41
43
|
]);
|
|
42
44
|
const styles = useStyles(themeStyles);
|
|
@@ -60,9 +62,10 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
60
62
|
WorkOrderPropertyList,
|
|
61
63
|
{
|
|
62
64
|
workOrder,
|
|
63
|
-
additionalPropertyRows
|
|
65
|
+
additionalPropertyRows,
|
|
66
|
+
wrapValues
|
|
64
67
|
}
|
|
65
|
-
)
|
|
68
|
+
))), showSymbols && /* @__PURE__ */ React.createElement(View, { style: styles.iconListContainer }, iconsAndLabels.map((item, index) => /* @__PURE__ */ React.createElement(StatusIcon, __spreadProps(__spreadValues({ key: index }, item), { label: void 0 })))), /* @__PURE__ */ React.createElement(Icon, { name: "chevron-right" }))
|
|
66
69
|
);
|
|
67
70
|
};
|
|
68
71
|
var themeStyles = EDSStyleSheet.create((theme) => ({
|
|
@@ -20,13 +20,15 @@ var PropertyRow = (_a) => {
|
|
|
20
20
|
value,
|
|
21
21
|
iconName,
|
|
22
22
|
textColor = "textTertiary",
|
|
23
|
-
selectable
|
|
23
|
+
selectable,
|
|
24
|
+
wrapValues
|
|
24
25
|
} = _b, rest = __objRest(_b, [
|
|
25
26
|
"label",
|
|
26
27
|
"value",
|
|
27
28
|
"iconName",
|
|
28
29
|
"textColor",
|
|
29
|
-
"selectable"
|
|
30
|
+
"selectable",
|
|
31
|
+
"wrapValues"
|
|
30
32
|
]);
|
|
31
33
|
const breakpoint = useBreakpoint();
|
|
32
34
|
const styles = useStyles(themeStyles, { breakpoint });
|
|
@@ -38,7 +40,7 @@ var PropertyRow = (_a) => {
|
|
|
38
40
|
group: "paragraph",
|
|
39
41
|
variant: "body_short",
|
|
40
42
|
color: textColor,
|
|
41
|
-
numberOfLines: 1,
|
|
43
|
+
numberOfLines: wrapValues ? void 0 : 1,
|
|
42
44
|
selectable
|
|
43
45
|
},
|
|
44
46
|
value
|
|
@@ -7,5 +7,6 @@ export type PropertyRowProps = {
|
|
|
7
7
|
iconName?: IconName;
|
|
8
8
|
textColor?: Color;
|
|
9
9
|
selectable?: boolean;
|
|
10
|
+
wrapValues?: boolean;
|
|
10
11
|
} & ViewProps;
|
|
11
|
-
export declare const PropertyRow: ({ label, value, iconName, textColor, selectable, ...rest }: PropertyRowProps) => React.JSX.Element;
|
|
12
|
+
export declare const PropertyRow: ({ label, value, iconName, textColor, selectable, wrapValues, ...rest }: PropertyRowProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { WorkOrderCellProps } from "./types";
|
|
3
|
-
export declare const WorkOrderCell: ({ showSymbols, startJobButton, readyForOperationButton, tecoButton, workOrder, additionalPropertyRows, ...rest }: WorkOrderCellProps) => React.JSX.Element;
|
|
3
|
+
export declare const WorkOrderCell: ({ showSymbols, startJobButton, readyForOperationButton, tecoButton, workOrder, additionalPropertyRows, wrapValues, ...rest }: WorkOrderCellProps) => React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-KKQFJ6C4.js";
|
|
4
4
|
import "../../chunk-VDHOYF7Z.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-PZRC7KKH.js";
|
|
6
|
+
import "../../chunk-ZBIEH5QL.js";
|
|
7
7
|
import "../../chunk-2JQRYR7Z.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-TBLBQCUH.js";
|
|
9
9
|
import "../../chunk-G2ADBYYC.js";
|
|
10
10
|
export {
|
|
11
11
|
WorkOrderCell
|
|
@@ -7,5 +7,5 @@ type WorkOrderCellNavigationProps = WorkOrderCellProps & {
|
|
|
7
7
|
leftSwipeGroup?: SwipeGroup;
|
|
8
8
|
rightSwipeGroup?: SwipeGroup;
|
|
9
9
|
};
|
|
10
|
-
export declare const WorkOrderCellNavigation: ({ showSymbols, workOrder, leftSwipeGroup, rightSwipeGroup, additionalPropertyRows, onPress, ...rest }: WorkOrderCellNavigationProps) => React.JSX.Element;
|
|
10
|
+
export declare const WorkOrderCellNavigation: ({ showSymbols, workOrder, leftSwipeGroup, rightSwipeGroup, additionalPropertyRows, wrapValues, onPress, ...rest }: WorkOrderCellNavigationProps) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCellNavigation
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-TBJQRBT4.js";
|
|
4
4
|
import "../../chunk-VDHOYF7Z.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-PZRC7KKH.js";
|
|
6
|
+
import "../../chunk-ZBIEH5QL.js";
|
|
7
7
|
import "../../chunk-2JQRYR7Z.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-TBLBQCUH.js";
|
|
9
9
|
import "../../chunk-G2ADBYYC.js";
|
|
10
10
|
export {
|
|
11
11
|
WorkOrderCellNavigation
|
|
@@ -3,6 +3,7 @@ import { AdditionalPropertyRow, WorkOrder } from "./types";
|
|
|
3
3
|
type WorkOrderPropertyListProps = {
|
|
4
4
|
workOrder: WorkOrder;
|
|
5
5
|
additionalPropertyRows?: AdditionalPropertyRow[];
|
|
6
|
+
wrapValues?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare const WorkOrderPropertyList: ({ workOrder, additionalPropertyRows, }: WorkOrderPropertyListProps) => React.JSX.Element;
|
|
8
|
+
export declare const WorkOrderPropertyList: ({ workOrder, additionalPropertyRows, wrapValues, }: WorkOrderPropertyListProps) => React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderPropertyList
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-PZRC7KKH.js";
|
|
4
|
+
import "../../chunk-ZBIEH5QL.js";
|
|
5
5
|
import "../../chunk-2JQRYR7Z.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-TBLBQCUH.js";
|
|
7
7
|
import "../../chunk-G2ADBYYC.js";
|
|
8
8
|
export {
|
|
9
9
|
WorkOrderPropertyList
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-3ABNW3E2.js";
|
|
4
|
+
import "../../chunk-KKQFJ6C4.js";
|
|
5
|
+
import "../../chunk-TBJQRBT4.js";
|
|
6
6
|
import "../../chunk-VDHOYF7Z.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-PZRC7KKH.js";
|
|
8
|
+
import "../../chunk-ZBIEH5QL.js";
|
|
9
9
|
import "../../chunk-2JQRYR7Z.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-TBLBQCUH.js";
|
|
11
11
|
import "../../chunk-G2ADBYYC.js";
|
|
12
12
|
export {
|
|
13
13
|
WorkOrderCell
|
|
@@ -49,6 +49,10 @@ export type WorkOrderCellProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
workOrder: WorkOrder;
|
|
51
51
|
additionalPropertyRows?: AdditionalPropertyRow[];
|
|
52
|
+
/**
|
|
53
|
+
* Boolean value indicating whether or not the values of the work order properties should wrap.
|
|
54
|
+
*/
|
|
55
|
+
wrapValues?: boolean;
|
|
52
56
|
} & Omit<ViewProps, "children">;
|
|
53
57
|
export type StatusConfig = {
|
|
54
58
|
icon: IconName;
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3ABNW3E2.js";
|
|
4
|
+
import "./chunk-KKQFJ6C4.js";
|
|
5
|
+
import "./chunk-TBJQRBT4.js";
|
|
6
6
|
import "./chunk-VDHOYF7Z.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PZRC7KKH.js";
|
|
8
|
+
import "./chunk-ZBIEH5QL.js";
|
|
9
9
|
import "./chunk-2JQRYR7Z.js";
|
|
10
10
|
import {
|
|
11
11
|
PropertyRow
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TBLBQCUH.js";
|
|
13
13
|
import "./chunk-G2ADBYYC.js";
|
|
14
14
|
export {
|
|
15
15
|
PropertyRow,
|