@opengeoweb/warnings 12.2.0 → 12.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/warnings",
3
- "version": "12.2.0",
3
+ "version": "12.3.0",
4
4
  "description": "GeoWeb warinings library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,28 +8,28 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/api": "12.2.0",
12
- "@opengeoweb/shared": "12.2.0",
13
- "@opengeoweb/store": "12.2.0",
14
- "@opengeoweb/webmap-react": "12.2.0",
11
+ "@opengeoweb/api": "12.3.0",
12
+ "@opengeoweb/shared": "12.3.0",
13
+ "@opengeoweb/store": "12.3.0",
14
+ "@opengeoweb/webmap-react": "12.3.0",
15
15
  "@tanstack/react-query": "^5.69.2",
16
- "react-redux": "^8.1.3",
17
- "@opengeoweb/theme": "12.2.0",
18
- "@opengeoweb/form-fields": "12.2.0",
16
+ "react-redux": "^9.2.0",
17
+ "@opengeoweb/theme": "12.3.0",
18
+ "@opengeoweb/form-fields": "12.3.0",
19
19
  "react-hook-form": "^7.50.1",
20
20
  "lodash": "^4.17.21",
21
- "@reduxjs/toolkit": "^1.9.7",
22
- "@opengeoweb/snackbar": "12.2.0",
21
+ "@reduxjs/toolkit": "^2.6.1",
22
+ "@opengeoweb/snackbar": "12.3.0",
23
23
  "react-window": "^1.8.10",
24
24
  "react-virtualized-auto-sizer": "^1.0.20",
25
25
  "axios": "^1.7.7",
26
- "@opengeoweb/core": "12.2.0",
27
- "@opengeoweb/webmap": "12.2.0",
28
- "@opengeoweb/authentication": "12.2.0",
29
- "@opengeoweb/sigmet-airmet": "12.2.0",
26
+ "@opengeoweb/core": "12.3.0",
27
+ "@opengeoweb/webmap": "12.3.0",
28
+ "@opengeoweb/authentication": "12.3.0",
29
+ "@opengeoweb/sigmet-airmet": "12.3.0",
30
30
  "react-i18next": "^15.1.1",
31
31
  "i18next": "^23.11.5",
32
- "@mui/material": "^6.1.1",
32
+ "@mui/material": "^7.0.1",
33
33
  "ol": "^10.4.0",
34
34
  "msw": "^2.7.3"
35
35
  },
@@ -4,3 +4,4 @@ export declare const getPublicWarningList: (auth: Credentials) => Promise<Public
4
4
  export declare const updatePublicWarningEditor: (warningId: string, isEditor: boolean, auth: Credentials) => Promise<Headers | null>;
5
5
  export declare const updatePublicWarning: (warningId: string, auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
6
6
  export declare const postPublicWarning: (auth: Credentials, data: PublicWarning) => Promise<Headers | null>;
7
+ export declare const deleteWarning: (warningId: string, auth: Credentials) => Promise<null>;
@@ -19,6 +19,9 @@ interface UpdateWarningProps {
19
19
  panelId?: string;
20
20
  }
21
21
  export declare const useMutateWarning: (snackBarMessage: string) => MutationReturnType<UpdateWarningProps>;
22
+ export declare const useMutateDeleteWarning: () => MutationReturnType<{
23
+ id: string;
24
+ }>;
22
25
  export declare const usePublishWarning: () => MutationReturnType<UpdateWarningProps>;
23
26
  export declare const useSaveWarning: () => MutationReturnType<UpdateWarningProps>;
24
27
  export {};
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  export interface ConfirmDialogProps {
3
3
  title: string;
4
4
  description: string;
5
- request: () => Promise<void>;
5
+ request: () => Promise<void> | Promise<Headers | null>;
6
6
  confirmLabel: string;
7
- callback: (data?: unknown) => void;
7
+ callback?: (data?: unknown) => void;
8
8
  isLocked?: boolean;
9
9
  }
10
10
  export declare const ConfirmDeleteWarningDialog: React.FC<{
@@ -29,7 +29,15 @@ export declare const EditorChanged: {
29
29
  };
30
30
  };
31
31
  };
32
- export declare const PublicWarningListErrorDeleteWarning: () => React.ReactElement;
32
+ export declare const PublicWarningListErrorDeleteWarning: {
33
+ parameters: {
34
+ msw: {
35
+ handlers: {
36
+ warnings: import("msw").HttpHandler[];
37
+ };
38
+ };
39
+ };
40
+ };
33
41
  export declare const ExtraLongList: {
34
42
  args: {
35
43
  description: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { Grid2Props } from '@mui/material';
2
+ import { GridProps } from '@mui/material';
3
3
  import { PublicWarningStatus } from '../../store/publicWarningForm/types';
4
- export declare const WarningListColumnContent: React.FC<Grid2Props & {
4
+ export declare const WarningListColumnContent: React.FC<GridProps & {
5
5
  title?: string;
6
6
  status: PublicWarningStatus;
7
7
  children?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { Grid2Props } from '@mui/material';
3
- declare const WarningListHeaderContent: React.FC<Grid2Props & {
2
+ import { GridProps } from '@mui/material';
3
+ declare const WarningListHeaderContent: React.FC<GridProps & {
4
4
  title: string;
5
5
  width?: number;
6
6
  onClick?: () => void;
@@ -33,6 +33,7 @@ export interface FormProps {
33
33
  selectedAviationProduct?: AviationProduct;
34
34
  warningType?: WarningType;
35
35
  mode?: FormMode;
36
+ formState?: string;
36
37
  onSetViewModeResetArea?: (area: Area[]) => void;
37
38
  storedStartGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
38
39
  storedEndGeoJSON?: FeatureCollection<Geometry, GeoJsonProperties>;
@@ -1,2 +1,2 @@
1
1
  import { WarningModuleStore } from '../types';
2
- export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
2
+ export declare const publicWarningFormListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -1,8 +1,8 @@
1
- import { PayloadAction, Draft } from '@reduxjs/toolkit';
2
1
  import { AlertColor } from '@mui/material';
2
+ import { Draft, PayloadAction } from '@reduxjs/toolkit';
3
3
  import { DrawingListItem } from '../warningsDrawings/types';
4
4
  import { Area, Warning, WarningType } from './types';
5
- export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit';
5
+ export type FormAction = '' | 'saving' | 'publishing' | 'readonly' | 'edit' | 'cancel';
6
6
  export interface FormError {
7
7
  severity?: AlertColor;
8
8
  message: string;
@@ -1,58 +1,234 @@
1
1
  import { WarningModuleStore } from '../types';
2
2
  import { WarningFormState } from './reducer';
3
3
  export declare const getPublicWarningStore: (store: WarningModuleStore) => WarningFormState;
4
- export declare const selectPublicWarningState: ((state: WarningModuleStore) => WarningFormState) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => WarningFormState, {
5
- clearCache: () => void;
6
- }> & {
7
- clearCache: () => void;
4
+ export declare const selectPublicWarningState: ((state: WarningModuleStore) => WarningFormState) & {
5
+ clearCache: () => void;
6
+ resultsCount: () => number;
7
+ resetResultsCount: () => void;
8
+ } & {
9
+ resultFunc: (resultFuncArgs_0: WarningFormState) => WarningFormState;
10
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => WarningFormState) & {
11
+ clearCache: () => void;
12
+ resultsCount: () => number;
13
+ resetResultsCount: () => void;
14
+ };
15
+ lastResult: () => WarningFormState;
16
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
17
+ recomputations: () => number;
18
+ resetRecomputations: () => void;
19
+ dependencyRecomputations: () => number;
20
+ resetDependencyRecomputations: () => void;
21
+ } & {
22
+ argsMemoize: typeof import("reselect").weakMapMemoize;
23
+ memoize: typeof import("reselect").weakMapMemoize;
8
24
  };
9
- export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("../warningsDrawings/types").DrawingListItem | undefined, {
10
- clearCache: () => void;
11
- }> & {
12
- clearCache: () => void;
25
+ export declare const getPublicWarningObject: ((state: WarningModuleStore) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
26
+ clearCache: () => void;
27
+ resultsCount: () => number;
28
+ resetResultsCount: () => void;
29
+ } & {
30
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("../warningsDrawings/types").DrawingListItem | undefined;
31
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("../warningsDrawings/types").DrawingListItem | undefined) & {
32
+ clearCache: () => void;
33
+ resultsCount: () => number;
34
+ resetResultsCount: () => void;
35
+ };
36
+ lastResult: () => import("../warningsDrawings/types").DrawingListItem | undefined;
37
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
38
+ recomputations: () => number;
39
+ resetRecomputations: () => void;
40
+ dependencyRecomputations: () => number;
41
+ resetDependencyRecomputations: () => void;
42
+ } & {
43
+ argsMemoize: typeof import("reselect").weakMapMemoize;
44
+ memoize: typeof import("reselect").weakMapMemoize;
13
45
  };
14
- export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").Warning | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("./types").Warning | undefined, {
15
- clearCache: () => void;
16
- }> & {
17
- clearCache: () => void;
46
+ export declare const getPublicWarning: ((state: WarningModuleStore) => import("./types").Warning | undefined) & {
47
+ clearCache: () => void;
48
+ resultsCount: () => number;
49
+ resetResultsCount: () => void;
50
+ } & {
51
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined;
52
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Warning | undefined) & {
53
+ clearCache: () => void;
54
+ resultsCount: () => number;
55
+ resetResultsCount: () => void;
56
+ };
57
+ lastResult: () => import("./types").Warning | undefined;
58
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
59
+ recomputations: () => number;
60
+ resetRecomputations: () => void;
61
+ dependencyRecomputations: () => number;
62
+ resetDependencyRecomputations: () => void;
63
+ } & {
64
+ argsMemoize: typeof import("reselect").weakMapMemoize;
65
+ memoize: typeof import("reselect").weakMapMemoize;
18
66
  };
19
- export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("./types").PublicWarningStatus | undefined, {
20
- clearCache: () => void;
21
- }> & {
22
- clearCache: () => void;
67
+ export declare const getPublicWarningStatus: ((state: WarningModuleStore) => import("./types").PublicWarningStatus | undefined) & {
68
+ clearCache: () => void;
69
+ resultsCount: () => number;
70
+ resetResultsCount: () => void;
71
+ } & {
72
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined;
73
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").PublicWarningStatus | undefined) & {
74
+ clearCache: () => void;
75
+ resultsCount: () => number;
76
+ resetResultsCount: () => void;
77
+ };
78
+ lastResult: () => import("./types").PublicWarningStatus | undefined;
79
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
80
+ recomputations: () => number;
81
+ resetRecomputations: () => void;
82
+ dependencyRecomputations: () => number;
83
+ resetDependencyRecomputations: () => void;
84
+ } & {
85
+ argsMemoize: typeof import("reselect").weakMapMemoize;
86
+ memoize: typeof import("reselect").weakMapMemoize;
23
87
  };
24
- export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => string | undefined, {
25
- clearCache: () => void;
26
- }> & {
27
- clearCache: () => void;
88
+ export declare const getPublicWarningId: ((state: WarningModuleStore) => string | undefined) & {
89
+ clearCache: () => void;
90
+ resultsCount: () => number;
91
+ resetResultsCount: () => void;
92
+ } & {
93
+ resultFunc: (resultFuncArgs_0: WarningFormState) => string | undefined;
94
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string | undefined) & {
95
+ clearCache: () => void;
96
+ resultsCount: () => number;
97
+ resetResultsCount: () => void;
98
+ };
99
+ lastResult: () => string | undefined;
100
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
101
+ recomputations: () => number;
102
+ resetRecomputations: () => void;
103
+ dependencyRecomputations: () => number;
104
+ resetDependencyRecomputations: () => void;
105
+ } & {
106
+ argsMemoize: typeof import("reselect").weakMapMemoize;
107
+ memoize: typeof import("reselect").weakMapMemoize;
28
108
  };
29
- export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("./types").Area[], {
30
- clearCache: () => void;
31
- }> & {
32
- clearCache: () => void;
109
+ export declare const getPublicWarningAreas: ((state: WarningModuleStore) => import("./types").Area[]) & {
110
+ clearCache: () => void;
111
+ resultsCount: () => number;
112
+ resetResultsCount: () => void;
113
+ } & {
114
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").Area[];
115
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").Area[]) & {
116
+ clearCache: () => void;
117
+ resultsCount: () => number;
118
+ resetResultsCount: () => void;
119
+ };
120
+ lastResult: () => import("./types").Area[];
121
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
122
+ recomputations: () => number;
123
+ resetRecomputations: () => void;
124
+ dependencyRecomputations: () => number;
125
+ resetDependencyRecomputations: () => void;
126
+ } & {
127
+ argsMemoize: typeof import("reselect").weakMapMemoize;
128
+ memoize: typeof import("reselect").weakMapMemoize;
33
129
  };
34
- export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly" | "edit") & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit", {
35
- clearCache: () => void;
36
- }> & {
37
- clearCache: () => void;
130
+ export declare const getPublicWarningFormState: ((state: WarningModuleStore) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel") & {
131
+ clearCache: () => void;
132
+ resultsCount: () => number;
133
+ resetResultsCount: () => void;
134
+ } & {
135
+ resultFunc: (resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel";
136
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel") & {
137
+ clearCache: () => void;
138
+ resultsCount: () => number;
139
+ resetResultsCount: () => void;
140
+ };
141
+ lastResult: () => "" | "saving" | "publishing" | "readonly" | "edit" | "cancel";
142
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
143
+ recomputations: () => number;
144
+ resetRecomputations: () => void;
145
+ dependencyRecomputations: () => number;
146
+ resetDependencyRecomputations: () => void;
147
+ } & {
148
+ argsMemoize: typeof import("reselect").weakMapMemoize;
149
+ memoize: typeof import("reselect").weakMapMemoize;
38
150
  };
39
- export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("./reducer").FormError | undefined, {
40
- clearCache: () => void;
41
- }> & {
42
- clearCache: () => void;
151
+ export declare const getPublicWarningFormError: ((state: WarningModuleStore) => import("./reducer").FormError | undefined) & {
152
+ clearCache: () => void;
153
+ resultsCount: () => number;
154
+ resetResultsCount: () => void;
155
+ } & {
156
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("./reducer").FormError | undefined;
157
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./reducer").FormError | undefined) & {
158
+ clearCache: () => void;
159
+ resultsCount: () => number;
160
+ resetResultsCount: () => void;
161
+ };
162
+ lastResult: () => import("./reducer").FormError | undefined;
163
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
164
+ recomputations: () => number;
165
+ resetRecomputations: () => void;
166
+ dependencyRecomputations: () => number;
167
+ resetDependencyRecomputations: () => void;
168
+ } & {
169
+ argsMemoize: typeof import("reselect").weakMapMemoize;
170
+ memoize: typeof import("reselect").weakMapMemoize;
43
171
  };
44
- export declare const getSelectedWarningId: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => string, {
45
- clearCache: () => void;
46
- }> & {
47
- clearCache: () => void;
172
+ export declare const getSelectedWarningId: ((state: WarningModuleStore) => string) & {
173
+ clearCache: () => void;
174
+ resultsCount: () => number;
175
+ resetResultsCount: () => void;
176
+ } & {
177
+ resultFunc: (resultFuncArgs_0: WarningFormState) => string;
178
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => string) & {
179
+ clearCache: () => void;
180
+ resultsCount: () => number;
181
+ resetResultsCount: () => void;
182
+ };
183
+ lastResult: () => string;
184
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
185
+ recomputations: () => number;
186
+ resetRecomputations: () => void;
187
+ dependencyRecomputations: () => number;
188
+ resetDependencyRecomputations: () => void;
189
+ } & {
190
+ argsMemoize: typeof import("reselect").weakMapMemoize;
191
+ memoize: typeof import("reselect").weakMapMemoize;
48
192
  };
49
- export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => boolean, {
50
- clearCache: () => void;
51
- }> & {
52
- clearCache: () => void;
193
+ export declare const getSelectedPublicIsFormDirty: ((state: WarningModuleStore) => boolean) & {
194
+ clearCache: () => void;
195
+ resultsCount: () => number;
196
+ resetResultsCount: () => void;
197
+ } & {
198
+ resultFunc: (resultFuncArgs_0: WarningFormState) => boolean;
199
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => boolean) & {
200
+ clearCache: () => void;
201
+ resultsCount: () => number;
202
+ resetResultsCount: () => void;
203
+ };
204
+ lastResult: () => boolean;
205
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
206
+ recomputations: () => number;
207
+ resetRecomputations: () => void;
208
+ dependencyRecomputations: () => number;
209
+ resetDependencyRecomputations: () => void;
210
+ } & {
211
+ argsMemoize: typeof import("reselect").weakMapMemoize;
212
+ memoize: typeof import("reselect").weakMapMemoize;
53
213
  };
54
- export declare const getWarningType: ((state: WarningModuleStore) => import("./types").WarningType | undefined) & import("reselect").OutputSelectorFields<(args_0: WarningFormState) => import("./types").WarningType | undefined, {
55
- clearCache: () => void;
56
- }> & {
57
- clearCache: () => void;
214
+ export declare const getWarningType: ((state: WarningModuleStore) => import("./types").WarningType | undefined) & {
215
+ clearCache: () => void;
216
+ resultsCount: () => number;
217
+ resetResultsCount: () => void;
218
+ } & {
219
+ resultFunc: (resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined;
220
+ memoizedResultFunc: ((resultFuncArgs_0: WarningFormState) => import("./types").WarningType | undefined) & {
221
+ clearCache: () => void;
222
+ resultsCount: () => number;
223
+ resetResultsCount: () => void;
224
+ };
225
+ lastResult: () => import("./types").WarningType | undefined;
226
+ dependencies: [(store: WarningModuleStore) => WarningFormState];
227
+ recomputations: () => number;
228
+ resetRecomputations: () => void;
229
+ dependencyRecomputations: () => number;
230
+ resetDependencyRecomputations: () => void;
231
+ } & {
232
+ argsMemoize: typeof import("reselect").weakMapMemoize;
233
+ memoize: typeof import("reselect").weakMapMemoize;
58
234
  };
@@ -1,3 +1,3 @@
1
1
  import { WarningModuleStore } from '../types';
2
2
  export declare const getLastUpdatedTimeFormatted: () => string;
3
- export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WarningModuleStore, unknown, import("redux").AnyAction>, unknown>;
3
+ export declare const publicWarningsListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WarningModuleStore, import("redux-thunk").ThunkDispatch<WarningModuleStore, unknown, import("redux").UnknownAction>, unknown>;
@@ -2,7 +2,7 @@ import { Draft, PayloadAction } from '@reduxjs/toolkit';
2
2
  import { Warning } from '../publicWarningForm/types';
3
3
  import { PublicWarningsState } from './types';
4
4
  import { FilterState } from '../../components/FilterList/filter-hooks';
5
- export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning>;
5
+ export declare const publicWarningsAdapter: import("@reduxjs/toolkit").EntityAdapter<Warning, string>;
6
6
  export declare const initialState: PublicWarningsState;
7
7
  export declare const publicWarningsReducer: import("redux").Reducer<PublicWarningsState>, publicWarningActions: import("@reduxjs/toolkit").CaseReducerActions<{
8
8
  setWarningFilters: (draft: Draft<PublicWarningsState>, action: PayloadAction<{
@@ -3,36 +3,164 @@ import { WarningModuleStore } from '../types';
3
3
  import { FilterState } from '../../components/FilterList/filter-hooks';
4
4
  export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
5
5
  export declare const selectAllPublicWarnings: (state: WarningModuleStore) => import("../publicWarningForm/types").Warning[];
6
- export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => boolean, {
7
- clearCache: () => void;
8
- }> & {
6
+ export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & {
9
7
  clearCache: () => void;
8
+ resultsCount: () => number;
9
+ resetResultsCount: () => void;
10
+ } & {
11
+ resultFunc: (resultFuncArgs_0: PublicWarningsState) => boolean;
12
+ memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => boolean) & {
13
+ clearCache: () => void;
14
+ resultsCount: () => number;
15
+ resetResultsCount: () => void;
16
+ };
17
+ lastResult: () => boolean;
18
+ dependencies: [(store: WarningModuleStore) => PublicWarningsState];
19
+ recomputations: () => number;
20
+ resetRecomputations: () => void;
21
+ dependencyRecomputations: () => number;
22
+ resetDependencyRecomputations: () => void;
23
+ } & {
24
+ argsMemoize: typeof import("reselect").weakMapMemoize;
25
+ memoize: typeof import("reselect").weakMapMemoize;
10
26
  };
11
- export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => import("./types").PublicWarningError | undefined, {
12
- clearCache: () => void;
13
- }> & {
27
+ export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & {
14
28
  clearCache: () => void;
29
+ resultsCount: () => number;
30
+ resetResultsCount: () => void;
31
+ } & {
32
+ resultFunc: (resultFuncArgs_0: PublicWarningsState) => import("./types").PublicWarningError | undefined;
33
+ memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => import("./types").PublicWarningError | undefined) & {
34
+ clearCache: () => void;
35
+ resultsCount: () => number;
36
+ resetResultsCount: () => void;
37
+ };
38
+ lastResult: () => import("./types").PublicWarningError | undefined;
39
+ dependencies: [(store: WarningModuleStore) => PublicWarningsState];
40
+ recomputations: () => number;
41
+ resetRecomputations: () => void;
42
+ dependencyRecomputations: () => number;
43
+ resetDependencyRecomputations: () => void;
44
+ } & {
45
+ argsMemoize: typeof import("reselect").weakMapMemoize;
46
+ memoize: typeof import("reselect").weakMapMemoize;
15
47
  };
16
- export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & import("reselect").OutputSelectorFields<(args_0: PublicWarningsState) => string, {
17
- clearCache: () => void;
18
- }> & {
48
+ export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & {
19
49
  clearCache: () => void;
50
+ resultsCount: () => number;
51
+ resetResultsCount: () => void;
52
+ } & {
53
+ resultFunc: (resultFuncArgs_0: PublicWarningsState) => string;
54
+ memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => string) & {
55
+ clearCache: () => void;
56
+ resultsCount: () => number;
57
+ resetResultsCount: () => void;
58
+ };
59
+ lastResult: () => string;
60
+ dependencies: [(store: WarningModuleStore) => PublicWarningsState];
61
+ recomputations: () => number;
62
+ resetRecomputations: () => void;
63
+ dependencyRecomputations: () => number;
64
+ resetDependencyRecomputations: () => void;
65
+ } & {
66
+ argsMemoize: typeof import("reselect").weakMapMemoize;
67
+ memoize: typeof import("reselect").weakMapMemoize;
20
68
  };
21
- export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) & import("reselect").OutputSelectorFields<(args_0: Record<string, FilterState>, args_1: string | undefined) => FilterState, {
22
- clearCache: () => void;
23
- }> & {
69
+ export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) & {
24
70
  clearCache: () => void;
71
+ resultsCount: () => number;
72
+ resetResultsCount: () => void;
73
+ } & {
74
+ resultFunc: (resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => FilterState;
75
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => FilterState) & {
76
+ clearCache: () => void;
77
+ resultsCount: () => number;
78
+ resetResultsCount: () => void;
79
+ };
80
+ lastResult: () => FilterState;
81
+ dependencies: [((state: WarningModuleStore) => Record<string, FilterState>) & {
82
+ clearCache: () => void;
83
+ resultsCount: () => number;
84
+ resetResultsCount: () => void;
85
+ } & {
86
+ resultFunc: (resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>;
87
+ memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>) & {
88
+ clearCache: () => void;
89
+ resultsCount: () => number;
90
+ resetResultsCount: () => void;
91
+ };
92
+ lastResult: () => Record<string, FilterState>;
93
+ dependencies: [(store: WarningModuleStore) => PublicWarningsState];
94
+ recomputations: () => number;
95
+ resetRecomputations: () => void;
96
+ dependencyRecomputations: () => number;
97
+ resetDependencyRecomputations: () => void;
98
+ } & {
99
+ argsMemoize: typeof import("reselect").weakMapMemoize;
100
+ memoize: typeof import("reselect").weakMapMemoize;
101
+ }, (_store: WarningModuleStore, panelId?: string) => string | undefined];
102
+ recomputations: () => number;
103
+ resetRecomputations: () => void;
104
+ dependencyRecomputations: () => number;
105
+ resetDependencyRecomputations: () => void;
106
+ } & {
107
+ argsMemoize: typeof import("reselect").weakMapMemoize;
108
+ memoize: typeof import("reselect").weakMapMemoize;
25
109
  };
26
110
  export declare const getWarningsPresetById: ((state: WarningModuleStore, panelId?: string | undefined) => {
27
111
  filterState: null;
28
112
  } | {
29
113
  filterState: FilterState;
30
- }) & import("reselect").OutputSelectorFields<(args_0: Record<string, FilterState>, args_1: string | undefined) => {
31
- filterState: null;
32
- } | {
33
- filterState: FilterState;
34
- }, {
35
- clearCache: () => void;
36
- }> & {
114
+ }) & {
37
115
  clearCache: () => void;
116
+ resultsCount: () => number;
117
+ resetResultsCount: () => void;
118
+ } & {
119
+ resultFunc: (resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => {
120
+ filterState: null;
121
+ } | {
122
+ filterState: FilterState;
123
+ };
124
+ memoizedResultFunc: ((resultFuncArgs_0: Record<string, FilterState>, resultFuncArgs_1: string | undefined) => {
125
+ filterState: null;
126
+ } | {
127
+ filterState: FilterState;
128
+ }) & {
129
+ clearCache: () => void;
130
+ resultsCount: () => number;
131
+ resetResultsCount: () => void;
132
+ };
133
+ lastResult: () => {
134
+ filterState: null;
135
+ } | {
136
+ filterState: FilterState;
137
+ };
138
+ dependencies: [((state: WarningModuleStore) => Record<string, FilterState>) & {
139
+ clearCache: () => void;
140
+ resultsCount: () => number;
141
+ resetResultsCount: () => void;
142
+ } & {
143
+ resultFunc: (resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>;
144
+ memoizedResultFunc: ((resultFuncArgs_0: PublicWarningsState) => Record<string, FilterState>) & {
145
+ clearCache: () => void;
146
+ resultsCount: () => number;
147
+ resetResultsCount: () => void;
148
+ };
149
+ lastResult: () => Record<string, FilterState>;
150
+ dependencies: [(store: WarningModuleStore) => PublicWarningsState];
151
+ recomputations: () => number;
152
+ resetRecomputations: () => void;
153
+ dependencyRecomputations: () => number;
154
+ resetDependencyRecomputations: () => void;
155
+ } & {
156
+ argsMemoize: typeof import("reselect").weakMapMemoize;
157
+ memoize: typeof import("reselect").weakMapMemoize;
158
+ }, (_store: WarningModuleStore, panelId?: string) => string | undefined];
159
+ recomputations: () => number;
160
+ resetRecomputations: () => void;
161
+ dependencyRecomputations: () => number;
162
+ resetDependencyRecomputations: () => void;
163
+ } & {
164
+ argsMemoize: typeof import("reselect").weakMapMemoize;
165
+ memoize: typeof import("reselect").weakMapMemoize;
38
166
  };
@@ -11,7 +11,7 @@ export interface PublicWarningError {
11
11
  message: string;
12
12
  }
13
13
  export interface PublicWarningsState {
14
- warnings: EntityState<Warning>;
14
+ warnings: EntityState<Warning, string>;
15
15
  isLoading: boolean;
16
16
  lastUpdatedTime: string;
17
17
  error?: PublicWarningError;