@corva/ui 0.52.0-4 → 0.52.0-6
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/components/Avatar/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/EditableItem/EditableItem/index.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/IconButton/index.js +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/components/LoadingIndicator/types.js +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Modal/DcCorvaModal.js +1 -1
- package/components/Modal/Modal.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts +5 -1
- package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellMap/WellTooltip.d.ts +2 -1
- package/components/OffsetWellMap/WellTooltip.d.ts.map +1 -1
- package/components/OffsetWellMap/WellTooltip.js +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/ResizableTable/ResizableTable.js +1 -1
- package/components/ResizableTable/ResizableTableCell.js +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Select/index.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/RadioEditor/index.js +1 -1
- package/components/Stepper/Step.js +1 -1
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/StepsWrapper.js +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/{_virtual/_tslib.js → ext-esm/tslib/tslib.es6.js} +0 -0
- package/package.json +2 -2
- package/utils/index.d.ts +1 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
- package/utils/recaptcha.d.ts +0 -3
- package/utils/recaptcha.d.ts.map +0 -1
- package/utils/recaptcha.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import a from"prop-types";import s from"classnames";import{withStyles as r}from"@material-ui/core/styles";import i from"@material-ui/core/Avatar";import{Tooltip as o}from"../Tooltip/Tooltip.js";import l from"../../utils/main.js";import p from"../../config/theme/palette.mjs.js";var n=function(t){switch(t){case 24:return 12;case 32:return 14;case 40:return 16;case 48:return 20;case 128:return 64;case 200:return 80;default:return Math.floor(t/2)}},m=function(t){return{minWidth:t,width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:n(t)}},c=[p.pastel.p1,p.pastel.p2,p.pastel.p3,p.pastel.p4,p.pastel.p5,p.pastel.p6,p.pastel.p7,p.pastel.p8,p.pastel.p9,p.pastel.p10,p.pastel.p11,p.pastel.p12,p.pastel.p13,p.pastel.p14,p.pastel.p15,p.pastel.p16],u=function(t){return c[Math.abs(l.hashCode(t)%c.length)]},d=function(a){var r=a.displayName,p=a.showTooltip,n=a.size,c=a.className,d=a.imgSrc,f=a.alt,h=a.classes;return e(o,t({title:r,disableFocusListener:!p,disableHoverListener:!p,disableTouchListener:!p},{children:e(i,t({"data-testid":"generic_avatar",alt:f,src:d,className:s(h.avatar,c),style:t(t({},m(Number(n))),{backgroundColor:!!r&&u(r)})},{children:r?l.getNameInitials(r):null}))}))},f={displayName:a.string,showTooltip:a.bool,size:a.number,className:a.string,imgSrc:a.string,alt:a.string,classes:a.shape({avatar:a.string}).isRequired};d.propTypes=f,d.defaultProps={displayName:"",showTooltip:!1,size:32,className:void 0,imgSrc:void 0,alt:void 0};var h=r((function(t){return{avatar:{color:t.palette.common.white,fontWeight:"bold"}}}))(d);export{d as AvatarComponent,h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as a}from
|
|
1
|
+
import{__rest as r,__assign as a}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{memo as t}from"react";import e from"prop-types";import{makeStyles as n,Button as i}from"@material-ui/core";import c from"classnames";var l=n((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),d=function(t){var e=t.classes,n=void 0===e?{}:e,d=t.variation,m=r(t,["classes","variation"]),s=l(),p=a(a({},n),{root:c(null==s?void 0:s[d],n.root),disabled:c(null==s?void 0:s["".concat(d,"Disabled")],n.disabled)}),u=a(a({classes:p},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),m);return o(i,a({},u))};d.propTypes={variation:e.oneOf(["primary","secondary","tertiary","dangerPrimary","dangerSecondary"])},d.defaultProps={variation:"tertiary"};var m=t(d);export{m as default};
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{makeStyles as i,Chip as a}from"@material-ui/core";import r from"prop-types";import l from"classnames";var o=function(t){var e=t.width,i=void 0===e?18:e,a=t.height,r=void 0===a?14:a,l=t.fill.replace("#","%23");return"<svg width='".concat(i,"' height='").concat(r,"' viewBox='0 0 18 14' fill='").concat(l,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},c=i((function(t){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({fill:t.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(o({width:12,fill:t.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}}}})),n=function(i){var r=i.checked,o=i.classes,n=void 0===o?{}:o,d=i["data-testid"],s=c();return e(a,r?t({"data-testid":d},i,{classes:t(t({},n),{root:l(n.root,s.checked)})}):t({"data-testid":d},i))},d={checked:r.bool,"data-testid":r.string};n.propTypes=d,n.defaultProps={checked:!1,"data-testid":"Chip"};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useRef as n,useEffect as a}from"react";import i from"prop-types";import{withStyles as l,InputLabel as c,IconButton as s,Popover as p}from"@material-ui/core";import{ColorLens as b}from"@material-ui/icons";import g from"chroma-js";import u from"classnames";import m from"validate-color";import f from"./PaletteChromePicker/PaletteChromePicker.js";var h={rgba:function(o){return"rgba(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,", ").concat(o.rgb.a,")")},rgb:function(o){return"rgb(".concat(o.rgb.r,", ").concat(o.rgb.g,", ").concat(o.rgb.b,")")},hex:function(o){return o.hex},rgba_rgb:function(o){return 1===o.rgb.a?h.rgb(o):h.rgba(o)},rgba_hex:function(o){return 1===o.rgb.a?h.hex(o):h.rgba(o)}},d=function(i){var l,f,d,v=i.label,x=i.value,C=i.converter,L=i.onChange,k=i.buttonClassName,T=i.popoverAnchorOrigin,O=i.popoverTransformOrigin,P=i.labelPosition,y=i.hideLabel,R=i.pickerComponent,z=i.classes,S=i.lensColor,I=i.enableTransparencyPalette,N=t(null),j=N[0],w=N[1],B=t("#03BCD4"),D=B[0],_=B[1],q=n();a((function(){var o=null==x?void 0:x.trim();o&&m(o)?_(o):console.error("The color value(".concat(x,") is not valid, please check it."))}),[x]);return e("div",o({className:u(z.root,(l={},l[z.topLabelRoot]="top"===P,l[z.rightLabelRoot]="right"===P,l))},{children:[!y&&r(c,o({className:u((f={},f[z.topLabel]="top"===P,f[z.rightLabel]="right"===P,f)),shrink:!0},{children:v})),r(s,o({"data-testid":"".concat("ColorPicker","_icon_").concat(v),className:u(z.button,k,(d={},d[z.buttonTransparrent]=0===g(D).alpha(),d)),disableRipple:!0,style:{backgroundColor:D,color:S},onClick:function(o){w(o.currentTarget)}},{children:r(b,{fontSize:"small",className:z.colorLensIcon})})),r(p,o({id:"colors-popper",action:q,open:Boolean(j),anchorEl:j,onClose:function(){w(null)},anchorOrigin:T,transformOrigin:O},{children:r(R,{color:D,onChange:function(o){var e=h[C](o);_(e),L(e)},onSizeChange:function(){q.current&&q.current.updatePosition()},enableTransparencyPalette:I})}))]}))},v=i.shape({vertical:i.oneOfType([i.oneOf(["top","center","bottom"]),i.number]),horizontal:i.oneOfType([i.oneOf(["left","center","right"]),i.number])}),x={buttonClassName:i.string,label:i.string,value:i.string.isRequired,onChange:i.func.isRequired,converter:i.oneOf(Object.keys(h)),classes:i.shape({button:i.string.isRequired,root:i.string,topLabelRoot:i.string,rightLabelRoot:i.string,topLabel:i.string,rightLabel:i.string,buttonTransparrent:i.string,colorLensIcon:i.string}).isRequired,pickerComponent:i.elementType,labelPosition:i.oneOf(["top","right"]),popoverAnchorOrigin:v,popoverTransformOrigin:v,hideLabel:i.bool,lensColor:i.string,enableTransparencyPalette:i.bool};d.propTypes=x,d.defaultProps={label:"Color",buttonClassName:null,converter:"rgba_hex",pickerComponent:f,hideLabel:!1,popoverAnchorOrigin:{vertical:"bottom",horizontal:"left"},popoverTransformOrigin:{vertical:"top",horizontal:"left"},labelPosition:"top",lensColor:"#fff",enableTransparencyPalette:!1};var C=l({root:{position:"relative",display:"flex"},topLabelRoot:{flexDirection:"column"},rightLabelRoot:{flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"},button:{width:"36px",height:"24px",boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.161)",borderRadius:"5px"},buttonTransparrent:{position:"relative",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"3px",background:"#FF0000",transform:"rotate(148deg)",borderRadius:"2px"}},colorLensIcon:{position:"relative",zIndex:2},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}})(d);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{useRef as e}from"react";import{withStyles as n,Popover as t}from"@material-ui/core";import a from"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";var i={rgba:function(r){return"rgba(".concat(r.rgb.r,", ").concat(r.rgb.g,", ").concat(r.rgb.b,", ").concat(r.rgb.a,")")},rgb:function(r){return"rgb(".concat(r.rgb.r,", ").concat(r.rgb.g,", ").concat(r.rgb.b,")")},hex:function(r){return r.hex},rgba_rgb:function(r){return 1===r.rgb.a?i.rgb(r):i.rgba(r)},rgba_hex:function(r){return 1===r.rgb.a?i.hex(r):i.rgba(r)}},c=function(n){var a=n.color,c=n.onChange,l=n.anchorEl,p=n.handleClose,g=n.converter,b=n.popoverAnchorOrigin,s=n.popoverTransformOrigin,m=n.pickerComponent,f=n.classes,h=n.enableTransparencyPalette,u=e();return o("div",r({className:f.root},{children:o(t,r({id:"colors-popper",action:u,open:Boolean(l),anchorEl:l,onClose:p,anchorOrigin:b,transformOrigin:s},{children:o(m,{color:a,onChange:function(r){var o=i[g](r);c(o)},onSizeChange:function(){u.current&&u.current.updatePosition()},enableTransparencyPalette:h})}))}))};c.defaultProps={converter:"rgba_hex",pickerComponent:a,popoverAnchorOrigin:{vertical:"bottom",horizontal:"left"},popoverTransformOrigin:{vertical:"top",horizontal:"left"},enableTransparencyPalette:!1,anchorEl:null};var l=n({root:{position:"relative",display:"flex"},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}})(c);export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from
|
|
1
|
+
import{__assign as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import e from"prop-types";import{makeStyles as r,Tooltip as o,IconButton as a,Badge as p}from"@material-ui/core";import{isNativeDetected as s,isMobileDetected as m}from"../../../utils/mobileDetect.js";import l from"../../Avatar/index.js";import n from"./BadgeIcon.js";var d=s||m,g=r((function(t){return{icon:{padding:0,"&:hover":{"& .MuiBadge-root .MuiBadge-badge svg path":{"&:first-of-type":{fill:t.palette.primary.light}},"& .MuiAvatar-root":{outline:"1px solid ".concat(t.palette.primary.light)}},marginTop:4},badge:{top:2,right:6,"&:hover":{"& svg path":{"&:first-of-type":{fill:t.palette.primary.light}}}},tooltip:{marginTop:8}}})),c=function(e){var r=e.displayName,s=e.imgSrc,m=e.size,c=g();return i(o,t({title:!d&&"Add Comment",placement:"bottom",classes:{tooltip:c.tooltip}},{children:i(a,t({classes:{root:c.icon}},{children:i(p,t({classes:{badge:c.badge},badgeContent:i(n,{})},{children:i(l,{displayName:r,size:m,imgSrc:s})}))}))}))},f={displayName:e.string,imgSrc:e.string,size:e.number};c.propTypes=f,c.defaultProps={displayName:"",imgSrc:void 0,size:24};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as i}from
|
|
1
|
+
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import o from"prop-types";import t from"classnames";import{capitalize as p}from"lodash";import{makeStyles as r,Tooltip as l,Chip as a}from"@material-ui/core";import{Close as s}from"@material-ui/icons";var n=r((function(i){return{rootChip:{"&.MuiChip-root":{backgroundColor:i.palette.background.b9,color:i.palette.primary.text6,textAlign:"center","&:hover":{color:i.palette.primary.contrastText,"& .MuiSvgIcon-root":{color:i.palette.primary.contrastText}},"& span.MuiChip-label":{padding:0}}},tooltip:{marginTop:"10px"},closeIcon:{"&.MuiSvgIcon-root.MuiChip-deleteIcon":{width:16,height:16,left:18,top:4,margin:"0px 0px 0px 4px",color:i.palette.primary.text6}},sizeSmall:{"&.MuiChip-root":{minWidth:16,height:16,padding:"1px 2px","& span":{fontSize:"11px",lineHeight:"14px"}}},sizeSmallLimited:{"&.MuiChip-root":{padding:"1px 3px"}},sizeMedium:{"&.MuiChip-root":{minWidth:24,height:24,padding:"2px 4px","& span":{fontSize:"14px",lineHeight:"20px"}}},sizeMediumLimited:{"&.MuiChip-root":{padding:"2px 6px"}},sizeMediumClickable:{"&.MuiChip-root":{padding:"2px 6px"}},sizeLarge:{"&.MuiChip-root":{minWidth:32,height:32,padding:"5px 7px","& span":{fontSize:"16px",lineHeight:"22px"}}},sizeLargeLimited:{"&.MuiChip-root":{padding:"5px 8px"}},sizeLargeClickable:{"&.MuiChip-root":{padding:"5px 8px"}}}})),c=function(o){var r=o.classes,c=o.size,m=o.limited,d=o.clickable,x=o.tooltip,h=n();return e(l,i({title:x,classes:{tooltip:h.tooltip}},{children:e(a,i({},o,{classes:i(i({},r),{root:t(r.root,h.rootChip,h["size".concat(p(c))],m&&h["size".concat(p(c),"Limited")],d&&h["size".concat(p(c),"Clickable")])}),clickable:d,deleteIcon:e(s,{className:h.closeIcon,fontSize:"small"})}))}))},m={classes:o.shape({root:o.string}),size:o.oneOf(["small","medium","large"]),limited:o.bool,clickable:o.bool,label:o.string.isRequired,tooltip:o.string};c.propTypes=m,c.defaultProps={classes:{},size:"medium",limited:!1,clickable:!1,tooltip:""};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import a from"classnames";import e from"prop-types";import{KeyboardDatePicker as i}from"@material-ui/pickers";import{makeStyles as m}from"@material-ui/core";import{Event as p}from"@material-ui/icons";import s from"moment";import{DATE_FORMAT as n}from"../../constants/dateTimeFormat.js";var l=m((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:7},"& .MuiSvgIcon-root":{fill:"".concat(o.palette.primary.text6," !important")}},paper:{marginTop:8}}})),c=function(e){var m=e.className,c=e.PopoverProps,u=o(e,["className","PopoverProps"]),f=l();return t(i,r({disableToolbar:!0,variant:"inline",keyboardIcon:t(p,{}),format:n,placeholder:s().format(n),refuse:/[^(\w|\d)]+/gi},u,{PopoverProps:r({className:a(f.paper,c.className)},c),className:a(f.dateTimePickerInput,m)}))};c.propTypes={PopoverProps:e.shape({className:e.string}),className:e.string},c.defaultProps={PopoverProps:{},className:""};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as r}from
|
|
1
|
+
import{__rest as o,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t}from"react/jsx-runtime";import a from"classnames";import e from"prop-types";import m from"moment";import{KeyboardDateTimePicker as i}from"@material-ui/pickers";import{makeStyles as p}from"@material-ui/core";import{Event as s}from"@material-ui/icons";import{DATE_TIME_FORMAT as n}from"../../constants/dateTimeFormat.js";var c=p((function(o){return{dateTimePickerInput:{width:"100%",paddingBottom:8,"& .MuiFormLabel-root.Mui-focused":{color:o.palette.primary.main},"& .MuiInput-root.Mui-focused .MuiIconButton-root":{color:o.palette.primary.main},"& .MuiIconButton-root":{marginRight:-7,padding:7},"& .MuiSvgIcon-root":{fill:"".concat(o.palette.primary.text6," !important")}},paper:{marginTop:8}}}));function l(e){var p=e.className,n=e.PopoverProps,l=e.format,u=o(e,["className","PopoverProps","format"]),f=c();return t(i,r({dateRangeIcon:t(s,{}),keyboardIcon:t(s,{}),format:l,refuse:/[^(\w|\d)]+/gi,placeholder:m().format(l)},u,{PopoverProps:r({className:f.paper},n),className:a(f.dateTimePickerInput,p)}))}l.propTypes={className:e.string,PopoverProps:e.shape({className:e.string}),format:e.string},l.defaultProps={className:"",PopoverProps:{},format:n};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from
|
|
1
|
+
import{__rest as e,__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,Fragment as t,jsx as i}from"react/jsx-runtime";import{useState as n}from"react";import l from"prop-types";import a from"classnames";import{makeStyles as c,Popover as s}from"@material-ui/core";import{Settings as p,Close as d}from"@material-ui/icons";import g from"../../IconButton/index.js";var h=c((function(e){return{popoverPaper:{marginTop:8,minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:function(e){var o=e.maxHeight;return o?o-24:"calc(100% - 24px)"},"&.scrollable":{height:function(e){return e.maxHeight||"100%"}}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"},shadow:{position:"absolute",bottom:0,width:"100%",height:16,background:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9," 100%)")}}}));function m(l){var c,m=l.Trigger,u=l.header,b=l.children,f=l.iconSettingsProps,v=l.defaultScrollable,x=l.maxHeight,C=e(l,["Trigger","header","children","iconSettingsProps","defaultScrollable","maxHeight"]),H=h({maxHeight:x}),S=n(null),T=S[0],k=S[1],w=n(!0),P=w[0],z=w[1],N=function(){k(null)},j=Boolean(T);return r(t,{children:[m?i(m,{onClick:function(e){console.log(e),k(e.currentTarget)}}):i(g,o({onClick:function(e){return k(e.currentTarget)},isActive:j},f,{children:i(p,{})})),r(s,o({open:j,anchorEl:T,onClose:N,anchorOrigin:{vertical:P?"top":"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},C,{classes:o(o({},null==C?void 0:C.classes),{paper:a(H.popoverPaper,P&&"scrollable",null===(c=null==C?void 0:C.classes)||void 0===c?void 0:c.paper)})},{children:[r("div",o({className:a(H.popoverHeader,P&&"scrollable")},{children:[i("div",o({className:H.headerTitle},{children:u})),i(g,o({tooltipProps:{title:"Close"},onClick:N},{children:i(d,{})}))]})),i("div",o({className:a(H.popoverContentContainer,P&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&!v&&z(!1)}},{children:i("div",o({className:H.popoverContent},{children:b}))})),i("div",{className:H.shadow})]}))]})}var u={Trigger:l.element,iconSettingsProps:l.shape({iconSize:l.string,tooltipProps:l.shape({title:l.string})}),defaultScrollable:l.bool,maxHeight:l.number,header:l.string};m.propTypes=u,m.defaultProps={iconSettingsProps:{iconSize:"small"},defaultScrollable:!1,maxHeight:null,header:"Settings"};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as a}from"react";import l from"prop-types";import d from"classnames";import{noop as p}from"lodash";import{makeStyles as c,createStyles as s,Drawer as h,Box as m,Tooltip as u}from"@material-ui/core";import f from"@material-ui/icons/ChevronLeftRounded";import g from"@material-ui/icons/ChevronRightRounded";import x from"@material-ui/icons/Sort";import b from"@material-ui/icons/Check";import w from"@material-ui/icons/Close";import C from"../../IconButton/index.js";import T from"../../Button/index.js";var S=c((function(e){var o,t;return s({drawer:function(o){var t;return(t={height:"100%",position:"relative",width:o.openedDrawerWidth,borderTop:"1px solid",borderTopColor:e.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"})["&.".concat("closed")]={width:"48px"},t},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:e.palette.background.b5},o["&.".concat("closed")]={cursor:"pointer","&:hover":{backgroundColor:e.palette.background.b7,"& > $header":{backgroundColor:e.palette.background.b7}}},o["&.MuiDrawer-paperAnchorDockedLeft"]={borderRight:"none"},o["&.MuiDrawer-paperAnchorDockedRight"]={borderLeft:"none"},o),header:(t={height:48,borderBottom:"1px solid",borderBottomColor:e.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:e.palette.background.b5},t["&.".concat("open")]={padding:e.spacing(1.5),justifyContent:"flex-start"},t["&.".concat("withShadow")]={zIndex:1,boxShadow:"-18px 12px 12px #272727"},t),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(e){var o,t=e.anchor;return(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"})["&.".concat("withShadow")]={zIndex:1,boxShadow:"-18px -12px 12px #272727"},o["&.".concat("open")]={justifyContent:"left"===t?"flex-end":"flex-start",paddingRight:6},o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"12px !important"},"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer",paddingLeft:7,letterSpacing:1}})})),I=function(l){var p,c=l.anchor,s=l.children,I=l.drawerPaperClassName,k=l.expandedTooltipTitle,O=l.collapsedTooltipTitle,v=l.header,A=l.headerIcon,B=l.headerTitleIcon,N=l.isOpen,D=l.openedDrawerWidth,y=l.setIsOpen,z=l.size,j=l.allOptionsButtonShown,R=l.isAllOptionsSelected,W=l.onAllOptionsClick,P=r(!1),L=P[0],M=P[1],H=i(),_=S({anchor:c,openedDrawerWidth:D||{small:235,medium:354,large:473}[z]});a((function(){var e=H.current,o=e.scrollHeight,t=e.clientHeight;M(o>t)}));var q="left"===c?g:f;return o(h,e({"data-testid":"".concat("AppSideBar","_Drawer"),onClick:function(){N||y(!0)},className:d(_.drawer,!N&&"closed"),variant:"permanent",classes:{paper:d(_.drawerPaper,I,!N&&"closed")},anchor:c},{children:[o("div",e({className:d(_.header,N&&"open",L&&"withShadow"),onClick:function(){N&&y(!1)}},{children:[N&&o(t,{children:[B||n(x,{className:_.headerIcon}),n("div",e({"data-testid":"".concat("AppSideBar","_header"),className:_.headerIconText},{children:v})),j&&n(T,e({className:_.selectAllButton,onClick:function(e){e.stopPropagation(),W(e)},startIcon:n(R?w:b,{})},{children:R?"Clear All":"Select All"}))]}),!N&&A]})),n("div",e({className:_.contentWrapper,ref:H},{children:n("div",e({className:_.content},{children:N&&s}))})),n(m,e({className:d(_.openToggleContainer,(p={},p.open=N,p.withShadow=L,p))},{children:n(u,e({title:N?k:O,placement:"bottom"},{children:n("div",{children:n(C,e({"aria-label":"toggle sidebar",onClick:function(){y(!N)}},{children:n(q,{"data-testid":"".concat("AppSideBar","_arrowButton"),className:d(N&&_.openToggleIconOpen)})}))})}))}))]}))},k={anchor:l.oneOf(["left","right"]),children:l.node.isRequired,drawerPaperClassName:l.string,expandedTooltipTitle:l.string,collapsedTooltipTitle:l.string,header:l.node,headerIcon:l.node,headerTitleIcon:l.node,isOpen:l.bool,openedDrawerWidth:l.oneOfType([l.string,l.number]),setIsOpen:l.func,size:l.oneOf(["small","medium","large"]),allOptionsButtonShown:l.bool,isAllOptionsSelected:l.bool,onAllOptionsClick:l.func};I.propTypes=k,I.defaultProps={anchor:"left",drawerPaperClassName:"",expandedTooltipTitle:"Collapse",collapsedTooltipTitle:"Expand",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:p,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:p};export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import r from"prop-types";import a from"classnames";import{makeStyles as l,ClickAwayListener as c,TextField as s,Tooltip as d,InputAdornment as m}from"@material-ui/core";import p from"@material-ui/icons/Edit";import u from"@material-ui/icons/Close";import f from"@material-ui/icons/Done";var g=l((function(e){return{editableItem:{width:"100%",height:36,position:"relative",backgroundColor:e.palette.background.b8,"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.07)"},"&:hover svg":{visibility:"visible"}},editableItemActive:{backgroundColor:"rgba(3, 188, 212, 0.15) !important"},value:{color:e.palette.primary.text6,fontSize:"0.875rem",height:"100%",letterSpacing:".13132px",lineHeight:"36px",overflow:"hidden",paddingLeft:48,textOverflow:"ellipsis",whiteSpace:"nowrap",width:"calc(100% - 32px)",userSelect:"none"},textField:{width:"100%"},inputRoot:{height:36,paddingLeft:48,fontSize:"0.875rem"},inputDisabled:{backgroundColor:"unset",paddingRight:16,"&::before":{display:"none"},pointerEvents:"none"},icon:{boxSizing:"content-box",cursor:"pointer",color:e.palette.primary.text6,padding:7,fontSize:"1rem","&:hover":{color:"#FFFFFF",backgroundColor:"rgba(51, 51, 51, 0.9)",borderRadius:"50%"},"&:target":{backgroundColor:e.palette.background.b9}},iconPrimary:{color:e.palette.primary.main},iconPrimaryDisabled:{color:e.palette.primary.main,opacity:.4,cursor:"default",pointerEvents:"none"},iconClose:{fill:"".concat(e.palette.primary.text6," !important"),"&:hover":{fill:"#FFFFFF !important"}},iconEdit:{position:"absolute",right:4,top:3,visibility:"hidden"},inputAdornment:{marginTop:1,marginRight:4}}})),b=function(r){var l,b=r.className,v=r.isEditable,h=r.isEditing,y=r.onClick,C=r.onClickAway,k=r.onCancel,E=r.onSave,F=r.value,x=t(F),w=x[0],P=x[1],S=t(h),N=S[0],A=S[1],R=g(),z=function(e){e.stopPropagation(),w.length&&w!==F&&E(w).then((function(){return A(!1)}))};n((function(){var e=function(e){"Escape"===e.key||"Esc"===e.key?(P(F),A(!1),C()):"Enter"===e.key&&z(e)};return N&&document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[N,F,w]);var D=function(e){e.stopPropagation(),P(F),A(!1),k()};n((function(){P(F)}),[F]);var I=a(R.editableItem,((l={})[R.editableItemActive]=N,l),b);return o("div",e({className:I,onClick:y},{children:[!N&&i("div",e({className:R.value},{children:w})),N&&i(c,e({onClickAway:function(){P(F),A(!1),C()}},{children:i(s,{autoFocus:!0,type:"text",value:w,onChange:function(e){e.stopPropagation(),P(e.target.value)},placeholder:"Page Name...",className:R.textField,InputProps:{classes:{root:R.inputRoot},endAdornment:N?i(m,e({position:"end"},{children:o("span",e({className:R.inputAdornment},{children:[i(d,e({title:"Cancel",placement:"bottom-end"},{children:i(u,{className:a(R.icon,R.iconClose),onClick:D,fontSize:"small"})})),i(d,e({title:"Save",placement:"bottom-end"},{children:i(f,{color:w===F?"disabled":"primary",onClick:z,fontSize:"small",disabled:w===F,classes:{root:R.icon,colorPrimary:R.iconPrimary,colorDisabled:R.iconPrimaryDisabled}})}))]}))})):null}})})),v&&!N&&i(d,e({title:"Rename Page",placement:"bottom-end"},{children:i(p,{className:a(R.icon,R.iconEdit),onClick:function(e){e.stopPropagation(),A(!0)},fontSize:"small"})}))]}))},v={className:r.string,isEditable:r.bool,isEditing:r.bool,onClick:r.func,onSave:r.func.isRequired,onClickAway:r.func,onCancel:r.func,value:r.string.isRequired};b.propTypes=v,b.defaultProps={className:"",isEditable:!0,isEditing:!1,onClick:function(){},onClickAway:function(){},onCancel:function(){}};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as r,Fragment as n}from"react/jsx-runtime";import{useState as t,useEffect as i,useMemo as a}from"react";import l from"prop-types";import s from"classnames";import{Typography as c,LinearProgress as d}from"@material-ui/core";import{Close as m,Delete as f}from"@material-ui/icons";import u from"../IconButton/index.js";import p from"../Button/index.js";import h from"./Icons/IconWarning.js";import g from"./Icons/IconSuccess.js";import v from"./Icons/IconRefresh.js";import z from"./Icons/FileIcon.js";import N from"./Icons/UploadIcon.js";import{useStyles as B}from"./useStyles.js";function I(l){var I,y,S,C,b,w,L,j=l.size,M=l.unit,P=l.name,T=l.sizeBytes,x=l.handleCancel,k=l.onReload,E=l.onDelete,R=l.loadedBytes,A=l.error,D=l.errorText,U=l.formatError,O=l.importButtonType,W=l.isLoadingAnimation,F=B(),q=t({}),K=q[0],_=q[1],G=t(0),H=G[0],J=G[1],Q=t(!0),V=Q[0],X=Q[1],Y="large"===j;i((function(){_(function(e,o){return"time"===o?{downloaded:0,unit:"min",convertedSize:e}:e>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(e/Math.pow(10,5))/10}:e>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(e/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*e)/10}}(T,M))}),[T,M]),i((function(){if(R&&T){var o=Math.round(R/T*100);_((function(r){return e(e({},r),{downloaded:Math.floor(r.convertedSize*o/10)/10})})),J(o)}}),[R,T]),i((function(){var e;return E&&H>=100&&(X(!0),e=setTimeout((function(){X(!1)}),5e3)),function(){return e&&clearTimeout(e)}}),[H]),i((function(){A&&(J(0),_((function(o){return e(e({},o),{downloaded:0})})))}),[A]);var Z=a((function(){var e,o;return[s(F.iconButton,((e={})[F.iconButtonLarge]=Y,e)),s(F.actionIcon,((o={})[F.actionIconLarge]=Y,o))]}),[Y]),$=Z[0],ee=Z[1];return o("div",e({className:F.fileStateWrapper},{children:[r("div",e({className:F.fileIconContainer},{children:r(z,{name:P,style:{fontSize:Y?48:32}})})),o("div",e({className:F.fileState},{children:[o("div",e({className:F.fileStateProgress},{children:[r("div",e({className:F.fileNameWrapper},{children:r(c,e({className:s(F.fileName,(I={},I[F.fileNameLarge]=Y,I))},{children:P.length>7?o(n,{children:[r("span",e({className:F.firstPart},{children:P.slice(0,P.length-7)})),r("span",{children:P.slice(-7)})]}):P}))})),!W&&r(d,{className:F.progressBar,variant:"determinate",value:H,classes:{colorPrimary:s(F.progressBackground,(y={},y[F.progressBarError]=A,y)),barColorPrimary:s(F.progressBarColor,(S={},S[F.progressBarError]=A,S))}}),o("div",e({className:F.loaderProgressContainer},{children:[!W&&r(c,e({className:s(F.fileSize,(C={},C[F.fileSizeLarge]=Y,C)),component:"span"},{children:"".concat(K.downloaded," of ").concat(K.convertedSize," ").concat(K.unit)})),o("div",e({className:s(F.progressStatus,(b={},b[F.fileSizeLarge]=Y,b))},{children:[A&&o(c,e({component:"div",className:F.errorContainer},{children:[r(h,{size:j}),r(c,e({component:"span",className:s(F.errorText,(w={},w[F.fileSizeLarge]=Y,w))},{children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(D&&". ".concat(D))}))]})),!A&&!W&&"".concat(H," %")]}))]}))]})),o("div",e({className:F.fileActions},{children:[H<100&&!A&&r(n,{children:W?r("div",{className:s(F.loadingIcon,(L={},L[F.loadingLargeIcon]=Y,L)),style:{backgroundImage:"url(".concat("/static/media/c7e056a4353978b8b0393473f0d750ae.svg",")")}}):r(u,e({tooltipProps:{title:"Cancel"},className:$,onClick:function(){x(P),J(0),_((function(o){return e(e({},o),{downloaded:0})}))}},{children:r(m,{classes:{root:ee}})}))}),100===H&&!A&&(!V&&E?r(u,e({variant:"contained",tooltipProps:{title:"Delete"},className:$,onClick:E},{children:r(f,{classes:{root:ee}})})):r(g,{size:j,style:{marginLeft:12}})),k&&A&&r(n,{children:U?r(n,{children:"default"===O?r(p,e({size:Y?"medium":"small",variation:"primary",startIcon:r(N,{}),onClick:k},{children:"Import"})):r(u,e({tooltipProps:{title:"Import File"},className:$,onClick:k},{children:r(N,{style:{fontSize:Y?24:16}})}))}):r(u,e({tooltipProps:{title:"Reload"},className:$,onClick:k},{children:r(v,{style:{fontSize:Y?24:16}})}))})]}))]}))]}))}var y={size:l.oneOf(["small","large"]),unit:l.oneOf(["size","time"]),onDelete:l.func,onReload:l.func,handleCancel:l.func,name:l.string,sizeBytes:l.number,error:l.bool,errorText:l.string,formatError:l.bool,importButtonType:l.oneOf(["default","icon"]),loadedBytes:l.number.isRequired,isLoadingAnimation:l.bool};I.propTypes=y,I.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1};export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as t}from
|
|
1
|
+
import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import i from"prop-types";import a from"classnames";import{makeStyles as e,Tooltip as l,IconButton as n}from"@material-ui/core";import{useState as s}from"react";var c=e((function(o){return{root:{color:o.palette.primary.text6,padding:6,"&:hover":{color:"#FFFFFF",backgroundColor:o.palette.background.b7,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&:active":{color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"&.Mui-disabled":{pointerEvents:"all",opacity:.4,color:"#FFFFFF","&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}},"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}},colorPrimary:{color:o.palette.primary.main},sizeSmall:{fontSize:16,padding:7},sizeLarge:{"&.MuiButtonBase-root":{padding:8}},contained:{backgroundColor:o.palette.background.b9},containedDisabled:{"&.MuiButtonBase-root":{backgroundColor:o.palette.background.b9}},tooltip:{top:"-10px !important"},active:{"&.MuiButtonBase-root":{color:o.palette.primary.text1,backgroundColor:o.palette.background.b9,"&.MuiIconButton-colorPrimary":{color:o.palette.primary.main}}}}})),d=function(i){var e,d,p,m,u=i.tooltipProps,b=void 0===u?{title:void 0}:u,g=o(i,["tooltipProps"]),v=g.isActive,y=g.size,f=g.variant,F=g.classes,P=void 0===F?{}:F,z=g["data-testid"],B=c(),M=s(!1),k=M[0],S=M[1],I=t(t({},P),{root:a(P.root,B.root,(e={},e[B.sizeLarge]="large"===y,e[B.contained]="contained"===f,e)),disabled:a(P.disabled,(d={},d[B.containedDisabled]="contained"===f,d)),colorPrimary:a(P.colorPrimary,B.colorPrimary),sizeSmall:a(P.sizeSmall,B.sizeSmall)});return b.title?r(l,t({open:k},b,{children:r(n,t({"data-testid":z,classes:I,className:a((p={},p[B.active]=v,p)),onMouseOver:function(){return S(!0)},onMouseOut:function(){return S(!1)}},g))})):r(n,t({"data-testid":z,classes:I,className:a((m={},m[B.active]=v,m))},g))},p={isActive:i.bool,size:i.oneOf(["small","medium","large"]),variant:i.oneOf(["default","contained"]),tooltipProps:i.shape({title:i.string}),classes:i.shape({root:i.string,disabled:i.string,colorPrimary:i.string,sizeSmall:i.string}),disabled:i.bool,"data-testid":i.string};d.propTypes=p,d.defaultProps={isActive:!1,size:"medium",variant:"default",tooltipProps:{title:void 0},disabled:!1,"data-testid":"IconButton"};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import i from"classnames";import r from"./Loader.js";import{screenLoadingIndicatorPropTypes as a}from"./types.js";import o from"./LoadingIndicator.css.js";var m=function(a){var m=a.white,t=a.size,p=a.className;return e("div",s({className:i(o.appLoading,p)},{children:e("div",s({className:o.appLoadingGrid},{children:e("div",s({className:o.appLoadingInner},{children:e(r,{white:m,size:t})}))}))}))};m.propTypes=a,m.defaultProps={white:!0,size:80,className:""};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import r from"classnames";import i from"./Loader.js";import{screenLoadingIndicatorPropTypes as o}from"./types.js";import t from"./LoadingIndicator.css.js";var a=function(o){var a=o.white,m=o.size,p=o.className;return e("div",s({className:r(t.appLoadingInline,p)},{children:e(i,{white:a,size:m})}))};a.propTypes=o,a.defaultProps={white:!0,size:80,className:""};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as e}from
|
|
1
|
+
import{__rest as r,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import s from"./FullScreenLoadingIndicator.js";import t from"./InlineLoadingIndicator.js";import{loadingIndicatorPropTypes as i}from"./types.js";import{LOADER_DEFAULT_SIZE as l,LOADER_HREF as m}from"./Loader.js";var n=function(i){var l=i.fullscreen,m=r(i,["fullscreen"]);return o(l?s:t,e({},m))};n.propTypes=i,n.defaultProps={fullscreen:!0,white:!0,size:l,className:""},n.LOADER_HREF=m,n.LOADER_DEFAULT_SIZE=l;export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import e from"prop-types";var s={white:e.bool,size:e.number},r=o(o({},s),{className:e.string}),l=o(o({},r),{fullscreen:e.bool});export{s as loaderPropTypes,l as loadingIndicatorPropTypes,r as screenLoadingIndicatorPropTypes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as t,jsxs as i}from"react/jsx-runtime";import{useState as l}from"react";import s from"classnames";import{noop as a}from"lodash";import{withStyles as n,IconButton as r,makeStyles as c,Modal as m,Tooltip as d}from"@material-ui/core";import{Close as p,CloseRounded as C}from"@material-ui/icons";import{isMobileDetected as h,isNativeDetected as u}from"../../utils/mobileDetect.js";import N from"./CorvaModal.css.js";import{modalPropTypes as f}from"./types.js";var b,v="filters",T="settings",g=((b={})[v]="Filters",b[T]="Settings",b),y=n({root:{position:"absolute",right:28,top:24,color:"#9E9E9E",fontSize:"14px",paddingTop:8,width:14,height:14,"&.MuiIconButton-root":{padding:0},"& svg":{transform:"scale(1.8)",width:14,height:14}}})(r),M=n((function(o){return{root:{color:o.palette.primary.text6,"&:hover":{color:"white",cursor:"pointer"}}}}))(p),k=c((function(o){return{closeTooltip:{marginTop:8},closeButton:{padding:"4px 6px",width:"36px",height:"36px","&:hover":{backgroundColor:o.palette.background.b7}}}}));function x(a){var n,c,p=a.title,h=a.children,u=a.actions,f=a.open,b=a.isCloseIconHidden,T=a.onClose,x=a.isNative,F=a.isMobile,w=a.stickyFooter,S=a.contentContainerClassName,j=a.contentClassName,H=a.stickyFooterClassName,z=a.modalTitleClassName,A=a.size,I=a.type,B=a.rootClassName,E=a.actionsClassName,W=o(a,["title","children","actions","open","isCloseIconHidden","onClose","isNative","isMobile","stickyFooter","contentContainerClassName","contentClassName","stickyFooterClassName","modalTitleClassName","size","type","rootClassName","actionsClassName"]),D=l(0),P=D[0],_=D[1],q=window.innerHeight,G=P>=Math.floor(80*q/100),J=x||F,K=k();return t(m,e({open:f,onClose:T,className:s((n={"c-modal":!J},n[N.modalWrapper]=!0,n[B]=!0,n[N[I]]=J&&I,n))},W,{children:i("div",e({ref:function(o){return _(null==o?void 0:o.clientHeight)},className:s((c={},c[N[A]]=!J,c[N.modalContainer]=!J,c[N.modalMobileContainer]=!J,c[N.modalStaticFooter]=!J&&w&&G,c[S]=!0,c[N.modalMobileContainer]=J,c[N.modalMobileStaticFooter]=J,c))},{children:[J&&i("div",e({className:s(N.modalMobileTitle,I===v&&N.filtersTitle)},{children:[t(y,e({onClick:T},{children:t(C,{})})),t("div",e({className:N.modalMobileTitleText},{children:p||g[I]}))]})),!J&&p&&i("div",e({className:s(N.modalTitle,!b&&N.modalTitleWithClose,z)},{children:[t("div",e({className:N.modalTitleText},{children:p})),!b&&t(d,e({title:"Close",classes:{tooltip:K.closeTooltip},placement:"bottom"},{children:t(r,e({onClick:T,classes:{root:K.closeButton}},{children:t(M,{})}))}))]})),h&&t("div",e({className:s(!J&&N.modalContent,J&&N.modalMobileContent,j)},{children:h})),u&&t("div",e({className:s(J&&N.modalMobileActions,!w&&N.modalActions,w&&N.modalActionsSticky,w&&G&&N.modalActionsStickyShadow,w&&H,E)},{children:u}))]}))}))}x.propTypes=f,x.defaultProps={actions:"",actionsClassName:null,children:null,contentClassName:null,contentContainerClassName:null,isCloseIconHidden:!1,isMobile:h,isNative:u,modalTitleClassName:"",onClose:a,stickyFooter:!1,stickyFooterClassName:null,title:"",size:null,type:"",rootClassName:null};export{x as CorvaModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as r}from
|
|
1
|
+
import{__rest as e,__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{useDelayedDcFullscreenElemOpen as n}from"../../effects/useDelayedDcFullscreenElemOpen.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{IsInsideDcFullscreenElemProvider as s}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{CorvaModal as t}from"./CorvaModal.js";function i(i){var l=i.open,m=e(i,["open"]),p=n({isOpen:l}).delayedIsOpen;return o(s,{children:o(t,r({open:p},m))})}export{i as DcCorvaModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import{useIsInsideDcFullscreenElem as o}from"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import{useIsInsideDcApp as r}from"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{CorvaModal as t}from"./CorvaModal.js";import{DcCorvaModal as p}from"./DcCorvaModal.js";function s(s){var i=r(),C=o();return n(i&&!C?p:t,e({},s))}export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import n from"prop-types";import i from"classnames";import{makeStyles as a,Typography as l,Tooltip as s}from"@material-ui/core";import{Edit as d,ExpandLess as c,ExpandMore as p}from"@material-ui/icons";import f from"../IconButton/index.js";var m=a((function(e){var o=e.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:o.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:o.primary.contrastText}},buttons:{display:"flex"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}}}})),u=function(n){var a=n.onClick,u=n.wells,x=n.disabled,b=n.expanded,h=n.onExpand,v=r(!1),g=v[0],y=v[1],C=m(),w=u.length,k=!(!w||!h),E=o("div",e({className:i(C.offsetContainer,x&&C.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?y(!1):y(!0)},onMouseLeave:function(){y(!1)}},{children:[o(l,e({className:i(C.offsetText,g&&C.isActive)},{children:["Offset Wells (",w,")"]})),t(f,e({className:i(C.primaryIcon,g&&C.hoveredContainer),color:"primary",size:"medium"},{children:t(d,{})}))]}));return o("div",e({className:C.buttons},{children:[t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:E})),k&&t(f,e({tooltipProps:{title:b?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),h()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(b?c:p,{"data-icon":"expandIcon"})}))]}))},x={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),disabled:n.bool,onExpand:n.func,expanded:n.bool};u.propTypes=x,u.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useState as i}from"react";import{makeStyles as e,Tooltip as a,Chip as l}from"@material-ui/core";import n from"./components/OffsetWellTruncatedText.js";import{offsetWellChipPropTypes as m}from"./types.js";import c from"../../utils/main.js";import s from"./icons/SubjectIcon.js";var p=e((function(r){return{chipRoot:{position:"relative",height:30,padding:"7px 12px",fontSize:12,color:r.palette.primary.text6,margin:4,"&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.1)",color:r.palette.primary.contrastText}},root:{width:"100%",display:"flex",alignItems:"center"},label:{padding:0},mark:{display:"block",marginRight:4,width:8,height:8,borderRadius:8,backgroundColor:function(r){return r.markColor}},subject:{display:"flex",marginRight:4}}})),d=function(e){var m=e.title,d=e.onClick,u=e.markColor,f=e.isSubject,h=e.rigName,g=e.maxWidth,b=i(null),x=b[0],k=b[1],C=p({markColor:u||"#".concat(c.getColorFromString(m))}),j=!!x,y=h?"".concat(m," | ").concat(h):m,v=t("div",r({className:C.root},{children:[o("span",f?r({className:C.subject},{children:o(s,{})}):{className:C.mark}),o(n,r({onTruncate:function(r){k(r)},truncatedText:x,maxWidth:g},{children:m}))]}));return o(a,r({title:j?y:h},{children:o(l,{"data-not-migrated-MuiChip":!0,variant:"outlined",size:"medium",label:v,classes:{root:C.chipRoot,label:C.label},onClick:d})}))};d.propTypes=m,d.defaultProps={onClick:null,markColor:null,maxWidth:200,rigName:null};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{makeStyles as e}from"@material-ui/core";import t from"prop-types";import o from"./Chip.js";var a=e((function(){return{container:{display:"flex",flexWrap:"wrap",padding:"8px 0"}}})),m=function(e){var t=e.wells,m=e.maxWidth,s=a();return i("div",r({className:s.container},{children:t.map((function(r){var e=r.id,t=r.title,a=r.isSubject,s=r.markColor,l=r.rigName;return i(o,{maxWidth:m,title:t,isSubject:a,markColor:s,rigName:l},e)}))}))};m.propTypes={wells:t.arrayOf(t.shape({title:t.string,id:t.number,rigName:t.string,isSubject:t.bool,markColor:t.string})).isRequired};export{m as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default OffsetWellMap;
|
|
2
|
-
declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, }: {
|
|
2
|
+
declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, isClickable, }: {
|
|
3
3
|
isViewOnly: any;
|
|
4
4
|
subjectWell: any;
|
|
5
5
|
wells: any;
|
|
@@ -7,6 +7,7 @@ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds,
|
|
|
7
7
|
radius: any;
|
|
8
8
|
handleChanageOffsetWell: any;
|
|
9
9
|
activeWellId: any;
|
|
10
|
+
isClickable: any;
|
|
10
11
|
}): JSX.Element;
|
|
11
12
|
declare namespace OffsetWellMap {
|
|
12
13
|
namespace propTypes {
|
|
@@ -20,10 +21,13 @@ declare namespace OffsetWellMap {
|
|
|
20
21
|
const radius: PropTypes.Validator<number>;
|
|
21
22
|
const handleChanageOffsetWell: PropTypes.Validator<(...args: any[]) => any>;
|
|
22
23
|
const activeWellId: PropTypes.Validator<number>;
|
|
24
|
+
const isClickable: PropTypes.Requireable<boolean>;
|
|
23
25
|
}
|
|
24
26
|
namespace defaultProps {
|
|
25
27
|
const subjectWell_1: any;
|
|
26
28
|
export { subjectWell_1 as subjectWell };
|
|
29
|
+
const isClickable_1: boolean;
|
|
30
|
+
export { isClickable_1 as isClickable };
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA
|
|
1
|
+
{"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AA+BA;;;;;;;;;gBAoXC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var O=v.isValidCoordinates,W=[29.749907,-95.358421],T=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,z=a.activeWellId,E=a.isClickable,L=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),w=t((function(){return C(x)}),[x]),I=n(),Z=n(),_=n(),q=n(),M=n(null),P=o(!1),R=e(P,2),V=R[0],G=R[1],S=n(),A=n(),H=(null==D?void 0:D.id)===z,U=h(x),J=o(null),K=e(J,2),Q=K[0],X=K[1],Y=o(3),$=e(Y,2),rr=$[0],er=$[1];c((function(){I.current=p.mapbox.map(I.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(W,3).on("zoomend",(function(){return er(I.current.getZoom())})),I.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(I.current)}),[]),c((function(){if(I.current){if(Z.current&&(I.current.removeLayer(Z.current),Z.current=null),_.current&&I.current.removeLayer(_.current),!L)return Z.current=null,void(_.current=null);j&&(Z.current=p.circle(L,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),Z.current.addTo(I.current))}}),[j,L]);var tr=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),G(!0)),M.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),G(!1))})),M.current.addEventListener("click",(function(){v||F(n,!o)}));var i=S.current.concat(M.current);q.current.removeFrom(I.current),q.current=p.featureGroup(i),q.current.addTo(I.current)},nr=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:E});u.render(k(g,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(I.current)};c((function(){if(I.current&&x&&N){I.current.closePopup(),q.current&&q.current.removeFrom(I.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(w,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Q&&l(r.target,T)&&(t=[l(r.target,T).x-Q.x,l(r.target,T).y-Q.y]),nr(e,c,o,n,t),tr(s,n,i,e,c,o)})),o&&(A.current=s),r.push(s),e.id===z&&!H){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(q.current=p.featureGroup(r),q.current.addTo(I.current)),S.current=r,setTimeout((function(){Z.current&&Z.current.bringToBack(),I.current&&Z.current&&x!==U&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,Q]),c((function(){if(V&&l(I.current,T)){var r=[l(I.current,T).x-Q.x,l(I.current,T).y-Q.y];nr(D,!1,!0,L,r)}}),[V,Q,D,L]),c((function(){if(I.current&&L){_.current&&_.current.removeFrom(I.current);var r=p.icon({iconUrl:V||H?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:V||H?[70,20]:[62,12],iconAnchor:V||H?[35,29]:[31,25],className:"dot"});_.current=p.marker(L,{icon:r}),_.current.addTo(I.current),A.current&&(_.current.addEventListener("mouseover",(function(){G(!0),tr(A.current,L,"#03BCD4",D,!0,!0)})),_.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),A.current.setStyle({fillColor:"#03BCD4"}),G(!1)})))}}),[V,L,j,D,H,Q]),c((function(){setTimeout((function(){Z.current&&Z.current.bringToBack(),D?I.current&&Z.current&&j&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]}):I.current&&q.current&&I.current.fitBounds(q.current.getBounds()),l(I.current,T)&&X(l(I.current,T))}),500)}),[j,D]);return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:I,children:B("div",{className:b.zoomGroup,children:[k(d,{title:rr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===rr)),onClick:function(){I.current.setZoom(rr+1)},children:k(m,{className:b.zoomInOutIcon})})}),k(d,{title:rr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===rr)),onClick:function(){rr>1&&I.current.setZoom(rr-1)},children:k(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool},D.defaultProps={subjectWell:null,isClickable:!0};export{D as default};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export function WellTooltip(): ({ isViewOnly, well, color, isOffsetWell, isSubjectWell, offset }: {
|
|
1
|
+
export function WellTooltip(): ({ isViewOnly, well, color, isOffsetWell, isSubjectWell, offset, isClickable }: {
|
|
2
2
|
isViewOnly: any;
|
|
3
3
|
well: any;
|
|
4
4
|
color: any;
|
|
5
5
|
isOffsetWell: any;
|
|
6
6
|
isSubjectWell: any;
|
|
7
7
|
offset: any;
|
|
8
|
+
isClickable: any;
|
|
8
9
|
}) => JSX.Element;
|
|
9
10
|
//# sourceMappingURL=WellTooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WellTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/WellTooltip.js"],"names":[],"mappings":"AAMO
|
|
1
|
+
{"version":3,"file":"WellTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/WellTooltip.js"],"names":[],"mappings":"AAMO;;;;;;;;kBA6CJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"classnames";import
|
|
1
|
+
import e from"classnames";import l from"moment";import o from"@material-ui/icons/Info";import i from"@material-ui/icons/Block";import t from"./WellTooltip.module.css.js";import{jsxs as a,jsx as m}from"react/jsx-runtime";var s=function(){return function(s){var n=s.isViewOnly,r=s.well,c=s.color,f=s.isOffsetWell,d=s.isSubjectWell,p=s.offset,N=s.isClickable;return a("div",{className:t.wellTooltip,style:{marginLeft:null==p?void 0:p[0],marginTop:null==p?void 0:p[1]},children:[m("span",{className:e(t.commonItem,t.wellName),children:r.name}),a("div",{className:t.tooltipItem,children:["Depth: ",Number.isFinite(r.totalDepth)?Math.floor(r.totalDepth).toFixed(2):"N/A",Number.isFinite(r.totalDepth)&&m("span",{className:t.unit,children:" ft"})]}),a("div",{className:e(t.commonItem,t.tooltipItem),children:["Release Date: ",Number.isFinite(r.rigReleaseDate)?l.unix(r.rigReleaseDate).format("MM/DD/YYYY"):"N/A"]}),a("div",{className:e(t.commonItem,t.formationItem),children:["Target Formation:",m("div",{className:t.formation,style:{backgroundColor:c}}),r.formation]}),!n&&!d&&N&&a("div",{className:e(t.commonItem,t.info),children:[f?m(i,{className:t.blockIcon}):m(o,{className:t.infoIcon}),m("span",f?{className:t.infoLabel,children:"Click to deselect Offset Well"}:{className:t.infoLabel,children:"Click to select Offset Well"})]})]})}};export{s as WellTooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as o}from"react";import a from"classnames";import{round as l,throttle as u}from"lodash";import s from"prop-types";import{isMobileDetected as m}from"../../utils/mobileDetect.js";import{horizontalStrategy as c}from"./strategies/horizontal.js";import{verticalStrategy as d}from"./strategies/vertical.js";import{calculatePercentForValue as f,updateToValue as g,updateFromValue as R,calculateValueFromPercent as p}from"./utils.js";import v from"./inputs/FromInput.js";import b from"./inputs/ToInput.js";import{RangeSliderControl as O,RangeSliderOrientation as S}from"./constants.js";import T from"./RangeSlider.css.js";var h=function(s){var h,B,I,M,C=s.min,N=s.max,y=s.from,A=s.to,F=s.minRange,V=s.disabled,L=s.onChange,x=s.orientation,j=s.precision,w=s.isSingleRange,E=s.isWithoutInput,z=r(null),H=z[0],P=z[1],_=r(null),D=_[0],U=_[1],q=r(null),W=q[0],X=q[1],Y=r(O.FROM),Z=Y[0],k=Y[1],G=r(null),J=G[0],K=G[1],Q=r({}),$=Q[0],ee=Q[1],ne=r({from:!1,bar:!1,to:!1}),te=ne[0],re=ne[1],ie=i(null),oe=i(null),ae=i(null),le=i(null),ue=i(null),se=x===S.HORIZONTAL,me=x===S.VERTICAL,ce=w&&E;o((function(){x===S.HORIZONTAL&&X(c),x===S.VERTICAL&&X(d)}),[x]),o((function(){w&&L({from:0,to:A})}),[w]),o((function(){var e;if(W){var n=l(y,j),t=l(A,j),r=l(C,j),i=l(N,j),o=f(n,r,i),a=f(t,r,i);ee(((e={})[O.FROM]=W.getThumbStyles(o,Z===O.FROM),e[O.TO]=W.getThumbStyles(a,Z===O.TO),e[O.BAR]=W.getBarStyles(o,a),e[O.FROM_INPUT]=W.getInputStyles(J===O.FROM||J===O.BAR||te.from),e[O.TO_INPUT]=W.getInputStyles(J===O.TO||J===O.BAR||te.to),e)),P(n.toString()),U(t.toString())}}),[W,C,N,y,A,J,te]);var de=function(e){var n=W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==y){var i=R(r,y,A,C,F);L(i)}},fe=function(e){var n=me&&w?W.getRotatedCoordinates(e,ie.current.getBoundingClientRect()):W.getCoordinates(e,ie.current.getBoundingClientRect()),t=f(n.new,n.min,n.max),r=l(p(t,C,N),j);if(r!==A){var i=g(r,y,A,N,F);L(i)}},ge=function(e,n){var t=W.getBarCoordinates(e,n,ie.current.getBoundingClientRect()),r=f(t.new,t.min,t.max),i=l(p(r,C,N),j),o=l(A+(i-y),j);if(i<C){var a=C-i;i=C,o=l(o+a,j)}if(o>N){a=o-N;o=N,i=l(i-a,j)}i!==y&&o!==A&&i>=C&&o<=N&&L({from:i,to:o})},Re=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!0,t))):re({from:!0,bar:!0,to:!0})},pe=function(n){var t;n!==O.BAR?re(e(e({},te),((t={})[n]=!1,t))):re({from:!1,bar:!1,to:!1})},ve=function(e,n){if(!(w&&e===O.BAR||V)){n.stopPropagation(),k(e),K(e);var t=n.clientX,r=n.clientY,i=n.target.getBoundingClientRect(),o=i.x,a=i.y,l=u((function(n){!function(e){return e===O.FROM?de:e===O.TO?fe:ge}(e)(n,{clientX:t,clientY:r,x:o,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){K(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},be=function(e,n){var t=n.target.value;Number.isNaN(Number(t))||function(e){return e===O.FROM?P:U}(e)(t)},Oe=function(e,n){var t=n.target.value,r=l(t,j);if(e===O.FROM){var i=R(r,y,A,C,F);L(i)}if(e===O.TO){i=g(r,y,A,N,F);L(i)}};return n("div",e({className:a((h={},h[T.disabled]=V,h[T.rangeSliderHorizontal]=se,h[T.rangeSliderVertical]=me,h[T.rotatedVerticalRange]=me&&w,h))},{children:[!w&&t(v,{compStyles:$[O.FROM_INPUT],isVerticalOrientation:me,max:N,disabled:V,precision:j,fromInputRef:le,from:y,fromInputValue:H,onInputChange:be,validateInputChange:Oe}),n("div",e({className:a(T.rangeSliderRail,(B={},B[T.rangeSliderRailHorizontal]=se,B[T.rangeSliderRailVertical]=me,B)),ref:ie},{children:[!w&&t("div",e({ref:oe,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.FROM],onMouseDown:function(e){return ve(O.FROM,e)},onMouseEnter:function(){Re(O.FROM)},onMouseLeave:function(){pe(O.FROM)}},{children:t("div",{className:T.rangeSliderLabel})})),t("div",e({className:a(T.rangeSliderBar,(I={},I[T.rangeSliderBarHorizontal]=se,I[T.rangeSliderBarVertical]=me,I)),style:$[O.BAR],onMouseDown:function(e){return ve(O.BAR,e)},onMouseEnter:function(){Re(O.BAR)},onMouseLeave:function(){pe(O.BAR)}},{children:t("div",{className:a(T.rangeSliderBarView,(M={},M[T.rangeSliderBarViewHorizontal]=se,M[T.rangeSliderBarViewVertical]=me,M))})})),t("div",e({ref:ae,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:$[O.TO],onMouseDown:function(e){return ve(O.TO,e)},onMouseEnter:function(){Re(O.TO)},onMouseLeave:function(){pe(O.TO)}},{children:t("div",{className:T.rangeSliderLabel})}))]})),!ce&&t(b,{compStyles:$[O.TO_INPUT],disabled:V,isVerticalOrientation:me,rotated:me&&w,max:N,precision:j,toInputRef:ue,to:A,toInputValue:D,onInputChange:be,validateInputChange:Oe})]}))},B={min:s.number,max:s.number,from:s.number.isRequired,to:s.number.isRequired,orientation:s.oneOf(["horizontal","vertical"]),precision:s.number,minRange:s.number,onChange:s.func,isSingleRange:s.bool,isWithoutInput:s.bool,disabled:s.bool.isRequired};h.propTypes=B,h.defaultProps={min:0,max:100,orientation:"horizontal",precision:0,minRange:0,onChange:function(){},isSingleRange:!1,isWithoutInput:!1};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as r,__assign as l}from
|
|
1
|
+
import{__rest as r,__assign as l}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as i}from"react/jsx-runtime";import n from"prop-types";import{Table as o,TableHead as d,TableRow as t,TableCell as u,TableBody as c}from"@material-ui/core";import{useState as p}from"react";import a from"./ResizableTableHeaderCell.js";import s from"./ResizableTableCell.js";var v=function(n){var v,h,m,f,y,b=n.children,j=r(n,["children"]),k=b,x=k[0],C=k[1],R=null===(v=null==C?void 0:C.props)||void 0===v?void 0:v.children,T=null===(y=null===(f=null===(m=null===(h=null==x?void 0:x.props)||void 0===h?void 0:h.children)||void 0===m?void 0:m.props)||void 0===f?void 0:f.children)||void 0===y?void 0:y.reduce((function(r,l){return Array.isArray(l)?r.push.apply(r,l):r.push(l),r}),[]),z=p({}),A=z[0],N=z[1],g=function(r){return N((function(e){return l(l({},e),r)}))};return e(o,l({},j,{children:[i(d,{children:i(t,{children:null==T?void 0:T.map((function(r,e){var n;return r?e===T.length-1?i(u,l({},r.props,{children:null===(n=r.props)||void 0===n?void 0:n.children}),r.key||e):i(a,l({cellName:"cell".concat(e),nextCellName:"cell".concat(e+1),handleWidthsUpdate:g,widths:A},{children:r}),r.key||e):null}))})}),i(c,{children:null==R?void 0:R.map((function(r){var l,e;return i(t,{children:null===(e=null===(l=null==r?void 0:r.props)||void 0===l?void 0:l.children)||void 0===e?void 0:e.map((function(r,l){return r&&i(s,{children:r},r.key||l)}))},r.key)}))})]}))},h={children:n.arrayOf(n.node).isRequired};v.propTypes=h;export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import l from"prop-types";function i(l){var i,o,n=l.children;return n?e(n.type,r({},n.props,{children:e("div",{children:null!==(o=null===(i=null==n?void 0:n.props)||void 0===i?void 0:i.children)&&void 0!==o?o:null})})):null}i.propTypes={children:l.element.isRequired};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useState as t,useEffect as n}from"react";import o from"prop-types";import a from"classnames";import l from"react-draggable";import{makeStyles as d}from"@material-ui/core/styles";import{TableCell as s}from"@material-ui/core";var c=d((function(e){return{resizableColumnHeader:{display:"flex",paddingRight:0,justifyContent:"space-between"},tableResizer:{width:6,borderRadius:10,opacity:.7,cursor:"col-resize",marginRight:-11,marginTop:-16,marginBottom:-16},hovered:{backgroundColor:e.palette.primary.main}}})),u=function(e){var r;return null===(r=document.getElementById(e))||void 0===r?void 0:r.offsetWidth};function m(o){var d,m,p=o.children,f=o.cellName,h=o.nextCellName,v=o.widths,g=o.handleWidthsUpdate,b=c(),R=t(!1),x=R[0],y=R[1],z=t(),C=z[0],N=z[1],q=t(),w=q[0],j=q[1];if(n((function(){var e;N(u("content-".concat(f))+12),j(u("content-".concat(h))+12),g(((e={})[f]=u(f),e))}),[]),!p)return null;return r(s,e({width:v[f],id:f},p.props,{children:i("div",e({className:b.resizableColumnHeader},{children:[r("div",e({id:"content-".concat(f)},{children:null!==(m=null===(d=null==p?void 0:p.props)||void 0===d?void 0:d.children)&&void 0!==m?m:null})),r(l,e({axis:"x",onDrag:function(e,r){!function(e){var r,i=v[f]+e,t=v[h]-e;i<0||i<C||t<w||g(((r={})[f]=i,r[h]=t,r))}(r.deltaX)},position:{x:0},zIndex:999,onStart:function(){y(!0)},onStop:function(){var e;v[f]!==u(f)&&g(((e={})[f]=u(f),e)),y(!1)}},{children:r("div",{className:a(b.tableResizer,x&&b.hovered),onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}})}))]}))}))}var p={children:o.element.isRequired,cellName:o.string.isRequired,nextCellName:o.string.isRequired,widths:o.shape({}).isRequired,handleWidthsUpdate:o.func.isRequired};m.propTypes=p;export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as n}from
|
|
1
|
+
import{__rest as e,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o,jsxs as t,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as a,useCallback as i,useEffect as u}from"react";import c from"prop-types";import{debounce as s,isEmpty as p}from"lodash";import{Autocomplete as d}from"@material-ui/lab";import{Chip as m,TextField as h,InputAdornment as g,CircularProgress as f,FormControlLabel as C,Checkbox as v}from"@material-ui/core";import{CheckBoxOutlineBlank as S,CheckBox as b,Close as I}from"@material-ui/icons";import y from"../IconButton/index.js";import x from"./components/Listbox.js";import G from"./components/Paper.js";import"./components/RecentSearches.js";import"./components/InputAdornmentLeft.js";import"./components/Groups.js";import k from"./styles.js";var N=o(S,{style:{fontSize:20}}),P=o(b,{style:{fontSize:20}}),R=function(c){var S=c.value,b=c.onChange,R=c.onInputChange,A=c.loading,j=c.options,O=c.placeholder,L=c.defaultSelectedGroup,M=c.disabled,T=c.multiple,z=c.groups,K=c.GroupsComponent,B=c.recentSearchesMaxCount,q=c.dataStorageKey,V=c.RecentSearchesComponent,F=c.dataStorage,H=e(c,["value","onChange","onInputChange","loading","options","placeholder","defaultSelectedGroup","disabled","multiple","groups","GroupsComponent","recentSearchesMaxCount","dataStorageKey","RecentSearchesComponent","dataStorage"]),W=l(S||[]),_=W[0],w=W[1],D=l(""),E=D[0],J=D[1],Q=l(""),U=Q[0],X=Q[1],Y=l(!1),Z=Y[0],$=Y[1],ee=l(L),ne=ee[0],oe=ee[1],te=a(),re=k(),le={popper:re.popper,listbox:re.listbox},ae=null==j?void 0:j.some((function(e){return e.group})),ie=i(s((function(e){return X(e)}),500),[]),ue=function(){J(""),b(null,null)},ce=function(e){var n=z.find((function(n){return n.id===e}));oe(n)},se=function(){oe(null)},pe=function(e){te.current.focus(),J(e)};u((function(){Z&&te.current.focus()}));var de=null==j?void 0:j.sort((function(e,n){var o,t;return null===(o=n.group)||void 0===o?void 0:o.toString().localeCompare(null===(t=e.group)||void 0===t?void 0:t.toString())})),me=p(ne)?de:null==j?void 0:j.filter((function(e){return e.group===ne.name})),he=T&&(null==me?void 0:me.length)===(null==_?void 0:_.length),ge=function(){w(he?[]:me)};u((function(){ie(E),R&&R(E)}),[E]),u((function(){w([])}),[ne]);var fe=function(e,n){"blur"!==n&&$(!1)},Ce=function(){return o(C,{className:re.selectAllCheckbox,onClick:ge,control:o(v,{icon:N,style:{fontSize:20},indeterminate:!he,checkedIcon:P,checked:!0,inputProps:{"aria-label":"All"}}),label:"All"})},ve=i((function(e){return o(G,n({},e,{loading:A,AllSelectComponent:T&&!p(me)&&o(Ce,{}),GroupsComponent:!ne&&ae&&K&&o(K,{onGroupClick:ce,groups:z}),RecentSearchesComponent:V&&o(V,{dataStorage:F,dataStorageKey:q,maxCount:B,isHidden:!p(E),onInputChange:function(e){return J(e)},inputValue:U}),onOutsideClick:fe,onRecentSearchClick:pe}))}),[ne,A,ae,E,he,U]);return o(d,{onOpen:function(){$(!0)},open:Z,onChange:function(e,n){w(n),b(e,n)},fullWidth:!0,disabled:M,onClose:fe,value:_,classes:le,renderInput:function(e){var l;return o(h,n({},e,{inputRef:te,placeholder:O,classes:{root:re.searchInput},InputProps:n(n(n({classes:{root:re.textField}},e.InputProps),H.InputProps),{startAdornment:t(r,{children:[null===(l=H.InputProps)||void 0===l?void 0:l.startAdornment,ne&&o(m,{className:re.selectedGroup,"data-not-migrated-MuiChip":!0,variant:"outlined",label:t("div",n({className:re.selectedGroupLabel},{children:[ne.name,o(I,{id:"removeGroupIcon",className:re.removeIcon,onClick:se})]}))},ne.id),T&&!p(_)&&o("div",n({className:re.selectedLabel},{children:he?"All Selected(".concat(null==_?void 0:_.length,")"):"".concat(null==_?void 0:_.length," Selected")}))]}),endAdornment:t(g,n({position:"end"},{children:[A&&o(f,{color:"primary",size:20}),E&&o(y,n({size:"small",className:re.iconButton,onClick:ue,tooltipProps:{title:"Clear"}},{children:o(I,{className:re.closeIcon})}))]}))})}))},loading:A,options:me,renderGroup:function(e){var r=e.key,l=e.group,a=e.children;return!l||!p(ne)&&T?a:t("div",n({className:re.group},{children:[o(m,{"data-not-migrated-MuiChip":!0,className:re.groupChip,variant:"outlined",label:l},r),a]}))},disableCloseOnSelect:T,multiple:T,renderOption:T&&function(e,n){var r=e.label,l=e.id,a=n.selected;return t("div",{children:[o(v,{disableRipple:!0,icon:N,className:re.checkbox,checkedIcon:P,checked:a}),r]},l)},groupBy:ae&&function(e){return e.group},PaperComponent:ve,ListboxComponent:x,inputValue:E,getOptionLabel:function(e){return e.label},onInputChange:function(e){J((null==e?void 0:e.target.value)||(null==e?void 0:e.target.innerText))},loadingText:o("div",n({className:re.label},{children:"Loading ..."})),noOptionsText:o("div",n({className:re.label},{children:"No Options"}))})},A={value:c.arrayOf(c.shape({})).isRequired,onChange:c.func.isRequired,onInputChange:c.func,loading:c.bool,disabled:c.bool,multiple:c.bool,options:c.array,InputProps:c.shape({startAdornment:c.number}),placeholder:c.string,defaultSelectedGroup:c.shape({id:c.string,name:c.string}),RecentSearchesComponent:c.elementType,recentSearchesMaxCount:c.number,dataStorageKey:c.string,dataStorage:c.shape({}),groups:c.array,GroupsComponent:c.elementType};R.propTypes=A,R.defaultProps={InputProps:null,onInputChange:null,options:[],groups:[],disabled:!1,multiple:!1,loading:!1,placeholder:"Search...",defaultSelectedGroup:null,recentSearchesMaxCount:3,dataStorageKey:"Search:recentSearches",dataStorage:sessionStorage,RecentSearchesComponent:null,GroupsComponent:null};export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as o}from
|
|
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 +1 @@
|
|
|
1
|
-
import{__assign as o}from
|
|
1
|
+
import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as n}from"react";import t from"prop-types";import{GithubPicker as i,ChromePicker as s}from"react-color";import{withStyles as l,Button as a,ClickAwayListener as c}from"@material-ui/core";import u from"@material-ui/icons/ColorLens";import d from"./style.css.js";var m=function(t){var l=t.onChange,m=t.currentValue,f=t.defaultValue,p=t.classes,h=t.condensed,g=t.colors,C=t.lensColor,v=n(!1),F=v[0],b=v[1],y=n(m||f),V=y[0],k=y[1],x=function(){return l(V)};return r("div",o({className:d.colorEditor},{children:[e(a,o({variant:"contained",color:"primary",onClick:function(){return b(!0)},className:p.button,style:{backgroundColor:V,color:C}},{children:e(u,{})})),F&&e(c,o({mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){b(!1),x()}},{children:e("div",o({className:d.colorEditorPickerContainer},{children:h?e(i,{color:V,onChange:function(o){k(o.hex),b(!1),x()},colors:g,triangle:"hide"}):e(s,{color:V,onChange:function(o){k(o.hex),x()}})}))}))]}))},f={currentValue:t.string.isRequired,defaultValue:t.string,condensed:t.bool,onChange:t.func.isRequired,colors:t.arrayOf(t.string),classes:t.shape({button:t.string}).isRequired,lensColor:t.string};m.propTypes=f,m.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var p=l({button:{marginBottom:16}})(m);export{m as ColorEditor,p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import n from"prop-types";import{FormControl as o,RadioGroup as i,FormControlLabel as t,Radio as a}from"@material-ui/core";var l=function(n){var l=n.options,u=n.currentValue,s=n.defaultValue,p=n.onChange,d=void 0===u?s:u;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(i,e({"aria-label":"position",name:"radio_editor",row:!0},{children:l.map((function(e){var n=e.value,o=e.label;return r(t,{onChange:function(){return p(n)},control:r(a,{color:"primary",checked:n===d}),label:o},n)}))}))}))},u={options:n.arrayOf(n.shape({value:n.string,label:n.string})).isRequired,defaultValue:n.oneOfType([n.string,n.number]).isRequired,currentValue:n.oneOfType([n.string,n.number]),onChange:n.func.isRequired};l.propTypes=u,l.defaultProps={currentValue:void 0};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as s}from"react/jsx-runtime";import a from"classnames";import o from"prop-types";import{SIZES as i}from"./constants.js";import l from"./Step.css.js";var t=function(r){var a=r.size;return s("svg",e({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:s("path",{d:"M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z",fill:"white"})}))};function c(o){var c=o.value,d=o.checked,m=o.active,n=o.error,p=o.disabled,b=o.size,v=o.canGoBack,h=o.label,u=o.className;return r("div",e({className:a(l.step,l[b],m&&l.active,n&&l.error,d&&!n&&l.checked,p&&l.disabled,u)},{children:[s("div",e({className:l.stepCircle},{children:!d||n||v?c:s(t,{size:b===i.large?24:16})})),h]}))}var d={value:o.number.isRequired,label:o.node,checked:o.bool,active:o.bool,error:o.bool,disabled:o.bool,size:o.string,canGoBack:o.bool,className:o.string};c.propTypes=d,c.defaultProps={checked:!1,active:!1,error:!1,disabled:!1,size:i.medium,canGoBack:!0,label:"",className:""};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import t from"prop-types";import s from"./Step.js";import p from"./StepsWrapper.js";import{SIZES as i}from"./constants.js";function a(t){var i=t.steps,a=t.activeStep,o=t.size;return r(p,{children:i.map((function(t){return r(s,e({checked:t.value<a,active:t.value===a,size:o,disabled:t.disabled,canGoBack:t.canGoBack},t),t.value)}))})}var o={steps:t.arrayOf(t.shape(s.propTypes)).isRequired,activeStep:t.number,size:t.string};a.propTypes=o,a.defaultProps={activeStep:void 0,size:i.medium};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as r}from
|
|
1
|
+
import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as s}from"react/jsx-runtime";import e from"prop-types";import o from"classnames";import a from"./StepsWrapper.css.js";function t(e){var t=e.children,i=e.className;return s("div",r({className:o(a.container,i)},{children:t}))}var i={children:e.node.isRequired,className:e.string};t.propTypes=i,t.defaultProps={className:""};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from
|
|
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};
|
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as o,__assign as t}from
|
|
1
|
+
import{__rest as o,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as a,Tabs as e}from"@material-ui/core";import i from"classnames";import l from"prop-types";var n=a((function(o){return{root:{"& .MuiTab-root":{paddingLeft:16,paddingRight:16,"&.Mui-disabled":{color:o.palette.primary.text1}}},rootCompact:{"& .MuiTab-root":{minWidth:0}},root_filled:{backgroundColor:o.palette.background.b9,boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.2)","& .MuiTab-root":{color:o.palette.primary.text6,"&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)",color:o.palette.primary.contrastText,opacity:1}}},root_default:{minHeight:42,"& .MuiTab-root":{color:o.palette.primary.contrastText,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{color:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"}}},root_filledTab:{minHeight:42,"& .MuiTab-root":{borderRadius:4,color:o.palette.primary.contrastText,fontSize:16,minHeight:42,opacity:1,textTransform:"none","&.Mui-selected":{backgroundColor:o.palette.primary.main},"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.15)"},"&.Mui-disabled":{color:o.palette.primary.text9}}},tabIndicatorRoot:{height:4,borderTopLeftRadius:4,borderTopRightRadius:4},tabIndicatorFilledTab:{display:"none"},scrollButtonsRoot:{backgroundColor:o.palette.background.b9,height:48,zIndex:1,"&.Mui-disabled":{},"&:first-of-type":{"&::after":{background:"linear-gradient(to right, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",left:40,position:"absolute",width:16,zIndex:1}},"&:last-of-type":{"&::before":{background:"linear-gradient(to left, rgba(60, 59, 59, 0.8) 39.13%, rgba(58, 58, 58, 0) 100%)",content:'""',display:"block",height:"100%",position:"absolute",right:40,width:16,zIndex:1}},"& .MuiSvgIcon-root":{color:o.palette.primary.text6}}}})),d=function(a){var l,d,c,p=a.compact,s=a.type,b=o(a,["compact","type"]),u=n(),m=b.classes,g=b.TabIndicatorProps;return r(e,t({},b,{classes:t(t({},m),{root:i(null==m?void 0:m.root,u.root,u["root_".concat(s)],(l={},l[u.rootCompact]=p,l)),scrollButtons:i(null==m?void 0:m.scrollButtons,u.scrollButtonsRoot)}),indicatorColor:"primary",TabIndicatorProps:t(t({},g),{classes:{root:i(null===(c=null==g?void 0:g.classes)||void 0===c?void 0:c.root,u.tabIndicatorRoot,(d={},d[u.tabIndicatorFilledTab]="filledTab"===s,d))}})}))};d.propTypes={type:l.oneOf(["default","filled","filledTab"]),compact:l.bool},d.defaultProps={type:"default",compact:!1};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from
|
|
1
|
+
import{__rest as e,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,jsxs as o,Fragment as i}from"react/jsx-runtime";import{withStyles as n,Tooltip as a,makeStyles as p}from"@material-ui/core";import l from"prop-types";import s from"classnames";import m from"@material-ui/icons/Language";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import{useDevCenterRouter as d}from"../DevCenter/DevCenterRouterContext/effects/useDevCenterRouter.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";var c=n({tooltip:{padding:"4px 8px",display:"flex",alignItems:"center"}})(a),v=p((function(e){return{root:{color:e.palette.primary.main,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px",textDecoration:"none","&:hover":{color:e.palette.primary.main,textDecoration:"underline"},"&:visited":{color:e.palette.primary.main}},disabled:{color:e.palette.primary.dark,fontSize:"inherit",lineHeight:"inherit",letterSpacing:"0.15px"},icon:{marginRight:8},buttonLink:{border:"none",background:"none",padding:0,cursor:"pointer"}}})),u=function(n){var p=n.TooltipProps,l=n.children,u=n.className,C=n.disabled,h=n.showTooltip,b=n.tooltipText,f=n.target,D=n.href,g=e(n,["TooltipProps","children","className","disabled","showTooltip","tooltipText","target","href"]),x=v(),j=d();if(C)return r(a,t({title:"Disabled",placement:"bottom-start"},{children:r("span",t({className:s(x.disabled,u)},g,{children:l}))}));var A=j&&"_self"===f?r("button",t({tabIndex:0,role:"link",className:s(x.buttonLink,x.root,u),onClick:function(e){e.metaKey||e.ctrlKey?window.open(D,"_blank"):j.push(D)}},g,{children:l})):r("a",t({className:s(x.root,u),target:f,href:D,rel:"noopener noreferrer"},g,{children:l}));return h||b?r(c,t({title:o(i,{children:[r(m,{fontSize:"small",className:x.icon}),b||D]}),placement:"bottom-start"},p,{children:A})):A};l.node.isRequired,l.string.isRequired,l.string,l.oneOf(["_self","_blank"]),l.bool,l.bool,l.string,l.shape({}),u.propTypes={children:l.node.isRequired,href:l.string.isRequired,className:l.string,target:l.oneOf(["_self","_blank"]),disabled:l.bool,showTooltip:l.bool,tooltipText:l.string,TooltipProps:l.shape({})},u.defaultProps={TooltipProps:{},className:"",target:"_blank",disabled:!1,showTooltip:!1,tooltipText:""};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from
|
|
1
|
+
import{__assign as e,__spreadArray as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r,Fragment as n,jsxs as i}from"react/jsx-runtime";import{useMemo as o,useEffect as a}from"react";import l from"prop-types";import s from"classnames";import{Table as u,Column as c,SortDirection as d}from"react-virtualized";import{withStyles as m,IconButton as h,Typography as f,Tooltip as g}from"@material-ui/core";import{Settings as p,Sort as b,ArrowUpward as y,ArrowDownward as w}from"@material-ui/icons";import{getUnitDisplay as S}from"../../utils/convert.js";function R(e,t){var r=e.find((function(e){return e.key===t}))||{},n=r.unitType,i=r.customUnit;return i?"(".concat(i,")"):n?"(".concat(S(n),")"):""}function x(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelClassName||""}function v(e,t){return(e.find((function(e){return e.key===t}))||{}).headerLabelUnitClassName||""}var C=function(l){var m=l.columns,S=l.data,C=l.useColumnSetting,_=l.useFixedColumnWidth,z=l.onOpenSettingDlg,k=l.classes,T=l.width,q=l.height,I=l.headerHeight,N=l.rowHeight,L=l.showTopSettingIcon,D=l.customMuiStyles,H=l.isTopSettingIconShownAlways,B=l.CustomCellRenderer,W=l.customRowStyle,O=l.sort,j=l.sortBy,A=l.sortDirection,F=e(e({},k),D),K=o((function(){return{label:"",key:"setting",width:C?25:0}}),[C]),V=o((function(){return m.filter((function(e){return e.show}))}),[m]),M=o((function(){return C?t(t([],V,!0),[K],!1):V}),[V,C,K]),E=o((function(){var e;if(T<=0)return{};var t=((e={})[K.key]=K.width,e),r=[];return V.filter((function(e){return Number.isFinite(e.width)})).forEach((function(e){t[e.key]=e.width-1,r.push(e.width-1)})),V.filter((function(e){return!Number.isFinite(e.width)})).forEach((function(e){var n=r.reduce((function(e,t){return e+t}),0),i=Math.floor((T-n-K.width)/(V.length-r.length)),o=e.minWidth||65,a=i<o?o:i;t[e.key]=a-1,r.push(a-1)})),t}),[T,V,K]),G=o((function(){return Object.values(E).reduce((function(e,t){return e+t}),0)}),[E]),U=H||G-12.5>=T;a((function(){L(U)}),[U]);var P=function(t){var n=t.label,o=t.dataKey,a=j||A||O;return o===K.key?U?null:r(h,e({size:"small","aria-label":"customize columns",className:F.settingIcon,onClick:z},{children:r(p,{fontSize:"inherit"})})):i(f,e({variant:"body2",className:s(F.headerLabel,x(m,o))},{children:[n," ",r("span",e({className:s(F.unitLabel,v(m,o))},{children:R(m,o)})),a&&o!==j&&r(g,e({title:"Sort A-Z"},{children:r(b,{fontSize:"small",className:k.sortIcon})})),a&&o===j&&(A===d.ASC?r(y,{fontSize:"small",className:k.sortIcon}):r(w,{fontSize:"small",className:k.sortIcon}))]}))},Z=function(t){var n=t.dataKey,i=t.rowData;return B?r(B,{columnKey:n,value:i[n]}):r(f,e({variant:"body2",className:F.cellData},{children:i[n]}))};return r(n,{children:r(u,e({width:_?G:T,height:q,headerHeight:I,rowClassName:function(e){var t,r=e.index;return s(((t={})[F.oddRow]=r%2==1,t))},rowHeight:N,rowCount:S.length,rowGetter:function(e){var t=e.index;return S[t]},rowStyle:W||{},className:F.table,sort:O,sortBy:j,sortDirection:A},{children:M.map((function(e){return r(c,{width:E[e.key]||0,dataKey:e.key,label:e.label,headerRenderer:P,cellRenderer:Z},e.key)}))}))})},_={columns:l.arrayOf(l.shape({show:l.bool,minWidth:l.number,width:l.number,key:l.string,label:l.string})).isRequired,data:l.arrayOf(l.shape({})).isRequired,useColumnSetting:l.bool.isRequired,useFixedColumnWidth:l.bool.isRequired,headerHeight:l.number.isRequired,rowHeight:l.number.isRequired,width:l.number.isRequired,height:l.number.isRequired,onOpenSettingDlg:l.func.isRequired,showTopSettingIcon:l.func.isRequired,sort:l.func,sortBy:l.string,sortDirection:l.string,classes:l.shape({sortIcon:l.string}).isRequired,customMuiStyles:l.shape({table:l.string,oddRow:l.string,headerLabel:l.string,cellData:l.string,unitLabel:l.string,settingIcon:l.string}).isRequired,isTopSettingIconShownAlways:l.bool.isRequired,CustomCellRenderer:l.func,customRowStyle:l.func};C.propTypes=_,C.defaultProps={CustomCellRenderer:null,customRowStyle:null,sort:null,sortBy:null,sortDirection:null};var z=m((function(e){return{table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{borderBottom:e.isLightTheme?"1px solid rgba(224, 224, 224, 1)":"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},oddRow:{backgroundColor:e.isLightTheme?"rgba(189, 189, 189, 0.1)":"#303030"},headerLabel:{lineHeight:"14px",fontSize:"12px",fontStyle:"normal",letterSpacing:"-0.25px",display:"flex",alignItems:"center",flexWrap:"wrap"},cellData:{lineHeight:"14px",fontSize:"12px",fontWeight:"normal",fontStyle:"normal",letterSpacing:"0.15px"},unitLabel:{fontSize:"10px",opacity:.5},settingIcon:{padding:"3px",fontSize:"20px"},sortIcon:{fontSize:"16px"}}}))(C);export{C as VirtualizedTableComponent,z as default};
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "0.52.0-
|
|
3
|
+
"version": "0.52.0-6",
|
|
4
4
|
"description": "Shared components/utils for Corva ui projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"corva-ui"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
87
87
|
"@babel/preset-env": "^7.12.11",
|
|
88
88
|
"@babel/preset-react": "^7.12.10",
|
|
89
|
-
"@corva/dc-platform-shared": "0.1.7-
|
|
89
|
+
"@corva/dc-platform-shared": "^0.1.7-5",
|
|
90
90
|
"@corva/eslint-config-browser": "^0.0.4",
|
|
91
91
|
"@date-io/moment": "1.3.13",
|
|
92
92
|
"@material-ui/core": "4.11.2",
|
package/utils/index.d.ts
CHANGED
|
@@ -58,7 +58,6 @@ import * as mobileDetect from "./mobileDetect";
|
|
|
58
58
|
import * as nativeMessages from "./nativeMessages";
|
|
59
59
|
import * as notifications from "./notifications";
|
|
60
60
|
import * as permissions from "./permissions";
|
|
61
|
-
import * as recaptcha from "./recaptcha";
|
|
62
61
|
import { removeNotification } from "./notificationToasts";
|
|
63
62
|
import * as reports from "./reports";
|
|
64
63
|
import * as rollbar from "./rollbar";
|
|
@@ -75,5 +74,5 @@ import * as torqueAndHookloadUtils from "./torqueAndHookloadUtils";
|
|
|
75
74
|
import { updateLocalStorageItem } from "./localStorage";
|
|
76
75
|
export const updateUserUnits: ({ userUnits, companyUnits }: any) => void;
|
|
77
76
|
import { sharedDCStore } from "./sharedDCStore";
|
|
78
|
-
export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions,
|
|
77
|
+
export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, loadable, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, rollbar, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showWarningNotification, showToast, sqlParser, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, sharedDCStore };
|
|
79
78
|
//# sourceMappingURL=index.d.ts.map
|
package/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;AA6FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
|
package/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import*as t from"./StageDesignVActualUtils.js";export{t as StageDesignVActualUtils};import*as o from"./alerts.js";export{o as alerts};import*as e from"./audio.js";export{e as audio};import*as s from"./casing/index.js";export{s as casing};import*as a from"./chartSeries.js";export{a as chartSeries};import*as i from"./completion.js";export{i as completion};import*as p from"./components.js";import{convertArray as m,convertValue as n,getAllUnitTypes as f,getDefaultImperialUnit as c,getDefaultUnits as l,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as b,getUnitSystem as U,updateUserUnits as d,getUserUnits as v,subscribeForUserUnitsUpdates as h,convertImmutables as O,convertImmutablesByBatch as D,getUniqueUnitsByType as S}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as P from"./csvExport.js";export{P as csvExport};import*as C from"./devcenter.js";export{C as devcenter};import*as N from"./drillstring/index.js";export{N as drillstring};import*as T from"./DrillstringUtils.js";export{T as drillstringUtils};import*as I from"./FluidCheckUtils.js";export{I as fluidCheckUtils};import*as k from"./formatting.js";export{k as formatting};import*as A from"./ga.js";export{A as ga};import*as E from"./goals.js";export{E as goals};import*as B from"./lasParser.js";export{B as lasParser};import*as F from"./loadable.js";export{F as loadable};import*as K from"./main.js";export{K as main};import*as q from"./mapUnits.js";export{q as mapUnits};import*as V from"./mapbox.js";import*as J from"./metrics/index.js";export{J as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as H from"./nativeMessages.js";export{H as nativeMessages};import*as M from"./notifications.js";export{M as notifications};import*as R from"./feed.js";export{R as feed};import*as W from"./permissions.js";export{W as permissions};import*as z from"./reports.js";export{z as reports};import*as G from"./rollbar.js";export{G as rollbar};import*as Q from"./sqlParser.js";export{Q as sqlParser};import*as X from"./time.js";export{X as time};import*as Y from"./torqueAndHookloadUtils.js";export{Y as torqueAndHookloadUtils};import*as Z from"./accuracy.js";export{Z as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showNeutralNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{showToast}from"./devcenterToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as $ from"./dashboardReports.js";export{$ as dashboardReports};import*as _ from"./apps.js";export{_ as apps};import*as rr from"./themeVariables.js";export{rr as themeVariables};import*as tr from"./env.js";export{tr as env};import*as or from"./fileExtension.js";export{or as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as er from"./bha.js";export{er as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";function sr(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var ar={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function ir(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?sr(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sr(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),ar)}var pr=m,mr=n,nr=f,fr=c,cr=l,lr=j,jr=x,xr=g,gr=u,ur=y,yr=b,br=U,Ur=d,dr=v,vr=h,hr=O,Or=D,Dr=S,Sr=ir(V),wr=ir(p);export{wr as components,pr as convertArray,hr as convertImmutables,Or as convertImmutablesByBatch,mr as convertValue,nr as getAllUnitTypes,fr as getDefaultImperialUnit,cr as getDefaultUnits,Dr as getUniqueUnitsByType,lr as getUnitDescription,jr as getUnitDisplay,xr as getUnitPlural,gr as getUnitPreference,yr as getUnitSingular,br as getUnitSystem,ur as getUnitsByType,dr as getUserUnits,Sr as mapbox,vr as subscribeForUserUnitsUpdates,Ur as updateUserUnits};
|
package/utils/recaptcha.d.ts
DELETED
package/utils/recaptcha.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recaptcha.d.ts","sourceRoot":"","sources":["../../src/utils/recaptcha.js"],"names":[],"mappings":"AAQA,4CAKC;AATD,2HAE0B"}
|
package/utils/recaptcha.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=(process.env.REACT_APP_API_URL||"").includes("api.corva.ai")?"6LcD9rIiAAAAABAlTq0c4mpbiwdcEN10wDbqcYT4":"6LcdL7IiAAAAAAgBjpeKEf_b_T-mqDAjOvuNOjCz";function e(){var e=document.createElement("script");e.async=!0,e.src="https://www.google.com/recaptcha/enterprise.js?render=".concat(c),document.body.appendChild(e)}export{c as GOOGLE_RECAPTCHA_KEY,e as initializeRecaptcha};
|