@opengeoweb/data-explorer 13.2.1 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@opengeoweb/data-explorer",
3
- "version": "13.2.1",
3
+ "version": "14.0.0",
4
4
  "dependencies": {
5
5
  "@mui/material": "^7.0.1",
6
- "@opengeoweb/api": "13.2.1",
7
- "@opengeoweb/core": "13.2.1",
8
- "@opengeoweb/shared": "13.2.1",
9
- "@opengeoweb/snackbar": "13.2.1",
10
- "@opengeoweb/store": "13.2.1",
11
- "@opengeoweb/theme": "13.2.1",
12
- "@opengeoweb/webmap": "13.2.1",
13
- "@opengeoweb/webmap-react": "13.2.1",
6
+ "@opengeoweb/api": "14.0.0",
7
+ "@opengeoweb/core": "14.0.0",
8
+ "@opengeoweb/shared": "14.0.0",
9
+ "@opengeoweb/snackbar": "14.0.0",
10
+ "@opengeoweb/store": "14.0.0",
11
+ "@opengeoweb/theme": "14.0.0",
12
+ "@opengeoweb/webmap": "14.0.0",
13
+ "@opengeoweb/webmap-react": "14.0.0",
14
14
  "@reduxjs/toolkit": "^2.6.1",
15
15
  "@tanstack/query-core": "^5.69.2",
16
16
  "@tanstack/react-query": "^5.85.5",
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface DataExplorerFilterOptionProps {
3
3
  optionId: string;
4
+ filterId: string;
4
5
  checked: boolean;
5
6
  onClick: (checked: boolean) => void;
6
7
  value: string;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { View } from 'ol';
3
+ import { GetCapabilitiesJson } from '@opengeoweb/webmap';
4
+ interface InfoDialogWMSMapProps {
5
+ view: View;
6
+ geometry: {
7
+ type: string;
8
+ coordinates: number[][][];
9
+ };
10
+ dataLink: string;
11
+ getCapabilitiesJSON: GetCapabilitiesJson;
12
+ }
13
+ export declare const InfoDialogWMSMap: React.FC<InfoDialogWMSMapProps>;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ interface InfoDialogWMSMapConnectProps {
3
+ geometry: {
4
+ type: string;
5
+ coordinates: number[][][];
6
+ };
7
+ links: {
8
+ href: string;
9
+ rel: string;
10
+ title?: string;
11
+ type: string;
12
+ }[];
13
+ }
14
+ declare const InfoDialogWMSMapConnect: React.FC<InfoDialogWMSMapConnectProps>;
15
+ export default InfoDialogWMSMapConnect;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import InfoDialogWMSMapConnect from './InfoDialogWMSMapConnect';
3
+ declare const meta: Meta<typeof InfoDialogWMSMapConnect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof InfoDialogWMSMapConnect>;
6
+ export declare const InfoDialogWMSMapConnectDemoLight: Story;
7
+ export declare const InfoDialogWMSMapConnectDemoDark: Story;
@@ -1,5 +1,5 @@
1
1
  import { Draft, PayloadAction } from '@reduxjs/toolkit';
2
- import { DataExplorerStoreType, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload, SetBboxFilterPayload } from './types';
2
+ import { DataExplorerStoreType, DataExplorerPresets, SetSelectedDatasetPayload, SetQueryablesPayload, SetQueryableValuePayload, SetSearchFilterPayload, SetSelectedConceptPayload, SetWMSboxFilterPayload, SetBboxFilterPayload } from './types';
3
3
  export declare const initialState: DataExplorerStoreType;
4
4
  export declare const dataExplorerReducer: import("redux").Reducer<DataExplorerStoreType>, dataExplorerActions: import("@reduxjs/toolkit").CaseReducerActions<{
5
5
  setSearchFilter: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSearchFilterPayload>) => void;
@@ -8,5 +8,6 @@ export declare const dataExplorerReducer: import("redux").Reducer<DataExplorerSt
8
8
  setSelectedDatasetId: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSelectedDatasetPayload>) => void;
9
9
  setSelectedConcept: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetSelectedConceptPayload>) => void;
10
10
  setDataExplorerConfiguration: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<DataExplorerPresets>) => void;
11
+ setWMSbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetWMSboxFilterPayload>) => void;
11
12
  setBbox: (draft: Draft<DataExplorerStoreType>, action: PayloadAction<SetBboxFilterPayload>) => void;
12
13
  }, "dataexplorer">;
@@ -126,6 +126,27 @@ export declare const getDiscoveryCatalogueURL: ((state: DataExplorerModuleState)
126
126
  argsMemoize: typeof import("reselect").weakMapMemoize;
127
127
  memoize: typeof import("reselect").weakMapMemoize;
128
128
  };
129
+ export declare const getWMSbox: ((state: DataExplorerModuleState) => number[]) & {
130
+ clearCache: () => void;
131
+ resultsCount: () => number;
132
+ resetResultsCount: () => void;
133
+ } & {
134
+ resultFunc: (resultFuncArgs_0: DataExplorerStoreType | undefined) => number[];
135
+ memoizedResultFunc: ((resultFuncArgs_0: DataExplorerStoreType | undefined) => number[]) & {
136
+ clearCache: () => void;
137
+ resultsCount: () => number;
138
+ resetResultsCount: () => void;
139
+ };
140
+ lastResult: () => number[];
141
+ dependencies: [(state: DataExplorerModuleState) => DataExplorerStoreType | undefined];
142
+ recomputations: () => number;
143
+ resetRecomputations: () => void;
144
+ dependencyRecomputations: () => number;
145
+ resetDependencyRecomputations: () => void;
146
+ } & {
147
+ argsMemoize: typeof import("reselect").weakMapMemoize;
148
+ memoize: typeof import("reselect").weakMapMemoize;
149
+ };
129
150
  export declare const getBbox: ((state: DataExplorerModuleState) => number[]) & {
130
151
  clearCache: () => void;
131
152
  resultsCount: () => number;
@@ -106,6 +106,18 @@ export interface DiscoveryMetadataItems {
106
106
  links: object[];
107
107
  timeStamp: string;
108
108
  }
109
+ export interface DataExplorerWMSState {
110
+ geometry: {
111
+ type: string;
112
+ coordinates: number[][][];
113
+ };
114
+ links: {
115
+ href: string;
116
+ rel: string;
117
+ title?: string;
118
+ type: string;
119
+ }[];
120
+ }
109
121
  export interface DataExplorerStoreType {
110
122
  discoveryCatalogueURL: string;
111
123
  filters: {
@@ -113,11 +125,13 @@ export interface DataExplorerStoreType {
113
125
  queryables: Queryable[];
114
126
  concepts: Concept[];
115
127
  queryableConfigurations: QueryableConfiguration[];
128
+ wmsbox?: number[];
116
129
  bbox?: number[];
117
130
  };
118
131
  selectedDatasetId: string;
119
132
  areaFilterTileURL?: string;
120
133
  areaFilterTileLicense?: string;
134
+ infoDialogWMSState?: DataExplorerWMSState;
121
135
  }
122
136
  export interface DataExplorerModuleState {
123
137
  dataExplorer?: DataExplorerStoreType;
@@ -148,6 +162,9 @@ export interface Queryable {
148
162
  values: QueryableValue[];
149
163
  selected: string[];
150
164
  }
165
+ export interface SetWMSboxFilterPayload {
166
+ wmsBox: number[];
167
+ }
151
168
  export interface QueryableValue {
152
169
  value: string;
153
170
  datasetCount: number;