@opengeoweb/core 2.4.0 → 2.4.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.
Files changed (3) hide show
  1. package/index.esm.js +80 -90
  2. package/index.umd.js +80 -90
  3. package/package.json +5 -5
package/index.esm.js CHANGED
@@ -8325,7 +8325,7 @@ var defaultConfigurations = /*#__PURE__*/Object.freeze({
8325
8325
  preloadedDefaultMapServices: preloadedDefaultMapServices
8326
8326
  });
8327
8327
 
8328
- var useStyles$x = makeStyles({
8328
+ var useStyles$w = makeStyles({
8329
8329
  buttonDiv: {
8330
8330
  position: 'relative'
8331
8331
  },
@@ -8361,7 +8361,7 @@ var AddLayersPopup = function AddLayersPopup(_ref) {
8361
8361
  handleClose = _ref.handleClose,
8362
8362
  _ref$layerType = _ref.layerType,
8363
8363
  layerType = _ref$layerType === void 0 ? LayerType.mapLayer : _ref$layerType;
8364
- var classes = useStyles$x();
8364
+ var classes = useStyles$w();
8365
8365
 
8366
8366
  var _React$useState = React.useState(''),
8367
8367
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8514,7 +8514,7 @@ var AddLayersPopup = function AddLayersPopup(_ref) {
8514
8514
  }, "Close")));
8515
8515
  };
8516
8516
 
8517
- var styles = {
8517
+ var styles$1 = {
8518
8518
  buttonDiv: {
8519
8519
  position: 'relative'
8520
8520
  },
@@ -8566,7 +8566,7 @@ var AddLayersButton = function AddLayersButton(_ref) {
8566
8566
  title: tooltip
8567
8567
  }, /*#__PURE__*/React.createElement(IconButton, {
8568
8568
  onClick: handleClose,
8569
- sx: styles.button,
8569
+ sx: styles$1.button,
8570
8570
  disableRipple: true,
8571
8571
  "data-testid": "addLayersButton",
8572
8572
  ref: ref,
@@ -8731,7 +8731,7 @@ var LayerSelectButtonConnect = function LayerSelectButtonConnect(_ref) {
8731
8731
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
8732
8732
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
8733
8733
  * */
8734
- var useStyles$w = makeStyles({
8734
+ var useStyles$v = makeStyles({
8735
8735
  row: {
8736
8736
  height: '32px'
8737
8737
  },
@@ -8755,7 +8755,7 @@ var DescriptionRow = function DescriptionRow(_ref) {
8755
8755
  layerManagerWidth = _ref.layerManagerWidth,
8756
8756
  _ref$layerSelect = _ref.layerSelect,
8757
8757
  layerSelect = _ref$layerSelect === void 0 ? false : _ref$layerSelect;
8758
- var classes = useStyles$w();
8758
+ var classes = useStyles$v();
8759
8759
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
8760
8760
  return /*#__PURE__*/React.createElement(Grid, {
8761
8761
  container: true,
@@ -8997,7 +8997,7 @@ var DimensionSelect = function DimensionSelect(_ref) {
8997
8997
  }))));
8998
8998
  };
8999
8999
 
9000
- var useStyles$v = makeStyles(function (theme) {
9000
+ var useStyles$u = makeStyles(function (theme) {
9001
9001
  return createStyles({
9002
9002
  dropdownEmpty: {
9003
9003
  paddingLeft: 8,
@@ -9047,7 +9047,7 @@ var RenderLayers = function RenderLayers(_ref) {
9047
9047
  layers = _ref$layers === void 0 ? [] : _ref$layers,
9048
9048
  _ref$isEnabled = _ref.isEnabled,
9049
9049
  isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled;
9050
- var classes = useStyles$v();
9050
+ var classes = useStyles$u();
9051
9051
  var containerClass = useTooltipContainerStyles(isEnabled);
9052
9052
 
9053
9053
  if (!layers || !layers.length) {
@@ -9102,7 +9102,7 @@ var RenderLayers = function RenderLayers(_ref) {
9102
9102
  }));
9103
9103
  };
9104
9104
 
9105
- var useStyles$u = makeStyles(function (theme) {
9105
+ var useStyles$t = makeStyles(function (theme) {
9106
9106
  return {
9107
9107
  opacityDiv: {
9108
9108
  height: 'calc(100% - 5px)',
@@ -9125,7 +9125,7 @@ var useStyles$u = makeStyles(function (theme) {
9125
9125
  position: 'fixed',
9126
9126
  top: '-5px',
9127
9127
  boxSizing: 'initial',
9128
- zIndex: 1,
9128
+ zIndex: 2,
9129
9129
  boxShadow: theme.shadows[8]
9130
9130
  }
9131
9131
  };
@@ -9163,7 +9163,7 @@ var OpacitySelect = function OpacitySelect(_ref) {
9163
9163
  onLayerChangeOpacity = _ref.onLayerChangeOpacity,
9164
9164
  _ref$isEnabled = _ref.isEnabled,
9165
9165
  isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled;
9166
- var classes = useStyles$u();
9166
+ var classes = useStyles$t();
9167
9167
  var sliderClasses = sliderStyles();
9168
9168
  var containerClass = useTooltipContainerStyles(isEnabled);
9169
9169
 
@@ -9391,7 +9391,7 @@ var RenderStyles = function RenderStyles(_ref) {
9391
9391
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9392
9392
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9393
9393
  * */
9394
- var useStyles$t = makeStyles(function (theme) {
9394
+ var useStyles$s = makeStyles(function (theme) {
9395
9395
  return createStyles({
9396
9396
  svgIcon: {
9397
9397
  fill: function fill(_ref) {
@@ -9420,7 +9420,7 @@ var ActivateLayer = function ActivateLayer(_ref2) {
9420
9420
  isActive = _ref2$isActive === void 0 ? false : _ref2$isActive,
9421
9421
  _ref2$isEnabled = _ref2.isEnabled,
9422
9422
  isEnabled = _ref2$isEnabled === void 0 ? true : _ref2$isEnabled;
9423
- var classes = useStyles$t({
9423
+ var classes = useStyles$s({
9424
9424
  isActive: isActive,
9425
9425
  isEnabled: isEnabled
9426
9426
  });
@@ -9473,7 +9473,7 @@ var ActivateLayer = function ActivateLayer(_ref2) {
9473
9473
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9474
9474
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9475
9475
  * */
9476
- var useStyles$s = makeStyles(function (theme) {
9476
+ var useStyles$r = makeStyles(function (theme) {
9477
9477
  return createStyles({
9478
9478
  row: {
9479
9479
  background: function background(isEnabled) {
@@ -9526,7 +9526,7 @@ var LayerRow = function LayerRow(_ref) {
9526
9526
  layerActiveLayout = _ref.layerActiveLayout,
9527
9527
  layerManagerWidth = _ref.layerManagerWidth,
9528
9528
  dragHandle = _ref.dragHandle;
9529
- var classes = useStyles$s(isEnabled);
9529
+ var classes = useStyles$r(isEnabled);
9530
9530
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
9531
9531
 
9532
9532
  var onClickRow = function onClickRow() {
@@ -10152,7 +10152,7 @@ var DragHandle = function DragHandle(_ref) {
10152
10152
  });
10153
10153
  };
10154
10154
 
10155
- var useStyles$r = makeStyles(function () {
10155
+ var useStyles$q = makeStyles(function () {
10156
10156
  return {
10157
10157
  layerRows: {
10158
10158
  width: '100%',
@@ -10219,7 +10219,7 @@ var LayerContainerRow = function LayerContainerRow(_ref) {
10219
10219
 
10220
10220
  var isSorting = activeDragIndex !== null;
10221
10221
  var isDragDisabled = layerIds.length === 1;
10222
- var classes = useStyles$r(isSorting);
10222
+ var classes = useStyles$q(isSorting);
10223
10223
  return /*#__PURE__*/React.createElement(Grid, {
10224
10224
  container: true,
10225
10225
  item: true,
@@ -10429,7 +10429,7 @@ var BaseLayersConnect = function BaseLayersConnect(_ref) {
10429
10429
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
10430
10430
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
10431
10431
  * */
10432
- var useStyles$q = makeStyles({
10432
+ var useStyles$p = makeStyles({
10433
10433
  layerRow: {
10434
10434
  width: '100%',
10435
10435
  height: '36px'
@@ -10452,7 +10452,7 @@ var BaseLayerRow = function BaseLayerRow(_ref) {
10452
10452
  layerManagerWidth = _ref.layerManagerWidth,
10453
10453
  _ref$tooltip = _ref.tooltip,
10454
10454
  tooltip = _ref$tooltip === void 0 ? '' : _ref$tooltip;
10455
- var classes = useStyles$q();
10455
+ var classes = useStyles$p();
10456
10456
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
10457
10457
  return /*#__PURE__*/React.createElement(Grid, {
10458
10458
  container: true,
@@ -10481,7 +10481,7 @@ var BaseLayerRow = function BaseLayerRow(_ref) {
10481
10481
  })));
10482
10482
  };
10483
10483
 
10484
- var useStyles$p = makeStyles({
10484
+ var useStyles$o = makeStyles({
10485
10485
  layerRowContainer: {
10486
10486
  position: 'relative',
10487
10487
  width: '100%',
@@ -10516,7 +10516,7 @@ var LayerManager = function LayerManager(_ref) {
10516
10516
  layerSelect = _ref$layerSelect === void 0 ? false : _ref$layerSelect,
10517
10517
  _ref$showAddLayersToo = _ref.showAddLayersTooltip,
10518
10518
  showAddLayersTooltip = _ref$showAddLayersToo === void 0 ? true : _ref$showAddLayersToo;
10519
- var classes = useStyles$p();
10519
+ var classes = useStyles$o();
10520
10520
 
10521
10521
  var _React$useState = React.useState(LayerManagerWidth.lg),
10522
10522
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -11388,7 +11388,7 @@ var filterLayersFromService = function filterLayersFromService(serviceId, servic
11388
11388
  });
11389
11389
  };
11390
11390
 
11391
- var useStyles$o = makeStyles(function (theme) {
11391
+ var useStyles$n = makeStyles(function (theme) {
11392
11392
  return {
11393
11393
  layerRow: {
11394
11394
  background: theme.palette.geowebColors.cards.cardContainer,
@@ -11446,7 +11446,7 @@ var LayerList = function LayerList(_ref) {
11446
11446
  mapLayers = _ref.mapLayers,
11447
11447
  keywordIds = _ref.keywordIds,
11448
11448
  allKeywordsActive = _ref.allKeywordsActive;
11449
- var classes = useStyles$o();
11449
+ var classes = useStyles$n();
11450
11450
 
11451
11451
  var _React$useState = React.useState(0),
11452
11452
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -11701,7 +11701,7 @@ var ServiceChipConnect = function ServiceChipConnect(_ref) {
11701
11701
  });
11702
11702
  };
11703
11703
 
11704
- var useStyles$n = makeStyles(function (theme) {
11704
+ var useStyles$m = makeStyles(function (theme) {
11705
11705
  return createStyles({
11706
11706
  serviceChips: {
11707
11707
  width: '100%',
@@ -11725,7 +11725,7 @@ var useStyles$n = makeStyles(function (theme) {
11725
11725
  fontSize: '0.875rem'
11726
11726
  },
11727
11727
  scrollArrowLeft: {
11728
- width: '120px',
11728
+ width: '100px',
11729
11729
  marginBottom: '-12px',
11730
11730
  height: '34px',
11731
11731
  backgroundImage: "linear-gradient(to left, rgba(0, 0, 0, 0), ".concat(theme.palette.geowebColors.background.surfaceApp, " 51%)"),
@@ -11733,7 +11733,10 @@ var useStyles$n = makeStyles(function (theme) {
11733
11733
  marginRight: '-120px',
11734
11734
  "float": 'left',
11735
11735
  zIndex: 1,
11736
- position: 'relative'
11736
+ position: 'relative',
11737
+ '&:hover': {
11738
+ color: theme.palette.geowebColors.buttons.tertiary.activeMouseOver.color
11739
+ }
11737
11740
  },
11738
11741
  serviceList: {
11739
11742
  height: '32px',
@@ -11742,13 +11745,16 @@ var useStyles$n = makeStyles(function (theme) {
11742
11745
  overflow: 'hidden'
11743
11746
  },
11744
11747
  scrollArrowRight: {
11745
- width: '120px',
11748
+ width: '100px',
11746
11749
  marginBottom: '-12px',
11747
11750
  height: '34px',
11748
11751
  backgroundImage: "linear-gradient(to right, rgba(0, 0, 0, 0), ".concat(theme.palette.geowebColors.background.surfaceApp, " 51%)"),
11749
11752
  right: '0px',
11750
11753
  position: 'fixed',
11751
- cursor: 'pointer'
11754
+ cursor: 'pointer',
11755
+ '&:hover': {
11756
+ color: theme.palette.geowebColors.buttons.tertiary.activeMouseOver.color
11757
+ }
11752
11758
  }
11753
11759
  });
11754
11760
  });
@@ -11776,7 +11782,7 @@ var ServiceList = function ServiceList(_ref4) {
11776
11782
  var ref = React.useRef(null);
11777
11783
  var scrollSpeed = 5;
11778
11784
  var maxWidthValue = ref && ref.current && ref.current.scrollWidth && ref.current.scrollWidth >= layerSelectWidth - margin && ref.current.scrollWidth || layerSelectWidth - 50;
11779
- var classes = useStyles$n({
11785
+ var classes = useStyles$m({
11780
11786
  margin: margin,
11781
11787
  maxWidthValue: maxWidthValue
11782
11788
  });
@@ -11890,63 +11896,49 @@ var ServiceListConnect = function ServiceListConnect(_ref) {
11890
11896
  });
11891
11897
  };
11892
11898
 
11893
- var useStyles$m = makeStyles(function (theme) {
11894
- return createStyles({
11895
- servicesContainer: {
11896
- width: '300px',
11897
- maxHeight: '380px',
11898
- top: '140px',
11899
- backgroundColor: theme.palette.geowebColors.background.surface,
11900
- boxShadow: theme.shadows[6],
11901
- overflow: 'auto'
11902
- },
11903
- header: {
11904
- position: 'sticky',
11905
- top: 0,
11906
- fontSize: theme.typography.fontSize,
11907
- padding: '12px',
11908
- backgroundColor: theme.palette.geowebColors.background.surface,
11909
- zIndex: 100
11910
- },
11911
- footer: {
11912
- display: 'flex',
11913
- justifyContent: 'center',
11914
- alignItems: 'center',
11915
- position: 'sticky',
11916
- bottom: 0,
11917
- backgroundColor: theme.palette.geowebColors.background.surface,
11918
- zIndex: 100
11919
- },
11920
- iconFill: {
11921
- color: theme.palette.geowebColors.typographyAndIcons.icon
11922
- },
11923
- button: {
11924
- margin: '16px',
11925
- width: '80%',
11926
- fontSize: '12px',
11927
- textTransform: 'none'
11928
- },
11929
- text: {
11930
- paddingTop: '3px',
11931
- fontSize: '12px',
11932
- fontFamily: theme.typography.fontFamily,
11933
- fontWeight: theme.typography.fontWeightRegular,
11934
- textTransform: 'none',
11935
- color: '#575f7a'
11936
- },
11937
- icon: {
11938
- width: '24px',
11939
- height: '24px'
11940
- }
11941
- });
11942
- });
11899
+ var styles = {
11900
+ servicesContainer: {
11901
+ width: '300px',
11902
+ maxHeight: '380px',
11903
+ top: '140px',
11904
+ backgroundColor: 'geowebColors.background.surface',
11905
+ boxShadow: 6,
11906
+ overflow: 'auto'
11907
+ },
11908
+ header: {
11909
+ position: 'sticky',
11910
+ top: 0,
11911
+ fontSize: 'default',
11912
+ padding: '12px',
11913
+ backgroundColor: 'geowebColors.background.surface',
11914
+ zIndex: 100
11915
+ },
11916
+ footer: {
11917
+ display: 'flex',
11918
+ justifyContent: 'center',
11919
+ alignItems: 'center',
11920
+ position: 'sticky',
11921
+ bottom: 0,
11922
+ backgroundColor: 'geowebColors.background.surface',
11923
+ zIndex: 100
11924
+ },
11925
+ button: {
11926
+ margin: '16px',
11927
+ width: '80%',
11928
+ fontSize: '12px',
11929
+ textTransform: 'none'
11930
+ },
11931
+ icon: {
11932
+ width: '24px',
11933
+ height: '24px'
11934
+ }
11935
+ };
11943
11936
 
11944
11937
  var ServiceOptionsDialog = function ServiceOptionsDialog(_ref) {
11945
11938
  var services = _ref.services,
11946
11939
  mapStoreRemoveService = _ref.mapStoreRemoveService,
11947
11940
  _ref$layers = _ref.layers,
11948
11941
  layers = _ref$layers === void 0 ? [] : _ref$layers;
11949
- var classes = useStyles$m();
11950
11942
 
11951
11943
  var _React$useState = React.useState(false),
11952
11944
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -11970,11 +11962,11 @@ var ServiceOptionsDialog = function ServiceOptionsDialog(_ref) {
11970
11962
  };
11971
11963
 
11972
11964
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
11973
- className: classes.servicesContainer,
11965
+ sx: styles.servicesContainer,
11974
11966
  "data-testid": "ServiceDialog"
11975
- }, /*#__PURE__*/React.createElement("div", {
11976
- className: classes.header
11977
- }, " Services"), /*#__PURE__*/React.createElement(List, {
11967
+ }, /*#__PURE__*/React.createElement(Box, {
11968
+ sx: styles.header
11969
+ }, "Services"), /*#__PURE__*/React.createElement(List, {
11978
11970
  disablePadding: true
11979
11971
  }, services.map(function (service) {
11980
11972
  return /*#__PURE__*/React.createElement(ListItem, {
@@ -12001,7 +11993,6 @@ var ServiceOptionsDialog = function ServiceOptionsDialog(_ref) {
12001
11993
  size: "large"
12002
11994
  }, /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
12003
11995
  d: "m8.332 17.09-.005.001-2.652.604.956-2.542.001-.001.001-.001.857-.744 1.69 1.945-.848.738zm.71.815L20.932 7.577 17.823 4 5.933 14.329l-.01.008.005.005L4.173 19l4.857-1.09-.004-.02.019.02-.002-.005z",
12004
- fill: classes.iconFill,
12005
11996
  fillRule: "evenodd"
12006
11997
  })))))), /*#__PURE__*/React.createElement(Tooltip, {
12007
11998
  title: "Delete Service"
@@ -12014,18 +12005,17 @@ var ServiceOptionsDialog = function ServiceOptionsDialog(_ref) {
12014
12005
  "data-testid": "removeServiceButton"
12015
12006
  }, /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
12016
12007
  d: "M17.504 8.228c.588 0 1.027.48.973 1.066l-.876 9.64A1.197 1.197 0 0 1 16.434 20H8.41c-.59 0-1.115-.48-1.167-1.066l-.877-9.64a.962.962 0 0 1 .973-1.066zm-2.115 1.228a.82.82 0 0 0-.819.82v7.674a.818.818 0 0 0 1.638 0v-7.675a.819.819 0 0 0-.819-.819zm-2.968 0a.819.819 0 0 0-.819.82v7.674a.818.818 0 1 0 1.638 0v-7.675a.82.82 0 0 0-.82-.819zm-2.968 0a.819.819 0 0 0-.818.82v7.674a.818.818 0 1 0 1.637 0v-7.675a.82.82 0 0 0-.82-.819zM13.432 4c.21 0 .404.168.436.376l.107.758 3.256-.01a1.606 1.606 0 0 1 1.61 1.6l.001.535-12.841.038L6 6.76a1.605 1.605 0 0 1 1.6-1.61l3.262-.008.103-.758a.454.454 0 0 1 .434-.38z",
12017
- fill: classes.iconFill,
12018
12008
  fillRule: "evenodd"
12019
12009
  }))))))));
12020
- })), /*#__PURE__*/React.createElement("div", {
12021
- className: classes.footer
12010
+ })), /*#__PURE__*/React.createElement(Box, {
12011
+ sx: styles.footer
12022
12012
  }, /*#__PURE__*/React.createElement(Button, {
12023
12013
  onClick: openAddService,
12024
12014
  "data-testid": "openAddServiceButton",
12025
- className: classes.button,
12015
+ sx: styles.button,
12026
12016
  variant: "tertiary",
12027
12017
  startIcon: /*#__PURE__*/React.createElement(SvgIcon, {
12028
- className: classes.icon
12018
+ sx: styles.icon
12029
12019
  }, /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
12030
12020
  d: "M13.647 13.647h6.82a1.276 1.276 0 1 0 0-2.552h-6.82v-6.82a1.276 1.276 0 1 0-2.552 0v6.82h-6.82a1.276 1.276 0 1 0 0 2.552h6.82v6.82a1.274 1.274 0 0 0 1.276 1.275c.705 0 1.276-.571 1.276-1.276v-6.82z",
12031
12021
  fillRule: "evenodd"
package/index.umd.js CHANGED
@@ -8539,7 +8539,7 @@
8539
8539
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
8540
8540
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
8541
8541
  * */
8542
- var useStyles$x = makeStyles__default["default"]({
8542
+ var useStyles$w = makeStyles__default["default"]({
8543
8543
  buttonDiv: {
8544
8544
  position: 'relative'
8545
8545
  },
@@ -8575,7 +8575,7 @@
8575
8575
  handleClose = _a.handleClose,
8576
8576
  _e = _a.layerType,
8577
8577
  layerType = _e === void 0 ? LayerType.mapLayer : _e;
8578
- var classes = useStyles$x();
8578
+ var classes = useStyles$w();
8579
8579
 
8580
8580
  var _f = __read(React__namespace.useState(''), 2),
8581
8581
  serviceURL = _f[0],
@@ -8739,7 +8739,7 @@
8739
8739
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
8740
8740
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
8741
8741
  * */
8742
- var styles = {
8742
+ var styles$1 = {
8743
8743
  buttonDiv: {
8744
8744
  position: 'relative'
8745
8745
  },
@@ -8790,7 +8790,7 @@
8790
8790
  title: tooltip
8791
8791
  }, /*#__PURE__*/React__namespace.createElement(material.IconButton, {
8792
8792
  onClick: handleClose,
8793
- sx: styles.button,
8793
+ sx: styles$1.button,
8794
8794
  disableRipple: true,
8795
8795
  "data-testid": "addLayersButton",
8796
8796
  ref: ref,
@@ -8955,7 +8955,7 @@
8955
8955
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
8956
8956
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
8957
8957
  * */
8958
- var useStyles$w = makeStyles__default["default"]({
8958
+ var useStyles$v = makeStyles__default["default"]({
8959
8959
  row: {
8960
8960
  height: '32px'
8961
8961
  },
@@ -8979,7 +8979,7 @@
8979
8979
  layerManagerWidth = _a.layerManagerWidth,
8980
8980
  _e = _a.layerSelect,
8981
8981
  layerSelect = _e === void 0 ? false : _e;
8982
- var classes = useStyles$w();
8982
+ var classes = useStyles$v();
8983
8983
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
8984
8984
  return /*#__PURE__*/React__namespace.createElement(material.Grid, {
8985
8985
  container: true,
@@ -9253,7 +9253,7 @@
9253
9253
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9254
9254
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9255
9255
  * */
9256
- var useStyles$v = makeStyles__default["default"](function (theme) {
9256
+ var useStyles$u = makeStyles__default["default"](function (theme) {
9257
9257
  return createStyles__default["default"]({
9258
9258
  dropdownEmpty: {
9259
9259
  paddingLeft: 8,
@@ -9303,7 +9303,7 @@
9303
9303
  layers = _b === void 0 ? [] : _b,
9304
9304
  _c = _a.isEnabled,
9305
9305
  isEnabled = _c === void 0 ? true : _c;
9306
- var classes = useStyles$v();
9306
+ var classes = useStyles$u();
9307
9307
  var containerClass = useTooltipContainerStyles(isEnabled);
9308
9308
 
9309
9309
  if (!layers || !layers.length) {
@@ -9374,7 +9374,7 @@
9374
9374
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9375
9375
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9376
9376
  * */
9377
- var useStyles$u = makeStyles__default["default"](function (theme) {
9377
+ var useStyles$t = makeStyles__default["default"](function (theme) {
9378
9378
  return {
9379
9379
  opacityDiv: {
9380
9380
  height: 'calc(100% - 5px)',
@@ -9397,7 +9397,7 @@
9397
9397
  position: 'fixed',
9398
9398
  top: '-5px',
9399
9399
  boxSizing: 'initial',
9400
- zIndex: 1,
9400
+ zIndex: 2,
9401
9401
  boxShadow: theme.shadows[8]
9402
9402
  }
9403
9403
  };
@@ -9435,7 +9435,7 @@
9435
9435
  onLayerChangeOpacity = _a.onLayerChangeOpacity,
9436
9436
  _b = _a.isEnabled,
9437
9437
  isEnabled = _b === void 0 ? true : _b;
9438
- var classes = useStyles$u();
9438
+ var classes = useStyles$t();
9439
9439
  var sliderClasses = shared.sliderStyles();
9440
9440
  var containerClass = useTooltipContainerStyles(isEnabled);
9441
9441
 
@@ -9661,7 +9661,7 @@
9661
9661
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9662
9662
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9663
9663
  * */
9664
- var useStyles$t = makeStyles__default["default"](function (theme) {
9664
+ var useStyles$s = makeStyles__default["default"](function (theme) {
9665
9665
  return createStyles__default["default"]({
9666
9666
  svgIcon: {
9667
9667
  fill: function fill(_a) {
@@ -9690,7 +9690,7 @@
9690
9690
  isActive = _c === void 0 ? false : _c,
9691
9691
  _d = _a.isEnabled,
9692
9692
  isEnabled = _d === void 0 ? true : _d;
9693
- var classes = useStyles$t({
9693
+ var classes = useStyles$s({
9694
9694
  isActive: isActive,
9695
9695
  isEnabled: isEnabled
9696
9696
  });
@@ -9743,7 +9743,7 @@
9743
9743
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9744
9744
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
9745
9745
  * */
9746
- var useStyles$s = makeStyles__default["default"](function (theme) {
9746
+ var useStyles$r = makeStyles__default["default"](function (theme) {
9747
9747
  return createStyles__default["default"]({
9748
9748
  row: {
9749
9749
  background: function background(isEnabled) {
@@ -9797,7 +9797,7 @@
9797
9797
  layerActiveLayout = _a.layerActiveLayout,
9798
9798
  layerManagerWidth = _a.layerManagerWidth,
9799
9799
  dragHandle = _a.dragHandle;
9800
- var classes = useStyles$s(isEnabled);
9800
+ var classes = useStyles$r(isEnabled);
9801
9801
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
9802
9802
 
9803
9803
  var onClickRow = function onClickRow() {
@@ -10439,7 +10439,7 @@
10439
10439
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
10440
10440
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
10441
10441
  * */
10442
- var useStyles$r = makeStyles__default["default"](function () {
10442
+ var useStyles$q = makeStyles__default["default"](function () {
10443
10443
  return {
10444
10444
  layerRows: {
10445
10445
  width: '100%',
@@ -10505,7 +10505,7 @@
10505
10505
 
10506
10506
  var isSorting = activeDragIndex !== null;
10507
10507
  var isDragDisabled = layerIds.length === 1;
10508
- var classes = useStyles$r(isSorting);
10508
+ var classes = useStyles$q(isSorting);
10509
10509
  return /*#__PURE__*/React__namespace.createElement(material.Grid, {
10510
10510
  container: true,
10511
10511
  item: true,
@@ -10715,7 +10715,7 @@
10715
10715
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
10716
10716
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
10717
10717
  * */
10718
- var useStyles$q = makeStyles__default["default"]({
10718
+ var useStyles$p = makeStyles__default["default"]({
10719
10719
  layerRow: {
10720
10720
  width: '100%',
10721
10721
  height: '36px'
@@ -10738,7 +10738,7 @@
10738
10738
  layerManagerWidth = _a.layerManagerWidth,
10739
10739
  _d = _a.tooltip,
10740
10740
  tooltip = _d === void 0 ? '' : _d;
10741
- var classes = useStyles$q();
10741
+ var classes = useStyles$p();
10742
10742
  var columnSizes = layerManagerWidth === LayerManagerWidth.sm ? LayerManagerColumnsSmall() : LayerManagerColumnsLarge();
10743
10743
  return /*#__PURE__*/React__namespace.createElement(material.Grid, {
10744
10744
  container: true,
@@ -10783,7 +10783,7 @@
10783
10783
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
10784
10784
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
10785
10785
  * */
10786
- var useStyles$p = makeStyles__default["default"]({
10786
+ var useStyles$o = makeStyles__default["default"]({
10787
10787
  layerRowContainer: {
10788
10788
  position: 'relative',
10789
10789
  width: '100%',
@@ -10818,7 +10818,7 @@
10818
10818
  layerSelect = _e === void 0 ? false : _e,
10819
10819
  _f = _a.showAddLayersTooltip,
10820
10820
  showAddLayersTooltip = _f === void 0 ? true : _f;
10821
- var classes = useStyles$p();
10821
+ var classes = useStyles$o();
10822
10822
 
10823
10823
  var _g = __read(React__namespace.useState(LayerManagerWidth.lg), 2),
10824
10824
  layerManagerWidth = _g[0],
@@ -11754,7 +11754,7 @@
11754
11754
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
11755
11755
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
11756
11756
  * */
11757
- var useStyles$o = makeStyles__default["default"](function (theme) {
11757
+ var useStyles$n = makeStyles__default["default"](function (theme) {
11758
11758
  return {
11759
11759
  layerRow: {
11760
11760
  background: theme.palette.geowebColors.cards.cardContainer,
@@ -11812,7 +11812,7 @@
11812
11812
  mapLayers = _a.mapLayers,
11813
11813
  keywordIds = _a.keywordIds,
11814
11814
  allKeywordsActive = _a.allKeywordsActive;
11815
- var classes = useStyles$o();
11815
+ var classes = useStyles$n();
11816
11816
 
11817
11817
  var _b = __read(React__namespace.useState(0), 2),
11818
11818
  numberOfLayers = _b[0],
@@ -12082,7 +12082,7 @@
12082
12082
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
12083
12083
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
12084
12084
  * */
12085
- var useStyles$n = makeStyles__default["default"](function (theme) {
12085
+ var useStyles$m = makeStyles__default["default"](function (theme) {
12086
12086
  return createStyles__default["default"]({
12087
12087
  serviceChips: {
12088
12088
  width: '100%',
@@ -12106,7 +12106,7 @@
12106
12106
  fontSize: '0.875rem'
12107
12107
  },
12108
12108
  scrollArrowLeft: {
12109
- width: '120px',
12109
+ width: '100px',
12110
12110
  marginBottom: '-12px',
12111
12111
  height: '34px',
12112
12112
  backgroundImage: "linear-gradient(to left, rgba(0, 0, 0, 0), " + theme.palette.geowebColors.background.surfaceApp + " 51%)",
@@ -12114,7 +12114,10 @@
12114
12114
  marginRight: '-120px',
12115
12115
  "float": 'left',
12116
12116
  zIndex: 1,
12117
- position: 'relative'
12117
+ position: 'relative',
12118
+ '&:hover': {
12119
+ color: theme.palette.geowebColors.buttons.tertiary.activeMouseOver.color
12120
+ }
12118
12121
  },
12119
12122
  serviceList: {
12120
12123
  height: '32px',
@@ -12123,13 +12126,16 @@
12123
12126
  overflow: 'hidden'
12124
12127
  },
12125
12128
  scrollArrowRight: {
12126
- width: '120px',
12129
+ width: '100px',
12127
12130
  marginBottom: '-12px',
12128
12131
  height: '34px',
12129
12132
  backgroundImage: "linear-gradient(to right, rgba(0, 0, 0, 0), " + theme.palette.geowebColors.background.surfaceApp + " 51%)",
12130
12133
  right: '0px',
12131
12134
  position: 'fixed',
12132
- cursor: 'pointer'
12135
+ cursor: 'pointer',
12136
+ '&:hover': {
12137
+ color: theme.palette.geowebColors.buttons.tertiary.activeMouseOver.color
12138
+ }
12133
12139
  }
12134
12140
  });
12135
12141
  });
@@ -12154,7 +12160,7 @@
12154
12160
  var ref = React__namespace.useRef(null);
12155
12161
  var scrollSpeed = 5;
12156
12162
  var maxWidthValue = ref && ref.current && ref.current.scrollWidth && ref.current.scrollWidth >= layerSelectWidth - margin && ref.current.scrollWidth || layerSelectWidth - 50;
12157
- var classes = useStyles$n({
12163
+ var classes = useStyles$m({
12158
12164
  margin: margin,
12159
12165
  maxWidthValue: maxWidthValue
12160
12166
  });
@@ -12284,63 +12290,49 @@
12284
12290
  * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
12285
12291
  * Copyright 2022 - Finnish Meteorological Institute (FMI)
12286
12292
  * */
12287
- var useStyles$m = makeStyles__default["default"](function (theme) {
12288
- return createStyles__default["default"]({
12289
- servicesContainer: {
12290
- width: '300px',
12291
- maxHeight: '380px',
12292
- top: '140px',
12293
- backgroundColor: theme.palette.geowebColors.background.surface,
12294
- boxShadow: theme.shadows[6],
12295
- overflow: 'auto'
12296
- },
12297
- header: {
12298
- position: 'sticky',
12299
- top: 0,
12300
- fontSize: theme.typography.fontSize,
12301
- padding: '12px',
12302
- backgroundColor: theme.palette.geowebColors.background.surface,
12303
- zIndex: 100
12304
- },
12305
- footer: {
12306
- display: 'flex',
12307
- justifyContent: 'center',
12308
- alignItems: 'center',
12309
- position: 'sticky',
12310
- bottom: 0,
12311
- backgroundColor: theme.palette.geowebColors.background.surface,
12312
- zIndex: 100
12313
- },
12314
- iconFill: {
12315
- color: theme.palette.geowebColors.typographyAndIcons.icon
12316
- },
12317
- button: {
12318
- margin: '16px',
12319
- width: '80%',
12320
- fontSize: '12px',
12321
- textTransform: 'none'
12322
- },
12323
- text: {
12324
- paddingTop: '3px',
12325
- fontSize: '12px',
12326
- fontFamily: theme.typography.fontFamily,
12327
- fontWeight: theme.typography.fontWeightRegular,
12328
- textTransform: 'none',
12329
- color: '#575f7a'
12330
- },
12331
- icon: {
12332
- width: '24px',
12333
- height: '24px'
12334
- }
12335
- });
12336
- });
12293
+ var styles = {
12294
+ servicesContainer: {
12295
+ width: '300px',
12296
+ maxHeight: '380px',
12297
+ top: '140px',
12298
+ backgroundColor: 'geowebColors.background.surface',
12299
+ boxShadow: 6,
12300
+ overflow: 'auto'
12301
+ },
12302
+ header: {
12303
+ position: 'sticky',
12304
+ top: 0,
12305
+ fontSize: 'default',
12306
+ padding: '12px',
12307
+ backgroundColor: 'geowebColors.background.surface',
12308
+ zIndex: 100
12309
+ },
12310
+ footer: {
12311
+ display: 'flex',
12312
+ justifyContent: 'center',
12313
+ alignItems: 'center',
12314
+ position: 'sticky',
12315
+ bottom: 0,
12316
+ backgroundColor: 'geowebColors.background.surface',
12317
+ zIndex: 100
12318
+ },
12319
+ button: {
12320
+ margin: '16px',
12321
+ width: '80%',
12322
+ fontSize: '12px',
12323
+ textTransform: 'none'
12324
+ },
12325
+ icon: {
12326
+ width: '24px',
12327
+ height: '24px'
12328
+ }
12329
+ };
12337
12330
 
12338
12331
  var ServiceOptionsDialog = function ServiceOptionsDialog(_a) {
12339
12332
  var services = _a.services,
12340
12333
  mapStoreRemoveService = _a.mapStoreRemoveService,
12341
12334
  _b = _a.layers,
12342
12335
  layers = _b === void 0 ? [] : _b;
12343
- var classes = useStyles$m();
12344
12336
 
12345
12337
  var _c = __read(React__namespace.useState(false), 2),
12346
12338
  addServiceisOpen = _c[0],
@@ -12363,11 +12355,11 @@
12363
12355
  };
12364
12356
 
12365
12357
  return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(material.Box, {
12366
- className: classes.servicesContainer,
12358
+ sx: styles.servicesContainer,
12367
12359
  "data-testid": "ServiceDialog"
12368
- }, /*#__PURE__*/React__namespace.createElement("div", {
12369
- className: classes.header
12370
- }, " Services"), /*#__PURE__*/React__namespace.createElement(material.List, {
12360
+ }, /*#__PURE__*/React__namespace.createElement(material.Box, {
12361
+ sx: styles.header
12362
+ }, "Services"), /*#__PURE__*/React__namespace.createElement(material.List, {
12371
12363
  disablePadding: true
12372
12364
  }, services.map(function (service) {
12373
12365
  return /*#__PURE__*/React__namespace.createElement(material.ListItem, {
@@ -12394,7 +12386,6 @@
12394
12386
  size: "large"
12395
12387
  }, /*#__PURE__*/React__namespace.createElement(material.SvgIcon, null, /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
12396
12388
  d: "m8.332 17.09-.005.001-2.652.604.956-2.542.001-.001.001-.001.857-.744 1.69 1.945-.848.738zm.71.815L20.932 7.577 17.823 4 5.933 14.329l-.01.008.005.005L4.173 19l4.857-1.09-.004-.02.019.02-.002-.005z",
12397
- fill: classes.iconFill,
12398
12389
  fillRule: "evenodd"
12399
12390
  })))))), /*#__PURE__*/React__namespace.createElement(material.Tooltip, {
12400
12391
  title: "Delete Service"
@@ -12407,18 +12398,17 @@
12407
12398
  "data-testid": "removeServiceButton"
12408
12399
  }, /*#__PURE__*/React__namespace.createElement(material.SvgIcon, null, /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
12409
12400
  d: "M17.504 8.228c.588 0 1.027.48.973 1.066l-.876 9.64A1.197 1.197 0 0 1 16.434 20H8.41c-.59 0-1.115-.48-1.167-1.066l-.877-9.64a.962.962 0 0 1 .973-1.066zm-2.115 1.228a.82.82 0 0 0-.819.82v7.674a.818.818 0 0 0 1.638 0v-7.675a.819.819 0 0 0-.819-.819zm-2.968 0a.819.819 0 0 0-.819.82v7.674a.818.818 0 1 0 1.638 0v-7.675a.82.82 0 0 0-.82-.819zm-2.968 0a.819.819 0 0 0-.818.82v7.674a.818.818 0 1 0 1.637 0v-7.675a.82.82 0 0 0-.82-.819zM13.432 4c.21 0 .404.168.436.376l.107.758 3.256-.01a1.606 1.606 0 0 1 1.61 1.6l.001.535-12.841.038L6 6.76a1.605 1.605 0 0 1 1.6-1.61l3.262-.008.103-.758a.454.454 0 0 1 .434-.38z",
12410
- fill: classes.iconFill,
12411
12401
  fillRule: "evenodd"
12412
12402
  }))))))));
12413
- })), /*#__PURE__*/React__namespace.createElement("div", {
12414
- className: classes.footer
12403
+ })), /*#__PURE__*/React__namespace.createElement(material.Box, {
12404
+ sx: styles.footer
12415
12405
  }, /*#__PURE__*/React__namespace.createElement(material.Button, {
12416
12406
  onClick: openAddService,
12417
12407
  "data-testid": "openAddServiceButton",
12418
- className: classes.button,
12408
+ sx: styles.button,
12419
12409
  variant: "tertiary",
12420
12410
  startIcon: /*#__PURE__*/React__namespace.createElement(material.SvgIcon, {
12421
- className: classes.icon
12411
+ sx: styles.icon
12422
12412
  }, /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("path", {
12423
12413
  d: "M13.647 13.647h6.82a1.276 1.276 0 1 0 0-2.552h-6.82v-6.82a1.276 1.276 0 1 0-2.552 0v6.82h-6.82a1.276 1.276 0 1 0 0 2.552h6.82v6.82a1.274 1.274 0 0 0 1.276 1.275c.705 0 1.276-.571 1.276-1.276v-6.82z",
12424
12414
  fillRule: "evenodd"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,22 +13,22 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
- "@opengeoweb/theme": "2.4.0",
16
+ "@opengeoweb/theme": "2.4.1",
17
17
  "@mui/material": "^5.2.8",
18
18
  "@mui/styles": "^5.2.3",
19
19
  "@mui/icons-material": "^5.2.5",
20
20
  "react-redux": "7.2.2",
21
21
  "moment": "^2.29.0",
22
22
  "react-intl": "^5.17.5",
23
- "@opengeoweb/webmap": "2.4.0",
23
+ "@opengeoweb/webmap": "2.4.1",
24
24
  "throttle-debounce": "^3.0.1",
25
25
  "proj4": "^2.6.2",
26
26
  "react-sortablejs": "^6.0.0",
27
- "@opengeoweb/shared": "2.4.0",
27
+ "@opengeoweb/shared": "2.4.1",
28
28
  "react-draggable": "^4.4.3",
29
29
  "re-resizable": "^6.9.0",
30
30
  "lodash": "^4.17.20",
31
- "@opengeoweb/form-fields": "2.4.0",
31
+ "@opengeoweb/form-fields": "2.4.1",
32
32
  "react-hook-form": "^6.12.1",
33
33
  "moment-timezone": "^0.5.31",
34
34
  "@mui/lab": "^5.0.0-alpha.64",