@opengeoweb/time-slider-lite 19.6.1 → 20.0.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 (2) hide show
  1. package/dist/index.esm.js +5 -5
  2. package/package.json +49 -49
package/dist/index.esm.js CHANGED
@@ -480,8 +480,7 @@ var generateCustomTimeList = function generateCustomTimeList(currentTime, startT
480
480
  forecastTimeList.push(forecastTimeListItem);
481
481
  time -= forecastTimeStep;
482
482
  }
483
- forecastTimeList.reverse();
484
- return [].concat(observedTimeList, forecastTimeList);
483
+ return [].concat(observedTimeList, forecastTimeList.slice().reverse());
485
484
  };
486
485
  var TickMode;
487
486
  (function (TickMode) {
@@ -636,11 +635,12 @@ var useTimesliderLiteTranslation = function useTimesliderLiteTranslation() {
636
635
  return useTranslation(TIME_SLIDER_LITE_NAMESPACE);
637
636
  };
638
637
 
638
+ var DEFAULT_SPEED_FACTOR = 4;
639
639
  var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
640
640
  var _useAnimationSpeed$;
641
641
  var dropdownButtonIcon = _ref.dropdownButtonIcon,
642
642
  _ref$speedOptions = _ref.speedOptions,
643
- speedOptions = _ref$speedOptions === void 0 ? speedFactors.sort(function (speedA, speedB) {
643
+ speedOptions = _ref$speedOptions === void 0 ? [].concat(speedFactors).sort(function (speedA, speedB) {
644
644
  return speedB - speedA;
645
645
  }) : _ref$speedOptions,
646
646
  _ref$speedOptionItemP = _ref.speedOptionItemPrefix,
@@ -649,7 +649,7 @@ var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
649
649
  speedOptionItemPostfix = _ref$speedOptionItemP2 === void 0 ? '' : _ref$speedOptionItemP2,
650
650
  defaultSpeedOptionPostfix = _ref.defaultSpeedOptionPostfix,
651
651
  _ref$defaultSpeedFact = _ref.defaultSpeedFactor,
652
- defaultSpeedFactor = _ref$defaultSpeedFact === void 0 ? speedFactors[2] : _ref$defaultSpeedFact,
652
+ defaultSpeedFactor = _ref$defaultSpeedFact === void 0 ? DEFAULT_SPEED_FACTOR : _ref$defaultSpeedFact,
653
653
  useAnimationSpeed = _ref.useAnimationSpeed;
654
654
  var _useTimesliderLiteTra = useTimesliderLiteTranslation(),
655
655
  t = _useTimesliderLiteTra.t;
@@ -1168,7 +1168,7 @@ var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1168
1168
  intervalOptionPostfix = _ref.intervalOptionPostfix,
1169
1169
  defaultOptionPostfix = _ref.defaultOptionPostfix,
1170
1170
  _ref$updateIntervalOp = _ref.updateIntervalOptions,
1171
- updateIntervalOptions = _ref$updateIntervalOp === void 0 ? defaultUpdateIntervalOptions.sort(function (optionA, optionB) {
1171
+ updateIntervalOptions = _ref$updateIntervalOp === void 0 ? defaultUpdateIntervalOptions.slice().sort(function (optionA, optionB) {
1172
1172
  return optionA - optionB;
1173
1173
  }) : _ref$updateIntervalOp,
1174
1174
  useUpdateInterval = _ref.useUpdateInterval;
package/package.json CHANGED
@@ -1,50 +1,50 @@
1
1
  {
2
- "name": "@opengeoweb/time-slider-lite",
3
- "version": "19.6.1",
4
- "description": "GeoWeb time-slider-lite library for the opengeoweb project",
5
- "license": "Apache-2.0",
6
- "repository": {
7
- "type": "git",
8
- "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
- },
10
- "main": "./dist/index.esm.js",
11
- "module": "./dist/index.esm.js",
12
- "types": "./dist/index.d.ts",
13
- "exports": {
14
- "./package.json": "./package.json",
15
- ".": {
16
- "@opengeoweb/source": "./src/index.ts",
17
- "types": "./dist/index.d.ts",
18
- "import": "./dist/index.esm.js",
19
- "default": "./dist/index.esm.js"
20
- }
21
- },
22
- "dependencies": {
23
- "@opengeoweb/shared": "*",
24
- "@opengeoweb/store": "*",
25
- "@opengeoweb/theme": "*",
26
- "@opengeoweb/time-slider": "*",
27
- "@opengeoweb/webmap": "*",
28
- "@reduxjs/toolkit": "^2.6.1",
29
- "i18next": "^25.0.1",
30
- "react-draggable": "^4.4.6",
31
- "react-i18next": "^15.1.1",
32
- "react-redux": "^9.2.0",
33
- "@mui/material": "^9.0.1",
34
- "@opengeoweb/core": "*"
35
- },
36
- "peerDependencies": {
37
- "react": "19",
38
- "@emotion/react": "*",
39
- "@emotion/styled": "*"
40
- },
41
- "devDependencies": {
42
- "eslint-plugin-storybook": "10.3.3"
43
- },
44
- "files": [
45
- "dist",
46
- "!dist/package.json",
47
- "README.md",
48
- "package.json"
49
- ]
50
- }
2
+ "name": "@opengeoweb/time-slider-lite",
3
+ "version": "20.0.0",
4
+ "description": "GeoWeb time-slider-lite library for the opengeoweb project",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
+ },
10
+ "main": "./dist/index.esm.js",
11
+ "module": "./dist/index.esm.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ "./package.json": "./package.json",
15
+ ".": {
16
+ "@opengeoweb/source": "./src/index.ts",
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.esm.js",
19
+ "default": "./dist/index.esm.js"
20
+ }
21
+ },
22
+ "dependencies": {
23
+ "@opengeoweb/shared": "20.0.0",
24
+ "@opengeoweb/store": "20.0.0",
25
+ "@opengeoweb/theme": "20.0.0",
26
+ "@opengeoweb/time-slider": "20.0.0",
27
+ "@opengeoweb/webmap": "20.0.0",
28
+ "@reduxjs/toolkit": "^2.6.1",
29
+ "i18next": "^25.0.1",
30
+ "react-draggable": "^4.4.6",
31
+ "react-i18next": "^15.1.1",
32
+ "react-redux": "^9.2.0",
33
+ "@mui/material": "^9.0.1",
34
+ "@opengeoweb/core": "20.0.0"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "19",
38
+ "@emotion/react": "*",
39
+ "@emotion/styled": "*"
40
+ },
41
+ "devDependencies": {
42
+ "eslint-plugin-storybook": "10.3.3"
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "!dist/package.json",
47
+ "README.md",
48
+ "package.json"
49
+ ]
50
+ }