@opengeoweb/shared 15.3.0 → 17.0.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.
Files changed (190) hide show
  1. package/index.esm.js +947 -406
  2. package/package.json +3 -3
  3. package/src/index.d.ts +0 -7
  4. package/src/lib/components/AlertBanner/AlertBanner.d.ts +0 -16
  5. package/src/lib/components/AlertBanner/AlertBanner.spec.d.ts +0 -1
  6. package/src/lib/components/AlertBanner/AlertBanner.stories.d.ts +0 -8
  7. package/src/lib/components/AlertBanner/index.d.ts +0 -1
  8. package/src/lib/components/AlertIcon/AlertIcon.d.ts +0 -8
  9. package/src/lib/components/AlertIcon/index.d.ts +0 -1
  10. package/src/lib/components/AppHeader/AppHeader.d.ts +0 -10
  11. package/src/lib/components/AppHeader/AppHeader.spec.d.ts +0 -1
  12. package/src/lib/components/AppHeader/AppHeader.stories.d.ts +0 -8
  13. package/src/lib/components/AppHeader/index.d.ts +0 -1
  14. package/src/lib/components/AppLayout/AppLayout.d.ts +0 -7
  15. package/src/lib/components/AppLayout/AppLayout.spec.d.ts +0 -1
  16. package/src/lib/components/AppLayout/AppLayout.stories.d.ts +0 -8
  17. package/src/lib/components/AppLayout/index.d.ts +0 -1
  18. package/src/lib/components/Avatar/Avatar.d.ts +0 -8
  19. package/src/lib/components/Avatar/Avatar.stories.d.ts +0 -8
  20. package/src/lib/components/Avatar/index.d.ts +0 -1
  21. package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +0 -71
  22. package/src/lib/components/CanvasComponent/CanvasComponent.spec.d.ts +0 -1
  23. package/src/lib/components/CanvasComponent/CanvasComponent.stories.d.ts +0 -8
  24. package/src/lib/components/CanvasComponent/index.d.ts +0 -1
  25. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.d.ts +0 -12
  26. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.spec.d.ts +0 -1
  27. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.stories.d.ts +0 -9
  28. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -22
  29. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.spec.d.ts +0 -1
  30. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -21
  31. package/src/lib/components/ConfirmationDialog/ConfirmationService.d.ts +0 -18
  32. package/src/lib/components/ConfirmationDialog/ConfirmationService.spec.d.ts +0 -1
  33. package/src/lib/components/ConfirmationDialog/index.d.ts +0 -3
  34. package/src/lib/components/CustomAccordion/CustomAccordion.d.ts +0 -13
  35. package/src/lib/components/CustomAccordion/CustomAccordion.spec.d.ts +0 -1
  36. package/src/lib/components/CustomAccordion/CustomAccordion.stories.d.ts +0 -8
  37. package/src/lib/components/CustomAccordion/index.d.ts +0 -1
  38. package/src/lib/components/CustomDialog/CustomDialog.d.ts +0 -18
  39. package/src/lib/components/CustomDialog/CustomDialog.spec.d.ts +0 -1
  40. package/src/lib/components/CustomDialog/CustomDialog.stories.d.ts +0 -22
  41. package/src/lib/components/CustomDialog/CustomDialogHeader.d.ts +0 -13
  42. package/src/lib/components/CustomDialog/CustomDialogHeader.spec.d.ts +0 -1
  43. package/src/lib/components/CustomDialog/CustomDialogHeader.stories.d.ts +0 -11
  44. package/src/lib/components/CustomDialog/index.d.ts +0 -2
  45. package/src/lib/components/CustomDialog/types.d.ts +0 -1
  46. package/src/lib/components/CustomIconButton/CustomIconButton.d.ts +0 -15
  47. package/src/lib/components/CustomIconButton/CustomIconButton.spec.d.ts +0 -1
  48. package/src/lib/components/CustomIconButton/CustomIconButton.stories.d.ts +0 -8
  49. package/src/lib/components/CustomIconButton/index.d.ts +0 -1
  50. package/src/lib/components/CustomSlider/CustomSlider.d.ts +0 -14
  51. package/src/lib/components/CustomSlider/CustomSlider.spec.d.ts +0 -1
  52. package/src/lib/components/CustomSlider/CustomSlider.stories.d.ts +0 -8
  53. package/src/lib/components/CustomSlider/index.d.ts +0 -1
  54. package/src/lib/components/CustomToggleButton/CustomToggleButton.d.ts +0 -8
  55. package/src/lib/components/CustomToggleButton/CustomToggleButton.spec.d.ts +0 -1
  56. package/src/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +0 -8
  57. package/src/lib/components/CustomToggleButton/index.d.ts +0 -1
  58. package/src/lib/components/CustomTooltip/CustomTooltip.d.ts +0 -5
  59. package/src/lib/components/CustomTooltip/CustomTooltip.spec.d.ts +0 -1
  60. package/src/lib/components/CustomTooltip/index.d.ts +0 -1
  61. package/src/lib/components/DraggableResizable/Draggable.d.ts +0 -16
  62. package/src/lib/components/DraggableResizable/Draggable.spec.d.ts +0 -1
  63. package/src/lib/components/DraggableResizable/Resizable.d.ts +0 -10
  64. package/src/lib/components/DraggableResizable/Resizable.spec.d.ts +0 -1
  65. package/src/lib/components/DraggableResizable/index.d.ts +0 -3
  66. package/src/lib/components/DraggableResizable/types.d.ts +0 -27
  67. package/src/lib/components/ErrorBoundary/ErrorBoundary.d.ts +0 -31
  68. package/src/lib/components/ErrorBoundary/ErrorBoundary.spec.d.ts +0 -1
  69. package/src/lib/components/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -8
  70. package/src/lib/components/ErrorBoundary/index.d.ts +0 -1
  71. package/src/lib/components/Filter/Filter.d.ts +0 -18
  72. package/src/lib/components/Filter/Filter.spec.d.ts +0 -1
  73. package/src/lib/components/Filter/Filter.stories.d.ts +0 -8
  74. package/src/lib/components/Filter/FilterChip.d.ts +0 -14
  75. package/src/lib/components/Filter/FilterChip.spec.d.ts +0 -1
  76. package/src/lib/components/Filter/FilterList.d.ts +0 -19
  77. package/src/lib/components/Filter/FilterList.spec.d.ts +0 -1
  78. package/src/lib/components/Filter/FilterOption.d.ts +0 -12
  79. package/src/lib/components/Filter/FilterToggleButton.d.ts +0 -6
  80. package/src/lib/components/Filter/SearchField.d.ts +0 -8
  81. package/src/lib/components/Filter/SearchField.spec.d.ts +0 -1
  82. package/src/lib/components/Filter/index.d.ts +0 -7
  83. package/src/lib/components/LastUpdateTime/LastUpdateTime.d.ts +0 -14
  84. package/src/lib/components/LastUpdateTime/LastUpdateTime.spec.d.ts +0 -1
  85. package/src/lib/components/LastUpdateTime/LastUpdateTime.stories.d.ts +0 -8
  86. package/src/lib/components/LastUpdateTime/index.d.ts +0 -1
  87. package/src/lib/components/Providers/Providers.d.ts +0 -18
  88. package/src/lib/components/Providers/index.d.ts +0 -1
  89. package/src/lib/components/SearchField/SearchField.d.ts +0 -10
  90. package/src/lib/components/SearchField/SearchField.spec.d.ts +0 -1
  91. package/src/lib/components/SearchField/SearchFieldButtonContainer.d.ts +0 -9
  92. package/src/lib/components/SearchField/SearchFieldButtonContainer.spec.d.ts +0 -1
  93. package/src/lib/components/SearchField/index.d.ts +0 -2
  94. package/src/lib/components/SearchHighlight/SearchHighlight.d.ts +0 -7
  95. package/src/lib/components/SearchHighlight/SearchHighlight.spec.d.ts +0 -1
  96. package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +0 -8
  97. package/src/lib/components/SearchHighlight/index.d.ts +0 -1
  98. package/src/lib/components/StatusTag/StatusTag.d.ts +0 -17
  99. package/src/lib/components/StatusTag/StatusTag.spec.d.ts +0 -1
  100. package/src/lib/components/StatusTag/StatusTag.stories.d.ts +0 -8
  101. package/src/lib/components/StatusTag/index.d.ts +0 -1
  102. package/src/lib/components/Storybook/StorybookDocsWrapper.d.ts +0 -6
  103. package/src/lib/components/Storybook/index.d.ts +0 -1
  104. package/src/lib/components/SwitchButton/SwitchButton.d.ts +0 -8
  105. package/src/lib/components/SwitchButton/SwitchButton.spec.d.ts +0 -1
  106. package/src/lib/components/SwitchButton/index.d.ts +0 -1
  107. package/src/lib/components/ToggleMenu/ToggleMenu.d.ts +0 -30
  108. package/src/lib/components/ToggleMenu/ToggleMenu.spec.d.ts +0 -1
  109. package/src/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +0 -8
  110. package/src/lib/components/ToggleMenu/index.d.ts +0 -1
  111. package/src/lib/components/ToolContainer/ToolContainer.d.ts +0 -5
  112. package/src/lib/components/ToolContainer/ToolContainer.spec.d.ts +0 -1
  113. package/src/lib/components/ToolContainer/ToolContainer.stories.d.ts +0 -16
  114. package/src/lib/components/ToolContainer/ToolContainerDraggable.d.ts +0 -39
  115. package/src/lib/components/ToolContainer/ToolContainerDraggable.spec.d.ts +0 -1
  116. package/src/lib/components/ToolContainer/ToolContainerDraggable.stories.d.ts +0 -13
  117. package/src/lib/components/ToolContainer/ToolContainerSnapShots.stories.d.ts +0 -13
  118. package/src/lib/components/ToolContainer/ToolFooter.d.ts +0 -3
  119. package/src/lib/components/ToolContainer/ToolFooter.spec.d.ts +0 -1
  120. package/src/lib/components/ToolContainer/ToolHeader.d.ts +0 -4
  121. package/src/lib/components/ToolContainer/ToolHeader.spec.d.ts +0 -1
  122. package/src/lib/components/ToolContainer/ToolHeader.stories.d.ts +0 -8
  123. package/src/lib/components/ToolContainer/index.d.ts +0 -7
  124. package/src/lib/components/ToolContainer/types.d.ts +0 -19
  125. package/src/lib/components/ToolContainer/useHandleSizeFromOutsideComponent.d.ts +0 -15
  126. package/src/lib/components/ToolContainer/useHandleSizeFromOutsideComponent.spec.d.ts +0 -1
  127. package/src/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -23
  128. package/src/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +0 -1
  129. package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +0 -10
  130. package/src/lib/components/TooltipSelect/index.d.ts +0 -1
  131. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.d.ts +0 -3
  132. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.spec.d.ts +0 -1
  133. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +0 -10
  134. package/src/lib/components/UserMenu/CheatSheet/ShortcutList.d.ts +0 -6
  135. package/src/lib/components/UserMenu/CheatSheet/ShortcutList.spec.d.ts +0 -1
  136. package/src/lib/components/UserMenu/CheatSheet/ShortcutSegment.d.ts +0 -7
  137. package/src/lib/components/UserMenu/CheatSheet/ShortcutSegment.spec.d.ts +0 -1
  138. package/src/lib/components/UserMenu/UserMenu.d.ts +0 -11
  139. package/src/lib/components/UserMenu/UserMenu.spec.d.ts +0 -1
  140. package/src/lib/components/UserMenu/UserMenu.stories.d.ts +0 -10
  141. package/src/lib/components/UserMenu/UserMenuItemCheatSheet.d.ts +0 -3
  142. package/src/lib/components/UserMenu/UserMenuItemCheatSheet.spec.d.ts +0 -1
  143. package/src/lib/components/UserMenu/UserMenuItemTheme.d.ts +0 -6
  144. package/src/lib/components/UserMenu/UserMenuItemTheme.spec.d.ts +0 -1
  145. package/src/lib/components/UserMenu/index.d.ts +0 -5
  146. package/src/lib/components/UserMenu/useUserMenu.d.ts +0 -7
  147. package/src/lib/components/UserMenu/useUserMenu.spec.d.ts +0 -1
  148. package/src/lib/components/UserMenu/utils.d.ts +0 -1
  149. package/src/lib/components/index.d.ts +0 -26
  150. package/src/lib/hooks/index.d.ts +0 -9
  151. package/src/lib/hooks/useDebounce/useDebounce.d.ts +0 -1
  152. package/src/lib/hooks/useDebounce/useDebounce.spec.d.ts +0 -1
  153. package/src/lib/hooks/useIsMounted/useIsMounted.d.ts +0 -4
  154. package/src/lib/hooks/useIsMounted/useIsMounted.spec.d.ts +0 -1
  155. package/src/lib/hooks/useMakeSureContainerStaysInsideWindow/useMakeSureContainerStaysInsideWindow.d.ts +0 -4
  156. package/src/lib/hooks/useMakeSureContainerStaysInsideWindow/useMakeSureContainerStaysInsideWindow.spec.d.ts +0 -1
  157. package/src/lib/hooks/usePoller/usePoller.d.ts +0 -3
  158. package/src/lib/hooks/usePoller/usePoller.spec.d.ts +0 -1
  159. package/src/lib/hooks/usePoller/usePoller.stories.d.ts +0 -6
  160. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.d.ts +0 -2
  161. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.spec.d.ts +0 -1
  162. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.stories.d.ts +0 -6
  163. package/src/lib/hooks/usePrevious/usePrevious.d.ts +0 -1
  164. package/src/lib/hooks/usePrevious/usePrevious.spec.d.ts +0 -1
  165. package/src/lib/hooks/usePrevious/usePrevious.stories.d.ts +0 -6
  166. package/src/lib/hooks/useResizeObserver/useResizeObserver.d.ts +0 -2
  167. package/src/lib/hooks/useResizeObserver/useResizeObserver.spec.d.ts +0 -1
  168. package/src/lib/hooks/useScrollingInIsolation/useScrollingInIsolation.d.ts +0 -11
  169. package/src/lib/hooks/useScrollingInIsolation/useScrollingInIsolation.spec.d.ts +0 -1
  170. package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.d.ts +0 -2
  171. package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.spec.d.ts +0 -1
  172. package/src/lib/types/crss-types.d.ts +0 -26
  173. package/src/lib/types/edr-coverage-types.d.ts +0 -98
  174. package/src/lib/types/index.d.ts +0 -2
  175. package/src/lib/types/types.d.ts +0 -190
  176. package/src/lib/utils/axiosErrorUtils/axiosErrorUtils.d.ts +0 -9
  177. package/src/lib/utils/axiosErrorUtils/axiosErrorUtils.spec.d.ts +0 -1
  178. package/src/lib/utils/axiosErrorUtils/index.d.ts +0 -1
  179. package/src/lib/utils/dateUtils/dateFormats.d.ts +0 -8
  180. package/src/lib/utils/dateUtils/dateUtils.d.ts +0 -372
  181. package/src/lib/utils/dateUtils/dateUtils.spec.d.ts +0 -1
  182. package/src/lib/utils/dateUtils/index.d.ts +0 -2
  183. package/src/lib/utils/i18n.d.ts +0 -14
  184. package/src/lib/utils/i18n.spec.d.ts +0 -1
  185. package/src/lib/utils/index.d.ts +0 -6
  186. package/src/lib/utils/mapProjections.d.ts +0 -79
  187. package/src/lib/utils/renderCounter.d.ts +0 -21
  188. package/src/lib/utils/renderCounter.spec.d.ts +0 -1
  189. package/src/lib/utils/sessionStorage.d.ts +0 -28
  190. package/src/lib/utils/sessionStorage.spec.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "15.3.0",
3
+ "version": "17.0.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": "15.3.0",
11
+ "@opengeoweb/theme": "17.0.0",
12
12
  "react-draggable": "^4.4.6",
13
13
  "re-resizable": "^6.9.11",
14
14
  "lodash": "^4.17.21",
@@ -24,7 +24,7 @@
24
24
  "@emotion/styled": "*"
25
25
  },
26
26
  "devDependencies": {
27
- "eslint-plugin-storybook": "9.0.17"
27
+ "eslint-plugin-storybook": "10.3.3"
28
28
  },
29
29
  "module": "./index.esm.js",
30
30
  "type": "module",
package/src/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import sharedTranslations from '../locales/shared.json';
2
- export * from './lib/components';
3
- export * from './lib/hooks';
4
- export * from './lib/utils';
5
- export * from './lib/types';
6
- export { loadAllTranslations, safelyInitI18nForTestsAndStories, SHARED_NAMESPACE, } from './lib/utils/i18n';
7
- export { sharedTranslations };
@@ -1,16 +0,0 @@
1
- import type { AlertColor } from '@mui/material';
2
- import React from 'react';
3
- interface AlertBannerProps {
4
- title: string;
5
- severity?: AlertColor;
6
- info?: string | React.ReactElement;
7
- dataTestId?: string;
8
- isCompact?: boolean;
9
- shouldClose?: boolean;
10
- actionButtonProps?: {
11
- onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12
- title: string;
13
- };
14
- }
15
- declare const AlertBanner: React.FC<AlertBannerProps>;
16
- export default AlertBanner;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { 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;
@@ -1 +0,0 @@
1
- export { default as AlertBanner } from './AlertBanner';
@@ -1,8 +0,0 @@
1
- import type { AlertColor } from '@mui/material';
2
- import React from 'react';
3
- interface AlertIconProps {
4
- severity?: AlertColor;
5
- dataTestId?: string;
6
- }
7
- declare const AlertIcon: React.FC<AlertIconProps>;
8
- export default AlertIcon;
@@ -1 +0,0 @@
1
- export { default as AlertIcon } from './AlertIcon';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface AppHeaderProps {
3
- menu?: React.ReactNode;
4
- userMenu?: React.ReactNode;
5
- workspaceTopBar?: React.ReactNode;
6
- title?: string;
7
- onClick?: () => void;
8
- }
9
- declare const AppHeader: React.FC<AppHeaderProps>;
10
- export default AppHeader;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react/*';
2
- import { AppHeader } from '.';
3
- declare const meta: Meta<typeof AppHeader>;
4
- export default meta;
5
- type Story = StoryObj<typeof AppHeader>;
6
- export declare const Component: Story;
7
- export declare const AppHeaderLight: Story;
8
- export declare const AppHeaderDark: Story;
@@ -1 +0,0 @@
1
- export { default as AppHeader } from './AppHeader';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface AppLayoutProps {
3
- header?: React.ReactNode;
4
- children?: React.ReactNode;
5
- }
6
- declare const AppLayout: React.FC<AppLayoutProps>;
7
- export default AppLayout;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react/*';
2
- import AppLayout from './AppLayout';
3
- declare const meta: Meta<typeof AppLayout>;
4
- export default meta;
5
- type Story = StoryObj<typeof AppLayout>;
6
- export declare const Component: Story;
7
- export declare const ThemeLight: Story;
8
- export declare const ThemeDark: Story;
@@ -1 +0,0 @@
1
- export { default as AppLayout } from './AppLayout';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface AvatarProps {
3
- children: React.ReactNode;
4
- size?: 'small' | 'large';
5
- author?: boolean;
6
- }
7
- declare const Avatar: React.FC<AvatarProps>;
8
- export default Avatar;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
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;
@@ -1 +0,0 @@
1
- export { default as Avatar } from './Avatar';
@@ -1,71 +0,0 @@
1
- import React, { Component } from 'react';
2
- interface CanvasComponentProps {
3
- onRenderCanvas: (ctx: CanvasRenderingContext2D, width: number, height: number, canvas: HTMLCanvasElement) => void;
4
- onCanvasClick?: (x: number, y: number, width: number, height: number) => void;
5
- onMouseMove?: (x: number, y: number, event: MouseEvent, width: number) => void;
6
- onMouseUp?: (x: number) => void;
7
- onMouseDown?: (x: number, y: number, width: number) => void;
8
- onTouchStart?: (event: TouchEvent, width: number) => void;
9
- onTouchEnd?: () => void;
10
- onTouchMove?: (event: TouchEvent, width: number) => void;
11
- onKeyUp?: (event: KeyboardEvent) => void;
12
- onKeyDown?: (event: KeyboardEvent) => void;
13
- isFocussed?: (isFocussed: boolean) => void;
14
- onWheel?: ({ event, deltaY, deltaX, canvasWidth, mouseX, }: {
15
- event: WheelEvent;
16
- deltaY: number;
17
- deltaX: number;
18
- canvasWidth: number;
19
- mouseX: number;
20
- }) => void;
21
- loop?: boolean;
22
- redrawInterval?: number;
23
- resizeCallback?: (newWidth: number) => void;
24
- children?: React.ReactNode;
25
- }
26
- export declare class CanvasComponent extends Component<CanvasComponentProps> {
27
- canvas: HTMLCanvasElement | null;
28
- ctx: CanvasRenderingContext2D | null;
29
- currentWidth: number;
30
- currentHeight: number;
31
- canvascontaineroutside: React.RefObject<HTMLDivElement> | null;
32
- canvascontainer: React.RefObject<HTMLDivElement> | null;
33
- timer: ReturnType<typeof setTimeout> | null;
34
- redrawTimer: ReturnType<typeof setTimeout> | null;
35
- loopHasStarted: boolean;
36
- mounted: boolean;
37
- static defaultProps: {
38
- onRenderCanvas: () => void;
39
- onCanvasClick: () => void;
40
- onMouseMove: () => void;
41
- onMouseUp: () => void;
42
- onMouseDown: () => void;
43
- onTouchStart: () => void;
44
- onTouchEnd: () => void;
45
- onTouchMove: () => void;
46
- onWheel: () => void;
47
- };
48
- private _isFocussed;
49
- constructor(props: CanvasComponentProps);
50
- componentDidMount(): void;
51
- shouldComponentUpdate(): boolean;
52
- componentWillUnmount(): void;
53
- handleMouseMoveEvent(event: MouseEvent): void;
54
- handleMouseUpEvent(event: MouseEvent): void;
55
- handleMouseDownEvent(event: MouseEvent): void;
56
- handleTouchStartEvent(event: TouchEvent): void;
57
- handleTouchEndEvent(): void;
58
- handleTouchMoveEvent(event: TouchEvent): void;
59
- handleClickEvent(event: MouseEvent): void;
60
- handleWheelEvent(event: WheelEvent): void;
61
- onFocus(): void;
62
- onBlur(): void;
63
- onKeyUp(event: KeyboardEvent): void;
64
- _documentKeyDown(event: KeyboardEvent): void;
65
- _handleWindowResize(): void;
66
- startLoop(): void;
67
- updateCanvas(): void;
68
- resize(): void;
69
- render(): React.ReactElement;
70
- }
71
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react/*';
2
- import { CanvasComponent } from './CanvasComponent';
3
- declare const meta: Meta<typeof CanvasComponent>;
4
- export default meta;
5
- type Story = StoryObj<typeof CanvasComponent>;
6
- export declare const Component: Story;
7
- export declare const DynamicCanvas: Story;
8
- export declare const StaticCanvas: Story;
@@ -1 +0,0 @@
1
- export * from './CanvasComponent';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { DialogAction } from '../CustomDialog/types';
3
- export type ConfirmationAction = 'CANCELLED' | DialogAction;
4
- export interface ConfirmationButtonsProps {
5
- confirmLabel?: string;
6
- cancelLabel?: string;
7
- disableAutoFocus?: boolean;
8
- onSubmit: () => void;
9
- onClose: (reason: ConfirmationAction) => void;
10
- isLoading?: boolean;
11
- }
12
- export declare const ConfirmationButtons: React.FC<ConfirmationButtonsProps>;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { ConfirmationButtons } from './ConfirmationButtons';
3
- declare const meta: Meta<typeof ConfirmationButtons>;
4
- export default meta;
5
- type Story = StoryObj<typeof ConfirmationButtons>;
6
- export declare const Component: Story;
7
- export declare const ComponentDark: Story;
8
- export declare const Loading: Story;
9
- export declare const CustomLabels: Story;
@@ -1,22 +0,0 @@
1
- import type { ModalProps, SxProps, Theme } from '@mui/material';
2
- import React from 'react';
3
- import type { DialogAction } from '../CustomDialog/types';
4
- export interface ConfirmationOptions {
5
- title?: string;
6
- description?: string;
7
- catchOnCancel?: boolean;
8
- confirmLabel?: string;
9
- cancelLabel?: string;
10
- content?: React.ReactNode;
11
- }
12
- export type ConfirmationAction = 'CANCELLED' | DialogAction;
13
- export interface ConfirmationDialogProps extends ConfirmationOptions {
14
- disableAutoFocus?: boolean;
15
- onSubmit: () => void;
16
- onClose: (reason: ConfirmationAction) => void;
17
- isLoading?: boolean;
18
- open: ModalProps['open'];
19
- sx?: SxProps<Theme>;
20
- }
21
- export declare const ConfirmationDialog: React.FC<ConfirmationDialogProps>;
22
- export default ConfirmationDialog;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ConfirmationDialogCustom: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const ConfirmationDialogLoading: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
14
- export declare const ConfirmationDialogLight: {
15
- (): React.ReactElement;
16
- tags: string[];
17
- };
18
- export declare const ConfirmationDialogDark: {
19
- (): React.ReactElement;
20
- tags: string[];
21
- };
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { ConfirmationAction, ConfirmationOptions } from './ConfirmationDialog';
3
- type ConfirmationContext = (options: ConfirmationOptions) => Promise<void>;
4
- export declare const useConfirmationDialog: () => ConfirmationContext;
5
- export declare const useDialogActions: (awaitingPromiseRef: React.MutableRefObject<{
6
- resolve: () => void;
7
- reject: (reason: ConfirmationAction) => void;
8
- }>, defaultOptions?: ConfirmationOptions) => {
9
- openConfirmation: (options: ConfirmationOptions) => Promise<void>;
10
- confirmationState: ConfirmationOptions;
11
- handleSubmit: () => void;
12
- handleClose: (reason: ConfirmationAction) => void;
13
- };
14
- interface ConfirmationServiceProviderProps {
15
- children: React.ReactNode;
16
- }
17
- export declare const ConfirmationServiceProvider: React.FC<ConfirmationServiceProviderProps>;
18
- export {};
@@ -1,3 +0,0 @@
1
- export * from './ConfirmationDialog';
2
- export * from './ConfirmationService';
3
- export { ConfirmationButtons } from './ConfirmationButtons';
@@ -1,13 +0,0 @@
1
- import type { AccordionProps, SxProps, Theme } from '@mui/material';
2
- import React from 'react';
3
- export interface CustomAccordionProps extends Omit<AccordionProps, 'title'> {
4
- title?: string | React.ReactNode;
5
- title2?: string;
6
- expandedElevation?: number;
7
- collapsedElevation?: number;
8
- transitionDuration?: number;
9
- detailsSx?: SxProps<Theme>;
10
- CustomExpandIcon?: React.ElementType;
11
- amountOfItems?: number;
12
- }
13
- export declare const CustomAccordion: React.FC<CustomAccordionProps>;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { CustomAccordion } from './CustomAccordion';
3
- declare const meta: Meta<typeof CustomAccordion>;
4
- export default meta;
5
- type Story = StoryObj<typeof CustomAccordion>;
6
- export declare const Component: Story;
7
- export declare const CustomAccordionLight: Story;
8
- export declare const CustomAccordionDark: Story;
@@ -1 +0,0 @@
1
- export * from './CustomAccordion';
@@ -1,18 +0,0 @@
1
- import type { DialogProps } from '@mui/material';
2
- import React from 'react';
3
- import type { Size } from '../DraggableResizable';
4
- import type { HeaderAction } from './CustomDialogHeader';
5
- import type { DialogAction } from './types';
6
- export interface CustomDialogProps extends DialogProps {
7
- description?: string;
8
- actions?: React.ReactNode;
9
- onClose: (reason: DialogAction) => void;
10
- isResizable?: boolean;
11
- resizableDefaultSize?: Size;
12
- hasLayout?: boolean;
13
- shouldRenderInline?: boolean;
14
- headerActions?: HeaderAction[];
15
- minWidth?: number | string;
16
- }
17
- export declare const CustomDialog: React.FC<CustomDialogProps>;
18
- export default CustomDialog;
@@ -1,22 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-webpack5';
2
- import React from 'react';
3
- import { CustomDialog } from './CustomDialog';
4
- declare const _default: {
5
- title: string;
6
- component: React.FC<import("./CustomDialog").CustomDialogProps>;
7
- tags: string[];
8
- };
9
- export default _default;
10
- type Story = StoryObj<typeof CustomDialog>;
11
- export declare const CustomDialogLight: Story;
12
- export declare const CustomDialogDark: Story;
13
- export declare const CustomDialogFullWidth: Story;
14
- export declare const CustomDialogFixedWith: Story;
15
- export declare const CustomDialogLargeContent: Story;
16
- export declare const CustomDialogLargeContentResizable: Story;
17
- export declare const CustomDialogResizable: Story;
18
- export declare const CustomDialogResizableWithInitialSize: Story;
19
- export declare const CustomDialogRenderInline: Story;
20
- export declare const CustomDialogResizableNoLayout: Story;
21
- export declare const CustomDialogWithAutofocus: Story;
22
- export declare const CustomDialogHeaderActions: Story;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { ButtonVariant } from '@opengeoweb/theme';
3
- import type { DialogAction } from './types';
4
- import type { MenuItemType } from '../ToggleMenu';
5
- export type HeaderAction = MenuItemType & {
6
- variant?: ButtonVariant;
7
- };
8
- export declare const CustomDialogHeader: React.FC<{
9
- headerActions?: HeaderAction[];
10
- title?: string;
11
- onClose: (reason: DialogAction) => void;
12
- }>;
13
- export default CustomDialogHeader;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { CustomDialogHeader } from './CustomDialogHeader';
3
- type Story = StoryObj<typeof CustomDialogHeader>;
4
- declare const meta: Meta<typeof CustomDialogHeader>;
5
- export default meta;
6
- export declare const HeaderActions: Story;
7
- export declare const HeaderActionsDark: Story;
8
- export declare const HeaderTitle: Story;
9
- export declare const HeaderTitleDark: Story;
10
- export declare const HeaderActionsDisabled: Story;
11
- export declare const HeaderActionsEmpty: Story;
@@ -1,2 +0,0 @@
1
- export * from './CustomDialog';
2
- export * from './CustomDialogHeader';
@@ -1 +0,0 @@
1
- export type DialogAction = 'CLOSED';
@@ -1,15 +0,0 @@
1
- import type { IconButtonProps, TooltipProps as MuiTooltipProps } from '@mui/material';
2
- import React from 'react';
3
- export type Variant = 'flat' | 'tool' | 'boxed';
4
- type TooltipProps = Omit<MuiTooltipProps, 'children'>;
5
- export interface CustomIconProps extends IconButtonProps {
6
- tooltipTitle?: string;
7
- variant?: Variant;
8
- isSelected?: boolean;
9
- shouldShowAsDisabled?: boolean;
10
- tooltipProps?: TooltipProps;
11
- shouldShowExtraOptionsIndicator?: boolean;
12
- optionsActive?: boolean;
13
- }
14
- export declare const CustomIconButton: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<CustomIconProps, "ref"> & React.RefAttributes<HTMLButtonElement>>>;
15
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { CustomIconButton } from './CustomIconButton';
3
- declare const meta: Meta<typeof CustomIconButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof CustomIconButton>;
6
- export declare const Component: Story;
7
- export declare const CustomIconButtonLight: Story;
8
- export declare const CustomIconButtonDark: Story;
@@ -1 +0,0 @@
1
- export * from './CustomIconButton';
@@ -1,14 +0,0 @@
1
- import type { SliderProps, SxProps } from '@mui/material';
2
- import React from 'react';
3
- export declare const sliderHeaderStyle: {
4
- fontFamily: string;
5
- fontSize: number;
6
- color: string;
7
- padding: string;
8
- };
9
- interface CustomSliderProps extends SliderProps {
10
- shouldAutoFocus?: boolean;
11
- extraStyles?: SxProps;
12
- }
13
- export declare const CustomSlider: React.FC<CustomSliderProps>;
14
- export default CustomSlider;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { CustomSlider } from './CustomSlider';
3
- declare const meta: Meta<typeof CustomSlider>;
4
- export default meta;
5
- type Story = StoryObj<typeof CustomSlider>;
6
- export declare const Component: Story;
7
- export declare const CustomSliderLightTheme: Story;
8
- export declare const CustomSliderDarkTheme: Story;
@@ -1 +0,0 @@
1
- export { CustomSlider, sliderHeaderStyle } from './CustomSlider';
@@ -1,8 +0,0 @@
1
- import type { ToggleButtonProps } from '@mui/material';
2
- import React from 'react';
3
- import type { ButtonVariant } from '@opengeoweb/theme';
4
- export interface CustomToggleButtonProps extends Omit<ToggleButtonProps, 'value'> {
5
- variant?: ButtonVariant;
6
- value?: any;
7
- }
8
- export declare const CustomToggleButton: React.ForwardRefExoticComponent<Omit<CustomToggleButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { CustomToggleButton } from './CustomToggleButton';
3
- declare const meta: Meta<typeof CustomToggleButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof CustomToggleButton>;
6
- export declare const Component: Story;
7
- export declare const CustomToggleButtonLight: Story;
8
- export declare const CustomToggleButtonDark: Story;
@@ -1 +0,0 @@
1
- export * from './CustomToggleButton';
@@ -1,5 +0,0 @@
1
- import type { TooltipProps } from '@mui/material';
2
- import React from 'react';
3
- export declare const defaultDelay = 1000;
4
- export declare const useControlledTooltip: () => [boolean, React.Dispatch<React.SetStateAction<boolean>>];
5
- export declare const CustomTooltip: React.FC<TooltipProps>;
@@ -1 +0,0 @@
1
- export * from './CustomTooltip';
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { DraggableEvent } from 'react-draggable';
3
- import type { DraggablePosition } from './types';
4
- export interface DraggableComponentProps {
5
- nodeRef?: React.RefObject<HTMLElement>;
6
- children?: React.ReactNode;
7
- bounds?: 'parent' | string;
8
- cancel?: string;
9
- position?: DraggablePosition;
10
- onStop?: (event: DraggableEvent, pos: DraggablePosition) => void;
11
- onMouseDown?: (event: MouseEvent) => void;
12
- handle?: string;
13
- setIsDragging?: (isDragging: boolean) => void;
14
- }
15
- declare const DraggableComponent: React.FC<DraggableComponentProps>;
16
- export default DraggableComponent;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { ResizableComponentProps } from './types';
3
- export declare const isDraggingClassName = "is-dragging";
4
- export interface BoundsProps {
5
- bounds: HTMLElement;
6
- boundsByDirection: boolean;
7
- }
8
- export declare const useBoundsProps: (nodeRef?: React.RefObject<HTMLElement>) => BoundsProps | object;
9
- declare const ResizeComponent: React.FC<ResizableComponentProps>;
10
- export default ResizeComponent;
@@ -1,3 +0,0 @@
1
- export { default as Draggable } from './Draggable';
2
- export { default as Resizable } from './Resizable';
3
- export type * from './types';