@opengeoweb/shared 9.34.0 → 9.35.1-spike-oltanstack.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 +54 -1
- package/package.json +1 -1
- package/src/lib/components/AlertBanner/AlertBanner.stories.d.ts +8 -13
- package/src/lib/components/AppHeader/AppHeader.stories.d.ts +2 -2
- package/src/lib/components/AppLayout/AppLayout.stories.d.ts +4 -1
- package/src/lib/components/Avatar/Avatar.d.ts +1 -1
- package/src/lib/components/Avatar/Avatar.stories.d.ts +8 -25
- package/src/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +8 -2
- package/src/lib/components/Filter/FilterListItem.stories.d.ts +8 -2
- package/src/lib/components/SearchHighlight/SearchHighlight.d.ts +1 -1
- package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +8 -13
- package/src/lib/components/StatusTag/StatusTag.d.ts +8 -0
- package/src/lib/components/StatusTag/StatusTag.stories.d.ts +8 -25
- package/src/lib/components/Storybook/StorybookDocsWrapper.d.ts +7 -0
- package/src/lib/components/Storybook/index.d.ts +1 -0
- package/src/lib/components/ToolContainer/ToolContainer.stories.d.ts +1 -0
- package/src/lib/components/ToolContainer/ToolContainerDraggable.stories.d.ts +8 -2
- package/src/lib/components/ToolContainer/ToolHeader.stories.d.ts +1 -0
- package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +10 -13
- package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +1 -0
- package/src/lib/components/UserMenu/UserMenu.stories.d.ts +4 -1
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.d.ts +2 -0
- package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.spec.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -53,6 +53,7 @@ var en = {
|
|
|
53
53
|
"shared-shortcut-home": "Home",
|
|
54
54
|
"shared-shortcut-mouse-scroll": "+ Mouse scroll",
|
|
55
55
|
"shared-shortcut-or": "or",
|
|
56
|
+
"shared-shortcut-toggle-workspace-time-scroll": "Toggle workspace time scroll ON and OFF",
|
|
56
57
|
"shared-sentry-recording": "Sentry Recording",
|
|
57
58
|
"shared-sentry-information": "For monitoring performance and errors, GeoWeb is logging usage information. In this process, no sensitive user information will leave the browser.",
|
|
58
59
|
"shared-sentry-enable-message": "By enabling recording I understand that the recording related data will be send to Sentry´s servers for processing.",
|
|
@@ -111,6 +112,7 @@ var fi = {
|
|
|
111
112
|
"shared-shortcut-home": "Koti",
|
|
112
113
|
"shared-shortcut-mouse-scroll": "+ hiiren rulla",
|
|
113
114
|
"shared-shortcut-or": "tai",
|
|
115
|
+
"shared-shortcut-toggle-workspace-time-scroll": "Aseta työtilan ajan scrollaus päälle tai pois päältä",
|
|
114
116
|
"shared-sentry-recording": "Sentry Tallennus",
|
|
115
117
|
"shared-sentry-information": "Geoweb tallentaa tietoja sovelluksen käytöstä monitoroidakseen suorituskykyä, sekä virhetilanteita. Arkaluonteista dataa ei kerätä tai lähetetä.",
|
|
116
118
|
"shared-sentry-enable-message": "Ymmärrän, että laittamalla tallennuksen päälle tallennukseen liittyvää dataa lähetetään Sentryn palvelimille.",
|
|
@@ -169,6 +171,7 @@ var no = {
|
|
|
169
171
|
"shared-shortcut-home": "Hjem",
|
|
170
172
|
"shared-shortcut-mouse-scroll": "+ skroll",
|
|
171
173
|
"shared-shortcut-or": "eller",
|
|
174
|
+
"shared-shortcut-toggle-workspace-time-scroll": "ikke oversatt",
|
|
172
175
|
"shared-sentry-recording": "Skjermopptak av Sentry",
|
|
173
176
|
"shared-sentry-information": "GeoWeb tar opp brukerinformasjon for å monitorere ytelse og feilmeldinger. Underveis vil ingen sensitiv brukerinformasjon forlate nettleser.",
|
|
174
177
|
"shared-sentry-enable-message": "Ved å bruke skjermopptak forstår jeg at opptaksdata vil bli sendt til Sentry for analysering",
|
|
@@ -227,6 +230,7 @@ var nl = {
|
|
|
227
230
|
"shared-shortcut-home": "Home",
|
|
228
231
|
"shared-shortcut-mouse-scroll": "+ Scroll",
|
|
229
232
|
"shared-shortcut-or": "of",
|
|
233
|
+
"shared-shortcut-toggle-workspace-time-scroll": "niet vertaald",
|
|
230
234
|
"shared-sentry-recording": "Sentry Opname",
|
|
231
235
|
"shared-sentry-information": "Om performance en fouten te monitoren, registreert GeoWeb gebruiksinformatie. Tijdens dit proces verlaat geen enkele gevoelige gebruikersinformatie de browser.",
|
|
232
236
|
"shared-sentry-enable-message": "Door opname te starten, ga ik akkoord dat de opnamegerelateerde gegevens ter verwerking naar de servers van Sentry worden verzonden.",
|
|
@@ -1198,6 +1202,45 @@ var useDebounce = function useDebounce(value, timeout) {
|
|
|
1198
1202
|
return state;
|
|
1199
1203
|
};
|
|
1200
1204
|
|
|
1205
|
+
/* *
|
|
1206
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1207
|
+
* you may not use this file except in compliance with the License.
|
|
1208
|
+
* You may obtain a copy of the License at
|
|
1209
|
+
*
|
|
1210
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1211
|
+
*
|
|
1212
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1213
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1214
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1215
|
+
* See the License for the specific language governing permissions and
|
|
1216
|
+
* limitations under the License.
|
|
1217
|
+
*
|
|
1218
|
+
* Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1219
|
+
* Copyright 2021 - Finnish Meteorological Institute (FMI)
|
|
1220
|
+
* Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
|
|
1221
|
+
* */
|
|
1222
|
+
var useWheelStopPropagation = function useWheelStopPropagation() {
|
|
1223
|
+
var ref = React__default.useRef(null);
|
|
1224
|
+
React__default.useEffect(function () {
|
|
1225
|
+
var element = ref.current;
|
|
1226
|
+
if (!element) {
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
var handleWheel = function handleWheel(event) {
|
|
1230
|
+
event.stopPropagation();
|
|
1231
|
+
};
|
|
1232
|
+
element.addEventListener('wheel', handleWheel, {
|
|
1233
|
+
passive: false
|
|
1234
|
+
});
|
|
1235
|
+
// eslint-disable-next-line consistent-return
|
|
1236
|
+
return function () {
|
|
1237
|
+
element.removeEventListener('wheel', handleWheel);
|
|
1238
|
+
};
|
|
1239
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1240
|
+
}, [ref.current]);
|
|
1241
|
+
return ref;
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1201
1244
|
var ConfirmationServiceContext = /*#__PURE__*/React.createContext(Promise.reject);
|
|
1202
1245
|
var useConfirmationDialog = function useConfirmationDialog() {
|
|
1203
1246
|
return React.useContext(ConfirmationServiceContext);
|
|
@@ -2911,6 +2954,16 @@ var ShortcutList = function ShortcutList(_ref) {
|
|
|
2911
2954
|
children: "l"
|
|
2912
2955
|
})]
|
|
2913
2956
|
})
|
|
2957
|
+
}, {
|
|
2958
|
+
titleKey: 'shared-shortcut-toggle-workspace-time-scroll',
|
|
2959
|
+
description: jsx(ShortCutSegment, {
|
|
2960
|
+
type: "icon",
|
|
2961
|
+
children: "S"
|
|
2962
|
+
}),
|
|
2963
|
+
descriptionMac: jsx(ShortCutSegment, {
|
|
2964
|
+
type: "icon",
|
|
2965
|
+
children: "S"
|
|
2966
|
+
})
|
|
2914
2967
|
}];
|
|
2915
2968
|
return jsx(List, {
|
|
2916
2969
|
"data-testid": "list-" + platform,
|
|
@@ -5890,4 +5943,4 @@ var RenderCounter = /*#__PURE__*/function () {
|
|
|
5890
5943
|
}();
|
|
5891
5944
|
var renderCounter = new RenderCounter();
|
|
5892
5945
|
|
|
5893
|
-
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, FilterOption, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
|
|
5946
|
+
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterLabel, FilterListItem, FilterOption, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, UserMenuItemSentryRecording, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosAuthError, isAxiosError, pollingIntervalTimeout, renderCounter, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, useWheelStopPropagation, withEggs };
|
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const AlertBannersDark: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import AlertBanner from './AlertBanner';
|
|
3
|
+
declare const meta: Meta<typeof AlertBanner>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AlertBanner>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const AlertBannersLight: Story;
|
|
8
|
+
export declare const AlertBannersDark: Story;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const AppHeaderLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
8
|
tags: string[];
|
|
9
9
|
parameters: {
|
|
@@ -13,7 +13,7 @@ export declare const AppHeaderDark: {
|
|
|
13
13
|
}[];
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const AppHeaderDark: {
|
|
17
17
|
(): React.ReactElement;
|
|
18
18
|
tags: string[];
|
|
19
19
|
parameters: {
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const AvatarDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
tags: string[];
|
|
19
|
-
parameters: {
|
|
20
|
-
zeplinLink: {
|
|
21
|
-
name: string;
|
|
22
|
-
link: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Avatar from './Avatar';
|
|
3
|
+
declare const meta: Meta<typeof Avatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Avatar>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const AvatarLight: Story;
|
|
8
|
+
export declare const AvatarDark: Story;
|
|
@@ -3,8 +3,14 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const ConfirmationDialogCustom:
|
|
7
|
-
|
|
6
|
+
export declare const ConfirmationDialogCustom: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const ConfirmationDialogLoading: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
8
14
|
export declare const ConfirmationDialogLight: {
|
|
9
15
|
(): React.ReactElement;
|
|
10
16
|
tags: string[];
|
|
@@ -3,5 +3,11 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const FilterListItemLight:
|
|
7
|
-
|
|
6
|
+
export declare const FilterListItemLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const FilterListItemDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
export declare const SearchHighlightDarkTheme: {
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import SearchHighlight from './SearchHighlight';
|
|
3
|
+
declare const meta: Meta<typeof SearchHighlight>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SearchHighlight>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const SearchHighlightLightTheme: Story;
|
|
8
|
+
export declare const SearchHighlightDarkTheme: Story;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
+
export declare const bgColors: {
|
|
4
|
+
green: string;
|
|
5
|
+
grey: string;
|
|
6
|
+
purple: string;
|
|
7
|
+
red: string;
|
|
8
|
+
yellow: string;
|
|
9
|
+
blue: string;
|
|
10
|
+
};
|
|
3
11
|
interface StatusTagProps extends BoxProps {
|
|
4
12
|
content: string;
|
|
5
13
|
color: string;
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parameters: {
|
|
10
|
-
zeplinLink: {
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const StatusTagsDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
tags: string[];
|
|
19
|
-
parameters: {
|
|
20
|
-
zeplinLink: {
|
|
21
|
-
name: string;
|
|
22
|
-
link: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
2
|
+
import StatusTag from './StatusTag';
|
|
3
|
+
declare const meta: Meta<typeof StatusTag>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof StatusTag>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const StatusTagsLight: Story;
|
|
8
|
+
export declare const StatusTagsDark: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StorybookDocsWrapper';
|
|
@@ -3,5 +3,11 @@ declare const _default: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const ThemeLight:
|
|
7
|
-
|
|
6
|
+
export declare const ThemeLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const ThemeDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const TooltipSelectDark:
|
|
11
|
-
(): React.ReactElement;
|
|
12
|
-
tags: string[];
|
|
13
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TooltipSelect } from './TooltipSelect';
|
|
3
|
+
declare const meta: Meta<typeof TooltipSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TooltipSelect>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const TooltipSelectLightDemo: Story;
|
|
8
|
+
export declare const TooltipSelectDarkDemo: Story;
|
|
9
|
+
export declare const TooltipSelectLight: Story;
|
|
10
|
+
export declare const TooltipSelectDark: Story;
|
|
@@ -4,7 +4,10 @@ declare const _default: {
|
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const ThemeLight: () => React.ReactElement;
|
|
7
|
-
export declare const ThemeDark:
|
|
7
|
+
export declare const ThemeDark: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
8
11
|
export declare const UserMenuLight: {
|
|
9
12
|
(): React.ReactElement;
|
|
10
13
|
tags: string[];
|
package/src/lib/hooks/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export * from './usePrevious/usePrevious';
|
|
|
4
4
|
export * from './useIsMounted/useIsMounted';
|
|
5
5
|
export * from './useMakeSureContainerStaysInsideWindow/useMakeSureContainerStaysInsideWindow';
|
|
6
6
|
export * from './useDebounce/useDebounce';
|
|
7
|
+
export * from './useWheelStopPropagation/useWheelStopPropagation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|