@equinor/echo-components 0.11.0 → 0.11.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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.11.0",
3
+ "version": "0.11.3",
4
4
  "dependencies": {
5
- "chart.js": "4.4.0",
6
- "react-window": "1.8.9",
7
- "react-datepicker": "4.21.0"
5
+ "chart.js": "4.4.2",
6
+ "react-window": "1.8.10",
7
+ "react-datepicker": "4.25.0"
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@equinor/echo-utils": ">= 0.4.0 < 0.5.0",
@@ -12,11 +12,11 @@
12
12
  "@equinor/eds-icons": "0.19.3",
13
13
  "react": ">= 17.0.2",
14
14
  "react-dom": ">= 17.0.2",
15
- "zustand": "4.4.6",
16
- "lodash": "4.17.21",
15
+ "zustand": ">= 4.4.7 < 5",
16
+ "lodash": ">= 4.17.21 < 5",
17
17
  "react-sortablejs": "6.1.4",
18
- "sortablejs": "1.15.0",
19
- "classnames": "2.3.2"
18
+ "sortablejs": ">= 1.15.1 < 2",
19
+ "classnames": "2.5.1"
20
20
  },
21
21
  "main": "./index.cjs.js",
22
22
  "type": "commonjs"
@@ -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,4 +1,5 @@
1
- interface LinkProps {
1
+ import { TooltipProps } from '@equinor/eds-core-react';
2
+ type LinkProps = Omit<TooltipProps, 'href' | 'children'> & {
2
3
  className?: string;
3
4
  /** The external link. */
4
5
  href: string;
@@ -8,8 +9,7 @@ interface LinkProps {
8
9
  preserveTab?: boolean;
9
10
  /** The text to be displayed in the tooltip. */
10
11
  tooltipText?: string;
11
- /** The text to be displayed in the tooltip. */
12
12
  onClick?: () => void;
13
- }
14
- export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, onClick, }: LinkProps) => import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ export declare const BlackLink: ({ className, href, linkText, preserveTab, tooltipText, onClick, enterDelay, placement, ...toolTipRest }: LinkProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -5,5 +5,5 @@ export interface CopyToClipboardProps {
5
5
  multiline?: boolean;
6
6
  className?: string;
7
7
  }
8
- declare const CopyToClipboard: (props: CopyToClipboardProps) => React.JSX.Element;
8
+ declare const CopyToClipboard: ({ copyableText, className, multiline, variant }: CopyToClipboardProps) => React.JSX.Element;
9
9
  export { CopyToClipboard };
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface ConfirmDialogProps {
3
+ title: string;
4
+ confirmButtonLabel?: string;
5
+ cancelButtonLabel?: string;
6
+ children: ReactNode;
7
+ open: boolean;
8
+ onConfirmClicked: () => void;
9
+ onCloseClicked: () => void;
10
+ }
11
+ export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface SaveAsDialogProps {
3
+ open: boolean;
4
+ onSaveClick: (inputValue: string) => void;
5
+ onCloseClicked: () => void;
6
+ title?: string;
7
+ label?: string;
8
+ placeholder?: string;
9
+ children?: ReactNode;
10
+ defaultUserInputValue?: string;
11
+ showOverwriteLabel?: (userInputValue: string) => boolean;
12
+ }
13
+ export declare const SaveAsDialog: React.FC<SaveAsDialogProps>;
@@ -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';
@@ -5,6 +6,8 @@ export * from './contextMenu/ContextMenu';
5
6
  export * from './contextMenuPopover/DataInfoButton';
6
7
  export * from './copyToClipboard/CopyToClipboard';
7
8
  export { ReactDatePicker } from './datePicker/ReactDatePicker';
9
+ export * from './dialog/ConfirmDialog';
10
+ export * from './dialog/SaveAsDialog';
8
11
  export * from './dialogGenerator/DialogGenerator';
9
12
  export * from './dropdown/Dropdown';
10
13
  export * from './echoBottomBar/EchoBottomBar';
@@ -33,6 +36,5 @@ export * from './sidesheet';
33
36
  export * from './splitView';
34
37
  export * from './subseaStatusLabel/SubseaStatusLabel';
35
38
  export * from './tagContextMenu/TagContextMenu';
36
- export * from './timePicker/TimePicker';
37
39
  export * from './workOrderListItem/WorkOrderListItem';
38
40
  export * from './workOrderListItem/WorkOrderStatusLabel';
@@ -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
  }
@@ -6,6 +6,7 @@ export interface WorkOrderListItemProps {
6
6
  itemAction?: React.ReactNode;
7
7
  isHeader?: boolean;
8
8
  colorMap?: ColorMap;
9
+ iconName?: string;
9
10
  }
10
11
  declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
11
12
  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,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,6 @@ export * from './maps';
5
5
  export * from './misc';
6
6
  export * from './notifications';
7
7
  export * from './punches';
8
+ export * from "./sidesheet";
8
9
  export * from './subsea';
9
10
  export * from './workOrders';
@@ -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;
@@ -3,4 +3,5 @@ export interface ActionButton {
3
3
  onClick: () => void;
4
4
  variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
5
5
  color?: 'danger' | 'primary' | 'secondary';
6
+ disabled?: boolean;
6
7
  }
@@ -12,4 +12,6 @@ export interface WorkOrderItem {
12
12
  operationId?: string;
13
13
  earlyStartDate?: Date;
14
14
  earlyFinishDate?: Date;
15
+ basicFinishDateStatus?: string;
16
+ basicFinishDateTime?: Date;
15
17
  }
@@ -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;