@opengeoweb/sigmet-airmet 4.13.1 → 4.14.1
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/README.md +4 -3
- package/index.esm.js +4958 -1443
- package/index.umd.js +4926 -1417
- package/lib/components/MapViewGeoJson/MapViewGeoJson.d.ts +2 -0
- package/lib/components/MapViewGeoJson/utils.d.ts +11 -2
- package/lib/components/ProductForms/ProductFormDialog.d.ts +3 -4
- package/lib/components/ProductForms/ProductFormDialogContent.d.ts +6 -5
- package/lib/components/ProductForms/ProductFormFields/CloudLevels.d.ts +8 -5
- package/lib/components/ProductForms/ProductFormFields/Progress.d.ts +1 -2
- package/lib/components/ProductForms/ProductFormFields/SelectFIR.d.ts +8 -1
- package/lib/components/ProductForms/ProductFormFields/StartGeometry.d.ts +1 -0
- package/lib/components/ProductForms/ProductFormFields/SurfaceVisibility.d.ts +2 -2
- package/lib/components/ProductForms/ProductFormFields/ValidFrom.d.ts +2 -2
- package/lib/components/ProductForms/ProductFormFields/ValidUntil.d.ts +2 -4
- package/lib/components/ProductForms/ProductFormLayout.d.ts +2 -0
- package/lib/components/ProductForms/ProductFormLayout.spec.d.ts +1 -0
- package/lib/components/ProductForms/utils.d.ts +40 -23
- package/lib/types.d.ts +49 -6
- package/lib/utils/config/index.d.ts +3 -2
- package/package.json +11 -11
- package/lib/utils/KNMIlayers.d.ts +0 -15
- package/lib/utils/getFir.d.ts +0 -8
package/README.md
CHANGED
|
@@ -118,9 +118,10 @@ Schema files define all required properties and types for the configuration file
|
|
|
118
118
|
- firArea.schema: `libs/sigmet-airmet/src/lib/utils/config/firArea.schema.json`
|
|
119
119
|
Defines the shared properties and validations of sigmet and airmet.
|
|
120
120
|
- airmet.schema: `libs/sigmet-airmet/src/lib/utils/config/airmet.schema.json`
|
|
121
|
-
Defines the airmet config validations.
|
|
121
|
+
Defines the airmet config validations. Airmet uses the firArea scheme and adds unique properties via the $merge prop: ```"$merge": {
|
|
122
|
+
"source": { "$ref": "firArea.schema.json" } ```
|
|
122
123
|
- sigmet.schema: `libs/sigmet-airmet/src/lib/utils/config/sigmet.schema.json`
|
|
123
|
-
Defines the sigmet config validations. Sigmet
|
|
124
|
+
Defines the sigmet config validations. Sigmet uses the firArea scheme and adds unique properties via the $merge prop: ```"$merge": {
|
|
124
125
|
"source": { "$ref": "firArea.schema.json" } ```
|
|
125
126
|
|
|
126
127
|
#### Configuration typescript types
|
|
@@ -165,7 +166,7 @@ If you now run `nx typecheck sigmet-airmet` it will fail, and that's expected as
|
|
|
165
166
|
],
|
|
166
167
|
```
|
|
167
168
|
|
|
168
|
-
2.2 Time to test out the validations. First airmet, go to http://localhost:4400/?path=/story/demo-airmet--airmet-dialog-demo
|
|
169
|
+
2.2 Time to test out the validations. First airmet, go to http://localhost:4400/?path=/story/demo-airmet--airmet-dialog-demo. We expect there to be an error since you added a new required property but the story is still working. The same goes for sigmet http://localhost:4400/?path=/story/demo-sigmet--sigmet-dialog-demo. This is because we are merging the firArea scheme, but this overwrites the required list. To fix this, open `libs/sigmet-airmet/src/lib/utils/config/sigmet.schema.json` and add `my_new_config` to the required prop in the `fir_areas` key. Do the same in `libs/sigmet-airmet/src/lib/utils/config/airmet.schema.json` Afterwards an error should show for both.
|
|
169
170
|
|
|
170
171
|
```
|
|
171
172
|
"required": [
|