@equinor/echo-components 0.11.1 → 0.11.4

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.11.1",
3
+ "version": "0.11.4",
4
4
  "dependencies": {
5
- "chart.js": "4.4.1",
5
+ "chart.js": "4.4.2",
6
6
  "react-window": "1.8.10",
7
7
  "react-datepicker": "4.25.0"
8
8
  },
@@ -16,7 +16,7 @@
16
16
  "lodash": ">= 4.17.21 < 5",
17
17
  "react-sortablejs": "6.1.4",
18
18
  "sortablejs": ">= 1.15.1 < 2",
19
- "classnames": "2.3.2"
19
+ "classnames": "2.5.1"
20
20
  },
21
21
  "main": "./index.cjs.js",
22
22
  "type": "commonjs"
@@ -1,4 +1,5 @@
1
1
  import { WorkOrderItem } from '../types';
2
2
  export declare const activeWorkOrderItemMock: WorkOrderItem;
3
+ export declare const basicFinishWorkOrderItemMock: WorkOrderItem;
3
4
  export declare const completedWorkOrderItemMock: WorkOrderItem;
4
5
  export declare const completedWorkOrderItemMockLongDesc: WorkOrderItem;
@@ -0,0 +1,16 @@
1
+ import { ReactElement } from 'react';
2
+ type AutohiddenContentProps = {
3
+ /** The hiding methods can be:
4
+ * - Apply 'opacity: 0' to the element. (default)
5
+ * - A rerender pass to remove the element from the DOM. This method will likely shift layout.
6
+ */
7
+ hideMethod?: 'collapse' | 'invisible';
8
+ /** The delay before the element is hidden. Defaults to 1 second. */
9
+ delay?: number;
10
+ /** Callback when the content is delayed. */
11
+ onHide?: () => void;
12
+ /** The content to autohide. */
13
+ children: ReactElement<HTMLElement | string | number>;
14
+ };
15
+ export declare function AutohiddenContent({ delay, hideMethod, onHide, children }: AutohiddenContentProps): import("react/jsx-runtime").JSX.Element | null;
16
+ export {};
@@ -1,9 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  export interface SaveAsDialogProps {
3
- title?: string;
4
3
  open: boolean;
5
4
  onSaveClick: (inputValue: string) => void;
6
5
  onCloseClicked: () => void;
6
+ title?: string;
7
+ label?: string;
8
+ placeholder?: string;
7
9
  children?: ReactNode;
8
10
  defaultUserInputValue?: string;
9
11
  showOverwriteLabel?: (userInputValue: string) => boolean;
@@ -7,4 +7,4 @@ export interface CompactIconLinkProps {
7
7
  icon?: string | React.ReactNode;
8
8
  className?: string;
9
9
  }
10
- export declare const CompactIconLink: ({ title, meta, legendColor, onClickHandler, icon, className, }: CompactIconLinkProps) => JSX.Element;
10
+ export declare const CompactIconLink: ({ title, meta, legendColor, onClickHandler, icon, className }: CompactIconLinkProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ export * from './autohiddenContent/AutohiddenContent';
1
2
  export * from './blackLink/BlackLink';
2
3
  export * from './buttonWithPopover/ButtonWithPopover';
3
4
  export * from './charts';
@@ -35,6 +36,5 @@ export * from './sidesheet';
35
36
  export * from './splitView';
36
37
  export * from './subseaStatusLabel/SubseaStatusLabel';
37
38
  export * from './tagContextMenu/TagContextMenu';
38
- export * from './timePicker/TimePicker';
39
39
  export * from './workOrderListItem/WorkOrderListItem';
40
40
  export * from './workOrderListItem/WorkOrderStatusLabel';
@@ -26,5 +26,5 @@ interface MainLegendProps {
26
26
  */
27
27
  legendContentClassName?: string;
28
28
  }
29
- declare function MainLegend({ legends, layers, legendStyle, legendContentStyle, legendContentClassName, legendClassName }: MainLegendProps): import("react/jsx-runtime").JSX.Element;
29
+ declare const MainLegend: ({ legends, layers, legendStyle, legendContentStyle, legendContentClassName, legendClassName }: MainLegendProps) => import("react/jsx-runtime").JSX.Element;
30
30
  export { MainLegend };
@@ -5,7 +5,6 @@ export interface SecondaryMarkerWithChipProps {
5
5
  status: string;
6
6
  color: string;
7
7
  onClick?: () => void;
8
- key?: string;
9
8
  children?: React.ReactNode;
10
9
  className?: string;
11
10
  }
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
- import { ColorMap, WorkOrderItem } from '../../types';
2
+ import { ColorMap, WorkOrderDateType, WorkOrderItem } from '../../types';
3
3
  export interface WorkOrderListItemProps {
4
4
  workOrder: WorkOrderItem;
5
5
  onCardClick?: () => void;
6
6
  itemAction?: React.ReactNode;
7
7
  isHeader?: boolean;
8
8
  colorMap?: ColorMap;
9
+ iconName?: string;
10
+ workOrderDateType?: WorkOrderDateType;
9
11
  }
10
12
  declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
11
13
  export { WorkOrderListItem };
@@ -2,7 +2,6 @@
2
2
  export interface ChipProps {
3
3
  title: string;
4
4
  color: string;
5
- key?: string;
6
5
  className?: string;
7
6
  onClick?: () => void;
8
7
  }
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare function getIcon(tagCategoryDescription: string): JSX.Element;
1
+ export declare function getIcon(tagCategoryDescription: string): import("react/jsx-runtime").JSX.Element;
@@ -35,4 +35,4 @@ export declare enum TagCategoryType {
35
35
  * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
36
36
  */
37
37
  export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
38
- export default TagCategoryIcon;
38
+ export {};
@@ -1,8 +1,8 @@
1
- export { ReactComponent as Semi } from './semi.svg';
2
1
  export { ReactComponent as Evision } from './evision.svg';
3
2
  export { ReactComponent as Fusion } from './fusion.svg';
4
3
  export { ReactComponent as ProCoSys } from './procosys.svg';
4
+ export { ReactComponent as SAP } from './sap.svg';
5
+ export { ReactComponent as Semi } from './semi.svg';
5
6
  export { ReactComponent as Stid } from './stid.svg';
6
7
  export { ReactComponent as TR2000 } from './tr2000.svg';
7
8
  export { ReactComponent as Yammer } from './yammer.svg';
8
- export { ReactComponent as SAP } from './sap.svg';
@@ -1,10 +1,9 @@
1
- export { ReactComponent as Teams } from './teams.svg';
2
- export { ReactComponent as PowerPoint } from './powerpoint.svg';
3
- export { ReactComponent as Word } from './word.svg';
4
1
  export { ReactComponent as Excel } from './excel.svg';
2
+ export { ReactComponent as OneDrive } from './onedrive.svg';
5
3
  export { ReactComponent as OneNote } from './onenote.svg';
6
- export { ReactComponent as SharePoint } from './powerpoint.svg';
4
+ export { ReactComponent as Outlook } from './outlook.svg';
5
+ export { ReactComponent as PowerPoint, ReactComponent as SharePoint } from './powerpoint.svg';
7
6
  export { ReactComponent as Skype } from './skype.svg';
7
+ export { ReactComponent as Teams } from './teams.svg';
8
+ export { ReactComponent as Word } from './word.svg';
8
9
  export { ReactComponent as Yammer } from './yammer.svg';
9
- export { ReactComponent as Outlook } from './outlook.svg';
10
- export { ReactComponent as OneDrive } from './onedrive.svg';
@@ -5,5 +5,7 @@ export * from './maps';
5
5
  export * from './misc';
6
6
  export * from './notifications';
7
7
  export * from './punches';
8
+ export * from './sap';
9
+ export * from "./sidesheet";
8
10
  export * from './subsea';
9
11
  export * from './workOrders';
@@ -0,0 +1,4 @@
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const sap_b30: IconData;
3
+ export declare const sap_prts: IconData;
4
+ export declare const sap_activity_reviewed: IconData;
@@ -0,0 +1,3 @@
1
+ import { IconData } from '@equinor/eds-icons';
2
+ export declare const expand_side_sheet: IconData;
3
+ export declare const minimize_side_sheet: IconData;
@@ -97,6 +97,9 @@ export declare const themeConst: {
97
97
  locations: string;
98
98
  ofpDark: string;
99
99
  ofpLight: string;
100
+ readonly onwatch: string;
101
+ readonly inprogress: string;
102
+ readonly annotationerror: string;
100
103
  blueOvercast: string;
101
104
  readonly warningText: string;
102
105
  readonly warningIcon: string;
@@ -1,3 +1,10 @@
1
+ export declare enum WorkOrderDateType {
2
+ PM01 = "PM01",
3
+ PM02 = "PM02",
4
+ BasicFinishDate = "BasicFinishDate",
5
+ Operation = "Operation",
6
+ Unknown = "Unknown"
7
+ }
1
8
  export interface WorkOrderItem {
2
9
  id: string;
3
10
  orderType: string;
@@ -12,4 +19,6 @@ export interface WorkOrderItem {
12
19
  operationId?: string;
13
20
  earlyStartDate?: Date;
14
21
  earlyFinishDate?: Date;
22
+ basicFinishDateStatus?: string;
23
+ basicFinishDateTime?: Date;
15
24
  }
@@ -1,6 +1,7 @@
1
- import { ColorMap } from "../types/colorMap";
1
+ import { ColorMap } from '../types';
2
+ declare function setBasicFinishDateColor(basicFinishDateStatus: string | undefined): ColorMap;
2
3
  declare function setRequiredEndDateColor(requiredEndDateStatus: string | undefined): ColorMap;
3
4
  declare function setFailureImpactColor(failureImpactStatus: string | undefined): ColorMap;
4
5
  declare function setPriorityColor(priorityId: string | undefined): ColorMap;
5
6
  declare function setUnsafeFailureColor(unsafeFailure: string | undefined): ColorMap;
6
- export { setFailureImpactColor, setPriorityColor, setRequiredEndDateColor, setUnsafeFailureColor };
7
+ export { setBasicFinishDateColor, setFailureImpactColor, setPriorityColor, setRequiredEndDateColor, setUnsafeFailureColor };
package/style-reset.css CHANGED
@@ -1 +1 @@
1
- #root,body,html{height:100%;overflow:hidden;position:fixed;width:100%}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:var(--equiGray5);border-radius:5px}::-webkit-scrollbar-thumb{background:var(--equiGreen1);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--hoverIcon)}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}
1
+ #root,body,html{height:100%;overflow:hidden;position:fixed;width:100%}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--equiGray5);border-radius:5px}::-webkit-scrollbar-thumb{background:var(--equiGreen1);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--hoverIcon)}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface TimePickerProps {
3
- id: string;
4
- value?: string;
5
- label: string;
6
- onValueChanged?: (time: string) => void;
7
- className?: string;
8
- readOnly?: boolean;
9
- timeRange?: string[];
10
- }
11
- export declare const TimePicker: ({ id, label, value, onValueChanged, readOnly, timeRange }: TimePickerProps) => React.JSX.Element;
12
- export default TimePicker;