@opengeoweb/shared 9.27.0 → 9.28.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
@@ -6805,10 +6805,13 @@ const CustomAccordion = _a => {
6805
6805
  transitionDuration = 150,
6806
6806
  detailsSx,
6807
6807
  CustomExpandIcon,
6808
- children
6808
+ children,
6809
+ amountOfItems
6809
6810
  } = _a,
6810
- props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children"]);
6811
+ props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children", "amountOfItems"]);
6811
6812
  const [expanded, setExpanded] = React.useState(defaultExpanded);
6813
+ const theme = useTheme();
6814
+ const iconColor = theme.palette.geowebColors.buttons.icon.default.color;
6812
6815
  return jsxs(Accordion, Object.assign({}, props, {
6813
6816
  defaultExpanded: defaultExpanded,
6814
6817
  elevation: expanded ? expandedElevation : collapsedElevation,
@@ -6819,9 +6822,40 @@ const CustomAccordion = _a => {
6819
6822
  }
6820
6823
  }, {
6821
6824
  children: [jsx(AccordionSummary, Object.assign({
6822
- expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {}) : jsx(ChevronDown, {})
6825
+ expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {
6826
+ style: {
6827
+ fill: `${iconColor}`
6828
+ }
6829
+ }) : jsx(ChevronDown, {
6830
+ style: {
6831
+ fill: `${iconColor}`
6832
+ }
6833
+ })
6823
6834
  }, {
6824
- children: title
6835
+ children: jsxs(Box, Object.assign({
6836
+ sx: {
6837
+ display: 'flex',
6838
+ justifyContent: 'space-between',
6839
+ width: '100%'
6840
+ }
6841
+ }, {
6842
+ children: [jsx(Box, Object.assign({
6843
+ sx: {
6844
+ display: 'flex',
6845
+ justifyContent: 'flex-start'
6846
+ }
6847
+ }, {
6848
+ children: title
6849
+ })), amountOfItems ? jsx(Box, Object.assign({
6850
+ sx: {
6851
+ display: 'flex',
6852
+ justifyContent: 'flex-end',
6853
+ marginRight: '15px'
6854
+ }
6855
+ }, {
6856
+ children: amountOfItems
6857
+ })) : null]
6858
+ }))
6825
6859
  })), jsx(AccordionDetails, Object.assign({
6826
6860
  sx: detailsSx
6827
6861
  }, {
@@ -9421,14 +9455,6 @@ const createMockStoreWithEggs = mockState => {
9421
9455
  store.addEggs = typeof jest !== 'undefined' ? jest.fn() : () => {}; // mocking the dynamic module loader
9422
9456
  return store;
9423
9457
  };
9424
- const createMockStoreWithEggsAndMiddleware = (mockState,
9425
- // eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
9426
- middleware) => {
9427
- const mockStore = configureStore([middleware]);
9428
- const store = mockStore(mockState);
9429
- store.addEggs = typeof jest !== 'undefined' ? jest.fn() : () => {}; // mocking the dynamic module loader
9430
- return store;
9431
- };
9432
9458
  const createToolkitMockStoreWithEggs = storeConfig => {
9433
9459
  const {
9434
9460
  reducer,
@@ -9583,4 +9609,4 @@ class RenderCounter {
9583
9609
  }
9584
9610
  const renderCounter = new RenderCounter();
9585
9611
 
9586
- 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, 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, createMockStoreWithEggs, createMockStoreWithEggsAndMiddleware, 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 };
9612
+ 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, 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, createMockStoreWithEggs, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "9.27.0",
3
+ "version": "9.28.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": {
@@ -20,7 +20,7 @@
20
20
  "@reduxjs/toolkit": "^1.9.7",
21
21
  "react-i18next": "^14.1.2",
22
22
  "i18next": "^23.11.5",
23
- "@mui/material": "^5.16.0",
23
+ "@mui/material": "^6.1.1",
24
24
  "@sentry/react": "^7.109.0"
25
25
  },
26
26
  "peerDependencies": {
@@ -7,5 +7,6 @@ export interface CustomAccordionProps extends Omit<AccordionProps, 'title'> {
7
7
  transitionDuration?: number;
8
8
  detailsSx?: SxProps<Theme>;
9
9
  CustomExpandIcon?: React.ElementType;
10
+ amountOfItems?: number;
10
11
  }
11
12
  export declare const CustomAccordion: React.FC<CustomAccordionProps>;
@@ -20,6 +20,8 @@ export interface ConfigType {
20
20
  GW_PRESET_BACKEND_URL?: string;
21
21
  GW_CAP_BASE_URL?: string;
22
22
  GW_DRAWINGS_BASE_URL?: string;
23
+ GW_TECHNICAL_RELEASE_NOTES_URL?: string;
24
+ GW_VERSION_PROGRESS_NOTES_URL?: string;
23
25
  GW_FEATURE_APP_TITLE?: string;
24
26
  GW_FEATURE_FORCE_AUTHENTICATION?: boolean;
25
27
  GW_FEATURE_MODULE_SPACE_WEATHER?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { MockStoreEnhanced } from 'redux-mock-store';
2
- import { AnyAction, Dispatch, Middleware, Reducer, ReducersMapObject, ThunkMiddleware, StoreEnhancer } from '@reduxjs/toolkit';
2
+ import { AnyAction, Reducer, ReducersMapObject, ThunkMiddleware, StoreEnhancer } from '@reduxjs/toolkit';
3
3
  import { ConfigureStoreOptions, ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
4
4
  interface MockStoreWithEggs extends MockStoreEnhanced {
5
5
  addEggs?: () => void;
@@ -16,6 +16,5 @@ interface StoreConfig {
16
16
  ]> | object | undefined;
17
17
  }
18
18
  export declare const createMockStoreWithEggs: (mockState: unknown) => MockStoreWithEggs;
19
- export declare const createMockStoreWithEggsAndMiddleware: (mockState: unknown, middleware: Middleware<{}, any, Dispatch<AnyAction>>) => MockStoreWithEggs;
20
19
  export declare const createToolkitMockStoreWithEggs: (storeConfig: StoreConfig) => ToolkitStoreWithEggs;
21
20
  export {};