@equinor/echo-components 0.5.19-rc1 → 0.6.0-r18-beta-3

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.
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  interface WorkOrderStatusLabelProps {
3
- workOrderStatus: string;
3
+ workOrderStatus?: string;
4
4
  }
5
5
  export declare function WorkOrderStatusLabel({ workOrderStatus }: WorkOrderStatusLabelProps): JSX.Element;
6
- export declare function resolveStatusColor(workOrderStatus: string): string;
6
+ export declare function resolveStatusColor(workOrderStatus?: string): string;
7
7
  export declare const WorkOrderStatusColorMap: {
8
8
  completed: string;
9
9
  active: string;
package/dist/index.js CHANGED
@@ -23787,7 +23787,7 @@ var SideSheetOrientation;
23787
23787
  SideSheetOrientation["Fullscreen"] = "fullscreen";
23788
23788
  })(SideSheetOrientation || (SideSheetOrientation = {}));
23789
23789
 
23790
- var css_248z$8 = ".Sheet-module_container__MJ-Md{background-color:var(--white);bottom:0;display:grid;grid-template-rows:min-content 1fr;overflow:hidden;position:absolute;z-index:1}.Sheet-module_verticalContainer__0wKqY{box-shadow:0 3px 4px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.14);top:0;width:480px}.Sheet-module_blockContainer__JZVGn{position:static}.Sheet-module_rightContainer__u1DzS{right:0}.Sheet-module_leftContainer__8nvAG{left:0}.Sheet-module_horizontalContainer__ibaGL{box-shadow:3px 0 4px 0 rgba(0,0,0,.12),2px 0 4px 0 rgba(0,0,0,.14);height:min-content;left:0;max-height:720px;min-height:240px;position:absolute;right:0}.Sheet-module_fullscreenContainer__5qqvB{left:0;position:absolute;right:0;top:0}";
23790
+ var css_248z$8 = ".Sheet-module_container__MJ-Md{background-color:var(--white);bottom:0;display:grid;grid-template-rows:min-content 1fr;overflow:hidden;position:absolute;z-index:10}.Sheet-module_verticalContainer__0wKqY{box-shadow:0 3px 4px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.14);top:0;width:480px}.Sheet-module_blockContainer__JZVGn{position:static}.Sheet-module_rightContainer__u1DzS{right:0}.Sheet-module_leftContainer__8nvAG{left:0}.Sheet-module_horizontalContainer__ibaGL{box-shadow:3px 0 4px 0 rgba(0,0,0,.12),2px 0 4px 0 rgba(0,0,0,.14);height:min-content;left:0;max-height:720px;min-height:240px;position:absolute;right:0}.Sheet-module_fullscreenContainer__5qqvB{left:0;position:absolute;right:0;top:0}";
23791
23791
  var styles$7 = {"container":"Sheet-module_container__MJ-Md","verticalContainer":"Sheet-module_verticalContainer__0wKqY Sheet-module_container__MJ-Md","blockContainer":"Sheet-module_blockContainer__JZVGn","rightContainer":"Sheet-module_rightContainer__u1DzS Sheet-module_verticalContainer__0wKqY Sheet-module_container__MJ-Md","leftContainer":"Sheet-module_leftContainer__8nvAG Sheet-module_verticalContainer__0wKqY Sheet-module_container__MJ-Md","horizontalContainer":"Sheet-module_horizontalContainer__ibaGL Sheet-module_container__MJ-Md","fullscreenContainer":"Sheet-module_fullscreenContainer__5qqvB Sheet-module_container__MJ-Md"};
23792
23792
  styleInject(css_248z$8);
23793
23793
 
@@ -24085,7 +24085,7 @@ function setWorkOrderIconName(type) {
24085
24085
  }
24086
24086
  }
24087
24087
  function getIsActive(statusIds) {
24088
- if (statusIds.includes('TECO') || statusIds.includes('CLSD')) return false;
24088
+ if (statusIds && (statusIds.includes('TECO') || statusIds.includes('CLSD'))) return false;
24089
24089
  return true;
24090
24090
  }
24091
24091
 
@@ -24130,10 +24130,11 @@ function WorkOrderListItem(props) {
24130
24130
  var wo = props.workOrder;
24131
24131
  var showDate = setShowDate(wo);
24132
24132
  var displayHeaderDate = function displayHeaderDate() {
24133
- if (wo.orderType.toUpperCase() === 'PM01') {
24133
+ var _a, _b;
24134
+ if (((_a = wo.orderType) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'PM01') {
24134
24135
  return /*#__PURE__*/React__default.createElement("span", null, "Req. end date: ", dateToStringOrEmpty(wo.requiredEndDateTime));
24135
24136
  }
24136
- if (wo.orderType.toUpperCase() === 'PM02') {
24137
+ if (((_b = wo.orderType) === null || _b === void 0 ? void 0 : _b.toUpperCase()) === 'PM02') {
24137
24138
  return /*#__PURE__*/React__default.createElement("span", null, "Planned date: ", dateToStringOrEmpty(wo.maintenancePlanDate));
24138
24139
  }
24139
24140
  return null;