@corva/ui 3.48.0-8 → 3.48.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/OffsetWellPickerV5.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/LoadAllWellsToggle.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/MultiFilterSelect/MultiFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/StatusFilterSelect/StatusFilterSelect.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js.map +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/types.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/types.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV5/stores/utils/omitKey.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/stores/utils/omitKey.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/doesWellPassFilters.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/getSortedIdsSignature.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/getSortedIdsSignature.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.js +2 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.js.map +1 -0
- package/cjs-bundle/components/OffsetWellPickerV5/utils/tile-math.js +1 -1
- package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +1 -1
- package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/LoadAllWellsToggle.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/AppHeader/LoadAllWellsToggle.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts +1 -4
- package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/MultiFilterSelect/MultiFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Filter/components/StatusFilterSelect/StatusFilterSelect.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +3 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.d.ts +10 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useIsMapMoving.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts +3 -5
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.d.ts +6 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useSyncViewportBounds.js +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.d.ts +12 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTileSafeEnforcement.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.d.ts +3 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useZoomLimitState.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.d.ts +8 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getTileGridBounds.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.d.ts +7 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getViewportBounds.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.d.ts +17 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/resolveResetBounds.js.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.d.ts +31 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.js +2 -0
- package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/smartFitBounds.js.map +1 -0
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +5 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +5 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.d.ts +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
- package/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts +7 -97
- package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
- package/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
- package/components/OffsetWellPickerV5/effects/useInitialBounds.js +1 -1
- package/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.d.ts +13 -6
- package/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.js +1 -1
- package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.d.ts +3 -2
- package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/company-safeguard/index.d.ts +1 -1
- package/components/OffsetWellPickerV5/stores/company-safeguard/index.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.d.ts +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts +14 -4
- package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/types.js +2 -0
- package/components/OffsetWellPickerV5/stores/filter-store/types.js.map +1 -0
- package/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js +1 -1
- package/components/OffsetWellPickerV5/stores/picker-props-store/__tests__/createPickerPropsStore.test.d.ts +2 -0
- package/components/OffsetWellPickerV5/stores/picker-props-store/__tests__/createPickerPropsStore.test.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.d.ts +1 -1
- package/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.js +1 -1
- package/components/OffsetWellPickerV5/stores/utils/omitKey.d.ts +2 -0
- package/components/OffsetWellPickerV5/stores/utils/omitKey.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/stores/utils/omitKey.js +2 -0
- package/components/OffsetWellPickerV5/stores/utils/omitKey.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.d.ts +16 -0
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.js +2 -0
- package/components/OffsetWellPickerV5/utils/doesWellPassFilters.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/getSortedIdsSignature.d.ts +2 -0
- package/components/OffsetWellPickerV5/utils/getSortedIdsSignature.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/getSortedIdsSignature.js +2 -0
- package/components/OffsetWellPickerV5/utils/getSortedIdsSignature.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.d.ts +3 -0
- package/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.d.ts.map +1 -0
- package/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.js +2 -0
- package/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.js.map +1 -0
- package/components/OffsetWellPickerV5/utils/tile-math.d.ts +1 -0
- package/components/OffsetWellPickerV5/utils/tile-math.d.ts.map +1 -1
- package/components/OffsetWellPickerV5/utils/tile-math.js +1 -1
- package/componentsV2/Autocomplete/Autocomplete.d.ts +2 -2
- package/componentsV2/Autocomplete/Autocomplete.js +1 -1
- package/effects/__tests__/useGlobalOffsetWellsSync.test.d.ts +2 -0
- package/effects/__tests__/useGlobalOffsetWellsSync.test.d.ts.map +1 -0
- package/effects/useGlobalOffsetWellsSync.d.ts.map +1 -1
- package/effects/useGlobalOffsetWellsSync.js +1 -1
- package/effects/useGlobalOffsetWellsSync.js.map +1 -1
- package/mcp-server/server.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
type Company
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
1
|
+
import type { Company } from '../stores/company-safeguard';
|
|
5
2
|
type UseLoadAllWellsCompanySafeguardOptions = {
|
|
6
3
|
companies: Company[];
|
|
7
4
|
canViewCompanies: boolean;
|
|
@@ -9,17 +6,27 @@ type UseLoadAllWellsCompanySafeguardOptions = {
|
|
|
9
6
|
};
|
|
10
7
|
type UseLoadAllWellsCompanySafeguardResult = {
|
|
11
8
|
isSafeguardReady: boolean;
|
|
9
|
+
safeguardAppliedCompanyId: number[] | null;
|
|
10
|
+
targetCompanyId: number[] | null;
|
|
12
11
|
resetSafeguard: () => void;
|
|
13
12
|
};
|
|
14
13
|
/**
|
|
15
14
|
* Applies a company filter safeguard when "Load All Wells" mode is enabled.
|
|
16
15
|
*
|
|
17
|
-
* When
|
|
18
|
-
* the company filter to prevent loading excessive data. It prioritizes the
|
|
16
|
+
* When no company filter is set (`companyId === undefined`), this hook automatically
|
|
17
|
+
* sets the company filter to prevent loading excessive data. It prioritizes the
|
|
19
18
|
* subject well's company, falling back to the first company alphabetically.
|
|
20
19
|
*
|
|
20
|
+
* Company filter semantics:
|
|
21
|
+
* - `undefined` (not in filters): Clean start — safeguard fires
|
|
22
|
+
* - `[]` (empty array): User explicitly chose "All companies" — safeguard skips
|
|
23
|
+
* - `[id]` (specific company): Specific selection — safeguard skips
|
|
24
|
+
*
|
|
21
25
|
* Returns `isSafeguardReady` which indicates whether it's safe to proceed with
|
|
22
26
|
* loading wells (either safeguard was applied or it's not needed).
|
|
27
|
+
*
|
|
28
|
+
* Returns `targetCompanyId` which is the always-computed default company for
|
|
29
|
+
* the safeguard, used by Filter.tsx for "To Defaults" comparison.
|
|
23
30
|
*/
|
|
24
31
|
export declare const useLoadAllWellsCompanySafeguard: ({ companies, canViewCompanies, canViewCompaniesLoading, }: UseLoadAllWellsCompanySafeguardOptions) => UseLoadAllWellsCompanySafeguardResult;
|
|
25
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadAllWellsCompanySafeguard.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLoadAllWellsCompanySafeguard.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useLoadAllWellsCompanySafeguard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,sCAAsC,GAAG;IAC5C,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uBAAuB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,KAAK,qCAAqC,GAAG;IAC3C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3C,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AA0BF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,+BAA+B,GAAI,2DAI7C,sCAAsC,KAAG,qCAsD3C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useState as r,useCallback as n,useMemo as e,useEffect as t}from"react";import{usePickerPropsStore as o}from"../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as i}from"../stores/filter-store/useFilterStore.js";var u=function(r,n){if(0===n.length)return null;var e=void 0!==r?Number(r):void 0;return void 0!==e&&!Number.isNaN(e)&&n.some((function(r){return r.id===e}))?e:n[0].id},l=function(l){var a=l.companies,s=l.canViewCompanies,f=l.canViewCompaniesLoading,d=o((function(r){return r.isLoadAllWells})),c=o((function(r){var n;return null===(n=r.defaultSubjectWell)||void 0===n?void 0:n.companyId})),p=i((function(r){return r.filters.companyId})),m=i((function(r){return r.setFilter})),v=r(null),g=v[0],y=v[1],I=n((function(){y(null)}),[]),S=e((function(){if(!d||!s||0===a.length)return null;var r=u(c,a);return null!==r?[r]:null}),[d,s,a,c]);return t((function(){if(d){if(!f&&s&&0!==a.length&&void 0===p){var r=u(c,a);null!==r&&(m("companyId",[r]),y([r]))}}else y(null)}),[d,p,f,s,a,c,m]),{isSafeguardReady:!(f||s&&d&&void 0===p),safeguardAppliedCompanyId:g,targetCompanyId:S,resetSafeguard:I}};export{l as useLoadAllWellsCompanySafeguard};
|
|
2
2
|
//# sourceMappingURL=useLoadAllWellsCompanySafeguard.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Company = {
|
|
1
|
+
export type Company = {
|
|
2
2
|
id: number;
|
|
3
3
|
name: string;
|
|
4
4
|
};
|
|
@@ -6,8 +6,9 @@ export type CompanySafeguardContextValue = {
|
|
|
6
6
|
companies: Company[];
|
|
7
7
|
canViewCompanies: boolean;
|
|
8
8
|
isSafeguardReady: boolean;
|
|
9
|
+
safeguardAppliedCompanyId: number[] | null;
|
|
10
|
+
targetCompanyId: number[] | null;
|
|
9
11
|
resetSafeguard: () => void;
|
|
10
12
|
};
|
|
11
13
|
export declare const CompanySafeguardContext: import("react").Context<CompanySafeguardContextValue>;
|
|
12
|
-
export {};
|
|
13
14
|
//# sourceMappingURL=CompanySafeguardContext.d.ts.map
|
package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompanySafeguardContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"CompanySafeguardContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3C,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,uDAA2D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { CompanySafeguardContext } from './CompanySafeguardContext';
|
|
2
|
-
export type { CompanySafeguardContextValue } from './CompanySafeguardContext';
|
|
2
|
+
export type { Company, CompanySafeguardContextValue } from './CompanySafeguardContext';
|
|
3
3
|
export { useCompanySafeguard } from './useCompanySafeguard';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/company-safeguard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/company-safeguard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterStoreProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"FilterStoreProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAK7D,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAqC5D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{useRef as t
|
|
1
|
+
import{__assign as r}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{useRef as t,useEffect as i}from"react";import{getDefaultRadiusMiles as o}from"../../utils/getDefaultRadiusMiles.js";import{createFilterStore as l}from"./createFilterStore.js";import{FilterStoreContext as s}from"./FilterStoreContext.js";import{normalizeFilters as n}from"./utils/normalizeFilters.js";var u=function(u){var a,d,m=u.children,c=u.filters,f=t(null);if(!f.current){var v=o(),p=n(c),j=r(r({},p),{selectionMode:null!==(a=null==p?void 0:p.selectionMode)&&void 0!==a?a:"radius",radius:null!==(d=null==p?void 0:p.radius)&&void 0!==d?d:v}),F={selectionMode:"radius",radius:v};f.current=l({filters:j,defaultFilters:F})}var x=f.current;return i((function(){var r=n(c);void 0!==r&&x.getState().setFilters(r,"external_sync")}),[x,c]),e(s.Provider,{value:x,children:m})};u.displayName="FilterStoreProvider";export{u as FilterStoreProvider};
|
|
2
2
|
//# sourceMappingURL=FilterStoreProvider.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type StoreApi } from 'zustand';
|
|
2
|
-
import type
|
|
2
|
+
import { type FilterStore, type FilterStoreProps } from './types';
|
|
3
3
|
export type FilterStoreApi = StoreApi<FilterStore>;
|
|
4
4
|
export declare const createFilterStore: (initProps: FilterStoreProps) => StoreApi<FilterStore>;
|
|
5
5
|
//# sourceMappingURL=createFilterStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFilterStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"createFilterStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMrD,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,gBAAgB,EAItB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,iBAAiB,GAAI,WAAW,gBAAgB,KAAG,QAAQ,CAAC,WAAW,CA8KnF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{__assign as t}from'./../../../../ext-esm/tslib/tslib.es6.js';import{createStore as e}from"zustand";import i from"lodash/isEqual";import r from"lodash/pick";import{omitKey as s}from"../utils/omitKey.js";import{SELECTION_FILTER_KEYS as l}from"./types.js";var o=function(o){var n,f,m=null!==(n=o.filters)&&void 0!==n?n:{},u=null!==(f=o.defaultFilters)&&void 0!==f?f:m;return e()((function(e,o){var n=function(i,r){e((function(e){return t(t({},i),{lastFilterMutationSource:r,filterMutationSeq:e.filterMutationSeq+1})}))};return{filters:m,defaultFilters:u,tempFilters:{},lastFilterMutationSource:"external_sync",filterMutationSeq:0,setFilter:function(e,r,l){var f;void 0===l&&(l="system");var m=o().filters;if(void 0!==r)i(m[e],r)||n({filters:t(t({},m),(f={},f[e]=r,f))},l);else{if(!(e in m))return;n({filters:s(m,e)},l)}},setFilters:function(t,e){void 0===e&&(e="system");var r=o().filters,s=null!=t?t:{};i(r,s)||n({filters:s},e)},clearFilters:function(t){void 0===t&&(t="system");var e=o().filters,i=o().tempFilters;0===Object.keys(e).length&&0===Object.keys(i).length||n({filters:{},tempFilters:{}},t)},resetFilters:function(t){void 0===t&&(t="system");var e=o().filters,r=o().tempFilters,s=!i(e,u),l=Object.keys(r).length>0;(s||l)&&n({filters:u,tempFilters:{}},t)},resetFilterCriteria:function(e){void 0===e&&(e="system");var s=o().filters,f=o().tempFilters,m=r(s,l),a=t(t({},u),m);(!i(s,a)||Object.keys(f).length>0)&&n({filters:a,tempFilters:{}},e)},hasActiveFilters:function(){var t=o().filters;return Object.keys(t).length>0},setTempFilter:function(r,s){var l,n=o().tempFilters;i(n[r],s)||e({tempFilters:t(t({},n),(l={},l[r]=s,l))})},clearTempFilter:function(t){var i=o().tempFilters;t in i&&e({tempFilters:s(i,t)})},clearAllTempFilters:function(){var t=o().tempFilters;0!==Object.keys(t).length&&e({tempFilters:{}})},commitTempFilter:function(t){var e=o().tempFilters[t];void 0!==e&&(o().setFilter(t,e),o().clearTempFilter(t))},setSelectionMode:function(e){var i=o().filters;i.selectionMode!==e&&n({filters:t(t({},i),{selectionMode:e})},"system")},setPolygonCoords:function(e){var r=o().filters;i(r.polygonCoords,e)||n({filters:t(t({},r),{polygonCoords:e})},"system")},setRadius:function(e){var i=o().filters;i.radius!==e&&n({filters:t(t({},i),{radius:e})},"system")}}}))};export{o as createFilterStore};
|
|
2
2
|
//# sourceMappingURL=createFilterStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,yBAAyB,0CAA6C;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type PeriodType = 'all' | 'last12h' | 'last24h' | 'last7d' | 'lastMonth' | 'custom';
|
|
2
2
|
export type SelectionMode = 'radius' | 'lasso';
|
|
3
|
+
export type FilterMutationSource = 'manual_ui' | 'system' | 'external_sync';
|
|
3
4
|
export type PolygonCoord = {
|
|
4
5
|
latitude: number;
|
|
5
6
|
longitude: number;
|
|
@@ -23,13 +24,22 @@ export type FilterState = {
|
|
|
23
24
|
radius?: number;
|
|
24
25
|
hasUserConfirmedAllCompaniesLoadAll?: boolean;
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Keys representing map selection state (not filter criteria).
|
|
29
|
+
* These are preserved during filter resets and excluded from default-state comparisons.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SELECTION_FILTER_KEYS: readonly ["selectionMode", "radius", "polygonCoords"];
|
|
26
32
|
export type FilterStore = {
|
|
27
33
|
filters: FilterState;
|
|
34
|
+
defaultFilters: FilterState;
|
|
28
35
|
tempFilters: Partial<FilterState>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
lastFilterMutationSource: FilterMutationSource;
|
|
37
|
+
filterMutationSeq: number;
|
|
38
|
+
setFilter: (key: keyof FilterState, value: FilterState[keyof FilterState], source?: FilterMutationSource) => void;
|
|
39
|
+
setFilters: (filters: FilterState, source?: FilterMutationSource) => void;
|
|
40
|
+
clearFilters: (source?: FilterMutationSource) => void;
|
|
41
|
+
resetFilters: (source?: FilterMutationSource) => void;
|
|
42
|
+
resetFilterCriteria: (source?: FilterMutationSource) => void;
|
|
33
43
|
hasActiveFilters: () => boolean;
|
|
34
44
|
setTempFilter: (key: keyof FilterState, value: FilterState[keyof FilterState]) => void;
|
|
35
45
|
clearTempFilter: (key: keyof FilterState) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE3F,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;AAM1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,GAAG,SAAS,GAAG,IAAI,KACtC,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"normalizeFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;AAM1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,WAAW,GAAG,SAAS,GAAG,IAAI,KACtC,WAAW,GAAG,SA6BhB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as o,__assign as e}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{omit as l}from"lodash";var
|
|
1
|
+
import{__rest as o,__assign as e}from'./../../../../../ext-esm/tslib/tslib.es6.js';import{omit as l}from"lodash";var n=function(n){if(null!=n){var r,s=Object.fromEntries(Object.entries(n).filter((function(o){return null!==o[1]}))),i=l(s,"hasUserConfirmedAllCompaniesLoadAll"),t=i.selectionMode,d=i.polygonCoords,a=o(i,["selectionMode","polygonCoords"]);return"lasso"!==t||(r=d,Boolean(r&&r.length>=3))?e(e(e({},a),void 0!==t&&{selectionMode:t}),void 0!==d&&{polygonCoords:d}):e(e(e({},a),{selectionMode:"radius"}),void 0!==d&&{polygonCoords:d})}};export{n as normalizeFilters};
|
|
2
2
|
//# sourceMappingURL=normalizeFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPickerPropsStore.test.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/stores/picker-props-store/__tests__/createPickerPropsStore.test.ts"],"names":[],"mappings":""}
|
|
@@ -27,7 +27,7 @@ export type PickerPropsStore = {
|
|
|
27
27
|
syncAutoEnabled: boolean;
|
|
28
28
|
isManualWellsEnabled: boolean;
|
|
29
29
|
isGlobalMode: boolean;
|
|
30
|
-
loadAllWellsByDefault: boolean;
|
|
30
|
+
loadAllWellsByDefault: boolean | undefined;
|
|
31
31
|
isLoadAllWells: boolean;
|
|
32
32
|
allWellsLoadProgress: AllWellsLoadProgress | null;
|
|
33
33
|
shouldRecenter: boolean;
|
package/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPickerPropsStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGrD,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AAIxC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE;QAEnB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,WAAW,CAAC,EAAE;QAEZ,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,qBAAqB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC;IACzF,MAAM,EACF,CAAC,CAAC,cAAc,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC,GAC9E,SAAS,CAAC;IACd,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"createPickerPropsStore.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/picker-props-store/createPickerPropsStore.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createStore as l}from"zustand";import{identity as e}from"lodash";import{getEffectiveIsLoadAllWells as s}from"./utils/getEffectiveIsLoadAllWells.js";var o=function(o){var a,
|
|
1
|
+
import{createStore as l}from"zustand";import{identity as e}from"lodash";import{getEffectiveIsLoadAllWells as s}from"./utils/getEffectiveIsLoadAllWells.js";var o=function(o){var a,t=s({offsetSettingsIsLoadAllWells:null===(a=o.offsetSettings)||void 0===a?void 0:a.isLoadAllWells,loadAllWellsByDefault:o.loadAllWellsByDefault,isGlobalMode:o.isGlobalMode});return l()((function(l){var a,n,i,d,u,f,r,W;return{open:o.open,defaultSubjectWell:o.defaultSubjectWell,offsetSettings:o.offsetSettings,currentUser:o.currentUser,addWellsUsabilityInfo:null!==(a=o.addWellsUsabilityInfo)&&void 0!==a?a:e,onSave:o.onSave,onClose:o.onClose,isViewOnly:null!==(n=o.isViewOnly)&&void 0!==n&&n,isWDUser:null!==(i=o.isWDUser)&&void 0!==i&&i,maxOffsetSize:null!==(d=o.maxOffsetSize)&&void 0!==d?d:50,localMaxOffsetSize:null!==(u=o.localMaxOffsetSize)&&void 0!==u?u:50,syncAutoEnabled:null!==(f=o.syncAutoEnabled)&&void 0!==f&&f,isManualWellsEnabled:null!==(r=o.isManualWellsEnabled)&&void 0!==r&&r,isGlobalMode:null!==(W=o.isGlobalMode)&&void 0!==W&&W,loadAllWellsByDefault:o.loadAllWellsByDefault,isLoadAllWells:t,allWellsLoadProgress:null,shouldRecenter:!1,toggleLoadAllWells:function(){l((function(l){return{isLoadAllWells:!l.isLoadAllWells,allWellsLoadProgress:null}}))},resetIsLoadAllWells:function(){l((function(l){var e;return{isLoadAllWells:s({offsetSettingsIsLoadAllWells:null===(e=l.offsetSettings)||void 0===e?void 0:e.isLoadAllWells,loadAllWellsByDefault:l.loadAllWellsByDefault,isGlobalMode:l.isGlobalMode}),allWellsLoadProgress:null}}))},setIsLoadAllWells:function(e){l({isLoadAllWells:e,allWellsLoadProgress:null})},setAllWellsLoadProgress:function(e){l({allWellsLoadProgress:e})},setShouldRecenter:function(e){l({shouldRecenter:e})}}}))};export{o as createPickerPropsStore};
|
|
2
2
|
//# sourceMappingURL=createPickerPropsStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omitKey.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/utils/omitKey.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,KAAG,OAAO,CAAC,CAAC,CAI1F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oEAAoE,0CAA6C;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FilterState } from '../stores/filter-store/types';
|
|
2
|
+
export type FilterableWell = {
|
|
3
|
+
name?: string;
|
|
4
|
+
lastActive?: number;
|
|
5
|
+
status?: string;
|
|
6
|
+
companyId?: number | string;
|
|
7
|
+
rigName?: string;
|
|
8
|
+
programName?: string;
|
|
9
|
+
basin?: string;
|
|
10
|
+
county?: string;
|
|
11
|
+
area?: string;
|
|
12
|
+
formation?: string;
|
|
13
|
+
stringDesign?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const doesWellPassFilters: (well: FilterableWell, filters: FilterState | null) => boolean;
|
|
16
|
+
//# sourceMappingURL=doesWellPassFilters.d.ts.map
|
|
@@ -0,0 +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;AAkBhE,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,MAAM,cAAc,EAAE,SAAS,WAAW,GAAG,IAAI,KAAG,OAiCvF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getTimestampByPeriod as r}from"./getTimestampByPeriod.js";var e=/\sST0/,i=["status","companyId","rigName","programName","basin","county","area","formation","stringDesign"],t=function(t,n){var a;if(!n)return!0;if(!i.every((function(r){var e=n[r];return!(Array.isArray(e)&&e.length>0)||e.includes(t[r])})))return!1;if(n.sideTracks&&e.test(null!==(a=t.name)&&void 0!==a?a:""))return!1;var o=n.period,s=n.timeRangeFrom,m=n.timeRangeTo,u=r(o,s,m),f=u[0],v=u[1];if(Number.isFinite(f)&&Number.isFinite(v)){var g=t.lastActive;if(void 0===g||!(g>=f&&g<=v))return!1}return!0};export{t as doesWellPassFilters};
|
|
2
|
+
//# sourceMappingURL=doesWellPassFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doesWellPassFilters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSortedIdsSignature.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/getSortedIdsSignature.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,EAAE,KAAG,MAQrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSortedIdsSignature.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAllOrNoneSelected.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/isAllOrNoneSelected.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,eAAO,MAAM,mBAAmB,GAAI,UAAU,OAAO,EAAE,EAAE,OAAO,MAAM,KAAG,OACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAllOrNoneSelected.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -56,6 +56,7 @@ export declare const isPointInBounds: (longitude: number, latitude: number, boun
|
|
|
56
56
|
export declare const tilesToGeoJSON: (tileKeys: TileKey[]) => GeoJSON.FeatureCollection;
|
|
57
57
|
/**
|
|
58
58
|
* Checks if viewport shows too many tiles and zooms in if needed.
|
|
59
|
+
* Also ensures zoom is at least enough to break clusters.
|
|
59
60
|
* Returns true if zoom was adjusted, false otherwise.
|
|
60
61
|
*/
|
|
61
62
|
export declare const enforceZoomLimitIfNeeded: (map: MapboxMap) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile-math.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/tile-math.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tile-math.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/tile-math.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE/F;;;GAGG;AACH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,2BAA2B,GAAI,kBAAkB,MAAM,KAAG,MAStE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,KAAG,OAGtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,OAAO,KAAG,IAGxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI,KAAG,SAUzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,KAAG,IAEjE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,cAAc,KAAG,MAY1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,cAAc,KAAG,OAAO,EAqBnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,MAAM,EACjB,UAAU,MAAM,EAChB,QAAQ,cAAc,KACrB,OAOF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,OAAO,EAAE,KAAG,OAAO,CAAC,iBAwB5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,KAAK,SAAS,KAAG,OA8BzD,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{pointToTile as t,tileToBBOX as n}from"@mapbox/tilebelt";import"../components/Map/OffsetWellMap/constants.js";var a=11,r=9,e=function(t){if(t<=9)return 0;var n=t/9;return Math.log2(Math.sqrt(n))+.1},o=function(t){var n=t[0],a=t[1],r=t[2];return"".concat(r,"/").concat(n,"/").concat(a)},s=function(t){var n=t.split("/").map(Number),a=n[0];return[n[1],n[2],a]},u=function(t){var a=n(t),r=a[0],e=a[1],o=a[2];return{lat_start:e,lat_end:a[3],long_start:r,long_end:o}},l=function(n,a){return t(n,a,11)},i=function(t){var n=t.north,a=t.south,r=t.east,e=t.west,o=l(e,n),s=l(r,a),u=Math.min(o[0],s[0]),i=Math.max(o[0],s[0]),c=Math.min(o[1],s[1]);return(i-u+1)*(Math.max(o[1],s[1])-c+1)},c=function(t){for(var n=t.north,a=t.south,r=t.east,e=t.west,s=l(e,n),u=l(r,a),i=[],c=Math.min(s[0],u[0]),m=Math.max(s[0],u[0]),p=Math.min(s[1],u[1]),f=Math.max(s[1],u[1]),h=c;h<=m;h+=1)for(var _=p;_<=f;_+=1){var M=[h,_,11];i.push(o(M))}return i},m=function(t){return{type:"FeatureCollection",features:t.map((function(t){var n=s(t),a=u(n);return{type:"Feature",properties:{tileKey:t},geometry:{type:"Polygon",coordinates:[[[a.long_start,a.lat_start],[a.long_end,a.lat_start],[a.long_end,a.lat_end],[a.long_start,a.lat_end],[a.long_start,a.lat_start]]]}}}))}};export{r as MAX_TILES_FOR_FETCH,a as TILE_ZOOM,i as estimateTileCount,c as getTilesForViewport,e as getZoomIncreaseForTileLimit,s as keyToTile,l as pointToTile,u as tileToBounds,o as tileToKey,m as tilesToGeoJSON};
|
|
2
2
|
//# sourceMappingURL=tile-math.js.map
|
|
@@ -110,9 +110,9 @@ export type AutocompleteProps<T extends AutocompleteOption = AutocompleteOption,
|
|
|
110
110
|
/**
|
|
111
111
|
* Custom listbox component for rendering options (e.g., virtualized list)
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
listboxComponent?: React.ComponentType<React.HTMLAttributes<HTMLElement>>;
|
|
114
114
|
};
|
|
115
115
|
export type AutocompleteChangeHandler<Option extends AutocompleteOption = AutocompleteOption, Multiple extends boolean | undefined = false> = Required<AutocompleteProps<Option, Multiple>>['onChange'];
|
|
116
|
-
export declare const Autocomplete: <T extends AutocompleteOption, Multiple extends boolean | undefined = false>({ label, options, value, onChange, multiple, renderOption, optionSize, showPopupIcon, clearable, loading, noOptionsMessage, spacing, filterOptions, prefix, disabled, getOptionDisabled, renderSelected, onInputChange, className, testId, status, message, useAllOption, groupBy, renderGroup, disableFiltering, onCreate, dropdownClassName, type, placeholder, focusOnClear,
|
|
116
|
+
export declare const Autocomplete: <T extends AutocompleteOption, Multiple extends boolean | undefined = false>({ label, options, value, onChange, multiple, renderOption, optionSize, showPopupIcon, clearable, loading, noOptionsMessage, spacing, filterOptions, prefix, disabled, getOptionDisabled, renderSelected, onInputChange, className, testId, status, message, useAllOption, groupBy, renderGroup, disableFiltering, onCreate, dropdownClassName, type, placeholder, focusOnClear, listboxComponent, }: AutocompleteProps<T, Multiple>) => JSX.Element;
|
|
117
117
|
export {};
|
|
118
118
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/typeof";import{__spreadArray as n,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{createFilterOptions as t,Autocomplete as e}from"@material-ui/lab";import{useMemo as c,useCallback as r}from"react";import l from"classnames";import{Popper as u}from"../Popper/Popper.js";import{DownOneIcon as m,CloseSmallIcon as p}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{AutocompleteInput as a}from"./AutocompleteInput.js";import{AutocompletePaper as d}from"./AutocompletePaper.js";import{isRealOption as f,CreateOptionMark as j,AllOptionMark as I,renderOptionDefault as h,renderSelectedValue as g}from"./utils.js";import{AutocompleteMenuItem as v}from"./AutocompleteMenuItem.js";import{AutocompleteListBox as b}from"./AutocompleteListBox.js";import O from"./Autocomplete.scss.js";var A=function(A){var C=A.label,x=A.options,y=void 0===x?[]:x,F=A.value,P=A.onChange,k=A.multiple,S=A.renderOption,D=void 0===S?h:S,L=A.optionSize,z=void 0===L?"medium":L,G=A.showPopupIcon,M=void 0===G||G,N=A.clearable,R=void 0===N||N,T=A.loading,w=A.noOptionsMessage,B=A.spacing,V=A.filterOptions,E=A.prefix,U=A.disabled,q=A.getOptionDisabled,W=A.renderSelected,Z=void 0===W?g:W,_=A.onInputChange,H=A.className,J=A.testId,K=A.status,Q=A.message,X=A.useAllOption,Y=void 0!==X&&X,$=A.groupBy,oo=A.renderGroup,no=A.disableFiltering,so=A.onCreate,io=A.dropdownClassName,to=A.type,eo=void 0===to?"default":to,co=A.placeholder,ro=A.focusOnClear,lo=void 0===ro||ro,uo=A.
|
|
1
|
+
import o from"@babel/runtime/helpers/typeof";import{__spreadArray as n,__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{createFilterOptions as t,Autocomplete as e}from"@material-ui/lab";import{useMemo as c,useCallback as r}from"react";import l from"classnames";import{Popper as u}from"../Popper/Popper.js";import{DownOneIcon as m,CloseSmallIcon as p}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{AutocompleteInput as a}from"./AutocompleteInput.js";import{AutocompletePaper as d}from"./AutocompletePaper.js";import{isRealOption as f,CreateOptionMark as j,AllOptionMark as I,renderOptionDefault as h,renderSelectedValue as g}from"./utils.js";import{AutocompleteMenuItem as v}from"./AutocompleteMenuItem.js";import{AutocompleteListBox as b}from"./AutocompleteListBox.js";import O from"./Autocomplete.scss.js";var A=function(A){var C=A.label,x=A.options,y=void 0===x?[]:x,F=A.value,P=A.onChange,k=A.multiple,S=A.renderOption,D=void 0===S?h:S,L=A.optionSize,z=void 0===L?"medium":L,G=A.showPopupIcon,M=void 0===G||G,N=A.clearable,R=void 0===N||N,T=A.loading,w=A.noOptionsMessage,B=A.spacing,V=A.filterOptions,E=A.prefix,U=A.disabled,q=A.getOptionDisabled,W=A.renderSelected,Z=void 0===W?g:W,_=A.onInputChange,H=A.className,J=A.testId,K=A.status,Q=A.message,X=A.useAllOption,Y=void 0!==X&&X,$=A.groupBy,oo=A.renderGroup,no=A.disableFiltering,so=A.onCreate,io=A.dropdownClassName,to=A.type,eo=void 0===to?"default":to,co=A.placeholder,ro=A.focusOnClear,lo=void 0===ro||ro,uo=A.listboxComponent,mo=c((function(){if(!F||F instanceof Array&&0===F.length)return k?[]:null;var s=F instanceof Array?F:[F];if(k){var i=s.filter((function(n){return"object"!==o(n)})),t=s.filter((function(n){return"object"===o(n)})).map((function(o){return{id:o.id,title:o.title}})),e=y.filter((function(o){return i.includes(o.id)}));return n(n([],e,!0),t,!0)}return"object"===o(s[0])?s[0]:y.find((function(o){return s[0]===o.id}))||null}),[k,F,y]),po=mo instanceof Array&&mo.length>0,ao=mo instanceof Array&&mo.length===y.length,fo=T?"Loading ...":"No options",jo=!R||!mo||mo instanceof Array&&!(null==mo?void 0:mo.length),Io=r((function(o){return i(a,s({},o,{label:C,loading:T,spacing:B,prefix:E,forceLabelShrink:mo instanceof Array?mo.length>0:!!mo,status:K,message:Q,readOnly:no,placeholder:co,type:eo}))}),[C,T,B,E,mo,K,Q,no,eo,co]),ho=r((function(o,n,s){if("clear"!==s||lo||(o.stopPropagation(),o.preventDefault()),so&&n){var i=(n instanceof Array?n:[n]).find((function(o){return!f(o)&&!!o[j]}));if(i)return void so(i.newOptionTitle||"")}if(k&&n instanceof Array&&n.some((function(o){return!f(o)&&!!o[I]})))return void(mo instanceof Array&&mo.length<y.length?null==P||P(y.filter(f),s,o):null==P||P([],s,o));null==P||P(n||void 0,s,o)}),[lo,so,k,P,mo,y]),go=r((function(o,n){var s=n.selected;return f(o)?i(v,{size:z,selected:s,prefix:o.prefix,multiple:k,children:D(o)}):i(v,{size:z,selected:po,indeterminate:po&&!ao,multiple:k&&o[I],className:o[I]?O.sticky:void 0,children:o.title})}),[D,z,k,po,ao]),vo=r((function(o,s){var i,e,c=V?V(o,s.inputValue):t()(o,s),r=Y&&k&&c.length?n([(i={title:"All"},i[I]=!0,i)],c,!0):c;return so&&""!==s.inputValue.trim()?n(n([],r,!0),[(e={title:'Add "'.concat(s.inputValue,'"')},e[j]=!0,e.newOptionTitle=s.inputValue,e)],!1):r}),[V,so,Y,k]),bo=r((function(o){return f(o)&&!!(null==q?void 0:q(o))}),[q]),Oo=r((function(o){return o.title}),[]),Ao=r((function(o,n){var s=o.filter(f).map((function(o,s){return{option:o,onDelete:n({index:s}).onDelete}}));return Z(s,{useAllOption:Y,allOptions:y})}),[Z,Y,y]),Co=r((function(o,n,s){"reset"!==s&&(null==_||_(n,o))}),[_]),xo=c((function(){if($)return function(o){return f(o)?$(o):""}}),[$]),yo=c((function(){return{paper:io}}),[io]),Fo=r((function(o,n){return!(!f(o)||!f(n))&&o.id===n.id}),[]),Po=e;return i("div",{className:l(O.root,H),"data-testid":J,children:i(Po,{value:mo,options:y,getOptionLabel:Oo,renderInput:Io,PopperComponent:u,PaperComponent:d,multiple:k,disableCloseOnSelect:k,blurOnSelect:!k,onChange:ho,renderOption:go,popupIcon:i(m,{theme:"filled",size:16}),forcePopupIcon:!!M,closeIcon:i(p,{size:16}),disableClearable:jo,clearText:"",noOptionsText:w||fo,filterOptions:vo,disabled:U,getOptionDisabled:bo,renderTags:Ao,onInputChange:Co,groupBy:xo,renderGroup:oo,clearOnBlur:!0,selectOnFocus:!no,classes:yo,getOptionSelected:Fo,ListboxComponent:null!=uo?uo:b})})};export{A as Autocomplete};
|
|
2
2
|
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalOffsetWellsSync.test.d.ts","sourceRoot":"","sources":["../../../src/effects/__tests__/useGlobalOffsetWellsSync.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGlobalOffsetWellsSync.d.ts","sourceRoot":"","sources":["../../src/effects/useGlobalOffsetWellsSync.js"],"names":[],"mappings":"AAIO,
|
|
1
|
+
{"version":3,"file":"useGlobalOffsetWellsSync.d.ts","sourceRoot":"","sources":["../../src/effects/useGlobalOffsetWellsSync.js"],"names":[],"mappings":"AAIO,6GAwBN"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{useRef as o,useEffect as r}from"react";import"../clients/subscriptions/constants.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"lodash";import"../clients/subscriptions.v1.js";import"../clients/jsonApi/index.js";import"../clients/subscriptions/subscriptions-client.factory.js";import"immutable";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"../constants/corvaCompanyId.js";import"../components/GradientManager/configuration/constants.js";import"../utils/index.js";import"uuid";import"jsona";import"../utils/env.js";import"../components/StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";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"react/jsx-runtime";import{useAppCommons as s}from"../componentsV2/AppCommonsProvider/AppCommonsContext.js";function e(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,s)}return r}function n(o){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?e(Object(s),!0).forEach((function(r){t(o,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach((function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(s,t))}))}return o}var i=function(t,e,i){var p=s(),m=null==p?void 0:p.globalOffsetWells,c=null==p?void 0:p.globalOffsetWellsVersion,a=o();r((function(){if(m&&Array.isArray(m)&&void 0!==c)if(void 0!==a.current){if(a.current!==c){a.current=c;var o=m.slice(0,i),r=o.map((function(t){return t.id}));e(n(n({},t),{},{selectedWellIds:r}),o)}}else a.current=c}),[c,m])};export{i as useGlobalOffsetWellsSync};
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{useRef as o,useEffect as r}from"react";import"../clients/subscriptions/constants.js";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"lodash";import"../clients/subscriptions.v1.js";import"../clients/jsonApi/index.js";import"../clients/subscriptions/subscriptions-client.factory.js";import"immutable";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"../constants/corvaCompanyId.js";import"../components/GradientManager/configuration/constants.js";import"../utils/index.js";import"uuid";import"jsona";import"../utils/env.js";import"../components/StatusBadge/constants.js";import"@babel/runtime/helpers/toConsumableArray";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"react/jsx-runtime";import{useAppCommons as s}from"../componentsV2/AppCommonsProvider/AppCommonsContext.js";function e(t,o){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);o&&(s=s.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),r.push.apply(r,s)}return r}function n(o){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?e(Object(s),!0).forEach((function(r){t(o,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach((function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(s,t))}))}return o}var i=function(t,e,i){var p=s(),m=null==p?void 0:p.globalOffsetWells,c=null==p?void 0:p.globalOffsetWellsVersion,a=o();r((function(){if(m&&Array.isArray(m)&&void 0!==c)if(void 0!==a.current){if(a.current!==c){a.current=c;var o=m.slice(0,i),r=o.map((function(t){return t.id}));e(n(n({},t||{}),{},{selectedWellIds:r}),o)}}else a.current=c}),[c,m,i,t,e])};export{i as useGlobalOffsetWellsSync};
|
|
2
2
|
//# sourceMappingURL=useGlobalOffsetWellsSync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGlobalOffsetWellsSync.js","sources":["../../src/effects/useGlobalOffsetWellsSync.js"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport { useAppCommons } from '~/effects';\n\nexport const useGlobalOffsetWellsSync = (offsetSettings, onChange, maxOffsetWellNumber) => {\n const appCommons = useAppCommons();\n const globalOffsetWells = appCommons?.globalOffsetWells;\n const globalOffsetWellsVersion = appCommons?.globalOffsetWellsVersion;\n const prevVersionRef = useRef();\n\n useEffect(() => {\n if (!globalOffsetWells || !Array.isArray(globalOffsetWells)) return;\n if (globalOffsetWellsVersion === undefined) return;\n\n if (prevVersionRef.current === undefined) {\n prevVersionRef.current = globalOffsetWellsVersion;\n return;\n }\n\n if (prevVersionRef.current === globalOffsetWellsVersion) return;\n prevVersionRef.current = globalOffsetWellsVersion;\n const globalOffsetWellsTrimmed = globalOffsetWells.slice(0, maxOffsetWellNumber);\n\n const currentIds = globalOffsetWellsTrimmed.map(w => w.id);\n\n onChange({ ...
|
|
1
|
+
{"version":3,"file":"useGlobalOffsetWellsSync.js","sources":["../../src/effects/useGlobalOffsetWellsSync.js"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport { useAppCommons } from '~/effects';\n\nexport const useGlobalOffsetWellsSync = (offsetSettings, onChange, maxOffsetWellNumber) => {\n const appCommons = useAppCommons();\n const globalOffsetWells = appCommons?.globalOffsetWells;\n const globalOffsetWellsVersion = appCommons?.globalOffsetWellsVersion;\n const prevVersionRef = useRef();\n\n useEffect(() => {\n if (!globalOffsetWells || !Array.isArray(globalOffsetWells)) return;\n if (globalOffsetWellsVersion === undefined) return;\n\n if (prevVersionRef.current === undefined) {\n prevVersionRef.current = globalOffsetWellsVersion;\n return;\n }\n\n if (prevVersionRef.current === globalOffsetWellsVersion) return;\n prevVersionRef.current = globalOffsetWellsVersion;\n const globalOffsetWellsTrimmed = globalOffsetWells.slice(0, maxOffsetWellNumber);\n\n const currentIds = globalOffsetWellsTrimmed.map(w => w.id);\n const baseSettings = offsetSettings || {};\n\n onChange({ ...baseSettings, selectedWellIds: currentIds }, globalOffsetWellsTrimmed);\n }, [globalOffsetWellsVersion, globalOffsetWells, maxOffsetWellNumber, offsetSettings, onChange]);\n};\n"],"names":["useGlobalOffsetWellsSync","offsetSettings","onChange","maxOffsetWellNumber","appCommons","useAppCommons","globalOffsetWells","globalOffsetWellsVersion","prevVersionRef","useRef","useEffect","Array","isArray","undefined","current","globalOffsetWellsTrimmed","slice","currentIds","map","w","id","selectedWellIds"],"mappings":"wnEAIO,IAAMA,EAA2B,SAACC,EAAgBC,EAAUC,GACjE,IAAMC,EAAaC,IACbC,EAAoBF,aAAAA,EAAAA,EAAYE,kBAChCC,EAA2BH,aAAAA,EAAAA,EAAYG,yBACvCC,EAAiBC,IAEvBC,GAAU,WACR,GAAKJ,GAAsBK,MAAMC,QAAQN,SACRO,IAA7BN,EAEJ,QAA+BM,IAA3BL,EAAeM,SAKnB,GAAIN,EAAeM,UAAYP,EAA/B,CACAC,EAAeM,QAAUP,EACzB,IAAMQ,EAA2BT,EAAkBU,MAAM,EAAGb,GAEtDc,EAAaF,EAAyBG,KAAI,SAAAC,GAAC,OAAIA,EAAEC,MAGvDlB,SAFqBD,GAAkB,IAEb,CAAA,EAAA,CAAEoB,gBAAiBJ,IAAcF,EAPF,OAJvDP,EAAeM,QAAUP,CAY7B,GAAG,CAACA,EAA0BD,EAAmBH,EAAqBF,EAAgBC,GACxF"}
|
package/mcp-server/server.mjs
CHANGED
|
@@ -1099,7 +1099,7 @@ var componentsV2Data = [
|
|
|
1099
1099
|
description: ""
|
|
1100
1100
|
},
|
|
1101
1101
|
{
|
|
1102
|
-
name: "
|
|
1102
|
+
name: "listboxComponent",
|
|
1103
1103
|
type: "React.ComponentType<React.HTMLAttributes<HTMLElement>>",
|
|
1104
1104
|
required: false,
|
|
1105
1105
|
description: "Custom listbox component for rendering options (e.g., virtualized list)"
|