@equinor/mad-dfw 0.0.4 → 0.0.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @equinor/mad-dfw
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8baaf7b]
|
|
8
|
+
- @equinor/mad-components@0.12.1
|
|
9
|
+
|
|
10
|
+
## 0.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 46401e7: Add truhyness check to `PropertyRow` render function to avoid rendering rows with empty
|
|
15
|
+
values.
|
|
16
|
+
- Updated dependencies [e43285f]
|
|
17
|
+
- Updated dependencies [79fb731]
|
|
18
|
+
- Updated dependencies [37025ac]
|
|
19
|
+
- @equinor/mad-components@0.12.0
|
|
20
|
+
|
|
3
21
|
## 0.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -109,20 +109,23 @@ var WorkOrderCell = (_a) => {
|
|
|
109
109
|
},
|
|
110
110
|
item.label
|
|
111
111
|
)))), /* @__PURE__ */ React.createElement(Label, { label: maintenanceType, style: { marginBottom: 8 } }), Object.entries(rest).map(([key, value], index) => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return /* @__PURE__ */ React.createElement(
|
|
118
|
-
PropertyRow,
|
|
119
|
-
{
|
|
120
|
-
key: index,
|
|
121
|
-
label,
|
|
122
|
-
value: displayValue,
|
|
123
|
-
style: { marginBottom: 8 }
|
|
112
|
+
if (value) {
|
|
113
|
+
const label = WorkOrderLabelMap[key];
|
|
114
|
+
let displayValue = value;
|
|
115
|
+
if (key === "basicStartDate" || key === "basicEndDate") {
|
|
116
|
+
displayValue = value ? new Date(value).toLocaleDateString() : "";
|
|
124
117
|
}
|
|
125
|
-
|
|
118
|
+
return /* @__PURE__ */ React.createElement(
|
|
119
|
+
PropertyRow,
|
|
120
|
+
{
|
|
121
|
+
key: index,
|
|
122
|
+
label,
|
|
123
|
+
value: displayValue,
|
|
124
|
+
style: { marginBottom: 8 }
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
126
129
|
}), (!!onStartButtonPress || !!onCompleteButtonPress) && /* @__PURE__ */ React.createElement(
|
|
127
130
|
View,
|
|
128
131
|
{
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/mad-dfw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "A React Native component library for the Digital Field Worker applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-native": ">=0.70"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@equinor/mad-components": "0.
|
|
30
|
+
"@equinor/mad-components": "0.12.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@equinor/eslint-config-mad": "0.3.1"
|