@opengeoweb/data-explorer 19.1.0 → 19.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.
Files changed (51) hide show
  1. package/dist/README.md +100 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.esm.js +11120 -0
  4. package/dist/src/index.d.ts +5 -0
  5. package/dist/src/lib/components/AreaFilter/AreaFilter.d.ts +11 -0
  6. package/dist/src/lib/components/AreaFilter/AreaFilterConnect.d.ts +2 -0
  7. package/dist/src/lib/components/AreaFilter/AreaFilterLocationSearch.d.ts +6 -0
  8. package/dist/src/lib/components/ConceptList/ConceptChip.d.ts +10 -0
  9. package/dist/src/lib/components/ConceptList/ConceptChipConnect.d.ts +7 -0
  10. package/dist/src/lib/components/ConceptList/ConceptList.d.ts +8 -0
  11. package/dist/src/lib/components/ConceptList/ConceptListConnect.d.ts +2 -0
  12. package/dist/src/lib/components/DataExplorer.d.ts +18 -0
  13. package/dist/src/lib/components/DataExplorerConnect.d.ts +6 -0
  14. package/dist/src/lib/components/DataExplorerFilters/DataExplorerFilterOption.d.ts +11 -0
  15. package/dist/src/lib/components/DataExplorerFilters/DataExplorerFilters.d.ts +10 -0
  16. package/dist/src/lib/components/DataExplorerFilters/DataExplorerFiltersConnect.d.ts +2 -0
  17. package/dist/src/lib/components/DataExplorerFilters/DataExplorerSearchConnect.d.ts +2 -0
  18. package/dist/src/lib/components/DataExplorerInfo/DataExplorerInfo.d.ts +15 -0
  19. package/dist/src/lib/components/DataExplorerInfo/DataExplorerInfoButton.d.ts +7 -0
  20. package/dist/src/lib/components/DataExplorerInfo/DataExplorerInfoButtonConnect.d.ts +8 -0
  21. package/dist/src/lib/components/DataExplorerInfo/DataExplorerInfoConnect.d.ts +2 -0
  22. package/dist/src/lib/components/DataExplorerInfo/InfoDialogBaseInfo.d.ts +4 -0
  23. package/dist/src/lib/components/DataExplorerInfo/InfoDialogContacts.d.ts +4 -0
  24. package/dist/src/lib/components/DataExplorerInfo/InfoDialogGeographicalCoverage.d.ts +4 -0
  25. package/dist/src/lib/components/DataExplorerInfo/InfoDialogKeywords.d.ts +4 -0
  26. package/dist/src/lib/components/DataExplorerInfo/InfoDialogLinks.d.ts +4 -0
  27. package/dist/src/lib/components/DataExplorerInfo/InfoDialogTime.d.ts +4 -0
  28. package/dist/src/lib/components/DataExplorerInfo/InfoDialogWMSMap.d.ts +14 -0
  29. package/dist/src/lib/components/DataExplorerInfo/InfoDialogWMSMapConnect.d.ts +15 -0
  30. package/dist/src/lib/components/DatasetList/DatasetAddRemoveButton.d.ts +10 -0
  31. package/dist/src/lib/components/DatasetList/DatasetList.d.ts +10 -0
  32. package/dist/src/lib/components/DatasetList/DatasetListConnect.d.ts +2 -0
  33. package/dist/src/lib/components/DatasetList/DatasetRow.d.ts +14 -0
  34. package/dist/src/lib/components/DatasetList/DatasetRowConnect.d.ts +10 -0
  35. package/dist/src/lib/components/providers/Providers.d.ts +28 -0
  36. package/dist/src/lib/components/providers/index.d.ts +1 -0
  37. package/dist/src/lib/store/index.d.ts +4 -0
  38. package/dist/src/lib/store/listeners.d.ts +2 -0
  39. package/dist/src/lib/store/reducer.d.ts +14 -0
  40. package/dist/src/lib/store/selectors.d.ts +233 -0
  41. package/dist/src/lib/store/store.d.ts +7 -0
  42. package/dist/src/lib/store/types.d.ts +208 -0
  43. package/dist/src/lib/utils/data-explorerUtils.d.ts +8 -0
  44. package/dist/src/lib/utils/dataexplorer-api/api.d.ts +7 -0
  45. package/dist/src/lib/utils/dataexplorer-api/fakeApi.d.ts +15 -0
  46. package/dist/src/lib/utils/dataexplorer-api/hooks.d.ts +7 -0
  47. package/dist/src/lib/utils/i18n.d.ts +6 -0
  48. package/dist/src/lib/utils/location-api/fakeApi.d.ts +47 -0
  49. package/dist/src/lib/utils/storyUtils.d.ts +10 -0
  50. package/dist/src/lib/utils/timeUtils.d.ts +1 -0
  51. package/package.json +2 -1
package/dist/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # Data Explorer
2
+
3
+ MeteoGate Data Explorer is an UI dialog for searching and visualizing data from WIS2 Global Discovery Catalogue.
4
+ The dialog can be opened from the Layer Select by clicking the "MeteoGate" button on the left side of the dialog.
5
+ It provides dataset search and filtering functionality. WMS datasets can be added as a layer and visualized on the map.
6
+
7
+ This library was generated with [Nx](https://nx.dev).
8
+
9
+ ## Configuration
10
+
11
+ Data Explorer has its own configuration file [data-explorerPresets.json](../../apps/geoweb/src/assets/data-explorerPresets.json).
12
+
13
+ The file that is used for Data Explorer configuration has to be defined with the property `GW_DATA_EXPLORER_CONFIGURATION_FILENAME` in GeoWeb configuration. See the example in [config.example.json](../../apps/geoweb/src/assets/config.example.json)
14
+ If Data Explorer configuration filename is not defined in `config.json`, the "MeteoGate" button will not be displayed in the Layer Select.
15
+
16
+ To display the "MeteoGate" button in the main map view controls on the left side, the `config.json` property `GW_DATA_EXPLORER_BUTTON_ON_MAP` should be set as "true".
17
+
18
+ The Data Explorer configuration file contains the following properties:
19
+
20
+ ### discoveryCatalogueURL
21
+
22
+ This is the path to the WIS2 Global Discovery Catalogue metadata collection. For example, the DWD instance is at https://wis2.dwd.de/gdc/collections/wis2-discovery-metadata
23
+
24
+ It is a OGC Records API, where each dataset is a GeoJSON Feature. You can find more information about Global Discovery Catalogue at https://training.wis2box.wis.wmo.int/practical-sessions/discovering-datasets-from-wis2-gdc/
25
+
26
+ ### concepts
27
+
28
+ The "concepts" are a way to categorize datasets in the discovery catalogue. A dataset can have multiple "themes" which contain different concepts.
29
+
30
+ Themes are listed in the dataset properties, for example:
31
+
32
+ ```
33
+ "themes":[
34
+ {
35
+ "concepts":[
36
+ {
37
+ "id":"Radar"
38
+ },
39
+ {
40
+ "id":"Surface"
41
+ },
42
+ ],
43
+ "scheme":"https://canada.multites.net/cst/EAEAD1E6-7DD2-4997-BE7F-40BFB1CBE8A2/CST20230912.rdf"
44
+ }
45
+ ]
46
+ ```
47
+
48
+ In the Data Explorer configuration, the `concepts` list defines the concept filters which are displayed as chips below the search field. Each one has `id` which corresponds to the id in the GeoJSON properties, and `label` is what will be displayed in the UI.
49
+
50
+ ```
51
+ "concepts": [
52
+ {
53
+ "id": "Surface",
54
+ "label": "Observation"
55
+ },
56
+ {
57
+ "id": "Radar",
58
+ "label": "Radar"
59
+ },
60
+ ],
61
+ ```
62
+
63
+ ### queryables
64
+
65
+ Properties in the discovery catalogue datasets can be used for filtering through the API. The `queryables` configuration property defines the fields that will be displayed as filters on the left side of the Data Explorer dialog. Each queryable has an `id` that corresponds to the nested property path in the dataset GeoJSON, and a `label`, that will be displayed in the UI.
66
+
67
+ ```
68
+ "queryables": [
69
+ {
70
+ "id": "contacts.addresses.country",
71
+ "label": "Country"
72
+ },
73
+ {
74
+ "id": "formats",
75
+ "label": "Formats"
76
+ },
77
+ {
78
+ "id": "rights",
79
+ "label": "Licenses"
80
+ }
81
+ ]
82
+ ```
83
+
84
+ ### areaFilterTileURL
85
+
86
+ Area filter uses OpenStreetMap tiles (https://tile.openstreetmap.org/). The tile server URL can be configured with this property.
87
+
88
+ ### areaFilterTileLicense
89
+
90
+ OpenStreetMap tile API requires showing an attribution text (https://operations.osmfoundation.org/policies/tiles/).
91
+
92
+ The text is displayed in the bottom left corner of the map.
93
+
94
+ ## Running unit tests
95
+
96
+ Run `nx test data-explorer` to execute the unit tests via [Jest](https://jestjs.io).
97
+
98
+ ## Running storybook
99
+
100
+ Run `nx run data-explorer:storybook` to run the storybooks.
@@ -0,0 +1 @@
1
+ export * from "./src/index";