@corva/ui 0.101.0-0 → 0.101.0-2
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/AxisDropdown.js +1 -1
- package/cjs-bundle/componentsV2/AvatarGroup/AvatarGroup.js +1 -1
- package/cjs-bundle/componentsV2/AvatarGroup/AvatarGroup.scss.js +1 -1
- package/cjs-bundle/utils/charts/constants.js +1 -0
- package/cjs-bundle/utils/charts/getChartHorizontalAxis.js +1 -0
- package/cjs-bundle/utils/charts/getChartVerticalAxis.js +1 -0
- package/cjs-bundle/utils/index.js +1 -1
- package/components/Chart/components/AxisDropdown.d.ts.map +1 -1
- package/components/Chart/components/AxisDropdown.js +1 -1
- package/componentsV2/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/componentsV2/AvatarGroup/AvatarGroup.js +1 -1
- package/componentsV2/AvatarGroup/AvatarGroup.scss.js +1 -1
- package/package.json +1 -1
- package/utils/charts/constants.d.ts +18 -0
- package/utils/charts/constants.d.ts.map +1 -0
- package/utils/charts/constants.js +1 -0
- package/utils/charts/getChartHorizontalAxis.d.ts +4 -0
- package/utils/charts/getChartHorizontalAxis.d.ts.map +1 -0
- package/utils/charts/getChartHorizontalAxis.js +1 -0
- package/utils/charts/getChartVerticalAxis.d.ts +25 -0
- package/utils/charts/getChartVerticalAxis.d.ts.map +1 -0
- package/utils/charts/getChartVerticalAxis.js +1 -0
- package/utils/charts/index.d.ts +3 -0
- package/utils/charts/index.d.ts.map +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("classnames"),s=require("@material-ui/core"),n=require("../../../icons/iconParkIcons.js");require("../../../icons/customIcons/icons/AddMessage.js"),require("../../../icons/customIcons/icons/Attention.js"),require("../../../icons/customIcons/icons/Collapse.js"),require("../../../icons/customIcons/icons/Dashboard.js"),require("../../../icons/customIcons/icons/Expand.js"),require("../../../icons/customIcons/icons/FolderClosed.js"),require("../../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../../icons/customIcons/icons/FolderOpened.js"),require("../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../icons/customIcons/icons/Search.js"),require("../../../icons/customIcons/icons/Wellhub.js"),require("../../../icons/customIcons/icons/MultiRuler.js"),require("../../../icons/customIcons/icons/Checkbox.js"),require("../../../icons/customIcons/icons/CheckboxChecked.js"),require("../../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../../icons/customIcons/icons/Radio.js"),require("../../../icons/customIcons/icons/RadioChecked.js"),require("../../../icons/customIcons/icons/SimulFrac.js"),require("../../../icons/customIcons/icons/ZipperFrac.js"),require("../../../icons/customIcons/icons/CautionFilled.js"),require("../../../icons/customIcons/icons/MoreApp.js");var c=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=i(e),u=i(r),a=i(o),l=["className","classes","value","onChange","unit","options"];function m(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,s)}return o}function p(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?m(Object(o),!0).forEach((function(r){t.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var j=s.makeStyles((function(e){var r=e.palette;return{selectContainer:{color:r.primary.contrastText,background:"transparen !important","& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon > svg > path":{fill:r.primary.text6,stroke:r.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:r.primary.main,stroke:r.primary.main},"&:hover":{"& .MuiSelect-icon > svg > path":{fill:r.primary.contrastText,stroke:r.primary.contrastText}},"&:active":{"& .MuiSelect-icon > svg > path":{fill:r.primary.main,stroke:r.primary.main}}},selectRoot:{fontSize:16,paddingTop:0,paddingBottom:0,"&:focus":{backgroundColor:"transparent"}},unit:{fontSize:12,lineHeight:0,color:r.primary.text7,marginLeft:4}}}));module.exports=function(e){var r=e.className,o=e.classes,i=e.value,t=e.onChange,m=e.unit,d=e.options,f=u.default(e,l),h=j();return c.jsx(s.Select,p(p({className:a.default(h.selectContainer,r),value:i,classes:p({root:h.selectRoot},o),onChange:t,disableUnderline:!0,IconComponent:function(e){return c.jsx(n.DownOneIcon,p({theme:"filled",fill:"#BDBDBD",size:16},e))},renderValue:function(e){return c.jsxs(c.Fragment,{children:[e,m&&c.jsxs("span",{className:h.unit,children:["(",m,")"]})]})}},f),{},{children:null==d?void 0:d.map((function(e){var r=e.label,o=e.value;return c.jsx(s.MenuItem,{value:o,children:r},o)}))}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react"),s=require("react
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),s=require("react"),a=require("classnames"),r=require("../Avatar/Avatar.js"),i=require("../Avatar/constants.js"),o=require("../Tooltip/Tooltip.js"),l=require("./AvatarGroup.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(a);exports.AvatarGroup=function(a){var n=a.testId,c=a.className,d=a.max,m=void 0===d?5:d,v=a.items,p=void 0===v?[]:v,f=a.size,j=void 0===f?40:f,x=a.disableTooltips,q=m<1?1:m,b=s.useMemo((function(){return{"--size":"".concat(j,"px"),fontSize:"".concat(i.getFontSize(j),"px")}}),[j]);return t.jsxs("div",{className:u.default(c,l.root),"data-testid":n,style:b,children:[p.slice(0,q).map((function(a,i){var n=s.createElement(r.Avatar,e.__assign({},a,{size:j,key:i,className:u.default(l.masked,a.className)}));return t.jsx(o.Tooltip,{title:a.name,disabled:x,children:n},i)})),p.length>q&&t.jsxs("div",{className:u.default(l.masked,l.more),children:["+",p.length-q]})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".AvatarGroup_root__f26bg{align-items:center;display:inline-flex;flex-flow:row
|
|
1
|
+
"use strict";require('./../../ext-esm/style-inject/dist/style-inject.es.js')(".AvatarGroup_root__f26bg{align-items:center;display:inline-flex;flex-flow:row nowrap}.AvatarGroup_masked__eVVHr{position:relative}.AvatarGroup_masked__eVVHr:not(:first-child){margin-left:-8px}.AvatarGroup_masked__eVVHr:not(:last-child){mask:radial-gradient(calc(var(--size)/2 + 1px) at calc(100% + var(--size)/2 - 8px) 50%,transparent 98%,#000)}.AvatarGroup_more__Qg2Si{background:var(--palette-background-b-9);border-radius:50%;color:var(--palette-primary-text-6);font-weight:500;height:var(--size);line-height:var(--size);text-align:center;width:var(--size)}"),module.exports={spacing:"8",root:"AvatarGroup_root__f26bg",masked:"AvatarGroup_masked__eVVHr",more:"AvatarGroup_more__Qg2Si"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CommonAxisLabelStyle={color:"#9E9E9E",fontFamily:"Roboto",fontSize:"11px"},exports.CommonAxisProps={gridLineWidth:1,gridLineColor:"#333333",zIndex:1e3,lineColor:"#333333",lineWidth:1},exports.CommonAxisTitleStyle={fontFamily:"Roboto",fontSize:"14px",cursor:"default",color:"#9E9E9E"},exports.getNonEmptyTitle=function(o){return o||""};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("./constants.js");exports.getChartHorizontalAxis=function(t){var n=void 0===t?{}:t,o=n.spacing,s=void 0===o?"normal":o,r=n.title,a=n.opposite,l=void 0!==a&&a,m=n.offset,d=function(e,i){return i?"normal"===e?{y:-12,margin:-18}:{y:-11,margin:-37}:"normal"===e?{y:13,margin:-6}:{y:10,margin:-25}}(s,l),g=d.y,y=d.margin;return e.__assign(e.__assign({},i.CommonAxisProps),{minPadding:0,maxPadding:.04,tickWidth:0,labels:{y:l?-8:16,padding:4,style:i.CommonAxisLabelStyle},title:{x:0,y:g,margin:y,text:i.getNonEmptyTitle(r),style:i.CommonAxisTitleStyle,reserveSpace:!0},opposite:l,offset:m})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("./constants.js");exports.getChartVerticalAxis=function(i){var o=void 0===i?{}:i,s=o.spacing,r=void 0===s?"normal":s,n=o.title,a=o.opposite,l=void 0!==a&&a,m=o.offset,x=function(e,t){return t?"normal"===e?{x:19,margin:2}:{x:20,margin:-16}:"normal"===e?{x:-9,margin:2}:{x:-9,margin:-16}}(r,l),g=x.margin,p=x.x;return e.__assign(e.__assign({},t.CommonAxisProps),{labels:{x:l?4:-5,padding:0,style:t.CommonAxisLabelStyle},title:{y:0,x:p,margin:g,text:t.getNonEmptyTitle(n),style:t.CommonAxisTitleStyle,reserveSpace:!0,rotation:270},opposite:l,offset:m})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("../components/UserMention/utils/index.js"),r=require("./StageDesignVActualUtils.js"),s=require("./alerts.js"),o=require("./audio.js"),i=require("./casing/index.js"),n=require("./chartSeries.js"),a=require("./completion.js"),p=require("./components.js"),u=require("./convert.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("../components/UserMention/utils/index.js"),r=require("./StageDesignVActualUtils.js"),s=require("./alerts.js"),o=require("./audio.js"),i=require("./casing/index.js"),n=require("./chartSeries.js"),a=require("./completion.js"),p=require("./components.js"),u=require("./convert.js"),l=require("./csvExport.js"),c=require("./devcenter.js"),x=require("./drillstring/index.js"),g=require("./DrillstringUtils.js"),f=require("./FluidCheckUtils.js"),j=require("./formatting.js"),m=require("./ga.js"),q=require("./goals.js"),d=require("./goalsConfig/index.js"),y=require("./lasParser.js"),U=require("./main.js"),h=require("./mapUnits.js"),b=require("./mapbox.js"),v=require("./metrics/index.js"),S=require("./mobileDetect.js"),D=require("./nativeMessages.js"),C=require("./notifications.js"),O=require("./feed.js"),w=require("./permissions.js"),T=require("./reports.js"),P=require("./time.js"),N=require("./torqueAndHookloadUtils.js"),A=require("./accuracy.js"),I=require("./notificationToasts.js"),H=require("./devcenterToasts.js"),F=require("./convertKeys.js"),V=require("./dashboardReports.js"),B=require("./apps.js"),E=require("./themeVariables.js"),k=require("./env.js"),z=require("./fileExtension.js"),K=require("./jsonaDataFormatter.js"),L=require("./bha.js"),M=require("./localStorage.js"),_=require("./sharedDCStore.js"),W=require("./resolveWellHubSlug.js"),J=require("./delayedHighcharts.js"),R=require("./formatFileSize.js"),G=require("./delay.js"),Q=require("./charts/getChartHorizontalAxis.js"),X=require("./charts/getChartVerticalAxis.js");function Y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function Z(e){return Object.freeze({__proto__:null,default:e})}var $=Y(e),ee=Z(y),te=Z(U),re=Z(h),se=Z(w);function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}var ie={get:function(e,t){var r=e[t];return"function"==typeof r?function(){for(var t=arguments.length,s=new Array(t),o=0;o<t;o++)s[o]=arguments[o];return r.apply(e,s.map((function(e){return e.toJS?e.toJS():e})))}:r}};function ne(e){return new Proxy(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){$.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),ie)}var ae=u.convertArray,pe=u.convertValue,ue=u.getAllUnitTypes,le=u.getDefaultImperialUnit,ce=u.getDefaultUnits,xe=u.getUnitDescription,ge=u.getUnitDisplay,fe=u.getUnitPlural,je=u.getUnitPreference,me=u.getUnitsByType,qe=u.getUnitSingular,de=u.getUnitSystem,ye=u.updateUserUnits,Ue=u.getUserUnits,he=u.subscribeForUserUnitsUpdates,be=u.convertImmutables,ve=u.convertImmutablesByBatch,Se=u.getUniqueUnitsByType,De=ne(b),Ce=ne(p);exports.formatMentionText=t.formatMentionText,exports.isSuggestionsListOpened=t.isSuggestionsListOpened,exports.StageDesignVActualUtils=r,exports.alerts=s,exports.audio=o,exports.casing=i,exports.chartSeries=n,exports.completion=a,exports.convert=u,exports.csvExport=l,exports.devcenter=c,exports.drillstring=x,exports.drillstringUtils=g,exports.fluidCheckUtils=f,exports.formatting=j,exports.ga=m,exports.goals=q,exports.goalsConfig=d,exports.lasParser=ee,exports.main=te,exports.mapUnits=re,exports.metricsUtils=v,exports.mobileDetect=S,exports.nativeMessages=D,exports.notifications=C,exports.feed=O,exports.permissions=se,exports.reports=T,exports.time=P,exports.torqueAndHookloadUtils=N,exports.accuracy=A,exports.createNotification=I.createNotification,exports.removeNotification=I.removeNotification,exports.showErrorNotification=I.showErrorNotification,exports.showInfoNotification=I.showInfoNotification,exports.showNeutralNotification=I.showNeutralNotification,exports.showSuccessNotification=I.showSuccessNotification,exports.showWarningNotification=I.showWarningNotification,exports.showToast=H.showToast,exports.convertKeysToCamelCase=F.convertKeysToCamelCase,exports.convertKeysToSnakeCase=F.convertKeysToSnakeCase,exports.getConvertKeys=F.getConvertKeys,exports.dashboardReports=V,exports.apps=B,exports.themeVariables=E,exports.env=k,exports.fileExtension=z,exports.jsonaDataFormatter=K.jsonaDataFormatter,exports.bha=L,exports.getLocalStorageItem=M.getLocalStorageItem,exports.updateLocalStorageItem=M.updateLocalStorageItem,exports.sharedDCStore=_.sharedDCStore,exports.resolveWellHubSlug=W,exports.enableHighchartsDelayedTooltip=J.enableHighchartsDelayedTooltip,exports.formatFileSize=R.formatFileSize,exports.delay=G.delay,exports.getChartHorizontalAxis=Q.getChartHorizontalAxis,exports.getChartVerticalAxis=X.getChartVerticalAxis,exports.components=Ce,exports.convertArray=ae,exports.convertImmutables=be,exports.convertImmutablesByBatch=ve,exports.convertValue=pe,exports.getAllUnitTypes=ue,exports.getDefaultImperialUnit=le,exports.getDefaultUnits=ce,exports.getUniqueUnitsByType=Se,exports.getUnitDescription=xe,exports.getUnitDisplay=ge,exports.getUnitPlural=fe,exports.getUnitPreference=je,exports.getUnitSingular=qe,exports.getUnitSystem=de,exports.getUnitsByType=me,exports.getUserUnits=Ue,exports.mapbox=De,exports.subscribeForUserUnitsUpdates=he,exports.updateUserUnits=ye;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxisDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisDropdown.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AxisDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Chart/components/AxisDropdown.js"],"names":[],"mappings":";AAkDA;;;;;;;;gBA4BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as n,Select as e,MenuItem as i}from"@material-ui/core";import{DownOneIcon as r}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import{jsx as c,jsxs as a,Fragment as m}from"react/jsx-runtime";var p=["className","classes","value","onChange","unit","options"];function l(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);s&&(n=n.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,n)}return t}function u(s){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o(s,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))}))}return s}var d=n((function(o){var s=o.palette;return{selectContainer:{color:s.primary.contrastText,background:"transparen !important","& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon > svg > path":{fill:s.primary.text6,stroke:s.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:s.primary.main,stroke:s.primary.main},"&:hover":{"& .MuiSelect-icon > svg > path":{fill:s.primary.contrastText,stroke:s.primary.contrastText}},"&:active":{"& .MuiSelect-icon > svg > path":{fill:s.primary.main,stroke:s.primary.main}}},selectRoot:{fontSize:16,paddingTop:0,paddingBottom:0,"&:focus":{backgroundColor:"transparent"}},unit:{fontSize:12,lineHeight:0,color:s.primary.text7,marginLeft:4}}})),j=function(o){var n=o.className,l=o.classes,j=o.value,f=o.onChange,h=o.unit,b=o.options,I=s(o,p),g=d();return c(e,u(u({className:t(g.selectContainer,n),value:j,classes:u({root:g.selectRoot},l),onChange:f,disableUnderline:!0,IconComponent:function(o){return c(r,u({theme:"filled",fill:"#BDBDBD",size:16},o))},renderValue:function(o){return a(m,{children:[o,h&&a("span",{className:g.unit,children:["(",h,")"]})]})}},I),{},{children:null==b?void 0:b.map((function(o){var s=o.label,t=o.value;return c(i,{value:t,children:s},t)}))}))};export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAMhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,WAAW,8DAOrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AvatarGroup.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAMhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,WAAW,8DAOrB,gBAAgB,gBAiClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as o}from"react/jsx-runtime";import{useMemo as r,createElement as e}from"react";import a from"classnames";import{Avatar as i}from"../Avatar/Avatar.js";import{getFontSize as m}from"../Avatar/constants.js";import{Tooltip as n}from"../Tooltip/Tooltip.js";import l from"./AvatarGroup.scss.js";var c=function(c){var d=c.testId,p=c.className,f=c.max,v=void 0===f?5:f,u=c.items,j=void 0===u?[]:u,h=c.size,x=void 0===h?40:h,N=c.disableTooltips,b=v<1?1:v,z=r((function(){return{"--size":"".concat(x,"px"),fontSize:"".concat(m(x),"px")}}),[x]);return s("div",{className:a(p,l.root),"data-testid":d,style:z,children:[j.slice(0,b).map((function(s,r){var m=e(i,t({},s,{size:x,key:r,className:a(l.masked,s.className)}));return o(n,{title:s.name,disabled:N,children:m},r)})),j.length>b&&s("div",{className:a(l.masked,l.more),children:["+",j.length-b]})]})};export{c as AvatarGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={spacing:"8",root:"AvatarGroup_root__f26bg",masked:"AvatarGroup_masked__eVVHr",more:"AvatarGroup_more__Qg2Si"};r(".AvatarGroup_root__f26bg{align-items:center;display:inline-flex;flex-flow:row
|
|
1
|
+
import r from'./../../ext-esm/style-inject/dist/style-inject.es.js';var a={spacing:"8",root:"AvatarGroup_root__f26bg",masked:"AvatarGroup_masked__eVVHr",more:"AvatarGroup_more__Qg2Si"};r(".AvatarGroup_root__f26bg{align-items:center;display:inline-flex;flex-flow:row nowrap}.AvatarGroup_masked__eVVHr{position:relative}.AvatarGroup_masked__eVVHr:not(:first-child){margin-left:-8px}.AvatarGroup_masked__eVVHr:not(:last-child){mask:radial-gradient(calc(var(--size)/2 + 1px) at calc(100% + var(--size)/2 - 8px) 50%,transparent 98%,#000)}.AvatarGroup_more__Qg2Si{background:var(--palette-background-b-9);border-radius:50%;color:var(--palette-primary-text-6);font-weight:500;height:var(--size);line-height:var(--size);text-align:center;width:var(--size)}");export{a as default};
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSObject } from 'highcharts';
|
|
2
|
+
export type GetChartAxisParams = {
|
|
3
|
+
spacing?: 'normal' | 'dense';
|
|
4
|
+
title?: string | null;
|
|
5
|
+
opposite?: boolean;
|
|
6
|
+
offset?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const CommonAxisProps: {
|
|
9
|
+
gridLineWidth: number;
|
|
10
|
+
gridLineColor: string;
|
|
11
|
+
zIndex: number;
|
|
12
|
+
lineColor: string;
|
|
13
|
+
lineWidth: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const CommonAxisLabelStyle: CSSObject;
|
|
16
|
+
export declare const CommonAxisTitleStyle: CSSObject;
|
|
17
|
+
export declare const getNonEmptyTitle: (title?: string | null) => string;
|
|
18
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/charts/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;CAM3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAIlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAKlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,MAAM,GAAG,IAAI,WAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={gridLineWidth:1,gridLineColor:"#333333",zIndex:1e3,lineColor:"#333333",lineWidth:1},i={color:"#9E9E9E",fontFamily:"Roboto",fontSize:"11px"},n={fontFamily:"Roboto",fontSize:"14px",cursor:"default",color:"#9E9E9E"},r=function(o){return o||""};export{i as CommonAxisLabelStyle,o as CommonAxisProps,n as CommonAxisTitleStyle,r as getNonEmptyTitle};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { XAxisOptions } from 'highcharts';
|
|
2
|
+
import { GetChartAxisParams } from './constants';
|
|
3
|
+
export declare const getChartHorizontalAxis: ({ spacing, title, opposite, offset, }?: GetChartAxisParams) => XAxisOptions;
|
|
4
|
+
//# sourceMappingURL=getChartHorizontalAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChartHorizontalAxis.d.ts","sourceRoot":"","sources":["../../../src/utils/charts/getChartHorizontalAxis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAIL,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AAmBrB,eAAO,MAAM,sBAAsB,2CAKhC,kBAAkB,KAAQ,YAwB5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{CommonAxisProps as t,CommonAxisLabelStyle as n,getNonEmptyTitle as o,CommonAxisTitleStyle as r}from"./constants.js";var e=function(e){var a=void 0===e?{}:e,s=a.spacing,m=void 0===s?"normal":s,d=a.title,l=a.opposite,g=void 0!==l&&l,p=a.offset,y=function(i,t){return t?"normal"===i?{y:-12,margin:-18}:{y:-11,margin:-37}:"normal"===i?{y:13,margin:-6}:{y:10,margin:-25}}(m,g),f=y.y,c=y.margin;return i(i({},t),{minPadding:0,maxPadding:.04,tickWidth:0,labels:{y:g?-8:16,padding:4,style:n},title:{x:0,y:f,margin:c,text:o(d),style:r,reserveSpace:!0},opposite:g,offset:p})};export{e as getChartHorizontalAxis};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GetChartAxisParams } from './constants';
|
|
2
|
+
export declare const getChartVerticalAxis: ({ spacing, title, opposite, offset, }?: GetChartAxisParams) => {
|
|
3
|
+
labels: {
|
|
4
|
+
x: number;
|
|
5
|
+
padding: number;
|
|
6
|
+
style: import("highcharts").CSSObject;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
y: number;
|
|
10
|
+
x: number;
|
|
11
|
+
margin: number;
|
|
12
|
+
text: string;
|
|
13
|
+
style: import("highcharts").CSSObject;
|
|
14
|
+
reserveSpace: boolean;
|
|
15
|
+
rotation: number;
|
|
16
|
+
};
|
|
17
|
+
opposite: boolean;
|
|
18
|
+
offset: number;
|
|
19
|
+
gridLineWidth: number;
|
|
20
|
+
gridLineColor: string;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
lineColor: string;
|
|
23
|
+
lineWidth: number;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=getChartVerticalAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChartVerticalAxis.d.ts","sourceRoot":"","sources":["../../../src/utils/charts/getChartVerticalAxis.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AAmBrB,eAAO,MAAM,oBAAoB,2CAK9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;CAuBpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{CommonAxisProps as o,CommonAxisLabelStyle as r,getNonEmptyTitle as i,CommonAxisTitleStyle as n}from"./constants.js";var e=function(e){var a=void 0===e?{}:e,s=a.spacing,m=void 0===s?"normal":s,l=a.title,p=a.opposite,x=void 0!==p&&p,f=a.offset,g=function(t,o){return o?"normal"===t?{x:19,margin:2}:{x:20,margin:-16}:"normal"===t?{x:-9,margin:2}:{x:-9,margin:-16}}(m,x),d=g.margin,v=g.x;return t(t({},o),{labels:{x:x?4:-5,padding:0,style:r},title:{y:0,x:v,margin:d,text:i(l),style:n,reserveSpace:!0,rotation:270},opposite:x,offset:f})};export{e as getChartVerticalAxis};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
|
package/utils/index.d.ts
CHANGED
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":";;yCAEyC,2BAA2B;0BA8B1C,YAAY;wBA7Bd,UAAU;sBA0CZ,QAAQ;uBAzCP,SAAS;qBA8CX,OAAO;wBA7CJ,UAAU;6BACL,eAAe;+CAgDG,qBAAqB;4BA/CxC,cAAc;AAyF1C,6BAAuE;yBAvF9C,WAAW;;;;uCAkC2C,eAAe;uCAAf,eAAe;;mCAFvF,sBAAsB;2BA/BF,aAAa;kCAkCN,oBAAoB;2BAjC3B,aAAa;6BACX,eAAe;kCACV,oBAAoB;qBAkCjC,OAAO;sBApBN,QAAQ;+BAqBC,iBAAiB;iCAlCf,mBAAmB;4BACxB,cAAc;oBACtB,MAAM;kCAhBiC,iCAAiC;;;;;;;;+BA2Cb,eAAe;;;oCAQlC,gBAAgB;;;;;;;;;;;;;;;;;uBAlCrD,SAAS;6BACH,eAAe;mCA+BT,sBAAsB;2BA9B9B,aAAa;sBAClB,QAAQ;0BACJ,YAAY;AA0EtC,yBAA+D;8BAxEjC,WAAW;8BACX,gBAAgB;gCACd,kBAAkB;+BACnB,iBAAiB;6BAEnB,eAAe;mCAarC,sBAAsB;yBAZJ,WAAW;+BAwBL,sBAAsB;8BADvB,iBAAiB;sCAXxC,sBAAsB;qCAAtB,sBAAsB;wCAAtB,sBAAsB;wCAAtB,sBAAsB;0BACH,mBAAmB;wCADtC,sBAAsB;;gCAKG,kBAAkB;sBAhB5B,QAAQ;wCACU,0BAA0B;uCAoBN,gBAAgB;;;;;wCAnDjB,iCAAiC;+BAuD7D,kBAAkB"}
|
package/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";export{formatMentionText,isSuggestionsListOpened}from"../components/UserMention/utils/index.js";import*as r from"./StageDesignVActualUtils.js";export{r 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 n,convertValue as m,getAllUnitTypes as f,getDefaultImperialUnit as l,getDefaultUnits as c,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as d,getUnitSystem as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";export{formatMentionText,isSuggestionsListOpened}from"../components/UserMention/utils/index.js";import*as r from"./StageDesignVActualUtils.js";export{r 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 n,convertValue as m,getAllUnitTypes as f,getDefaultImperialUnit as l,getDefaultUnits as c,getUnitDescription as j,getUnitDisplay as x,getUnitPlural as g,getUnitPreference as u,getUnitsByType as y,getUnitSingular as d,getUnitSystem as h,updateUserUnits as b,getUserUnits as U,subscribeForUserUnitsUpdates as v,convertImmutables as S,convertImmutablesByBatch as O,getUniqueUnitsByType as D}from"./convert.js";import*as w from"./convert.js";export{w as convert};import*as C from"./csvExport.js";export{C as csvExport};import*as P from"./devcenter.js";export{P as devcenter};import*as T from"./drillstring/index.js";export{T as drillstring};import*as A from"./DrillstringUtils.js";export{A as drillstringUtils};import*as N from"./FluidCheckUtils.js";export{N as fluidCheckUtils};import*as H from"./formatting.js";export{H as formatting};import*as F from"./ga.js";export{F as ga};import*as I from"./goals.js";export{I as goals};import*as k from"./goalsConfig/index.js";export{k as goalsConfig};import*as E from"./lasParser.js";export{E as lasParser};import*as V from"./main.js";export{V as main};import*as z from"./mapUnits.js";export{z as mapUnits};import*as B from"./mapbox.js";import*as K from"./metrics/index.js";export{K as metricsUtils};import*as L from"./mobileDetect.js";export{L as mobileDetect};import*as M from"./nativeMessages.js";export{M as nativeMessages};import*as W from"./notifications.js";export{W as notifications};import*as q from"./feed.js";export{q as feed};import*as J from"./permissions.js";export{J as permissions};import*as R from"./reports.js";export{R as reports};import*as G from"./time.js";export{G as time};import*as Q from"./torqueAndHookloadUtils.js";export{Q as torqueAndHookloadUtils};import*as X from"./accuracy.js";export{X 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 Y from"./dashboardReports.js";export{Y as dashboardReports};import*as Z from"./apps.js";export{Z as apps};import*as $ from"./themeVariables.js";export{$ as themeVariables};import*as _ from"./env.js";export{_ as env};import*as tt from"./fileExtension.js";export{tt as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as rt from"./bha.js";export{rt as bha};export{getLocalStorageItem,updateLocalStorageItem}from"./localStorage.js";export{sharedDCStore}from"./sharedDCStore.js";export{default as resolveWellHubSlug}from"./resolveWellHubSlug.js";export{enableHighchartsDelayedTooltip}from"./delayedHighcharts.js";export{formatFileSize}from"./formatFileSize.js";export{delay}from"./delay.js";export{getChartHorizontalAxis}from"./charts/getChartHorizontalAxis.js";export{getChartVerticalAxis}from"./charts/getChartVerticalAxis.js";function ot(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,e)}return o}var et={get:function(t,r){var o=t[r];return"function"==typeof o?function(){for(var r=arguments.length,e=new Array(r),s=0;s<r;s++)e[s]=arguments[s];return o.apply(t,e.map((function(t){return t.toJS?t.toJS():t})))}:o}};function st(r){return new Proxy(function(r){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?ot(Object(e),!0).forEach((function(o){t(r,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):ot(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}))}return r}({},r),et)}var at=n,it=m,pt=f,nt=l,mt=c,ft=j,lt=x,ct=g,jt=u,xt=y,gt=d,ut=h,yt=b,dt=U,ht=v,bt=S,Ut=O,vt=D,St=st(B),Ot=st(p);export{Ot as components,at as convertArray,bt as convertImmutables,Ut as convertImmutablesByBatch,it as convertValue,pt as getAllUnitTypes,nt as getDefaultImperialUnit,mt as getDefaultUnits,vt as getUniqueUnitsByType,ft as getUnitDescription,lt as getUnitDisplay,ct as getUnitPlural,jt as getUnitPreference,gt as getUnitSingular,ut as getUnitSystem,xt as getUnitsByType,dt as getUserUnits,St as mapbox,ht as subscribeForUserUnitsUpdates,yt as updateUserUnits};
|