@opengeoweb/shared 16.0.0 → 17.0.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.
Files changed (190) hide show
  1. package/index.esm.js +937 -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
@@ -1,27 +0,0 @@
1
- import type { ResizableProps } from 're-resizable';
2
- import type React from 'react';
3
- export interface DraggablePosition {
4
- x: number;
5
- y: number;
6
- }
7
- export interface Position {
8
- top: number;
9
- left?: number;
10
- right?: number;
11
- }
12
- export interface DraggableSize {
13
- width: number;
14
- height: number;
15
- }
16
- export interface Size {
17
- width?: number | string;
18
- height?: number | string;
19
- }
20
- export interface ResizableComponentProps extends Omit<ResizableProps, 'size'> {
21
- startSize?: Size;
22
- setSize?: (size: Size) => void;
23
- size?: Size;
24
- children: React.ReactNode;
25
- onResizeStart?: () => void;
26
- nodeRef?: React.RefObject<HTMLElement>;
27
- }
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- interface ErrorBoundaryProps {
3
- children: React.ReactNode;
4
- onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
5
- handlePromiseRejections?: boolean;
6
- displayOnTop?: boolean;
7
- }
8
- interface ErrorBoundaryState {
9
- error?: Error;
10
- errorInfo?: React.ErrorInfo;
11
- }
12
- /**
13
- * ErrorBoundary
14
- * Wrap this component around parts of your application. It will catch any uncaught errors and display an alert, and allows you to continue using the rest of your application.
15
- *
16
- * @example
17
- * ``` <ErrorBoundary><ExampleComponent /></ErrorBoundary> ```
18
- */
19
- export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
20
- static defaultProps: {
21
- onError: () => void;
22
- };
23
- constructor(props: ErrorBoundaryProps);
24
- componentDidMount(): void;
25
- static getDerivedStateFromError(error: Error): ErrorBoundaryState;
26
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
27
- componentWillUnmount(): void;
28
- handlePromiseRejection: (event: PromiseRejectionEvent) => void;
29
- render(): React.ReactNode;
30
- }
31
- export default ErrorBoundary;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { ErrorBoundary } from './ErrorBoundary';
3
- declare const meta: Meta<typeof ErrorBoundary>;
4
- export default meta;
5
- type Story = StoryObj<typeof ErrorBoundary>;
6
- export declare const Component: Story;
7
- export declare const ErrorBoundaryDemo: Story;
8
- export declare const ErrorBoundaryInsideBox: Story;
@@ -1 +0,0 @@
1
- export { ErrorBoundary } from './ErrorBoundary';
@@ -1,18 +0,0 @@
1
- import type { BoxProps } from '@mui/material';
2
- import React from 'react';
3
- import type { ListFilter } from './FilterList';
4
- export declare const DEFAULT_FILTER_HEIGHT = 85;
5
- interface FilterProps extends BoxProps {
6
- activeLabelFilterCount?: number;
7
- filters: ListFilter[];
8
- onClickFilterChip?: (id: string, selected: boolean) => void;
9
- onSearch?: (value: string) => void;
10
- isAllSelected?: boolean;
11
- searchQuery?: string;
12
- showLabelFilterToggle?: boolean;
13
- isLabelFilterOpen?: boolean;
14
- onToggleLabelFilter?: () => void;
15
- showSearchField?: boolean;
16
- }
17
- declare const Filter: React.ForwardRefExoticComponent<Omit<FilterProps, "ref"> & React.RefAttributes<HTMLElement>>;
18
- export default Filter;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import Filter from './Filter';
3
- declare const meta: Meta<typeof Filter>;
4
- export default meta;
5
- type Story = StoryObj<typeof Filter>;
6
- export declare const Component: Story;
7
- export declare const FilterLight: Story;
8
- export declare const FilterDark: Story;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export interface FilterChipProps {
3
- id: string;
4
- label: React.ReactNode;
5
- isSelected?: boolean;
6
- isDisabled?: boolean;
7
- handleClick?: (label: string, isSelected?: boolean) => void;
8
- actionIcon?: React.ReactElement;
9
- onClick?: (ref: HTMLElement | null, event: React.MouseEvent) => void;
10
- onClickIcon?: (ref: HTMLElement | null, event: React.MouseEvent) => void;
11
- size?: 'small' | 'medium';
12
- }
13
- declare const FilterChip: React.FC<FilterChipProps>;
14
- export default FilterChip;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- export interface ListFilter {
3
- label: string;
4
- id: string;
5
- type?: 'scope' | 'keyword';
6
- isSelected?: boolean;
7
- isDisabled?: boolean;
8
- }
9
- interface FilterListProps {
10
- filters?: ListFilter[];
11
- onChipClick?: (id: string, selected: boolean) => void;
12
- isAllSelected?: boolean;
13
- showLabelFilterToggle?: boolean;
14
- isLabelFilterOpen?: boolean;
15
- onToggleLabelFilter?: () => void;
16
- activeLabelFilterCount?: number;
17
- }
18
- declare const FilterList: React.FC<FilterListProps>;
19
- export default FilterList;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import type { SxProps, Theme } from '@mui/material';
2
- import React from 'react';
3
- import type { ReactNode } from 'react';
4
- interface Props {
5
- optionId: string;
6
- checked: boolean;
7
- onClick: (checked: boolean, only?: boolean) => void;
8
- labelStyle?: SxProps<Theme>;
9
- label: ReactNode;
10
- }
11
- export declare const FilterOption: React.FC<Props>;
12
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export declare const FilterToggleButton: React.FC<{
3
- isOpen: boolean;
4
- onToggle: () => void;
5
- activeLabelFilterCount: number;
6
- }>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const DEBOUNCE_TIMEOUT = 300;
3
- interface SearchFieldProps {
4
- valueChanged: (value: string) => void;
5
- value?: string;
6
- }
7
- declare const SearchField: React.FC<SearchFieldProps>;
8
- export default SearchField;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- export { default as Filter } from './Filter';
2
- export { DEFAULT_FILTER_HEIGHT } from './Filter';
3
- export type { ListFilter } from './FilterList';
4
- export { FilterOption } from './FilterOption';
5
- export { default as FilterChip } from './FilterChip';
6
- export type { FilterChipProps } from './FilterChip';
7
- export { DEBOUNCE_TIMEOUT } from './SearchField';
@@ -1,14 +0,0 @@
1
- import type { SxProps, Theme } from '@mui/material';
2
- import type { TFunction } from 'i18next';
3
- import React from 'react';
4
- export declare const getLastUpdateTitle: (time: string, t: TFunction) => string;
5
- interface LastUpdateTimeProps {
6
- onPressRefresh?: () => void;
7
- lastUpdateTime?: string;
8
- dataTestId?: string;
9
- hideLabel?: boolean;
10
- showRefreshButton?: boolean;
11
- iconButtonSx?: SxProps<Theme>;
12
- }
13
- declare const LastUpdateTime: React.FC<LastUpdateTimeProps>;
14
- export default LastUpdateTime;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import LastUpdateTime from './LastUpdateTime';
3
- declare const meta: Meta<typeof LastUpdateTime>;
4
- export default meta;
5
- type Story = StoryObj<typeof LastUpdateTime>;
6
- export declare const Component: Story;
7
- export declare const LastUpdateTimeLightTheme: Story;
8
- export declare const LastUpdateTimeDarkTheme: Story;
@@ -1 +0,0 @@
1
- export { default as LastUpdateTime, getLastUpdateTitle, } from './LastUpdateTime';
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { ThemeProviderProps } from '@opengeoweb/theme';
3
- interface SharedTranslationWrapperProps {
4
- children?: React.ReactNode;
5
- }
6
- interface SharedStoryWrapperProps {
7
- children: React.ReactNode;
8
- theme?: 'light' | 'dark';
9
- }
10
- /**
11
- * A Provider component which provides the GeoWeb theme
12
- * @param children
13
- * @returns
14
- */
15
- export declare const SharedThemeProvider: React.FC<ThemeProviderProps>;
16
- export declare const SharedStoryWrapper: React.FC<SharedStoryWrapperProps>;
17
- export declare const SharedI18nProvider: React.FC<SharedTranslationWrapperProps>;
18
- export {};
@@ -1 +0,0 @@
1
- export * from './Providers';
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface SearchFieldProps {
3
- searchFilter: string;
4
- label?: string;
5
- setSearchFilter: (filterText: string) => void;
6
- onOpenServicePopup?: (url: string) => void;
7
- small?: boolean;
8
- }
9
- export declare const SearchField: React.FC<SearchFieldProps>;
10
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare const isURL: (string: string) => boolean;
3
- interface FieldButtonProps {
4
- localSearchString: string;
5
- onClickClear: () => void;
6
- setPopupIsOpen?: (value: boolean) => void;
7
- }
8
- export declare const SearchFieldButton: React.FC<FieldButtonProps>;
9
- export {};
@@ -1,2 +0,0 @@
1
- export { SearchField } from './SearchField';
2
- export { SearchFieldButton } from './SearchFieldButtonContainer';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface HighlightProps {
3
- text: string;
4
- search: string;
5
- }
6
- declare const SearchHighlight: React.FC<HighlightProps>;
7
- export default SearchHighlight;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
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 +0,0 @@
1
- export { default as SearchHighlight } from './SearchHighlight';
@@ -1,17 +0,0 @@
1
- import type { BoxProps } from '@mui/material';
2
- import React from 'react';
3
- export declare const bgColors: {
4
- green: string;
5
- grey: string;
6
- purple: string;
7
- red: string;
8
- yellow: string;
9
- blue: string;
10
- };
11
- interface StatusTagProps extends BoxProps {
12
- content: string;
13
- color: string;
14
- icon?: React.ReactNode;
15
- }
16
- declare const StatusTag: React.FC<StatusTagProps>;
17
- export default StatusTag;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { 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;
@@ -1 +0,0 @@
1
- export { default as StatusTag } from './StatusTag';
@@ -1,6 +0,0 @@
1
- import type { BoxProps } from '@mui/material';
2
- interface StorybookDocsWrapperProps extends BoxProps {
3
- isDark?: boolean;
4
- }
5
- export declare const StorybookDocsWrapper: React.FC<StorybookDocsWrapperProps>;
6
- export {};
@@ -1 +0,0 @@
1
- export * from './StorybookDocsWrapper';
@@ -1,8 +0,0 @@
1
- import type { SwitchProps } from '@mui/material';
2
- import React from 'react';
3
- declare const SwitchButton: React.FC<SwitchProps & {
4
- activeLabel?: string;
5
- inActiveLabel?: string;
6
- tooltip?: string;
7
- }>;
8
- export default SwitchButton;
@@ -1 +0,0 @@
1
- export { default as SwitchButton } from './SwitchButton';
@@ -1,30 +0,0 @@
1
- import type { PopoverOrigin, SxProps, Theme } from '@mui/material';
2
- import React from 'react';
3
- import type { Variant } from '../CustomIconButton';
4
- type MenuPosition = 'left' | 'right' | 'bottom';
5
- export declare const getPosition: (menuPosition: MenuPosition) => {
6
- anchorOrigin: PopoverOrigin;
7
- transformOrigin: PopoverOrigin;
8
- };
9
- export interface MenuItemType {
10
- text: string;
11
- action: (event: React.MouseEvent) => void;
12
- icon?: React.ReactNode;
13
- isDisabled?: boolean;
14
- isSelected?: boolean;
15
- }
16
- interface ToggleMenuProps {
17
- buttonTestId?: string;
18
- menuPosition?: MenuPosition;
19
- menuItems?: MenuItemType[];
20
- menuTitle?: string;
21
- children?: React.ReactNode;
22
- buttonSx?: SxProps<Theme>;
23
- tooltipTitle?: string;
24
- variant?: Variant;
25
- isDefaultOpen?: boolean;
26
- buttonIcon?: React.ReactNode;
27
- isDisabled?: boolean;
28
- }
29
- export declare const ToggleMenu: React.FC<ToggleMenuProps>;
30
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { ToggleMenu } from './ToggleMenu';
3
- declare const meta: Meta<typeof ToggleMenu>;
4
- export default meta;
5
- type Story = StoryObj<typeof ToggleMenu>;
6
- export declare const Component: Story;
7
- export declare const ToggleMenuLight: Story;
8
- export declare const ToggleMenuDark: Story;
@@ -1 +0,0 @@
1
- export * from './ToggleMenu';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ToolContainerProps } from './types';
3
- export declare const BASE_ELEVATION = 5;
4
- declare const ToolContainer: React.FC<ToolContainerProps>;
5
- export default ToolContainer;
@@ -1,16 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import React from 'react';
3
- import { ToolContainer } from '.';
4
- declare const meta: Meta<typeof ToolContainer>;
5
- export default meta;
6
- type Story = StoryObj<typeof ToolContainer>;
7
- export declare const Component: Story;
8
- interface ToolContainerDemoProps {
9
- isSnapShot?: boolean;
10
- }
11
- export declare const ToolContainerDemo: {
12
- ({ isSnapShot, }: ToolContainerDemoProps): React.ReactElement;
13
- tags: string[];
14
- };
15
- export declare const ThemeLight: Story;
16
- export declare const ThemeDark: Story;
@@ -1,39 +0,0 @@
1
- import type { SxProps } from '@mui/material';
2
- import type { NumberSize } from 're-resizable';
3
- import React from 'react';
4
- import type { HeaderSize } from './types';
5
- import type { DraggablePosition, DraggableSize, Position, ResizableComponentProps, Size } from '../DraggableResizable/types';
6
- export declare const calculateDialogSizeAndPosition: () => {
7
- width: number;
8
- height: number;
9
- top: number;
10
- left: number;
11
- };
12
- export declare const calculateStartSize: (minSize: DraggableSize, prefSize: DraggableSize, startPosition: Position) => DraggableSize;
13
- interface DraggableComponentProps extends Omit<ResizableComponentProps, 'bounds'> {
14
- startPosition?: Position;
15
- startDraggablePosition?: DraggablePosition;
16
- onStartResize?: () => void;
17
- isOpen?: boolean;
18
- onClose?: () => void;
19
- title?: string;
20
- headerSize?: HeaderSize;
21
- initialMaxHeight?: string | number;
22
- onChangeSize?: (size: Size) => void;
23
- onDragEnd?: (position: DraggablePosition, size: Size) => void;
24
- onMouseDown?: (event: MouseEvent) => void;
25
- bounds?: 'parent' | string;
26
- cancel?: string;
27
- order?: number;
28
- source?: Source;
29
- leftHeaderComponent?: React.ReactNode;
30
- rightHeaderComponent?: React.ReactNode;
31
- dragHandleIcon?: React.ReactNode;
32
- closeIcon?: React.ReactNode;
33
- sx?: SxProps;
34
- resetPositionOnOpen?: boolean;
35
- }
36
- export declare const calculateNewPosition: (position: DraggablePosition, isRightAligned: boolean, handle: string, delta: NumberSize) => DraggablePosition;
37
- export type Source = 'app' | 'module';
38
- declare const DraggableComponent: React.FC<DraggableComponentProps>;
39
- export default DraggableComponent;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
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 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
5
- export default _default;
6
- export declare const ToolContainerLight: {
7
- (): React.ReactElement;
8
- tags: string[];
9
- };
10
- export declare const ToolContainerDark: {
11
- (): React.ReactElement;
12
- tags: string[];
13
- };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ToolFooter: React.FC;
3
- export default ToolFooter;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ToolHeaderProps } from './types';
3
- declare const ToolHeader: React.FC<ToolHeaderProps>;
4
- export default ToolHeader;
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { ToolHeader } from '.';
3
- declare const meta: Meta<typeof ToolHeader>;
4
- export default meta;
5
- type Story = StoryObj<typeof ToolHeader>;
6
- export declare const Component: Story;
7
- export declare const ThemeLight: Story;
8
- export declare const ThemeDark: Story;
@@ -1,7 +0,0 @@
1
- export { default as ToolContainer } from './ToolContainer';
2
- export { default as ToolContainerDraggable } from './ToolContainerDraggable';
3
- export type { Source } from './ToolContainerDraggable';
4
- export { calculateDialogSizeAndPosition, calculateStartSize, } from './ToolContainerDraggable';
5
- export { default as ToolHeader } from './ToolHeader';
6
- export { default as ToolFooter } from './ToolFooter';
7
- export type * from './types';
@@ -1,19 +0,0 @@
1
- import type { PaperProps } from '@mui/material';
2
- export type HeaderSize = 'xxs' | 'xs' | 'small' | 'medium' | 'large';
3
- export interface ToolHeaderProps {
4
- title?: string;
5
- size?: HeaderSize;
6
- onClose?: () => void;
7
- className?: string;
8
- isDraggable?: boolean;
9
- leftHeaderComponent?: React.ReactNode;
10
- rightHeaderComponent?: React.ReactNode;
11
- dragHandleIcon?: React.ReactNode;
12
- closeIcon?: React.ReactNode;
13
- }
14
- export interface ToolContainerProps extends PaperProps, ToolHeaderProps {
15
- isResizable?: boolean;
16
- children?: React.ReactNode;
17
- maxHeight?: string | number;
18
- headerClassName?: string;
19
- }
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { DraggablePosition, Position, Size } from '../DraggableResizable/types';
3
- export declare const getNewPositionSize: (element: Element, boundsNode: Element, isRightAligned: boolean, position: DraggablePosition, newSize?: Size) => {
4
- position: Position;
5
- size: Size;
6
- };
7
- export declare const useHandleSizeFromOutsideComponent: ({ nodeRef, bounds, position, isRightAligned, isOpen, startSize, onChangeSize, }: {
8
- nodeRef: React.RefObject<HTMLDivElement>;
9
- position: DraggablePosition;
10
- bounds: string;
11
- isRightAligned: boolean;
12
- isOpen: boolean;
13
- startSize: Size;
14
- onChangeSize: (size: Size) => void;
15
- }) => void;
@@ -1,23 +0,0 @@
1
- import type { BaseSelectProps, SelectVariants, SxProps, Theme } from '@mui/material';
2
- import React from 'react';
3
- interface ListElement {
4
- value: string;
5
- }
6
- type TooltipSelectProps = Omit<BaseSelectProps, 'sx'> & {
7
- tooltip: string;
8
- list?: ListElement[];
9
- currentIndex?: number;
10
- onChangeMouseWheel?: (element: ListElement) => void;
11
- isEnabled?: boolean;
12
- hasBackgroundColor?: boolean;
13
- variant?: SelectVariants;
14
- additionalStyling?: SxProps;
15
- skipLocalStyling?: boolean;
16
- };
17
- export declare const TooltipSelect: React.FC<TooltipSelectProps>;
18
- interface StyledSelectProps extends Omit<TooltipSelectProps, 'tooltip' | 'skipLocalStyling'> {
19
- skipLocalStyling: boolean;
20
- }
21
- export declare const StyledSelect: import("@emotion/styled").StyledComponent<Omit<StyledSelectProps, "ref"> & React.RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
22
- export declare const tooltipContainerStyles: (theme: Theme, isEnabled: boolean, hasBackgroundColor?: boolean) => object;
23
- export {};