@opengeoweb/core 9.8.0 → 9.9.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 +13 -5
- package/package.json +1 -1
- package/src/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +2 -2
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -6
- package/src/lib/components/LayerManager/ProjectionSelect/ProjectionSelect.d.ts +2 -2
- package/src/lib/components/TimeSliderLite/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepSelector.d.ts +1 -3
- package/src/lib/storybookUtils/HelperComponents.d.ts +2 -2
- package/src/lib/utils/jsonPresetFilter.d.ts +3 -1
package/index.esm.js
CHANGED
|
@@ -561,7 +561,9 @@ var HeaderOptions = function HeaderOptions(_ref) {
|
|
|
561
561
|
tooltipTitle: "small",
|
|
562
562
|
"data-testid": "collapseSmall-btn",
|
|
563
563
|
onClick: function onClick() {
|
|
564
|
-
if (
|
|
564
|
+
if (!isDockedLayerManager) {
|
|
565
|
+
onChangeSize(sizeSmall);
|
|
566
|
+
} else if (mapWidth && mapWidth > sizeSmall.width) {
|
|
565
567
|
onChangeSize(sizeSmall);
|
|
566
568
|
}
|
|
567
569
|
},
|
|
@@ -570,7 +572,9 @@ var HeaderOptions = function HeaderOptions(_ref) {
|
|
|
570
572
|
tooltipTitle: "medium",
|
|
571
573
|
"data-testid": "collapseMedium-btn",
|
|
572
574
|
onClick: function onClick() {
|
|
573
|
-
if (
|
|
575
|
+
if (!isDockedLayerManager) {
|
|
576
|
+
onChangeSize(sizeMedium);
|
|
577
|
+
} else if (mapWidth && mapWidth > sizeMedium.width) {
|
|
574
578
|
onChangeSize(sizeMedium);
|
|
575
579
|
}
|
|
576
580
|
},
|
|
@@ -579,7 +583,9 @@ var HeaderOptions = function HeaderOptions(_ref) {
|
|
|
579
583
|
tooltipTitle: "large",
|
|
580
584
|
"data-testid": "collapseLarge-btn",
|
|
581
585
|
onClick: function onClick() {
|
|
582
|
-
if (
|
|
586
|
+
if (!isDockedLayerManager) {
|
|
587
|
+
onChangeSize(sizeLarge);
|
|
588
|
+
} else if (mapWidth && mapWidth > sizeLarge.width) {
|
|
583
589
|
onChangeSize(sizeLarge);
|
|
584
590
|
}
|
|
585
591
|
},
|
|
@@ -7062,7 +7068,7 @@ var useHasSyncGroupWithLayerActions = function useHasSyncGroupWithLayerActions(s
|
|
|
7062
7068
|
var makeMapPreset = function makeMapPreset(timeIncrement, uniqueId, referenceTime, layers, syncGroupsIds, displayLayerManagerAndLegendButtonInMap, displayDimensionSelectButtonInMap) {
|
|
7063
7069
|
var mapTime = dateUtils.dateToString(dateUtils.add(dateUtils.utc(referenceTime), {
|
|
7064
7070
|
hours: timeIncrement
|
|
7065
|
-
}), "yyyy-MM-dd'T'HH:mm:ss'Z'");
|
|
7071
|
+
}), "yyyy-MM-dd'T'HH:mm:ss'Z'") || dateUtils.getCurrentTimeAsString();
|
|
7066
7072
|
return {
|
|
7067
7073
|
id: uniqueId,
|
|
7068
7074
|
syncGroupsIds: syncGroupsIds,
|
|
@@ -9651,7 +9657,9 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
|
|
|
9651
9657
|
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
9652
9658
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
9653
9659
|
* */
|
|
9654
|
-
var useOnToggleAnimation = function useOnToggleAnimation(
|
|
9660
|
+
var useOnToggleAnimation = function useOnToggleAnimation(
|
|
9661
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9662
|
+
dispatch, mapId, selectedTime, timeStep, defaultTimeStep, startTime, endTime, isAnimating, timeSliderProps) {
|
|
9655
9663
|
var startMapAnimation = function startMapAnimation() {
|
|
9656
9664
|
var _a, _b, _c;
|
|
9657
9665
|
var observedTimeStep = (_a = timeStep === null || timeStep === void 0 ? void 0 : timeStep[0]) !== null && _a !== void 0 ? _a : defaultTimeStep[0];
|
package/package.json
CHANGED
|
@@ -159,12 +159,8 @@ export declare const layerManagerStyle: {
|
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
161
|
export declare const returnCorrectSize: (sizeResult: mapTypes.DockedLayerManagerSize | undefined) => Size;
|
|
162
|
-
export type DimensionNameMappings =
|
|
163
|
-
|
|
164
|
-
};
|
|
165
|
-
export type DimensionValueMappings = {
|
|
166
|
-
[dimensionName: string]: (value: string, latest?: string) => string;
|
|
167
|
-
};
|
|
162
|
+
export type DimensionNameMappings = Record<string, string>;
|
|
163
|
+
export type DimensionValueMappings = Record<string, (value: string, latest?: string) => string>;
|
|
168
164
|
export interface LayerManagerCustomSettings {
|
|
169
165
|
toolbar?: {
|
|
170
166
|
dragHandle?: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Bbox } from '@opengeoweb/webmap';
|
|
3
|
-
export
|
|
3
|
+
export interface ProjectionDetails {
|
|
4
4
|
name: string;
|
|
5
5
|
value: string;
|
|
6
6
|
bbox: Bbox;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
export declare const availableProjections: ProjectionDetails[];
|
|
9
9
|
export interface ProjectionSelectProps {
|
|
10
10
|
currentProjection: string;
|
|
@@ -3,9 +3,7 @@ import React from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* TODO: Replace with actual translation keys
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
}
|
|
6
|
+
type TimeStepOptions = Record<string, string>;
|
|
9
7
|
export declare const defaultTimeStepOptions: TimeStepOptions;
|
|
10
8
|
interface CustomSelectProps extends SelectProps {
|
|
11
9
|
setValue: (value: number) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
|
|
3
|
+
interface ExampleLayer {
|
|
4
4
|
title: string;
|
|
5
5
|
layers: layerTypes.Layer[];
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
interface ActionCardProps {
|
|
8
8
|
onClickBtn?: (action: ExampleLayer) => void;
|
|
9
9
|
name: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
2
2
|
import { TimeSeriesService } from '@opengeoweb/shared';
|
|
3
|
-
import { filterLayers, layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import { filterLayers, layerTypes, MapPreset } from '@opengeoweb/store';
|
|
4
4
|
interface FilteredMapPresets extends filterLayers.FilteredLayerList {
|
|
5
5
|
services?: layerSelectTypes.LayerSelectService[];
|
|
6
6
|
baseServices?: layerSelectTypes.LayerSelectService[];
|
|
7
7
|
timeSeriesServices?: TimeSeriesService[];
|
|
8
|
+
initialViewMapPreset?: MapPreset;
|
|
8
9
|
}
|
|
9
10
|
export interface InitialAppPresetProps {
|
|
10
11
|
presetType?: string;
|
|
@@ -15,6 +16,7 @@ export interface InitialAppPresetProps {
|
|
|
15
16
|
baseServices?: layerSelectTypes.LayerSelectService[];
|
|
16
17
|
layers?: layerTypes.Layer[];
|
|
17
18
|
baseLayers?: layerTypes.Layer[];
|
|
19
|
+
initialViewMapPreset?: MapPreset;
|
|
18
20
|
}
|
|
19
21
|
export interface InitialAppPreset {
|
|
20
22
|
preset: InitialAppPresetProps;
|