@equinor/echo-components 0.5.24 → 0.5.26
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/dist/components/index.d.ts +1 -1
- package/dist/components/workOrderListItem/{WorkOrdertListItem.d.ts → WorkOrderListItem.d.ts} +2 -2
- package/dist/components/workOrderListItem/WorkOrderStatusLabel.d.ts +2 -7
- package/dist/index.js +36 -54
- package/dist/index.js.map +1 -1
- package/dist/types/workOrderItem.d.ts +1 -1
- package/dist/utils/workorder.d.ts +1 -2
- package/package.json +9 -8
|
@@ -19,4 +19,4 @@ export * from './sidesheet';
|
|
|
19
19
|
export * from './splitView';
|
|
20
20
|
export * from './tagContextMenu/TagContextMenu';
|
|
21
21
|
export * from './timePicker/TimePicker';
|
|
22
|
-
export * from './workOrderListItem/
|
|
22
|
+
export * from './workOrderListItem/WorkOrderListItem';
|
package/dist/components/workOrderListItem/{WorkOrdertListItem.d.ts → WorkOrderListItem.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WorkOrderItem } from '@types';
|
|
3
|
-
interface WorkOrderListItemProps {
|
|
3
|
+
export interface WorkOrderListItemProps {
|
|
4
4
|
workOrder: WorkOrderItem;
|
|
5
|
-
|
|
5
|
+
onCardClick?: () => void;
|
|
6
6
|
itemAction?: React.ReactNode;
|
|
7
7
|
isHeader?: boolean;
|
|
8
8
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface WorkOrderStatusLabelProps {
|
|
3
|
-
|
|
3
|
+
isActive: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function WorkOrderStatusLabel({
|
|
6
|
-
export declare function resolveStatusColor(workOrderStatus?: string): string;
|
|
7
|
-
export declare const WorkOrderStatusColorMap: {
|
|
8
|
-
completed: string;
|
|
9
|
-
active: string;
|
|
10
|
-
};
|
|
5
|
+
export declare function WorkOrderStatusLabel({ isActive }: WorkOrderStatusLabelProps): JSX.Element;
|
|
11
6
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -17272,12 +17272,12 @@ function useIsMobile() {
|
|
|
17272
17272
|
}
|
|
17273
17273
|
|
|
17274
17274
|
var Keys = {
|
|
17275
|
-
ArrowUp:
|
|
17276
|
-
ArrowRight:
|
|
17277
|
-
ArrowDown:
|
|
17278
|
-
ArrowLeft:
|
|
17279
|
-
Enter:
|
|
17280
|
-
Escape:
|
|
17275
|
+
ArrowUp: 'up',
|
|
17276
|
+
ArrowRight: 'right',
|
|
17277
|
+
ArrowDown: 'down',
|
|
17278
|
+
ArrowLeft: 'left',
|
|
17279
|
+
Enter: 'enter',
|
|
17280
|
+
Escape: 'escape'
|
|
17281
17281
|
};
|
|
17282
17282
|
var useListNavigator = function useListNavigator(listLength) {
|
|
17283
17283
|
var initialIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
@@ -17414,7 +17414,7 @@ var useKeyboardNavigation = function useKeyboardNavigation(keyboardEvents) {
|
|
|
17414
17414
|
handler(e);
|
|
17415
17415
|
}
|
|
17416
17416
|
}, [keyboardEvents]);
|
|
17417
|
-
useEventListener(
|
|
17417
|
+
useEventListener('keydown', handleKeyDown, false, listenerTarget);
|
|
17418
17418
|
};
|
|
17419
17419
|
|
|
17420
17420
|
function classnames$1() {
|
|
@@ -23634,7 +23634,7 @@ var usePanelStore = create(function (set) {
|
|
|
23634
23634
|
};
|
|
23635
23635
|
});
|
|
23636
23636
|
|
|
23637
|
-
var css_248z$b = ".panelWrapper-module_wrapper__asJxL{position:fixed;right:0;z-index:5}.panelWrapper-module_topBarWrapper__Nt84G{background-color:#fff;border-left:1px solid #dcdcdc;box-sizing:border-box;height:calc(100dvh - 64px);padding-left:0;padding-right:0;width:64px;z-index:10}.panelWrapper-module_topBarWrapper__Nt84G div:first-child{display:none}.panelWrapper-module_contentPanel__JWij5,.panelWrapper-module_narrowPanel__zW0DI{background:#fff;box-sizing:border-box;height:100%;overflow:hidden;position:absolute;right:64px;top:0;transition:width .4s ease-in-out;width:0;z-index:1200}.panelWrapper-module_narrowPanel__zW0DI{width:320px!important}.panelWrapper-module_activeContentPanel__1nAhR{border-left:2px solid #f7f7f7;width:480px}.panelWrapper-module_buttonWrapperMobile__pcR1V{display:none}.panelWrapper-module_buttonWrapper__xbmQI{height:calc(100dvh - 70px)}.panelWrapper-module_buttonAtBottomWrapper__jLd-d{bottom:6px;position:absolute;width:100%}@media screen and (max-width:927px) and (orientation:landscape){.panelWrapper-module_topBarWrapper__Nt84G{width:calc(100dvw - 56px)}}@media screen and (max-width:767px) and (orientation:portrait){.panelWrapper-
|
|
23637
|
+
var css_248z$b = ".panelWrapper-module_wrapper__asJxL{position:fixed;right:0;z-index:5}.panelWrapper-module_topBarWrapper__Nt84G{background-color:#fff;border-left:1px solid #dcdcdc;box-sizing:border-box;height:calc(100dvh - 64px);padding-left:0;padding-right:0;width:64px;z-index:10}.panelWrapper-module_topBarWrapper__Nt84G div:first-child{display:none}.panelWrapper-module_contentPanel__JWij5,.panelWrapper-module_narrowPanel__zW0DI{background:#fff;box-sizing:border-box;height:100%;overflow:hidden;position:absolute;right:64px;top:0;transition:width .4s ease-in-out;width:0;z-index:1200}.panelWrapper-module_narrowPanel__zW0DI{width:320px!important}.panelWrapper-module_activeContentPanel__1nAhR{border-left:2px solid #f7f7f7;width:480px}.panelWrapper-module_buttonWrapperMobile__pcR1V{display:none}.panelWrapper-module_buttonWrapper__xbmQI{height:calc(100dvh - 70px)}.panelWrapper-module_buttonAtBottomWrapper__jLd-d{bottom:6px;position:absolute;width:100%}@media screen and (max-width:927px) and (orientation:landscape){.panelWrapper-module_topBarWrapper__Nt84G{width:calc(100dvw - 56px)}.panelWrapper-module_contentPanel__JWij5,.panelWrapper-module_narrowPanel__zW0DI{height:100dvh;right:0}}@media screen and (max-width:767px) and (orientation:portrait){.panelWrapper-module_topBarWrapper__Nt84G{width:100dvw}.panelWrapper-module_contentPanel__JWij5,.panelWrapper-module_narrowPanel__zW0DI{height:calc(100dvh - 48px);right:0}.panelWrapper-module_activeContentPanel__1nAhR{width:100dvw}}@media screen and (max-width:767px) and (orientation:portrait),screen and (max-width:927px) and (orientation:landscape){.panelWrapper-module_buttonAtBottomWrapper__jLd-d{display:none}.panelWrapper-module_topBarWrapper__Nt84G{border-bottom:1px solid #dcdcdc;border-left:none;display:flex;flex-direction:row;height:48px;padding-bottom:0;padding-top:0;z-index:10}.panelWrapper-module_topBarWrapper__Nt84G div:first-child{display:flex}.panelWrapper-module_moduleTitle__4Wloo{display:flex;margin:auto 0 auto 16px}.panelWrapper-module_moduleTitle__4Wloo p{color:var(--echoText);font-size:16px;font-weight:500;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panelWrapper-module_buttonWrapperMobile__pcR1V{display:flex;justify-content:flex-end;margin-right:8px}.panelWrapper-module_buttonWrapper__xbmQI{display:none}}@media screen and (max-width:768px) and (orientation:portrait){.panelWrapper-module_moduleTitle__4Wloo{width:140px}.panelWrapper-module_buttonWrapperMobile__pcR1V{width:calc(100vw - 140px)}}@media screen and (max-width:927px) and (orientation:landscape){.panelWrapper-module_moduleTitle__4Wloo{width:240px}.panelWrapper-module_buttonWrapperMobile__pcR1V{width:calc(100vw - 240px)}}";
|
|
23638
23638
|
var styles$a = {"wrapper":"panelWrapper-module_wrapper__asJxL","topBarWrapper":"panelWrapper-module_topBarWrapper__Nt84G","narrowPanel":"panelWrapper-module_narrowPanel__zW0DI","contentPanel":"panelWrapper-module_contentPanel__JWij5","activeContentPanel":"panelWrapper-module_activeContentPanel__1nAhR","buttonWrapperMobile":"panelWrapper-module_buttonWrapperMobile__pcR1V","buttonWrapper":"panelWrapper-module_buttonWrapper__xbmQI","buttonAtBottomWrapper":"panelWrapper-module_buttonAtBottomWrapper__jLd-d","moduleTitle":"panelWrapper-module_moduleTitle__4Wloo"};
|
|
23639
23639
|
styleInject(css_248z$b);
|
|
23640
23640
|
|
|
@@ -23904,7 +23904,7 @@ var Panel = function Panel(_ref) {
|
|
|
23904
23904
|
});
|
|
23905
23905
|
};
|
|
23906
23906
|
|
|
23907
|
-
var css_248z$a = ".panelContent-module_headerWrapper__BAc2H{display:flex;padding:12px 8px}.panelContent-module_headerActionsWrapper__l-nIj,.panelContent-module_headerFullActionsWrapper__No2uY{display:flex;margin:4px 4px 4px 8px}.panelContent-module_headerFullActionsWrapper__No2uY{justify-content:space-between}.panelContent-module_headerActionsWrapper__l-nIj{justify-content:end}.panelContent-module_narrowPanelTitleWithBackButton__YtZI5,.panelContent-module_narrowPanelTitleWithoutBackButton__gwhZD,.panelContent-module_panelTitleWithBackButton__5rlga,.panelContent-module_panelTitle__jqqJT{flex-grow:2;margin:auto 0!important;overflow:hidden;padding-left:4px;padding-right:4px;text-overflow:ellipsis;white-space:nowrap}.panelContent-module_narrowPanelTitleWithoutBackButton__gwhZD,.panelContent-module_panelTitle__jqqJT{max-width:calc(100% - 48px)}.panelContent-module_narrowPanelTitleWithBackButton__YtZI5,.panelContent-module_panelTitleWithBackButton__5rlga{max-width:calc(100% - 88px)}.panelContent-module_bodyWrapperWithFooter__uoMyR,.panelContent-module_bodyWrapper__EHsg5{height:calc(100dvh - 128px);overflow-x:hidden;overflow-y:hidden}.panelContent-module_bodyWrapperWithFooter__uoMyR{height:calc(100dvh - 184px)}.panelContent-module_footer__P1Nr8{border-top:1px solid #dcdcdc;height:55px}.panelContent-module_contentWrapper__1re5K{height:calc(100% - 16px);margin-right:8px;overflow-x:auto;padding-left:16px;padding-right:8px}@media screen and (max-width:767px) and (orientation:portrait),screen and (max-width:927px) and (orientation:landscape){.panelContent-module_bodyWrapperWithFooter__uoMyR{height:calc(100dvh - 104px)}.panelContent-module_bodyWrapper__EHsg5{height:calc(100dvh - 48px)}.panelContent-module_headerWrapper__BAc2H{padding:4px}}";
|
|
23907
|
+
var css_248z$a = ".panelContent-module_headerWrapper__BAc2H{display:flex;padding:12px 8px}.panelContent-module_headerActionsWrapper__l-nIj,.panelContent-module_headerFullActionsWrapper__No2uY{display:flex;margin:4px 4px 4px 8px}.panelContent-module_headerFullActionsWrapper__No2uY{justify-content:space-between}.panelContent-module_headerActionsWrapper__l-nIj{justify-content:end}.panelContent-module_narrowPanelTitleWithBackButton__YtZI5,.panelContent-module_narrowPanelTitleWithoutBackButton__gwhZD,.panelContent-module_panelTitleWithBackButton__5rlga,.panelContent-module_panelTitle__jqqJT{flex-grow:2;margin:auto 0!important;overflow:hidden;padding-left:4px;padding-right:4px;text-overflow:ellipsis;white-space:nowrap}.panelContent-module_narrowPanelTitleWithoutBackButton__gwhZD,.panelContent-module_panelTitle__jqqJT{max-width:calc(100% - 48px)}.panelContent-module_narrowPanelTitleWithBackButton__YtZI5,.panelContent-module_panelTitleWithBackButton__5rlga{max-width:calc(100% - 88px)}.panelContent-module_bodyWrapperWithFooter__uoMyR,.panelContent-module_bodyWrapper__EHsg5{height:calc(100dvh - 128px);overflow-x:hidden;overflow-y:hidden}.panelContent-module_bodyWrapperWithFooter__uoMyR{height:calc(100dvh - 184px)}.panelContent-module_footer__P1Nr8{border-top:1px solid #dcdcdc;height:55px}.panelContent-module_contentWrapper__1re5K{height:calc(100% - 16px);margin-right:8px;overflow-x:auto;padding-left:16px;padding-right:8px}@media screen and (max-width:767px) and (orientation:portrait),screen and (max-width:927px) and (orientation:landscape){.panelContent-module_headerWrapper__BAc2H{padding:4px}}@media screen and (max-width:927px) and (orientation:landscape){.panelContent-module_bodyWrapperWithFooter__uoMyR{height:calc(100dvh - 104px)}.panelContent-module_bodyWrapper__EHsg5{height:calc(100dvh - 48px)}}@media screen and (max-width:767px) and (orientation:portrait){.panelContent-module_bodyWrapperWithFooter__uoMyR{height:calc(100dvh - 152px)}.panelContent-module_bodyWrapper__EHsg5{height:calc(100dvh - 96px)}.panelContent-module_headerWrapper__BAc2H{padding:4px}}";
|
|
23908
23908
|
var styles$9 = {"headerWrapper":"panelContent-module_headerWrapper__BAc2H","headerFullActionsWrapper":"panelContent-module_headerFullActionsWrapper__No2uY","headerActionsWrapper":"panelContent-module_headerActionsWrapper__l-nIj","narrowPanelTitleWithBackButton":"panelContent-module_narrowPanelTitleWithBackButton__YtZI5","narrowPanelTitleWithoutBackButton":"panelContent-module_narrowPanelTitleWithoutBackButton__gwhZD","panelTitleWithBackButton":"panelContent-module_panelTitleWithBackButton__5rlga","panelTitle":"panelContent-module_panelTitle__jqqJT","bodyWrapper":"panelContent-module_bodyWrapper__EHsg5","bodyWrapperWithFooter":"panelContent-module_bodyWrapperWithFooter__uoMyR","footer":"panelContent-module_footer__P1Nr8","contentWrapper":"panelContent-module_contentWrapper__1re5K"};
|
|
23909
23909
|
styleInject(css_248z$a);
|
|
23910
23910
|
|
|
@@ -24341,91 +24341,73 @@ function setWorkOrderIconName(type) {
|
|
|
24341
24341
|
return 'workorders_main_group';
|
|
24342
24342
|
}
|
|
24343
24343
|
}
|
|
24344
|
-
function getIsActive(statusIds) {
|
|
24345
|
-
if (statusIds && (statusIds.includes('TECO') || statusIds.includes('CLSD'))) return false;
|
|
24346
|
-
return true;
|
|
24347
|
-
}
|
|
24348
24344
|
|
|
24349
|
-
var css_248z$3 = ".WorkOrderListItem-module_container__AaZwJ{padding:1rem}.WorkOrderListItem-module_container__AaZwJ>div:not(:first-of-type){gap:
|
|
24350
|
-
var styles$3 = {"container":"WorkOrderListItem-module_container__AaZwJ","visual":"WorkOrderListItem-module_visual__UCRRo","primary":"WorkOrderListItem-module_primary__aflKC","tertiary":"WorkOrderListItem-module_tertiary__9VMmL WorkOrderListItem-module_primary__aflKC","tertiaryMultiline":"WorkOrderListItem-module_tertiaryMultiline__fnZfW WorkOrderListItem-module_primary__aflKC","primaryText":"WorkOrderListItem-module_primaryText__Fdd7q","secondaryText":"WorkOrderListItem-module_secondaryText__I85sw","tertiaryText":"WorkOrderListItem-module_tertiaryText__TRbrY","divider":"WorkOrderListItem-module_divider__XvYes","
|
|
24345
|
+
var css_248z$3 = ".WorkOrderListItem-module_container__AaZwJ{padding:1rem}.WorkOrderListItem-module_container__AaZwJ>div:not(:first-of-type){gap:4px}.WorkOrderListItem-module_visual__UCRRo{align-items:center;background-color:var(--echoText);border-radius:50%;color:#fff;display:flex;flex-direction:column;font-size:12px;font-weight:500;justify-content:center;margin:.5rem;min-height:40px;min-width:40px;padding:.5rem}.WorkOrderListItem-module_primary__aflKC{align-items:center;display:flex;flex-flow:row nowrap;gap:5px}.WorkOrderListItem-module_tertiary__9VMmL{color:var(--tertiaryText)!important;flex-direction:row;font-size:.75rem!important;gap:.75rem}.WorkOrderListItem-module_tertiaryMultiline__fnZfW{align-items:flex-start;flex-direction:column;gap:.1rem}.WorkOrderListItem-module_primaryText__Fdd7q{width:auto}.WorkOrderListItem-module_secondaryText__I85sw{color:#565656}.WorkOrderListItem-module_tertiaryText__TRbrY{color:var(--tertiaryText)}.WorkOrderListItem-module_divider__XvYes{border:1px solid #d9d9d9;height:.75rem;margin-bottom:5px}.WorkOrderListItem-module_workorderStatusContainer__rerr6{align-items:center;display:inline-flex;gap:5px}.WorkOrderListItem-module_workorderstatusText__GGO-u{line-height:0!important;margin-left:.25rem}.WorkOrderListItem-module_activeIndicator__t9TzB,.WorkOrderListItem-module_completedIndicator__0cN-Q{border-radius:50%;height:.75rem;margin-bottom:3px;width:.75rem}.WorkOrderListItem-module_activeIndicator__t9TzB{background-color:#ff9200}.WorkOrderListItem-module_completedIndicator__0cN-Q{background-color:#4bb748}.WorkOrderListItem-module_workorderId__QXhKw{width:auto}";
|
|
24346
|
+
var styles$3 = {"container":"WorkOrderListItem-module_container__AaZwJ","visual":"WorkOrderListItem-module_visual__UCRRo","primary":"WorkOrderListItem-module_primary__aflKC","tertiary":"WorkOrderListItem-module_tertiary__9VMmL WorkOrderListItem-module_primary__aflKC","tertiaryMultiline":"WorkOrderListItem-module_tertiaryMultiline__fnZfW WorkOrderListItem-module_primary__aflKC","primaryText":"WorkOrderListItem-module_primaryText__Fdd7q","secondaryText":"WorkOrderListItem-module_secondaryText__I85sw","tertiaryText":"WorkOrderListItem-module_tertiaryText__TRbrY","divider":"WorkOrderListItem-module_divider__XvYes","workorderStatusContainer":"WorkOrderListItem-module_workorderStatusContainer__rerr6","workorderstatusText":"WorkOrderListItem-module_workorderstatusText__GGO-u","completedIndicator":"WorkOrderListItem-module_completedIndicator__0cN-Q","activeIndicator":"WorkOrderListItem-module_activeIndicator__t9TzB","workorderId":"WorkOrderListItem-module_workorderId__QXhKw"};
|
|
24351
24347
|
styleInject(css_248z$3);
|
|
24352
24348
|
|
|
24353
24349
|
function WorkOrderStatusLabel(_ref) {
|
|
24354
|
-
var
|
|
24350
|
+
var isActive = _ref.isActive;
|
|
24355
24351
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24356
|
-
className: styles$3.
|
|
24352
|
+
className: styles$3.workorderStatusContainer,
|
|
24353
|
+
role: "status"
|
|
24357
24354
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
24358
|
-
|
|
24359
|
-
background: resolveStatusColor(workOrderStatus)
|
|
24360
|
-
},
|
|
24361
|
-
className: styles$3.statusIndicator
|
|
24355
|
+
className: isActive ? styles$3.activeIndicator : styles$3.completedIndicator
|
|
24362
24356
|
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
24363
24357
|
variant: 'chart',
|
|
24364
24358
|
group: 'ui',
|
|
24365
|
-
className: styles$3.
|
|
24366
|
-
},
|
|
24367
|
-
}
|
|
24368
|
-
function resolveStatusColor(workOrderStatus) {
|
|
24369
|
-
if (getIsActive(workOrderStatus)) {
|
|
24370
|
-
return WorkOrderStatusColorMap['active'];
|
|
24371
|
-
}
|
|
24372
|
-
return WorkOrderStatusColorMap['completed'];
|
|
24359
|
+
className: styles$3.workorderstatusText
|
|
24360
|
+
}, isActive ? 'Active' : 'Completed'));
|
|
24373
24361
|
}
|
|
24374
|
-
var WorkOrderStatusColorMap = {
|
|
24375
|
-
completed: '#4BB748',
|
|
24376
|
-
active: '#FF9200'
|
|
24377
|
-
};
|
|
24378
24362
|
|
|
24379
24363
|
function setShowDate(wo) {
|
|
24380
24364
|
if (wo.orderType.toUpperCase() === 'PM01' && wo.requiredEndDateTime) return true;
|
|
24381
24365
|
if (wo.orderType.toUpperCase() === 'PM02' && wo.maintenancePlanDate) return true;
|
|
24382
24366
|
return false;
|
|
24383
24367
|
}
|
|
24368
|
+
function getFullLocaledDatetime(date) {
|
|
24369
|
+
return date === null || date === void 0 ? void 0 : date.toLocaleString();
|
|
24370
|
+
}
|
|
24384
24371
|
function WorkOrderListItem(props) {
|
|
24385
|
-
var _classnames;
|
|
24386
|
-
var isMobile = useIsMobile();
|
|
24387
24372
|
var wo = props.workOrder;
|
|
24388
24373
|
var showDate = setShowDate(wo);
|
|
24389
24374
|
var displayHeaderDate = function displayHeaderDate() {
|
|
24390
24375
|
var _a, _b;
|
|
24391
24376
|
if (((_a = wo.orderType) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'PM01') {
|
|
24392
|
-
return /*#__PURE__*/React__default.createElement("
|
|
24377
|
+
return /*#__PURE__*/React__default.createElement("time", {
|
|
24378
|
+
dateTime: getFullLocaledDatetime(wo.requiredEndDateTime)
|
|
24379
|
+
}, "Req. end date: ", dateToStringOrEmpty(wo.requiredEndDateTime));
|
|
24393
24380
|
}
|
|
24394
24381
|
if (((_b = wo.orderType) === null || _b === void 0 ? void 0 : _b.toUpperCase()) === 'PM02') {
|
|
24395
|
-
return /*#__PURE__*/React__default.createElement("
|
|
24382
|
+
return /*#__PURE__*/React__default.createElement("time", {
|
|
24383
|
+
dateTime: getFullLocaledDatetime(wo.maintenancePlanDate)
|
|
24384
|
+
}, "Planned date: ", dateToStringOrEmpty(wo.maintenancePlanDate));
|
|
24396
24385
|
}
|
|
24397
24386
|
return null;
|
|
24398
24387
|
};
|
|
24399
|
-
var isOverflow = wo.planningPlant && wo.planningPlant.length > 26 || wo.requiredEndDateTime && wo.requiredEndDateTime.toString().length > 26;
|
|
24400
|
-
var tertiary = classnames$1((_classnames = {}, _defineProperty$1(_classnames, styles$3.tertiaryMultiline, isOverflow || isMobile), _defineProperty$1(_classnames, styles$3.tertiary, !isOverflow && !isMobile), _classnames));
|
|
24401
24388
|
return /*#__PURE__*/React__default.createElement(ListItem, {
|
|
24402
24389
|
className: styles$3.container,
|
|
24403
|
-
onCardClick: props.isHeader ? undefined : props.
|
|
24390
|
+
onCardClick: props.isHeader ? undefined : props.onCardClick,
|
|
24404
24391
|
primary: /*#__PURE__*/React__default.createElement("div", {
|
|
24405
24392
|
className: styles$3.primary
|
|
24406
24393
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
24407
|
-
className: styles$3.
|
|
24394
|
+
className: styles$3.workorderId,
|
|
24408
24395
|
variant: 'h6'
|
|
24409
24396
|
}, wo.id.substring(4)), /*#__PURE__*/React__default.createElement(WorkOrderStatusLabel, {
|
|
24410
|
-
|
|
24397
|
+
isActive: wo.isActive
|
|
24411
24398
|
})),
|
|
24412
24399
|
secondary: /*#__PURE__*/React__default.createElement(Typography, {
|
|
24413
24400
|
variant: 'caption',
|
|
24414
24401
|
className: styles$3.secondaryText
|
|
24415
24402
|
}, wo.description),
|
|
24416
|
-
tertiary: /*#__PURE__*/React__default.createElement(
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
|
|
24422
|
-
}, wo.planningPlant), showDate && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !isOverflow && !isMobile && /*#__PURE__*/React__default.createElement("div", {
|
|
24403
|
+
tertiary: /*#__PURE__*/React__default.createElement(Typography, {
|
|
24404
|
+
variant: "meta",
|
|
24405
|
+
className: styles$3.tertiary
|
|
24406
|
+
}, wo.planningPlant, /*#__PURE__*/React__default.createElement("span", {
|
|
24407
|
+
role: "seperator",
|
|
24408
|
+
"aria-orientation": "vertical",
|
|
24423
24409
|
className: styles$3.divider
|
|
24424
|
-
}),
|
|
24425
|
-
variant: 'chart',
|
|
24426
|
-
group: 'ui',
|
|
24427
|
-
className: styles$3.tertiaryText
|
|
24428
|
-
}, displayHeaderDate()))),
|
|
24410
|
+
}), showDate && displayHeaderDate()),
|
|
24429
24411
|
visual: /*#__PURE__*/React__default.createElement("div", {
|
|
24430
24412
|
className: styles$3.visual
|
|
24431
24413
|
}, /*#__PURE__*/React__default.createElement(Icon$1, {
|