@map-colonies/react-components 4.10.4 → 4.12.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 (73) hide show
  1. package/dist/@map-colonies/react-components.es.js +3103 -2688
  2. package/dist/@map-colonies/react-components.umd.js +25 -20
  3. package/dist/animated/animated-values-provider.d.ts +13 -0
  4. package/dist/animated/index.d.ts +1 -0
  5. package/dist/autocomplete/autocomplete.css +1 -1
  6. package/dist/cesium-map/active-layers/active-layers-panel.css +35 -0
  7. package/dist/cesium-map/active-layers/active-layers-panel.d.ts +8 -0
  8. package/dist/cesium-map/active-layers/active-layers-widget.d.ts +8 -0
  9. package/dist/cesium-map/base-map/base-map-widget.d.ts +11 -0
  10. package/dist/cesium-map/base-map/base-maps-panel.d.ts +9 -0
  11. package/dist/cesium-map/base-map/cesium-item.d.ts +9 -0
  12. package/dist/cesium-map/base-map/terrains-panel.d.ts +8 -0
  13. package/dist/cesium-map/data-sources/drawings.data-source.d.ts +1 -1
  14. package/dist/cesium-map/debug/{debug-panel.d.ts → wfs-debug-widget.d.ts} +3 -4
  15. package/dist/cesium-map/debug/wfs.css +7 -7
  16. package/dist/cesium-map/debug/wfs.d.ts +1 -1
  17. package/dist/cesium-map/geocoder/geocoder-panel.css +93 -0
  18. package/dist/cesium-map/geocoder/geocoder-panel.d.ts +37 -0
  19. package/dist/cesium-map/geocoder/geocoder-widget.d.ts +10 -0
  20. package/dist/cesium-map/helpers/constants.d.ts +5 -0
  21. package/dist/cesium-map/{tools → helpers}/draw/drawHelper.css +1 -1
  22. package/dist/cesium-map/helpers/utils.d.ts +10 -2
  23. package/dist/cesium-map/layers/wfs.layer.d.ts +1 -0
  24. package/dist/cesium-map/layers-manager.d.ts +5 -3
  25. package/dist/cesium-map/legend/index.d.ts +3 -0
  26. package/dist/cesium-map/{map-legend/MapLegend.d.ts → legend/legend-item.d.ts} +2 -2
  27. package/dist/cesium-map/{map-legend/MapLegendList.d.ts → legend/legend-list.d.ts} +3 -3
  28. package/dist/cesium-map/{map-legend/MapLegendSidebar.d.ts → legend/legend-sidebar.d.ts} +3 -3
  29. package/dist/cesium-map/legend/legend-widget.d.ts +5 -0
  30. package/dist/cesium-map/{map-legend/MapLegend.css → legend/legend.css} +20 -26
  31. package/dist/cesium-map/map.css +248 -28
  32. package/dist/cesium-map/map.d.ts +27 -8
  33. package/dist/cesium-map/tools/cesium-compass.tool.css +7 -7
  34. package/dist/cesium-map/tools/cesium-compass.tool.d.ts +2 -2
  35. package/dist/cesium-map/tools/coordinates-tracker.tool.css +3 -5
  36. package/dist/cesium-map/tools/index.d.ts +3 -4
  37. package/dist/cesium-map/tools/inspector.tool.d.ts +1 -3
  38. package/dist/cesium-map/tools/scale-tracker.tool.css +6 -4
  39. package/dist/cesium-map/tools/zoom-buttons.css +31 -0
  40. package/dist/cesium-map/tools/{zoom_level-tracker.tool.css → zoom-level-tracker.tool.css} +6 -5
  41. package/dist/cesium-map/widget/cesium-button.d.ts +7 -0
  42. package/dist/cesium-map/widget/cesium-icon.d.ts +7 -0
  43. package/dist/cesium-map/widget/cesium-inspector.d.ts +9 -0
  44. package/dist/cesium-map/widget/cesium-title.d.ts +6 -0
  45. package/dist/cesium-map/widget/cesium-tool.d.ts +8 -0
  46. package/dist/circular-progress-bar/circular-progress-bar.d.ts +26 -0
  47. package/dist/circular-progress-bar/index.d.ts +1 -0
  48. package/dist/index.d.ts +3 -1
  49. package/dist/multi-selection/index.d.ts +1 -0
  50. package/dist/{multiSelection/multiSelection.d.ts → multi-selection/multi-selection.d.ts} +5 -5
  51. package/dist/theme/theme.d.ts +4 -1
  52. package/dist/utils/config.d.ts +1 -0
  53. package/package.json +7 -2
  54. package/dist/cesium-map/debug/debug-panel.css +0 -30
  55. package/dist/cesium-map/map-legend/MapLegendToggle.d.ts +0 -6
  56. package/dist/cesium-map/map-legend/index.d.ts +0 -3
  57. package/dist/cesium-map/settings/base-maps.css +0 -37
  58. package/dist/cesium-map/settings/base-maps.d.ts +0 -6
  59. package/dist/cesium-map/settings/scene-modes.css +0 -19
  60. package/dist/cesium-map/settings/scene-modes.d.ts +0 -6
  61. package/dist/cesium-map/settings/settings.css +0 -57
  62. package/dist/cesium-map/settings/settings.d.ts +0 -23
  63. package/dist/cesium-map/zoom/zoomButtons.css +0 -35
  64. package/dist/multiSelection/index.d.ts +0 -1
  65. /package/dist/cesium-map/{tools → helpers}/draw/drawHelper.d.ts +0 -0
  66. /package/dist/cesium-map/{tools/geojson/geojson-to-primitive.d.ts → helpers/geojson/geojsonToPrimitive.d.ts} +0 -0
  67. /package/dist/cesium-map/{tools → helpers}/geojson/index.d.ts +0 -0
  68. /package/dist/cesium-map/{tools → helpers}/geojson/point.geojson.d.ts +0 -0
  69. /package/dist/cesium-map/{tools → helpers}/geojson/polygon.geojson.d.ts +0 -0
  70. /package/dist/cesium-map/{tools → helpers}/geojson/rectangle.geojson.d.ts +0 -0
  71. /package/dist/cesium-map/{tools/cesium/primitives-conversions.cesium.d.ts → helpers/primitivesConversionsCesium.d.ts} +0 -0
  72. /package/dist/cesium-map/{zoom/zoomButtons.d.ts → tools/zoom-buttons.d.ts} +0 -0
  73. /package/dist/cesium-map/tools/{zoom_level-tracker.tool.d.ts → zoom-level-tracker.tool.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@map-colonies/react-components",
3
- "version": "4.10.4",
3
+ "version": "4.12.0",
4
4
  "main": "./dist/@map-colonies/react-components.umd.js",
5
5
  "module": "./dist/@map-colonies/react-components.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -34,6 +34,7 @@
34
34
  "@turf/bbox-polygon": "^6.0.1",
35
35
  "@turf/boolean-contains": "^6.5.0",
36
36
  "@turf/boolean-point-in-polygon": "^6.5.0",
37
+ "@turf/boolean-valid": "^7.2.0",
37
38
  "@turf/centroid": "^7.2.0",
38
39
  "@turf/helpers": "^6.1.4",
39
40
  "@turf/intersect": "^6.1.3",
@@ -52,10 +53,14 @@
52
53
  "ol": "^6.4.3",
53
54
  "ol-ext": "^4.0.18",
54
55
  "p-map": "6.0.0",
56
+ "react-circular-progressbar": "^2.2.0",
55
57
  "react-datepicker": "^4.16.0",
58
+ "react-move": "^6.5.0",
59
+ "react-rxjs": "^2.0.8",
56
60
  "react-select": "5.7.3",
57
61
  "resium": "1.16.1",
58
62
  "rimraf": "3.0.2",
63
+ "rxjs": "^7.8.1",
59
64
  "textarea-caret": "^3.1.0",
60
65
  "uuid": "^11.1.0"
61
66
  },
@@ -81,5 +86,5 @@
81
86
  "files": [
82
87
  "dist"
83
88
  ],
84
- "gitHead": "b009a331d8bd7f54776ee43305e052d006e7ccaa"
89
+ "gitHead": "0c38a154c2476251e83c79676efdd1f85676e18c"
85
90
  }
@@ -1,30 +0,0 @@
1
- .debugPanel {
2
- transform: translateZ(0);
3
- height: calc(100vh - 220px);
4
- max-height: 460px;
5
- width: 280px;
6
- position: absolute;
7
- top: 44px;
8
- right: 110px;
9
- /* color: #AFBFDA;
10
- background: #2D3748;
11
- padding: 20px 24px; */
12
- }
13
-
14
- .debugPanel .mdc-dialog__container {
15
- align-items: unset;
16
- }
17
-
18
- .debugPanel .mdc-dialog .mdc-dialog__surface {
19
- max-height: unset;
20
- }
21
-
22
- body[dir='rtl'] .debugPanel {
23
- left: 110px;
24
- right: unset;
25
- }
26
-
27
- .debugPanel .title {
28
- text-align: center;
29
- font-size: 16px;
30
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface MapLegendProps {
3
- onClick: () => void;
4
- }
5
- export declare const MapLegendToggle: React.FC<MapLegendProps>;
6
- export {};
@@ -1,3 +0,0 @@
1
- export * from './MapLegendToggle';
2
- export * from './MapLegendSidebar';
3
- export type { IMapLegend } from './MapLegend';
@@ -1,37 +0,0 @@
1
- .mapSelector {
2
- width: 260px;
3
- list-style: none;
4
- padding-left: 0;
5
- display: flex;
6
- flex-wrap: wrap;
7
- grid-gap: 4px;
8
- min-height: 140px;
9
- margin-block-start: 0px;
10
- padding-inline-start: 0px;
11
- }
12
-
13
- .mapContainer {
14
- }
15
-
16
- .mapContainerSelected {
17
- border: blueviolet 2px solid !important;
18
- border-radius: 2px;
19
- }
20
-
21
- .mapContainer:hover {
22
- border: tomato 2px solid;
23
- border-radius: 2px;
24
- }
25
-
26
- .mapContainerImg {
27
- width: 100%;
28
- height: 100%;
29
- }
30
-
31
- .mapLabel {
32
- font-size: 12px;
33
- }
34
-
35
- .mapLabel::before {
36
- content: '\00a0';
37
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { IBaseMaps } from './settings';
3
- export interface RCesiumBaseMapsProps {
4
- baseMaps?: IBaseMaps;
5
- }
6
- export declare const CesiumBaseMaps: React.FC<RCesiumBaseMapsProps>;
@@ -1,19 +0,0 @@
1
- .mapViewIcon {
2
- fill: #fff;
3
- width: 40px;
4
- height: 40px;
5
- background: #303336;
6
- border: 1px solid #444;
7
- border-radius: 4px;
8
- }
9
-
10
- .mapViewIcon:hover {
11
- background: #48b;
12
- border-color: #aef;
13
- }
14
-
15
- .mapViewCurrent {
16
- fill: #aef;
17
- border: 1px solid #aef;
18
- border-radius: 4px;
19
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { CesiumSceneMode } from '../proxied.types';
3
- export interface RCesiumSceneModesProps {
4
- sceneModes: typeof CesiumSceneMode[];
5
- }
6
- export declare const CesiumSceneModes: React.FC<RCesiumSceneModesProps>;
@@ -1,57 +0,0 @@
1
- .mapScenesContainer {
2
- display: flex;
3
- gap: 8px;
4
- }
5
-
6
- .settingsIconContainer,
7
- .mapLegendToggleContainer,
8
- .debugPanelIconContainer {
9
- fill: #fff;
10
- width: 40px;
11
- height: 40px;
12
- background: #303336;
13
- border: 1px solid #444;
14
- border-radius: 4px;
15
- }
16
-
17
- .settingsIconContainer:hover,
18
- .mapLegendToggleContainer:hover,
19
- .debugPanelIconContainer:hover {
20
- background: #48b;
21
- border-color: #aef;
22
- }
23
-
24
- .baseMapsContainer {
25
- margin-top: 12px;
26
- min-height: 58%;
27
- }
28
-
29
- .settingsDialogPortal {
30
- transform: translateZ(0);
31
- height: calc(100vh - 220px);
32
- max-height: 460px;
33
- width: 280px;
34
- position: absolute;
35
- top: 44px;
36
- right: 12px;
37
- /* color: #AFBFDA;
38
- background: #2D3748;
39
- padding: 20px 24px; */
40
- }
41
-
42
- .settingsDialogPortal .mdc-dialog__container {
43
- align-items: unset;
44
- }
45
-
46
- .settingsDialogPortal .mdc-dialog .mdc-dialog__surface {
47
- max-height: unset;
48
- }
49
-
50
- body[dir='rtl'] .settingsDialogPortal {
51
- left: 12px;
52
- right: unset;
53
- }
54
-
55
- .sectionLabel {
56
- margin-block-end: 0.5em;
57
- }
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { IRasterLayer, IVectorLayer } from '../layers-manager';
3
- import { CesiumSceneMode } from '../proxied.types';
4
- export interface IBaseMap {
5
- id: string;
6
- title?: string;
7
- thumbnail?: string;
8
- isCurrent?: boolean;
9
- isForPreview?: boolean;
10
- baseRasteLayers: IRasterLayer[];
11
- baseVectorLayers: IVectorLayer[];
12
- }
13
- export interface IBaseMaps {
14
- maps: IBaseMap[];
15
- }
16
- export interface RCesiumMapProps {
17
- sceneModes: typeof CesiumSceneMode[];
18
- baseMaps?: IBaseMaps;
19
- locale?: {
20
- [key: string]: string;
21
- };
22
- }
23
- export declare const CesiumSettings: React.FC<RCesiumMapProps>;
@@ -1,35 +0,0 @@
1
- .zoom-buttons-container {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 2px;
5
- --full-screen-button-offset: 8px;
6
- --full-screen-button-size: 29px;
7
- --full-screen-button-bottom: 8px;
8
- position: absolute;
9
- bottom: calc(var(--full-screen-button-offset) + var(--full-screen-button-size) + var(--full-screen-button-bottom));
10
- right: var(--full-screen-button-offset);
11
- left: unset;
12
- }
13
-
14
- body[dir='rtl'] .zoom-buttons-container {
15
- left: var(--full-screen-button-offset);
16
- right: unset;
17
- }
18
-
19
- .zoom-button {
20
- cursor: pointer;
21
- width: 29px;
22
- height: 29px;
23
- background: #303336;
24
- border: 1px solid #444;
25
- border-radius: 4px;
26
- box-sizing: border-box;
27
- display: flex;
28
- justify-content: center;
29
- padding: 4px;
30
- }
31
-
32
- .zoom-button:hover {
33
- background: #48b;
34
- border-color: #aef;
35
- }
@@ -1 +0,0 @@
1
- export * from './multiSelection';