@opengeoweb/shared 12.11.0 → 12.12.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,
|
|
@@ -4925,11 +4927,11 @@ var FilterChip = function FilterChip(_ref) {
|
|
|
4925
4927
|
size = _ref$size === void 0 ? 'small' : _ref$size;
|
|
4926
4928
|
var theme = useTheme();
|
|
4927
4929
|
var chipRef = useRef(null);
|
|
4928
|
-
var clickHandler = function clickHandler() {
|
|
4929
|
-
return onClick ? onClick(chipRef.current) : handleClick(id, isSelected);
|
|
4930
|
+
var clickHandler = function clickHandler(event) {
|
|
4931
|
+
return onClick ? onClick(chipRef.current, event) : handleClick(id, isSelected);
|
|
4930
4932
|
};
|
|
4931
|
-
var clickIconHandler = function clickIconHandler() {
|
|
4932
|
-
return onClickIcon == null ? void 0 : onClickIcon(chipRef.current);
|
|
4933
|
+
var clickIconHandler = function clickIconHandler(event) {
|
|
4934
|
+
return onClickIcon == null ? void 0 : onClickIcon(chipRef.current, event);
|
|
4933
4935
|
};
|
|
4934
4936
|
return jsx(Chip, {
|
|
4935
4937
|
ref: chipRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.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
|
+
"@opengeoweb/theme": "12.12.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>;
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -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 {
|