@equinor/mad-dfw 0.4.0 → 0.4.1
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-7GAHGZHM.js → chunk-BHBXYUCP.js} +1 -1
- package/dist/{chunk-JVF34AIF.js → chunk-MGKGHFEF.js} +1 -1
- package/dist/{chunk-T4WZHG2X.js → chunk-QQL5ES55.js} +2 -2
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCell.js +1 -1
- package/dist/dfwcomponents/WorkOrderCell/WorkOrderCellNavigation.js +1 -1
- package/dist/dfwcomponents/WorkOrderCell/index.js +3 -3
- package/dist/dfwcomponents/WorkOrderCell/types.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -83,7 +83,7 @@ var WorkOrderCell = (_a) => {
|
|
|
83
83
|
style: !showSymbols && { paddingBottom: token.spacing.container.paddingVertical }
|
|
84
84
|
},
|
|
85
85
|
title
|
|
86
|
-
), showSymbols && iconsAndLabels.length > 0 && /* @__PURE__ */ React.createElement(View, { style: styles.iconListContainer }, iconsAndLabels.map((item, index) => /* @__PURE__ */ React.createElement(StatusIcon, __spreadValues({ key: index }, item)))), /* @__PURE__ */ React.createElement(View, { style: styles.dataContainer }, /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short", color: "textTertiary" }, maintenanceType), /* @__PURE__ */ React.createElement(PropertyRow, { label: workOrderType, value: workOrderId }), /* @__PURE__ */ React.createElement(PropertyList, { data: rest, valueColor })), anyButtonVisible && /* @__PURE__ */ React.createElement(
|
|
86
|
+
), showSymbols && iconsAndLabels.length > 0 && /* @__PURE__ */ React.createElement(View, { style: styles.iconListContainer }, iconsAndLabels.map((item, index) => /* @__PURE__ */ React.createElement(StatusIcon, __spreadValues({ key: index }, item)))), /* @__PURE__ */ React.createElement(View, { style: styles.dataContainer }, maintenanceType && /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short", color: "textTertiary" }, maintenanceType), /* @__PURE__ */ React.createElement(PropertyRow, { label: workOrderType, value: workOrderId }), /* @__PURE__ */ React.createElement(PropertyList, { data: rest, valueColor })), anyButtonVisible && /* @__PURE__ */ React.createElement(
|
|
87
87
|
View,
|
|
88
88
|
{
|
|
89
89
|
style: [
|
|
@@ -59,7 +59,7 @@ var WorkOrderCellNavigation = (_a) => {
|
|
|
59
59
|
},
|
|
60
60
|
[rest.activeStatus, rest.requiredEnd, currentDate, isHseCritical, isProductionCritical]
|
|
61
61
|
);
|
|
62
|
-
return /* @__PURE__ */ React.createElement(Cell, { onPress, style }, /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.contentContainer }, /* @__PURE__ */ React.createElement(Typography, { numberOfLines: 1, variant: "h5", bold: true, style: styles.title }, title), /* @__PURE__ */ React.createElement(View, { style: styles.dataContainer }, /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short", color: "textTertiary" }, maintenanceType), /* @__PURE__ */ React.createElement(PropertyRow, { label: workOrderType, value: workOrderId }), /* @__PURE__ */ React.createElement(PropertyList, { data: rest, valueColor }))), 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" })));
|
|
62
|
+
return /* @__PURE__ */ React.createElement(Cell, { onPress, style }, /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.contentContainer }, /* @__PURE__ */ React.createElement(Typography, { numberOfLines: 1, variant: "h5", bold: true, style: styles.title }, title), /* @__PURE__ */ React.createElement(View, { style: styles.dataContainer }, maintenanceType && /* @__PURE__ */ React.createElement(Typography, { group: "paragraph", variant: "body_short", color: "textTertiary" }, maintenanceType), /* @__PURE__ */ React.createElement(PropertyRow, { label: workOrderType, value: workOrderId }), /* @__PURE__ */ React.createElement(PropertyList, { data: rest, valueColor }))), 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" })));
|
|
63
63
|
};
|
|
64
64
|
var themeStyles = EDSStyleSheet.create((theme) => ({
|
|
65
65
|
container: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BHBXYUCP.js";
|
|
4
4
|
import {
|
|
5
5
|
WorkOrderCellNavigation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MGKGHFEF.js";
|
|
7
7
|
|
|
8
8
|
// src/dfwcomponents/WorkOrderCell/index.ts
|
|
9
9
|
var WorkOrderCell2 = WorkOrderCell;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-QQL5ES55.js";
|
|
4
|
+
import "../../chunk-BHBXYUCP.js";
|
|
5
|
+
import "../../chunk-MGKGHFEF.js";
|
|
6
6
|
import "../../chunk-AIIMQRJ6.js";
|
|
7
7
|
import "../../chunk-JFOLVFFO.js";
|
|
8
8
|
import "../../chunk-2JQRYR7Z.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Color, IconName } from "@equinor/mad-components";
|
|
2
2
|
import { ViewProps } from "react-native";
|
|
3
|
-
export type WorkOrderType = "PM01" | "PM02" | "PM03" | "PM04" | "PM05" | "PM06" | "PM10" | "PM15" | "PM20";
|
|
3
|
+
export type WorkOrderType = "PM01" | "PM02" | "PM03" | "PM04" | "PM05" | "PM06" | "PM10" | "PM15" | "PM20" | "unknown";
|
|
4
4
|
export type WorkOrder = {
|
|
5
5
|
workOrderId: string;
|
|
6
6
|
workOrderType: WorkOrderType;
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkOrderCell
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QQL5ES55.js";
|
|
4
|
+
import "./chunk-BHBXYUCP.js";
|
|
5
|
+
import "./chunk-MGKGHFEF.js";
|
|
6
6
|
import "./chunk-AIIMQRJ6.js";
|
|
7
7
|
import "./chunk-JFOLVFFO.js";
|
|
8
8
|
import "./chunk-2JQRYR7Z.js";
|