@opengeoweb/shared 12.0.0 → 12.1.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/index.esm.js
CHANGED
|
@@ -70,6 +70,7 @@ var en = {
|
|
|
70
70
|
"shared-filter-all": "All",
|
|
71
71
|
"shared-filter-my-presets": "My presets",
|
|
72
72
|
"shared-filter-system-presets": "System presets",
|
|
73
|
+
"shared-filter-shared-presets": "Shared presets",
|
|
73
74
|
"shared-filter-search": "Search",
|
|
74
75
|
"shared-only": "ONLY"
|
|
75
76
|
};
|
|
@@ -131,6 +132,7 @@ var fi = {
|
|
|
131
132
|
"shared-filter-all": "Kaikki",
|
|
132
133
|
"shared-filter-my-presets": "Omat presetit",
|
|
133
134
|
"shared-filter-system-presets": "Järestelmä presetit",
|
|
135
|
+
"shared-filter-shared-presets": "ei käännetty",
|
|
134
136
|
"shared-filter-search": "Etsi",
|
|
135
137
|
"shared-only": "Pelkästään"
|
|
136
138
|
};
|
|
@@ -192,6 +194,7 @@ var no = {
|
|
|
192
194
|
"shared-filter-all": "Alle",
|
|
193
195
|
"shared-filter-my-presets": "Mine presets",
|
|
194
196
|
"shared-filter-system-presets": "System presets",
|
|
197
|
+
"shared-filter-shared-presets": "Delte arbeidsflater",
|
|
195
198
|
"shared-filter-search": "Søk",
|
|
196
199
|
"shared-only": "BARE"
|
|
197
200
|
};
|
|
@@ -253,6 +256,7 @@ var nl = {
|
|
|
253
256
|
"shared-filter-all": "Alle",
|
|
254
257
|
"shared-filter-my-presets": "Mijn presets",
|
|
255
258
|
"shared-filter-system-presets": "Systeem presets",
|
|
259
|
+
"shared-filter-shared-presets": "Gedeelde presets",
|
|
256
260
|
"shared-filter-search": "Zoeken",
|
|
257
261
|
"shared-only": "ALLEEN"
|
|
258
262
|
};
|
|
@@ -890,7 +894,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
|
|
|
890
894
|
};
|
|
891
895
|
|
|
892
896
|
var _excluded$a = ["defaultSize", "onResizeStop", "hasLayout"],
|
|
893
|
-
_excluded2$2 = ["title", "onClose", "description", "actions", "children", "sx", "resizableDefaultSize", "isResizable", "hasLayout", "shouldRenderInline", "slotProps"];
|
|
897
|
+
_excluded2$2 = ["title", "onClose", "description", "actions", "children", "sx", "resizableDefaultSize", "isResizable", "hasLayout", "shouldRenderInline", "slotProps", "disableRestoreFocus"];
|
|
894
898
|
var PaperComponent = function PaperComponent(_ref) {
|
|
895
899
|
var _ref$defaultSize = _ref.defaultSize,
|
|
896
900
|
defaultSize = _ref$defaultSize === void 0 ? {
|
|
@@ -909,10 +913,9 @@ var PaperComponent = function PaperComponent(_ref) {
|
|
|
909
913
|
maxHeight: maxHeight,
|
|
910
914
|
minHeight: 120,
|
|
911
915
|
minWidth: 280,
|
|
916
|
+
className: "custom-dialog-resize",
|
|
912
917
|
style: {
|
|
913
|
-
display: 'flex'
|
|
914
|
-
alignItems: 'center',
|
|
915
|
-
justifyContent: 'center'
|
|
918
|
+
display: 'flex'
|
|
916
919
|
}
|
|
917
920
|
}, onResize && {
|
|
918
921
|
onResizeStop: function onResizeStop(_event, _direction, elementRef) {
|
|
@@ -935,11 +938,11 @@ var PaperComponent = function PaperComponent(_ref) {
|
|
|
935
938
|
bottomLeft: true,
|
|
936
939
|
topLeft: true
|
|
937
940
|
},
|
|
941
|
+
resizeRatio: [2, 2],
|
|
938
942
|
children: hasLayout ? jsx(Paper, Object.assign({}, props, {
|
|
939
943
|
sx: {
|
|
940
944
|
margin: '0px!important',
|
|
941
945
|
width: '100%!important',
|
|
942
|
-
height: '100%!important',
|
|
943
946
|
maxHeight: '100%!important',
|
|
944
947
|
maxWidth: '100%!important'
|
|
945
948
|
}
|
|
@@ -963,6 +966,8 @@ var CustomDialog = function CustomDialog(_ref2) {
|
|
|
963
966
|
_ref2$shouldRenderInl = _ref2.shouldRenderInline,
|
|
964
967
|
shouldRenderInline = _ref2$shouldRenderInl === void 0 ? false : _ref2$shouldRenderInl,
|
|
965
968
|
slotProps = _ref2.slotProps,
|
|
969
|
+
_ref2$disableRestoreF = _ref2.disableRestoreFocus,
|
|
970
|
+
disableRestoreFocus = _ref2$disableRestoreF === void 0 ? true : _ref2$disableRestoreF,
|
|
966
971
|
other = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
967
972
|
var _React$useState = React.useState(resizableDefaultSize),
|
|
968
973
|
size = _React$useState[0],
|
|
@@ -1003,6 +1008,13 @@ var CustomDialog = function CustomDialog(_ref2) {
|
|
|
1003
1008
|
PaperComponent: PaperComponent
|
|
1004
1009
|
}, shouldRenderInline && {
|
|
1005
1010
|
disablePortal: true
|
|
1011
|
+
}, {
|
|
1012
|
+
sx: Object.assign({}, sx, isResizable && {
|
|
1013
|
+
'.custom-dialog-resize': {
|
|
1014
|
+
height: 'initial'
|
|
1015
|
+
}
|
|
1016
|
+
}),
|
|
1017
|
+
disableRestoreFocus: disableRestoreFocus
|
|
1006
1018
|
}, other, {
|
|
1007
1019
|
children: hasLayout ? jsxs(Fragment, {
|
|
1008
1020
|
children: [jsxs(DialogTitle, {
|
|
@@ -3874,8 +3886,10 @@ var TooltipSelect = function TooltipSelect(_ref) {
|
|
|
3874
3886
|
setTooltipOpen(false);
|
|
3875
3887
|
}, [setTooltipOpen]);
|
|
3876
3888
|
var onFocus = React.useCallback(function () {
|
|
3877
|
-
|
|
3878
|
-
|
|
3889
|
+
if (!selectOpen) {
|
|
3890
|
+
setTooltipOpen(true);
|
|
3891
|
+
}
|
|
3892
|
+
}, [selectOpen, setTooltipOpen]);
|
|
3879
3893
|
var onBlur = React.useCallback(function () {
|
|
3880
3894
|
setTooltipOpen(false);
|
|
3881
3895
|
}, [setTooltipOpen]);
|
|
@@ -4181,6 +4195,7 @@ var SwitchButton = function SwitchButton(_ref) {
|
|
|
4181
4195
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4182
4196
|
return jsx(CustomTooltip, {
|
|
4183
4197
|
title: tooltip,
|
|
4198
|
+
className: "switch-button",
|
|
4184
4199
|
children: jsxs("span", {
|
|
4185
4200
|
role: "button",
|
|
4186
4201
|
children: [jsx(FormLabel, {
|
|
@@ -4765,9 +4780,13 @@ var FilterList = function FilterList(_ref) {
|
|
|
4765
4780
|
t = _useSharedTranslation.t;
|
|
4766
4781
|
return jsxs(Stack, {
|
|
4767
4782
|
direction: "row",
|
|
4768
|
-
spacing: 1,
|
|
4769
4783
|
"data-testid": "filterList",
|
|
4770
4784
|
className: "filter-list",
|
|
4785
|
+
flexWrap: "wrap",
|
|
4786
|
+
sx: {
|
|
4787
|
+
gap: 1,
|
|
4788
|
+
rowGap: 1
|
|
4789
|
+
},
|
|
4771
4790
|
children: [jsx(FilterChip, {
|
|
4772
4791
|
id: "all",
|
|
4773
4792
|
label: t('shared-filter-all'),
|
|
@@ -5050,7 +5069,12 @@ var getWarningMessage = function getWarningMessage(error) {
|
|
|
5050
5069
|
if (isAxiosError(error)) {
|
|
5051
5070
|
return getAxiosWarningMessage(error);
|
|
5052
5071
|
}
|
|
5053
|
-
|
|
5072
|
+
try {
|
|
5073
|
+
var message = JSON.parse(error.message);
|
|
5074
|
+
return message.WarningMessage || '';
|
|
5075
|
+
} catch (_unused) {
|
|
5076
|
+
return '';
|
|
5077
|
+
}
|
|
5054
5078
|
};
|
|
5055
5079
|
|
|
5056
5080
|
/* *
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.1.1",
|
|
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,25 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"@mui/x-date-pickers": "7.27.1",
|
|
16
|
-
"@reduxjs/toolkit": "^1.9.7",
|
|
17
|
-
"@sentry/react": "^8.34.0",
|
|
18
|
-
"@storybook/react": "8.4.2",
|
|
19
|
-
"@testing-library/react": "16.0.1",
|
|
20
|
-
"@testing-library/user-event": "14.5.2",
|
|
11
|
+
"@opengeoweb/theme": "12.1.1",
|
|
12
|
+
"react-draggable": "^4.4.6",
|
|
13
|
+
"re-resizable": "^6.9.11",
|
|
14
|
+
"lodash": "^4.17.21",
|
|
21
15
|
"axios": "^1.7.7",
|
|
22
16
|
"date-fns": "^4.1.0",
|
|
17
|
+
"@reduxjs/toolkit": "^1.9.7",
|
|
18
|
+
"react-i18next": "^15.1.1",
|
|
23
19
|
"i18next": "^23.11.5",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"react
|
|
29
|
-
"react
|
|
20
|
+
"@sentry/react": "^8.34.0",
|
|
21
|
+
"@mui/material": "^6.1.1"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "18",
|
|
25
|
+
"@emotion/react": "*",
|
|
26
|
+
"@emotion/styled": "*"
|
|
30
27
|
},
|
|
31
28
|
"module": "./index.esm.js",
|
|
32
29
|
"type": "module",
|
|
@@ -10,7 +10,10 @@ export default _default;
|
|
|
10
10
|
type Story = StoryObj<typeof CustomDialog>;
|
|
11
11
|
export declare const CustomDialogLight: Story;
|
|
12
12
|
export declare const CustomDialogDark: Story;
|
|
13
|
+
export declare const CustomDialogLargeContent: Story;
|
|
14
|
+
export declare const CustomDialogLargeContentResizable: Story;
|
|
13
15
|
export declare const CustomDialogResizable: Story;
|
|
14
16
|
export declare const CustomDialogResizableWithInitialSize: Story;
|
|
15
17
|
export declare const CustomDialogRenderInline: Story;
|
|
16
18
|
export declare const CustomDialogResizableNoLayout: Story;
|
|
19
|
+
export declare const CustomDialogWithAutofocus: Story;
|