@synerise/ds-date-range-picker 0.31.5 → 0.31.7
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
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [0.31.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.31.6...@synerise/ds-date-range-picker@0.31.7) (2024-12-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **date-range-picker:** monthly filter dropdowns ([9933d1d](https://github.com/Synerise/synerise-design/commit/9933d1d678d7dec4f4c0bf78b8fa6d97c44a7c3c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.31.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.31.5...@synerise/ds-date-range-picker@0.31.6) (2024-12-04)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-date-range-picker
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.31.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.31.4...@synerise/ds-date-range-picker@0.31.5) (2024-11-29)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-date-range-picker
|
|
@@ -6,7 +6,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
import React from 'react';
|
|
9
|
+
import React, { PureComponent } from 'react';
|
|
10
10
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
11
11
|
import ContentItem from '@synerise/ds-manageable-list/dist/Item/ContentItem/ContentItem';
|
|
12
12
|
import { Tag, TagShape } from '@synerise/ds-tags';
|
|
@@ -17,14 +17,14 @@ import { MONTH_DAYS, DEFAULT_DAYS_OF_PERIODS, DEFAULT_COUNTED_FROM, defaultId, D
|
|
|
17
17
|
import * as S from './MonthlyFilter.styles';
|
|
18
18
|
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
19
19
|
import { getDefaultTexts } from '../../../utils';
|
|
20
|
-
var MonthlyFilter = /*#__PURE__*/function (
|
|
20
|
+
var MonthlyFilter = /*#__PURE__*/function (_PureComponent) {
|
|
21
21
|
function MonthlyFilter() {
|
|
22
22
|
var _visible;
|
|
23
23
|
var _this;
|
|
24
24
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
25
|
args[_key] = arguments[_key];
|
|
26
26
|
}
|
|
27
|
-
_this =
|
|
27
|
+
_this = _PureComponent.call.apply(_PureComponent, [this].concat(args)) || this;
|
|
28
28
|
_defineProperty(_this, "state", {
|
|
29
29
|
visible: (_visible = {}, _visible[defaultId] = true, _visible)
|
|
30
30
|
});
|
|
@@ -178,7 +178,7 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
178
178
|
text: intl.formatMessage({
|
|
179
179
|
id: period.translationKey
|
|
180
180
|
}),
|
|
181
|
-
|
|
181
|
+
onClick: function onClick() {
|
|
182
182
|
_this.handleTypeChange(period.value, key);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
@@ -230,7 +230,7 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
230
230
|
text: intl.formatMessage({
|
|
231
231
|
id: i.translationKey
|
|
232
232
|
}),
|
|
233
|
-
|
|
233
|
+
onClick: function onClick() {
|
|
234
234
|
_this.handlePeriodTypeChange(i.value, key);
|
|
235
235
|
}
|
|
236
236
|
};
|
|
@@ -269,7 +269,7 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
269
269
|
});
|
|
270
270
|
return _this;
|
|
271
271
|
}
|
|
272
|
-
_inheritsLoose(MonthlyFilter,
|
|
272
|
+
_inheritsLoose(MonthlyFilter, _PureComponent);
|
|
273
273
|
var _proto = MonthlyFilter.prototype;
|
|
274
274
|
_proto.componentDidMount = function componentDidMount() {
|
|
275
275
|
var value = this.props.value;
|
|
@@ -377,7 +377,7 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
377
377
|
})));
|
|
378
378
|
};
|
|
379
379
|
return MonthlyFilter;
|
|
380
|
-
}(
|
|
380
|
+
}(PureComponent);
|
|
381
381
|
_defineProperty(MonthlyFilter, "defaultProps", {
|
|
382
382
|
maxEntries: 4
|
|
383
383
|
});
|
|
@@ -9,16 +9,16 @@ export declare const FormButton: import("styled-components").StyledComponent<typ
|
|
|
9
9
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
10
10
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
11
11
|
} & import("antd/lib/_util/type").Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">>, "type"> & {
|
|
12
|
-
type?:
|
|
13
|
-
mode?:
|
|
14
|
-
color?:
|
|
15
|
-
groupVariant?:
|
|
12
|
+
type?: import("@synerise/ds-utils").LiteralStringUnion<"ghost" | "primary" | "secondary" | "tertiary" | "tertiary-white" | "ghost-primary" | "ghost-white" | "custom-color" | "custom-color-ghost"> | undefined;
|
|
13
|
+
mode?: import("@synerise/ds-utils").LiteralStringUnion<"split" | "icon-label" | "single-icon" | "two-icons" | "label-icon"> | undefined;
|
|
14
|
+
color?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet"> | undefined;
|
|
15
|
+
groupVariant?: import("@synerise/ds-utils").LiteralStringUnion<"left-rounded" | "squared" | "right-rounded"> | undefined;
|
|
16
16
|
justifyContent?: string | undefined;
|
|
17
17
|
loading?: boolean | {
|
|
18
18
|
delay?: number | undefined;
|
|
19
19
|
} | undefined;
|
|
20
20
|
onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
|
21
|
-
iconColor?:
|
|
21
|
+
iconColor?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet"> | undefined;
|
|
22
22
|
error?: boolean | undefined;
|
|
23
23
|
activated?: boolean | undefined;
|
|
24
24
|
readOnly?: boolean | undefined;
|
|
@@ -14,16 +14,16 @@ export declare const DateTimeModeSwitch: import("styled-components").StyledCompo
|
|
|
14
14
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
15
15
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
16
16
|
} & import("antd/lib/_util/type").Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">>, "type"> & {
|
|
17
|
-
type?:
|
|
18
|
-
mode?:
|
|
19
|
-
color?:
|
|
20
|
-
groupVariant?:
|
|
17
|
+
type?: import("@synerise/ds-utils").LiteralStringUnion<"ghost" | "primary" | "secondary" | "tertiary" | "tertiary-white" | "ghost-primary" | "ghost-white" | "custom-color" | "custom-color-ghost"> | undefined;
|
|
18
|
+
mode?: import("@synerise/ds-utils").LiteralStringUnion<"split" | "icon-label" | "single-icon" | "two-icons" | "label-icon"> | undefined;
|
|
19
|
+
color?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet"> | undefined;
|
|
20
|
+
groupVariant?: import("@synerise/ds-utils").LiteralStringUnion<"left-rounded" | "squared" | "right-rounded"> | undefined;
|
|
21
21
|
justifyContent?: string | undefined;
|
|
22
22
|
loading?: boolean | {
|
|
23
23
|
delay?: number | undefined;
|
|
24
24
|
} | undefined;
|
|
25
25
|
onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
|
26
|
-
iconColor?:
|
|
26
|
+
iconColor?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet"> | undefined;
|
|
27
27
|
error?: boolean | undefined;
|
|
28
28
|
activated?: boolean | undefined;
|
|
29
29
|
readOnly?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-range-picker",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.7",
|
|
4
4
|
"description": "Date-Range-Picker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,24 +35,24 @@
|
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@date-fns/upgrade": "^1.0.3",
|
|
38
|
-
"@synerise/ds-badge": "^0.8.
|
|
39
|
-
"@synerise/ds-button": "^0.
|
|
40
|
-
"@synerise/ds-button-group": "^0.7.
|
|
38
|
+
"@synerise/ds-badge": "^0.8.22",
|
|
39
|
+
"@synerise/ds-button": "^0.22.0",
|
|
40
|
+
"@synerise/ds-button-group": "^0.7.26",
|
|
41
41
|
"@synerise/ds-data-format": "^0.6.1",
|
|
42
|
-
"@synerise/ds-date-picker": "^0.13.
|
|
43
|
-
"@synerise/ds-dropdown": "^0.18.
|
|
42
|
+
"@synerise/ds-date-picker": "^0.13.5",
|
|
43
|
+
"@synerise/ds-dropdown": "^0.18.27",
|
|
44
44
|
"@synerise/ds-icon": "^0.68.0",
|
|
45
|
-
"@synerise/ds-inline-edit": "^0.9.
|
|
46
|
-
"@synerise/ds-input": "^0.24.
|
|
47
|
-
"@synerise/ds-input-number": "^0.10.
|
|
48
|
-
"@synerise/ds-list-item": "^0.
|
|
49
|
-
"@synerise/ds-manageable-list": "^0.29.
|
|
45
|
+
"@synerise/ds-inline-edit": "^0.9.4",
|
|
46
|
+
"@synerise/ds-input": "^0.24.17",
|
|
47
|
+
"@synerise/ds-input-number": "^0.10.18",
|
|
48
|
+
"@synerise/ds-list-item": "^0.6.0",
|
|
49
|
+
"@synerise/ds-manageable-list": "^0.29.6",
|
|
50
50
|
"@synerise/ds-scrollbar": "^0.11.21",
|
|
51
|
-
"@synerise/ds-select": "^0.16.
|
|
52
|
-
"@synerise/ds-slider": "^0.14.
|
|
53
|
-
"@synerise/ds-tags": "^0.10.
|
|
54
|
-
"@synerise/ds-time-picker": "^0.11.
|
|
55
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
51
|
+
"@synerise/ds-select": "^0.16.29",
|
|
52
|
+
"@synerise/ds-slider": "^0.14.5",
|
|
53
|
+
"@synerise/ds-tags": "^0.10.21",
|
|
54
|
+
"@synerise/ds-time-picker": "^0.11.5",
|
|
55
|
+
"@synerise/ds-tooltip": "^0.14.52",
|
|
56
56
|
"@synerise/ds-utils": "^0.31.2",
|
|
57
57
|
"date-fns": "^2.16.1",
|
|
58
58
|
"date-fns-tz": "1.1.4",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
70
70
|
"styled-components": "5.0.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "05aa1b6f2038d83cc94b2270fd495c8df2c09dd5"
|
|
73
73
|
}
|