@opengeoweb/warnings 15.0.0 → 15.2.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/index.esm.js +595 -582
- package/package.json +13 -14
- package/src/index.d.ts +1 -1
- package/src/lib/api/api-utils.d.ts +1 -1
- package/src/lib/api/aviation-api/hooks.d.ts +1 -1
- package/src/lib/api/warning-api/api.d.ts +1 -1
- package/src/lib/api/warning-api/hooks.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreaObjectLoader.d.ts +1 -1
- package/src/lib/components/AreaObjectLoader/AreasObjects.d.ts +1 -1
- package/src/lib/components/FilterList/filter-hooks.d.ts +1 -1
- package/src/lib/components/FilterList/filter-utils.d.ts +1 -1
- package/src/lib/components/MaritimeWarningsForm/utils.d.ts +1 -1
- package/src/lib/components/PublicWarningList/NewWarningButton/NewWarningButton.d.ts +1 -1
- package/src/lib/components/PublicWarningList/PublicWarningList.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListColumnContent.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListItem.d.ts +1 -1
- package/src/lib/components/PublicWarningList/WarningListItemMenu.d.ts +2 -2
- package/src/lib/components/PublicWarningList/WarningListItemSeperator.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/LevelField/LevelField.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PhenomenonField/PhenomenonField.d.ts +1 -1
- package/src/lib/components/PublicWarningsForm/PublicWarningsForm.d.ts +2 -2
- package/src/lib/components/PublicWarningsForm/PublicWarningsFormConnect.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/AviationWarningCancelDialogContent.d.ts +1 -1
- package/src/lib/components/PublicWarningsFormDialog/PublicWarningsFormDialog.d.ts +1 -1
- package/src/lib/store/index.d.ts +2 -2
- package/src/lib/store/store.d.ts +2 -2
- package/src/lib/store/types.d.ts +4 -4
- package/src/lib/store/warningsFilters/index.d.ts +1 -0
- package/src/lib/store/warningsFilters/reducer.d.ts +11 -0
- package/src/lib/store/warningsFilters/selectors.d.ts +62 -0
- package/src/lib/store/warningsFilters/types.d.ts +7 -0
- package/src/lib/store/warningsForm/index.d.ts +2 -0
- package/src/lib/store/warningsForm/listener.d.ts +2 -0
- package/src/lib/store/{publicWarningForm → warningsForm}/reducer.d.ts +2 -2
- package/src/lib/store/{publicWarningForm → warningsForm}/selectors.d.ts +1 -43
- package/src/lib/storybookUtils/testUtils.d.ts +1 -1
- package/src/lib/utils/fakeApi/index.d.ts +1 -1
- package/src/lib/utils/sig-airmet-util.d.ts +2 -2
- package/src/lib/utils/warningUtils.d.ts +2 -2
- package/src/lib/store/publicWarningForm/index.d.ts +0 -2
- package/src/lib/store/publicWarningForm/listener.d.ts +0 -2
- package/src/lib/store/publicWarnings/index.d.ts +0 -2
- package/src/lib/store/publicWarnings/listener.d.ts +0 -3
- package/src/lib/store/publicWarnings/reducer.d.ts +0 -13
- package/src/lib/store/publicWarnings/selectors.d.ts +0 -166
- package/src/lib/store/publicWarnings/types.d.ts +0 -19
- /package/src/lib/{store/publicWarningForm/reducer.spec.d.ts → api/api-utils.spec.d.ts} +0 -0
- /package/src/lib/store/{publicWarningForm → warningsFilters}/selectors.spec.d.ts +0 -0
- /package/src/lib/store/{publicWarnings/listener.spec.d.ts → warningsForm/reducer.spec.d.ts} +0 -0
- /package/src/lib/store/{publicWarnings → warningsForm}/selectors.spec.d.ts +0 -0
- /package/src/lib/store/{publicWarningForm → warningsForm}/types.d.ts +0 -0
- /package/src/lib/store/{publicWarningForm → warningsForm}/utils.d.ts +0 -0
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import type { PublicWarningsState } from './types';
|
|
2
|
-
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
3
|
-
import type { WarningModuleStore } from '../types';
|
|
4
|
-
export declare const getPublicWarningsStore: (store: WarningModuleStore) => PublicWarningsState;
|
|
5
|
-
export declare const selectAllPublicWarnings: (state: WarningModuleStore) => import("../publicWarningForm/types").Warning[];
|
|
6
|
-
export declare const isPublicWarningsLoading: ((state: WarningModuleStore) => boolean) & {
|
|
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;
|
|
26
|
-
};
|
|
27
|
-
export declare const getPublicWarningsError: ((state: WarningModuleStore) => import("./types").PublicWarningError | undefined) & {
|
|
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;
|
|
47
|
-
};
|
|
48
|
-
export declare const getPublicWarningsLastUpdatedTime: ((state: WarningModuleStore) => string) & {
|
|
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;
|
|
68
|
-
};
|
|
69
|
-
export declare const getWarningsFilterById: ((state: WarningModuleStore, panelId?: string | undefined) => FilterState) & {
|
|
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;
|
|
109
|
-
};
|
|
110
|
-
export declare const getWarningsPresetById: ((state: WarningModuleStore, panelId?: string | undefined) => {
|
|
111
|
-
filterState: null;
|
|
112
|
-
} | {
|
|
113
|
-
filterState: FilterState;
|
|
114
|
-
}) & {
|
|
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;
|
|
166
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { EntityState } from '@reduxjs/toolkit';
|
|
2
|
-
import type { FilterState } from '../../components/FilterList/filter-hooks';
|
|
3
|
-
import type { Warning } from '../publicWarningForm/types';
|
|
4
|
-
export interface FilterTranslation {
|
|
5
|
-
translationKey: string;
|
|
6
|
-
key: string;
|
|
7
|
-
isAviation?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface PublicWarningError {
|
|
10
|
-
name: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}
|
|
13
|
-
export interface PublicWarningsState {
|
|
14
|
-
warnings: EntityState<Warning, string>;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
lastUpdatedTime: string;
|
|
17
|
-
error?: PublicWarningError;
|
|
18
|
-
filterState: Record<string, FilterState>;
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|