@opengeoweb/shared 12.11.0 → 12.13.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.
package/index.esm.js CHANGED
@@ -583,7 +583,9 @@ var tagStyle = function tagStyle(color) {
583
583
  var borderColor = Object.assign({}, borderColors)[color];
584
584
  return {
585
585
  backgroundColor: backgroundColor,
586
+ // eslint-disable-next-line id-length
586
587
  m: 0,
588
+ // eslint-disable-next-line id-length
587
589
  p: 0,
588
590
  border: '1px solid',
589
591
  borderColor: borderColor,
@@ -2028,7 +2030,7 @@ var AppLayout = function AppLayout(_ref) {
2028
2030
  children = _ref.children;
2029
2031
  return jsxs(Box, {
2030
2032
  sx: {
2031
- height: '100vh',
2033
+ height: '100dvh',
2032
2034
  display: 'flex',
2033
2035
  flexDirection: 'column'
2034
2036
  },
@@ -4550,7 +4552,9 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4550
4552
  lastUpdateTime = _ref.lastUpdateTime,
4551
4553
  dataTestId = _ref.dataTestId,
4552
4554
  _ref$hideLabel = _ref.hideLabel,
4553
- hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel;
4555
+ hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
4556
+ _ref$showRefreshButto = _ref.showRefreshButton,
4557
+ showRefreshButton = _ref$showRefreshButto === void 0 ? true : _ref$showRefreshButto;
4554
4558
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
4555
4559
  t = _useTranslation.t;
4556
4560
  return jsxs(Box, {
@@ -4569,7 +4573,7 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4569
4573
  },
4570
4574
  "data-testid": dataTestId,
4571
4575
  children: getLastUpdateTitle(lastUpdateTime, t)
4572
- }), jsx(CustomIconButton, {
4576
+ }), showRefreshButton && jsx(CustomIconButton, {
4573
4577
  "data-testid": "refresh-button",
4574
4578
  onClick: onPressRefresh,
4575
4579
  sx: {
@@ -4925,11 +4929,11 @@ var FilterChip = function FilterChip(_ref) {
4925
4929
  size = _ref$size === void 0 ? 'small' : _ref$size;
4926
4930
  var theme = useTheme();
4927
4931
  var chipRef = useRef(null);
4928
- var clickHandler = function clickHandler() {
4929
- return onClick ? onClick(chipRef.current) : handleClick(id, isSelected);
4932
+ var clickHandler = function clickHandler(event) {
4933
+ return onClick ? onClick(chipRef.current, event) : handleClick(id, isSelected);
4930
4934
  };
4931
- var clickIconHandler = function clickIconHandler() {
4932
- return onClickIcon == null ? void 0 : onClickIcon(chipRef.current);
4935
+ var clickIconHandler = function clickIconHandler(event) {
4936
+ return onClickIcon == null ? void 0 : onClickIcon(chipRef.current, event);
4933
4937
  };
4934
4938
  return jsx(Chip, {
4935
4939
  ref: chipRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "12.11.0",
3
+ "version": "12.13.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
10
  "dependencies": {
11
- "@opengeoweb/theme": "12.11.0",
11
+ "@opengeoweb/theme": "12.13.0",
12
12
  "react-draggable": "^4.4.6",
13
13
  "re-resizable": "^6.9.11",
14
14
  "lodash": "^4.17.21",
@@ -6,8 +6,8 @@ export interface FilterChipProps {
6
6
  isDisabled?: boolean;
7
7
  handleClick?: (label: string, isSelected?: boolean) => void;
8
8
  actionIcon?: React.ReactElement;
9
- onClick?: (ref: HTMLElement | null) => void;
10
- onClickIcon?: (ref: HTMLElement | null) => void;
9
+ onClick?: (ref: HTMLElement | null, event: React.MouseEvent) => void;
10
+ onClickIcon?: (ref: HTMLElement | null, event: React.MouseEvent) => void;
11
11
  size?: 'small' | 'medium';
12
12
  }
13
13
  declare const FilterChip: React.FC<FilterChipProps>;
@@ -2,10 +2,11 @@ import { TFunction } from 'i18next';
2
2
  import React from 'react';
3
3
  export declare const getLastUpdateTitle: (time: string, t: TFunction) => string;
4
4
  interface LastUpdateTimeProps {
5
- onPressRefresh: () => void;
5
+ onPressRefresh?: () => void;
6
6
  lastUpdateTime?: string;
7
7
  dataTestId?: string;
8
8
  hideLabel?: boolean;
9
+ showRefreshButton?: boolean;
9
10
  }
10
11
  declare const LastUpdateTime: React.FC<LastUpdateTimeProps>;
11
12
  export default LastUpdateTime;
@@ -10,7 +10,6 @@ export interface ConfigType {
10
10
  GW_APP_URL?: string;
11
11
  GW_INITIAL_PRESETS_FILENAME?: string;
12
12
  GW_CAP_CONFIGURATION_FILENAME?: string;
13
- GW_DATAEXPLORER_CONFIGURATION_FILENAME?: string;
14
13
  GW_DEFAULT_THEME?: ThemeTypes;
15
14
  GW_INITIAL_WORKSPACE_PRESET?: string;
16
15
  GW_SW_BASE_URL?: string;
@@ -38,6 +37,8 @@ export interface ConfigType {
38
37
  GW_FEATURE_ENABLE_SPECIAL_THEMES?: boolean;
39
38
  GW_FEATURE_TAF_AUTOTAF_ENABLED?: boolean;
40
39
  GW_WARNINGS_MARITIME_WARNINGS?: boolean;
40
+ GW_DATAEXPLORER_CONFIGURATION_FILENAME?: string;
41
+ GW_DATAEXPLORER_BUTTON_ON_MAP?: boolean;
41
42
  GW_LANGUAGE?: string;
42
43
  }
43
44
  export interface SoundingsCollection {