@equinor/echo-cli 0.9.0-rc-0 → 0.9.0-rc-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.
Files changed (140) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/lib/test1/.env +0 -0
  4. package/lib/test1/.gitattributes +0 -3
  5. package/lib/test1/.yalc/@equinor/echo-components/README.md +0 -7
  6. package/lib/test1/.yalc/@equinor/echo-components/index.esm.d.ts +0 -1
  7. package/lib/test1/.yalc/@equinor/echo-components/index.esm.js +0 -7433
  8. package/lib/test1/.yalc/@equinor/echo-components/package.json +0 -26
  9. package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/svgrMock.d.ts +0 -3
  10. package/lib/test1/.yalc/@equinor/echo-components/src/__mocks__/workOrderItem.d.ts +0 -4
  11. package/lib/test1/.yalc/@equinor/echo-components/src/components/blackLink/BlackLink.d.ts +0 -11
  12. package/lib/test1/.yalc/@equinor/echo-components/src/components/buttonWithPopover/ButtonWithPopover.d.ts +0 -21
  13. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/index.d.ts +0 -1
  14. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/LineChart.d.ts +0 -22
  15. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/lineChartConfig.d.ts +0 -16
  16. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/dummy/rawData.d.ts +0 -26
  17. package/lib/test1/.yalc/@equinor/echo-components/src/components/charts/lineChart/utils.d.ts +0 -10
  18. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenu/ContextMenu.d.ts +0 -35
  19. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoButton.d.ts +0 -19
  20. package/lib/test1/.yalc/@equinor/echo-components/src/components/contextMenuPopover/DataInfoPopover.d.ts +0 -18
  21. package/lib/test1/.yalc/@equinor/echo-components/src/components/copyToClipboard/CopyToClipboard.d.ts +0 -9
  22. package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/PopupHeader.d.ts +0 -19
  23. package/lib/test1/.yalc/@equinor/echo-components/src/components/datePicker/ReactDatePicker.d.ts +0 -19
  24. package/lib/test1/.yalc/@equinor/echo-components/src/components/dialogGenerator/DialogGenerator.d.ts +0 -26
  25. package/lib/test1/.yalc/@equinor/echo-components/src/components/dropdown/Dropdown.d.ts +0 -37
  26. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoBottomBar/EchoBottomBar.d.ts +0 -7
  27. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Body.d.ts +0 -7
  28. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/DateSection.d.ts +0 -8
  29. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/EchoCard.d.ts +0 -7
  30. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/LinkSection.d.ts +0 -8
  31. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/Title.d.ts +0 -13
  32. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoCard/index.d.ts +0 -14
  33. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoHeader/EchoHeader.d.ts +0 -20
  34. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/Tooltip.d.ts +0 -10
  35. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/Tooltip/useTooltip.d.ts +0 -22
  36. package/lib/test1/.yalc/@equinor/echo-components/src/components/echoTooltip/index.d.ts +0 -10
  37. package/lib/test1/.yalc/@equinor/echo-components/src/components/floatingActionButton/FloatingActionButton.d.ts +0 -33
  38. package/lib/test1/.yalc/@equinor/echo-components/src/components/index.d.ts +0 -27
  39. package/lib/test1/.yalc/@equinor/echo-components/src/components/inlineTagIconLink/InlineTagIconLink.d.ts +0 -12
  40. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/MainLegend.d.ts +0 -22
  41. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/index.d.ts +0 -2
  42. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/LayerLegend.d.ts +0 -33
  43. package/lib/test1/.yalc/@equinor/echo-components/src/components/legend/layerLegend/index.d.ts +0 -1
  44. package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/ListItem.d.ts +0 -52
  45. package/lib/test1/.yalc/@equinor/echo-components/src/components/listItem/index.d.ts +0 -1
  46. package/lib/test1/.yalc/@equinor/echo-components/src/components/listRow/ListRow.d.ts +0 -29
  47. package/lib/test1/.yalc/@equinor/echo-components/src/components/pcMatrix/PCMatrix.d.ts +0 -8
  48. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/PanelStore.d.ts +0 -10
  49. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/index.d.ts +0 -6
  50. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/menuButton/MenuButton.d.ts +0 -24
  51. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panel/Panel.d.ts +0 -25
  52. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContent.d.ts +0 -23
  53. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelContent/PanelContentWrapper.d.ts +0 -16
  54. package/lib/test1/.yalc/@equinor/echo-components/src/components/rightPanel/panelWrapper/PanelWrapper.d.ts +0 -21
  55. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SearchSuggestions.d.ts +0 -3
  56. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/SuggestionGroup.d.ts +0 -3
  57. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/common/types.d.ts +0 -26
  58. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/floatingSearchBar/FloatingSearchBar.d.ts +0 -28
  59. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/index.d.ts +0 -3
  60. package/lib/test1/.yalc/@equinor/echo-components/src/components/searchBar/responsiveSearchBar/ResponsiveSearchBar.d.ts +0 -28
  61. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidebarButton/SidebarButton.d.ts +0 -70
  62. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/enums.d.ts +0 -5
  63. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/index.d.ts +0 -11
  64. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/Sheet.d.ts +0 -19
  65. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/index.d.ts +0 -1
  66. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheet/utils.d.ts +0 -2
  67. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/SheetTopArea.d.ts +0 -16
  68. package/lib/test1/.yalc/@equinor/echo-components/src/components/sidesheet/sheetTopArea/index.d.ts +0 -1
  69. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/SplitView.d.ts +0 -14
  70. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/index.d.ts +0 -8
  71. package/lib/test1/.yalc/@equinor/echo-components/src/components/splitView/left/SplitViewLeft.d.ts +0 -10
  72. package/lib/test1/.yalc/@equinor/echo-components/src/components/tagContextMenu/TagContextMenu.d.ts +0 -30
  73. package/lib/test1/.yalc/@equinor/echo-components/src/components/timePicker/TimePicker.d.ts +0 -12
  74. package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderListItem.d.ts +0 -10
  75. package/lib/test1/.yalc/@equinor/echo-components/src/components/workOrderListItem/WorkOrderStatusLabel.d.ts +0 -5
  76. package/lib/test1/.yalc/@equinor/echo-components/src/elements/draggableItemsWrapper/DraggableItemsWrapper.d.ts +0 -18
  77. package/lib/test1/.yalc/@equinor/echo-components/src/elements/icon/Icon.d.ts +0 -20
  78. package/lib/test1/.yalc/@equinor/echo-components/src/elements/index.d.ts +0 -8
  79. package/lib/test1/.yalc/@equinor/echo-components/src/elements/radioButtonGroup/RadioButtonGroup.d.ts +0 -20
  80. package/lib/test1/.yalc/@equinor/echo-components/src/elements/roundIconButton/RoundIconButton.d.ts +0 -13
  81. package/lib/test1/.yalc/@equinor/echo-components/src/elements/sliderField/SliderField.d.ts +0 -25
  82. package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIcon.d.ts +0 -16
  83. package/lib/test1/.yalc/@equinor/echo-components/src/elements/tagIcon/TagIconShadow.d.ts +0 -13
  84. package/lib/test1/.yalc/@equinor/echo-components/src/elements/textIconButton/TextIconButton.d.ts +0 -19
  85. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/classnames.d.ts +0 -5
  86. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/getIcon.d.ts +0 -2
  87. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/index.d.ts +0 -3
  88. package/lib/test1/.yalc/@equinor/echo-components/src/helpers/tagCategoryIcon.d.ts +0 -38
  89. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/index.d.ts +0 -3
  90. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useEventListener.d.ts +0 -3
  91. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useIsMobile.d.ts +0 -5
  92. package/lib/test1/.yalc/@equinor/echo-components/src/hooks/useKeyboardNavigation.d.ts +0 -18
  93. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/external.d.ts +0 -7
  94. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/general.d.ts +0 -2
  95. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/index.d.ts +0 -7
  96. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/maps.d.ts +0 -6
  97. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/misc.d.ts +0 -2
  98. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/notifications.d.ts +0 -9
  99. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/punches.d.ts +0 -4
  100. package/lib/test1/.yalc/@equinor/echo-components/src/icons/echoAssets/workOrders.d.ts +0 -11
  101. package/lib/test1/.yalc/@equinor/echo-components/src/icons/index.d.ts +0 -3
  102. package/lib/test1/.yalc/@equinor/echo-components/src/index.d.ts +0 -10
  103. package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/IconList.d.ts +0 -32
  104. package/lib/test1/.yalc/@equinor/echo-components/src/structure/iconList/createListRow.d.ts +0 -14
  105. package/lib/test1/.yalc/@equinor/echo-components/src/structure/index.d.ts +0 -3
  106. package/lib/test1/.yalc/@equinor/echo-components/src/structure/linkCard/LinkCard.d.ts +0 -26
  107. package/lib/test1/.yalc/@equinor/echo-components/src/structure/optionsList/OptionsList.d.ts +0 -24
  108. package/lib/test1/.yalc/@equinor/echo-components/src/theme/index.d.ts +0 -1
  109. package/lib/test1/.yalc/@equinor/echo-components/src/theme/themeConst.d.ts +0 -66
  110. package/lib/test1/.yalc/@equinor/echo-components/src/types/actionButton.d.ts +0 -6
  111. package/lib/test1/.yalc/@equinor/echo-components/src/types/charts.d.ts +0 -77
  112. package/lib/test1/.yalc/@equinor/echo-components/src/types/dataInformation.d.ts +0 -8
  113. package/lib/test1/.yalc/@equinor/echo-components/src/types/draggableItem.d.ts +0 -5
  114. package/lib/test1/.yalc/@equinor/echo-components/src/types/expandableRowProps.d.ts +0 -6
  115. package/lib/test1/.yalc/@equinor/echo-components/src/types/iconItem.d.ts +0 -4
  116. package/lib/test1/.yalc/@equinor/echo-components/src/types/iconListItem.d.ts +0 -6
  117. package/lib/test1/.yalc/@equinor/echo-components/src/types/index.d.ts +0 -12
  118. package/lib/test1/.yalc/@equinor/echo-components/src/types/legend.d.ts +0 -4
  119. package/lib/test1/.yalc/@equinor/echo-components/src/types/linkCardItem.d.ts +0 -5
  120. package/lib/test1/.yalc/@equinor/echo-components/src/types/menuItem.d.ts +0 -11
  121. package/lib/test1/.yalc/@equinor/echo-components/src/types/optionsItem.d.ts +0 -6
  122. package/lib/test1/.yalc/@equinor/echo-components/src/types/radioButtonItem.d.ts +0 -4
  123. package/lib/test1/.yalc/@equinor/echo-components/src/types/workOrderItem.d.ts +0 -16
  124. package/lib/test1/.yalc/@equinor/echo-components/src/utils/date.d.ts +0 -1
  125. package/lib/test1/.yalc/@equinor/echo-components/src/utils/index.d.ts +0 -2
  126. package/lib/test1/.yalc/@equinor/echo-components/src/utils/workorder.d.ts +0 -4
  127. package/lib/test1/.yalc/@equinor/echo-components/yalc.sig +0 -1
  128. package/lib/test1/build/echoModuleManifest.json +0 -12
  129. package/lib/test1/build/index.js +0 -144
  130. package/lib/test1/build/index.js.map +0 -1
  131. package/lib/test1/echoModule.config.json +0 -22
  132. package/lib/test1/echoModuleId.json +0 -3
  133. package/lib/test1/env.sh +0 -54
  134. package/lib/test1/package.json +0 -40
  135. package/lib/test1/readme.md +0 -47
  136. package/lib/test1/src/app.module.css +0 -5
  137. package/lib/test1/src/app.tsx +0 -36
  138. package/lib/test1/src/index.ts +0 -6
  139. package/lib/test1/tsconfig.json +0 -25
  140. package/lib/test1/yalc.lock +0 -10
@@ -1,13 +0,0 @@
1
- import React, { EventHandler, ReactElement, SyntheticEvent } from 'react';
2
- export declare enum RoundIconButtonVariants {
3
- OpenCloseButton = "openCloseButton",
4
- ToggleButton = "toggleButton"
5
- }
6
- export interface RoundIconButtonProps {
7
- label: string;
8
- active?: boolean;
9
- variant?: RoundIconButtonVariants;
10
- children?: ReactElement;
11
- onClick?: EventHandler<SyntheticEvent>;
12
- }
13
- export declare const RoundIconButton: React.FC<RoundIconButtonProps>;
@@ -1,25 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- export interface SliderFieldProps {
3
- value: number;
4
- min: number;
5
- max: number;
6
- labels?: string[];
7
- title: string;
8
- onChange: (value: number) => void;
9
- style?: CSSProperties;
10
- }
11
- /**
12
- * Component that renders a slider with numeric or custom values
13
- *
14
- * @param {SliderFieldProps} {
15
- * value: Current value of the slider,
16
- * min: Minimum value of the slider,
17
- * max: Maximum value of the slider,
18
- * labels: List of labels to use if the slider should not display numeric values,
19
- * title: Text shown as title of the slider,
20
- * onChange: Method that will be called if the slider value is changed,
21
- * style: style element to override wrapper style
22
- * }
23
- * @return {*} {JSX.Element}
24
- */
25
- export declare const SliderField: React.FC<SliderFieldProps>;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- interface TagIconProps {
3
- icon: JSX.Element;
4
- legendColor: string;
5
- }
6
- /**
7
- * Component that will wrap the provided icon with a background color (usually the legend color)
8
- *
9
- * @param {TagIconProps} {
10
- * icon: Icon to be wrapped
11
- * legendColor: background color to apply. Need to be valid css color
12
- * }
13
- * @return {*} {JSX.Element} Wrapped icon with provided color
14
- */
15
- export declare const TagIcon: React.FC<TagIconProps>;
16
- export default TagIcon;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- interface TagIconShadowWrapperProps {
3
- children: React.ReactNode;
4
- }
5
- /**
6
- * Component that will wrap the provided child element in a shadow.
7
- * Should be used to add shadow to the tagIcon component
8
- *
9
- * @param {TagIconShadowWrapperProps} { children } Child element to wrap
10
- * @return {*} {JSX.Element} wrapped child element in a shadow
11
- */
12
- export declare const TagIconShadowWrapper: React.FC<TagIconShadowWrapperProps>;
13
- export default TagIconShadowWrapper;
@@ -1,19 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- export interface TextIconButtonProps {
3
- icon: string | React.FC;
4
- title: string;
5
- onClick: () => void;
6
- style?: CSSProperties;
7
- }
8
- /**
9
- * Component that renders a button with the icon and the text provided
10
- *
11
- * @param {TextIconButtonProps} {
12
- * icon: the name of the icon to display
13
- * title: the title text that the button should display
14
- * onClick: the function that will be called when user clicks the button
15
- * style: Optional parameter that will override the button style
16
- * }
17
- * @return {*} {JSX.Element} A button with the provided icon and text
18
- */
19
- export declare const TextIconButton: React.FC<TextIconButtonProps>;
@@ -1,5 +0,0 @@
1
- type ClassNameDynamic = {
2
- [key: string]: boolean;
3
- };
4
- export declare function classnames(...parts: (string | ClassNameDynamic | undefined | boolean)[]): string | undefined;
5
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function getIcon(tagCategoryDescription: string): JSX.Element;
@@ -1,3 +0,0 @@
1
- export * from './classnames';
2
- export * from './getIcon';
3
- export * from './tagCategoryIcon';
@@ -1,38 +0,0 @@
1
- import React from 'react';
2
- interface ViewTagIconProps {
3
- tagCategoryDescription: string;
4
- }
5
- export declare enum TagCategoryType {
6
- Electrical = "electrical",
7
- MainEquipment = "main equipment",
8
- Line = "line",
9
- ManualValve = "manual valve",
10
- CircuitAndStarter = "circuit",
11
- Instrument = "instrument",
12
- Cable = "cable",
13
- Function = "function",
14
- Signal = "signal",
15
- Telecom = "telecom",
16
- JunctionBox = "junction box",
17
- Administrative = "administrative"
18
- }
19
- /**
20
- * Method that returns the relevant Icon for the tagCategoryDescription provided
21
- * Tag icon is the default JSX.Element Icon returned
22
- * @export
23
- * @param {('electrical'
24
- * | 'main equipment'
25
- * | 'line'
26
- * | 'manual valve'
27
- * | 'circuit/starter'
28
- * | 'instrument'
29
- * | 'cable'
30
- * | 'function'
31
- * | 'signal'
32
- * | 'telecom'
33
- * | 'junction box'
34
- * | 'administrative'
35
- * @return {*} {JSX.Element} Relevant icon for the provided tagCategoryDescription
36
- */
37
- export declare const TagCategoryIcon: React.FC<ViewTagIconProps>;
38
- export default TagCategoryIcon;
@@ -1,3 +0,0 @@
1
- export * from './useEventListener';
2
- export * from './useIsMobile';
3
- export * from './useKeyboardNavigation';
@@ -1,3 +0,0 @@
1
- type EventListenerHook = (eventName: string, handler: (e: any) => void, options?: boolean | AddEventListenerOptions, element?: HTMLElement | Window | Document | null) => void;
2
- declare const useEventListener: EventListenerHook;
3
- export default useEventListener;
@@ -1,5 +0,0 @@
1
- /**
2
- * Hook for checking if page is loaded from mobile device.
3
- * @returns boolean true if on mobile.
4
- */
5
- export declare function useIsMobile(): boolean;
@@ -1,18 +0,0 @@
1
- import { SuggestionGroup } from '../components';
2
- export type KeyboardEvents = {
3
- up?: Function;
4
- right?: Function;
5
- down?: Function;
6
- left?: Function;
7
- enter?: Function;
8
- escape?: Function;
9
- };
10
- declare const useKeyboardNavigation: (keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => void;
11
- /**
12
- * Handles keyboard navigation and key events in the floating search bar suggestions.
13
- */
14
- declare const useSearchBarSectionNavigator: (sections: SuggestionGroup[], initialSelected: number, keyboardEvents: KeyboardEvents, listenerTarget?: HTMLElement | Document) => {
15
- focusedSection: number;
16
- focusedOption: number;
17
- };
18
- export { useSearchBarSectionNavigator, useKeyboardNavigation };
@@ -1,7 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const robim_external_ald: IconData;
3
- export declare const robim_external_timp: IconData;
4
- export declare const robim_external_timp_text: IconData;
5
- export declare const robim_external_iwit: IconData;
6
- export declare const robim_external_methane_sensor: IconData;
7
- export declare const robim_external_satellite: IconData;
@@ -1,2 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const map_legend_info: IconData;
@@ -1,7 +0,0 @@
1
- export * from './external';
2
- export * from './general';
3
- export * from './notifications';
4
- export * from './punches';
5
- export * from './workOrders';
6
- export * from './misc';
7
- export * from './maps';
@@ -1,6 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const polygon: IconData;
3
- export declare const polyrectangle: IconData;
4
- export declare const polyline: IconData;
5
- export declare const polygon_symbol: IconData;
6
- export declare const distance_circle: IconData;
@@ -1,2 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const measuring_point: IconData;
@@ -1,9 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const notifications_main_group: IconData;
3
- export declare const notifications_m1: IconData;
4
- export declare const notifications_m2: IconData;
5
- export declare const notifications_m3: IconData;
6
- export declare const notifications_m4: IconData;
7
- export declare const notifications_m5: IconData;
8
- export declare const notifications_m6: IconData;
9
- export declare const notifications_m9: IconData;
@@ -1,4 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const punches_main_group: IconData;
3
- export declare const punches_pb: IconData;
4
- export declare const punches_pa: IconData;
@@ -1,11 +0,0 @@
1
- import { IconData } from '@equinor/eds-icons';
2
- export declare const workorders_main_group: IconData;
3
- export declare const workorders_pm01: IconData;
4
- export declare const workorders_pm02: IconData;
5
- export declare const workorders_pm03: IconData;
6
- export declare const workorders_pm04: IconData;
7
- export declare const workorders_pm05: IconData;
8
- export declare const workorders_pm06: IconData;
9
- export declare const workorders_pm10: IconData;
10
- export declare const workorders_pm15: IconData;
11
- export declare const workorders_pm20: IconData;
@@ -1,3 +0,0 @@
1
- import * as echoIcons from './echoAssets';
2
- export * from './echoAssets';
3
- export { echoIcons };
@@ -1,10 +0,0 @@
1
- import './theme/theme.css';
2
- export * from './components';
3
- export * from './elements';
4
- export * from './helpers';
5
- export * from './hooks';
6
- export * from './icons';
7
- export * from './structure';
8
- export { themeConst } from './theme/themeConst';
9
- export * from './types';
10
- export * from './utils';
@@ -1,32 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { IconItem, IconListItem } from '../..';
3
- export interface IconListProps {
4
- style?: CSSProperties;
5
- title: string;
6
- items: IconListItem[];
7
- isDraggable: boolean;
8
- expandedIcons?: IconItem[];
9
- onUpdatedOrder: (itemsInNewOrder: IconListItem[]) => void;
10
- }
11
- export interface IconListState {
12
- orderedItems: IconListItem[];
13
- expandedIndex: number;
14
- }
15
- /**
16
- * Component that renders an IconList of rows, that can be draggable and/or expandable
17
- *
18
- * @param {IconListProps} {
19
- * style: the style to override the IconList wrapper
20
- * title: The title of the list
21
- * items: { The items to be rendered in the row
22
- * title: the title of the item in the row
23
- * subtitle: the subtitle of the item in the row
24
- * icons: the icons that will be displayed on the same row, and their respective actions
25
- * }[]
26
- * isDraggable: flag to indicate if the elements in the list should be draggable
27
- * expandedIcons: list of icons that should be displayed if a row is expanded. If undefined no row can be expanded
28
- * onUpdatedOrder: method that will be called when the order of the list has changed
29
- * }
30
- * @return {*} {JSX.Element} a list of items that can be draggable and/or expandable
31
- */
32
- export declare const IconList: React.FC<IconListProps>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { IconItem } from '../..';
3
- import { IconListState } from './IconList';
4
- /**
5
- * Helper method that will return a list row given some input values. Used in IconList component for rendering rows
6
- *
7
- * @param {boolean} isDraggable flag to indicate that the row is draggable
8
- * @param {number} index the index of the list
9
- * @param {IconListState} iconListState the state from the IconList component used to create the row and its interactions
10
- * @param {(value: React.SetStateAction<IconListState>) => void} setIconListState the action to update the state from the IconList component
11
- * @param {IconItem[]} expandedIcons the icons to be displayed if the row is expandable. Is undefined if the row should not be expandable
12
- * @return {*} {React.ReactNode} A list row component created from the input parameters
13
- */
14
- export declare const createListRow: (isDraggable: boolean, index: number, iconListState: IconListState, setIconListState: (value: React.SetStateAction<IconListState>) => void, expandedIcons?: IconItem[]) => React.ReactNode;
@@ -1,3 +0,0 @@
1
- export { IconList } from './iconList/IconList';
2
- export * from './linkCard/LinkCard';
3
- export * from './optionsList/OptionsList';
@@ -1,26 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { LinkCardItem } from '../../types/linkCardItem';
3
- export interface LinkCardProps {
4
- image: string;
5
- title: string;
6
- subTitle: string;
7
- links: LinkCardItem[];
8
- style?: CSSProperties;
9
- }
10
- /**
11
- * Component that renders a card with an image and a list of links
12
- *
13
- * @param {LinkCardProps} {
14
- * style: style element to override wrapper style
15
- * image: the image scr of the image to be displayed
16
- * title: the title of the card
17
- * subTitle: the subtitle of the cars
18
- * links { A list of links to display
19
- * title: the text of the link
20
- * url: the url to the link
21
- * target: how the link should be opened. Possible values are '_blank' | '_self', default is '_self'
22
- * }
23
- * }
24
- * @return {*} {JSX.Element} a card element with an image and some provided links
25
- */
26
- export declare const LinkCard: ({ style, image, title, subTitle, links }: LinkCardProps) => React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import { OptionsItem } from '../../types/optionsItem';
3
- export interface OptionsListProps {
4
- style?: CSSProperties;
5
- items: OptionsItem[];
6
- titles: string[];
7
- columns: number;
8
- }
9
- /**
10
- * Component that renders a list with a set number of radio buttons for each row in the list
11
- *
12
- * @param {OptionsListProps} {
13
- * items:{ the items that should be shown in the list
14
- * title: the text displayed for a row in the list
15
- * color: the background color used in the badge in front of the title of the item
16
- * selectedColumnIndex: specifies witch radio button should have selected state. Should not be larger than the columns input property
17
- * }
18
- * style: Optional parameter that can override the wrapper style
19
- * titles: list of title that should be shown for the different columns in the list
20
- * columns: the number of columns the list should have
21
- * }
22
- * @return {*} {JSX.Element} a list of rows with a set of radio buttons
23
- */
24
- export declare const OptionsList: ({ items, style, titles, columns }: OptionsListProps) => React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './themeConst';
@@ -1,66 +0,0 @@
1
- export declare const themeConst: {
2
- black: string;
3
- white: string;
4
- equiBlue1: string;
5
- equiBlue2: string;
6
- equiBlue3: string;
7
- equiGray1: string;
8
- equiGray2: string;
9
- equiGray3: string;
10
- equiGray4: string;
11
- equiGray5: string;
12
- equiRed1: string;
13
- darkEquiRed: string;
14
- equiGreen1: string;
15
- equiGreen2: string;
16
- equiGreen3: string;
17
- equiGreen4: string;
18
- echoText: string;
19
- disabledBackgroundColor: string;
20
- disabledColor: string;
21
- pm01: string;
22
- pm02: string;
23
- pm03: string;
24
- pm04: string;
25
- pm05: string;
26
- pm06: string;
27
- pm010: string;
28
- pm015: string;
29
- pm020: string;
30
- onGoing: string;
31
- done: string;
32
- asBuilt: string;
33
- planned: string;
34
- future: string;
35
- historic: string;
36
- outOfService: string;
37
- reserved: string;
38
- voided: string;
39
- default: string;
40
- ok: string;
41
- os: string;
42
- pa: string;
43
- pb: string;
44
- unknown: string;
45
- priorityHigh: string;
46
- priorityMedium: string;
47
- systems: string;
48
- locations: string;
49
- ofpDark: string;
50
- ofpLight: string;
51
- warningText: string;
52
- warningIcon: string;
53
- warningBackground: string;
54
- dropDownButtonBackground: string;
55
- dropDownTextColor: string;
56
- searchBarBackground: string;
57
- highSeverity: string;
58
- mediumSeverity: string;
59
- lowSeverity: string;
60
- defaultSeverity: string;
61
- toggleActive: string;
62
- toggleInactive: string;
63
- hoverIcon: string;
64
- hoverIconWithNotification: string;
65
- tertiaryText: string;
66
- };
@@ -1,6 +0,0 @@
1
- export interface ActionButton {
2
- title: string;
3
- onClick: () => void;
4
- variant?: 'contained' | 'outlined' | 'ghost' | 'ghost_icon';
5
- color?: 'danger' | 'primary' | 'secondary';
6
- }
@@ -1,77 +0,0 @@
1
- import { InteractionMode, TooltipItem } from 'chart.js';
2
- import { ChartData, ChartOptions, ChartType } from 'chart.js/auto';
3
- export type LineChartDataSet = {
4
- label: string;
5
- data: number[];
6
- borderColor: string;
7
- pointBackgroundColor: string;
8
- backgroundColor: string;
9
- borderWidth: number;
10
- pointStyle: string;
11
- fill: boolean;
12
- };
13
- export type LineChartData = {
14
- labels: string[];
15
- datasets: LineChartDataSet[];
16
- };
17
- export type LineChartConfig = {
18
- type: ChartType;
19
- data: ChartData;
20
- options: ChartOptions & {
21
- responsive: boolean;
22
- stacked: boolean;
23
- interaction: {
24
- mode: InteractionMode;
25
- intersect: boolean;
26
- };
27
- elements: {
28
- line: {
29
- borderWidth: number;
30
- };
31
- };
32
- plugins: {
33
- legend: {
34
- labels: {
35
- boxWidth: number;
36
- boxHeight: number;
37
- };
38
- };
39
- title: {
40
- display: boolean;
41
- text: string;
42
- };
43
- tooltip: {
44
- callbacks?: {
45
- title?: () => string;
46
- };
47
- };
48
- };
49
- scales: {
50
- x: {
51
- title: {
52
- display: boolean;
53
- text: string;
54
- };
55
- ticks: {
56
- minRotation: number;
57
- maxRotation: number;
58
- };
59
- };
60
- y: {
61
- border: {
62
- display: boolean;
63
- };
64
- title: {
65
- display: boolean;
66
- text: string;
67
- };
68
- };
69
- };
70
- animation: boolean;
71
- };
72
- };
73
- export type ChartCallbacks = {
74
- tooltipCallback?: {
75
- title?: (tooltipItems: TooltipItem<'line'>[]) => string | undefined;
76
- };
77
- };
@@ -1,8 +0,0 @@
1
- export interface DataInformation {
2
- numberOfItems: number;
3
- label: string;
4
- ariaLabel?: string;
5
- onTagInfoClicked: () => void;
6
- itemType: string;
7
- itemButtonClassName?: string;
8
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DraggableItem {
3
- id: number;
4
- element: React.ReactNode;
5
- }
@@ -1,6 +0,0 @@
1
- import { IconItem } from './iconItem';
2
- export interface ExpandableRowProps {
3
- iconItems: IconItem[];
4
- expanded: boolean;
5
- setExpanded: (status: boolean) => void;
6
- }
@@ -1,4 +0,0 @@
1
- export interface IconItem {
2
- icon: string;
3
- onClick: () => void;
4
- }
@@ -1,6 +0,0 @@
1
- import { IconItem } from './iconItem';
2
- export interface IconListItem {
3
- title?: string;
4
- subTitle?: string;
5
- icons: IconItem[];
6
- }
@@ -1,12 +0,0 @@
1
- export * from './actionButton';
2
- export * from './dataInformation';
3
- export * from './draggableItem';
4
- export * from './expandableRowProps';
5
- export * from './iconItem';
6
- export * from './iconListItem';
7
- export * from './linkCardItem';
8
- export * from './menuItem';
9
- export * from './optionsItem';
10
- export * from './radioButtonItem';
11
- export * from './workOrderItem';
12
- export * from './legend';
@@ -1,4 +0,0 @@
1
- export type LayerInfo = {
2
- title: string;
3
- iconName?: string;
4
- };
@@ -1,5 +0,0 @@
1
- export interface LinkCardItem {
2
- title: string;
3
- url: string;
4
- target?: '_blank' | '_self';
5
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export interface MenuItem {
3
- labelId: string;
4
- label: string;
5
- icon: string | React.ReactNode;
6
- skipPanelContent?: boolean;
7
- isBottomItem?: boolean;
8
- panelSize?: PanelSize;
9
- component: React.FC<Record<string, unknown>>;
10
- }
11
- export type PanelSize = 'narrow' | 'wide';
@@ -1,6 +0,0 @@
1
- export interface OptionsItem {
2
- color?: string;
3
- title: string;
4
- selectedColumnIndex: number;
5
- onSelected: (rowIndex: number, columnIndex: number) => void;
6
- }
@@ -1,4 +0,0 @@
1
- export interface RadioButtonItem {
2
- title: string;
3
- isChecked: boolean;
4
- }
@@ -1,16 +0,0 @@
1
- export interface WorkOrderItem {
2
- id: string;
3
- orderType: string;
4
- isActive: boolean;
5
- requiredEndDateTime?: Date;
6
- maintenancePlanDate?: Date;
7
- planningPlant?: string;
8
- description?: string;
9
- workCenter?: string;
10
- workCenterId?: string;
11
- requiredEndDateStatus?: string;
12
- }
13
- export type RequiredEndDateColor = {
14
- color: string;
15
- background: string;
16
- };
@@ -1 +0,0 @@
1
- export declare function dateToStringOrEmpty(date: Date | string | undefined): string;
@@ -1,2 +0,0 @@
1
- export * from './date';
2
- export * from './workorder';