@corva/ui 0.55.0-5 → 0.55.0-7

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 (84) hide show
  1. package/assets/27337c7c90a52271ad290030959e6601.svg +11 -0
  2. package/assets/3db6b665f981a7aa81d8883122c9380c.svg +3 -0
  3. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  4. package/cjs-bundle/components/Icons/SkullIcon.js +1 -0
  5. package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
  6. package/cjs-bundle/components/OffsetWellChips/ChipsContainer.js +1 -1
  7. package/cjs-bundle/components/Select/index.js +1 -1
  8. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
  9. package/cjs-bundle/components/StatusBadge/components/DQStatusIcon.js +1 -0
  10. package/cjs-bundle/components/StatusBadge/components/DQSuccessContent.js +1 -0
  11. package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
  12. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -0
  13. package/cjs-bundle/components/StatusBadge/constants.js +1 -1
  14. package/cjs-bundle/components/StatusBadge/index.js +1 -1
  15. package/cjs-bundle/components/SwitchControl/index.js +1 -1
  16. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  17. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  18. package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/index.d.ts +2 -2
  19. package/components/IconMenu/index.d.ts +3 -3
  20. package/components/Icons/SkullIcon.d.ts +2 -0
  21. package/components/Icons/SkullIcon.d.ts.map +1 -0
  22. package/components/Icons/SkullIcon.js +1 -0
  23. package/components/OffsetWellChips/Chip.d.ts +1 -13
  24. package/components/OffsetWellChips/Chip.d.ts.map +1 -1
  25. package/components/OffsetWellChips/Chip.js +1 -1
  26. package/components/OffsetWellChips/ChipsContainer.d.ts +1 -13
  27. package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
  28. package/components/OffsetWellChips/ChipsContainer.js +1 -1
  29. package/components/OffsetWellChips/types.d.ts +15 -17
  30. package/components/OffsetWellChips/types.d.ts.map +1 -1
  31. package/components/Select/index.d.ts +2 -45
  32. package/components/Select/index.d.ts.map +1 -1
  33. package/components/Select/index.js +1 -1
  34. package/components/Select/types.d.ts +15 -0
  35. package/components/Select/types.d.ts.map +1 -0
  36. package/components/StatusBadge/components/DQAlertsTooltip.d.ts +9 -0
  37. package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -0
  38. package/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
  39. package/components/StatusBadge/components/DQStatusIcon.d.ts +10 -0
  40. package/components/StatusBadge/components/DQStatusIcon.d.ts.map +1 -0
  41. package/components/StatusBadge/components/DQStatusIcon.js +1 -0
  42. package/components/StatusBadge/components/DQSuccessContent.d.ts +5 -0
  43. package/components/StatusBadge/components/DQSuccessContent.d.ts.map +1 -0
  44. package/components/StatusBadge/components/DQSuccessContent.js +1 -0
  45. package/components/StatusBadge/components/DQUnvalidatedContent.d.ts.map +1 -0
  46. package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
  47. package/components/StatusBadge/components/ReportIssueModal.d.ts +8 -0
  48. package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -0
  49. package/components/StatusBadge/components/ReportIssueModal.js +1 -0
  50. package/components/StatusBadge/constants.d.ts +16 -13
  51. package/components/StatusBadge/constants.d.ts.map +1 -1
  52. package/components/StatusBadge/constants.js +1 -1
  53. package/components/StatusBadge/index.d.ts +1 -1
  54. package/components/StatusBadge/index.d.ts.map +1 -1
  55. package/components/StatusBadge/index.js +1 -1
  56. package/components/SwitchControl/index.d.ts +32 -36
  57. package/components/SwitchControl/index.d.ts.map +1 -1
  58. package/components/SwitchControl/index.js +1 -1
  59. package/components/SwitchControl/types.d.ts +17 -0
  60. package/components/SwitchControl/types.d.ts.map +1 -0
  61. package/package.json +1 -1
  62. package/assets/1aa187dca9a802ede389885e43aff155.svg +0 -9
  63. package/assets/5124c957601b1a0ef1f0b93bce1ae0de.svg +0 -13
  64. package/assets/66745cf3868fdb983d0a2180a43b0720.svg +0 -11
  65. package/cjs-bundle/components/Icons/GppBadIcon.js +0 -1
  66. package/cjs-bundle/components/Icons/GppGoodIcon.js +0 -1
  67. package/cjs-bundle/components/OffsetWellChips/types.js +0 -1
  68. package/cjs-bundle/components/StatusBadge/DQChip.js +0 -1
  69. package/cjs-bundle/components/StatusBadge/DQStatusIcon.js +0 -1
  70. package/cjs-bundle/components/StatusBadge/DQUnvalidatedContent.js +0 -1
  71. package/components/Icons/GppBadIcon.d.ts +0 -2
  72. package/components/Icons/GppBadIcon.d.ts.map +0 -1
  73. package/components/Icons/GppBadIcon.js +0 -1
  74. package/components/Icons/GppGoodIcon.js +0 -1
  75. package/components/OffsetWellChips/types.js +0 -1
  76. package/components/StatusBadge/DQChip.d.ts +0 -9
  77. package/components/StatusBadge/DQChip.d.ts.map +0 -1
  78. package/components/StatusBadge/DQChip.js +0 -1
  79. package/components/StatusBadge/DQStatusIcon.d.ts +0 -13
  80. package/components/StatusBadge/DQStatusIcon.d.ts.map +0 -1
  81. package/components/StatusBadge/DQStatusIcon.js +0 -1
  82. package/components/StatusBadge/DQUnvalidatedContent.d.ts.map +0 -1
  83. package/components/StatusBadge/DQUnvalidatedContent.js +0 -1
  84. /package/components/StatusBadge/{DQUnvalidatedContent.d.ts → components/DQUnvalidatedContent.d.ts} +0 -0
@@ -1,23 +1,21 @@
1
- import PropTypes from 'prop-types';
2
- export declare const offsetWellChipPropTypes: {
3
- title: PropTypes.Validator<string>;
4
- isSubject: PropTypes.Validator<boolean>;
5
- maxWidth: PropTypes.Requireable<number>;
6
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
7
- markColor: PropTypes.Requireable<string>;
8
- rigName: PropTypes.Requireable<string>;
9
- id: PropTypes.Validator<string>;
10
- wellId: PropTypes.Validator<string>;
11
- onRemoveOffsetWell: PropTypes.Requireable<(...args: any[]) => any>;
12
- isShowMark: PropTypes.Requireable<boolean>;
13
- };
14
- export interface ChipProps extends PropTypes.InferProps<typeof offsetWellChipPropTypes> {
1
+ import { MouseEvent } from 'react';
2
+ export interface ChipProps<T> {
3
+ title: string;
4
+ isSubject?: boolean;
5
+ maxWidth?: number;
6
+ onClick?: (e: MouseEvent<HTMLDivElement>, wellId: T) => void;
7
+ markColor?: string;
8
+ rigName?: string;
9
+ wellId: T;
10
+ onRemoveOffsetWell?: (wellId: T) => void;
11
+ isShowMark?: boolean;
15
12
  }
16
- export interface ChipsContainerProps {
17
- wells: ChipProps[];
13
+ export interface ChipsContainerProps<T> {
14
+ wells: ChipProps<T>[];
18
15
  maxWidth?: number;
19
- onRemoveOffsetWell: (wellId: number | string) => void;
16
+ onRemoveOffsetWell?: (wellId: T) => void;
20
17
  isShowMark?: boolean;
18
+ onChipClick: (e: MouseEvent<HTMLDivElement>, wellId: T) => void;
21
19
  }
22
20
  export interface StyleProps {
23
21
  markColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;;;;;;;;;;CAWnC,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAC1F,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;IACV,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1,32 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { SelectProps as MuiSelectProps, MenuProps as MuiMenuProps, FormControlProps as MuiFormControlProps } from '@material-ui/core';
3
- import PropTypes from 'prop-types';
4
- interface SelectProps extends MuiFormControlProps, PropTypes.InferProps<typeof selectPropTypes> {
5
- MenuProps?: Partial<MuiMenuProps> & {
6
- list: string;
7
- paper: string;
8
- };
9
- }
2
+ import { SelectProps } from './types';
10
3
  declare const Select: {
11
- (props: SelectProps & MuiSelectProps): JSX.Element;
12
- propTypes: {
13
- FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
14
- classes: PropTypes.Requireable<PropTypes.InferProps<{
15
- root: PropTypes.Requireable<string>;
16
- }>>;
17
- disabled: PropTypes.Requireable<boolean>;
18
- variant: PropTypes.Requireable<string>;
19
- }>>;
20
- InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
21
- classes: PropTypes.Requireable<PropTypes.InferProps<{
22
- root: PropTypes.Requireable<string>;
23
- disabled: PropTypes.Requireable<string>;
24
- }>>;
25
- }>>;
26
- label: PropTypes.Requireable<string>;
27
- formHelperText: PropTypes.Requireable<string>;
28
- error: PropTypes.Requireable<boolean>;
29
- };
4
+ <T extends unknown>(props: SelectProps<T>): JSX.Element;
30
5
  defaultProps: {
31
6
  FormControlProps: {};
32
7
  InputLabelProps: {};
@@ -35,23 +10,5 @@ declare const Select: {
35
10
  error: boolean;
36
11
  };
37
12
  };
38
- declare const selectPropTypes: {
39
- FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
40
- classes: PropTypes.Requireable<PropTypes.InferProps<{
41
- root: PropTypes.Requireable<string>;
42
- }>>;
43
- disabled: PropTypes.Requireable<boolean>;
44
- variant: PropTypes.Requireable<string>;
45
- }>>;
46
- InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
47
- classes: PropTypes.Requireable<PropTypes.InferProps<{
48
- root: PropTypes.Requireable<string>;
49
- disabled: PropTypes.Requireable<string>;
50
- }>>;
51
- }>>;
52
- label: PropTypes.Requireable<string>;
53
- formHelperText: PropTypes.Requireable<string>;
54
- error: PropTypes.Requireable<boolean>;
55
- };
56
13
  export default Select;
57
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,WAAW,IAAI,cAAc,EAC7B,SAAS,IAAI,YAAY,EAEzB,gBAAgB,IAAI,mBAAmB,EAIxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAS,MAAM,YAAY,CAAC;AA+InC,UAAU,WAAY,SAAQ,mBAAmB,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;CACF;AAED,QAAA,MAAM,MAAM;2CAA0C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ChE,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiBpB,CAAC;AAYF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA6ItC,QAAA,MAAM,MAAM;gDAA+C,WAAW;;;;;;;;CAyCrE,CAAC;AAUF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as n,Select as u,FormHelperText as d}from"@material-ui/core";import p from"prop-types";import s from"uuid/v4";import c from"classnames";var m=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),b=function(i){var p,b,M,f,I,x,y=i.FormControlProps,v=i.InputLabelProps,g=i.label,F=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),h=l(s,[]),L=m();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(M=y.classes)||void 0===M?void 0:M.root,L.formControlRoot,(p={},p[L.error]=P.error,p))}),disabled:y.disabled||P.disabled},{children:[g&&t(n,o({id:h},v,{children:g})),t(u,o({},P,{labelId:h,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes),{paper:c(null===(I=null==P?void 0:P.MenuProps)||void 0===I?void 0:I.paper,(b={},b[L.outlinedMenuPaper]="outlined"===y.variant,b)),list:c(null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.list,L.menuList)})})})),F&&t(d,{children:F})]}))},M={FormControlProps:p.shape({classes:p.shape({root:p.string}),disabled:p.bool,variant:p.oneOf(["outlined","filled","standard"])}),InputLabelProps:p.shape({classes:p.shape({root:p.string,disabled:p.string})}),label:p.string,formHelperText:p.string,error:p.bool};b.propTypes=M,b.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{b as default};
1
+ import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as u,Select as n,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),m=function(i){var m,b,M,f,I,x,v,y=i.FormControlProps,F=i.InputLabelProps,g=i.label,L=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),C=l(p,[]),S=s();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(b=y.classes)||void 0===b?void 0:b.root,S.formControlRoot,(m={},m[S.error]=P.error,m))}),disabled:y.disabled||P.disabled},{children:[g&&t(u,o({id:C},F,{children:g})),t(n,o({},P,{labelId:C,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(M=null==P?void 0:P.MenuProps)||void 0===M?void 0:M.classes),{paper:null===(I=null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes)||void 0===I?void 0:I.paper,list:c(null===(v=null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.classes)||void 0===v?void 0:v.list,S.menuList)})})})),L&&t(d,{children:L})]}))};m.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{m as default};
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { FormControlProps, InputLabelProps, SelectProps as MuiSelectProps } from '@material-ui/core';
3
+ export declare type SelectProps<T> = {
4
+ FormControlProps?: FormControlProps;
5
+ InputLabelProps?: InputLabelProps;
6
+ label?: string | ReactNode;
7
+ formHelperText?: string | ReactNode;
8
+ error?: boolean;
9
+ value?: T;
10
+ onChange?: (e: React.ChangeEvent<{
11
+ name?: string;
12
+ value: T;
13
+ }>, child: ReactNode) => void;
14
+ } & Omit<MuiSelectProps, 'value' | 'onChange'>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,IAAI,cAAc,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,oBAAY,WAAW,CAAC,CAAC,IAAI;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CAC1F,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from 'react';
2
+ import { Alert } from '../constants';
3
+ declare type DQCountryCheckTooltipProps = {
4
+ alert: Alert;
5
+ children: ReactElement<any, any>;
6
+ };
7
+ export declare const DQAlertsTooltip: ({ alert, children }: DQCountryCheckTooltipProps) => JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=DQAlertsTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQAlertsTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQAlertsTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQrC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAgIrC,aAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,eAAe,wBAAyB,0BAA0B,KAAG,WA8CjF,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as a,Fragment as r}from"react/jsx-runtime";import i from"moment";import{template as o}from"lodash";import{makeStyles as n}from"@material-ui/core";import{Tooltip as l}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";var s=n((function(e){return{errorIcon:{width:20,height:24,marginLeft:"-6px",backgroundPosition:"center",backgroundRepeat:"no-repeat"},title:{maxWidth:198,padding:"0 0 8px",fontSize:16,lineHeight:"22px",color:e.palette.primary.text1},alertTime:{fontSize:14,color:e.palette.primary.text6,"& span":{color:e.palette.primary.text1}},alertMessage:{width:"100%",height:40,margin:0,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":2,"-webkit-box-orient":"vertical",whiteSpace:"pre-wrap",fontSize:14,lineHeight:"20px",color:e.palette.primary.text1},alertMessageFull:{marginBottom:8,fontSize:14,lineHeight:"20px",color:e.palette.primary.text1,whiteSpace:"pre-wrap"},alertInfo:{display:"flex",alignItems:"center",flexWrap:"wrap",marginBottom:8,fontSize:14,textTransform:"capitalize","& span":{color:e.palette.primary.text6,marginRight:8},"& .error":{color:e.palette.error.main},"& .warning":{color:"#ffa500"}},resolvedInfo:{display:"flex",alignItems:"center",marginBottom:8,color:e.palette.primary.text6,fontSize:14},infoIcon:{color:e.palette.info.main,marginRight:8,fontSize:16},popover:{width:270,minHeight:122,padding:12,display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:e.palette.background.b9,border:"1px solid ".concat(e.palette.primary.text9),boxShadow:"0px 3px 10px rgba(0, 0, 0, 0.4)",borderRadius:4,"& .MuiTooltip-tooltip":{backgroundColor:e.palette.background.b9,margin:0,padding:0}},highlight:{fontWeight:500},message:{whiteSpace:"pre-wrap"},note:{marginBottom:4}}})),p=function(e){return i.unix(e).format("DD MMM HH:mm (Z)")},c=function(a){var r=a.children,i=s(),n=o(r)({timestampFormatter:p}).split("**").map((function(e,a){return a%2==1?t("b",{children:e}):e}));return t("span",e({className:i.message},{children:n}))},m=function(o){var n,p,m,d=o.alert,h=o.children,g=s(),f=Math.max(d.statusUpdatedAt,d.lastCheckedAt),u=(void 0===m&&(m="MM/DD/YYYY HH:mm a"),(p=f)?i.unix(p).format(m):null);return t(l,{interactive:!0,children:h,PopperProps:{className:g.popover},placement:"right",title:a(r,{children:[t("div",e({className:g.title},{children:d.name})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Category:"})," ",d.category]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Status:"})," ",d.status]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Error Type:"}),t("div",{className:g.errorIcon,style:{backgroundImage:'url("'.concat("issue"===d.state?"/static/media/27337c7c90a52271ad290030959e6601.svg":"/static/media/3db6b665f981a7aa81d8883122c9380c.svg",'")')}}),t("span",e({className:"issue"===d.state?"warning":"error"},{children:d.state}))]})),a("span",e({className:g.alertInfo},{children:[t("span",{children:"Score Deduction:"}),t("span",e({className:"warning"},{children:"6%"}))]})),a("div",e({className:g.alertMessageFull},{children:[d.isThrottled&&t("b",{children:"[Throttled]: "}),t(c,{children:d.message})]})),a("span",e({className:g.alertInfo},{children:[t("span",e({className:g.note},{children:"Note:"}))," ",(null===(n=d.note)||void 0===n?void 0:n.length)?d.note:"—"]})),a("span",e({className:g.alertTime},{children:["Updated at: ",t("span",{children:u})]}))]})})};export{m as DQAlertsTooltip};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { BadgeIconStatus } from '../constants';
3
+ declare type iconProps = {
4
+ color: BadgeIconStatus;
5
+ className?: string;
6
+ iconType: BadgeIconStatus;
7
+ };
8
+ export declare const DQStatusIcon: ({ color, className, iconType }: iconProps) => JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=DQStatusIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQStatusIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQStatusIcon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,eAAe,EAAE,MAAM,cAAc,CAAC;AAS5D,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,YAAY,mCAAoC,SAAS,KAAG,WAOxE,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import e from"classnames";import{BADGE_ICONS as t}from"../constants.js";var a=o((function(r){return{small:{fontSize:"16px"},warning:{color:r.palette.warning.main},error:{color:r.palette.error.main},success:{color:r.palette.success.bright}}})),s=function(o){var s=o.color,n=o.className,c=o.iconType,m=t[c],i=a();return r(m,{className:e(i.small,i[s],n)})};export{s as DQStatusIcon};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const DQSuccessContent: ({ onClick }: {
3
+ onClick: () => void;
4
+ }) => JSX.Element;
5
+ //# sourceMappingURL=DQSuccessContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQSuccessContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQSuccessContent.tsx"],"names":[],"mappings":";AAwBA,eAAO,MAAM,gBAAgB;aAA4B,MAAM,IAAI;MAAK,WAqBvE,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as i}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e}from"react/jsx-runtime";import{makeStyles as o,Typography as n}from"@material-ui/core";import r from"../../Button/index.js";var a=o((function(i){return{container:{display:"flex",flexDirection:"column",padding:12},title:{fontWeight:500,fontSize:"16px",lineHeight:"19px",marginBottom:4},subtitle:{color:i.palette.primary.text7,fontSize:"12px",lineHeight:"14px",marginBottom:4},button:{alignSelf:"end"}}})),l=function(o){var l=o.onClick,s=a();return t("div",i({className:s.container},{children:[e(n,i({className:s.title},{children:"Data Quality is confirmed"})),e(n,i({className:s.subtitle},{children:"If you have found any issues, inform us."})),e(r,i({color:"primary",className:s.button,onClick:l,variation:"secondary"},{children:"report issue"}))]}))};export{l as DQSuccessContent};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DQUnvalidatedContent.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/DQUnvalidatedContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAuD/D,aAAK,yBAAyB,GAAG;IAC/B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B,CAAA;AAED,eAAO,MAAM,oBAAoB,mBAAoB,yBAAyB,KAAG,WAqDhF,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as i}from"react/jsx-runtime";import a from"classnames";import{makeStyles as s,Typography as t}from"@material-ui/core";import{DQAlertsTooltip as n}from"./DQAlertsTooltip.js";var o=s((function(e){return{assetWrapper:{display:"flex",whiteSpace:"nowrap",alignItems:"center",marginTop:8},assetName:{maxWidth:102,overflow:"hidden",flex:1,fontSize:"12px",fontWeight:500,lineHeight:"14px",letterSpacing:"0.4px",textOverflow:"ellipsis"},container:{padding:12},headerText:{lineHeight:"19px",fontSize:"16px",fontWeight:500},subheaderText:{lineHeight:"14px",fontSize:"12px",fontWeight:400,color:e.palette.primary.text7,marginTop:4},issue:{color:"#ffa500"},missing:{color:e.palette.error.main},errorContainerMargin:{marginLeft:16},errorContainer:{display:"flex",alignItems:"center"},errorText:{marginLeft:4,fontSize:"14px",lineHeight:"20px"},errorNum:{fontSize:"16px",lineHeight:"22px",marginLeft:4}}})),l=function(s){var l=s.assetsData,m=o();return r("div",e({className:m.container},{children:[r("div",{children:[i(t,e({className:m.headerText},{children:"Data Quality Issues"})),r(t,e({className:m.subheaderText},{children:["Here you can see different issue types.",i("br",{}),"Hover over an icon to get more info."]}))]}),i("div",{children:null==l?void 0:l.map((function(s){var t,o=s.id,l=s.name,c=s.issuesNum,d=s.missingNum,p=s.alert,h=c&&d;return r("div",e({className:m.assetWrapper},{children:[i("div",e({className:m.assetName},{children:l})),c&&i(n,e({alert:p},{children:r("div",e({className:m.errorContainer},{children:[i("img",{src:"/static/media/27337c7c90a52271ad290030959e6601.svg",alt:"issues"}),r("div",{children:[i("span",e({className:a(m.issue,m.errorText)},{children:"Issue: "})),i("span",e({className:m.errorNum},{children:c}))]})]}))})),d&&i(n,e({alert:e(e({},p),{state:"missing"})},{children:r("div",e({className:a(m.errorContainer,(t={},t[m.errorContainerMargin]=h,t))},{children:[i("img",{src:"/static/media/3db6b665f981a7aa81d8883122c9380c.svg",alt:"missing"}),r("div",{children:[i("span",e({className:a(m.missing,m.errorText)},{children:"Missing: "})),i("span",e({className:m.errorNum},{children:d}))]})]}))}))]}),o)}))})]}))};export{l as DQUnvalidatedContent};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare type ReportIssueModalProps = {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ };
6
+ export declare const ReportIssueModal: ({ open, onClose }: ReportIssueModalProps) => JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ReportIssueModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportIssueModal.d.ts","sourceRoot":"","sources":["../../../../src/components/StatusBadge/components/ReportIssueModal.tsx"],"names":[],"mappings":";AAmBA,aAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,gBAAgB,sBAAuB,qBAAqB,KAAG,WAiC3E,CAAC"}
@@ -0,0 +1 @@
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{makeStyles as l,TextField as t}from"@material-ui/core";import n from"../../Modal/Modal.js";import a from"../../Button/index.js";var c=l((function(e){return{container:{width:472,color:e.palette.primary.text6,display:"flex",flexDirection:"column",gap:8},helpText:{fontSize:16,lineHeight:"22px"},clearAllButton:{margin:"0 16px 0 auto"}}})),m=function(l){var m=l.open,s=l.onClose,p=c();return r(n,e({open:m,onClose:s,title:"Report Error",actions:o(i,{children:[r(a,e({color:"primary",className:p.clearAllButton,onClick:s},{children:"Cancel"})),r(a,e({variation:"primary"},{children:"Save"}))]})},{children:o("div",e({className:p.container},{children:[r("div",e({className:p.helpText},{children:"The reported error will be treated by Corva 24/7 Operations Team. The well score will be reduced by 15%."})),r(t,{multiline:!0,rows:1,rowsMax:4,label:"Error Description"})]}))}))};export{m as ReportIssueModal};
@@ -1,10 +1,23 @@
1
+ /// <reference types="react" />
1
2
  export declare const MAX_MOBILE_WIDTH = 959;
2
3
  export declare type BadgeIconStatus = 'warning' | 'error' | 'success';
4
+ export declare type Alert = {
5
+ name: string;
6
+ category: string;
7
+ state: string;
8
+ status: string;
9
+ isThrottled: boolean;
10
+ message: string;
11
+ note: string;
12
+ statusUpdatedAt: number;
13
+ lastCheckedAt: number;
14
+ };
3
15
  export declare type AssetData = {
4
- status: BadgeIconStatus;
5
16
  name: string;
6
- datetime: number;
7
17
  id: number;
18
+ issuesNum: number;
19
+ missingNum: number;
20
+ alert: Alert;
8
21
  };
9
22
  declare type BadgeIconStatuses = {
10
23
  success: 'success';
@@ -15,18 +28,8 @@ export declare const BADGE_ICON_STATUSES: BadgeIconStatuses;
15
28
  export declare const BADGE_ICONS: {
16
29
  success: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
17
30
  warning: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
18
- DQWarning: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
19
- error: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
31
+ error: () => JSX.Element;
20
32
  };
21
33
  export declare const WARNING = "Recommendations may be incorrect based on data quality errors";
22
- export declare const TOOLTIPS: {
23
- success: string;
24
- warning: string;
25
- };
26
- declare type IconSizeType = {
27
- small: 'small';
28
- large: 'large';
29
- };
30
- export declare const ICON_SIZE: IconSizeType;
31
34
  export {};
32
35
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,oBAAY,SAAS,GAAG;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAIjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,kEAAkE,CAAC;AAEvF,eAAO,MAAM,QAAQ;;;CAGpB,CAAA;AAED,aAAK,YAAY,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,SAAS,EAAE,YAGvB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/constants.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,oBAAY,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,oBAAY,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,aAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBAIjC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,OAAO,kEAAkE,CAAC"}
@@ -1 +1 @@
1
- import r from"@material-ui/icons/Warning";import{GppGoodIcon as s}from"../Icons/GppGoodIcon.js";import{GppBadIcon as a}from"../Icons/GppBadIcon.js";var n,o,e=959,i={success:"success",warning:"warning",error:"error"},c=((n={})[i.success]=s,n[i.warning]=r,n.DQWarning=a,n[i.error]=a,n),m="Recommendations may be incorrect based on data quality errors",t=((o={})[i.success]="Everything is Validated",o[i.warning]=m,o),g={small:"small",large:"large"};export{c as BADGE_ICONS,i as BADGE_ICON_STATUSES,g as ICON_SIZE,e as MAX_MOBILE_WIDTH,t as TOOLTIPS,m as WARNING};
1
+ import r from"@material-ui/icons/Warning";import o from"@material-ui/icons/Done";import{SkullIcon as n}from"../Icons/SkullIcon.js";var e,i=959,s={success:"success",warning:"warning",error:"error"},a=((e={})[s.success]=o,e[s.warning]=r,e[s.error]=n,e),c="Recommendations may be incorrect based on data quality errors";export{a as BADGE_ICONS,s as BADGE_ICON_STATUSES,i as MAX_MOBILE_WIDTH,c as WARNING};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BadgeIconStatus, AssetData } from '~/components/StatusBadge/constants';
2
+ import { BadgeIconStatus, AssetData } from './constants';
3
3
  declare type StatusBadgeProps = {
4
4
  assetsData?: AssetData[];
5
5
  appWidth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAML,eAAe,EACf,SAAS,EACV,MAAM,oCAAoC,CAAC;AA2D5C,aAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,kFAOrB,gBAAgB,KAAG,WA+CrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAIL,eAAe,EACf,SAAS,EACV,MAAM,aAAa,CAAC;AA6ErB,aAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,kFAOrB,gBAAgB,KAAG,WAoDrB,CAAC"}
@@ -1 +1 @@
1
- import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as a}from"react/jsx-runtime";import i from"moment";import n from"classnames";import{makeStyles as o,Typography as r}from"@material-ui/core";import{Tooltip as p}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{TOOLTIPS as s,WARNING as l,ICON_SIZE as c,BADGE_ICON_STATUSES as m,MAX_MOBILE_WIDTH as d}from"./constants.js";import{DQStatusIcon as g}from"./DQStatusIcon.js";import{DQUnvalidatedContent as f}from"./DQUnvalidatedContent.js";var u=o((function(t){return{statusBadgeWrapper:{backgroundColor:t.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",flexDirection:function(t){return t.isWarningTypeIcon?"row-reverse":"initial"},justifyContent:function(t){return t.isWarningTypeIcon&&"flex-end"},padding:"12px 0 2px 2px",whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:t.palette.primary.text6,marginLeft:function(t){var e=t.isWarningTypeIcon,a=t.isIconType;return!e&&a&&8}},warningMessage:{color:t.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:function(e){return{"& .MuiTooltip-tooltip":{maxWidth:455,width:e.isScrollable?455:439,padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:t.palette.background.b9}}}}})),x=function(o){var x,h=o.assetsData,b=void 0===h?[]:h,v=o.appWidth,y=o.iconType,T=o.className,w=o.lastTimestamp,S=o.warningMessage,W=y==m.warning,I=y==m.error,j=v<d,N=u({isWarningTypeIcon:W,isIconType:!!y,isScrollable:(null==b?void 0:b.length)>5}),C=s[y];return W&&S&&(C="".concat(s[y],". ").concat(S)),I&&(C=e(f,{assetsData:b})),e("div",t({className:n(N.statusBadgeWrapper,T)},{children:a("div",t({className:N.statusBadgeContent},{children:[W&&!j&&e(r,t({className:n(N.text,N.warningMessage),variant:"body1"},{children:S?"".concat(l,". ").concat(S):l})),y&&e(p,t({interactive:I,PopperProps:I&&{className:N.popper},placement:"top",title:C},{children:e("div",{children:e(g,{className:n((x={},x[N.badgeIconWarning]=W,x)),color:y,iconType:y,size:c.small})})})),a(r,t({className:n(N.text,N.timestamp),variant:"body1"},{children:["Last Update: ",i.unix(w).format("M/D/YYYY h:mm a")]}))]}))}))};export{x as StatusBadge};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as n}from"react/jsx-runtime";import{useState as o}from"react";import r from"moment";import a from"classnames";import{makeStyles as i,Typography as s}from"@material-ui/core";import{Tooltip as p}from"../Tooltip/Tooltip.js";import"../Tooltip/ScrollableTooltip.js";import{WARNING as c,BADGE_ICON_STATUSES as l,MAX_MOBILE_WIDTH as m}from"./constants.js";import{DQStatusIcon as d}from"./components/DQStatusIcon.js";import{DQUnvalidatedContent as u}from"./components/DQUnvalidatedContent.js";import{DQSuccessContent as g}from"./components/DQSuccessContent.js";import{ReportIssueModal as f}from"./components/ReportIssueModal.js";var x=i((function(e){return{statusBadgeWrapper:{backgroundColor:e.palette.background.b4,display:"flex",height:30},statusBadgeContent:{display:"flex",flexDirection:function(e){return e.isWarningTypeIcon?"row-reverse":"initial"},justifyContent:function(e){return e.isWarningTypeIcon&&"flex-end"},padding:function(e){var t=e.isSuccessTypeIcon,n=e.isErrorTypeIcon;return"12px 0 2px ".concat(t||n?6:2,"px")},whiteSpace:"nowrap",width:"calc(100% - 140px)"},text:{fontSize:"10px",lineHeight:"12px",alignSelf:"center"},timestamp:{color:e.palette.primary.text6,marginLeft:function(e){var t=e.isWarningTypeIcon,n=e.isIconType;return!t&&n&&4}},warningMessage:{color:e.palette.primary.text1,marginLeft:4,textOverflow:"ellipsis",overflow:"hidden",fontSize:"12px"},badgeIconWarning:{marginLeft:8},popper:{"& .MuiTooltip-tooltip":{maxWidth:455,width:320,padding:4,fontSize:12,boxShadow:"0px 0px 4px 2px rgb(0 0 0 / 12%)",fontWeight:400,lineHeight:"16px",letterSpacing:"0.4px",backgroundColor:e.palette.background.b9}},DQIconWrapper:{display:"flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:24,width:24,borderRadius:12,"&:hover":{backgroundColor:function(e){var t=e.isErrorTypeIcon,n=e.isSuccessTypeIcon;return t?"rgba(244, 67, 54, 0.1)":n?"rgba(117, 219, 41, 0.2)":"transparent"}}}}})),h=function(i){var h,y,T=i.assetsData,b=void 0===T?[]:T,I=i.appWidth,v=i.iconType,S=i.className,w=i.lastTimestamp,W=i.warningMessage,j=o(!1),C=j[0],D=j[1],N=v==l.warning,k=v==l.error,M=v==l.success,Q=I<m,B=x({isWarningTypeIcon:N,isIconType:!!v,isSuccessTypeIcon:M,isErrorTypeIcon:k}),L=c;return N&&W&&(L="".concat(c,". ").concat(W)),k&&(L=t(u,{assetsData:b})),M&&(L=t(g,{onClick:function(){return D(!0)}})),n("div",e({className:a(B.statusBadgeWrapper,S)},{children:[n("div",e({className:B.statusBadgeContent},{children:[N&&!Q&&t(s,e({className:a(B.text,B.warningMessage),variant:"body1"},{children:W?"".concat(c,". ").concat(W):c})),v&&t(p,e({interactive:k||M,PopperProps:k&&{className:B.popper},placement:"top",title:L},{children:t("div",e({className:a((h={},h[B.DQIconWrapper]=!N,h))},{children:t(d,{className:a((y={},y[B.badgeIconWarning]=N,y)),color:v,iconType:v})}))})),n(s,e({className:a(B.text,B.timestamp),variant:"body1"},{children:["Last Update: ",r.unix(w).format("M/D/YYYY h:mm a")]}))]})),M&&t(f,{open:C,onClose:function(){return D(!1)}})]}))};export{h as StatusBadge};
@@ -1,39 +1,35 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- interface SwitchControlComponentProps extends PropTypes.InferProps<typeof switchControlPropTypes> {
4
- }
5
- export declare const SwitchControlComponent: import("react").ForwardRefExoticComponent<SwitchControlComponentProps & import("react").RefAttributes<unknown>>;
6
- declare const switchControlPropTypes: {
7
- title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
8
- leftLabel: PropTypes.Requireable<string>;
9
- rightLabel: PropTypes.Requireable<string>;
10
- checked: PropTypes.Validator<boolean>;
11
- onChange: PropTypes.Validator<(...args: any[]) => any>;
12
- disabled: PropTypes.Requireable<boolean>;
13
- classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
14
- label: PropTypes.Requireable<string>;
15
- labelSmall: PropTypes.Requireable<string>;
16
- activeLabel: PropTypes.Requireable<string>;
17
- disabledLabel: PropTypes.Requireable<string>;
18
- root: PropTypes.Requireable<string>;
19
- switchBase: PropTypes.Requireable<string>;
20
- switchBaseDisabledNoLabels: PropTypes.Requireable<string>;
21
- switchBaseDisabled: PropTypes.Requireable<string>;
22
- track: PropTypes.Requireable<string>;
23
- trackDisabledNoLabels: PropTypes.Requireable<string>;
24
- trackDisabled: PropTypes.Requireable<string>;
25
- }>>>;
26
- size: PropTypes.Requireable<string>;
27
- className: PropTypes.Requireable<string>;
28
- customClasses: PropTypes.Requireable<PropTypes.InferProps<{
29
- root: PropTypes.Requireable<string>;
30
- track: PropTypes.Requireable<string>;
31
- switchBase: PropTypes.Requireable<string>;
32
- }>>;
33
- rightLabelTooltip: PropTypes.Requireable<string>;
34
- leftLabelTooltip: PropTypes.Requireable<string>;
35
- 'data-testid': PropTypes.Requireable<string>;
36
- };
37
- declare const _default: import("react").ComponentType<Pick<SwitchControlComponentProps & import("react").RefAttributes<unknown>, "title" | "size" | "className" | "data-testid" | "onChange" | "disabled" | "checked" | "rightLabel" | "leftLabel" | "customClasses" | "rightLabelTooltip" | "leftLabelTooltip" | keyof import("react").RefAttributes<unknown>> & import("@material-ui/core").StyledComponentProps<"label" | "track" | "root" | "labelSmall" | "activeLabel" | "disabledLabel" | "switchBase" | "switchBaseDisabledNoLabels" | "switchBaseDisabled" | "trackDisabledNoLabels" | "trackDisabled">>;
2
+ export declare const SwitchControlComponent: import("react").ForwardRefExoticComponent<{
3
+ title?: import("react").ReactNode;
4
+ checked?: boolean;
5
+ onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
6
+ leftLabel?: import("react").ReactNode;
7
+ rightLabel?: import("react").ReactNode;
8
+ disabled?: boolean;
9
+ size?: "small" | "medium";
10
+ className?: string;
11
+ customClasses?: Partial<Record<import("@material-ui/core").SwitchClassKey, string>>;
12
+ rightLabelTooltip?: import("react").ReactNode;
13
+ leftLabelTooltip?: import("react").ReactNode;
14
+ 'data-testid'?: string;
15
+ } & {
16
+ classes: import("@material-ui/styles").ClassNameMap<string>;
17
+ } & import("react").RefAttributes<HTMLButtonElement>>;
18
+ declare const _default: import("react").ComponentType<Pick<{
19
+ title?: import("react").ReactNode;
20
+ checked?: boolean;
21
+ onChange?: (event: import("react").ChangeEvent<HTMLInputElement>, checked: boolean) => void;
22
+ leftLabel?: import("react").ReactNode;
23
+ rightLabel?: import("react").ReactNode;
24
+ disabled?: boolean;
25
+ size?: "small" | "medium";
26
+ className?: string;
27
+ customClasses?: Partial<Record<import("@material-ui/core").SwitchClassKey, string>>;
28
+ rightLabelTooltip?: import("react").ReactNode;
29
+ leftLabelTooltip?: import("react").ReactNode;
30
+ 'data-testid'?: string;
31
+ } & {
32
+ classes: import("@material-ui/styles").ClassNameMap<string>;
33
+ } & import("react").RefAttributes<HTMLButtonElement>, "title" | "size" | "className" | "data-testid" | "onChange" | "disabled" | "checked" | "rightLabel" | "leftLabel" | "rightLabelTooltip" | "leftLabelTooltip" | "customClasses" | keyof import("react").RefAttributes<HTMLButtonElement>> & import("@material-ui/core").StyledComponentProps<"label" | "track" | "root" | "labelSmall" | "switchBase" | "switchBaseDisabled" | "trackDisabled" | "switchBaseDisabledNoLabels" | "trackDisabledNoLabels" | "disabledLabel" | "activeLabel">>;
38
34
  export default _default;
39
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/index.tsx"],"names":[],"mappings":";AAGA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiEnC,UAAU,2BAA4B,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC;CAAG;AAEpG,eAAO,MAAM,sBAAsB,iHAgGlC,CAAC;AAEF,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B3B,CAAC;;AAkBF,wBAA6D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/index.tsx"],"names":[],"mappings":";AAoEA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;qDAgGlC,CAAC;;;;;;;;;;;;;;;;;AAgBF,wBAA6D"}
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as a,jsx as i}from"react/jsx-runtime";import{forwardRef as l}from"react";import s from"classnames";import r from"prop-types";import{Grid as o,Tooltip as c,Typography as n,Switch as d,withStyles as b}from"@material-ui/core";import m from"./style.css.js";var h=l((function(l,r){var b,h,p=l.title,g=l.leftLabel,f=l.rightLabel,u=l.checked,L=l.onChange,w=l.disabled,k=l.classes,D=l.size,B=l.className,C=l.rightLabelTooltip,N=l.leftLabelTooltip,v=l.customClasses,y=l["data-testid"],x=g&&f,S=v.root,T=v.track,z=v.switchBase,j=e(v,["root","track","switchBase"]);return a("div",t({className:B},{children:[p&&i("div",t({className:m.switchControlTitle},{children:p})),a(o,t({component:"label",container:!0,alignItems:"center",spacing:0},{children:[g&&i(o,t({item:!0},{children:i(c,t({title:N},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(!u||!f)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:g}))}))})),i(o,t({item:!0},{children:i(d,{"data-testid":"".concat(y,"_switch_").concat(u),ref:r,checked:u,onChange:L,color:"primary",disabled:w,classes:t({root:s(k.root,S),switchBase:s((b={},b[k.switchBase]=x||u&&!w,b[k.switchBaseDisabled]=w&&(x||u),b[k.switchBaseDisabledNoLabels]=!x&&w&&!u,b),z),track:s((h={},h[k.track]=x||u&&!w,h[k.trackDisabled]=w&&(x||u),h[k.trackDisabledNoLabels]=!x&&w&&!u,h),T)},j),size:D})})),f&&i(o,t({item:!0},{children:i(c,t({title:C},{children:i(n,t({variant:"body2",className:s(k.label,"small"===D&&k.labelSmall,(u||!g)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:f}))}))}))]}))]}))})),p={title:r.oneOfType([r.string,r.node,r.element]),leftLabel:r.string,rightLabel:r.string,checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,classes:r.shape({label:r.string,labelSmall:r.string,activeLabel:r.string,disabledLabel:r.string,root:r.string,switchBase:r.string,switchBaseDisabledNoLabels:r.string,switchBaseDisabled:r.string,track:r.string,trackDisabledNoLabels:r.string,trackDisabled:r.string}).isRequired,size:r.oneOf(["small","medium"]),className:r.string,customClasses:r.shape({root:r.string,track:r.string,switchBase:r.string}),rightLabelTooltip:r.string,leftLabelTooltip:r.string,"data-testid":r.string};h.propTypes=p,h.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:"",customClasses:{},rightLabelTooltip:"",leftLabelTooltip:"","data-testid":"SwitchControlComponent"};var g=b({root:{width:60,height:40,padding:13,"&.MuiSwitch-sizeSmall":{width:52,height:36,padding:13},"& .MuiSwitch-switchBase":{padding:10}},switchBase:{padding:10,color:"#03BCD4","&.MuiIconButton-root:hover":{backgroundColor:"rgba(3, 188, 212, 0.08)"}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#9e9e9e",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#808080"},activeLabel:{color:"#ffffff"}})(h);export{h as SwitchControlComponent,g as default};
1
+ import{__rest as e,__assign as a}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as i}from"react/jsx-runtime";import{forwardRef as l}from"react";import o from"classnames";import{Grid as r,Tooltip as s,Typography as c,Switch as n,withStyles as d}from"@material-ui/core";import b from"./style.css.js";var m=l((function(l,d){var m,h,p=l.title,f=l.leftLabel,u=l.rightLabel,g=l.checked,L=l.onChange,w=l.disabled,k=l.classes,D=l.size,C=l.className,B=l.rightLabelTooltip,v=l.leftLabelTooltip,x=l.customClasses,N=l["data-testid"],y=f&&u,S=x.root,z=x.track,T=x.switchBase,j=e(x,["root","track","switchBase"]);return t("div",a({className:C},{children:[p&&i("div",a({className:b.switchControlTitle},{children:p})),t(r,a({component:"label",container:!0,alignItems:"center",spacing:0},{children:[f&&i(r,a({item:!0},{children:i(s,a({title:v},{children:i(c,a({variant:"body2",className:o(k.label,"small"===D&&k.labelSmall,(!g||!u)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:f}))}))})),i(r,a({item:!0},{children:i(n,{"data-testid":"".concat(N,"_switch_").concat(g),ref:d,checked:g,onChange:L,color:"primary",disabled:w,classes:a({root:o(k.root,S),switchBase:o((m={},m[k.switchBase]=y||g&&!w,m[k.switchBaseDisabled]=w&&(y||g),m[k.switchBaseDisabledNoLabels]=!y&&w&&!g,m),T),track:o((h={},h[k.track]=y||g&&!w,h[k.trackDisabled]=w&&(y||g),h[k.trackDisabledNoLabels]=!y&&w&&!g,h),z)},j),size:D})})),u&&i(r,a({item:!0},{children:i(s,a({title:B},{children:i(c,a({variant:"body2",className:o(k.label,"small"===D&&k.labelSmall,(g||!f)&&!w&&k.activeLabel,w&&k.disabledLabel)},{children:u}))}))}))]}))]}))}));m.defaultProps={title:"",leftLabel:"",rightLabel:"",disabled:!1,size:"medium",className:"",customClasses:{},rightLabelTooltip:"",leftLabelTooltip:"","data-testid":"SwitchControlComponent"};var h=d((function(){return{root:{width:60,height:40,padding:13,"&.MuiSwitch-sizeSmall":{width:52,height:36,padding:13},"& .MuiSwitch-switchBase":{padding:10}},switchBase:{padding:10,color:"#03BCD4","&.MuiIconButton-root:hover":{backgroundColor:"rgba(3, 188, 212, 0.08)"}},switchBaseDisabled:{color:"#196069 !important"},track:{backgroundColor:"#196069 !important",opacity:"1 !important",border:"none"},trackDisabled:{backgroundColor:"#223D40 !important",opacity:"1 !important",border:"none"},switchBaseDisabledNoLabels:{color:"#545454 !important"},trackDisabledNoLabels:{backgroundColor:"#3D3D3D !important",opacity:"1 !important",border:"none"},label:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"16px",lineHeight:"22px",color:"#9e9e9e",margin:"8px 0px",cursor:"pointer"},labelSmall:{fontSize:"14px",lineHeight:"20px"},disabledLabel:{cursor:"default",color:"#808080"},activeLabel:{color:"#ffffff"}}}))(m);export{m as SwitchControlComponent,h as default};
@@ -0,0 +1,17 @@
1
+ import { ChangeEvent, ReactNode } from 'react';
2
+ import { SwitchClassKey, WithStyles } from '@material-ui/core';
3
+ export declare type SwitchControlTypes = {
4
+ title?: string | ReactNode;
5
+ checked?: boolean;
6
+ onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
7
+ leftLabel?: string | ReactNode;
8
+ rightLabel?: string | ReactNode;
9
+ disabled?: boolean;
10
+ size?: 'small' | 'medium';
11
+ className?: string;
12
+ customClasses?: Partial<Record<SwitchClassKey, string>>;
13
+ rightLabelTooltip?: string | ReactNode;
14
+ leftLabelTooltip?: string | ReactNode;
15
+ 'data-testid'?: string;
16
+ } & WithStyles<string>;
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/D,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5E,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.55.0-5",
3
+ "version": "0.55.0-7",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -1,9 +0,0 @@
1
- <svg width="69" height="8" viewBox="0 0 69 8" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M1.224 5.65909V0.022727H0V5.95455C0 7.25 0.804 8 2.268 8H4.512C5.976 8 6.78 7.25 6.78 5.95455V0.022727H5.556V5.65909C5.556 6.53409 5.16 6.89773 4.224 6.89773H2.556C1.62 6.89773 1.224 6.53409 1.224 5.65909Z" fill="white"/>
3
- <path d="M16.7895 0.022727H15.5775V6.05682H15.5295C15.3375 5.77273 11.1015 0.215909 11.0655 0.159091C11.0055 0.0681816 10.9815 0.022727 10.7175 0.022727H9.7455V7.97727H10.9695V2.07955H11.0175C11.1135 2.21591 15.1935 7.60227 15.3135 7.77273C15.4095 7.90909 15.5055 7.97727 15.7215 7.97727H16.7895V0.022727Z" fill="white"/>
4
- <path d="M21.0875 0.022727H19.8635V7.97727H21.0875V4.52273H22.7555L25.2995 7.97727H26.6915L23.7515 3.96591L26.7035 0.022727H25.3235L22.6835 3.45455H21.0875V0.022727Z" fill="white"/>
5
- <path d="M36.0293 0.022727H34.8173V6.05682H34.7693C34.5773 5.77273 30.3413 0.215909 30.3053 0.159091C30.2453 0.0681816 30.2213 0.022727 29.9573 0.022727H28.9853V7.97727H30.2093V2.07955H30.2573C30.3533 2.21591 34.4333 7.60227 34.5533 7.77273C34.6493 7.90909 34.7453 7.97727 34.9613 7.97727H36.0293V0.022727Z" fill="white"/>
6
- <path d="M41.2153 8H43.6753C45.1153 8 45.9313 7.25 45.9313 5.95455V2.04545C45.9313 0.738636 45.1153 0 43.6753 0H41.2153C39.7753 0 38.9593 0.738636 38.9593 2.04545V5.95455C38.9593 7.25 39.7753 8 41.2153 8ZM41.5273 1H43.3633C44.2873 1 44.6953 1.28409 44.6953 2.14773V5.73864C44.6953 6.60227 44.2873 6.97727 43.3633 6.97727H41.5273C40.6033 6.97727 40.1953 6.60227 40.1953 5.73864V2.14773C40.1953 1.28409 40.6033 1 41.5273 1Z" fill="white"/>
7
- <path d="M56.2556 6.86364H55.7876L54.4916 0.022727H52.5716L51.2876 6.86364H50.8076L49.4036 0.022727H48.0476C48.0476 0.022727 49.7276 7.5 49.7876 7.80682C49.8116 7.92045 49.8836 8 50.0036 8H52.1756C52.2836 8 52.3796 7.93182 52.3916 7.82955C52.4276 7.625 53.4716 1.59091 53.4716 1.59091H53.6036C53.6036 1.59091 54.6476 7.625 54.6836 7.82955C54.6956 7.93182 54.7916 8 54.8876 8H57.0716C57.1916 8 57.2636 7.92045 57.2876 7.80682C57.3476 7.5 59.0276 0.022727 59.0276 0.022727H57.6716L56.2556 6.86364Z" fill="white"/>
8
- <path d="M68.5629 0.022727H67.3509V6.05682H67.3029C67.1109 5.77273 62.8749 0.215909 62.8389 0.159091C62.7789 0.0681816 62.7549 0.022727 62.4909 0.022727H61.5189V7.97727H62.7429V2.07955H62.7909C62.8869 2.21591 66.9669 7.60227 67.0869 7.77273C67.1829 7.90909 67.2789 7.97727 67.4949 7.97727H68.5629V0.022727Z" fill="white"/>
9
- </svg>
@@ -1,13 +0,0 @@
1
- <svg width="94" height="8" viewBox="0 0 94 8" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M1.224 5.65242V0H0V5.94872C0 7.24786 0.804 8 2.268 8H4.512C5.976 8 6.78 7.24786 6.78 5.94872V0H5.556V5.65242C5.556 6.52991 5.16 6.89459 4.224 6.89459H2.556C1.62 6.89459 1.224 6.52991 1.224 5.65242Z" fill="white"/>
3
- <path d="M16.7895 0H15.5775V6.05128H15.5295C15.3375 5.76638 11.1015 0.193732 11.0655 0.136752C11.0055 0.0455841 10.9815 0 10.7175 0H9.7455V7.97721H10.9695V2.06268H11.0175C11.1135 2.19943 15.1935 7.60114 15.3135 7.77208C15.4095 7.90883 15.5055 7.97721 15.7215 7.97721H16.7895V0Z" fill="white"/>
4
- <path d="M23.2835 6.849H22.8635L20.6195 0H19.2395C19.2395 0 21.7475 7.45299 21.8555 7.78348C21.8915 7.92023 21.9515 8 22.0835 8H24.0635C24.1835 8 24.2555 7.92023 24.2915 7.78348C24.3875 7.45299 26.9075 0 26.9075 0H25.5155L23.2835 6.849Z" fill="white"/>
5
- <path d="M34.763 7.97721H36.143C36.143 7.97721 33.491 0.433048 33.407 0.193732C33.359 0.0455841 33.323 0 33.071 0H31.211C30.959 0 30.923 0.0455841 30.887 0.193732C30.803 0.433048 28.151 7.97721 28.151 7.97721H29.531L30.323 5.68661H33.971L34.763 7.97721ZM31.895 0.968661H32.399L33.659 4.5698H30.623L31.895 0.968661Z" fill="white"/>
6
- <path d="M38.5994 7.97721H44.2274V6.94017H39.8234V0H38.5994V7.97721Z" fill="white"/>
7
- <path d="M47.7751 0H46.5631V7.97721H47.7751V0Z" fill="white"/>
8
- <path d="M50.9369 7.97721H55.3049C56.7569 7.97721 57.7289 7.15669 57.7289 5.84615V2.11966C57.7289 0.809117 56.7569 0 55.3049 0H50.9369V7.97721ZM56.5049 5.56125C56.5049 6.66667 55.9409 6.96296 55.0169 6.96296H52.1609V1.01425H55.0169C55.9409 1.01425 56.5049 1.31054 56.5049 2.41595V5.56125Z" fill="white"/>
9
- <path d="M66.1762 7.97721H67.5563C67.5563 7.97721 64.9043 0.433048 64.8203 0.193732C64.7723 0.0455841 64.7362 0 64.4842 0H62.6243C62.3723 0 62.3363 0.0455841 62.3003 0.193732C62.2163 0.433048 59.5643 7.97721 59.5643 7.97721H60.9443L61.7363 5.68661H65.3842L66.1762 7.97721ZM63.3083 0.968661H63.8123L65.0723 4.5698H62.0363L63.3083 0.968661Z" fill="white"/>
10
- <path d="M75.1143 0H68.4063V0.991453H71.1543V7.97721H72.3783V0.991453H75.1143V0Z" fill="white"/>
11
- <path d="M77.6463 7.97721H83.3823V6.90598H78.8703V4.43305H82.8903V3.39601H78.8703V1.01425H83.3943V0H77.6463V7.97721Z" fill="white"/>
12
- <path d="M86.2408 7.97721H90.6088C92.0608 7.97721 93.0328 7.15669 93.0328 5.84615V2.11966C93.0328 0.809117 92.0608 0 90.6088 0H86.2408V7.97721ZM91.8088 5.56125C91.8088 6.66667 91.2448 6.96296 90.3208 6.96296H87.4648V1.01425H90.3208C91.2448 1.01425 91.8088 1.31054 91.8088 2.41595V5.56125Z" fill="white"/>
13
- </svg>
@@ -1,11 +0,0 @@
1
- <svg width="74" height="8" viewBox="0 0 74 8" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4.05532 6.849H3.63415L1.38386 0H0C0 0 2.51502 7.45299 2.62333 7.78348C2.65943 7.92023 2.71959 8 2.85196 8H4.83751C4.95785 8 5.03005 7.92023 5.06615 7.78348C5.16242 7.45299 7.68947 0 7.68947 0H6.29358L4.05532 6.849Z" fill="white"/>
3
- <path d="M15.567 7.97721H16.9508C16.9508 7.97721 14.2914 0.433048 14.2072 0.193732C14.159 0.0455841 14.1229 0 13.8702 0H12.005C11.7523 0 11.7162 0.0455841 11.6801 0.193732C11.5959 0.433048 8.93646 7.97721 8.93646 7.97721H10.3203L11.1145 5.68661H14.7728L15.567 7.97721ZM12.6909 0.968661H13.1964L14.4599 4.5698H11.4154L12.6909 0.968661Z" fill="white"/>
4
- <path d="M19.4142 7.97721H25.0579V6.94017H20.6416V0H19.4142V7.97721Z" fill="white"/>
5
- <path d="M28.6155 0H27.4001V7.97721H28.6155V0Z" fill="white"/>
6
- <path d="M31.7862 7.97721H36.1664C37.6225 7.97721 38.5972 7.15669 38.5972 5.84615V2.11966C38.5972 0.809117 37.6225 0 36.1664 0H31.7862V7.97721ZM37.3698 5.56125C37.3698 6.66667 36.8042 6.96296 35.8776 6.96296H33.0136V1.01425H35.8776C36.8042 1.01425 37.3698 1.31054 37.3698 2.41595V5.56125Z" fill="white"/>
7
- <path d="M47.0682 7.97721H48.4521C48.4521 7.97721 45.7927 0.433048 45.7084 0.193732C45.6603 0.0455841 45.6242 0 45.3715 0H43.5063C43.2536 0 43.2175 0.0455841 43.1814 0.193732C43.0971 0.433048 40.4377 7.97721 40.4377 7.97721H41.8216L42.6158 5.68661H46.274L47.0682 7.97721ZM44.1922 0.968661H44.6976L45.9611 4.5698H42.9166L44.1922 0.968661Z" fill="white"/>
8
- <path d="M56.0313 0H49.3045V0.991453H52.0602V7.97721H53.2876V0.991453H56.0313V0Z" fill="white"/>
9
- <path d="M58.5704 7.97721H64.3224V6.90598H59.7978V4.43305H63.8291V3.39601H59.7978V1.01425H64.3345V0H58.5704V7.97721Z" fill="white"/>
10
- <path d="M67.189 7.97721H71.5692C73.0253 7.97721 74 7.15669 74 5.84615V2.11966C74 0.809117 73.0253 0 71.5692 0H67.189V7.97721ZM72.7726 5.56125C72.7726 6.66667 72.207 6.96296 71.2804 6.96296H68.4164V1.01425H71.2804C72.207 1.01425 72.7726 1.31054 72.7726 2.41595V5.56125Z" fill="white"/>
11
- </svg>
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@material-ui/core"),r=require("react/jsx-runtime"),t=e.createSvgIcon(r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24",viewBox:"0 0 24 24",width:"24",children:[r.jsx("g",{children:r.jsx("path",{d:"M0,0h24v24H0V0z",fill:"none"})}),r.jsx("g",{children:r.jsx("path",{d:"M12,2L4,5v6.09c0,5.05,3.41,9.76,8,10.91c4.59-1.15,8-5.86,8-10.91V5L12,2z M15.5,14.09l-1.41,1.41L12,13.42L9.91,15.5 L8.5,14.09L10.59,12L8.5,9.91L9.91,8.5L12,10.59l2.09-2.09l1.41,1.41L13.42,12L15.5,14.09z"})})]}),"GppBadIcon");exports.GppBadIcon=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@material-ui/core"),r=require("react/jsx-runtime"),o=e.createSvgIcon(r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24",viewBox:"0 0 24 24",width:"24",children:[r.jsx("g",{children:r.jsx("path",{d:"M0,0h24v24H0V0z",fill:"none"})}),r.jsx("g",{children:r.jsx("path",{d:"M12,2L4,5v6.09c0,5.05,3.41,9.76,8,10.91c4.59-1.15,8-5.86,8-10.91V5L12,2z M10.94,15.54L7.4,12l1.41-1.41l2.12,2.12 l4.24-4.24l1.41,1.41L10.94,15.54z"})})]}),"GppGoodIcon");exports.GppGoodIcon=o;
@@ -1 +0,0 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("prop-types")),i={title:t.default.string.isRequired,isSubject:t.default.bool.isRequired,maxWidth:t.default.number,onClick:t.default.func,markColor:t.default.string,rigName:t.default.string,id:t.default.string.isRequired,wellId:t.default.string.isRequired,onRemoveOffsetWell:t.default.func,isShowMark:t.default.bool};exports.offsetWellChipPropTypes=i;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),r=require("classnames"),t=require("@material-ui/core"),i=require("../Chip/index.js"),n=require("../Tooltip/Tooltip.js");require("../Tooltip/ScrollableTooltip.js");var o=require("./DQStatusIcon.js"),s=require("./constants.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,u,p=c(r),S=((l={})[s.BADGE_ICON_STATUSES.error]="/static/media/5124c957601b1a0ef1f0b93bce1ae0de.svg",l[s.BADGE_ICON_STATUSES.warning]="/static/media/1aa187dca9a802ede389885e43aff155.svg",l[s.BADGE_ICON_STATUSES.success]="/static/media/66745cf3868fdb983d0a2180a43b0720.svg",l),d=((u={})[s.BADGE_ICON_STATUSES.error]="Data has not been checked",u[s.BADGE_ICON_STATUSES.warning]="Unknown Quality Control status",u[s.BADGE_ICON_STATUSES.success]="Automated and Manual Quality Control process in Corva",u),m=t.makeStyles((function(e){return{chipWrapper:{maxWidth:129},chip:{height:20},warning:{background:"rgba(255, 193, 7, 0.16) !important","& .MuiChip-icon":{color:"".concat(e.palette.warning.main," !important")}},error:{background:"rgba(244, 67, 54, 0.16) !important","& .MuiChip-icon":{color:"".concat(e.palette.error.main," !important")}},success:{background:"rgba(156, 255, 56, 0.16) !important","& .MuiChip-icon":{color:"".concat(e.palette.success.bright," !important")}}}}));exports.DQChip=function(r){var t=r.type,c=void 0===t?s.BADGE_ICON_STATUSES.warning:t,l=r.className,u=m();return a.jsx(n.Tooltip,e.__assign({title:d[c],placement:"bottom-start"},{children:a.jsx("div",e.__assign({className:p.default(u.chipWrapper,l)},{children:a.jsx(i,{className:p.default(u.chip,u[c]),icon:a.jsx(o.DQStatusIcon,{color:c,iconType:c===s.BADGE_ICON_STATUSES.warning?"DQWarning":c,size:s.ICON_SIZE.small}),label:a.jsx("img",{src:S[c],alt:c})})}))}))};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@material-ui/core"),t=require("classnames"),a=require("./constants.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(t),o=r.makeStyles((function(e){return{small:{fontSize:"16px"},large:{fontSize:"26px"},warning:{color:e.palette.warning.main},error:{color:e.palette.error.main},success:{color:e.palette.success.bright}}}));exports.DQStatusIcon=function(r){var t=r.color,s=r.className,c=r.iconType,i=r.size,u=a.BADGE_ICONS[c],l=o();return e.jsx(u,{className:n.default(l[i],l[t],s)})};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),t=require("classnames"),i=require("moment"),s=require("@material-ui/core"),r=require("@material-ui/icons/InfoOutlined"),n=require("./constants.js"),l=require("./DQStatusIcon.js"),o=require("./DQChip.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=c(t),p=c(i),m=c(r),x=s.makeStyles((function(e){return{assetsContainer:{maxHeight:140,marginTop:4,marginBottom:16,overflowX:"auto"},assetWrapper:{display:"flex",whiteSpace:"nowrap",alignItems:"center",marginTop:8},assetName:{maxWidth:160,textOverflow:"ellipsis",overflow:"hidden",flex:1},container:{padding:"8px 4px 16px 4px"},chip:{marginLeft:6,flex:1},datetime:{color:e.palette.primary.text6,marginLeft:12},infoBlock:{alignItems:"center",display:"flex"},infoText:{marginLeft:9,fontSize:12,letterSpacing:"0.4px",lineHeight:"17px"},infoIcon:{color:e.palette.primary.text6},headerContainer:{alignItems:"center",display:"flex"},headerText:{marginLeft:8,lineHeight:"16px",fontSize:"14px",fontWeight:500},text:{lineHeight:"14px",fontSize:"12px",fontWeight:500,letterSpacing:"0.4px"}}}));exports.DQUnvalidatedContent=function(t){var i=t.assetsData,r=x();return a.jsxs("div",e.__assign({className:r.container},{children:[a.jsxs("div",e.__assign({className:r.headerContainer},{children:[a.jsx(l.DQStatusIcon,{color:n.BADGE_ICON_STATUSES.error,iconType:n.BADGE_ICON_STATUSES.error,size:n.ICON_SIZE.large}),a.jsx(s.Typography,e.__assign({className:d.default(r.headerText)},{children:"Data Quality: Unvalidated"}))]})),a.jsx("div",e.__assign({className:r.assetsContainer},{children:null==i?void 0:i.map((function(t){var i=t.status,s=t.id,n=t.name,l=t.datetime;return a.jsxs("div",e.__assign({className:r.assetWrapper},{children:[a.jsx("div",e.__assign({className:d.default(r.assetName,r.text)},{children:n})),a.jsx(o.DQChip,{className:r.chip,type:i}),a.jsx("div",e.__assign({className:d.default(r.text,r.datetime)},{children:p.default.unix(l).format("M/D/YYYY h:mm")}))]}),s)}))})),a.jsxs("div",e.__assign({className:r.infoBlock},{children:[a.jsx(m.default,{className:r.infoIcon}),a.jsx(s.Typography,e.__assign({className:r.infoText},{children:"Click on badge to see more details and report problem"}))]}))]}))};
@@ -1,2 +0,0 @@
1
- export const GppBadIcon: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
2
- //# sourceMappingURL=GppBadIcon.d.ts.map