@opengeoweb/core 4.17.0 → 4.18.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 (34) hide show
  1. package/index.esm.js +1425 -778
  2. package/index.umd.js +1410 -722
  3. package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +4 -2
  4. package/lib/components/LayerManager/LayerManager.custom.stories.d.ts +6 -0
  5. package/lib/components/LayerManager/LayerManager.d.ts +1 -0
  6. package/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +1 -0
  7. package/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +11 -0
  8. package/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.spec.d.ts +1 -0
  9. package/lib/components/LayerManager/useFetchServices.d.ts +2 -0
  10. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +4 -2
  11. package/lib/components/SyncGroups/utils.d.ts +6 -4
  12. package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +1 -0
  13. package/lib/index.d.ts +4 -3
  14. package/lib/store/generic/sagas.d.ts +1 -1
  15. package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
  16. package/lib/store/generic/types.d.ts +2 -2
  17. package/lib/store/layerSelect/reducer.d.ts +2 -3
  18. package/lib/store/layerSelect/sagas.d.ts +1 -2
  19. package/lib/store/layerSelect/types.d.ts +0 -10
  20. package/lib/store/mapStore/layers/selectors.d.ts +3 -3
  21. package/lib/store/mapStore/layers/types.d.ts +2 -1
  22. package/lib/store/mapStore/map/reducer.d.ts +3 -3
  23. package/lib/store/mapStore/map/selectors.d.ts +73 -35
  24. package/lib/store/mapStore/map/types.d.ts +9 -3
  25. package/lib/store/mapStore/map/utils.d.ts +4 -3
  26. package/lib/store/mapStore/service/reducer.d.ts +2 -1
  27. package/lib/store/mapStore/service/sagas.d.ts +7 -0
  28. package/lib/store/mapStore/service/sagas.spec.d.ts +1 -0
  29. package/lib/store/mapStore/service/types.d.ts +10 -0
  30. package/lib/store/ui/reducer.d.ts +3 -1
  31. package/lib/store/ui/selectors.d.ts +12 -0
  32. package/lib/store/ui/types.d.ts +5 -0
  33. package/lib/storybookUtils/defaultStorySettings.d.ts +0 -1
  34. package/package.json +6 -6
@@ -10,7 +10,7 @@ import { UIStoreType } from '../../ui/types';
10
10
  * @param {string} mapId Id of the map
11
11
  * @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
12
12
  */
13
- export declare const getMapById: (store: AppStore, mapId: string) => WebMap;
13
+ export declare const getMapById: (store: AppStore | undefined, mapId: string) => WebMap | undefined;
14
14
  /**
15
15
  * Gets all mapIds
16
16
  *
@@ -89,7 +89,7 @@ export declare const getLayerIds: ((state: {
89
89
  services?: import("../types").ServiceState | undefined;
90
90
  layers?: import("../types").LayerState | undefined;
91
91
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
92
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
92
+ } | undefined, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => string[]) & {
93
93
  clearCache: () => void;
94
94
  }> & {
95
95
  clearCache: () => void;
@@ -129,7 +129,7 @@ export declare const getMapBaseLayersIds: ((state: {
129
129
  services?: import("../types").ServiceState | undefined;
130
130
  layers?: import("../types").LayerState | undefined;
131
131
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
132
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
132
+ } | undefined, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => string[]) & {
133
133
  clearCache: () => void;
134
134
  }> & {
135
135
  clearCache: () => void;
@@ -169,7 +169,7 @@ export declare const getMapOverLayersIds: ((state: {
169
169
  services?: import("../types").ServiceState | undefined;
170
170
  layers?: import("../types").LayerState | undefined;
171
171
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
172
- }, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap) => string[]) & {
172
+ } | undefined, params_0: string) => string[]) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => string[]) & {
173
173
  clearCache: () => void;
174
174
  }> & {
175
175
  clearCache: () => void;
@@ -209,7 +209,7 @@ export declare const getMapDimensions: ((state: {
209
209
  services?: import("../types").ServiceState | undefined;
210
210
  layers?: import("../types").LayerState | undefined;
211
211
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
212
- }, params_0: string) => import("./types").Dimension[] | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap) => import("./types").Dimension[] | undefined) & {
212
+ } | undefined, params_0: string) => import("./types").Dimension[] | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => import("./types").Dimension[] | undefined) & {
213
213
  clearCache: () => void;
214
214
  }> & {
215
215
  clearCache: () => void;
@@ -230,7 +230,7 @@ export declare const getMapDimension: ((state: {
230
230
  services?: import("../types").ServiceState | undefined;
231
231
  layers?: import("../types").LayerState | undefined;
232
232
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
233
- }, params_0: string, params_1: string) => import("./types").Dimension | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap, args_1: string) => import("./types").Dimension | undefined) & {
233
+ }, params_0: string, params_1: string) => import("./types").Dimension | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined, args_1: string) => import("./types").Dimension | undefined) & {
234
234
  clearCache: () => void;
235
235
  }> & {
236
236
  clearCache: () => void;
@@ -250,7 +250,7 @@ export declare const getSrs: ((state: {
250
250
  services?: import("../types").ServiceState | undefined;
251
251
  layers?: import("../types").LayerState | undefined;
252
252
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
253
- }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
253
+ } | undefined, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
254
254
  clearCache: () => void;
255
255
  }> & {
256
256
  clearCache: () => void;
@@ -270,7 +270,7 @@ export declare const getBbox: ((state: {
270
270
  services?: import("../types").ServiceState | undefined;
271
271
  layers?: import("../types").LayerState | undefined;
272
272
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
273
- }, params_0: string) => Bbox) & import("reselect").OutputSelectorFields<((args_0: WebMap) => Bbox) & {
273
+ } | undefined, params_0: string) => Bbox) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => Bbox) & {
274
274
  clearCache: () => void;
275
275
  }> & {
276
276
  clearCache: () => void;
@@ -290,7 +290,7 @@ export declare const isAnimating: ((state: {
290
290
  services?: import("../types").ServiceState | undefined;
291
291
  layers?: import("../types").LayerState | undefined;
292
292
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
293
- }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
293
+ } | undefined, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => boolean & {
294
294
  clearCache: () => void;
295
295
  }> & {
296
296
  clearCache: () => void;
@@ -339,7 +339,7 @@ export declare const getAnimationStartTime: ((state: {
339
339
  services?: import("../types").ServiceState | undefined;
340
340
  layers?: import("../types").LayerState | undefined;
341
341
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
342
- }, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
342
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
343
343
  clearCache: () => void;
344
344
  }> & {
345
345
  clearCache: () => void;
@@ -359,7 +359,7 @@ export declare const getAnimationEndTime: ((state: {
359
359
  services?: import("../types").ServiceState | undefined;
360
360
  layers?: import("../types").LayerState | undefined;
361
361
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
362
- }, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
362
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
363
363
  clearCache: () => void;
364
364
  }> & {
365
365
  clearCache: () => void;
@@ -379,7 +379,7 @@ export declare const isAutoUpdating: ((state: {
379
379
  services?: import("../types").ServiceState | undefined;
380
380
  layers?: import("../types").LayerState | undefined;
381
381
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
382
- }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
382
+ } | undefined, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => boolean & {
383
383
  clearCache: () => void;
384
384
  }> & {
385
385
  clearCache: () => void;
@@ -399,7 +399,7 @@ export declare const isEndTimeOverriding: ((state: {
399
399
  services?: import("../types").ServiceState | undefined;
400
400
  layers?: import("../types").LayerState | undefined;
401
401
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
402
- }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap) => boolean & {
402
+ } | undefined, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => boolean & {
403
403
  clearCache: () => void;
404
404
  }> & {
405
405
  clearCache: () => void;
@@ -418,7 +418,45 @@ export declare const getActiveLayerId: ((state: {
418
418
  services?: import("../types").ServiceState | undefined;
419
419
  layers?: import("../types").LayerState | undefined;
420
420
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
421
- }, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
421
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
422
+ clearCache: () => void;
423
+ }> & {
424
+ clearCache: () => void;
425
+ };
426
+ /**
427
+ * Gets autoUpdateLayerId for map
428
+ *
429
+ * example: autoUpdateLayerId = getAutoUpdateLayerId(store, 'mapid_1')
430
+ * @param {object} store store: object - store object
431
+ * @param {string} mapId mapId: string - Id of the map
432
+ */
433
+ export declare const getAutoUpdateLayerId: ((state: {
434
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
435
+ ui?: UIStoreType | undefined;
436
+ webmap?: WebMapState | undefined;
437
+ services?: import("../types").ServiceState | undefined;
438
+ layers?: import("../types").LayerState | undefined;
439
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
440
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
441
+ clearCache: () => void;
442
+ }> & {
443
+ clearCache: () => void;
444
+ };
445
+ /**
446
+ * Gets autoUpdateLayerId for map
447
+ *
448
+ * example: autoUpdateLayerId = getAutoUpdateLayerId(store, 'mapid_1')
449
+ * @param {object} store store: object - store object
450
+ * @param {string} mapId mapId: string - Id of the map
451
+ */
452
+ export declare const getAutoTimeStepLayerId: ((state: {
453
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
454
+ ui?: UIStoreType | undefined;
455
+ webmap?: WebMapState | undefined;
456
+ services?: import("../types").ServiceState | undefined;
457
+ layers?: import("../types").LayerState | undefined;
458
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
459
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
422
460
  clearCache: () => void;
423
461
  }> & {
424
462
  clearCache: () => void;
@@ -438,7 +476,7 @@ export declare const getMapTimeSliderScale: ((state: {
438
476
  services?: import("../types").ServiceState | undefined;
439
477
  layers?: import("../types").LayerState | undefined;
440
478
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
441
- }, params_0: string) => Scale | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (Scale | undefined) & {
479
+ } | undefined, params_0: string) => Scale | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (Scale | undefined) & {
442
480
  clearCache: () => void;
443
481
  }> & {
444
482
  clearCache: () => void;
@@ -458,7 +496,7 @@ export declare const getMapTimeStep: ((state: {
458
496
  services?: import("../types").ServiceState | undefined;
459
497
  layers?: import("../types").LayerState | undefined;
460
498
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
461
- }, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
499
+ } | undefined, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
462
500
  clearCache: () => void;
463
501
  }> & {
464
502
  clearCache: () => void;
@@ -470,7 +508,7 @@ export declare const getMapTimeStepWithoutDefault: ((state: {
470
508
  services?: import("../types").ServiceState | undefined;
471
509
  layers?: import("../types").LayerState | undefined;
472
510
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
473
- }, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
511
+ } | undefined, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
474
512
  clearCache: () => void;
475
513
  }> & {
476
514
  clearCache: () => void;
@@ -490,7 +528,7 @@ export declare const getMapAnimationDelay: ((state: {
490
528
  services?: import("../types").ServiceState | undefined;
491
529
  layers?: import("../types").LayerState | undefined;
492
530
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
493
- }, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
531
+ } | undefined, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
494
532
  clearCache: () => void;
495
533
  }> & {
496
534
  clearCache: () => void;
@@ -510,7 +548,7 @@ export declare const getMapTimeSliderCenterTime: ((state: {
510
548
  services?: import("../types").ServiceState | undefined;
511
549
  layers?: import("../types").LayerState | undefined;
512
550
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
513
- }, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
551
+ } | undefined, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
514
552
  clearCache: () => void;
515
553
  }> & {
516
554
  clearCache: () => void;
@@ -531,7 +569,7 @@ export declare const getTimeSliderUnfilteredSelectedTime: ((state: {
531
569
  services?: import("../types").ServiceState | undefined;
532
570
  layers?: import("../types").LayerState | undefined;
533
571
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
534
- }, params_0: string) => number | null | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
572
+ } | undefined, params_0: string) => number | null | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
535
573
  clearCache: () => void;
536
574
  }> & {
537
575
  clearCache: () => void;
@@ -551,7 +589,7 @@ export declare const getMapTimeSliderSecondsPerPx: ((state: {
551
589
  services?: import("../types").ServiceState | undefined;
552
590
  layers?: import("../types").LayerState | undefined;
553
591
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
554
- }, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
592
+ } | undefined, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
555
593
  clearCache: () => void;
556
594
  }> & {
557
595
  clearCache: () => void;
@@ -571,7 +609,7 @@ export declare const getMapTimeSliderDataScaleToSecondsPerPx: ((state: {
571
609
  services?: import("../types").ServiceState | undefined;
572
610
  layers?: import("../types").LayerState | undefined;
573
611
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
574
- }, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => number & {
612
+ } | undefined, params_0: string) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => number & {
575
613
  clearCache: () => void;
576
614
  }> & {
577
615
  clearCache: () => void;
@@ -591,7 +629,7 @@ export declare const isTimestepAuto: ((state: {
591
629
  services?: import("../types").ServiceState | undefined;
592
630
  layers?: import("../types").LayerState | undefined;
593
631
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
594
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
632
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
595
633
  clearCache: () => void;
596
634
  }> & {
597
635
  clearCache: () => void;
@@ -611,7 +649,7 @@ export declare const isTimeSliderHoverOn: ((state: {
611
649
  services?: import("../types").ServiceState | undefined;
612
650
  layers?: import("../types").LayerState | undefined;
613
651
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
614
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
652
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
615
653
  clearCache: () => void;
616
654
  }> & {
617
655
  clearCache: () => void;
@@ -631,7 +669,7 @@ export declare const isZoomControlsVisible: ((state: {
631
669
  services?: import("../types").ServiceState | undefined;
632
670
  layers?: import("../types").LayerState | undefined;
633
671
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
634
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
672
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
635
673
  clearCache: () => void;
636
674
  }> & {
637
675
  clearCache: () => void;
@@ -651,7 +689,7 @@ export declare const isTimeSliderVisible: ((state: {
651
689
  services?: import("../types").ServiceState | undefined;
652
690
  layers?: import("../types").LayerState | undefined;
653
691
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
654
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
692
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
655
693
  clearCache: () => void;
656
694
  }> & {
657
695
  clearCache: () => void;
@@ -672,7 +710,7 @@ export declare const getIsLayerActiveLayer: ((state: {
672
710
  services?: import("../types").ServiceState | undefined;
673
711
  layers?: import("../types").LayerState | undefined;
674
712
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
675
- }, params_0: string, params_1: {}) => boolean) & import("reselect").OutputSelectorFields<(args_0: string | undefined, args_1: any) => boolean & {
713
+ } | undefined, params_0: string, params_1: {}) => boolean) & import("reselect").OutputSelectorFields<(args_0: string | undefined, args_1: any) => boolean & {
676
714
  clearCache: () => void;
677
715
  }> & {
678
716
  clearCache: () => void;
@@ -692,7 +730,7 @@ export declare const getMapIdFromLayerId: ((state: {
692
730
  services?: import("../types").ServiceState | undefined;
693
731
  layers?: import("../types").LayerState | undefined;
694
732
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
695
- }, params_0: string) => string) & import("reselect").OutputSelectorFields<((args_0: WebMapState, args_1: string) => string) & {
733
+ }, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<((args_0: WebMapState | undefined, args_1: string | undefined) => string) & {
696
734
  clearCache: () => void;
697
735
  }> & {
698
736
  clearCache: () => void;
@@ -734,7 +772,7 @@ export declare const getLayerIndexByLayerId: ((state: {
734
772
  services?: import("../types").ServiceState | undefined;
735
773
  layers?: import("../types").LayerState | undefined;
736
774
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
737
- }, params_0: string, params_1: {}) => number) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: string) => number) & {
775
+ }, params_0: string, params_1?: string | undefined) => number) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: string | undefined) => number) & {
738
776
  clearCache: () => void;
739
777
  }> & {
740
778
  clearCache: () => void;
@@ -794,7 +832,7 @@ export declare const getPinLocation: ((state: {
794
832
  services?: import("../types").ServiceState | undefined;
795
833
  layers?: import("../types").LayerState | undefined;
796
834
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
797
- }, params_0: string) => import("./types").MapLocation | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap) => import("./types").MapLocation | undefined) & {
835
+ } | undefined, params_0: string) => import("./types").MapLocation | undefined) & import("reselect").OutputSelectorFields<((args_0: WebMap | undefined) => import("./types").MapLocation | undefined) & {
798
836
  clearCache: () => void;
799
837
  }> & {
800
838
  clearCache: () => void;
@@ -814,7 +852,7 @@ export declare const getDisableMapPin: ((state: {
814
852
  services?: import("../types").ServiceState | undefined;
815
853
  layers?: import("../types").LayerState | undefined;
816
854
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
817
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
855
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
818
856
  clearCache: () => void;
819
857
  }> & {
820
858
  clearCache: () => void;
@@ -834,7 +872,7 @@ export declare const getDisplayMapPin: ((state: {
834
872
  services?: import("../types").ServiceState | undefined;
835
873
  layers?: import("../types").LayerState | undefined;
836
874
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
837
- }, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (boolean | undefined) & {
875
+ } | undefined, params_0: string) => boolean | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (boolean | undefined) & {
838
876
  clearCache: () => void;
839
877
  }> & {
840
878
  clearCache: () => void;
@@ -854,7 +892,7 @@ export declare const getLegendId: ((state: {
854
892
  services?: import("../types").ServiceState | undefined;
855
893
  layers?: import("../types").LayerState | undefined;
856
894
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
857
- }, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => string & {
895
+ } | undefined, params_0: string) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => string & {
858
896
  clearCache: () => void;
859
897
  }> & {
860
898
  clearCache: () => void;
@@ -874,7 +912,7 @@ export declare const getMapPreset: ((state: {
874
912
  services?: import("../types").ServiceState | undefined;
875
913
  layers?: import("../types").LayerState | undefined;
876
914
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
877
- }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: boolean, args_7: boolean, args_8: boolean | undefined, args_9: boolean | undefined, args_10: boolean | undefined, args_11: number, args_12: number | undefined, args_13: boolean | undefined, args_14: string | undefined, args_15: UIStoreType) => MapPreset) & {
915
+ }, params_0: string) => MapPreset) & import("reselect").OutputSelectorFields<((args_0: import("../types").ReduxLayer[], args_1: import("../types").ReduxLayer[], args_2: import("../types").ReduxLayer[], args_3: Bbox, args_4: string, args_5: string | undefined, args_6: string | undefined, args_7: string | undefined, args_8: boolean, args_9: boolean, args_10: boolean | undefined, args_11: boolean | undefined, args_12: boolean | undefined, args_13: number, args_14: number | undefined, args_15: boolean | undefined, args_16: string | undefined, args_17: UIStoreType) => MapPreset) & {
878
916
  clearCache: () => void;
879
917
  }> & {
880
918
  clearCache: () => void;
@@ -935,7 +973,7 @@ export declare const getDockedLayerManagerSize: ((state: {
935
973
  services?: import("../types").ServiceState | undefined;
936
974
  layers?: import("../types").LayerState | undefined;
937
975
  layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
938
- }, params_0: string) => import("./types").DockedLayerManagerSize | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (import("./types").DockedLayerManagerSize | undefined) & {
976
+ } | undefined, params_0: string) => import("./types").DockedLayerManagerSize | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => (import("./types").DockedLayerManagerSize | undefined) & {
939
977
  clearCache: () => void;
940
978
  }> & {
941
979
  clearCache: () => void;
@@ -25,7 +25,8 @@ export interface WebMap {
25
25
  overLayers: string[];
26
26
  featureLayers: string[];
27
27
  dimensions?: Dimension[];
28
- activeLayerId?: string;
28
+ autoUpdateLayerId?: string;
29
+ autoTimeStepLayerId?: string;
29
30
  timeSliderScale?: Scale;
30
31
  timeStep?: number;
31
32
  animationDelay?: number;
@@ -93,10 +94,13 @@ export declare enum MapActionOrigin {
93
94
  export interface MapPreset {
94
95
  layers?: Layer[];
95
96
  activeLayerId?: string;
97
+ autoTimeStepLayerId?: string;
98
+ autoUpdateLayerId?: string;
96
99
  proj?: {
97
100
  bbox: Bbox;
98
101
  srs: string;
99
102
  };
103
+ dimensions?: Dimension[];
100
104
  shouldAnimate?: boolean;
101
105
  shouldAutoUpdate?: boolean;
102
106
  showTimeSlider?: boolean;
@@ -150,9 +154,11 @@ export interface SetMapAnimationStopPayload {
150
154
  mapId: string;
151
155
  origin?: MapActionOrigin;
152
156
  }
153
- export interface SetActiveLayerIdPayload {
157
+ export interface SetAutoLayerIdPayload {
154
158
  mapId: string;
155
- layerId: string;
159
+ layerId?: string;
160
+ autoUpdateLayerId?: string;
161
+ autoTimeStepLayerId?: string;
156
162
  origin?: LayerActionOrigin | string;
157
163
  }
158
164
  export interface ToggleAutoUpdatePayload {
@@ -16,7 +16,8 @@ interface CreateMapProps {
16
16
  overLayers?: string[];
17
17
  featureLayers?: string[];
18
18
  dimensions?: Dimension[];
19
- activeLayerId?: string;
19
+ autoTimeStepLayerId?: string;
20
+ autoUpdateLayerId?: string;
20
21
  timeSliderScale?: Scale;
21
22
  timeStep?: number;
22
23
  animationDelay?: number;
@@ -30,7 +31,7 @@ interface CreateMapProps {
30
31
  disableMapPin?: boolean;
31
32
  shouldShowZoomControls?: boolean;
32
33
  }
33
- export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, activeLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
34
+ export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, isEndTimeOverriding, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderScale, timeStep, animationDelay, timeSliderCenterTime, timeSliderSecondsPerPx, timeSliderDataScaleToSecondsPerPx, isTimestepAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
34
35
  export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
35
36
  /**
36
37
  * This will get the map from the map draftstate.
@@ -54,7 +55,7 @@ export declare const produceDraftStateSetWebMapDimension: (draft: WebMapState, m
54
55
  * @param draft The WebMapState containing the state of all maps.
55
56
  * @param layerId The layer Id to find in the maps
56
57
  */
57
- export declare const findMapIdFromLayerId: (draft: WebMapState, layerId: string) => string;
58
+ export declare const findMapIdFromLayerId: (draft?: WebMapState | undefined, layerId?: string | undefined) => string;
58
59
  export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: WebMapState, layerId: string, dimension: Dimension) => void;
59
60
  /**
60
61
  * Returns array with new order of swapped elements
@@ -1,10 +1,11 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
2
+ import { FetchInitialServicesPayload, MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
3
3
  import { layerActions } from '../layers/reducer';
4
4
  export declare const initialState: ServiceState;
5
5
  export declare const reducer: import("redux").Reducer<ServiceState, import("redux").AnyAction>;
6
6
  export declare const serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
7
7
  serviceSetLayers: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
8
8
  mapStoreRemoveService: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
9
+ fetchInitialServices: (draft: import("immer/dist/internal").WritableDraft<ServiceState>, action: PayloadAction<FetchInitialServicesPayload>) => void;
9
10
  }>;
10
11
  export declare type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
@@ -0,0 +1,7 @@
1
+ import { SagaIterator } from 'redux-saga';
2
+ import { serviceActions } from './reducer';
3
+ import { SetLayersForServicePayload } from './types';
4
+ export declare function fetchServiceSaga(service: SetLayersForServicePayload): SagaIterator;
5
+ export declare function fetchInitialServicesSaga({ payload, }: ReturnType<typeof serviceActions.fetchInitialServices>): SagaIterator;
6
+ export declare function rootSaga(): SagaIterator;
7
+ export default rootSaga;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,11 @@
1
1
  import { LayerProps } from '@opengeoweb/webmap';
2
+ export interface InitialService {
3
+ id: string;
4
+ name: string;
5
+ serviceUrl: string;
6
+ scope?: ServiceScope;
7
+ abstract?: string;
8
+ }
2
9
  export interface Services {
3
10
  [key: string]: ReduxService;
4
11
  }
@@ -31,6 +38,9 @@ export interface MapStoreRemoveServicePayload {
31
38
  id: string;
32
39
  serviceUrl: string;
33
40
  }
41
+ export interface FetchInitialServicesPayload {
42
+ services: InitialService[];
43
+ }
34
44
  export interface ServiceFilterSettings {
35
45
  enabledServiceIds: string[];
36
46
  searchString: string;
@@ -1,5 +1,5 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
- import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
2
+ import { DialogType, SetActiveMapIdForDialogPayload, SetActiveWindowIdPayload, Source, UIOrderDialogPayload, UIRegisterDialogPayload, UISetDialogFocusedPayload, UISetErrorPayload, UIStoreType, UIToggleDialogPayload, UIToggleIsLoadingPayload, UIType, UIUnRegisterDialogPayload } from './types';
3
3
  interface CreateUIDialogElementProps {
4
4
  activeMapId: string;
5
5
  type: DialogType;
@@ -18,6 +18,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<UIStoreType, {
18
18
  setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
19
19
  toggleIsLoadingDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
20
20
  setErrorDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
21
+ setDialogFocused: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetDialogFocusedPayload>) => void;
21
22
  }, "uiReducer">;
22
23
  export declare const reducer: import("redux").Reducer<UIStoreType, import("redux").AnyAction>;
23
24
  export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
@@ -29,5 +30,6 @@ export declare const uiActions: import("@reduxjs/toolkit").CaseReducerActions<{
29
30
  setActiveWindowId: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<SetActiveWindowIdPayload>) => void;
30
31
  toggleIsLoadingDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UIToggleIsLoadingPayload>) => void;
31
32
  setErrorDialog: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetErrorPayload>) => void;
33
+ setDialogFocused: (draft: import("immer/dist/internal").WritableDraft<UIStoreType>, action: PayloadAction<UISetDialogFocusedPayload>) => void;
32
34
  }>;
33
35
  export {};
@@ -130,3 +130,15 @@ export declare const getDialogError: ((state: {
130
130
  }> & {
131
131
  clearCache: () => void;
132
132
  };
133
+ export declare const getDialogFocused: ((state: {
134
+ syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
135
+ ui?: UIStoreType | undefined;
136
+ webmap?: import("../mapStore/types").WebMapState | undefined;
137
+ services?: import("../mapStore/types").ServiceState | undefined;
138
+ layers?: import("../mapStore/types").LayerState | undefined;
139
+ layerSelect?: import("../layerSelect/types").LayerSelectStoreType | undefined;
140
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean & {
141
+ clearCache: () => void;
142
+ }> & {
143
+ clearCache: () => void;
144
+ };
@@ -22,6 +22,7 @@ export interface UIType {
22
22
  source?: Source;
23
23
  isLoading?: boolean;
24
24
  error?: string;
25
+ focused?: boolean;
25
26
  }
26
27
  export interface UIStoreType {
27
28
  order: DialogType[];
@@ -67,4 +68,8 @@ export interface UISetErrorPayload {
67
68
  type: DialogType;
68
69
  error: string;
69
70
  }
71
+ export interface UISetDialogFocusedPayload {
72
+ type: DialogType;
73
+ focused: boolean;
74
+ }
70
75
  export {};
@@ -13,7 +13,6 @@ export declare const handleLayerActionsCallback: (payload: DeleteLayerPayload |
13
13
  interface UseDefaultMapSettingsProps {
14
14
  mapId?: string;
15
15
  layers?: Layer[];
16
- activeLayerId?: string;
17
16
  baseLayers?: Layer[];
18
17
  bbox?: Bbox;
19
18
  srs?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "4.17.0",
3
+ "version": "4.18.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,9 +13,9 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
15
  "react": "^18.2.0",
16
- "@opengeoweb/shared": "4.17.0",
16
+ "@opengeoweb/shared": "4.18.0",
17
17
  "@mui/material": "^5.10.8",
18
- "@opengeoweb/theme": "4.17.0",
18
+ "@opengeoweb/theme": "4.18.0",
19
19
  "react-draggable": "^4.4.5",
20
20
  "re-resizable": "^6.9.0",
21
21
  "@redux-eggs/core": "^2.2.0",
@@ -24,16 +24,16 @@
24
24
  "axios": "^0.25.0",
25
25
  "date-fns": "^2.29.3",
26
26
  "moment": "^2.29.0",
27
- "@opengeoweb/webmap": "4.17.0",
27
+ "@opengeoweb/webmap": "4.18.0",
28
28
  "throttle-debounce": "^3.0.1",
29
29
  "proj4": "^2.6.2",
30
- "@opengeoweb/api": "4.17.0",
30
+ "@opengeoweb/api": "4.18.0",
31
31
  "react-intl": "^5.17.5",
32
32
  "react-sortablejs": "^6.1.4",
33
33
  "sortablejs": "^1.15.0",
34
34
  "immer": "^9.0.15",
35
35
  "react-window": "^1.8.7",
36
- "@opengeoweb/form-fields": "4.17.0",
36
+ "@opengeoweb/form-fields": "4.18.0",
37
37
  "react-hook-form": "^7.41.5",
38
38
  "moment-timezone": "^0.5.31",
39
39
  "@mui/x-date-pickers": "^5.0.4",