@opengeoweb/cap 9.28.0 → 9.29.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.
Files changed (71) hide show
  1. package/index.esm.js +162 -159
  2. package/package.json +1 -1
  3. package/src/index.d.ts +4 -4
  4. package/src/lib/CapDemo.stories.d.ts +7 -7
  5. package/src/lib/components/CapMapAndList.integration.spec.d.ts +1 -1
  6. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +34 -34
  7. package/src/lib/components/ComponentsLookUp/componentsLookUp.spec.d.ts +1 -1
  8. package/src/lib/components/ComponentsLookUp/index.d.ts +1 -1
  9. package/src/lib/components/GanttChart/Gantt.d.ts +40 -40
  10. package/src/lib/components/GanttChart/GanttModule.d.ts +7 -7
  11. package/src/lib/components/GanttChart/GanttModule.spec.d.ts +1 -1
  12. package/src/lib/components/GanttChart/GanttModule.stories.d.ts +6 -6
  13. package/src/lib/components/GanttChart/GanttReactWrapper.d.ts +37 -37
  14. package/src/lib/components/GanttChart/GanttWrapper.d.ts +9 -9
  15. package/src/lib/components/GanttChart/GanttWrapper.spec.d.ts +1 -1
  16. package/src/lib/components/GanttChart/GanttWrapper.stories.d.ts +8 -8
  17. package/src/lib/components/GanttChart/Task.d.ts +29 -29
  18. package/src/lib/components/GanttChart/ViewMode.d.ts +9 -9
  19. package/src/lib/components/GanttChart/mockTasks.d.ts +2 -2
  20. package/src/lib/components/GanttChart/utils.d.ts +5 -5
  21. package/src/lib/components/GanttChart/utils.spec.d.ts +1 -1
  22. package/src/lib/components/MapViewCap/MapViewCapConnect.d.ts +18 -18
  23. package/src/lib/components/MapViewCap/MapViewCapConnect.spec.d.ts +1 -1
  24. package/src/lib/components/MapViewCap/MapViewCapConnect.stories.d.ts +6 -6
  25. package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.d.ts +17 -17
  26. package/src/lib/components/MapViewCap/MapViewCapConnectWrapper.spec.d.ts +1 -1
  27. package/src/lib/components/MapViewCap/index.d.ts +1 -1
  28. package/src/lib/components/Providers/Providers.d.ts +32 -32
  29. package/src/lib/components/Providers/index.d.ts +1 -1
  30. package/src/lib/components/WarningListCap/WarningListCap.d.ts +8 -8
  31. package/src/lib/components/WarningListCap/WarningListCap.spec.d.ts +1 -1
  32. package/src/lib/components/WarningListCap/WarningListCap.stories.d.ts +6 -6
  33. package/src/lib/components/WarningListCap/WarningListCapConnect.d.ts +7 -7
  34. package/src/lib/components/WarningListCap/WarningListCapConnectWrapper.d.ts +6 -6
  35. package/src/lib/components/WarningListCap/WarningListCapConnectWrapper.spec.d.ts +1 -1
  36. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.d.ts +7 -7
  37. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.spec.d.ts +1 -1
  38. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCap.stories.d.ts +6 -6
  39. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.d.ts +8 -8
  40. package/src/lib/components/WarningListCap/WarningListRowCap/WarningListRowCapConnect.spec.d.ts +1 -1
  41. package/src/lib/components/WarningListCap/index.d.ts +1 -1
  42. package/src/lib/components/WarningListCap/types.d.ts +47 -47
  43. package/src/lib/components/types.d.ts +72 -72
  44. package/src/lib/index.d.ts +4 -4
  45. package/src/lib/store/config.d.ts +6 -6
  46. package/src/lib/store/index.d.ts +3 -3
  47. package/src/lib/store/mockStore.d.ts +21 -21
  48. package/src/lib/store/reducer.d.ts +13 -13
  49. package/src/lib/store/reducer.spec.d.ts +1 -1
  50. package/src/lib/store/selector.spec.d.ts +1 -1
  51. package/src/lib/store/selectors.d.ts +15 -15
  52. package/src/lib/store/types.d.ts +42 -42
  53. package/src/lib/store.d.ts +4 -4
  54. package/src/lib/utils/addColors.d.ts +2 -2
  55. package/src/lib/utils/addColors.spec.d.ts +1 -1
  56. package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.d.ts +2 -2
  57. package/src/lib/utils/addFeedAddressToCustomGeoJsonFeature.spec.d.ts +1 -1
  58. package/src/lib/utils/api.d.ts +20 -20
  59. package/src/lib/utils/api.spec.d.ts +1 -1
  60. package/src/lib/utils/fakeApi.d.ts +2 -2
  61. package/src/lib/utils/fakeApi.spec.d.ts +1 -1
  62. package/src/lib/utils/findEventIndexInLanguage.d.ts +10 -10
  63. package/src/lib/utils/findEventIndexInLanguage.spec.d.ts +1 -1
  64. package/src/lib/utils/highlightGeoJson.d.ts +3 -3
  65. package/src/lib/utils/highlightGeoJson.spec.d.ts +1 -1
  66. package/src/lib/utils/i18n.d.ts +5 -5
  67. package/src/lib/utils/mockAlert.d.ts +19 -19
  68. package/src/lib/utils/mockCapData.d.ts +6 -6
  69. package/src/lib/utils/mockGeoJson.d.ts +4 -4
  70. package/src/lib/utils/mockGeoJsonMultipleFeatures.d.ts +3 -3
  71. package/src/lib/utils/store.d.ts +2 -2
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useApiContext, useApi, createNonAuthApiInstance, ApiProvider } from '@opengeoweb/api';
3
- import { Grid, Typography, Box, Card, CircularProgress } from '@mui/material';
3
+ import { Grid2, Typography, Box, Card, CircularProgress } from '@mui/material';
4
4
  import { Box as Box$1 } from '@mui/system';
5
5
  import { dateUtils, AlertBanner } from '@opengeoweb/shared';
6
6
  import { useSelector, useDispatch } from 'react-redux';
@@ -1132,22 +1132,22 @@ $$e({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
1132
1132
  assign: assign
1133
1133
  });
1134
1134
 
1135
- /* *
1136
- * Licensed under the Apache License, Version 2.0 (the "License");
1137
- * you may not use this file except in compliance with the License.
1138
- * You may obtain a copy of the License at
1139
- *
1140
- * http://www.apache.org/licenses/LICENSE-2.0
1141
- *
1142
- * Unless required by applicable law or agreed to in writing, software
1143
- * distributed under the License is distributed on an "AS IS" BASIS,
1144
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1145
- * See the License for the specific language governing permissions and
1146
- * limitations under the License.
1147
- *
1148
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1149
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1150
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1135
+ /* *
1136
+ * Licensed under the Apache License, Version 2.0 (the "License");
1137
+ * you may not use this file except in compliance with the License.
1138
+ * You may obtain a copy of the License at
1139
+ *
1140
+ * http://www.apache.org/licenses/LICENSE-2.0
1141
+ *
1142
+ * Unless required by applicable law or agreed to in writing, software
1143
+ * distributed under the License is distributed on an "AS IS" BASIS,
1144
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1145
+ * See the License for the specific language governing permissions and
1146
+ * limitations under the License.
1147
+ *
1148
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1149
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1150
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1151
1151
  * */
1152
1152
  const feedAdapter = createEntityAdapter();
1153
1153
  const feedInitialState = feedAdapter.getInitialState();
@@ -1184,22 +1184,22 @@ const {
1184
1184
  } = slice;
1185
1185
  const capActions = slice.actions;
1186
1186
 
1187
- /* *
1188
- * Licensed under the Apache License, Version 2.0 (the "License");
1189
- * you may not use this file except in compliance with the License.
1190
- * You may obtain a copy of the License at
1191
- *
1192
- * http://www.apache.org/licenses/LICENSE-2.0
1193
- *
1194
- * Unless required by applicable law or agreed to in writing, software
1195
- * distributed under the License is distributed on an "AS IS" BASIS,
1196
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1197
- * See the License for the specific language governing permissions and
1198
- * limitations under the License.
1199
- *
1200
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1201
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1202
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1187
+ /* *
1188
+ * Licensed under the Apache License, Version 2.0 (the "License");
1189
+ * you may not use this file except in compliance with the License.
1190
+ * You may obtain a copy of the License at
1191
+ *
1192
+ * http://www.apache.org/licenses/LICENSE-2.0
1193
+ *
1194
+ * Unless required by applicable law or agreed to in writing, software
1195
+ * distributed under the License is distributed on an "AS IS" BASIS,
1196
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1197
+ * See the License for the specific language governing permissions and
1198
+ * limitations under the License.
1199
+ *
1200
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1201
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1202
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1203
1203
  * */
1204
1204
  const {
1205
1205
  selectById: getCapFeedById,
@@ -1888,22 +1888,22 @@ $$c({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
1888
1888
  }
1889
1889
  });
1890
1890
 
1891
- /* *
1892
- * Licensed under the Apache License, Version 2.0 (the "License");
1893
- * you may not use this file except in compliance with the License.
1894
- * You may obtain a copy of the License at
1895
- *
1896
- * http://www.apache.org/licenses/LICENSE-2.0
1897
- *
1898
- * Unless required by applicable law or agreed to in writing, software
1899
- * distributed under the License is distributed on an "AS IS" BASIS,
1900
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1901
- * See the License for the specific language governing permissions and
1902
- * limitations under the License.
1903
- *
1904
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1905
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1906
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1891
+ /* *
1892
+ * Licensed under the Apache License, Version 2.0 (the "License");
1893
+ * you may not use this file except in compliance with the License.
1894
+ * You may obtain a copy of the License at
1895
+ *
1896
+ * http://www.apache.org/licenses/LICENSE-2.0
1897
+ *
1898
+ * Unless required by applicable law or agreed to in writing, software
1899
+ * distributed under the License is distributed on an "AS IS" BASIS,
1900
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1901
+ * See the License for the specific language governing permissions and
1902
+ * limitations under the License.
1903
+ *
1904
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1905
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1906
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1907
1907
  * */
1908
1908
  const findEventIndexInLanguage = (language, languages, capWarningPresets, feedAddressFromProps) => {
1909
1909
  const correctFeedIndex = capWarningPresets.feeds.findIndex(({
@@ -1923,22 +1923,22 @@ const findEventIndexInLanguage = (language, languages, capWarningPresets, feedAd
1923
1923
  return languageIndex;
1924
1924
  };
1925
1925
 
1926
- /* *
1927
- * Licensed under the Apache License, Version 2.0 (the "License");
1928
- * you may not use this file except in compliance with the License.
1929
- * You may obtain a copy of the License at
1930
- *
1931
- * http://www.apache.org/licenses/LICENSE-2.0
1932
- *
1933
- * Unless required by applicable law or agreed to in writing, software
1934
- * distributed under the License is distributed on an "AS IS" BASIS,
1935
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1936
- * See the License for the specific language governing permissions and
1937
- * limitations under the License.
1938
- *
1939
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1940
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
1941
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1926
+ /* *
1927
+ * Licensed under the Apache License, Version 2.0 (the "License");
1928
+ * you may not use this file except in compliance with the License.
1929
+ * You may obtain a copy of the License at
1930
+ *
1931
+ * http://www.apache.org/licenses/LICENSE-2.0
1932
+ *
1933
+ * Unless required by applicable law or agreed to in writing, software
1934
+ * distributed under the License is distributed on an "AS IS" BASIS,
1935
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1936
+ * See the License for the specific language governing permissions and
1937
+ * limitations under the License.
1938
+ *
1939
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1940
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1941
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1942
1942
  * */
1943
1943
  const CAP_NAMESPACE = 'cap';
1944
1944
  const useCapTranslation = () => useTranslation(CAP_NAMESPACE);
@@ -1969,7 +1969,7 @@ const WarningListRowCap = ({
1969
1969
  const {
1970
1970
  t
1971
1971
  } = useCapTranslation();
1972
- return jsxs(Grid, Object.assign({
1972
+ return jsxs(Grid2, Object.assign({
1973
1973
  container: true,
1974
1974
  sx: {
1975
1975
  border: severityStyles[severity].border,
@@ -1980,9 +1980,10 @@ const WarningListRowCap = ({
1980
1980
  width: '100%'
1981
1981
  }
1982
1982
  }, {
1983
- children: [jsxs(Grid, Object.assign({
1984
- item: true,
1985
- xs: 4
1983
+ children: [jsxs(Grid2, Object.assign({
1984
+ size: {
1985
+ xs: 4
1986
+ }
1986
1987
  }, {
1987
1988
  children: [jsx(Typography, Object.assign({
1988
1989
  variant: "overline"
@@ -1997,9 +1998,10 @@ const WarningListRowCap = ({
1997
1998
  }, {
1998
1999
  children: event ? `${event}` : ''
1999
2000
  }))]
2000
- })), jsxs(Grid, Object.assign({
2001
- item: true,
2002
- xs: 4
2001
+ })), jsxs(Grid2, Object.assign({
2002
+ size: {
2003
+ xs: 4
2004
+ }
2003
2005
  }, {
2004
2006
  children: [jsx(Typography, Object.assign({
2005
2007
  variant: "overline"
@@ -2014,9 +2016,10 @@ const WarningListRowCap = ({
2014
2016
  }, {
2015
2017
  children: severity ? `${severity}` : ''
2016
2018
  }))]
2017
- })), jsxs(Grid, Object.assign({
2018
- item: true,
2019
- xs: 4
2019
+ })), jsxs(Grid2, Object.assign({
2020
+ size: {
2021
+ xs: 4
2022
+ }
2020
2023
  }, {
2021
2024
  children: [jsx(Typography, Object.assign({
2022
2025
  variant: "overline"
@@ -2166,22 +2169,22 @@ const WarningListCapConnectWrapper = ({
2166
2169
  });
2167
2170
  };
2168
2171
 
2169
- /* *
2170
- * Licensed under the Apache License, Version 2.0 (the "License");
2171
- * you may not use this file except in compliance with the License.
2172
- * You may obtain a copy of the License at
2173
- *
2174
- * http://www.apache.org/licenses/LICENSE-2.0
2175
- *
2176
- * Unless required by applicable law or agreed to in writing, software
2177
- * distributed under the License is distributed on an "AS IS" BASIS,
2178
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2179
- * See the License for the specific language governing permissions and
2180
- * limitations under the License.
2181
- *
2182
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2183
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
2184
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2172
+ /* *
2173
+ * Licensed under the Apache License, Version 2.0 (the "License");
2174
+ * you may not use this file except in compliance with the License.
2175
+ * You may obtain a copy of the License at
2176
+ *
2177
+ * http://www.apache.org/licenses/LICENSE-2.0
2178
+ *
2179
+ * Unless required by applicable law or agreed to in writing, software
2180
+ * distributed under the License is distributed on an "AS IS" BASIS,
2181
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2182
+ * See the License for the specific language governing permissions and
2183
+ * limitations under the License.
2184
+ *
2185
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2186
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2187
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2185
2188
  * */
2186
2189
  const getApiRoutes = (axiosInstance, nonAuthAxiosInstance) => ({
2187
2190
  getCapConfiguration: productConfigKey => {
@@ -4139,22 +4142,22 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4139
4142
  ];
4140
4143
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
4141
4144
 
4142
- /* *
4143
- * Licensed under the Apache License, Version 2.0 (the "License");
4144
- * you may not use this file except in compliance with the License.
4145
- * You may obtain a copy of the License at
4146
- *
4147
- * http://www.apache.org/licenses/LICENSE-2.0
4148
- *
4149
- * Unless required by applicable law or agreed to in writing, software
4150
- * distributed under the License is distributed on an "AS IS" BASIS,
4151
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4152
- * See the License for the specific language governing permissions and
4153
- * limitations under the License.
4154
- *
4155
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4156
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
4157
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4145
+ /* *
4146
+ * Licensed under the Apache License, Version 2.0 (the "License");
4147
+ * you may not use this file except in compliance with the License.
4148
+ * You may obtain a copy of the License at
4149
+ *
4150
+ * http://www.apache.org/licenses/LICENSE-2.0
4151
+ *
4152
+ * Unless required by applicable law or agreed to in writing, software
4153
+ * distributed under the License is distributed on an "AS IS" BASIS,
4154
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4155
+ * See the License for the specific language governing permissions and
4156
+ * limitations under the License.
4157
+ *
4158
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4159
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4160
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4158
4161
  * */
4159
4162
  const highlightGeoJson = (currentFeatures, featureResults) => Object.entries(currentFeatures).reduce((byId, [alertId, features]) => {
4160
4163
  const isSelected = alertId === (featureResults === null || featureResults === void 0 ? void 0 : featureResults.feature.properties.details.identifier);
@@ -4168,22 +4171,22 @@ const highlightGeoJson = (currentFeatures, featureResults) => Object.entries(cur
4168
4171
  });
4169
4172
  }, {});
4170
4173
 
4171
- /* *
4172
- * Licensed under the Apache License, Version 2.0 (the "License");
4173
- * you may not use this file except in compliance with the License.
4174
- * You may obtain a copy of the License at
4175
- *
4176
- * http://www.apache.org/licenses/LICENSE-2.0
4177
- *
4178
- * Unless required by applicable law or agreed to in writing, software
4179
- * distributed under the License is distributed on an "AS IS" BASIS,
4180
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4181
- * See the License for the specific language governing permissions and
4182
- * limitations under the License.
4183
- *
4184
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4185
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
4186
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4174
+ /* *
4175
+ * Licensed under the Apache License, Version 2.0 (the "License");
4176
+ * you may not use this file except in compliance with the License.
4177
+ * You may obtain a copy of the License at
4178
+ *
4179
+ * http://www.apache.org/licenses/LICENSE-2.0
4180
+ *
4181
+ * Unless required by applicable law or agreed to in writing, software
4182
+ * distributed under the License is distributed on an "AS IS" BASIS,
4183
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4184
+ * See the License for the specific language governing permissions and
4185
+ * limitations under the License.
4186
+ *
4187
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4188
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4189
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4187
4190
  * */
4188
4191
  const addColors = features => {
4189
4192
  const severityStyles = {
@@ -4216,22 +4219,22 @@ const addColors = features => {
4216
4219
  return features;
4217
4220
  };
4218
4221
 
4219
- /* *
4220
- * Licensed under the Apache License, Version 2.0 (the "License");
4221
- * you may not use this file except in compliance with the License.
4222
- * You may obtain a copy of the License at
4223
- *
4224
- * http://www.apache.org/licenses/LICENSE-2.0
4225
- *
4226
- * Unless required by applicable law or agreed to in writing, software
4227
- * distributed under the License is distributed on an "AS IS" BASIS,
4228
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4229
- * See the License for the specific language governing permissions and
4230
- * limitations under the License.
4231
- *
4232
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4233
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
4234
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4222
+ /* *
4223
+ * Licensed under the Apache License, Version 2.0 (the "License");
4224
+ * you may not use this file except in compliance with the License.
4225
+ * You may obtain a copy of the License at
4226
+ *
4227
+ * http://www.apache.org/licenses/LICENSE-2.0
4228
+ *
4229
+ * Unless required by applicable law or agreed to in writing, software
4230
+ * distributed under the License is distributed on an "AS IS" BASIS,
4231
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4232
+ * See the License for the specific language governing permissions and
4233
+ * limitations under the License.
4234
+ *
4235
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4236
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
4237
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4235
4238
  * */
4236
4239
  const addFeedAdressToCustomGeoJSonFeature = (feedAddress, features) => {
4237
4240
  return features.reduce((list, feature) => {
@@ -4467,10 +4470,10 @@ const MapViewCapConnectWrapper = ({
4467
4470
  });
4468
4471
  };
4469
4472
 
4470
- /**
4471
- * The lookup table is for registering your own components with the workspace.
4472
- * @param payload
4473
- * @returns
4473
+ /**
4474
+ * The lookup table is for registering your own components with the workspace.
4475
+ * @param payload
4476
+ * @returns
4474
4477
  */
4475
4478
  const ComponentsLookUp = ({
4476
4479
  componentType,
@@ -4518,22 +4521,22 @@ const ComponentsLookUp = ({
4518
4521
  }
4519
4522
  };
4520
4523
 
4521
- /* *
4522
- * Licensed under the Apache License, Version 2.0 (the "License");
4523
- * you may not use this file except in compliance with the License.
4524
- * You may obtain a copy of the License at
4525
- *
4526
- * http://www.apache.org/licenses/LICENSE-2.0
4527
- *
4528
- * Unless required by applicable law or agreed to in writing, software
4529
- * distributed under the License is distributed on an "AS IS" BASIS,
4530
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4531
- * See the License for the specific language governing permissions and
4532
- * limitations under the License.
4533
- *
4534
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4535
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
4536
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4524
+ /* *
4525
+ * Licensed under the Apache License, Version 2.0 (the "License");
4526
+ * you may not use this file except in compliance with the License.
4527
+ * You may obtain a copy of the License at
4528
+ *
4529
+ * http://www.apache.org/licenses/LICENSE-2.0
4530
+ *
4531
+ * Unless required by applicable law or agreed to in writing, software
4532
+ * distributed under the License is distributed on an "AS IS" BASIS,
4533
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4534
+ * See the License for the specific language governing permissions and
4535
+ * limitations under the License.
4536
+ *
4537
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4538
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4539
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4537
4540
  * */
4538
4541
  const capModuleConfig = {
4539
4542
  id: 'capStore-module',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cap",
3
- "version": "9.28.0",
3
+ "version": "9.29.0",
4
4
  "description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import capTranslations from '../locales/cap.json';
2
- export * from './lib';
3
- export { CAP_NAMESPACE } from './lib/utils/i18n';
4
- export { capTranslations };
1
+ import capTranslations from '../locales/cap.json';
2
+ export * from './lib';
3
+ export { CAP_NAMESPACE } from './lib/utils/i18n';
4
+ export { capTranslations };
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const CapDemoFakeApi: React.FC;
7
- export declare const CapDemoRealApi: React.FC;
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const CapDemoFakeApi: React.FC;
7
+ export declare const CapDemoRealApi: React.FC;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,34 +1,34 @@
1
- import React from 'react';
2
- import { ApiUrls } from '@opengeoweb/api';
3
- import { InitialMapProps } from '@opengeoweb/core';
4
- import { CapFeatures } from '../types';
5
- export type SupportedComponentTypes = 'CapWarningList' | 'CapWarningMap';
6
- interface InitialProps {
7
- mapPreset: {
8
- layers?: InitialMapProps['mapPreset']['layers'];
9
- proj: {
10
- bbox: {
11
- left: number;
12
- bottom: number;
13
- right: number;
14
- top: number;
15
- };
16
- srs: string;
17
- };
18
- };
19
- geoJson: CapFeatures;
20
- }
21
- export interface ComponentsLookUpPayload {
22
- productConfigKey: string;
23
- componentType: SupportedComponentTypes;
24
- id: string;
25
- initialProps: InitialProps;
26
- config: ApiUrls;
27
- }
28
- /**
29
- * The lookup table is for registering your own components with the workspace.
30
- * @param payload
31
- * @returns
32
- */
33
- export declare const ComponentsLookUp: ({ componentType, initialProps, productConfigKey, config, id, }: ComponentsLookUpPayload) => React.ReactElement;
34
- export {};
1
+ import React from 'react';
2
+ import { ApiUrls } from '@opengeoweb/api';
3
+ import { InitialMapProps } from '@opengeoweb/core';
4
+ import { CapFeatures } from '../types';
5
+ export type SupportedComponentTypes = 'CapWarningList' | 'CapWarningMap';
6
+ interface InitialProps {
7
+ mapPreset: {
8
+ layers?: InitialMapProps['mapPreset']['layers'];
9
+ proj: {
10
+ bbox: {
11
+ left: number;
12
+ bottom: number;
13
+ right: number;
14
+ top: number;
15
+ };
16
+ srs: string;
17
+ };
18
+ };
19
+ geoJson: CapFeatures;
20
+ }
21
+ export interface ComponentsLookUpPayload {
22
+ productConfigKey: string;
23
+ componentType: SupportedComponentTypes;
24
+ id: string;
25
+ initialProps: InitialProps;
26
+ config: ApiUrls;
27
+ }
28
+ /**
29
+ * The lookup table is for registering your own components with the workspace.
30
+ * @param payload
31
+ * @returns
32
+ */
33
+ export declare const ComponentsLookUp: ({ componentType, initialProps, productConfigKey, config, id, }: ComponentsLookUpPayload) => React.ReactElement;
34
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './componentsLookUp';
1
+ export * from './componentsLookUp';
@@ -1,40 +1,40 @@
1
- import Gantt from 'frappe-gantt';
2
- import { Task } from './Task';
3
- import { ViewMode } from './ViewMode';
4
- interface Options {
5
- view_mode?: ViewMode;
6
- header_height?: number;
7
- column_width?: number;
8
- bar_height?: number;
9
- language?: string;
10
- step?: number;
11
- date_format?: string;
12
- bar_corner_radius?: number;
13
- arrow_curve?: number;
14
- padding?: number;
15
- popup_trigger?: string;
16
- custom_popup_html?: (task: Task) => string;
17
- on_click?: (task: Task) => void;
18
- on_view_change?: (mode: ViewMode) => void;
19
- on_progress_change?: (task: Task, progress: number) => void;
20
- on_date_change?: (task: Task, start: Date, end: Date) => void;
21
- view_modes?: string[];
22
- }
23
- export default class CustomGantt extends Gantt {
24
- private options;
25
- private gantt_start;
26
- private gantt_end;
27
- private tasks;
28
- constructor(wrapper: SVGSVGElement, tasks: Task[], options: Options);
29
- update_view_scale(view_mode: ViewMode): void;
30
- setup_gantt_dates(): void;
31
- get_date_info(date: Date, newLastDate: Date, i: number): {
32
- upper_text: string;
33
- lower_text: string;
34
- upper_x: number;
35
- upper_y: number;
36
- lower_x: number;
37
- lower_y: number;
38
- };
39
- }
40
- export {};
1
+ import Gantt from 'frappe-gantt';
2
+ import { Task } from './Task';
3
+ import { ViewMode } from './ViewMode';
4
+ interface Options {
5
+ view_mode?: ViewMode;
6
+ header_height?: number;
7
+ column_width?: number;
8
+ bar_height?: number;
9
+ language?: string;
10
+ step?: number;
11
+ date_format?: string;
12
+ bar_corner_radius?: number;
13
+ arrow_curve?: number;
14
+ padding?: number;
15
+ popup_trigger?: string;
16
+ custom_popup_html?: (task: Task) => string;
17
+ on_click?: (task: Task) => void;
18
+ on_view_change?: (mode: ViewMode) => void;
19
+ on_progress_change?: (task: Task, progress: number) => void;
20
+ on_date_change?: (task: Task, start: Date, end: Date) => void;
21
+ view_modes?: string[];
22
+ }
23
+ export default class CustomGantt extends Gantt {
24
+ private options;
25
+ private gantt_start;
26
+ private gantt_end;
27
+ private tasks;
28
+ constructor(wrapper: SVGSVGElement, tasks: Task[], options: Options);
29
+ update_view_scale(view_mode: ViewMode): void;
30
+ setup_gantt_dates(): void;
31
+ get_date_info(date: Date, newLastDate: Date, i: number): {
32
+ upper_text: string;
33
+ lower_text: string;
34
+ upper_x: number;
35
+ upper_y: number;
36
+ lower_x: number;
37
+ lower_y: number;
38
+ };
39
+ }
40
+ export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { CapPresets } from '../types';
3
- interface GanttModuleProps {
4
- capWarningPresets: CapPresets;
5
- }
6
- declare const GanttModule: React.FC<GanttModuleProps>;
7
- export default GanttModule;
1
+ import React from 'react';
2
+ import { CapPresets } from '../types';
3
+ interface GanttModuleProps {
4
+ capWarningPresets: CapPresets;
5
+ }
6
+ declare const GanttModule: React.FC<GanttModuleProps>;
7
+ export default GanttModule;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const GanttDemoRealApi: React.FC;
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const GanttDemoRealApi: React.FC;