@corva/ui 3.79.0-8 → 3.79.0-rc.0
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/CommentCard/CommentCard.js +1 -1
- package/cjs-bundle/components/CommentCard/CommentCard.js.map +1 -1
- package/cjs-bundle/components/CommentCard/CommentCard.scss.js +1 -1
- package/cjs-bundle/components/CurveTooltip/CurveTooltip.js +2 -0
- package/cjs-bundle/components/CurveTooltip/CurveTooltip.js.map +1 -0
- package/cjs-bundle/components/CurveTooltip/CurveTooltip.scss.js +2 -0
- package/cjs-bundle/components/CurveTooltip/CurveTooltip.scss.js.map +1 -0
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js.map +1 -1
- package/cjs-bundle/components/NewCommentCursor/NewCommentCursor.js +1 -1
- package/cjs-bundle/components/NewCommentCursor/NewCommentCursor.js.map +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
- package/cjs-bundle/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
- package/cjs-bundle/componentsV2/DragHandle/DragHandle.js +1 -1
- package/cjs-bundle/componentsV2/DragHandle/DragHandle.js.map +1 -1
- package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
- package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
- package/cjs-bundle/componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js +1 -1
- package/cjs-bundle/config/highcharts/highcharts.js +1 -1
- package/cjs-bundle/config/highcharts/highcharts.js.map +1 -1
- package/cjs-bundle/permissions/withPermissionsHOC.js +1 -1
- package/cjs-bundle/permissions/withPermissionsHOC.js.map +1 -1
- package/components/CommentCard/CommentCard.d.ts.map +1 -1
- package/components/CommentCard/CommentCard.js +1 -1
- package/components/CommentCard/CommentCard.js.map +1 -1
- package/components/CommentCard/CommentCard.scss.js +1 -1
- package/components/CommentCard/CommentCard.types.d.ts +3 -0
- package/components/CommentCard/CommentCard.types.d.ts.map +1 -1
- package/components/CurveTooltip/CurveTooltip.d.ts +24 -0
- package/components/CurveTooltip/CurveTooltip.d.ts.map +1 -0
- package/components/CurveTooltip/CurveTooltip.js +2 -0
- package/components/CurveTooltip/CurveTooltip.js.map +1 -0
- package/components/CurveTooltip/CurveTooltip.scss.js +2 -0
- package/components/CurveTooltip/CurveTooltip.scss.js.map +1 -0
- package/components/CurveTooltip/index.d.ts +2 -0
- package/components/CurveTooltip/index.d.ts.map +1 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.d.ts +1 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/IsolatedPage.js.map +1 -1
- package/components/NewCommentCursor/NewCommentCursor.d.ts +2 -0
- package/components/NewCommentCursor/NewCommentCursor.d.ts.map +1 -1
- package/components/NewCommentCursor/NewCommentCursor.js +1 -1
- package/components/NewCommentCursor/NewCommentCursor.js.map +1 -1
- package/components/NewCommentCursor/__tests__/NewCommentCursor.test.d.ts +2 -0
- package/components/NewCommentCursor/__tests__/NewCommentCursor.test.d.ts.map +1 -0
- package/componentsV2/ColorPicker/Swatches/Swatches.js +1 -1
- package/componentsV2/ColorPicker/Swatches/Swatches.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetFilters/AssetFilters.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/AssetSearchInput/AssetSearchInput.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/ModalTitle/ModalTitle.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadTableRow.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTable.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableBody.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.js.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts +1 -0
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.d.ts.map +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js +1 -1
- package/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.js.map +1 -1
- package/componentsV2/DragHandle/DragHandle.d.ts +1 -0
- package/componentsV2/DragHandle/DragHandle.d.ts.map +1 -1
- package/componentsV2/DragHandle/DragHandle.js +1 -1
- package/componentsV2/DragHandle/DragHandle.js.map +1 -1
- package/componentsV2/DragHandle/DragHandle.stories.d.ts +1 -0
- package/componentsV2/DragHandle/DragHandle.stories.d.ts.map +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.d.ts.map +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.js +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.js.map +1 -1
- package/componentsV2/OffsetWellsButton/OffsetWellsButton.scss.js +1 -1
- package/config/highcharts/highcharts.d.ts.map +1 -1
- package/config/highcharts/highcharts.js +1 -1
- package/config/highcharts/highcharts.js.map +1 -1
- package/mcp-server/server.mjs +71 -5
- package/package.json +1 -1
- package/permissions/__tests__/withPermissionsHOC.test.d.ts.map +1 -1
- package/permissions/withPermissionsHOC.d.ts.map +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/permissions/withPermissionsHOC.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as e,useMemo as t,useCallback as l}from"react";import{Checkbox as r}from"../../Checkbox/Checkbox.js";import{TableCell as o}from"../../../components/Table/TableCell/TableCell.js";import{TableRow as i}from"@material-ui/core";import
|
|
1
|
+
import{memo as e,useMemo as t,useCallback as l}from"react";import{Checkbox as r}from"../../Checkbox/Checkbox.js";import{TableCell as o}from"../../../components/Table/TableCell/TableCell.js";import{TableRow as i}from"@material-ui/core";import s from"./TableSortLabel.js";import{SortDirection as n}from"./helpers/sortPads.js";import{COLUMNS as a}from"./helpers/columns.js";import d from"./PadsTableHead.scss.js";import{jsx as c,jsxs as m}from"react/jsx-runtime";var h=e((function(e){var h=e.handleSelectPads,u=e.allWellIds,f=e.selectedOffsetWellIds,p=e.setSortBy,C=e.setSortDirection,S=e.sortBy,b=e.sortDirection,v=t((function(){return{padsIntermediate:(null==u?void 0:u.length)!==(null==f?void 0:f.length)&&!(null==f||!f.length),isAllPadsSelected:f.length===(null==u?void 0:u.length)}}),[u,f]),j=v.padsIntermediate,g=v.isAllPadsSelected,P=l((function(e){p(e),C(e===S&&b===n.ASC?n.DESC:n.ASC)}),[p,C,S,b]);return c(i,{children:a.map((function(e,t){var l=e.id,i=e.title,u=e.sortBy;return c(o,{className:d.headCell,style:{width:a[t].width},"data-testid":"".concat(l,"Header"),children:m("div",{className:d.cellContent,children:[!t&&c(r,{size:"medium",onChange:function(e){return h(e)},checked:g,indeterminate:j,testId:"selectAllPadsCheckbox"}),c(s,{title:"Sort",active:S===u,sortBy:u,direction:S===u&&b===n.DESC?"desc":"asc",onClick:P,children:i})]})},i)}))})}));export{h as default};
|
|
2
2
|
//# sourceMappingURL=PadsTableHead.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PadsTableHead.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { CompletionsOffsetWellPickerProps } from '../types';\n\nimport TableSortLabel from './TableSortLabel';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableHead.scss';\n\ntype Props = {\n allWellIds: number[];\n handleSelectPads: ReturnType<typeof usePadTableHandlers>['handleSelectPads'];\n setSortBy: (sortBy: SortBy | null) => void;\n setSortDirection: Dispatch<SetStateAction<SortDirection>>;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadsTableHead: FC<Props> = memo(\n ({\n handleSelectPads,\n allWellIds,\n selectedOffsetWellIds,\n setSortBy,\n setSortDirection,\n sortBy,\n sortDirection,\n }) => {\n const { padsIntermediate, isAllPadsSelected } = useMemo(() => {\n const padsIntermediate =\n allWellIds?.length !== selectedOffsetWellIds?.length && !!selectedOffsetWellIds?.length;\n\n const isAllPadsSelected = selectedOffsetWellIds.length === allWellIds?.length;\n return { padsIntermediate, isAllPadsSelected };\n }, [allWellIds, selectedOffsetWellIds]);\n\n const handleChangeSortBy = useCallback(\n (nsortBy: SortBy) => {\n setSortBy(nsortBy);\n setSortDirection(\n nsortBy === sortBy && sortDirection === SortDirection.ASC\n ? SortDirection.DESC\n : SortDirection.ASC\n );\n },\n [setSortBy, setSortDirection, sortBy, sortDirection]\n );\n\n return (\n <TableRow>\n {COLUMNS.map(({ title, sortBy: columnSortBy }, index) => (\n <TableCell\n key={title}\n className={styles.headCell}\n style={{ width: COLUMNS[index].width }}\n >\n <div className={styles.cellContent}>\n {!index && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPads(checked)}\n checked={isAllPadsSelected}\n indeterminate={padsIntermediate}\n />\n )}\n <TableSortLabel\n title=\"Sort\"\n active={sortBy === columnSortBy}\n sortBy={columnSortBy}\n direction={\n sortBy === columnSortBy && sortDirection === SortDirection.DESC ? 'desc' : 'asc'\n }\n onClick={handleChangeSortBy}\n >\n {title}\n </TableSortLabel>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n }\n);\n\nexport default PadsTableHead;\n"],"names":["PadsTableHead","memo","_ref","handleSelectPads","allWellIds","selectedOffsetWellIds","setSortBy","setSortDirection","sortBy","sortDirection","useMemo","padsIntermediate","length","isAllPadsSelected","handleChangeSortBy","useCallback","nsortBy","SortDirection","ASC","DESC","_jsx","TableRow","children","COLUMNS","map","index","title","columnSortBy","TableCell","className","styles","headCell","style","width","_jsxs","cellContent","Checkbox","size","onChange","checked","indeterminate","TableSortLabel","active","direction","onClick"],"mappings":"4cAuBA,IAAMA,EAA2BC,GAC/B,SAQMC,GAAA,IAPJC,IAAAA,iBACAC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,cAEgDC,EAAAA,GAAQ,WAKtD,MAAO,CAAEC,kBAHPP,aAAU,EAAVA,EAAYQ,WAAWP,aAAqB,EAArBA,EAAuBO,WAAYP,UAAAA,EAAuBO,QAGxDC,kBADDR,EAAsBO,UAAWR,aAAU,EAAVA,EAAYQ,QAEzE,GAAG,CAACR,EAAYC,IANRM,IAAAA,iBAAkBE,IAAAA,kBAQpBC,EAAqBC,GACzB,SAACC,GACCV,EAAUU,GACVT,EACES,IAAYR,GAAUC,IAAkBQ,EAAcC,IAClDD,EAAcE,KACdF,EAAcC,IAErB,GACD,CAACZ,EAAWC,EAAkBC,EAAQC,IAGxC,OACEW,EAACC,EAAQ,CAAAC,SACNC,EAAQC,KAAI,
|
|
1
|
+
{"version":3,"file":"PadsTableHead.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/PadsTableHead.tsx"],"sourcesContent":["import { Dispatch, FC, memo, SetStateAction, useCallback, useMemo } from 'react';\n\nimport { Checkbox } from '../../../componentsV2/Checkbox';\nimport { TableCell } from '../../../components/Table/TableCell/TableCell';\nimport { TableRow } from '../../../components/Table/TableRow';\nimport { CompletionsOffsetWellPickerProps } from '../types';\n\nimport TableSortLabel from './TableSortLabel';\nimport { SortBy, SortDirection } from './helpers/sortPads';\nimport { COLUMNS } from './helpers/columns';\nimport { usePadTableHandlers } from './helpers/usePadTableHandlers';\n\nimport styles from './PadsTableHead.scss';\n\ntype Props = {\n allWellIds: number[];\n handleSelectPads: ReturnType<typeof usePadTableHandlers>['handleSelectPads'];\n setSortBy: (sortBy: SortBy | null) => void;\n setSortDirection: Dispatch<SetStateAction<SortDirection>>;\n sortBy: SortBy | null;\n sortDirection: SortDirection;\n} & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>;\n\nconst PadsTableHead: FC<Props> = memo(\n ({\n handleSelectPads,\n allWellIds,\n selectedOffsetWellIds,\n setSortBy,\n setSortDirection,\n sortBy,\n sortDirection,\n }) => {\n const { padsIntermediate, isAllPadsSelected } = useMemo(() => {\n const padsIntermediate =\n allWellIds?.length !== selectedOffsetWellIds?.length && !!selectedOffsetWellIds?.length;\n\n const isAllPadsSelected = selectedOffsetWellIds.length === allWellIds?.length;\n return { padsIntermediate, isAllPadsSelected };\n }, [allWellIds, selectedOffsetWellIds]);\n\n const handleChangeSortBy = useCallback(\n (nsortBy: SortBy) => {\n setSortBy(nsortBy);\n setSortDirection(\n nsortBy === sortBy && sortDirection === SortDirection.ASC\n ? SortDirection.DESC\n : SortDirection.ASC\n );\n },\n [setSortBy, setSortDirection, sortBy, sortDirection]\n );\n\n return (\n <TableRow>\n {COLUMNS.map(({ id, title, sortBy: columnSortBy }, index) => (\n <TableCell\n key={title}\n className={styles.headCell}\n style={{ width: COLUMNS[index].width }}\n data-testid={`${id}Header`}\n >\n <div className={styles.cellContent}>\n {!index && (\n <Checkbox\n size=\"medium\"\n onChange={checked => handleSelectPads(checked)}\n checked={isAllPadsSelected}\n indeterminate={padsIntermediate}\n testId=\"selectAllPadsCheckbox\"\n />\n )}\n <TableSortLabel\n title=\"Sort\"\n active={sortBy === columnSortBy}\n sortBy={columnSortBy}\n direction={\n sortBy === columnSortBy && sortDirection === SortDirection.DESC ? 'desc' : 'asc'\n }\n onClick={handleChangeSortBy}\n >\n {title}\n </TableSortLabel>\n </div>\n </TableCell>\n ))}\n </TableRow>\n );\n }\n);\n\nexport default PadsTableHead;\n"],"names":["PadsTableHead","memo","_ref","handleSelectPads","allWellIds","selectedOffsetWellIds","setSortBy","setSortDirection","sortBy","sortDirection","useMemo","padsIntermediate","length","isAllPadsSelected","handleChangeSortBy","useCallback","nsortBy","SortDirection","ASC","DESC","_jsx","TableRow","children","COLUMNS","map","index","id","title","columnSortBy","TableCell","className","styles","headCell","style","width","concat","_jsxs","cellContent","Checkbox","size","onChange","checked","indeterminate","testId","TableSortLabel","active","direction","onClick"],"mappings":"4cAuBA,IAAMA,EAA2BC,GAC/B,SAQMC,GAAA,IAPJC,IAAAA,iBACAC,IAAAA,WACAC,IAAAA,sBACAC,IAAAA,UACAC,IAAAA,iBACAC,IAAAA,OACAC,IAAAA,cAEgDC,EAAAA,GAAQ,WAKtD,MAAO,CAAEC,kBAHPP,aAAU,EAAVA,EAAYQ,WAAWP,aAAqB,EAArBA,EAAuBO,WAAYP,UAAAA,EAAuBO,QAGxDC,kBADDR,EAAsBO,UAAWR,aAAU,EAAVA,EAAYQ,QAEzE,GAAG,CAACR,EAAYC,IANRM,IAAAA,iBAAkBE,IAAAA,kBAQpBC,EAAqBC,GACzB,SAACC,GACCV,EAAUU,GACVT,EACES,IAAYR,GAAUC,IAAkBQ,EAAcC,IAClDD,EAAcE,KACdF,EAAcC,IAErB,GACD,CAACZ,EAAWC,EAAkBC,EAAQC,IAGxC,OACEW,EAACC,EAAQ,CAAAC,SACNC,EAAQC,KAAI,WAAsCC,GAAK,IAAxCC,IAAAA,GAAIC,IAAAA,MAAeC,IAARpB,OAAM,OAC/BY,EAACS,EAAS,CAERC,UAAWC,EAAOC,SAClBC,MAAO,CAAEC,MAAOX,EAAQE,GAAOS,OAC/B,cAAA,GAAAC,OAAgBT,EAAW,UAAAJ,SAE3Bc,EAAA,MAAA,CAAKN,UAAWC,EAAOM,YAAYf,SAAA,EAC/BG,GACAL,EAACkB,EAAQ,CACPC,KAAK,SACLC,SAAU,SAAAC,GAAO,OAAItC,EAAiBsC,EAAS,EAC/CA,QAAS5B,EACT6B,cAAe/B,EACfgC,OAAO,0BAGXvB,EAACwB,EAAc,CACbjB,MAAM,OACNkB,OAAQrC,IAAWoB,EACnBpB,OAAQoB,EACRkB,UACEtC,IAAWoB,GAAgBnB,IAAkBQ,EAAcE,KAAO,OAAS,MAE7E4B,QAASjC,EAAmBQ,SAE3BK,QAxBAA,OA+Bf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"TableSortLabel.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAahD,CAAC;eAEa,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as t}from"react";import{TableSortLabel as r}from"@material-ui/core";import{Tooltip as i}from"../../Tooltip/Tooltip.js";import{jsx as
|
|
1
|
+
import{memo as t}from"react";import{TableSortLabel as r}from"@material-ui/core";import{Tooltip as i}from"../../Tooltip/Tooltip.js";import{jsx as o}from"react/jsx-runtime";var e=t((function(t){var e=t.title,n=t.active,a=t.direction,c=t.onClick,l=t.children,m=t.sortBy;return o(i,{placement:"top-end",title:e,children:o(r,{active:n,direction:a,onClick:function(){return c(m)},"data-testid":"sortButton",children:l})})}));export{e as default};
|
|
2
2
|
//# sourceMappingURL=TableSortLabel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSortLabel.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"sourcesContent":["import { FC, memo, PropsWithChildren } from 'react';\nimport { TableSortLabel as MuiTableSortLabel } from '@material-ui/core';\n\nimport { Tooltip } from '../../Tooltip';\n\nimport { SortBy } from './helpers/sortPads';\n\ntype Props = {\n title: string;\n active: boolean;\n direction?: 'asc' | 'desc';\n sortBy: SortBy;\n onClick: (sortBy: SortBy) => void;\n};\n\nconst TableSortLabel: FC<PropsWithChildren<Props>> = memo(\n ({ title, active, direction, onClick, children, sortBy }) => (\n <Tooltip placement=\"top-end\" title={title}>\n <MuiTableSortLabel
|
|
1
|
+
{"version":3,"file":"TableSortLabel.js","sources":["../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/TableSortLabel.tsx"],"sourcesContent":["import { FC, memo, PropsWithChildren } from 'react';\nimport { TableSortLabel as MuiTableSortLabel } from '@material-ui/core';\n\nimport { Tooltip } from '../../Tooltip';\n\nimport { SortBy } from './helpers/sortPads';\n\ntype Props = {\n title: string;\n active: boolean;\n direction?: 'asc' | 'desc';\n sortBy: SortBy;\n onClick: (sortBy: SortBy) => void;\n};\n\nconst TableSortLabel: FC<PropsWithChildren<Props>> = memo(\n ({ title, active, direction, onClick, children, sortBy }) => (\n <Tooltip placement=\"top-end\" title={title}>\n <MuiTableSortLabel\n active={active}\n direction={direction}\n onClick={() => onClick(sortBy)}\n data-testid=\"sortButton\"\n >\n {children}\n </MuiTableSortLabel>\n </Tooltip>\n )\n);\n\nexport default TableSortLabel;\n"],"names":["TableSortLabel","memo","_ref","title","active","direction","onClick","children","sortBy","_jsx","Tooltip","placement","MuiTableSortLabel"],"mappings":"2KAeMA,IAAAA,EAA+CC,GACnD,SAAAC,GAAA,IAAGC,IAAAA,MAAOC,IAAAA,OAAQC,IAAAA,UAAWC,IAAAA,QAASC,IAAAA,SAAUC,IAAAA,OAAM,OACpDC,EAACC,EAAO,CAACC,UAAU,UAAUR,MAAOA,EAAMI,SACxCE,EAACG,EAAiB,CAChBR,OAAQA,EACRC,UAAWA,EACXC,QAAS,WAAA,OAAMA,EAAQE,EAAQ,EAC/B,cAAY,aAAYD,SAEvBA,KAEK"}
|
|
@@ -3,6 +3,7 @@ import { usePadTableHandlers } from './usePadTableHandlers';
|
|
|
3
3
|
import { SortBy } from './sortPads';
|
|
4
4
|
export declare const formatDistanceMiles: (distanceMiles?: number) => string;
|
|
5
5
|
export declare const COLUMNS: Array<{
|
|
6
|
+
id: string;
|
|
6
7
|
title: string;
|
|
7
8
|
sortBy: SortBy;
|
|
8
9
|
render: (_params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMpC,eAAO,MAAM,mBAAmB,mBAAoB,MAAM,KAAG,MAGlD,CAAC;AAKZ,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CACN,OAAO,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;KAClF,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,KAChE,KAAK,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAMpC,eAAO,MAAM,mBAAmB,mBAAoB,MAAM,KAAG,MAGlD,CAAC;AAKZ,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CACN,OAAO,EAAE;QACP,IAAI,EAAE,SAAS,CAAC;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,CAAC;KAClF,GAAG,IAAI,CAAC,gCAAgC,EAAE,uBAAuB,CAAC,KAChE,KAAK,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAkHA,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Text as o}from"../../../Text/Text.js";import{Checkbox as s}from"../../../Checkbox/Checkbox.js";import c from"../../../../components/TruncatedText/index.js";import{HighlightText as i}from"./HighlightText.js";import{SortBy as n}from"./sortPads.js";import t from"./columns.scss.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import"@icon-park/react/es/all";import{jsxs as e,jsx as r,Fragment as m}from"react/jsx-runtime";import"../../../../icons/IconParkProvider.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/DragOne.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/SearchOne.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/InfoRounded.js";import"../../../../icons/customIcons/icons/FlameFilled.js";import"../../../../icons/customIcons/icons/MoreApp.js";import"../../../../icons/customIcons/icons/Pad.js";import"../../../../icons/customIcons/icons/DrilloutUnit.js";import{FracFleet as
|
|
1
|
+
import{Text as o}from"../../../Text/Text.js";import{Checkbox as s}from"../../../Checkbox/Checkbox.js";import c from"../../../../components/TruncatedText/index.js";import{HighlightText as i}from"./HighlightText.js";import{SortBy as n}from"./sortPads.js";import t from"./columns.scss.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react";import"@icon-park/react/es/all";import{jsxs as e,jsx as r,Fragment as m}from"react/jsx-runtime";import"../../../../icons/IconParkProvider.js";import"../../../../icons/customIcons/icons/AddMessage.js";import"../../../../icons/customIcons/icons/DragOne.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/SearchOne.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/InfoRounded.js";import"../../../../icons/customIcons/icons/FlameFilled.js";import"../../../../icons/customIcons/icons/MoreApp.js";import"../../../../icons/customIcons/icons/Pad.js";import"../../../../icons/customIcons/icons/DrilloutUnit.js";import{FracFleet as a}from"../../../../icons/customIcons/icons/FracFleet.js";import"../../../../icons/customIcons/icons/Global.js";import"../../../../icons/customIcons/icons/Program.js";import"../../../../icons/customIcons/icons/Rig.js";import"../../../../icons/customIcons/icons/Well.js";import"../../../../icons/customIcons/icons/Gap.js";import"../../../../icons/customIcons/icons/Pin.js";import"../../../../icons/customIcons/icons/PinOne.js";import"../../../../icons/customIcons/icons/PinOneCrossed.js";import"../../../../icons/customIcons/icons/CloseOneFilled.js";import"../../../../icons/customIcons/icons/AttentionFilled.js";import"../../../../icons/customIcons/icons/CheckOneFilled.js";import"../../../../icons/customIcons/icons/Archive.js";import"../../../../icons/customIcons/icons/ArchiveCancel.js";import"../../../../icons/customIcons/icons/Unarchive.js";import"../../../../icons/customIcons/icons/Archived.js";import"../../../../icons/customIcons/icons/InterventionUnit.js";import"../../../../icons/customIcons/icons/CloudDelete.js";import"../../../../icons/customIcons/icons/Lasso.js";import"../../../../icons/customIcons/icons/Radius.js";import"../../../../icons/customIcons/icons/ErrorOps.js";import"../../../../icons/customIcons/icons/DataTypeOps.js";import"../../../../icons/customIcons/icons/FalsePositiveOps.js";import"../../../../icons/customIcons/icons/CalibrationOps.js";import"../../../../icons/customIcons/icons/CriticalOps.js";import"../../../../icons/customIcons/icons/Company.js";import"../../../../icons/customIcons/icons/ArchiveOne.js";import"../../../../icons/customIcons/icons/ParseBotFusion.js";import"../../../../icons/customIcons/icons/Connect.js";import"../../../../icons/customIcons/icons/PuzzleOne.js";import"../../../../icons/customIcons/icons/Feed.js";import"../../../../icons/customIcons/icons/Prompt.js";import"../../../../icons/customIcons/icons/Companies.js";import"../../../../icons/customIcons/icons/ClipboardAi.js";import"../../../../icons/customIcons/icons/Key.js";import"../../../../icons/customIcons/icons/AtSignCrossed.js";import"../../../../icons/customIcons/icons/MappingManual.js";import"../../../../icons/customIcons/icons/Mapping.js";import"../../../../icons/customIcons/icons/Metrics.js";import"../../../../icons/customIcons/icons/Drops.js";import"../../../../icons/customIcons/icons/ClipboardSearch.js";import"../../../../icons/customIcons/icons/Template.js";import"../../../../icons/customIcons/icons/ClipboardMetrics.js";import"../../../../icons/customIcons/icons/ClipboardBuilder.js";import"../../../../icons/customIcons/icons/UnitConversion.js";import"../../../../icons/customIcons/icons/NPT.js";import"../../../../icons/customIcons/icons/GuidedFrac.js";var l=function(o){return"number"==typeof o&&Number.isFinite(o)?o.toFixed(2):"N/A"},p=[{id:"pad",width:"28%",title:"Pad / Frac Fleet Name",sortBy:n.PAD,render:function(s){var c=s.data,n=s.searchText,m=s.isMainPad;return e("div",{className:m?t.subjectCell:void 0,children:[m&&r("div",{className:t.subjectPad,"data-testid":"subjectPadLabel",children:"Subject Pad"}),r(o,{children:r(i,{text:c.name||"",highlight:n})}),e("div",{className:t.fleet,children:[r(a,{size:13,className:t.fleetIcon}),r(o,{color:"T8",size:12,children:r(i,{text:c.fleetName,highlight:n})})]})]})}},{id:"wellName",width:"28%",title:"Well Name",sortBy:n.WELL,render:function(n){var a=n.data,l=n.isSelected,p=n.selectedOffsetWellIds,u=n.handleSelectWellId,d=n.isExpanded,j=n.isMainPad,I=n.searchText;return l||d||j?r(m,{children:a.wells.map((function(o){return e("div",{className:t.listItem,children:[!j&&r(s,{checked:p.includes(o.id),onChange:function(s){return u(o.id,s)},testId:"".concat(o.id,"_wellCheckbox")}),r(c,{maxLines:2,children:r(i,{text:o.name,highlight:I})})]},o.id)}))}):r(o,{children:"Wells (".concat(a.wells.length,")")})}},{id:"formation",width:"18%",title:"Formation",sortBy:n.FORMATION,render:function(s){var c=s.data,n=s.isSelected,e=s.isExpanded,a=s.isMainPad,l=s.searchText;return n||e||a?r(m,{children:c.wells.map((function(s){return r("div",{className:t.listItem,children:r(o,{className:t.breakWord,children:r(i,{text:s.formation||"N/A",highlight:l})})},s.id)}))}):r(o,{children:"Formations (".concat(c.wells.length,")")})}},{id:"tvd",width:"12%",title:"TVD (ft)",sortBy:n.TVD,render:function(s){var c=s.data,i=s.isSelected,n=s.isExpanded,e=s.isMainPad;return i||n||e?r(m,{children:c.wells.map((function(s){return r(o,{className:t.listItem,children:s.totalDepth.toFixed(0)},s.id)}))}):null}},{id:"distance",width:"14%",title:"Distance (mi)",sortBy:n.DISTANCE,render:function(s){var c=s.data;return r(o,{children:l(c.distanceMiles)})}}];export{p as COLUMNS,l as formatDistanceMiles};
|
|
2
2
|
//# sourceMappingURL=columns.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns.js","sources":["../../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.tsx"],"sourcesContent":["import { Text } from '../../../Text';\nimport { Checkbox } from '../../../Checkbox';\nimport TruncatedText from '../../../../components/TruncatedText';\nimport { CompletionsOffsetWellPickerProps, MappedPad } from '../../types';\n\nimport { usePadTableHandlers } from './usePadTableHandlers';\nimport { HighlightText } from './HighlightText';\nimport { SortBy } from './sortPads';\n\nimport styles from './columns.scss';\n\nimport { FracFleet } from '~/icons';\n\nexport const formatDistanceMiles = (distanceMiles?: number): string =>\n typeof distanceMiles === 'number' && Number.isFinite(distanceMiles)\n ? distanceMiles.toFixed(2)\n : 'N/A';\n\n// Widths must sum to 100%. Header and body tables both use table-layout: fixed,\n// so TVD / Distance need enough room for the label plus the sort icon (~100px\n// at the narrowest map-visible layout) or the header text gets clipped.\nexport const COLUMNS: Array<{\n title: string;\n sortBy: SortBy;\n render: (\n _params: {\n data: MappedPad;\n isSelected: boolean;\n isExpanded: boolean;\n isMainPad: boolean;\n searchText: string;\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n } & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>\n ) => React.ReactNode;\n width: string;\n}> = [\n {\n width: '28%',\n title: 'Pad / Frac Fleet Name',\n sortBy: SortBy.PAD,\n render: ({ data, searchText, isMainPad }) => (\n <div className={isMainPad ? styles.subjectCell : undefined}>\n {isMainPad && <div className={styles.subjectPad}
|
|
1
|
+
{"version":3,"file":"columns.js","sources":["../../../../../src/componentsV2/CompletionsOffsetWellPicker/PadsTable/helpers/columns.tsx"],"sourcesContent":["import { Text } from '../../../Text';\nimport { Checkbox } from '../../../Checkbox';\nimport TruncatedText from '../../../../components/TruncatedText';\nimport { CompletionsOffsetWellPickerProps, MappedPad } from '../../types';\n\nimport { usePadTableHandlers } from './usePadTableHandlers';\nimport { HighlightText } from './HighlightText';\nimport { SortBy } from './sortPads';\n\nimport styles from './columns.scss';\n\nimport { FracFleet } from '~/icons';\n\nexport const formatDistanceMiles = (distanceMiles?: number): string =>\n typeof distanceMiles === 'number' && Number.isFinite(distanceMiles)\n ? distanceMiles.toFixed(2)\n : 'N/A';\n\n// Widths must sum to 100%. Header and body tables both use table-layout: fixed,\n// so TVD / Distance need enough room for the label plus the sort icon (~100px\n// at the narrowest map-visible layout) or the header text gets clipped.\nexport const COLUMNS: Array<{\n id: string;\n title: string;\n sortBy: SortBy;\n render: (\n _params: {\n data: MappedPad;\n isSelected: boolean;\n isExpanded: boolean;\n isMainPad: boolean;\n searchText: string;\n handleSelectWellId: ReturnType<typeof usePadTableHandlers>['handleSelectWellId'];\n } & Pick<CompletionsOffsetWellPickerProps, 'selectedOffsetWellIds'>\n ) => React.ReactNode;\n width: string;\n}> = [\n {\n id: 'pad',\n width: '28%',\n title: 'Pad / Frac Fleet Name',\n sortBy: SortBy.PAD,\n render: ({ data, searchText, isMainPad }) => (\n <div className={isMainPad ? styles.subjectCell : undefined}>\n {isMainPad && (\n <div className={styles.subjectPad} data-testid=\"subjectPadLabel\">\n Subject Pad\n </div>\n )}\n <Text>\n <HighlightText text={data.name || ''} highlight={searchText} />\n </Text>\n <div className={styles.fleet}>\n <FracFleet size={13} className={styles.fleetIcon} />\n <Text color=\"T8\" size={12}>\n <HighlightText text={data.fleetName} highlight={searchText} />\n </Text>\n </div>\n </div>\n ),\n },\n {\n id: 'wellName',\n width: '28%',\n title: 'Well Name',\n sortBy: SortBy.WELL,\n render: ({\n data,\n isSelected,\n selectedOffsetWellIds,\n handleSelectWellId,\n isExpanded,\n isMainPad,\n searchText,\n }) => {\n if (isSelected || isExpanded || isMainPad) {\n return (\n <>\n {data.wells.map(well => (\n <div key={well.id} className={styles.listItem}>\n {!isMainPad && (\n <Checkbox\n checked={selectedOffsetWellIds.includes(well.id)}\n onChange={checked => handleSelectWellId(well.id, checked)}\n testId={`${well.id}_wellCheckbox`}\n />\n )}\n <TruncatedText maxLines={2}>\n <HighlightText text={well.name} highlight={searchText} />\n </TruncatedText>\n </div>\n ))}\n </>\n );\n }\n\n return <Text>{`Wells (${data.wells.length})`}</Text>;\n },\n },\n {\n id: 'formation',\n width: '18%',\n title: 'Formation',\n sortBy: SortBy.FORMATION,\n render: ({ data, isSelected, isExpanded, isMainPad, searchText }) => {\n if (isSelected || isExpanded || isMainPad) {\n return (\n <>\n {data.wells.map(well => (\n <div key={well.id} className={styles.listItem}>\n <Text className={styles.breakWord}>\n <HighlightText text={well.formation || 'N/A'} highlight={searchText} />\n </Text>\n </div>\n ))}\n </>\n );\n }\n\n return <Text>{`Formations (${data.wells.length})`}</Text>;\n },\n },\n {\n id: 'tvd',\n width: '12%',\n title: 'TVD (ft)',\n sortBy: SortBy.TVD,\n render: ({ data, isSelected, isExpanded, isMainPad }) => {\n if (isSelected || isExpanded || isMainPad) {\n return (\n <>\n {data.wells.map(well => (\n <Text key={well.id} className={styles.listItem}>\n {well.totalDepth.toFixed(0)}\n </Text>\n ))}\n </>\n );\n }\n\n return null;\n },\n },\n {\n id: 'distance',\n width: '14%',\n title: 'Distance (mi)',\n sortBy: SortBy.DISTANCE,\n render: ({ data }) => <Text>{formatDistanceMiles(data.distanceMiles)}</Text>,\n },\n];\n"],"names":["formatDistanceMiles","distanceMiles","Number","isFinite","toFixed","COLUMNS","id","width","title","sortBy","SortBy","PAD","render","_ref","data","searchText","isMainPad","_jsxs","className","styles","subjectCell","undefined","children","_jsx","subjectPad","Text","HighlightText","text","name","highlight","fleet","FracFleet","size","fleetIcon","color","fleetName","WELL","_ref2","isSelected","selectedOffsetWellIds","handleSelectWellId","isExpanded","_Fragment","wells","map","well","listItem","Checkbox","checked","includes","onChange","testId","concat","TruncatedText","maxLines","length","FORMATION","_ref3","breakWord","formation","TVD","_ref4","totalDepth","DISTANCE","_ref5"],"mappings":"2xJAaaA,EAAsB,SAACC,GAAsB,MAC/B,iBAAlBA,GAA8BC,OAAOC,SAASF,GACjDA,EAAcG,QAAQ,GACtB,KAAK,EAKEC,EAeR,CACH,CACEC,GAAI,MACJC,MAAO,MACPC,MAAO,wBACPC,OAAQC,EAAOC,IACfC,OAAQ,SAAAC,GAAA,IAAGC,IAAAA,KAAMC,IAAAA,WAAYC,IAAAA,UAAS,OACpCC,EAAA,MAAA,CAAKC,UAAWF,EAAYG,EAAOC,iBAAcC,EAAUC,SAAA,CACxDN,GACCO,EAAA,MAAA,CAAKL,UAAWC,EAAOK,WAAY,cAAY,kBAAiBF,SAAA,gBAIlEC,EAACE,EAAI,CAAAH,SACHC,EAACG,EAAa,CAACC,KAAMb,EAAKc,MAAQ,GAAIC,UAAWd,MAEnDE,EAAA,MAAA,CAAKC,UAAWC,EAAOW,MAAMR,SAAA,CAC3BC,EAACQ,EAAS,CAACC,KAAM,GAAId,UAAWC,EAAOc,YACvCV,EAACE,EAAI,CA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
|
1
|
+
{"version":3,"file":"DragHandle.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DragHandle/DragHandle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAEvC,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAE5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAQF,eAAO,MAAM,UAAU,+GActB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as c}from"react";import{ButtonIcon as i}from"../ButtonIcon/ButtonIcon.js";import{DragIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/SearchOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsx as t}from"react/jsx-runtime";var r=["size"];function m(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function e(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?m(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var p=c((function(o,c){var m=o.size,
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as c}from"react";import{ButtonIcon as i}from"../ButtonIcon/ButtonIcon.js";import{DragIcon as n}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/SearchOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsx as t}from"react/jsx-runtime";var r=["size","type"];function m(o,s){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),c.push.apply(c,i)}return c}function e(s){for(var c=1;c<arguments.length;c++){var i=null!=arguments[c]?arguments[c]:{};c%2?m(Object(i),!0).forEach((function(c){o(s,c,i[c])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(i,o))}))}return s}var p={primary:"primary",secondary:"tertiaryBg",tertiary:"tertiary"},u=c((function(o,c){var m=o.size,u=void 0===m?"medium":m,j=o.type,I=void 0===j?"secondary":j,a=s(o,r);return t(i,e(e({},a),{},{size:u,type:p[I],disableFocusState:!0,ref:c,children:t(n,{})}))}));export{u as DragHandle};
|
|
2
2
|
//# sourceMappingURL=DragHandle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragHandle.js","sources":["../../../src/componentsV2/DragHandle/DragHandle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport { ButtonIcon, ButtonIconProps } from '../ButtonIcon';\nimport { DragIcon } from '../../icons';\nimport { InferComponentRefType } from '../types';\n\nexport type DragHandleProps = {\n onClick?: ButtonIconProps['onClick'];\n onMouseDown?: ButtonIconProps['onMouseDown'];\n onMouseUp?: ButtonIconProps['onMouseUp'];\n size?: ButtonIconProps['size'];\n disabled?: ButtonIconProps['disabled'];\n\n className?: string;\n testId?: string;\n};\n\nexport const DragHandle = forwardRef<InferComponentRefType<typeof ButtonIcon>, DragHandleProps>(\n ({ size = 'medium', ...rest }, ref) => {\n return (\n <ButtonIcon
|
|
1
|
+
{"version":3,"file":"DragHandle.js","sources":["../../../src/componentsV2/DragHandle/DragHandle.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport { ButtonIcon, ButtonIconProps } from '../ButtonIcon';\nimport { DragIcon } from '../../icons';\nimport { InferComponentRefType } from '../types';\n\nexport type DragHandleProps = {\n onClick?: ButtonIconProps['onClick'];\n onMouseDown?: ButtonIconProps['onMouseDown'];\n onMouseUp?: ButtonIconProps['onMouseUp'];\n size?: ButtonIconProps['size'];\n disabled?: ButtonIconProps['disabled'];\n\n type?: 'primary' | 'secondary' | 'tertiary';\n\n className?: string;\n testId?: string;\n};\n\nconst TypeToButtonTypeMap: Record<Required<DragHandleProps>['type'], ButtonIconProps['type']> = {\n primary: 'primary',\n secondary: 'tertiaryBg',\n tertiary: 'tertiary',\n};\n\nexport const DragHandle = forwardRef<InferComponentRefType<typeof ButtonIcon>, DragHandleProps>(\n ({ size = 'medium', type = 'secondary', ...rest }, ref) => {\n return (\n <ButtonIcon\n {...rest}\n size={size}\n type={TypeToButtonTypeMap[type]}\n disableFocusState\n ref={ref}\n >\n <DragIcon />\n </ButtonIcon>\n );\n }\n);\n"],"names":["TypeToButtonTypeMap","primary","secondary","tertiary","DragHandle","forwardRef","_ref","ref","_ref$size","size","_ref$type","type","rest","_objectWithoutProperties","_excluded","_jsx","ButtonIcon","_objectSpread","disableFocusState","children","DragIcon"],"mappings":"sqJAmBA,IAAMA,EAA0F,CAC9FC,QAAS,UACTC,UAAW,aACXC,SAAU,YAGCC,EAAaC,GACxB,SAAAC,EAAmDC,GAAQ,IAAAC,EAAAF,EAAxDG,KAAAA,aAAO,SAAQD,EAAAE,EAAAJ,EAAEK,KAAAA,aAAO,YAAWD,EAAKE,EAAIC,EAAAP,EAAAQ,GAC7C,OACEC,EAACC,EAAUC,EAAAA,EAAA,GACLL,GAAI,GAAA,CACRH,KAAMA,EACNE,KAAMX,EAAoBW,GAC1BO,mBAAiB,EACjBX,IAAKA,EAAIY,SAETJ,EAACK,EAAQ,MAGf"}
|
|
@@ -6,4 +6,5 @@ declare const meta: Meta<Props>;
|
|
|
6
6
|
export default meta;
|
|
7
7
|
export declare const Default: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Type: () => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=DragHandle.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragHandle.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DragHandle/DragHandle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;eAca,IAAI;AAEnB,eAAO,MAAM,OAAO,UAAW,KAAK,4CAA8B,CAAC;AAKnE,eAAO,MAAM,KAAK,+CAOjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"DragHandle.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/DragHandle/DragHandle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;eAca,IAAI;AAEnB,eAAO,MAAM,OAAO,UAAW,KAAK,4CAA8B,CAAC;AAKnE,eAAO,MAAM,KAAK,+CAOjB,CAAC;AAUF,eAAO,MAAM,IAAI,+CAMhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellsButton.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"OffsetWellsButton.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,SAAS,EAGV,MAAM,OAAO,CAAC;AAWf,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,iBAAiB,mHA4F7B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"classnames";import{forwardRef as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import s from"classnames";import{forwardRef as c,useState as i,useCallback as n}from"react";import{Button as t}from"../Button/Button.js";import{Tooltip as m}from"../Tooltip/Tooltip.js";import{useOffsetWellsIcon as r}from"./useOffsetWellsIcon.js";import e from"./OffsetWellsButton.scss.js";import{InfoIcon as p,DownIcon as u}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/SearchOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import{jsxs as l,jsx as a}from"react/jsx-runtime";var I=[],j=c((function(c,j){var d=c.wells,h=void 0===d?I:d,f=c.showLimitationsMessage,C=c.label,b=void 0===C?"Offset Wells":C,O=c.onExpand,x=c.expanded,F=c.onClick,v=c.disabled,A=c.isExpandTooltipDisabled,P=c.tooltipTitle,g=c.forceExpandButton,y=c.icon,E=c.testId,M=c.className,k=Array.isArray(h)?h:I,N=r(k,y),B=i(!1),T=o(B,2),D=T[0],R=T[1],W=n((function(){return R(!0)}),[]),S=n((function(){return R(!1)}),[]),w=n((function(o){o.stopPropagation(),null==O||O(!x,o)}),[O,x]),z="number"==typeof h?h:h.length,G=!!O&&(z>0||g),L="string"!=typeof b;return l("div",{className:s(e.root,M),ref:j,children:[f&&a(m,{title:"".concat(b," list wasn't populated completely due to technical limitations of the app."),children:a("span",{className:e.infoIcon,children:a(p,{size:20})})}),a(m,{title:null!=P?P:"Edit Offset Wells",open:D,children:a(t,{type:"chart",size:"small",disabled:v,onClick:F,testId:E,className:s(e.button,G&&e.withExpand),prefix:N?a("span",{className:e.icon,children:N}):void 0,suffix:G&&a(m,{title:"".concat(x?"Collapse":"Expand"," ").concat(b),disabled:A,children:a("button",{type:"button",onClick:w,disabled:v,className:s(e.expandButton,x&&e.expandedButton),children:a(u,{className:s(e.expandIcon,x&&e.expanded)})})}),children:l("span",{className:e.label,onMouseEnter:W,onMouseLeave:S,children:[b,L||!b?"":": ",z]})})})]})}));export{j as OffsetWellsButton};
|
|
2
2
|
//# sourceMappingURL=OffsetWellsButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OffsetWellsButton.js","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {
|
|
1
|
+
{"version":3,"file":"OffsetWellsButton.js","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport {\n forwardRef,\n MouseEvent,\n MouseEventHandler,\n ReactElement,\n ReactNode,\n useCallback,\n useState,\n} from 'react';\n\nimport { Button } from '../Button';\nimport { Tooltip } from '../Tooltip';\n\nimport { useOffsetWellsIcon } from './useOffsetWellsIcon';\n\nimport styles from './OffsetWellsButton.scss';\n\nimport { DownIcon, InfoIcon } from '~/icons';\n\nexport type OffsetWell = {\n id: number;\n [key: string]: unknown;\n};\n\nexport type OffsetWellsButtonProps = {\n wells?: OffsetWell[] | number;\n onClick?: MouseEventHandler;\n /**\n * Whether the wells list is currently expanded\n */\n expanded?: boolean;\n /**\n * Callback fired when expand/collapse button is clicked\n */\n onExpand?: (expanded: boolean, event: MouseEvent<HTMLButtonElement>) => void;\n /**\n * Shows info icon with limitations warning tooltip\n */\n showLimitationsMessage?: boolean;\n /**\n * Custom label for the button (defaults to \"Offset Wells\")\n */\n label?: ReactNode;\n /**\n * Disables all interactions with the component\n */\n disabled?: boolean;\n /**\n * Disables tooltips on expand/collapse button\n */\n isExpandTooltipDisabled?: boolean;\n /**\n * Custom text for the edit tooltip (defaults to 'Edit Offset Wells')\n */\n tooltipTitle?: string;\n /**\n * Force showing expand icon even when wells === 0\n */\n forceExpandButton?: boolean;\n /**\n * Icon to display in the button (defaults to Well icon)\n */\n icon?: ReactElement | null;\n /**\n * Additional CSS class name\n */\n className?: string;\n /**\n * Test ID for the main button\n */\n testId?: string;\n};\n\nconst DEFAULT_ARRAY: OffsetWell[] = [];\n\nexport const OffsetWellsButton = forwardRef<HTMLDivElement, OffsetWellsButtonProps>(\n (\n {\n wells = DEFAULT_ARRAY,\n showLimitationsMessage,\n label = 'Offset Wells',\n onExpand,\n expanded,\n onClick,\n disabled,\n isExpandTooltipDisabled,\n tooltipTitle,\n forceExpandButton,\n icon,\n testId,\n className,\n },\n ref\n ) => {\n const wellsArray = Array.isArray(wells) ? wells : DEFAULT_ARRAY;\n // Determines icon: shows Global when wells match globalOffsetWells, otherwise Well icon\n const displayIcon = useOffsetWellsIcon(wellsArray, icon);\n const [tooltipOpen, setTooltipOpen] = useState(false);\n\n const openTooltip = useCallback(() => setTooltipOpen(true), []);\n const closeTooltip = useCallback(() => setTooltipOpen(false), []);\n\n const handleExpand = useCallback<MouseEventHandler<HTMLButtonElement>>(\n event => {\n event.stopPropagation();\n onExpand?.(!expanded, event);\n },\n [onExpand, expanded]\n );\n\n const wellsCount = typeof wells === 'number' ? wells : wells.length;\n const canExpand = !!onExpand && (wellsCount > 0 || forceExpandButton);\n\n const isElementLabel = typeof label !== 'string';\n\n return (\n <div className={classNames(styles.root, className)} ref={ref}>\n {showLimitationsMessage && (\n <Tooltip\n title={`${label} list wasn't populated completely due to technical limitations of the app.`}\n >\n <span className={styles.infoIcon}>\n <InfoIcon size={20} />\n </span>\n </Tooltip>\n )}\n\n <Tooltip title={tooltipTitle ?? 'Edit Offset Wells'} open={tooltipOpen}>\n <Button\n type=\"chart\"\n size=\"small\"\n disabled={disabled}\n onClick={onClick}\n testId={testId}\n className={classNames(styles.button, canExpand && styles.withExpand)}\n prefix={displayIcon ? <span className={styles.icon}>{displayIcon}</span> : undefined}\n suffix={\n canExpand && (\n <Tooltip\n title={`${expanded ? 'Collapse' : 'Expand'} ${label}`}\n disabled={isExpandTooltipDisabled}\n >\n {/* Keeping expand as a nested button ensures the main button hover style remains active, per design. */}\n <button\n type=\"button\"\n onClick={handleExpand}\n disabled={disabled}\n className={classNames(styles.expandButton, expanded && styles.expandedButton)}\n >\n <DownIcon\n className={classNames(styles.expandIcon, expanded && styles.expanded)}\n />\n </button>\n </Tooltip>\n )\n }\n >\n <span className={styles.label} onMouseEnter={openTooltip} onMouseLeave={closeTooltip}>\n {label}\n {isElementLabel || !label ? '' : ': '}\n {wellsCount}\n </span>\n </Button>\n </Tooltip>\n </div>\n );\n }\n);\n"],"names":["DEFAULT_ARRAY","OffsetWellsButton","forwardRef","_ref","ref","_ref$wells","wells","showLimitationsMessage","_ref$label","label","onExpand","expanded","onClick","disabled","isExpandTooltipDisabled","tooltipTitle","forceExpandButton","icon","testId","className","wellsArray","Array","isArray","displayIcon","useOffsetWellsIcon","useState","_useState2","_slicedToArray","_useState","tooltipOpen","setTooltipOpen","openTooltip","useCallback","closeTooltip","handleExpand","event","stopPropagation","wellsCount","length","canExpand","isElementLabel","_jsxs","classNames","styles","root","children","_jsx","Tooltip","title","concat","infoIcon","InfoIcon","size","open","Button","type","button","withExpand","prefix","undefined","suffix","expandButton","expandedButton","DownIcon","expandIcon","onMouseEnter","onMouseLeave"],"mappings":"+uIA0EA,IAAMA,EAA8B,GAEvBC,EAAoBC,GAC/B,SAAAC,EAgBEC,GACG,IAAAC,EAAAF,EAfDG,MAAAA,aAAQN,EAAaK,EACrBE,IAAAA,uBAAsBC,EAAAL,EACtBM,MAAAA,aAAQ,eAAcD,EACtBE,IAAAA,SACAC,IAAAA,SACAC,IAAAA,QACAC,IAAAA,SACAC,IAAAA,wBACAC,IAAAA,aACAC,IAAAA,kBACAC,IAAAA,KACAC,IAAAA,O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,EACVM,UAAWuB,EAAWC,EAAOkB,aAAclD,GAAYgC,EAAOmB,gBAAgBjB,SAE9EC,EAACiB,EAAQ,CACP5C,UAAWuB,EAAWC,EAAOqB,WAAYrD,GAAYgC,EAAOhC,gBAKrEkC,SAEDJ,EAAA,OAAA,CAAMtB,UAAWwB,EAAOlC,MAAOwD,aAAclC,EAAamC,aAAcjC,EAAaY,SAClFpC,CAAAA,EACA+B,IAAmB/B,EAAQ,GAAK,KAChC4B,WAMb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"OffsetWellsButton_root__wCEAz",
|
|
1
|
+
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"OffsetWellsButton_root__wCEAz",label:"OffsetWellsButton_label__dbjop",expandButton:"OffsetWellsButton_expandButton__IQNRL",button:"OffsetWellsButton_button__pYP5M",withExpand:"OffsetWellsButton_withExpand__lpZks",infoIcon:"OffsetWellsButton_infoIcon__F2Z4V",expandedButton:"OffsetWellsButton_expandedButton__P8dSl",expandIcon:"OffsetWellsButton_expandIcon__EKEjA",expanded:"OffsetWellsButton_expanded__6KLFl",icon:"OffsetWellsButton_icon__rncoC"};t(".OffsetWellsButton_root__wCEAz{align-items:center;display:inline-flex;flex-flow:row nowrap;gap:4px}.OffsetWellsButton_root__wCEAz .OffsetWellsButton_label__dbjop{color:inherit;display:block;line-height:16px;margin:-8px -8px -8px -40px;padding:8px 8px 8px 40px;position:relative;transition:color .15s cubic-bezier(.4,0,.2,1);z-index:1}.OffsetWellsButton_root__wCEAz:has(.OffsetWellsButton_expandButton__IQNRL:hover) .OffsetWellsButton_label__dbjop{color:var(--palette-primary-text-6)}.OffsetWellsButton_button__pYP5M{font-size:16px;overflow:hidden}.OffsetWellsButton_button__pYP5M .MuiButton-root{min-width:auto!important}.OffsetWellsButton_withExpand__lpZks{mask:linear-gradient(90deg,#000,#000 calc(100% - 33px),transparent calc(100% - 33px),transparent calc(100% - 32px),#000 calc(100% - 32px),#000)}.OffsetWellsButton_infoIcon__F2Z4V{color:var(--palette-info-main);cursor:pointer;margin-right:4px;margin-top:2px}.OffsetWellsButton_expandButton__IQNRL{align-items:center;background:none;border:none;border-radius:2px;color:var(--palette-primary-text-6);cursor:pointer;display:flex;height:32px;justify-content:center;margin:0 -6px 0 4px;transition:color .15s cubic-bezier(.4,0,.2,1);width:32px}.OffsetWellsButton_expandButton__IQNRL:disabled{cursor:not-allowed;opacity:.5}.OffsetWellsButton_expandButton__IQNRL:focus-visible,.OffsetWellsButton_expandButton__IQNRL:hover{color:var(--palette-primary-text-1)}.OffsetWellsButton_expandButton__IQNRL.OffsetWellsButton_expandedButton__P8dSl{color:var(--palette-primary-main)}.OffsetWellsButton_expandButton__IQNRL.OffsetWellsButton_expandedButton__P8dSl:focus-visible,.OffsetWellsButton_expandButton__IQNRL.OffsetWellsButton_expandedButton__P8dSl:hover{color:var(--palette-primary-light)}.OffsetWellsButton_expandIcon__EKEjA{height:16px;transition:transform .15s cubic-bezier(.4,0,.2,1);width:16px}.OffsetWellsButton_expanded__6KLFl{transform:rotate(180deg)}.OffsetWellsButton_icon__rncoC{color:var(--palette-primary-main)}");export{e as default};
|
|
2
2
|
//# sourceMappingURL=OffsetWellsButton.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"highcharts.d.ts","sourceRoot":"","sources":["../../../src/config/highcharts/highcharts.js"],"names":[],"mappings":"AAiDA,wBAAsB,cAAc,CAAC,EAAE,OAAgC,EAAE;;CAAK,iBA0F7E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/helpers/typeof";import o from"@babel/runtime/regenerator";import{HIGHCHARTS_V8_VERSION as n,HIGHCHARTS_V10_VERSION as a}from"./constants.js";import i from"./highcharts-contour.js";import{getHighchartsV10 as s}from"./getHighchartsV10.js";import c from"dompurify";var l=function e(o){return"string"==typeof o?c.sanitize(o):("object"===r(o)&&null!==o&&Object.entries(o).forEach((function(n){var a=t(n,2),i=a[0],s=a[1];"string"==typeof s?o[i]=c.sanitize(o[i]):Array.isArray(s)?s.forEach((function(t,r){o[i][r]=e(t)})):"object"===r(s)&&(o[i]=e(s))})),o)},h=function(){var e,t=document.createElement("canvas").getContext("webgl"),r=null==t?void 0:t.createShader(t.VERTEX_SHADER);if(!r)return!1;t.shaderSource(r,"void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}"),t.compileShader(r);var o=!!t.getShaderParameter(r,t.COMPILE_STATUS);return t.deleteShader(r),null===(e=t.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),o};function d(){return u.apply(this,arguments)}function u(){return u=e(o.mark((function e(){var t,r,c,d,u,p,m,f,g,b,v,A,S,y,w,x,E,T=arguments;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:{},r=t.version,[n,a].includes(c=void 0===r?a:r)){e.next=3;break}throw new Error("Invalid highcharts version: ".concat(c));case 3:if(c!==n){e.next=9;break}return e.next=6,import("./getHighchartsV8.js");case 6:e.t0=e.sent.getHighchartsV8,e.next=10;break;case 9:e.t0=s;case 10:d=e.t0,u=d(),p=u.Highcharts,m=u.highchartsMore,f=u.HighchartsMulticolorSeries,g=u.addSolidGauge,b=u.addHeatmap,v=u.addBoost,A=u.addExporting,S=u.addXrange,y=u.addDumbbell,w=u.addPatternFill,x=u.addAnnotations,window.Highcharts=p,p.AST&&(p.AST.bypassHTMLFiltering=!0,p.AST.allowedAttributes.push("viewBox"),p.AST.allowedAttributes.push("fill-rule"),p.AST.allowedAttributes.push("clip-rule")),f(p),m(p),g(p),b(p),v(p),A(p),S(p),y(p),w(p),i(p),x(p),E=p.chart,p.chart=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return E.apply(void 0,[e,l(t)].concat(o))},p.setOptions({boost:{enabled:h()},plotOptions:{series:{states:{inactive:{enabled:!1}}}}});case 28:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}export{d as initHighcharts};
|
|
2
2
|
//# sourceMappingURL=highcharts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nimport { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';\n\nimport addContour from './highcharts-contour';\nimport { getHighchartsV10 } from './getHighchartsV10';\n\nimport DOMPurify from 'dompurify';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const highchartsGetter =\n version === HIGHCHARTS_V8_VERSION\n ? (await import('./getHighchartsV8')).getHighchartsV8\n : getHighchartsV10;\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n } = highchartsGetter();\n\n /**\n * NOTE: Highchart has a bug for pie chart in v8.1.2\n * issue link: https://github.com/highcharts/highcharts/issues/13710\n * workaround:\n * import Highcharts from 'highcharts';\n * window.Highcharts = Highcharts;\n */\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n if (Highcharts.AST) {\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n }\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // fix security issue for Highcharts 8\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n */\n Highcharts.setOptions({\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref3","_ref3$version","version","highchartsGetter","_highchartsGetter","Highcharts","highchartsMore","HighchartsMulticolorSeries","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","originalChartFn","_args","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V8_VERSION","HIGHCHARTS_V10_VERSION","includes","Error","import","t0","sent","getHighchartsV8","getHighchartsV10","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","options","_len","restParams","_key","setOptions","plotOptions","series","states","inactive","
|
|
1
|
+
{"version":3,"file":"highcharts.js","sources":["../../../src/config/highcharts/highcharts.js"],"sourcesContent":["/* eslint-disable */\n// TODO: all the plugins should be checked, legacy code\n\n// [HIGHCHARTS-10-MIGRATION-TAG]: Find and delete/clean all places like this once the migration ends\nimport { HIGHCHARTS_V10_VERSION, HIGHCHARTS_V8_VERSION } from './constants';\n\nimport addContour from './highcharts-contour';\nimport { getHighchartsV10 } from './getHighchartsV10';\n\nimport DOMPurify from 'dompurify';\n\nconst stripHTMLRecurse = o => {\n if (typeof o === 'string') {\n return DOMPurify.sanitize(o);\n }\n\n if (typeof o === 'object' && o !== null)\n Object.entries(o).forEach(([key, value]) => {\n if (typeof value === 'string') {\n o[key] = DOMPurify.sanitize(o[key]);\n } else if (Array.isArray(value)) {\n value.forEach((item, i) => {\n o[key][i] = stripHTMLRecurse(item);\n });\n } else if (typeof value === 'object') {\n o[key] = stripHTMLRecurse(value);\n }\n });\n\n return o;\n};\n\n// Highcharts' own hasWebGLSupport() only proves a context can be created, which the\n// drivers that fail here can do. Compiling one shader is what separates them.\nconst isBoostSupported = () => {\n const gl = document.createElement('canvas').getContext('webgl');\n const shader = gl?.createShader(gl.VERTEX_SHADER);\n if (!shader) return false;\n\n gl.shaderSource(shader, 'void main(){gl_Position=vec4(0.0,0.0,0.0,1.0);}');\n gl.compileShader(shader);\n const isCompiled = !!gl.getShaderParameter(shader, gl.COMPILE_STATUS);\n\n gl.deleteShader(shader);\n gl.getExtension('WEBGL_lose_context')?.loseContext();\n\n return isCompiled;\n};\n\nexport async function initHighcharts({ version = HIGHCHARTS_V10_VERSION } = {}) {\n if (![HIGHCHARTS_V8_VERSION, HIGHCHARTS_V10_VERSION].includes(version)) {\n throw new Error(`Invalid highcharts version: ${version}`);\n }\n\n const highchartsGetter =\n version === HIGHCHARTS_V8_VERSION\n ? (await import('./getHighchartsV8')).getHighchartsV8\n : getHighchartsV10;\n\n const {\n Highcharts,\n highchartsMore,\n HighchartsMulticolorSeries,\n addSolidGauge,\n addHeatmap,\n addBoost,\n addExporting,\n addXrange,\n addDumbbell,\n addPatternFill,\n addAnnotations,\n } = highchartsGetter();\n\n /**\n * NOTE: Highchart has a bug for pie chart in v8.1.2\n * issue link: https://github.com/highcharts/highcharts/issues/13710\n * workaround:\n * import Highcharts from 'highcharts';\n * window.Highcharts = Highcharts;\n */\n window.Highcharts = Highcharts;\n\n // NOTE: Temporary disable HTML filtering for duration of migration to v10, as this is the main breaking change in v10, should be removed after migration\n if (Highcharts.AST) {\n Highcharts.AST.bypassHTMLFiltering = true;\n\n // Adding needed custom attributes for some SVG icons\n Highcharts.AST.allowedAttributes.push('viewBox');\n Highcharts.AST.allowedAttributes.push('fill-rule');\n Highcharts.AST.allowedAttributes.push('clip-rule');\n }\n\n HighchartsMulticolorSeries(Highcharts);\n // NOTE: Highcharts patching. It should be done in one place before any chart in rendered\n // in order to avoid conflicts\n highchartsMore(Highcharts);\n addSolidGauge(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/angular-gauges\n addHeatmap(Highcharts); // https://www.highcharts.com/docs/chart-and-series-types/heatmap\n addBoost(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addExporting(Highcharts); // https://www.highcharts.com/docs/export-module/export-module-overview\n addXrange(Highcharts); // https://www.highcharts.com/docs/advanced-chart-features/boost-module\n addDumbbell(Highcharts);\n addPatternFill(Highcharts);\n addContour(Highcharts);\n addAnnotations(Highcharts);\n\n // fix security issue for Highcharts 8\n // https://github.com/highcharts/highcharts/security/advisories/GHSA-8j65-4pcq-xq95\n const originalChartFn = Highcharts.chart;\n Highcharts.chart = function (container, options = {}, ...restParams) {\n return originalChartFn(container, stripHTMLRecurse(options), ...restParams);\n };\n\n /**\n * Adjust default highcharts effects globally for better use in our apps\n *\n * 1. Stop animation for inactive series\n * ref: https://api.highcharts.com/highcharts/plotOptions.series.states.inactive.enabled\n *\n * 2. Keep boost off where its shaders will not compile. boost.enabled defaults to\n * true once addBoost has run, and on such drivers boost carries on with a null\n * program and throws out of getAttribLocation mid-render, taking the chart with\n * it. Charts keep GPU acceleration everywhere the driver works.\n *\n */\n Highcharts.setOptions({\n boost: {\n enabled: isBoostSupported(),\n },\n plotOptions: {\n series: {\n states: {\n inactive: {\n enabled: false,\n },\n },\n },\n },\n });\n}\n"],"names":["stripHTMLRecurse","o","DOMPurify","sanitize","_typeof","Object","entries","forEach","_ref","_ref2","_slicedToArray","key","value","Array","isArray","item","i","isBoostSupported","_gl$getExtension","gl","document","createElement","getContext","shader","createShader","VERTEX_SHADER","shaderSource","compileShader","isCompiled","getShaderParameter","COMPILE_STATUS","deleteShader","getExtension","loseContext","initHighcharts","_initHighcharts","apply","this","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_ref3","_ref3$version","version","highchartsGetter","_highchartsGetter","Highcharts","highchartsMore","HighchartsMulticolorSeries","addSolidGauge","addHeatmap","addBoost","addExporting","addXrange","addDumbbell","addPatternFill","addAnnotations","originalChartFn","_args","wrap","_context","prev","next","length","undefined","HIGHCHARTS_V8_VERSION","HIGHCHARTS_V10_VERSION","includes","Error","import","t0","sent","getHighchartsV8","getHighchartsV10","window","AST","bypassHTMLFiltering","allowedAttributes","push","addContour","chart","container","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