@opengeoweb/shared 11.1.0 → 12.1.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
|
@@ -35,6 +35,7 @@ var en = {
|
|
|
35
35
|
"shared-toggle-timeslider": "Toggle hide/show time slider",
|
|
36
36
|
"shared-timeslider-scale": "Change time slider scale (visible timespan)",
|
|
37
37
|
"shared-expand-timeslider-scale": "Expand/shrink time slider scale (visible timespan)",
|
|
38
|
+
"shared-toggle-layerinformation": "Toggle hide/show layer information",
|
|
38
39
|
"shared-mouseover-selected-time": "Mouseover to change selected time",
|
|
39
40
|
"shared-mouseover-on-off": "Mouseover switch on/off",
|
|
40
41
|
"shared-change-timestep-or-speed": "Change time step or animation speed",
|
|
@@ -69,6 +70,7 @@ var en = {
|
|
|
69
70
|
"shared-filter-all": "All",
|
|
70
71
|
"shared-filter-my-presets": "My presets",
|
|
71
72
|
"shared-filter-system-presets": "System presets",
|
|
73
|
+
"shared-filter-shared-presets": "Shared presets",
|
|
72
74
|
"shared-filter-search": "Search",
|
|
73
75
|
"shared-only": "ONLY"
|
|
74
76
|
};
|
|
@@ -95,6 +97,7 @@ var fi = {
|
|
|
95
97
|
"shared-toggle-timeslider": "Kytke TimeSlider näkyville/pois näkyvistä",
|
|
96
98
|
"shared-timeslider-scale": "Muuta TimeSliderin näkyvää aikaväliä",
|
|
97
99
|
"shared-expand-timeslider-scale": "Laajenna/kutista TimeSliderin mittakaavaa (näkyvää aikaväliä)",
|
|
100
|
+
"shared-toggle-layerinformation": "Kytke karttatasojen pikanäyttö näkyville/pois näkyvistä",
|
|
98
101
|
"shared-mouseover-selected-time": "Osoita ja liikuta hiirtä muuttaaksesi valittua aikaa",
|
|
99
102
|
"shared-mouseover-on-off": "Kytke hiiren vaikutus TimeSlideriin päälle/pois päältä",
|
|
100
103
|
"shared-change-timestep-or-speed": "Muuta aika-askelta tai animaation nopeutta",
|
|
@@ -129,6 +132,7 @@ var fi = {
|
|
|
129
132
|
"shared-filter-all": "Kaikki",
|
|
130
133
|
"shared-filter-my-presets": "Omat presetit",
|
|
131
134
|
"shared-filter-system-presets": "Järestelmä presetit",
|
|
135
|
+
"shared-filter-shared-presets": "ei käännetty",
|
|
132
136
|
"shared-filter-search": "Etsi",
|
|
133
137
|
"shared-only": "Pelkästään"
|
|
134
138
|
};
|
|
@@ -155,6 +159,7 @@ var no = {
|
|
|
155
159
|
"shared-toggle-timeslider": "Vis/skjul tidslinje",
|
|
156
160
|
"shared-timeslider-scale": "Endre tidsseriens skala (synlig tidsperiode)",
|
|
157
161
|
"shared-expand-timeslider-scale": "Utvid/krymp tidsseriens skala (synlig tidsperiode)",
|
|
162
|
+
"shared-toggle-layerinformation": "Vis/skjul laginformasjon",
|
|
158
163
|
"shared-mouseover-selected-time": "Mouseover for å endre valgt tid",
|
|
159
164
|
"shared-mouseover-on-off": "Mouseover av/på",
|
|
160
165
|
"shared-change-timestep-or-speed": "Endre tidssteg eller animasjonsfart",
|
|
@@ -189,6 +194,7 @@ var no = {
|
|
|
189
194
|
"shared-filter-all": "Alle",
|
|
190
195
|
"shared-filter-my-presets": "Mine presets",
|
|
191
196
|
"shared-filter-system-presets": "System presets",
|
|
197
|
+
"shared-filter-shared-presets": "Delte arbeidsflater",
|
|
192
198
|
"shared-filter-search": "Søk",
|
|
193
199
|
"shared-only": "BARE"
|
|
194
200
|
};
|
|
@@ -215,6 +221,7 @@ var nl = {
|
|
|
215
221
|
"shared-toggle-timeslider": "Timeslider verbergen/tonen",
|
|
216
222
|
"shared-timeslider-scale": "Timeslider zichtbare periode wijzigen",
|
|
217
223
|
"shared-expand-timeslider-scale": "Timeslider zichtbare periode vergroten/verkleinen",
|
|
224
|
+
"shared-toggle-layerinformation": "Laag informatie verbergen/tonen",
|
|
218
225
|
"shared-mouseover-selected-time": "Mouseover om de geselecteerde tijd te wijzigen",
|
|
219
226
|
"shared-mouseover-on-off": "Mouseover aan / uit zetten",
|
|
220
227
|
"shared-change-timestep-or-speed": "Wijzig tijdsinterval of animatiesnelheid",
|
|
@@ -249,6 +256,7 @@ var nl = {
|
|
|
249
256
|
"shared-filter-all": "Alle",
|
|
250
257
|
"shared-filter-my-presets": "Mijn presets",
|
|
251
258
|
"shared-filter-system-presets": "Systeem presets",
|
|
259
|
+
"shared-filter-shared-presets": "Gedeelde presets",
|
|
252
260
|
"shared-filter-search": "Zoeken",
|
|
253
261
|
"shared-only": "ALLEEN"
|
|
254
262
|
};
|
|
@@ -886,7 +894,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
|
|
|
886
894
|
};
|
|
887
895
|
|
|
888
896
|
var _excluded$a = ["defaultSize", "onResizeStop", "hasLayout"],
|
|
889
|
-
_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"];
|
|
890
898
|
var PaperComponent = function PaperComponent(_ref) {
|
|
891
899
|
var _ref$defaultSize = _ref.defaultSize,
|
|
892
900
|
defaultSize = _ref$defaultSize === void 0 ? {
|
|
@@ -905,10 +913,9 @@ var PaperComponent = function PaperComponent(_ref) {
|
|
|
905
913
|
maxHeight: maxHeight,
|
|
906
914
|
minHeight: 120,
|
|
907
915
|
minWidth: 280,
|
|
916
|
+
className: "custom-dialog-resize",
|
|
908
917
|
style: {
|
|
909
|
-
display: 'flex'
|
|
910
|
-
alignItems: 'center',
|
|
911
|
-
justifyContent: 'center'
|
|
918
|
+
display: 'flex'
|
|
912
919
|
}
|
|
913
920
|
}, onResize && {
|
|
914
921
|
onResizeStop: function onResizeStop(_event, _direction, elementRef) {
|
|
@@ -931,11 +938,11 @@ var PaperComponent = function PaperComponent(_ref) {
|
|
|
931
938
|
bottomLeft: true,
|
|
932
939
|
topLeft: true
|
|
933
940
|
},
|
|
941
|
+
resizeRatio: [2, 2],
|
|
934
942
|
children: hasLayout ? jsx(Paper, Object.assign({}, props, {
|
|
935
943
|
sx: {
|
|
936
944
|
margin: '0px!important',
|
|
937
945
|
width: '100%!important',
|
|
938
|
-
height: '100%!important',
|
|
939
946
|
maxHeight: '100%!important',
|
|
940
947
|
maxWidth: '100%!important'
|
|
941
948
|
}
|
|
@@ -959,6 +966,8 @@ var CustomDialog = function CustomDialog(_ref2) {
|
|
|
959
966
|
_ref2$shouldRenderInl = _ref2.shouldRenderInline,
|
|
960
967
|
shouldRenderInline = _ref2$shouldRenderInl === void 0 ? false : _ref2$shouldRenderInl,
|
|
961
968
|
slotProps = _ref2.slotProps,
|
|
969
|
+
_ref2$disableRestoreF = _ref2.disableRestoreFocus,
|
|
970
|
+
disableRestoreFocus = _ref2$disableRestoreF === void 0 ? true : _ref2$disableRestoreF,
|
|
962
971
|
other = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
963
972
|
var _React$useState = React.useState(resizableDefaultSize),
|
|
964
973
|
size = _React$useState[0],
|
|
@@ -999,6 +1008,13 @@ var CustomDialog = function CustomDialog(_ref2) {
|
|
|
999
1008
|
PaperComponent: PaperComponent
|
|
1000
1009
|
}, shouldRenderInline && {
|
|
1001
1010
|
disablePortal: true
|
|
1011
|
+
}, {
|
|
1012
|
+
sx: Object.assign({}, sx, isResizable && {
|
|
1013
|
+
'.custom-dialog-resize': {
|
|
1014
|
+
height: 'initial'
|
|
1015
|
+
}
|
|
1016
|
+
}),
|
|
1017
|
+
disableRestoreFocus: disableRestoreFocus
|
|
1002
1018
|
}, other, {
|
|
1003
1019
|
children: hasLayout ? jsxs(Fragment, {
|
|
1004
1020
|
children: [jsxs(DialogTitle, {
|
|
@@ -2974,6 +2990,12 @@ var ShortcutList = function ShortcutList(_ref) {
|
|
|
2974
2990
|
children: jsx(ArrowLeft, {})
|
|
2975
2991
|
})]
|
|
2976
2992
|
})
|
|
2993
|
+
}, {
|
|
2994
|
+
titleKey: 'shared-toggle-layerinformation',
|
|
2995
|
+
description: jsx(ShortCutSegment, {
|
|
2996
|
+
type: "icon",
|
|
2997
|
+
children: "D"
|
|
2998
|
+
})
|
|
2977
2999
|
}, {
|
|
2978
3000
|
titleKey: 'shared-change-layer-values-scrolling',
|
|
2979
3001
|
description: jsxs(Fragment, {
|
|
@@ -3864,8 +3886,10 @@ var TooltipSelect = function TooltipSelect(_ref) {
|
|
|
3864
3886
|
setTooltipOpen(false);
|
|
3865
3887
|
}, [setTooltipOpen]);
|
|
3866
3888
|
var onFocus = React.useCallback(function () {
|
|
3867
|
-
|
|
3868
|
-
|
|
3889
|
+
if (!selectOpen) {
|
|
3890
|
+
setTooltipOpen(true);
|
|
3891
|
+
}
|
|
3892
|
+
}, [selectOpen, setTooltipOpen]);
|
|
3869
3893
|
var onBlur = React.useCallback(function () {
|
|
3870
3894
|
setTooltipOpen(false);
|
|
3871
3895
|
}, [setTooltipOpen]);
|
|
@@ -4171,6 +4195,7 @@ var SwitchButton = function SwitchButton(_ref) {
|
|
|
4171
4195
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4172
4196
|
return jsx(CustomTooltip, {
|
|
4173
4197
|
title: tooltip,
|
|
4198
|
+
className: "switch-button",
|
|
4174
4199
|
children: jsxs("span", {
|
|
4175
4200
|
role: "button",
|
|
4176
4201
|
children: [jsx(FormLabel, {
|
|
@@ -4755,9 +4780,13 @@ var FilterList = function FilterList(_ref) {
|
|
|
4755
4780
|
t = _useSharedTranslation.t;
|
|
4756
4781
|
return jsxs(Stack, {
|
|
4757
4782
|
direction: "row",
|
|
4758
|
-
spacing: 1,
|
|
4759
4783
|
"data-testid": "filterList",
|
|
4760
4784
|
className: "filter-list",
|
|
4785
|
+
flexWrap: "wrap",
|
|
4786
|
+
sx: {
|
|
4787
|
+
gap: 1,
|
|
4788
|
+
rowGap: 1
|
|
4789
|
+
},
|
|
4761
4790
|
children: [jsx(FilterChip, {
|
|
4762
4791
|
id: "all",
|
|
4763
4792
|
label: t('shared-filter-all'),
|
|
@@ -5040,7 +5069,12 @@ var getWarningMessage = function getWarningMessage(error) {
|
|
|
5040
5069
|
if (isAxiosError(error)) {
|
|
5041
5070
|
return getAxiosWarningMessage(error);
|
|
5042
5071
|
}
|
|
5043
|
-
|
|
5072
|
+
try {
|
|
5073
|
+
var message = JSON.parse(error.message);
|
|
5074
|
+
return message.WarningMessage || '';
|
|
5075
|
+
} catch (_unused) {
|
|
5076
|
+
return '';
|
|
5077
|
+
}
|
|
5044
5078
|
};
|
|
5045
5079
|
|
|
5046
5080
|
/* *
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.1.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": "
|
|
11
|
+
"@opengeoweb/theme": "12.1.0",
|
|
12
12
|
"react-draggable": "^4.4.6",
|
|
13
13
|
"re-resizable": "^6.9.11",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
@@ -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;
|