@corva/ui 0.55.0-4 → 0.55.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/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
- package/cjs-bundle/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/cjs-bundle/components/SlateFormattedText/RenderElements.js +1 -1
- package/components/OffsetWellChips/Chip.d.ts +1 -13
- package/components/OffsetWellChips/Chip.d.ts.map +1 -1
- package/components/OffsetWellChips/Chip.js +1 -1
- package/components/OffsetWellChips/ChipsContainer.d.ts +1 -13
- package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
- package/components/OffsetWellChips/ChipsContainer.js +1 -1
- package/components/OffsetWellChips/types.d.ts +15 -17
- package/components/OffsetWellChips/types.d.ts.map +1 -1
- package/components/SlateFormattedText/RenderElements.d.ts.map +1 -1
- package/components/SlateFormattedText/RenderElements.js +1 -1
- package/package.json +1 -1
- package/cjs-bundle/components/OffsetWellChips/types.js +0 -1
- package/components/OffsetWellChips/types.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("react"),o=require("@material-ui/core"),r=require("@material-ui/icons"),s=require("./components/OffsetWellTruncatedText.js"),a=require("../../utils/main.js"),l=require("./icons/SubjectIcon.js"),n=o.makeStyles((function(e){return{chipRoot:{position:"relative",height:30,padding:"7px 12px",fontSize:12,color:e.palette.primary.text6,margin:"2px 4px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.1)",color:e.palette.primary.contrastText}},root:{width:"100%",display:"flex",alignItems:"center"},label:{padding:0},mark:{display:function(e){return e.isShowMark?"block":"none"},marginRight:4,width:8,height:8,borderRadius:8,backgroundColor:function(e){return e.markColor}},subject:{display:"flex",marginRight:4},closeIcon:{fontSize:"1rem",marginLeft:"4px"},closeArea:{position:"absolute",top:0,right:0,width:32,height:30},tooltip:{marginTop:"8px"},titleContainer:{display:"flex",alignItems:"center"}}})),c=function(c){var u=c.title,m=c.onClick,p=c.markColor,d=c.isSubject,g=c.rigName,h=c.maxWidth,x=c.wellId,j=c.onRemoveOffsetWell,f=c.isShowMark,k=t.useState(null),b=k[0],C=k[1],_=n({markColor:p||"#".concat(a.getColorFromString(u)),isShowMark:f}),v=!!b,S=g?"".concat(u," | ").concat(g):u,q=i.jsxs("div",e.__assign({className:_.root},{children:[i.jsx(o.Tooltip,e.__assign({title:v?S:g,classes:{popper:_.tooltip}},{children:i.jsxs("div",e.__assign({className:_.titleContainer},{children:[d?i.jsx("span",e.__assign({className:_.subject},{children:i.jsx(l,{})})):i.jsx("span",{className:_.mark}),i.jsx(s,e.__assign({onTruncate:function(e){C(e)},truncatedText:b,maxWidth:h},{children:u}))]}))})),!d&&!!j&&i.jsxs(i.Fragment,{children:[i.jsx(r.Close,{className:_.closeIcon}),i.jsx(o.Tooltip,e.__assign({title:"Remove",classes:{popper:_.tooltip}},{children:i.jsx("div",{className:_.closeArea,onClick:function(e){e.stopPropagation(),j&&j(x)}})}))]})]}));return i.jsx(o.Chip,{"data-not-migrated-MuiChip":!0,variant:"outlined",size:"medium",label:q,classes:{root:_.chipRoot,label:_.label},onClick:function(e){return m&&m(e,x)}})};c.defaultProps={onClick:null,markColor:null,maxWidth:200,rigName:null,isShowMark:!0,onRemoveOffsetWell:null},module.exports=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),
|
|
1
|
+
"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),r=require("@material-ui/core"),l=require("./Chip.js"),t=r.makeStyles((function(){return{container:{display:"flex",flexWrap:"wrap",padding:"8px"}}}));module.exports=function(r){var a=r.wells,s=r.maxWidth,o=r.onRemoveOffsetWell,n=r.isShowMark,u=void 0===n||n,m=r.onChipClick,c=void 0===m?null:m,d=t();return i.jsx("div",e.__assign({className:d.container},{children:a.map((function(e){var r=e.wellId,t=e.title,a=e.isSubject,n=e.markColor,m=e.rigName;return i.jsx(l,{maxWidth:s,title:t,isSubject:a,markColor:n,rigName:m,wellId:r,onRemoveOffsetWell:o,isShowMark:u,onClick:c},r)}))}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core"),t=require("@material-ui/icons/Language"),a=require("classnames"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@material-ui/core"),t=require("@material-ui/icons/Language"),a=require("classnames"),s=require("./Constants.js"),n=require("./Elements/ImageElement/ImageElement.js"),l=require("./Elements/VideoElement/VideoElement.js"),i=require("./style.css.js"),c=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(e),u=o(t),m=o(a);function h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach((function(r){d.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b=r.withStyles({tooltip:{height:24,maxWidth:168}})(r.Tooltip),p=r.withStyles({root:{color:"#bdbdbd",fontSize:14,marginRight:8}})(u.default);exports.Element=function(e){var r=e.attributes,t=e.children,a=e.element;switch(a.type){case"block-quote":return c.jsx("blockquote",j(j({},r),{},{children:t}));case"bulleted-list":return c.jsx("ul",j(j({},r),{},{className:i.bulletedList,children:t}));case"numbered-list":var o,d,u=i.numberedList;return 1===(null===(o=a.children)||void 0===o?void 0:o.length)&&null!==(d=a.children)&&void 0!==d&&d[0].textPrimary&&(u=m.default(i.listItem,i.listItemPrimary)),c.jsx("ol",j(j({},r),{},{className:u,start:null==a?void 0:a.startPosition,children:t}));case"list-item":var h,x,f=i.listItem;return 1===(null===(h=a.children)||void 0===h?void 0:h.length)&&null!==(x=a.children)&&void 0!==x&&x[0].textPrimary&&(f=m.default(i.listItem,i.listItemPrimary)),c.jsx("li",j(j({},r),{},{className:f,children:t}));case"image":return c.jsx(n,j({},e));case s.TEXT_FORMATS.headerOne:return c.jsx("div",{className:i.headerOne,children:t});case s.TEXT_FORMATS.headerTwo:return c.jsx("div",{className:i.headerTwo,children:t});case s.TEXT_FORMATS.headerThree:return c.jsx("div",{className:i.headerThree,children:t});case s.TEXT_FORMATS.body:return c.jsx("div",{className:i.body,children:t});case s.TEXT_FORMATS.caption:return c.jsx("div",{className:i.caption,children:t});case s.TEXT_FORMATS.code:return c.jsx("pre",{className:m.default("language-js",i.codeBlock),children:t});case"video":return c.jsx(l,j({},e));case"link":return c.jsx(b,{placement:"bottom-start",title:c.jsxs("span",{className:i.richTextEditorPopoverLinkElement,children:[c.jsx(p,{}),c.jsx("a",{href:a.url,children:a.url})]}),children:c.jsx("a",j(j({},r),{},{href:a.url,className:i.richTextEditorLinkElement,children:t}))});default:return c.jsx("div",{className:i.body,children:t})}},exports.Leaf=function(e){var r=e.attributes,t=e.leaf,a=e.children;return t.bold&&(a=c.jsx("strong",{children:a})),t.italic&&(a=c.jsx("em",{children:a})),t.underline&&(a=c.jsx("u",{children:a})),t.contrastText&&(a=c.jsx("span",{className:i.contrastText,children:a})),t.textPrimary&&(a=c.jsx("span",{className:i.textPrimary,children:a})),t.bodyLeaf&&(a=c.jsx("span",{className:i.body,children:a})),t.captionLeaf&&(a=c.jsx("span",{className:i.caption,children:a})),t.codeLeaf&&(a=c.jsx("span",{className:i.code,children:a})),t.headerOneLeaf&&(a=c.jsx("span",{className:i.headerOne,children:a})),t.headerTwoLeaf&&(a=c.jsx("span",{className:i.headerTwo,children:a})),t.headerThreeLeaf&&(a=c.jsx("span",{className:i.headerThree,children:a})),c.jsx("span",j(j({},r),{},{className:m.default("token",d.default({"attr-name":t["attr-name"],"class-name":t["class-name"],boolean:t.boolean,char:t.char,comment:t.comment||t.visiblePragma,constant:t.constant,constants:t.constants,function:t.function,keyword:t.keyword,number:t.number,operator:t.operator,punctuation:t.punctuation,regex:t.regex,selector:t.selector,string:t.string,symbol:t.symbol,tag:t.tag,url:t.url,variable:t.variable},i.invisible,t.invisiblePragma)),children:a}))};
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChipProps } from './types';
|
|
3
3
|
declare const OffsetWellChip: {
|
|
4
|
-
({ title, onClick, markColor, isSubject, rigName, maxWidth, wellId, onRemoveOffsetWell, isShowMark, }: ChipProps): JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
title: import("prop-types").Validator<string>;
|
|
7
|
-
isSubject: import("prop-types").Validator<boolean>;
|
|
8
|
-
maxWidth: import("prop-types").Requireable<number>;
|
|
9
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
10
|
-
markColor: import("prop-types").Requireable<string>;
|
|
11
|
-
rigName: import("prop-types").Requireable<string>;
|
|
12
|
-
id: import("prop-types").Validator<string>;
|
|
13
|
-
wellId: import("prop-types").Validator<string>;
|
|
14
|
-
onRemoveOffsetWell: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
15
|
-
isShowMark: import("prop-types").Requireable<boolean>;
|
|
16
|
-
};
|
|
4
|
+
<T extends unknown>({ title, onClick, markColor, isSubject, rigName, maxWidth, wellId, onRemoveOffsetWell, isShowMark, }: ChipProps<T>): JSX.Element;
|
|
17
5
|
defaultProps: {
|
|
18
6
|
onClick: any;
|
|
19
7
|
markColor: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":";AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAc,MAAM,SAAS,CAAC;AA0DhD,QAAA,MAAM,cAAc;6IAUF,WAAW;;;;;;;;;CA4D5B,CAAC;AAWF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as e,Fragment as r}from"react/jsx-runtime";import{useState as i}from"react";import{makeStyles as l,Tooltip as a,Chip as n}from"@material-ui/core";import{Close as s}from"@material-ui/icons";import c from"./components/OffsetWellTruncatedText.js";import m from"../../utils/main.js";import p from"./icons/SubjectIcon.js";var d=l((function(o){return{chipRoot:{position:"relative",height:30,padding:"7px 12px",fontSize:12,color:o.palette.primary.text6,margin:"2px 4px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.1)",color:o.palette.primary.contrastText}},root:{width:"100%",display:"flex",alignItems:"center"},label:{padding:0},mark:{display:function(o){return o.isShowMark?"block":"none"},marginRight:4,width:8,height:8,borderRadius:8,backgroundColor:function(o){return o.markColor}},subject:{display:"flex",marginRight:4},closeIcon:{fontSize:"1rem",marginLeft:"4px"},closeArea:{position:"absolute",top:0,right:0,width:32,height:30},tooltip:{marginTop:"8px"},titleContainer:{display:"flex",alignItems:"center"}}})),u=function(l){var u=l.title,h=l.onClick,f=l.markColor,g=l.isSubject,x=l.rigName,k=l.maxWidth,b=l.wellId,C=l.onRemoveOffsetWell,v=l.isShowMark,j=i(null),S=j[0],w=j[1],N=d({markColor:f||"#".concat(m.getColorFromString(u)),isShowMark:v}),R=!!S,y=x?"".concat(u," | ").concat(x):u,I=t("div",o({className:N.root},{children:[e(a,o({title:R?y:x,classes:{popper:N.tooltip}},{children:t("div",o({className:N.titleContainer},{children:[e("span",g?o({className:N.subject},{children:e(p,{})}):{className:N.mark}),e(c,o({onTruncate:function(o){w(o)},truncatedText:S,maxWidth:k},{children:u}))]}))})),!g&&!!C&&t(r,{children:[e(s,{className:N.closeIcon}),e(a,o({title:"Remove",classes:{popper:N.tooltip}},{children:e("div",{className:N.closeArea,onClick:function(o){o.stopPropagation(),C&&C(b)}})}))]})]}));return e(n,{"data-not-migrated-MuiChip":!0,variant:"outlined",size:"medium",label:I,classes:{root:N.chipRoot,label:N.label},onClick:function(o){return h&&h(o,b)}})};u.defaultProps={onClick:null,markColor:null,maxWidth:200,rigName:null,isShowMark:!0,onRemoveOffsetWell:null};export{u as default};
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { ChipsContainerProps } from './types';
|
|
4
|
-
declare const OffsetWellChips: {
|
|
5
|
-
({ wells, maxWidth, onRemoveOffsetWell, isShowMark, }: ChipsContainerProps): JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
wells: PropTypes.Validator<PropTypes.InferProps<{
|
|
8
|
-
title: PropTypes.Requireable<string>;
|
|
9
|
-
id: PropTypes.Requireable<number>;
|
|
10
|
-
rigName: PropTypes.Requireable<string>;
|
|
11
|
-
isSubject: PropTypes.Requireable<boolean>;
|
|
12
|
-
markColor: PropTypes.Requireable<string>;
|
|
13
|
-
}>[]>;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
3
|
+
declare const OffsetWellChips: <T extends unknown>({ wells, maxWidth, onRemoveOffsetWell, isShowMark, onChipClick, }: ChipsContainerProps<T>) => JSX.Element;
|
|
16
4
|
export default OffsetWellChips;
|
|
17
5
|
//# sourceMappingURL=ChipsContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,QAAA,MAAM,eAAe,oHAMO,WAqB3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{makeStyles as i}from"@material-ui/core";import o from"./Chip.js";var t=i((function(){return{container:{display:"flex",flexWrap:"wrap",padding:"8px"}}})),l=function(i){var l=i.wells,a=i.maxWidth,n=i.onRemoveOffsetWell,m=i.isShowMark,s=void 0===m||m,d=i.onChipClick,f=void 0===d?null:d,c=t();return r("div",e({className:c.container},{children:l.map((function(e){var i=e.wellId,t=e.title,l=e.isSubject,m=e.markColor,d=e.rigName;return r(o,{maxWidth:a,title:t,isSubject:l,markColor:m,rigName:d,wellId:i,onRemoveOffsetWell:n,isShowMark:s,onClick:f},i)}))}))};export{l as default};
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
title:
|
|
4
|
-
isSubject
|
|
5
|
-
maxWidth
|
|
6
|
-
onClick:
|
|
7
|
-
markColor
|
|
8
|
-
rigName
|
|
9
|
-
|
|
10
|
-
wellId:
|
|
11
|
-
|
|
12
|
-
isShowMark: PropTypes.Requireable<boolean>;
|
|
13
|
-
};
|
|
14
|
-
export interface ChipProps extends PropTypes.InferProps<typeof offsetWellChipPropTypes> {
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
export interface ChipProps<T> {
|
|
3
|
+
title: string;
|
|
4
|
+
isSubject?: boolean;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
onClick?: (e: MouseEvent<HTMLDivElement>, wellId: T) => void;
|
|
7
|
+
markColor?: string;
|
|
8
|
+
rigName?: string;
|
|
9
|
+
wellId: T;
|
|
10
|
+
onRemoveOffsetWell?: (wellId: T) => void;
|
|
11
|
+
isShowMark?: boolean;
|
|
15
12
|
}
|
|
16
|
-
export interface ChipsContainerProps {
|
|
17
|
-
wells: ChipProps[];
|
|
13
|
+
export interface ChipsContainerProps<T> {
|
|
14
|
+
wells: ChipProps<T>[];
|
|
18
15
|
maxWidth?: number;
|
|
19
|
-
onRemoveOffsetWell
|
|
16
|
+
onRemoveOffsetWell?: (wellId: T) => void;
|
|
20
17
|
isShowMark?: boolean;
|
|
18
|
+
onChipClick: (e: MouseEvent<HTMLDivElement>, wellId: T) => void;
|
|
21
19
|
}
|
|
22
20
|
export interface StyleProps {
|
|
23
21
|
markColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;IACV,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;CACjE;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderElements.d.ts","sourceRoot":"","sources":["../../../src/components/SlateFormattedText/RenderElements.js"],"names":[],"mappings":"AAyBO,+
|
|
1
|
+
{"version":3,"file":"RenderElements.d.ts","sourceRoot":"","sources":["../../../src/components/SlateFormattedText/RenderElements.js"],"names":[],"mappings":"AAyBO,+CA8EN;AAEM,kDA8EN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{withStyles as r,Tooltip as t}from"@material-ui/core";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{withStyles as r,Tooltip as t}from"@material-ui/core";import a from"@material-ui/icons/Language";import n from"classnames";import{TEXT_FORMATS as i}from"./Constants.js";import l from"./Elements/ImageElement/ImageElement.js";import s from"./Elements/VideoElement/VideoElement.js";import c from"./style.css.js";import{jsx as o,jsxs as m}from"react/jsx-runtime";function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function h(r){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){e(r,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}var u=r({tooltip:{height:24,maxWidth:168}})(t),p=r({root:{color:"#bdbdbd",fontSize:14,marginRight:8}})(a),b=function(r){var t=r.attributes,a=r.leaf,i=r.children;return a.bold&&(i=o("strong",{children:i})),a.italic&&(i=o("em",{children:i})),a.underline&&(i=o("u",{children:i})),a.contrastText&&(i=o("span",{className:c.contrastText,children:i})),a.textPrimary&&(i=o("span",{className:c.textPrimary,children:i})),a.bodyLeaf&&(i=o("span",{className:c.body,children:i})),a.captionLeaf&&(i=o("span",{className:c.caption,children:i})),a.codeLeaf&&(i=o("span",{className:c.code,children:i})),a.headerOneLeaf&&(i=o("span",{className:c.headerOne,children:i})),a.headerTwoLeaf&&(i=o("span",{className:c.headerTwo,children:i})),a.headerThreeLeaf&&(i=o("span",{className:c.headerThree,children:i})),o("span",h(h({},t),{},{className:n("token",e({"attr-name":a["attr-name"],"class-name":a["class-name"],boolean:a.boolean,char:a.char,comment:a.comment||a.visiblePragma,constant:a.constant,constants:a.constants,function:a.function,keyword:a.keyword,number:a.number,operator:a.operator,punctuation:a.punctuation,regex:a.regex,selector:a.selector,string:a.string,symbol:a.symbol,tag:a.tag,url:a.url,variable:a.variable},c.invisible,a.invisiblePragma)),children:i}))},f=function(e){var r=e.attributes,t=e.children,a=e.element;switch(a.type){case"block-quote":return o("blockquote",h(h({},r),{},{children:t}));case"bulleted-list":return o("ul",h(h({},r),{},{className:c.bulletedList,children:t}));case"numbered-list":var d,b,f=c.numberedList;return 1===(null===(d=a.children)||void 0===d?void 0:d.length)&&null!==(b=a.children)&&void 0!==b&&b[0].textPrimary&&(f=n(c.listItem,c.listItemPrimary)),o("ol",h(h({},r),{},{className:f,start:null==a?void 0:a.startPosition,children:t}));case"list-item":var v,y,g=c.listItem;return 1===(null===(v=a.children)||void 0===v?void 0:v.length)&&null!==(y=a.children)&&void 0!==y&&y[0].textPrimary&&(g=n(c.listItem,c.listItemPrimary)),o("li",h(h({},r),{},{className:g,children:t}));case"image":return o(l,h({},e));case i.headerOne:return o("div",{className:c.headerOne,children:t});case i.headerTwo:return o("div",{className:c.headerTwo,children:t});case i.headerThree:return o("div",{className:c.headerThree,children:t});case i.body:return o("div",{className:c.body,children:t});case i.caption:return o("div",{className:c.caption,children:t});case i.code:return o("pre",{className:n("language-js",c.codeBlock),children:t});case"video":return o(s,h({},e));case"link":return o(u,{placement:"bottom-start",title:m("span",{className:c.richTextEditorPopoverLinkElement,children:[o(p,{}),o("a",{href:a.url,children:a.url})]}),children:o("a",h(h({},r),{},{href:a.url,className:c.richTextEditorLinkElement,children:t}))});default:return o("div",{className:c.body,children:t})}};export{f as Element,b as Leaf};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("prop-types")),i={title:t.default.string.isRequired,isSubject:t.default.bool.isRequired,maxWidth:t.default.number,onClick:t.default.func,markColor:t.default.string,rigName:t.default.string,id:t.default.string.isRequired,wellId:t.default.string.isRequired,onRemoveOffsetWell:t.default.func,isShowMark:t.default.bool};exports.offsetWellChipPropTypes=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i from"prop-types";var e={title:i.string.isRequired,isSubject:i.bool.isRequired,maxWidth:i.number,onClick:i.func,markColor:i.string,rigName:i.string,id:i.string.isRequired,wellId:i.string.isRequired,onRemoveOffsetWell:i.func,isShowMark:i.bool};export{e as offsetWellChipPropTypes};
|