@opengeoweb/sigmet-airmet 9.34.0 → 9.35.1-spike-oltanstack.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 (2) hide show
  1. package/index.esm.js +6 -3
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -1595,7 +1595,7 @@ var getDialogtitle = function getDialogtitle(product, productType, productConfig
1595
1595
  return productName + " " + translateKeyOutsideComponents('cancels') + " " + product.cancelsAirmetSequenceId;
1596
1596
  };
1597
1597
  var getProductFormMode = function getProductFormMode(canBeOptions, productListItem) {
1598
- if (productListItem === null) {
1598
+ if (!productListItem) {
1599
1599
  return 'new';
1600
1600
  }
1601
1601
  if (!Array.isArray(canBeOptions)) {
@@ -4355,7 +4355,7 @@ var getSequenceStyling = function getSequenceStyling(product, hasTac) {
4355
4355
  if (hasTac === void 0) {
4356
4356
  hasTac = false;
4357
4357
  }
4358
- if (hasTac && !product || product && product.status === 'DRAFT') {
4358
+ if (hasTac && !product || product && product.status === 'DRAFT' || product && product.status === '') {
4359
4359
  return {
4360
4360
  fontWeight: 'lighter',
4361
4361
  color: 'geowebColors.typographyAndIcons.inactiveText'
@@ -4450,6 +4450,7 @@ var MapViewGeoJson = function MapViewGeoJson(_ref) {
4450
4450
  _ref$geoJSONLayers = _ref.geoJSONLayers,
4451
4451
  geoJSONLayers = _ref$geoJSONLayers === void 0 ? [] : _ref$geoJSONLayers;
4452
4452
  var dispatch = useDispatch();
4453
+ var mapWindowRef = React.useRef(null);
4453
4454
  var firstMap = useSelector(function (store) {
4454
4455
  return mapSelectors.getFirstMap(store);
4455
4456
  }, shallowEqual);
@@ -4523,6 +4524,7 @@ var MapViewGeoJson = function MapViewGeoJson(_ref) {
4523
4524
  height: '100%'
4524
4525
  },
4525
4526
  "data-testid": "MapView",
4527
+ ref: mapWindowRef,
4526
4528
  children: [jsxs(MapControls, {
4527
4529
  children: [jsx(LayerManagerMapButtonConnect, {
4528
4530
  source: source,
@@ -4549,7 +4551,8 @@ var MapViewGeoJson = function MapViewGeoJson(_ref) {
4549
4551
  },
4550
4552
  children: jsx(TimeSliderConnect, {
4551
4553
  sourceId: timesliderId,
4552
- mapId: mapId
4554
+ mapId: mapId,
4555
+ mapWindowRef: mapWindowRef
4553
4556
  })
4554
4557
  }), jsx(LegendConnect, {
4555
4558
  showMapId: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "9.34.0",
3
+ "version": "9.35.1-spike-oltanstack.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {