@opengeoweb/time-slider-lite 14.4.0 → 14.5.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 +747 -743
- package/package.json +7 -7
- package/src/lib/components/TimeSliderLite/TimeSliderLite.d.ts +5 -4
- package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.d.ts +4 -4
- package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +3 -3
- package/src/lib/components/TimeSliderLite/useOnToggleAnimation.d.ts +2 -2
- package/src/lib/components/TimeSliderLiteBackground/TimeSliderDraggableNeedle.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackground.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteBackground/TimeSliderZeroTimestamp.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteButtons/ControlButtonGroup/ControlButtonGroup.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteButtons/HideButton/HideButton.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteButtons/MenuButton/MenuButton.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteButtons/PlayButton/PlayButton.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteButtons/StepButton/StepButton.d.ts +2 -2
- package/src/lib/components/TimeSliderLiteButtons/TimeSliderLiteButtonUtils.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteOptionsMenu/AnimationSpeedOptions/AnimationSpeedOptions.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteOptionsMenu/SubmenuSelectLabel.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteOptionsMenu/SubmenuWrapper.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteOptionsMenu/TimeRangeOptions/DayHourSelector.d.ts +1 -1
- package/src/lib/components/TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu.d.ts +6 -6
- package/src/lib/components/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepSelector.d.ts +1 -1
- package/src/lib/locales/i18n.d.ts +3 -2
- package/src/lib/testUtils/Providers.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/time-slider-lite",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.5.0",
|
|
4
4
|
"description": "GeoWeb time-slider-lite library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "14.
|
|
12
|
-
"@opengeoweb/store": "14.
|
|
13
|
-
"@opengeoweb/theme": "14.
|
|
14
|
-
"@opengeoweb/time-slider": "14.
|
|
15
|
-
"@opengeoweb/webmap": "14.
|
|
11
|
+
"@opengeoweb/shared": "14.5.0",
|
|
12
|
+
"@opengeoweb/store": "14.5.0",
|
|
13
|
+
"@opengeoweb/theme": "14.5.0",
|
|
14
|
+
"@opengeoweb/time-slider": "14.5.0",
|
|
15
|
+
"@opengeoweb/webmap": "14.5.0",
|
|
16
16
|
"@reduxjs/toolkit": "^2.6.1",
|
|
17
17
|
"i18next": "^25.0.1",
|
|
18
18
|
"react-draggable": "^4.4.6",
|
|
19
19
|
"react-i18next": "^15.1.1",
|
|
20
20
|
"react-redux": "^9.2.0",
|
|
21
21
|
"@mui/material": "^7.0.1",
|
|
22
|
-
"@opengeoweb/core": "14.
|
|
22
|
+
"@opengeoweb/core": "14.5.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "18",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { TimeSliderLiteCustomSettings } from './timeSliderLiteUtils';
|
|
5
|
+
import type { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
5
6
|
export interface TimeSliderLiteProps {
|
|
6
7
|
controlButtons?: ReactNode;
|
|
7
8
|
currentTime?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeSliderLiteProps } from './TimeSliderLite';
|
|
3
|
-
import { TimeSliderLiteHandleUpdateOptions } from './timeSliderLiteUtils';
|
|
4
|
-
import { TimeSliderLiteOptionsMenuProps } from '../TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu';
|
|
5
|
-
import { TimeZone, TimeZoneSwitchProps } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
2
|
+
import type { TimeSliderLiteProps } from './TimeSliderLite';
|
|
3
|
+
import type { TimeSliderLiteHandleUpdateOptions } from './timeSliderLiteUtils';
|
|
4
|
+
import type { TimeSliderLiteOptionsMenuProps } from '../TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu';
|
|
5
|
+
import type { TimeZone, TimeZoneSwitchProps } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
6
6
|
export declare const TIME_SLIDER_LITE_DEFAULT_TIME_RANGE: number;
|
|
7
7
|
export interface TimeSliderLiteConnectProps extends Partial<TimeSliderLiteProps> {
|
|
8
8
|
overrideUseTimeRange?: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { TimeZoneSwitchProps } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
1
|
+
import type { ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { layerTypes } from '@opengeoweb/store';
|
|
3
|
+
import type { TimeZoneSwitchProps } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
4
4
|
export declare const DAY_TO_MILLISECOND: number;
|
|
5
5
|
export declare const DAY_TO_SECOND = 86400;
|
|
6
6
|
export declare const HOUR_TO_SECOND = 3600;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UnknownAction, Dispatch } from '@reduxjs/toolkit';
|
|
2
|
-
import { TimeSliderLiteProps } from './TimeSliderLite';
|
|
1
|
+
import type { UnknownAction, Dispatch } from '@reduxjs/toolkit';
|
|
2
|
+
import type { TimeSliderLiteProps } from './TimeSliderLite';
|
|
3
3
|
export declare const useOnToggleAnimation: (dispatch: Dispatch<UnknownAction>, mapId: string, selectedTime: number, timeStep: [number, number] | null, defaultTimeStep: [number, number], startTime: number, endTime: number, isAnimating: boolean, timeSliderProps: Partial<TimeSliderLiteProps>) => ((forceAnimationStart?: boolean) => void);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
2
|
+
import type { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
3
3
|
interface Props {
|
|
4
4
|
draggableLabel?: boolean;
|
|
5
5
|
width: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
2
|
+
import type { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
3
3
|
interface TimeSliderLiteBackgroundProps {
|
|
4
4
|
height: number;
|
|
5
5
|
draggableTimeStamp?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
2
|
+
import type { TimeZone } from '../TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch';
|
|
3
3
|
interface Props {
|
|
4
4
|
timeZone?: TimeZone;
|
|
5
5
|
currentTime?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
2
|
+
import type { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
3
3
|
export interface HideButtonProps {
|
|
4
4
|
isVisible?: boolean;
|
|
5
5
|
settings?: TimeSliderLiteCustomSettings['hideButton'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
2
|
+
import type { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
3
3
|
interface Props {
|
|
4
4
|
menuOpen?: boolean;
|
|
5
5
|
onClick?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
2
|
+
import type { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
3
3
|
export interface PlayButtonProps {
|
|
4
4
|
isAnimating?: boolean;
|
|
5
5
|
isDisabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TimeSliderLiteCustomSettings } from '../../TimeSliderLite/timeSliderLiteUtils';
|
|
3
3
|
export interface StepButtonProps {
|
|
4
4
|
forward?: boolean;
|
|
5
5
|
isDisabled?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconButtonProps } from '@mui/material';
|
|
1
|
+
import type { IconButtonProps } from '@mui/material';
|
|
2
2
|
export declare const timeSliderLiteButtonDefaultProps: IconButtonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
3
3
|
export interface AnimationSpeedSelectorProps {
|
|
4
4
|
dropdownButtonIcon?: React.ElementType;
|
|
5
5
|
speedOptions?: SpeedFactorType[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SxProps } from '@mui/material';
|
|
1
|
+
import type { SxProps } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { TimeRangeOptionsProps } from './TimeRangeOptions/TimeRangeOptions';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import type { AnimationSpeedSelectorProps } from './AnimationSpeedOptions/AnimationSpeedOptions';
|
|
4
|
+
import type { TimeRangeOptionsProps } from './TimeRangeOptions/TimeRangeOptions';
|
|
5
|
+
import type { TimeStepOptionsProps } from './TimeStepOptions/TimeStepOptions';
|
|
6
|
+
import type { TimeZoneSwitchProps } from './TimeZoneSwitch/TimeZoneSwitch';
|
|
7
|
+
import type { UpdateIntervalOptionsProps } from './UpdateIntervalOptions/UpdateIntervalOptions';
|
|
8
8
|
export interface TimeSliderLiteOptionsMenuProps extends TimeStepOptionsProps, TimeRangeOptionsProps, AnimationSpeedSelectorProps, UpdateIntervalOptionsProps, TimeZoneSwitchProps {
|
|
9
9
|
closeButtonIcon?: React.ReactNode;
|
|
10
10
|
defaultTimeStep: [number, number];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { UseTranslationResponse } from 'react-i18next';
|
|
3
1
|
import i18n from 'i18next';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { UseTranslationResponse } from 'react-i18next';
|
|
4
5
|
import translations from './translations.json';
|
|
5
6
|
export type TimeSliderLiteLanguage = keyof typeof translations;
|
|
6
7
|
export declare const TIME_SLIDER_LITE_NAMESPACE = "timesliderlite";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material';
|
|
2
|
+
import type { Store } from '@reduxjs/toolkit';
|
|
3
|
+
import type i18n from 'i18next';
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import i18n from 'i18next';
|
|
4
|
-
import { Store } from '@reduxjs/toolkit';
|
|
5
|
-
import { TimeSliderLiteLanguage } from '../locales/i18n';
|
|
5
|
+
import type { TimeSliderLiteLanguage } from '../locales/i18n';
|
|
6
6
|
interface BaseProviderProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
theme?: Theme;
|