@opengeoweb/core 4.1.0 → 4.3.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 (101) hide show
  1. package/index.esm.js +2842 -2111
  2. package/index.umd.js +2852 -2120
  3. package/lib/components/CanvasComponent/CanvasComponent.d.ts +1 -0
  4. package/lib/components/LayerManager/LayerManager.d.ts +13 -0
  5. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +4 -4
  6. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +12 -0
  7. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +0 -1
  8. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +5 -5
  9. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +3 -2
  10. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoButtonConnect.d.ts +11 -0
  11. package/lib/components/LayerManager/LayerSelect/{LayerSelectUtils.spec.d.ts → LayerInfo/LayerInfoButtonConnect.spec.d.ts} +0 -0
  12. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.d.ts +14 -0
  13. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.spec.d.ts} +0 -0
  14. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
  15. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoDialogConnect.d.ts +3 -0
  16. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.d.ts +10 -0
  17. package/lib/components/{TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.spec.d.ts → LayerManager/LayerSelect/LayerInfo/LayerInfoLegend.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoList.d.ts +12 -0
  19. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoText.d.ts +16 -0
  20. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.d.ts +10 -0
  21. package/lib/components/LayerManager/LayerSelect/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
  22. package/lib/components/LayerManager/LayerSelect/LayerInfo/index.d.ts +2 -0
  23. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +7 -6
  24. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +2 -0
  25. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListDimensions.d.ts +7 -0
  26. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +2 -1
  27. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -1
  28. package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +4 -0
  29. package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +8 -0
  30. package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +0 -2
  31. package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +75 -4
  32. package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +1 -0
  33. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -1
  34. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -1
  35. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +3 -1
  36. package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +4 -1
  37. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +13 -3
  38. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +12 -0
  39. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +6 -1
  40. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -5
  41. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +39 -7
  42. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +2 -1
  43. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +9 -0
  44. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.d.ts +8 -0
  45. package/lib/components/LayerManager/LayerSelect/ServicePopup/utils.spec.d.ts +1 -0
  46. package/lib/components/LayerManager/useFetchServices.d.ts +4 -0
  47. package/lib/components/LayerManager/useFetchServices.spec.d.ts +1 -0
  48. package/lib/components/Legend/LegendLayout.d.ts +13 -0
  49. package/lib/components/Legend/LegendLayout.spec.d.ts +1 -0
  50. package/lib/components/MapControls/MapControlButton.d.ts +1 -1
  51. package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +1 -1
  52. package/lib/components/ReactMapView/ReactMapView.d.ts +2 -1
  53. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  54. package/lib/components/ReactMapView/types.d.ts +2 -1
  55. package/lib/components/Snackbar/SnackbarWrapperConnect.spec.d.ts +7 -0
  56. package/lib/components/TimeSlider/TimeSlider.d.ts +0 -1
  57. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.d.ts +8 -0
  58. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButton.spec.d.ts +1 -0
  59. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.d.ts +9 -0
  60. package/lib/components/TimeSlider/TimeSliderButtons/NowButton/NowButtonConnect.spec.d.ts +1 -0
  61. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +2 -0
  62. package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButtonConnect.d.ts +1 -0
  63. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +1 -1
  64. package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButtonConnect.d.ts +1 -5
  65. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.d.ts +11 -0
  66. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButton.spec.d.ts +1 -0
  67. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.d.ts +4 -0
  68. package/lib/components/TimeSlider/TimeSliderButtons/TimeScaleButton/TimeScaleButtonConnect.spec.d.ts +1 -0
  69. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +6 -0
  70. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonsConnect.d.ts +1 -0
  71. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +18 -0
  72. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.spec.d.ts +1 -0
  73. package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.stories.d.ts +24 -0
  74. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +1 -1
  75. package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.stories.d.ts +18 -3
  76. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +1 -0
  77. package/lib/components/TimeSlider/TimeSliderUtils.d.ts +5 -0
  78. package/lib/components/WMSLoader/services.d.ts +3 -1
  79. package/lib/hooks/index.d.ts +1 -0
  80. package/lib/hooks/useSetupDialog/index.d.ts +1 -0
  81. package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +9 -0
  82. package/lib/hooks/useSetupDialog/useSetupDialog.spec.d.ts +1 -0
  83. package/lib/index.d.ts +1 -0
  84. package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -2
  85. package/lib/store/layerSelect/reducer.d.ts +8 -5
  86. package/lib/store/layerSelect/sagas.d.ts +3 -2
  87. package/lib/store/layerSelect/selectors.d.ts +71 -6
  88. package/lib/store/layerSelect/types.d.ts +34 -15
  89. package/lib/store/mapStore/map/sagas.d.ts +1 -1
  90. package/lib/store/mapStore/service/selectors.d.ts +0 -27
  91. package/lib/store/mapStore/service/types.d.ts +13 -3
  92. package/lib/store/ui/selectors.d.ts +5 -5
  93. package/lib/store/ui/types.d.ts +12 -1
  94. package/lib/store/utils.d.ts +2 -0
  95. package/lib/utils/__mocks__/getCapabilities.d.ts +2 -14
  96. package/lib/utils/defaultTestSettings.d.ts +3 -0
  97. package/lib/utils/getCapabilities.d.ts +4 -1
  98. package/package.json +11 -10
  99. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.d.ts +0 -12
  100. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +0 -13
  101. package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSliderConnect.d.ts +0 -24
@@ -21,6 +21,7 @@ interface CanvasComponentProps {
21
21
  loop?: boolean;
22
22
  redrawInterval?: number;
23
23
  resizeCallback?: (newWidth: number) => void;
24
+ children?: React.ReactNode;
24
25
  }
25
26
  export default class CanvasComponent extends Component<CanvasComponentProps> {
26
27
  canvas: any;
@@ -20,5 +20,18 @@ interface LayerManagerProps {
20
20
  isLoading?: boolean;
21
21
  error?: string;
22
22
  }
23
+ export declare const calculateStartSize: (minSize: {
24
+ width: number;
25
+ height: number;
26
+ }, prefSize: {
27
+ width: number;
28
+ height: number;
29
+ }, startPosition: {
30
+ top: number;
31
+ left: number;
32
+ }) => {
33
+ width: number;
34
+ height: number;
35
+ };
23
36
  declare const LayerManager: React.FC<LayerManagerProps>;
24
37
  export default LayerManager;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { Source } from '../../../../store/ui/types';
3
- interface KeywordFilterResultsProps {
4
- allKeywordIds: string[];
5
- mapId: string;
3
+ import { Filter } from '../../../../store/layerSelect/types';
4
+ export declare const DIALOG_TITLE = "Groups & Keywords";
5
+ export interface KeywordFilterResultsProps {
6
6
  bounds?: string;
7
- showTitle?: boolean;
8
7
  onClose?: () => void;
9
8
  onMouseDown?: () => void;
10
9
  isOpen: boolean;
11
10
  order?: number;
12
11
  source?: Source;
12
+ filters: Filter[];
13
13
  }
14
14
  declare const KeywordFilterResults: React.FC<KeywordFilterResultsProps>;
15
15
  export default KeywordFilterResults;
@@ -6,8 +6,20 @@ export default _default;
6
6
  export declare const KeywordFilterResultsLight: {
7
7
  (): React.ReactElement;
8
8
  storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
9
15
  };
10
16
  export declare const KeywordFilterResultsDark: {
11
17
  (): React.ReactElement;
12
18
  storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
13
25
  };
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
  interface KeywordFilterResultsConnectProps {
3
3
  bounds?: string;
4
- showTitle?: boolean;
5
4
  }
6
5
  declare const KeywordFilterResultsConnect: React.FC<KeywordFilterResultsConnectProps>;
7
6
  export default KeywordFilterResultsConnect;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { KeywordObject } from '../../../../store/layerSelect/types';
3
- interface FilterListItemProps {
4
- keyword: KeywordObject;
5
- toggleKeywords: (keywords: string[]) => void;
6
- enableOnlyOneKeyword: (keyword: string) => void;
2
+ import { Filter } from '../../../../store/layerSelect/types';
3
+ export interface FilterListItemProps {
4
+ filter: Filter;
5
+ toggleFilter: (filterIds: string[]) => void;
6
+ enableOnlyOneFilter: (filterId: string) => void;
7
7
  }
8
8
  declare const FilterListItem: React.FC<FilterListItemProps>;
9
9
  export default FilterListItem;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
- interface KeywordFilterResultsListItemConnectProps {
3
- keyword: string;
2
+ import { Filter } from '../../../../store/layerSelect/types';
3
+ export interface KeywordFilterResultsListItemConnectProps {
4
+ filter: Filter;
4
5
  }
5
6
  declare const KeywordFilterResultsListItemConnect: React.FC<KeywordFilterResultsListItemConnectProps>;
6
7
  export default KeywordFilterResultsListItemConnect;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ServiceLayer } from '../../../../store/mapStore/types';
3
+ import { Source } from '../../../../store/ui/types';
4
+ interface LayerInfoButtonProps {
5
+ layer: ServiceLayer;
6
+ mapId: string;
7
+ serviceName: string;
8
+ source?: Source;
9
+ }
10
+ declare const LayerInfoButtonConnect: React.FC<LayerInfoButtonProps>;
11
+ export default LayerInfoButtonConnect;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ActiveLayerObject } from '../../../../store/layerSelect/types';
3
+ import { Source } from '../../../../store/ui/types';
4
+ export interface LayerInfoDialogProps {
5
+ layer: ActiveLayerObject;
6
+ onClose: () => void;
7
+ isOpen: boolean;
8
+ onMouseDown?: () => void;
9
+ order?: number;
10
+ source?: Source;
11
+ dialogHeight?: number;
12
+ }
13
+ declare const LayerInfoDialog: React.FC<LayerInfoDialogProps>;
14
+ export default LayerInfoDialog;
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const LayerInfoDialogLight: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
15
+ };
16
+ export declare const LayerInfoDialogDark: {
17
+ (): React.ReactElement;
18
+ storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
25
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const LayerInfoDialogConnect: React.FC;
3
+ export default LayerInfoDialogConnect;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Dimension } from '../../../../store/mapStore/types';
3
+ export interface LayerInfoLegendProps {
4
+ title: string;
5
+ name: string;
6
+ dimensions: Dimension[];
7
+ legendURL: string;
8
+ }
9
+ declare const LayerInfoLegend: React.FC<LayerInfoLegendProps>;
10
+ export default LayerInfoLegend;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export declare type ListItem = {
3
+ label: string;
4
+ value: string;
5
+ icon: React.ReactElement;
6
+ };
7
+ export interface LayerInfoListProps {
8
+ label: string;
9
+ list: ListItem[];
10
+ }
11
+ declare const LayerInfoList: React.FC<LayerInfoListProps>;
12
+ export default LayerInfoList;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export interface LayerInfoTextProps {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export declare const textStyle: {
7
+ lineHeight: string;
8
+ letterSpacing: string;
9
+ };
10
+ export declare const textStyleWithMargin: {
11
+ marginBottom: number;
12
+ lineHeight: string;
13
+ letterSpacing: string;
14
+ };
15
+ declare const LayerInfoText: React.FC<LayerInfoTextProps>;
16
+ export default LayerInfoText;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Dimension } from '../../../../store/mapStore/types';
3
+ import { ActiveLayerObject } from '../../../../store/layerSelect/types';
4
+ import { ListItem } from './LayerInfoList';
5
+ export declare const getLayerStyles: (layer: ActiveLayerObject) => string;
6
+ export declare const getDimensionValue: (name: string, dimensions: Dimension[]) => string;
7
+ export declare const getLayerBbox: (layer: ActiveLayerObject) => string;
8
+ export declare const getDimensionIcon: (name: string, dimensions: Dimension[]) => React.ReactElement;
9
+ export declare const getDimensionLabel: (name: string) => string;
10
+ export declare const getDimensionsList: (dimensions: Dimension[]) => ListItem[];
@@ -0,0 +1,2 @@
1
+ export { default as LayerInfoButtonConnect } from './LayerInfoButtonConnect';
2
+ export { default as LayerInfoDialog } from './LayerInfoDialog';
@@ -1,10 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { ReduxLayer } from '../../../../store/mapStore/layers/types';
3
- import { Services } from '../../../../store/mapStore/service/types';
4
- interface LayerListProps {
3
+ import { ActiveLayerObject } from '../../../../store/layerSelect/types';
4
+ import { Services } from '../../../../store/mapStore/types';
5
+ export interface LayerListProps {
5
6
  services: Services;
6
- serviceIds: string[];
7
+ filteredLayers: ActiveLayerObject[];
7
8
  layerSelectHeight: number;
9
+ serviceListHeight: number;
10
+ layerSelectWidth: number;
8
11
  addLayer: ({ serviceUrl, layerName }: {
9
12
  serviceUrl: any;
10
13
  layerName: any;
@@ -13,10 +16,8 @@ interface LayerListProps {
13
16
  layerId: any;
14
17
  layerIndex: any;
15
18
  }) => void;
16
- searchString: string;
17
19
  mapLayers: ReduxLayer[];
18
- keywordIds: string[];
19
- allKeywordsActive: boolean;
20
+ mapId: string;
20
21
  }
21
22
  declare const LayerList: React.FC<LayerListProps>;
22
23
  export default LayerList;
@@ -2,6 +2,8 @@ import * as React from 'react';
2
2
  interface LayerListConnectProps {
3
3
  mapId: string;
4
4
  layerSelectHeight: number;
5
+ serviceListHeight: number;
6
+ layerSelectWidth: number;
5
7
  }
6
8
  declare const LayerListConnect: React.FC<LayerListConnectProps>;
7
9
  export default LayerListConnect;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ListItem } from '../LayerInfo/LayerInfoList';
3
+ interface LayerListDimensionsProps {
4
+ dimensions: ListItem[];
5
+ }
6
+ declare const LayerListDimensions: React.FC<LayerListDimensionsProps>;
7
+ export default LayerListDimensions;
@@ -4,7 +4,6 @@ interface LayerListRowProps {
4
4
  layer: ServiceLayer;
5
5
  layerIndex: number;
6
6
  service: ReduxService;
7
- serviceUrl: string;
8
7
  addLayer: ({ serviceUrl, layerName }: {
9
8
  serviceUrl: any;
10
9
  layerName: any;
@@ -14,6 +13,8 @@ interface LayerListRowProps {
14
13
  layerIndex: any;
15
14
  }) => void;
16
15
  mapLayers: ReduxLayer[];
16
+ mapId: string;
17
+ layerSelectWidth: number;
17
18
  }
18
19
  declare const LayerListRow: React.FC<LayerListRowProps>;
19
20
  export default LayerListRow;
@@ -1,2 +1,2 @@
1
1
  import { ServiceLayer, Services } from '../../../../store/mapStore/service/types';
2
- export declare const filterLayersFromService: (serviceId: string, services: Services, keywordIds: string[], allKeywordsActive: boolean, searchString: string) => ServiceLayer[];
2
+ export declare const filterLayersFromService: (serviceId: string, services: Services, filterIds: string[], allFiltersActive: boolean, searchString: string) => ServiceLayer[];
@@ -9,6 +9,10 @@ interface LayerSelectProps {
9
9
  isOpen: boolean;
10
10
  order?: number;
11
11
  source?: Source;
12
+ startSize?: {
13
+ width: number;
14
+ height: number;
15
+ };
12
16
  }
13
17
  declare const LayerSelect: React.FC<LayerSelectProps>;
14
18
  export default LayerSelect;
@@ -19,3 +19,11 @@ export declare const LayerSelectDemoDarkTheme: {
19
19
  }[];
20
20
  };
21
21
  };
22
+ export declare const LayerSelectDemoSmallLightTheme: {
23
+ (): React.ReactElement;
24
+ storyName: string;
25
+ };
26
+ export declare const LayerSelectDemoSmallDarkTheme: {
27
+ (): React.ReactElement;
28
+ storyName: string;
29
+ };
@@ -1,9 +1,7 @@
1
1
  import * as React from 'react';
2
- import { Service } from '../../WMSLoader/services';
3
2
  interface LayerSelectConnectProps {
4
3
  bounds?: string;
5
4
  showTitle?: boolean;
6
- preloadedServices?: Service[];
7
5
  }
8
6
  /**
9
7
  * LayerSelectConnect is a component that is opened from LayerManager
@@ -1,4 +1,75 @@
1
- import { NoIdService, UserAddedServices } from '../../../utils/types';
2
- import { Service } from '../../WMSLoader/services';
3
- export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
4
- export declare const isNoIdService: (param: unknown) => param is NoIdService;
1
+ import { CSSProperties } from 'react';
2
+ export declare const layerSelectColumnsLarge: {
3
+ column1: {
4
+ width: number;
5
+ };
6
+ column2: {
7
+ marginTop: string;
8
+ width: string;
9
+ height: string;
10
+ paddingLeft: string;
11
+ };
12
+ column3: {
13
+ height: string;
14
+ };
15
+ column4: {
16
+ height: string;
17
+ };
18
+ column5: {
19
+ height: string;
20
+ width: number;
21
+ };
22
+ column6: {
23
+ height: string;
24
+ width: string;
25
+ };
26
+ column7: {
27
+ height: string;
28
+ width: number;
29
+ marginRight: number;
30
+ marginLeft: number;
31
+ };
32
+ column8: {
33
+ width: string;
34
+ };
35
+ column9: {
36
+ width: string;
37
+ };
38
+ };
39
+ export declare const layerSelectColumnsSmall: {
40
+ column1: {
41
+ width: string;
42
+ };
43
+ column2: {
44
+ marginTop: string;
45
+ width: string;
46
+ };
47
+ column3: {
48
+ height: string;
49
+ };
50
+ column4: {
51
+ height: string;
52
+ };
53
+ column5: {
54
+ height: string;
55
+ width: string;
56
+ };
57
+ column6: {
58
+ height: string;
59
+ width: string;
60
+ };
61
+ column7: {
62
+ height: string;
63
+ width: number;
64
+ marginRight: number;
65
+ marginLeft: number;
66
+ };
67
+ column8: {
68
+ width: string;
69
+ };
70
+ column9: {
71
+ width: string;
72
+ };
73
+ };
74
+ export declare const widthToColumns: (width: number) => Record<string, CSSProperties>;
75
+ export declare const widthToRowHeight: (width: number) => number;
@@ -3,6 +3,7 @@ export declare const isURL: (string: string) => boolean;
3
3
  interface FieldButtonProps {
4
4
  localSearchString: string;
5
5
  onClickClear: () => void;
6
+ setPopupIsOpen: (value: boolean) => void;
6
7
  }
7
8
  declare const SearchFieldButtonContainer: React.FC<FieldButtonProps>;
8
9
  export default SearchFieldButtonContainer;
@@ -1,10 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { ActiveServiceObject } from '../../../../store/layerSelect/types';
3
- interface ServiceChipConnectProps {
3
+ export interface ServiceChipConnectProps {
4
4
  all?: boolean;
5
5
  serviceId?: string;
6
6
  service?: ActiveServiceObject;
7
7
  isSelected?: boolean;
8
+ isAllSelected?: boolean;
8
9
  isDisabled?: boolean;
9
10
  }
10
11
  declare const ServiceChipConnect: React.FC<ServiceChipConnectProps>;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { ActiveServiceObject } from '../../../../store/layerSelect/types';
3
3
  interface ServiceListProps {
4
- layerSelectWidth?: number;
5
4
  activeServices: Record<string, ActiveServiceObject>;
5
+ setHeight: (height: number) => void;
6
6
  }
7
7
  declare const ServiceList: React.FC<ServiceListProps>;
8
8
  export default ServiceList;
@@ -1,6 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { ActiveServices } from '../../../../store/layerSelect/types';
2
3
  interface ServiceListConnectProps {
3
- layerSelectWidth?: number;
4
+ setHeight: (height: number) => void;
4
5
  }
6
+ export declare const sortByService: (serviceObj: ActiveServices) => ActiveServices;
5
7
  declare const ServiceListConnect: React.FC<ServiceListConnectProps>;
6
8
  export default ServiceListConnect;
@@ -1,3 +1,6 @@
1
1
  import * as React from 'react';
2
- declare const ServiceOptionsButton: React.FC;
2
+ interface ServiceOptionsButtonProps {
3
+ mapId: string;
4
+ }
5
+ declare const ServiceOptionsButton: React.FC<ServiceOptionsButtonProps>;
3
6
  export default ServiceOptionsButton;
@@ -1,8 +1,18 @@
1
1
  import * as React from 'react';
2
- import { ActiveServiceObject } from '../../../../store/layerSelect/types';
2
+ import { ActiveServices } from '../../../../store/layerSelect/types';
3
+ import { PopupVariant } from '../ServicePopup/ServicePopup';
4
+ import { ReduxLayer } from '../../../../store/mapStore/types';
3
5
  interface ServiceOptionsDialogProps {
4
- services: Record<string, ActiveServiceObject>;
5
- mapStoreRemoveService?: (serviceId: string, serviceUrl: string) => void;
6
+ services: ActiveServices;
7
+ layerSelectRemoveService?: (serviceId: string, serviceUrl: string) => void;
8
+ selectedLayers: ReduxLayer[];
9
+ setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
10
+ }
11
+ export interface ServicePopupInfo {
12
+ isOpen: boolean;
13
+ serviceId?: string;
14
+ serviceUrl?: string;
15
+ popupVariant?: PopupVariant;
6
16
  }
7
17
  declare const ServiceOptionsDialog: React.FC<ServiceOptionsDialogProps>;
8
18
  export default ServiceOptionsDialog;
@@ -6,8 +6,20 @@ export default _default;
6
6
  export declare const ServiceOptionsDialogLight: {
7
7
  (): React.ReactElement;
8
8
  storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
9
15
  };
10
16
  export declare const ServiceOptionsDialogDark: {
11
17
  (): React.ReactElement;
12
18
  storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
13
25
  };
@@ -1,3 +1,8 @@
1
1
  import * as React from 'react';
2
- declare const ServiceOptionsDialogConnect: React.FC;
2
+ import { ServicePopupInfo } from './ServiceOptionsDialog';
3
+ interface ServiceOptionsDialogConnectProps {
4
+ mapId?: string;
5
+ setServicePopupInfo?: (popupInfo: ServicePopupInfo) => void;
6
+ }
7
+ declare const ServiceOptionsDialogConnect: React.FC<ServiceOptionsDialogConnectProps>;
3
8
  export default ServiceOptionsDialogConnect;
@@ -1,18 +1,24 @@
1
1
  import * as React from 'react';
2
2
  import { SetLayersForServicePayload } from '../../../../store/mapStore/types';
3
3
  import { ActiveServices } from '../../../../store/layerSelect/types';
4
- interface ServicePopupProps {
5
- servicePopupVariant: 'edit' | 'add' | 'save';
4
+ export declare type PopupVariant = 'edit' | 'add' | 'save' | 'show';
5
+ export interface ServicePopupProps {
6
+ servicePopupVariant: PopupVariant;
6
7
  hideBackdrop?: boolean;
7
8
  isOpen?: boolean;
8
9
  closePopup?: () => void;
9
10
  serviceId?: string;
10
- url?: string;
11
+ serviceUrl?: string;
12
+ serviceName?: string;
13
+ serviceAbstracts?: string;
11
14
  services?: ActiveServices;
12
15
  serviceSetLayers: (payload: SetLayersForServicePayload) => void;
16
+ showSnackbar?: (message: string) => void;
13
17
  }
14
18
  export declare const ADD_HEADING = "Add a new service";
15
19
  export declare const EDIT_HEADING = "Edit service";
16
20
  export declare const SAVE_HEADING = "Save service";
17
- declare const ServicePopup: React.FC<ServicePopupProps>;
18
- export default ServicePopup;
21
+ export declare const COPY_URL_MESSAGE = "Service URL copied to clipboard";
22
+ export declare const getSuccesMessage: (serviceName: string) => string;
23
+ declare const ServicePopupWrapper: React.FC<ServicePopupProps>;
24
+ export default ServicePopupWrapper;
@@ -1,13 +1,45 @@
1
1
  import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- };
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.FC<import("./ServicePopup").ServicePopupProps>>;
5
4
  export default _default;
6
- export declare const ServicePopupLight: {
7
- (): React.ReactElement;
5
+ export declare const ServicePopupAddLight: {
6
+ (): JSX.Element;
7
+ storyName: string;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ };
15
+ export declare const ServicePopupAddDark: {
16
+ (): JSX.Element;
17
+ storyName: string;
18
+ parameters: {
19
+ zeplinLink: {
20
+ name: string;
21
+ link: string;
22
+ }[];
23
+ };
24
+ };
25
+ export declare const ServicePopupShowLight: {
26
+ (): JSX.Element;
8
27
  storyName: string;
28
+ parameters: {
29
+ zeplinLink: {
30
+ name: string;
31
+ link: string;
32
+ }[];
33
+ };
9
34
  };
10
- export declare const ServicePopupDark: {
11
- (): React.ReactElement;
35
+ export declare const ServicePopupShowDark: {
36
+ (): JSX.Element;
12
37
  storyName: string;
38
+ parameters: {
39
+ zeplinLink: {
40
+ name: string;
41
+ link: string;
42
+ }[];
43
+ };
13
44
  };
45
+ export declare const ServicePopupWithInvalidUrl: () => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
+ import { PopupVariant } from './ServicePopup';
2
3
  interface ServicePopupConnectProps {
3
- servicePopupVariant: 'edit' | 'add' | 'save';
4
+ servicePopupVariant: PopupVariant;
4
5
  hideBackdrop?: boolean;
5
6
  isOpen?: boolean;
6
7
  closePopup?: () => void;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const ServicePopupConnectAdd: React.FC;
7
+ export declare const ServicePopupConnectShow: React.FC;
8
+ export declare const ServicePopupAddWithExistingServiceError: React.FC;
9
+ export declare const ServicePopupEdit: React.FC;
@@ -0,0 +1,8 @@
1
+ import { ActiveServices } from '../../../../store/layerSelect/types';
2
+ export declare type ValidationResult = string | boolean;
3
+ export declare const VALIDATIONS_NAME_EXISTING = "This name already exists. Choose another name.";
4
+ export declare const VALIDATIONS_SERVICE_EXISTING = "URL already exists.";
5
+ export declare const VALIDATIONS_SERVICE_VALID_URL = "Not a valid URL.";
6
+ export declare const VALIDATIONS_REQUEST_FAILED = "Download failed. Check the URL.";
7
+ export declare const validateServiceName: (value: string, services: ActiveServices, ownServiceName?: string) => ValidationResult;
8
+ export declare const validateServiceUrl: (value: string, services: ActiveServices) => ValidationResult;