@corva/ui 0.61.0-10 → 0.61.0-12
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/cjs-bundle/components/Chart/components/AxisOverlay.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/cjs-bundle/components/EmptyState/EmptyState.js +1 -1
- package/cjs-bundle/components/EmptyState/constants.js +1 -1
- package/cjs-bundle/components/EmptyState/styles.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/cjs-bundle/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
- package/components/Chart/components/AxisOverlay.d.ts +1 -2
- package/components/Chart/components/AxisOverlay.d.ts.map +1 -1
- package/components/Chart/components/AxisOverlay.js +1 -1
- package/components/Chart/options.d.ts +4 -0
- package/components/Chart/options.d.ts.map +1 -1
- package/components/DevCenter/AppHeader/AppHeaderStyles.d.ts +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +2 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/EmptyState/EmptyState.d.ts +35 -3
- package/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/components/EmptyState/EmptyState.js +1 -1
- package/components/EmptyState/constants.d.ts +32 -0
- package/components/EmptyState/constants.d.ts.map +1 -1
- package/components/EmptyState/constants.js +1 -1
- package/components/EmptyState/styles.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +2 -5
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.d.ts +3 -3
- package/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts +4 -1
- package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
- package/components/OffsetWellButton/OffsetWellButton.js +1 -1
- package/components/Table/TableCell/TableCell.js +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/objectWithoutProperties";import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import c from"@babel/runtime/helpers/getPrototypeOf";import
|
|
1
|
+
import r from"@babel/runtime/helpers/objectWithoutProperties";import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/assertThisInitialized";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import c from"@babel/runtime/helpers/getPrototypeOf";import a from"@babel/runtime/helpers/defineProperty";import{Component as l}from"react";import p from"prop-types";import s from"./DevCenterAppErrorView/DevCenterAppErrorView.js";import{jsx as u}from"react/jsx-runtime";var f=["ErrorView","children"];function m(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function h(r){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}();return function(){var t,o=c(r);if(e){var n=c(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return i(this,t)}}var b=function(i){n(p,l);var c=h(p);function p(){var r;e(this,p);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r=c.call.apply(c,[this].concat(n)),a(o(r),"state",{hasInternalError:!1}),r}return t(p,[{key:"componentDidCatch",value:function(r){this.setState({hasInternalError:!0}),console.error(r),window.Rollbar&&window.Rollbar.error(r)}},{key:"render",value:function(){if(!this.state.hasInternalError)return this.props.children;var e=this.props,t=e.ErrorView;e.children;var o=r(e,f);return u(t,function(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){a(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}({},o))}}],[{key:"getDerivedStateFromError",value:function(){return{hasInternalError:!0}}}]),p}();b.propTypes={children:p.node.isRequired,ErrorView:p.node},b.defaultProps={ErrorView:s};export{b as default};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare type OffsetWellButtonProps = PropTypes.InferProps<typeof offsetWellButtonPropTypes>;
|
|
4
4
|
declare const OffsetWellButton: {
|
|
5
|
-
({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, }: OffsetWellButtonProps): JSX.Element;
|
|
5
|
+
({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, isTooltipDisabled, }: OffsetWellButtonProps): JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
8
|
wells: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -13,6 +13,7 @@ declare const OffsetWellButton: {
|
|
|
13
13
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
14
|
expanded: PropTypes.Requireable<boolean>;
|
|
15
15
|
offsetWellsLimited: PropTypes.Requireable<boolean>;
|
|
16
|
+
isTooltipDisabled: PropTypes.Requireable<boolean>;
|
|
16
17
|
};
|
|
17
18
|
defaultProps: {
|
|
18
19
|
onExpand: any;
|
|
@@ -20,6 +21,7 @@ declare const OffsetWellButton: {
|
|
|
20
21
|
wells: any[];
|
|
21
22
|
disabled: boolean;
|
|
22
23
|
offsetWellsLimited: boolean;
|
|
24
|
+
isTooltipDisabled: boolean;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
declare const offsetWellButtonPropTypes: {
|
|
@@ -32,6 +34,7 @@ declare const offsetWellButtonPropTypes: {
|
|
|
32
34
|
onExpand: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
35
|
expanded: PropTypes.Requireable<boolean>;
|
|
34
36
|
offsetWellsLimited: PropTypes.Requireable<boolean>;
|
|
37
|
+
isTooltipDisabled: PropTypes.Requireable<boolean>;
|
|
35
38
|
};
|
|
36
39
|
export default OffsetWellButton;
|
|
37
40
|
//# sourceMappingURL=OffsetWellButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;+FAQnB,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;CAgFrC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;;CAa9B,CAAC;AAaF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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 i}from"react";import n from"prop-types";import
|
|
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 i}from"react";import n from"prop-types";import l from"classnames";import{makeStyles as a,Typography as r,Tooltip as s}from"@material-ui/core";import{Edit as d,Info as p,ExpandLess as c,ExpandMore as f}from"@material-ui/icons";import m from"../IconButton/index.js";var u=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",alignItems:"center"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:o.info.light},infoTooltip:{maxWidth:"264px"}}})),b=function(n){var a=n.onClick,b=n.wells,x=n.disabled,h=n.expanded,g=n.onExpand,v=n.offsetWellsLimited,y=n.isTooltipDisabled,C=i(!1),T=C[0],w=C[1],I=u(),W=b.length,k=!(!W||!g),E=o("div",e({className:l(I.offsetContainer,x&&I.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?w(!1):w(!0)},onMouseLeave:function(){w(!1)}},{children:[o(r,e({className:l(I.offsetText,T&&I.isActive)},{children:["Offset Wells (",W,")"]})),t(m,e({className:l(I.primaryIcon,T&&I.hoveredContainer),color:"primary",size:"medium"},{children:t(d,{})}))]}));return o("div",e({className:I.buttons},{children:[v&&t(s,e({title:"Offset wells list wasn't populated completely due to technical limitations of the app.",classes:{tooltip:I.infoTooltip}},{children:t(p,{className:I.infoIcon})})),t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:E})),k&&t(m,e({tooltipProps:!y&&{title:h?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),g()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(h?c:f,{"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,offsetWellsLimited:n.bool,isTooltipDisabled:n.bool};b.propTypes=x,b.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1,isTooltipDisabled:!1};export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as l}from"react";import{makeStyles as o,TableCell as i}from"@material-ui/core";import{KeyboardArrowLeft as n,KeyboardArrowRight as a}from"@material-ui/icons";import c from"classnames";import s from"../../IconButton/index.js";import{Tooltip as p}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";var u=["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","cellWidth","children"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?b(Object(l),!0).forEach((function(r){e(t,r,l[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):b(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var f=o((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),y=function(e){var o,b=e.isExpanded,y=e.setIsExpanded,C=e.tooltipTitle,x=e.collapsibleHeader,g=e.collapsibleBody,j=e.maxCellWidth,O=e.maxCharsNumberFromStart,E=e.maxCharsNumberFromEnd,k=e.cellWidth,v=e.children,W=r(e,u),P=W.stickyCell&&!W.emptyCell,w=f({isExpanded:b,cellWidth:k,maxCellWidth:j}),N=l(!1),T=t(N,2),I=T[0],S=T[1];return m(i,h(h({},W),{},{className:c(x&&w.collapseHeader,P&&w.stickyCell,W.emptyCell&&w.stickyEmptyCell,P&&"stickyCell",W.emptyCell&&"stickyEmptyCell",W.className),children:[x&&m("div",{className:w.tableCellWrapper,children:[v,d(s,{className:w.iconButton,onClick:function(){S(!1),y(!b)},tooltipProps:{title:b?"Collapse":"Expand",open:I,disableHoverListener:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},children:d(b?n:a,{})})]}),g&&d(p,{title
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useState as l}from"react";import{makeStyles as o,TableCell as i}from"@material-ui/core";import{KeyboardArrowLeft as n,KeyboardArrowRight as a}from"@material-ui/icons";import c from"classnames";import s from"../../IconButton/index.js";import{Tooltip as p}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{jsxs as m,jsx as d}from"react/jsx-runtime";var u=["isExpanded","setIsExpanded","tooltipTitle","collapsibleHeader","collapsibleBody","maxCellWidth","maxCharsNumberFromStart","maxCharsNumberFromEnd","cellWidth","children"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function h(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?b(Object(l),!0).forEach((function(r){e(t,r,l[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):b(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var f=o((function(e){return{stickyCell:{position:"sticky",left:0,zIndex:2,background:e.palette.background.b6},stickyEmptyCell:{position:"sticky",right:0,zIndex:2},collapseHeader:{width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},tableCellWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between",width:function(e){var t=e.isExpanded,r=e.maxCellWidth,l=e.cellWidth;return t?r:l}},iconButton:{padding:0,fontSize:16,"&:hover":{backgroundColor:"transparent"}}}})),y=function(e){var o,b=e.isExpanded,y=e.setIsExpanded,C=e.tooltipTitle,x=e.collapsibleHeader,g=e.collapsibleBody,j=e.maxCellWidth,O=e.maxCharsNumberFromStart,E=e.maxCharsNumberFromEnd,k=e.cellWidth,v=e.children,W=r(e,u),P=W.stickyCell&&!W.emptyCell,w=f({isExpanded:b,cellWidth:k,maxCellWidth:j}),N=l(!1),T=t(N,2),I=T[0],S=T[1];return m(i,h(h({},W),{},{className:c(x&&w.collapseHeader,P&&w.stickyCell,W.emptyCell&&w.stickyEmptyCell,P&&"stickyCell",W.emptyCell&&"stickyEmptyCell",W.className),children:[x&&m("div",{className:w.tableCellWrapper,children:[v,d(s,{className:w.iconButton,onClick:function(){S(!1),y(!b)},tooltipProps:{title:b?"Collapse":"Expand",open:I,disableHoverListener:!0,onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)}},children:d(b?n:a,{})})]}),g&&d(p,{title:b?"":C,children:d("div",{children:b?v:(o=C,o.length>O+E?"".concat(o.substring(0,O)," ... ").concat(o.substring(o.length-E)):o)})}),!x&&!g&&v]}))};export{y as TableCell};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corva/ui",
|
|
3
|
-
"version": "0.61.0-
|
|
3
|
+
"version": "0.61.0-12",
|
|
4
4
|
"description": "Shared components/utils for Corva ui projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"corva-ui"
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"@babel/preset-react": "^7.12.10",
|
|
90
90
|
"@corva/eslint-config-browser": "^0.0.4",
|
|
91
91
|
"@date-io/moment": "1.3.13",
|
|
92
|
+
"@krakenjs/zoid": "^10.2.1",
|
|
92
93
|
"@material-ui/core": "4.11.2",
|
|
93
94
|
"@material-ui/icons": "4.9.1",
|
|
94
95
|
"@material-ui/lab": "4.0.0-alpha.57",
|
|
@@ -151,6 +152,7 @@
|
|
|
151
152
|
"react-cursor-position": "3.0.3",
|
|
152
153
|
"react-dom": "17.0.1",
|
|
153
154
|
"react-draggable": "4.2.0",
|
|
155
|
+
"react-draggable-list": "3.7.0",
|
|
154
156
|
"react-image-lightbox": "5.1.0",
|
|
155
157
|
"react-infinite-scroller": "1.2.4",
|
|
156
158
|
"react-mentions": "3.3.1",
|
|
@@ -163,6 +165,7 @@
|
|
|
163
165
|
"react-sortable-hoc": "0.6.8",
|
|
164
166
|
"react-virtualized": "9.21.2",
|
|
165
167
|
"react-virtualized-auto-sizer": "1.0.2",
|
|
168
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
166
169
|
"rollup-plugin-copy": "^3.4.0",
|
|
167
170
|
"sass": "^1.51.0",
|
|
168
171
|
"semver": "7.2.1",
|
|
@@ -182,9 +185,7 @@
|
|
|
182
185
|
"webpack-cli": "3.3.6",
|
|
183
186
|
"webpack-dev-server": "3.11.1",
|
|
184
187
|
"webpack-manifest-plugin": "2.2.0",
|
|
185
|
-
"webpack-merge": "5.7.2"
|
|
186
|
-
"react-draggable-list": "3.7.0",
|
|
187
|
-
"@krakenjs/zoid": "^10.2.1"
|
|
188
|
+
"webpack-merge": "5.7.2"
|
|
188
189
|
},
|
|
189
190
|
"devDependencies": {
|
|
190
191
|
"@babel/preset-typescript": "^7.18.6",
|