@corva/ui 3.55.0-7 → 3.55.0-9
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/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
- package/cjs-bundle/componentsV2/TemplatesControl/TemplatesControl.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.scss.js +1 -1
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js +2 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js.map +1 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js +2 -0
- package/cjs-bundle/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js.map +1 -0
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts +1 -0
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAllAssets.js +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts +5 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/api/shared/fetchers/getAssetsByBounds.js +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useAllWells.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useCompanyIdChangeEffect.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts +8 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js +2 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useDrillingFilterChangeEffect.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/fetchTile.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts +14 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js +2 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map +1 -0
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.js +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.js +1 -1
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +1 -1
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts +3 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js +2 -0
- package/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.js.map +1 -0
- package/componentsV2/TemplatesControl/TemplatesControl.d.ts +9 -2
- package/componentsV2/TemplatesControl/TemplatesControl.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.js +1 -1
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts +1 -0
- package/componentsV2/TemplatesControl/TemplatesControl.stories.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.d.ts +2 -0
- package/componentsV2/TemplatesControl/Toggle/Toggle.d.ts.map +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
- package/componentsV2/TemplatesControl/Toggle/Toggle.scss.js +1 -1
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts +5 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.d.ts.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.js.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.scss.js.map +1 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/index.d.ts +2 -0
- package/componentsV2/TemplatesControl/ToggleDisplayDefault/index.d.ts.map +1 -0
- package/mcp-server/server.mjs +13 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{keyToTile as t,tileToBounds as n}from"../../utils/tile-math.js";import{getAssetsByBounds as a}from"../../api/shared/fetchers/getAssetsByBounds.js";var s=function(){var s=e(r.mark((function e(s){var o,
|
|
1
|
+
import e from"@babel/runtime/helpers/asyncToGenerator";import r from"@babel/runtime/regenerator";import{keyToTile as t,tileToBounds as n}from"../../utils/tile-math.js";import{getAssetsByBounds as a}from"../../api/shared/fetchers/getAssetsByBounds.js";var s=function(){var s=e(r.mark((function e(s){var i,o,l,c,u,p,m,f,d,h,b,g;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=s.tileKey,o=s.companyIds,l=s.drillingWells,c=s.addWellsUsabilityInfo,u=s.setCachedTile,p=s.addWellsToTile,m=s.setTileStatus,e.prev=1,m(i,"loading"),f=t(i),d=n(f),e.next=7,a(d,o,{drillingWells:l});case 7:if(!((h=e.sent).length>0)){e.next=14;break}return e.next=11,c(h);case 11:e.t0=e.sent,e.next=15;break;case 14:e.t0=[];case 15:b=e.t0,u(i,b.map((function(e){return e.id}))),p(i,b),e.next=24;break;case 20:e.prev=20,e.t1=e.catch(1),g=e.t1 instanceof Error?e.t1.message:"Unknown error",m(i,"error",g);case 24:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(e){return s.apply(this,arguments)}}();export{s as fetchTile};
|
|
2
2
|
//# sourceMappingURL=fetchTile.js.map
|
|
@@ -6,6 +6,7 @@ export type FetchQueue = {
|
|
|
6
6
|
};
|
|
7
7
|
export type FetchCallbacks = {
|
|
8
8
|
companyIds: number[] | null;
|
|
9
|
+
drillingWells: boolean;
|
|
9
10
|
addWellsUsabilityInfo: (wells: OffsetWell[]) => PromiseLike<OffsetWell[]> | OffsetWell[];
|
|
10
11
|
setCachedTile: (key: TileKey, wellIds: number[]) => void;
|
|
11
12
|
addWellsToTile: (key: TileKey, wells: OffsetWell[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC;IACzF,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAC5D,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/F,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,qBAAqB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC;IACzF,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD,cAAc,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAC5D,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/F,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG;IAChD,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { StoreApi } from 'zustand';
|
|
|
3
3
|
import type { ViewportBounds } from '../../stores/viewport-store/types';
|
|
4
4
|
import type { ViewportStore } from '../../stores/viewport-store/createViewportStore';
|
|
5
5
|
import type { FetchQueue } from './types';
|
|
6
|
-
export declare const useCompanyIdResetEffect: (
|
|
6
|
+
export declare const useCompanyIdResetEffect: (params: {
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
store: StoreApi<ViewportStore>;
|
|
9
9
|
queueRef: MutableRefObject<FetchQueue>;
|
package/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompanyIdResetEffect.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useCompanyIdResetEffect.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useCompanyIdResetEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,uBAAuB,GAAI,QAAQ;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,qBAAqB,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;CACnF,KAAG,IA4CH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useEffect as
|
|
1
|
+
import{useRef as r,useEffect as e}from"react";import o from"lodash/isEqual";import{useFilterStore as t}from"../../stores/filter-store/useFilterStore.js";import"../../stores/company-safeguard/CompanySafeguardContext.js";import{useCompanySafeguard as a}from"../../stores/company-safeguard/useCompanySafeguard.js";var n=function(n){var u=t((function(r){var e;return null!==(e=r.filters.companyId)&&void 0!==e?e:null})),s=a().isSafeguardReady,i=n.enabled,f=n.store,c=n.queueRef,d=n.clearCache,l=n.clearTiles,m=n.handleBoundsChangeRef,p=r(void 0);e((function(){if(s)if(void 0!==p.current&&i){if(!o(p.current,u)&&(d(),l(),c.current.pending=[],p.current=u,i)){var r=f.getState().bounds;r&&m.current(r)}}else p.current=u}),[s,u,i,f,d,l,c,m])};export{n as useCompanyIdResetEffect};
|
|
2
2
|
//# sourceMappingURL=useCompanyIdResetEffect.js.map
|
package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
import type { StoreApi } from 'zustand';
|
|
3
|
+
import type { ViewportBounds } from '../../stores/viewport-store/types';
|
|
4
|
+
import type { ViewportStore } from '../../stores/viewport-store/createViewportStore';
|
|
5
|
+
import type { FetchQueue } from './types';
|
|
6
|
+
export declare const useDrillingFilterResetEffect: (params: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
store: StoreApi<ViewportStore>;
|
|
9
|
+
queueRef: MutableRefObject<FetchQueue>;
|
|
10
|
+
clearCache: () => void;
|
|
11
|
+
clearTiles: () => void;
|
|
12
|
+
handleBoundsChangeRef: MutableRefObject<(_bounds: ViewportBounds | null) => void>;
|
|
13
|
+
}) => void;
|
|
14
|
+
//# sourceMappingURL=useDrillingFilterResetEffect.d.ts.map
|
package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDrillingFilterResetEffect.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,4BAA4B,GAAI,QAAQ;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,qBAAqB,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;CACnF,KAAG,IA2BH,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as e,useEffect as r}from"react";import{useFilterStore as t}from"../../stores/filter-store/useFilterStore.js";var n=function(n){var i=t((function(e){var r;return null===(r=e.filters.drillingWells)||void 0===r||r})),o=n.enabled,u=n.store,l=n.queueRef,c=n.clearCache,a=n.clearTiles,s=n.handleBoundsChangeRef,f=e(void 0);r((function(){if(void 0!==f.current&&o){if(f.current!==i){c(),a(),l.current.pending=[],f.current=i;var e=u.getState().bounds;e&&s.current(e)}}else f.current=i}),[i,o,u,c,a,l,s])};export{n as useDrillingFilterResetEffect};
|
|
2
|
+
//# sourceMappingURL=useDrillingFilterResetEffect.js.map
|
package/components/OffsetWellPickerV5/hooks/useViewportWells/useDrillingFilterResetEffect.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDrillingFilterResetEffect.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHandleBoundsChange.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKlD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAIrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACjD,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,6DAMnC,2BAA2B,KAAG,CAAC,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"useHandleBoundsChange.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useHandleBoundsChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKlD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAIrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC/B,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACvC,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,EAAE,GAAG,IAAI,CAAC;IACjD,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,6DAMnC,2BAA2B,KAAG,CAAC,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAmE3E,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useCallback as e}from"react";import{useStore as
|
|
1
|
+
import{useCallback as e}from"react";import{useStore as r}from"zustand";import{getTilesForViewport as t,MAX_TILES_FOR_FETCH as i}from"../../utils/tile-math.js";import"lodash";import"../../stores/picker-props-store/PickerPropsStoreContext.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react/jsx-runtime";import"../../viewport/ViewportProvider.js";import"../../viewport/ViewportContext.js";import{usePickerPropsStore as o}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as s}from"../../stores/filter-store/useFilterStore.js";import{processQueue as l}from"./processQueue.js";import{filterTilesToFetch as n}from"./filterTilesToFetch.js";var u=function(u){var p=u.enabled,a=u.store,d=u.queueRef,c=u.getCachedTile,f=u.setCachedTile,m=r(a,(function(e){return e.getTileStatus})),T=r(a,(function(e){return e.setTileStatus})),h=r(a,(function(e){return e.addWellsToTile})),v=o((function(e){return e.addWellsUsabilityInfo})),g=s((function(e){var r;return null!==(r=e.filters.companyId)&&void 0!==r?r:null})),j=s((function(e){var r;return null===(r=e.filters.drillingWells)||void 0===r||r}));return e((function(e){if(p&&e){var r=t(e);if(r.length>i)d.current.pending=[];else{var o=n({visibleTiles:r,getTileStatus:m,getCachedTile:c,store:a,addWellsToTile:h});if(0!==o.length){var s=d.current;o.forEach((function(e){s.pending.includes(e)||s.inProgress.has(e)||s.pending.push(e)})),l({queue:s,companyIds:g,drillingWells:j,addWellsUsabilityInfo:v,setCachedTile:f,addWellsToTile:h,setTileStatus:T})}}}}),[p,h,v,g,j,c,m,f,T,a,d])};export{u as useHandleBoundsChange};
|
|
2
2
|
//# sourceMappingURL=useHandleBoundsChange.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useViewportWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useViewportWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/hooks/useViewportWells/useViewportWells.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB,GAAI,iBAAc,KAAG,IA0DjD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useRef as e,useEffect as r}from"react";import t from"lodash/debounce";import{useStore as n}from"zustand";import{ViewportStoreContext as o}from"../../stores/viewport-store/ViewportStoreContext.js";import{useContextOrThrow as
|
|
1
|
+
import{useRef as e,useEffect as r}from"react";import t from"lodash/debounce";import{useStore as n}from"zustand";import{ViewportStoreContext as o}from"../../stores/viewport-store/ViewportStoreContext.js";import{useContextOrThrow as s}from"../../stores/utils/useContextOrThrow.js";import{useTileCache as i}from"../useTileCache/useTileCache.js";import{DEBOUNCE_DELAY as c}from"./constants.js";import{useHandleBoundsChange as u}from"./useHandleBoundsChange.js";import{useCompanyIdResetEffect as a}from"./useCompanyIdResetEffect.js";import{useDrillingFilterResetEffect as l}from"./useDrillingFilterResetEffect.js";var f=function(){var f=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],d=s(o),m=n(d,(function(e){return e.bounds})),h=n(d,(function(e){return e.clearTiles})),p=i(),C=p.getCachedTile,g=p.setCachedTile,T=p.clearCache,j=e({pending:[],inProgress:new Set}),R=e((function(){})),v=u({enabled:f,store:d,queueRef:j,getCachedTile:C,setCachedTile:g});R.current=v;var b=e(t((function(e){R.current(e)}),c));r((function(){b.current(m)}),[m]),a({enabled:f,store:d,queueRef:j,clearCache:T,clearTiles:h,handleBoundsChangeRef:R}),l({enabled:f,store:d,queueRef:j,clearCache:T,clearTiles:h,handleBoundsChangeRef:R}),r((function(){var e=b.current,r=j.current;return function(){e.cancel(),r.pending=[]}}),[])};export{f as useViewportWells};
|
|
2
2
|
//# sourceMappingURL=useViewportWells.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doesWellPassFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/doesWellPassFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"doesWellPassFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/doesWellPassFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAMhE,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,WAAW,CAAC,EAU1D,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,0BAErC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,cAAc,EACpB,SAAS,WAAW,GAAG,IAAI,EAC3B,UAAU,0BAA0B,KACnC,OA0CF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/slicedToArray";import{getTimestampByPeriod as e}from"./getTimestampByPeriod.js";var i=/\sST0/,n
|
|
1
|
+
import r from"@babel/runtime/helpers/slicedToArray";import{getTimestampByPeriod as e}from"./getTimestampByPeriod.js";var i=/\sST0/,n=["status","companyId","rigName","programName","basin","county","area","formation","stringDesign"],t={excludeKeys:["rigName"]},a=function(t,a,u){var s;if(!a)return!0;var o=null==u?void 0:u.excludeKeys;if(!n.every((function(r){if(null!=o&&o.includes(r))return!0;var e=a[r];return!(Array.isArray(e)&&e.length>0)||e.includes(t[r])})))return!1;if(a.sideTracks&&i.test(null!==(s=t.name)&&void 0!==s?s:""))return!1;var l=a.period,m=a.timeRangeFrom,d=a.timeRangeTo,c=e(l,m,d),f=r(c,2),v=f[0],g=f[1];if(null!==v&&null!==g&&Number.isFinite(v)&&Number.isFinite(g)){var y=t.lastActive;if(void 0===y||!(y>=v&&y<=g))return!1}return!0};export{t as EXCLUDE_RIG_NAME_FILTER,n as WELL_PROPERTY_FILTER_KEYS,a as doesWellPassFilters};
|
|
2
2
|
//# sourceMappingURL=doesWellPassFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDrillingOnlyWell.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/isDrillingOnlyWell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,eAAO,MAAM,kBAAkB,GAAI,MAAM,cAAc,KAAG,OACkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDrillingOnlyWell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ProviderProps } from './Provider';
|
|
2
3
|
import { Store, TemplateData } from './types';
|
|
3
4
|
type TemplatesControlInnerProps = {
|
|
5
|
+
toggleContent?: ReactNode;
|
|
4
6
|
disabled?: boolean;
|
|
5
7
|
className?: string;
|
|
6
8
|
testId?: string;
|
|
@@ -54,12 +56,17 @@ export type TemplatesControlProps<T extends TemplateData> = {
|
|
|
54
56
|
* Additional controls to render in template menu. `TemplatesControlAdditionalControlProps` type is exported for convenience.
|
|
55
57
|
*/
|
|
56
58
|
templateControls?: Store<T>['templateControls'];
|
|
57
|
-
|
|
59
|
+
/**
|
|
60
|
+
* Content to show inside of toggle
|
|
61
|
+
*/
|
|
62
|
+
toggleContent?: ReactNode;
|
|
63
|
+
} & Omit<TemplatesControlInnerProps, 'toggleContent'>;
|
|
58
64
|
export declare const TemplatesControl: {
|
|
59
|
-
<T extends TemplateData>({ testId, className, disabled, ...providerProps }: TemplatesControlProps<T>): JSX.Element;
|
|
65
|
+
<T extends TemplateData>({ testId, className, disabled, toggleContent, ...providerProps }: TemplatesControlProps<T>): JSX.Element;
|
|
60
66
|
Provider: <T extends TemplateData>({ children, presetTemplates, onChange, foldersEnabled, templateIconColors, templateIconMap, defaultTemplateIcon, currentTemplateId, templateSettings, publishEnabled, getDefaultTemplate, defaultTemplateIconColor, filterInitialTemplates, templateControls, reloadListOnOpen, }: ProviderProps<T>) => JSX.Element;
|
|
61
67
|
Toggle: import("react").ForwardRefExoticComponent<import("./Toggle").ToggleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
62
68
|
Popover: ({ anchorEl, placement, disabled }: import("./Popover").PopoverProps) => JSX.Element | null;
|
|
69
|
+
ToggleDisplayDefault: ({ showNewTag }: import("./ToggleDisplayDefault").ToggleDisplayDefaultProps) => JSX.Element;
|
|
63
70
|
GetHeaderElement: (target?: HTMLElement | null | undefined) => HTMLElement | undefined;
|
|
64
71
|
};
|
|
65
72
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplatesControl.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TemplatesControl/TemplatesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplatesControl.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TemplatesControl/TemplatesControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAC;AAIzD,OAAO,EAAY,aAAa,EAAE,MAAM,YAAY,CAAC;AAGrD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG9C,KAAK,0BAA0B,GAAG;IAChC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,YAAY,IAAI;IAC1D;;OAEG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAC1D;;OAEG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACxD;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACtD,cAAc,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACpD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACxD,cAAc,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACpD,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5D;;OAEG;IACH,wBAAwB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC;IACxE,eAAe,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACtD,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAC9D;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAExC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5D;;OAEG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,wBAAwB,CAAC,CAAC;IAErE;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAEhD;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,GAAG,IAAI,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAC;AAwBtD,eAAO,MAAM,gBAAgB;KAAI,CAAC,SAAS,YAAY,oEAMpD,qBAAqB,CAAC,CAAC,CAAC;;;;;;CAW1B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/slicedToArray";import{jsx as o,jsxs as i,Fragment as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import t from"@babel/runtime/helpers/slicedToArray";import{jsx as o,jsxs as i,Fragment as n}from"react/jsx-runtime";import{useState as l,useCallback as s}from"react";import{findAppHeaderElement as a}from"../utils.js";import{Provider as c}from"./Provider/Provider.js";import{Toggle as p}from"./Toggle/Toggle.js";import{Popover as m}from"./Popover/Popover.js";import{ToggleDisplayDefault as f}from"./ToggleDisplayDefault/ToggleDisplayDefault.js";var d=["testId","className","disabled","toggleContent"];function b(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function g(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?b(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var u=function(e){var r=e.className,c=e.testId,f=e.disabled,d=e.toggleContent,b=l(),g=t(b,2),u=g[0],j=g[1],O=s((function(e){j(a(e))}),[]);return i(n,{children:[o(p,{className:r,testId:c,ref:O,disabled:f,children:d}),o(m,{anchorEl:u,disabled:f})]})},j=function(e){var t=e.testId,i=e.className,n=e.disabled,l=e.toggleContent,s=r(e,d);return o(c,g(g({},s),{},{children:o(u,{testId:t,className:i,disabled:n,toggleContent:l})}))};j.Provider=c,j.Toggle=p,j.Popover=m,j.ToggleDisplayDefault=f,j.GetHeaderElement=a;export{j as TemplatesControl};
|
|
2
2
|
//# sourceMappingURL=TemplatesControl.js.map
|
|
@@ -16,4 +16,5 @@ export declare const PreprocessingTemplates: () => JSX.Element;
|
|
|
16
16
|
export declare const WithCustomTemplateControls: () => JSX.Element;
|
|
17
17
|
export declare const AdvancedUsage: () => JSX.Element;
|
|
18
18
|
export declare const WithListReloadOnPopoverOpenDisabled: () => JSX.Element;
|
|
19
|
+
export declare const NewTagAndCustomButtonContent: () => JSX.Element;
|
|
19
20
|
//# sourceMappingURL=TemplatesControl.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplatesControl.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TemplatesControl/TemplatesControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAA4D,MAAM,OAAO,CAAC;AAkBjG,OAAO,EAEL,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAGjB,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;
|
|
1
|
+
{"version":3,"file":"TemplatesControl.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TemplatesControl/TemplatesControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAA4D,MAAM,OAAO,CAAC;AAkBjG,OAAO,EAEL,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAGjB,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AA6BF,eAAe,IAAI,CAAC;AAuIpB,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,gBAgEnC,CAAC;AAeF,eAAO,MAAM,mBAAmB,mBAK/B,CAAC;AAMF,eAAO,MAAM,gBAAgB,mBA0D5B,CAAC;AAMF,eAAO,MAAM,iCAAiC,mBA0D7C,CAAC;AAOF,eAAO,MAAM,wBAAwB,mBAoCpC,CAAC;AAMF,eAAO,MAAM,mBAAmB,mBAE/B,CAAC;AAKF,eAAO,MAAM,mBAAmB,mBAE/B,CAAC;AAKF,eAAO,MAAM,0BAA0B,mBA0DtC,CAAC;AASF,eAAO,MAAM,sBAAsB,mBAelC,CAAC;AAMF,eAAO,MAAM,0BAA0B,mBAgCtC,CAAC;AAMF,eAAO,MAAM,aAAa,mBAiEzB,CAAC;AAkBF,eAAO,MAAM,mCAAmC,mBAI/C,CAAC;AAMF,eAAO,MAAM,4BAA4B,mBA2DxC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { User } from '../../../types';
|
|
2
3
|
import { Template } from '../types';
|
|
3
4
|
export declare const getTemplateDisplayType: (template: Template, currentUser?: User) => string | undefined;
|
|
4
5
|
export type ToggleProps = {
|
|
6
|
+
children?: ReactNode;
|
|
5
7
|
disabled?: boolean;
|
|
6
8
|
className?: string;
|
|
7
9
|
testId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TemplatesControl/Toggle/Toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TemplatesControl/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAoB,MAAM,OAAO,CAAC;AAehE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAQpC,eAAO,MAAM,sBAAsB,GAAI,UAAU,QAAQ,EAAE,cAAc,IAAI,uBAc5E,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,MAAM,2GAyFlB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,Fragment as t,jsx as e}from"react/jsx-runtime";import{forwardRef as i,useState as n,useRef as r}from"react";import{Button as
|
|
1
|
+
import o from"@babel/runtime/helpers/slicedToArray";import{jsxs as s,Fragment as t,jsx as e}from"react/jsx-runtime";import{forwardRef as i,useState as n,useRef as r}from"react";import c from"classnames";import{Button as m}from"../../Button/Button.js";import{storeApi as p}from"../Store/Store.js";import"../Store/utils.js";import{Menu as a}from"../../Menu/Menu.js";import{Text as l}from"../../Text/Text.js";import{CopyTemplate as u}from"../templateMenuItems/CopyTemplate.js";import{isOwnTemplate as d}from"../utils.js";import"../types.js";import{DownIcon as j}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/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/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/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"lodash";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/core";import"../../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../Tooltip/Tooltip.scss.js";import"../../TextEndTruncated/TextEndTruncated.scss.js";import"../../TextInput/TextInput.js";import"../../ButtonIcon/ButtonIcon.js";import"../MoveToFolderMenu/MoveToFolderMenu.scss.js";import"../templateMenuItems/TemplateMenuItems.scss.js";import{PublishTemplate as I}from"../templateMenuItems/PublishTemplate.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/regenerator";import"../../ModalWindow/ModalWindow.js";import"../../Modal/Modal.scss.js";import"../../LoaderLogo/LoaderLogo.constants.js";import"../../LoaderLogo/LoaderLogo.scss.js";import"../../EmptyState/EmptyState.scss.js";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"immutable";import"query-string";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/alerts.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/completion.js";import"../../../constants/appPackages.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"../../../constants/bha.js";import{CORVA_COMPANY_ID as v}from"../../../constants/corvaCompanyId.js";import"../../../components/GradientManager/configuration/constants.js";import"../../../utils/index.js";import"jsona";import"../../../utils/env.js";import"../../../components/StatusBadge/constants.js";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import"lodash/isEmpty";import"lodash/sortBy";import"../../../constants/streamSourceType.js";import"../../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../AppCommonsProvider/AppCommonsProvider.js";import{useAppCommons as h}from"../../AppCommonsProvider/AppCommonsContext.js";import"../../AppSettings/AppSettingsPinningContext.js";import{useCombineRefs as C}from"../../../effects/useCombineRefs.js";import"../ShareModal/Item.js";import"../ShareModal/ShareModal.scss.js";import{RevertTemplate as f}from"../templateMenuItems/RevertTemplate.js";import{RemoveTemplate as b}from"../templateMenuItems/RemoveTemplate.js";import{ToggleDisplayDefault as T}from"../ToggleDisplayDefault/ToggleDisplayDefault.js";import g from"./Toggle.scss.js";var M=function(o,s){return o.shared?"Shared":o.isPreset?"Corva":o.published?(null==s?void 0:s.company_id)!==v?null==s?void 0:s.company_name:"Company":"Your Own"},y=i((function(i,v){var y=i.testId,A=i.className,D=i.disabled,P=i.children,S=p.useOpenPopover,x=p.useIsPopoverOpen,F=p.useSelectedTemplate,E=p.useIsInitialized,L=p.useTemplateIcon,O=p.useTemplateIconColor,k=S(),N=x(),R=F(),w=E(),B=O(R),z=L(R),G=h().currentUser,W=n(!1),q=o(W,2),U=q[0],Y=q[1],_=r(),H=r(null),Z=function(){clearTimeout(_.current),Y(!0)},J=function(){clearTimeout(_.current),_.current=setTimeout((function(){Y(!1)}),500)},K=C(v,H);return s(t,{children:[e(m,{disabled:D,size:"small",className:c(g.button,A),type:"chartColored",testId:y,onClick:k,ref:K,prefix:w&&R?e(z,{color:B,size:20}):void 0,suffix:e(j,{className:c(g.chevron,N&&g.chevronOpen)}),onMouseEnter:Z,onMouseLeave:J,children:P||e(T,{})}),R&&!D&&s(a,{open:U&&!N,anchorEl:H.current,backdrop:!1,onMouseEnter:Z,onMouseLeave:J,className:g.menu,children:[s("div",{className:g.menuHeader,children:[e(l,{size:12,tagName:"div",children:d(R)?"Modifying Your Own Template.":M(R,G)}),e(l,{size:12,color:"T6",className:g.menuSubTitle,children:"Your changes are saved locally only"})]}),e(u,{template:R}),e(a.Divider,{className:g.divider}),e(I,{template:R}),e(f,{template:R,dividerClassName:g.divider}),e(b,{template:R,dividerClassName:g.divider})]})]})}));export{y as Toggle,M as getTemplateDisplayType};
|
|
2
2
|
//# sourceMappingURL=Toggle.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var
|
|
1
|
+
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",button:"Toggle_button__htZFP",menu:"Toggle_menu__Vusn9",menuHeader:"Toggle_menuHeader__EhPo4",menuSubTitle:"Toggle_menuSubTitle__bYlKm",divider:"Toggle_divider__6F3fh",chevron:"Toggle_chevron__AVCgF",chevronOpen:"Toggle_chevronOpen__fzOfr"};e(".Toggle_button__htZFP .MuiButton-root{background:rgb(from var(--palette-primary-main) r g b/.16);line-height:20px}.Toggle_button__htZFP .MuiButton-root.Mui-focusVisible,.Toggle_button__htZFP .MuiButton-root:focus,.Toggle_button__htZFP .MuiButton-root:hover{background:rgb(from var(--palette-primary-main) r g b/.24)}.Toggle_button__htZFP .MuiButton-root .MuiButton-label{line-height:20px}.Toggle_menu__Vusn9{width:233px}.Toggle_menuHeader__EhPo4{background:var(--palette-background-b-10);margin:-8px -16px 0;padding:8px 16px;position:relative;z-index:1}.Toggle_menuSubTitle__bYlKm{margin-top:4px}.Toggle_divider__6F3fh+.Toggle_divider__6F3fh,.Toggle_divider__6F3fh:last-child{display:none}.Toggle_chevron__AVCgF{transition:transform .15s cubic-bezier(.4,0,.2,1)}.Toggle_chevronOpen__fzOfr{transform:rotate(180deg)}");export{o as default};
|
|
2
2
|
//# sourceMappingURL=Toggle.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleDisplayDefault.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TemplatesControl/ToggleDisplayDefault/ToggleDisplayDefault.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,yBAAyB,gBA0B7E,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,jsxs as s}from"react/jsx-runtime";import{TextEndTruncated as a}from"../../TextEndTruncated/TextEndTruncated.js";import{UnsavedChangesBadge as t}from"../UnsavedChangesBadge/UnsavedChangesBadge.js";import{storeApi as r}from"../Store/Store.js";import"../Store/utils.js";import{Tag as l}from"../../Tag/Tag.js";import{Skeleton as o}from"../../Skeleton/Skeleton.js";import i from"./ToggleDisplayDefault.scss.js";var m=function(m){var n=m.showNewTag,d=r.useSelectedTemplate,c=r.useHasUnsavedChanges,p=r.useIsInitialized,g=d(),T=c(null==g?void 0:g.id);return p()?s("div",{className:i.root,children:[e("span",{className:i.titlePrefix,children:g?"Template:":"Templates"})," ",g&&e(a,{className:i.title,disableTooltip:!0,children:g.name}),T&&e(t,{className:i.changeBadge}),!T&&n&&e(l,{size:"small",state:"light",className:i.newTag,children:"New!"})]}):e(o,{className:i.skeleton})};export{m as ToggleDisplayDefault};
|
|
2
|
+
//# sourceMappingURL=ToggleDisplayDefault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleDisplayDefault.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from'./../../../ext-esm/style-inject/dist/style-inject.es.js';var l={spacing:"8",root:"ToggleDisplayDefault_root__c5pOP",titlePrefix:"ToggleDisplayDefault_titlePrefix__Kmuhf",title:"ToggleDisplayDefault_title__RTXYG",changeBadge:"ToggleDisplayDefault_changeBadge__Mnev6",newTag:"ToggleDisplayDefault_newTag__KPKQw",skeleton:"ToggleDisplayDefault_skeleton__xgwes"};e(".ToggleDisplayDefault_root__c5pOP{opacity:1;white-space:nowrap}.ToggleDisplayDefault_titlePrefix__Kmuhf{color:var(--palette-primary-text-6);display:inline-block;vertical-align:middle}.ToggleDisplayDefault_title__RTXYG{display:inline-block;max-width:170px;vertical-align:middle}.ToggleDisplayDefault_changeBadge__Mnev6{display:inline-flex;margin-left:8px;vertical-align:middle}.ToggleDisplayDefault_newTag__KPKQw{margin-left:8px}.ToggleDisplayDefault_skeleton__xgwes{min-width:150px}");export{l as default};
|
|
2
|
+
//# sourceMappingURL=ToggleDisplayDefault.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,aAAa,yDAA4D;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/componentsV2/TemplatesControl/ToggleDisplayDefault/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
package/mcp-server/server.mjs
CHANGED
|
@@ -228,7 +228,7 @@ const validateDsn = (dsn) => {
|
|
|
228
228
|
|
|
229
229
|
const MCP_SERVER_VERSION = '1.1.0';
|
|
230
230
|
|
|
231
|
-
var version = "3.55.0-
|
|
231
|
+
var version = "3.55.0-9";
|
|
232
232
|
|
|
233
233
|
const CORVA_UI_VERSION = version;
|
|
234
234
|
|
|
@@ -6722,6 +6722,12 @@ var componentsV2Data = [
|
|
|
6722
6722
|
type: "Store<T>['templateControls']",
|
|
6723
6723
|
required: false,
|
|
6724
6724
|
description: "Additional controls to render in template menu. `TemplatesControlAdditionalControlProps` type is exported for convenience."
|
|
6725
|
+
},
|
|
6726
|
+
{
|
|
6727
|
+
name: "toggleContent",
|
|
6728
|
+
type: "ReactNode",
|
|
6729
|
+
required: false,
|
|
6730
|
+
description: "Content to show inside of toggle"
|
|
6725
6731
|
}
|
|
6726
6732
|
],
|
|
6727
6733
|
examples: [
|
|
@@ -6777,13 +6783,18 @@ var componentsV2Data = [
|
|
|
6777
6783
|
},
|
|
6778
6784
|
{
|
|
6779
6785
|
name: "AdvancedUsage",
|
|
6780
|
-
description: "You can use `<TemplateControls/>`'s constituent parts to hook into its lifecycle, get data, and perform actions.\n\nComponents:\n```\nTemplatesControl.Provider\nTemplatesControl.Toggle\nTemplatesControl.Popover\n```\nUtilities:\n```\nTemplatesControl.GetHeaderElement\ngetTemplatesControlStoreApi<T>\n```",
|
|
6786
|
+
description: "You can use `<TemplateControls/>`'s constituent parts to hook into its lifecycle, get data, and perform actions.\n\nComponents:\n```\nTemplatesControl.Provider\nTemplatesControl.Toggle\nTemplatesControl.Popover\nTemplatesControl.ToggleDisplayDefault\n```\nUtilities:\n```\nTemplatesControl.GetHeaderElement\ngetTemplatesControlStoreApi<T>\n```",
|
|
6781
6787
|
code: "{\n const [anchorElement, setAnchorElement] = useState<HTMLElement>();\n\n const setHeaderNode = useCallback((buttonRef: HTMLButtonElement) => {\n setAnchorElement(TemplatesControl.GetHeaderElement(buttonRef));\n }, []);\n\n // Creating API with correct Templates' data type\n const API = useMemo(() => getTemplatesControlStoreApi<Data>(), []);\n\n // All magic happens here\n const InnerComponent = useMemo(\n () => () => {\n const { useIsInitialized, useSelectTemplate, useSelectedTemplate, useAllTemplates } = API;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const isInitialized = useIsInitialized();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const selectTemplate = useSelectTemplate();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const selectedTemplate = useSelectedTemplate();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const allTemplates = useAllTemplates();\n\n if (!isInitialized) {\n \n// ... (truncated)"
|
|
6782
6788
|
},
|
|
6783
6789
|
{
|
|
6784
6790
|
name: "WithListReloadOnPopoverOpenDisabled",
|
|
6785
6791
|
description: "You can disable the reloading of the templates list on popover open by using the `reloadListOnOpen` prop",
|
|
6786
6792
|
code: "<ContextWrapper\n templatesControl={<TemplatesControl onChange={noop} reloadListOnOpen={false} />}\n />"
|
|
6793
|
+
},
|
|
6794
|
+
{
|
|
6795
|
+
name: "NewTagAndCustomButtonContent",
|
|
6796
|
+
description: "You can provide custom content for toggle by using the `toggleContent` prop. You can use it to make the content smaller or responsive, add additional info, etc. \n\nTo implement \"New!\" tag easily, you can use the `showNewTag` prop of the default content component, exposed as `TemplatesControl.ToggleDisplayDefault`",
|
|
6797
|
+
code: "{\n const commonProps = useMemo(\n () => ({\n onChange: noop,\n presetTemplates,\n currentTemplateId: presetTemplates[2].id,\n templateSettings: presetTemplates[2].settings,\n }),\n []\n );\n\n // Creating API with correct Templates' data type\n const API = useMemo(() => getTemplatesControlStoreApi<Data>(), []);\n\n // All magic happens here\n const Display = useMemo(\n () => () => {\n const { useIsInitialized, useSelectedTemplate } = API;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const isInitialized = useIsInitialized();\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const selectedTemplate = useSelectedTemplate();\n\n return (\n <div\n style={{\n width: '70px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n }}\n >\n {isInitialized ? selectedTemplate?.name : '...'}\n </div>\n );\n },\n [API]\n );\n// ... (truncated)"
|
|
6787
6798
|
}
|
|
6788
6799
|
],
|
|
6789
6800
|
sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/src/componentsV2/TemplatesControl/TemplatesControl.tsx",
|