@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.
- package/assets/27337c7c90a52271ad290030959e6601.svg +11 -0
- package/assets/3db6b665f981a7aa81d8883122c9380c.svg +3 -0
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/Icons/SkullIcon.js +1 -0
- package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQStatusIcon.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQSuccessContent.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
- package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -0
- package/cjs-bundle/components/StatusBadge/constants.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/components/SwitchControl/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/index.d.ts +2 -2
- package/components/IconMenu/index.d.ts +3 -3
- package/components/Icons/SkullIcon.d.ts +2 -0
- package/components/Icons/SkullIcon.d.ts.map +1 -0
- package/components/Icons/SkullIcon.js +1 -0
- package/components/OffsetWellChips/Chip.d.ts +1 -13
- package/components/OffsetWellChips/Chip.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/ChipsContainer.d.ts +1 -13
- package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
- package/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/components/OffsetWellChips/types.d.ts +15 -17
- package/components/OffsetWellChips/types.d.ts.map +1 -1
- package/components/Select/index.d.ts +2 -45
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/Select/types.d.ts +15 -0
- package/components/Select/types.d.ts.map +1 -0
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts +9 -0
- package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -0
- package/components/StatusBadge/components/DQAlertsTooltip.js +1 -0
- package/components/StatusBadge/components/DQStatusIcon.d.ts +10 -0
- package/components/StatusBadge/components/DQStatusIcon.d.ts.map +1 -0
- package/components/StatusBadge/components/DQStatusIcon.js +1 -0
- package/components/StatusBadge/components/DQSuccessContent.d.ts +5 -0
- package/components/StatusBadge/components/DQSuccessContent.d.ts.map +1 -0
- package/components/StatusBadge/components/DQSuccessContent.js +1 -0
- package/components/StatusBadge/components/DQUnvalidatedContent.d.ts.map +1 -0
- package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -0
- package/components/StatusBadge/components/ReportIssueModal.d.ts +8 -0
- package/components/StatusBadge/components/ReportIssueModal.d.ts.map +1 -0
- package/components/StatusBadge/components/ReportIssueModal.js +1 -0
- package/components/StatusBadge/constants.d.ts +16 -13
- package/components/StatusBadge/constants.d.ts.map +1 -1
- package/components/StatusBadge/constants.js +1 -1
- package/components/StatusBadge/index.d.ts +1 -1
- package/components/StatusBadge/index.d.ts.map +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/components/SwitchControl/index.d.ts +32 -36
- package/components/SwitchControl/index.d.ts.map +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/SwitchControl/types.d.ts +17 -0
- package/components/SwitchControl/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/assets/1aa187dca9a802ede389885e43aff155.svg +0 -9
- package/assets/5124c957601b1a0ef1f0b93bce1ae0de.svg +0 -13
- package/assets/66745cf3868fdb983d0a2180a43b0720.svg +0 -11
- package/cjs-bundle/components/Icons/GppBadIcon.js +0 -1
- package/cjs-bundle/components/Icons/GppGoodIcon.js +0 -1
- package/cjs-bundle/components/OffsetWellChips/types.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQChip.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQStatusIcon.js +0 -1
- package/cjs-bundle/components/StatusBadge/DQUnvalidatedContent.js +0 -1
- package/components/Icons/GppBadIcon.d.ts +0 -2
- package/components/Icons/GppBadIcon.d.ts.map +0 -1
- package/components/Icons/GppBadIcon.js +0 -1
- package/components/Icons/GppGoodIcon.js +0 -1
- package/components/OffsetWellChips/types.js +0 -1
- package/components/StatusBadge/DQChip.d.ts +0 -9
- package/components/StatusBadge/DQChip.d.ts.map +0 -1
- package/components/StatusBadge/DQChip.js +0 -1
- package/components/StatusBadge/DQStatusIcon.d.ts +0 -13
- package/components/StatusBadge/DQStatusIcon.d.ts.map +0 -1
- package/components/StatusBadge/DQStatusIcon.js +0 -1
- package/components/StatusBadge/DQUnvalidatedContent.d.ts.map +0 -1
- package/components/StatusBadge/DQUnvalidatedContent.js +0 -1
- /package/components/StatusBadge/{DQUnvalidatedContent.d.ts → components/DQUnvalidatedContent.d.ts} +0 -0
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
title:
|
|
4
|
-
isSubject
|
|
5
|
-
maxWidth
|
|
6
|
-
onClick:
|
|
7
|
-
markColor
|
|
8
|
-
rigName
|
|
9
|
-
|
|
10
|
-
wellId:
|
|
11
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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":";
|
|
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
|
|
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 @@
|
|
|
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
|
-
|
|
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,
|
|
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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusBadge/index.tsx"],"names":[],"mappings":";
|
|
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
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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":";
|
|
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
|
|
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,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"}))]}))]}))};
|