@synerise/ds-date-range-picker 1.7.12 → 1.7.14
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/CHANGELOG.md +8 -0
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.js +1 -5
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.js +1 -5
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js +1 -8
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.7.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@1.7.13...@synerise/ds-date-range-picker@1.7.14) (2026-08-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-date-range-picker
|
|
9
|
+
|
|
10
|
+
## [1.7.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@1.7.12...@synerise/ds-date-range-picker@1.7.13) (2026-07-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-date-range-picker
|
|
13
|
+
|
|
6
14
|
## [1.7.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@1.7.11...@synerise/ds-date-range-picker@1.7.12) (2026-07-23)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
|
@@ -7,7 +7,6 @@ import Select from "@synerise/ds-select";
|
|
|
7
7
|
import { RANGES_MODE, RELATIVE_DURATION_MAX, RELATIVE_UNITS } from "../../../../constants.js";
|
|
8
8
|
import { Title, InputSelectGroup } from "../../../RelativeRangePicker.styles.js";
|
|
9
9
|
const setDurationType = set(lensPath(["duration", "type"]));
|
|
10
|
-
const SELECT_DROPDOWN_OFFSET = -4;
|
|
11
10
|
const DurationField = ({
|
|
12
11
|
currentGroup,
|
|
13
12
|
currentRange,
|
|
@@ -36,10 +35,7 @@ const DurationField = ({
|
|
|
36
35
|
}) => {
|
|
37
36
|
!value && handleDurationValueChange(1);
|
|
38
37
|
}, onChange: handleDurationValueChange, raw: true }),
|
|
39
|
-
/* @__PURE__ */ jsx(Select, { value: duration?.type, onChange: (type) => handleChange(setDurationType(type, currentRange)),
|
|
40
|
-
points: ["bl", "tl"],
|
|
41
|
-
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
42
|
-
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: (rangeUnits || RELATIVE_UNITS).map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
38
|
+
/* @__PURE__ */ jsx(Select, { value: duration?.type, onChange: (type) => handleChange(setDurationType(type, currentRange)), getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: (rangeUnits || RELATIVE_UNITS).map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
43
39
|
] })
|
|
44
40
|
] });
|
|
45
41
|
};
|
|
@@ -5,7 +5,6 @@ import Select from "@synerise/ds-select";
|
|
|
5
5
|
import { RANGES_MODE, RELATIVE_OFFSET_MAX, RELATIVE_UNITS } from "../../../../constants.js";
|
|
6
6
|
import { Title, InputSelectGroup } from "../../../RelativeRangePicker.styles.js";
|
|
7
7
|
import { setOffsetType } from "../CustomRangeForm.js";
|
|
8
|
-
const SELECT_DROPDOWN_OFFSET = -4;
|
|
9
8
|
const OffsetField = ({
|
|
10
9
|
handleOffsetValueChange,
|
|
11
10
|
currentGroup,
|
|
@@ -35,10 +34,7 @@ const OffsetField = ({
|
|
|
35
34
|
}) => {
|
|
36
35
|
!value && handleOffsetValueChange(0);
|
|
37
36
|
}, onChange: handleOffsetValueChange }),
|
|
38
|
-
/* @__PURE__ */ jsx(Select, { value: offset?.type, onChange: (type) => handleChange(setOffsetType(type, currentRange)),
|
|
39
|
-
points: ["bl", "tl"],
|
|
40
|
-
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
41
|
-
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: (rangeUnits || RELATIVE_UNITS).map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
37
|
+
/* @__PURE__ */ jsx(Select, { value: offset?.type, onChange: (type) => handleChange(setOffsetType(type, currentRange)), getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: (rangeUnits || RELATIVE_UNITS).map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
42
38
|
] })
|
|
43
39
|
] });
|
|
44
40
|
};
|
package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js
CHANGED
|
@@ -3,7 +3,6 @@ import InputNumber from "@synerise/ds-input-number";
|
|
|
3
3
|
import Select from "@synerise/ds-select";
|
|
4
4
|
import { RELATIVE_DURATION_MAX, RELATIVE_UNITS, DURATION_MODIFIERS } from "../../../../constants.js";
|
|
5
5
|
import { Title, InputSelectGroup } from "../../../RelativeRangePicker.styles.js";
|
|
6
|
-
const SELECT_DROPDOWN_OFFSET = -4;
|
|
7
6
|
const TimestampDuration = ({
|
|
8
7
|
handleDurationValueChange,
|
|
9
8
|
durationModifier,
|
|
@@ -21,19 +20,13 @@ const TimestampDuration = ({
|
|
|
21
20
|
onDurationModifierChange(modifier);
|
|
22
21
|
}, dropdownStyle: {
|
|
23
22
|
minWidth: "125px"
|
|
24
|
-
}, dropdownAlign: {
|
|
25
|
-
points: ["bl", "tl"],
|
|
26
|
-
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
27
23
|
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: durationModiferValues.map((modifier) => /* @__PURE__ */ jsx(Select.Option, { value: modifier, children: texts[modifier] }, modifier)) }),
|
|
28
24
|
/* @__PURE__ */ jsx(InputNumber, { min: 1, max: RELATIVE_DURATION_MAX, step: 1, valueFormatOptions: {
|
|
29
25
|
maximumFractionDigits: 0
|
|
30
26
|
}, value, onChange: handleDurationValueChange }),
|
|
31
27
|
/* @__PURE__ */ jsx(Select, { value: unit, dropdownStyle: {
|
|
32
28
|
minWidth: "125px"
|
|
33
|
-
}, onChange: (type) => onDurationUnitChange(type),
|
|
34
|
-
points: ["bl", "tl"],
|
|
35
|
-
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
36
|
-
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: RELATIVE_UNITS.map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
29
|
+
}, onChange: (type) => onDurationUnitChange(type), getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: RELATIVE_UNITS.map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
37
30
|
] })
|
|
38
31
|
] });
|
|
39
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-range-picker",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.14",
|
|
4
4
|
"description": "Date-Range-Picker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@date-fns/upgrade": "^1.0.3",
|
|
46
|
-
"@synerise/ds-badge": "^1.0.
|
|
47
|
-
"@synerise/ds-button": "^1.5.
|
|
48
|
-
"@synerise/ds-button-group": "^1.1.
|
|
49
|
-
"@synerise/ds-date-picker": "^1.4.
|
|
50
|
-
"@synerise/ds-dropdown": "^1.3.
|
|
51
|
-
"@synerise/ds-form-field": "^1.3.
|
|
46
|
+
"@synerise/ds-badge": "^1.0.59",
|
|
47
|
+
"@synerise/ds-button": "^1.5.36",
|
|
48
|
+
"@synerise/ds-button-group": "^1.1.61",
|
|
49
|
+
"@synerise/ds-date-picker": "^1.4.24",
|
|
50
|
+
"@synerise/ds-dropdown": "^1.3.22",
|
|
51
|
+
"@synerise/ds-form-field": "^1.3.25",
|
|
52
52
|
"@synerise/ds-icon": "^1.18.5",
|
|
53
|
-
"@synerise/ds-inline-edit": "^1.1.
|
|
54
|
-
"@synerise/ds-input": "^1.
|
|
55
|
-
"@synerise/ds-input-number": "^1.2.
|
|
56
|
-
"@synerise/ds-list-item": "^1.6.
|
|
57
|
-
"@synerise/ds-manageable-list": "^1.8.
|
|
58
|
-
"@synerise/ds-popover": "^1.6.
|
|
53
|
+
"@synerise/ds-inline-edit": "^1.1.50",
|
|
54
|
+
"@synerise/ds-input": "^1.8.0",
|
|
55
|
+
"@synerise/ds-input-number": "^1.2.52",
|
|
56
|
+
"@synerise/ds-list-item": "^1.6.3",
|
|
57
|
+
"@synerise/ds-manageable-list": "^1.8.13",
|
|
58
|
+
"@synerise/ds-popover": "^1.6.3",
|
|
59
59
|
"@synerise/ds-scrollbar": "^1.5.2",
|
|
60
|
-
"@synerise/ds-select": "^1.
|
|
61
|
-
"@synerise/ds-slider": "^1.1.
|
|
62
|
-
"@synerise/ds-tag": "^1.4.
|
|
63
|
-
"@synerise/ds-time-picker": "^1.2.
|
|
64
|
-
"@synerise/ds-tooltip": "^1.5.
|
|
60
|
+
"@synerise/ds-select": "^1.5.0",
|
|
61
|
+
"@synerise/ds-slider": "^1.1.28",
|
|
62
|
+
"@synerise/ds-tag": "^1.4.33",
|
|
63
|
+
"@synerise/ds-time-picker": "^1.2.44",
|
|
64
|
+
"@synerise/ds-tooltip": "^1.5.5",
|
|
65
65
|
"@synerise/ds-utils": "^1.10.2",
|
|
66
66
|
"date-fns": "^2.16.1",
|
|
67
67
|
"date-fns-tz": "1.1.4",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
103
103
|
"styled-components": "^5.3.3"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "6df24ed12cd5f276d8eccde730591807982e3385"
|
|
106
106
|
}
|