@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @equinor/mad-dfw
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 93cd63d: Added new value to the `WorkOrderType`. Prevent excess padding when the
8
+ `maintenanceType` is not being used.
9
+
3
10
  ## 0.4.0
4
11
 
5
12
  ### Minor Changes
@@ -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-7GAHGZHM.js";
3
+ } from "./chunk-BHBXYUCP.js";
4
4
  import {
5
5
  WorkOrderCellNavigation
6
- } from "./chunk-JVF34AIF.js";
6
+ } from "./chunk-MGKGHFEF.js";
7
7
 
8
8
  // src/dfwcomponents/WorkOrderCell/index.ts
9
9
  var WorkOrderCell2 = WorkOrderCell;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "../../chunk-7GAHGZHM.js";
3
+ } from "../../chunk-BHBXYUCP.js";
4
4
  import "../../chunk-AIIMQRJ6.js";
5
5
  import "../../chunk-JFOLVFFO.js";
6
6
  import "../../chunk-2JQRYR7Z.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkOrderCellNavigation
3
- } from "../../chunk-JVF34AIF.js";
3
+ } from "../../chunk-MGKGHFEF.js";
4
4
  import "../../chunk-AIIMQRJ6.js";
5
5
  import "../../chunk-JFOLVFFO.js";
6
6
  import "../../chunk-2JQRYR7Z.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  WorkOrderCell
3
- } from "../../chunk-T4WZHG2X.js";
4
- import "../../chunk-7GAHGZHM.js";
5
- import "../../chunk-JVF34AIF.js";
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-T4WZHG2X.js";
4
- import "./chunk-7GAHGZHM.js";
5
- import "./chunk-JVF34AIF.js";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/mad-dfw",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A React Native component library for the Digital Field Worker applications.",
5
5
  "type": "module",
6
6
  "scripts": {