@commercetools-uikit/date-range-input 17.0.1 → 17.1.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.
|
@@ -13,9 +13,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
14
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
15
15
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
16
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
17
16
|
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
18
17
|
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
18
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
19
19
|
var _pt = require('prop-types');
|
|
20
20
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
21
21
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
@@ -52,10 +52,10 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
|
|
|
52
52
|
var Downshift__default = /*#__PURE__*/_interopDefault(Downshift);
|
|
53
53
|
var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
54
54
|
|
|
55
|
-
function ownKeys(
|
|
56
|
-
function _objectSpread(
|
|
57
|
-
function
|
|
58
|
-
function _isNativeReflectConstruct() {
|
|
55
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
57
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
58
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
59
59
|
const preventDownshiftDefault = event => {
|
|
60
60
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
61
61
|
};
|
|
@@ -108,14 +108,13 @@ const getRange = _ref => {
|
|
|
108
108
|
};
|
|
109
109
|
let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
110
110
|
_inherits(DateRangeInput, _Component);
|
|
111
|
-
var _super = _createSuper(DateRangeInput);
|
|
112
111
|
function DateRangeInput() {
|
|
113
112
|
var _this;
|
|
114
113
|
_classCallCheck(this, DateRangeInput);
|
|
115
114
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
116
115
|
args[_key] = arguments[_key];
|
|
117
116
|
}
|
|
118
|
-
_this =
|
|
117
|
+
_this = _callSuper(this, DateRangeInput, [...args]);
|
|
119
118
|
_this.inputRef = /*#__PURE__*/react.createRef();
|
|
120
119
|
_this.state = {
|
|
121
120
|
calendarDate: _this.props.value.length === 2 ? _this.props.value[0] : calendarUtils.getToday(),
|
|
@@ -157,7 +156,7 @@ let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
|
157
156
|
};
|
|
158
157
|
_this.emit = unsortedRange => {
|
|
159
158
|
var _this$props$onChange, _this$props;
|
|
160
|
-
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0
|
|
159
|
+
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props, {
|
|
161
160
|
target: {
|
|
162
161
|
id: _this.props.id,
|
|
163
162
|
name: _this.props.name,
|
|
@@ -459,7 +458,7 @@ DateRangeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
459
458
|
var dateRangeInput = reactIntl.injectIntl(DateRangeInput);
|
|
460
459
|
|
|
461
460
|
// NOTE: This string will be replaced on build time with the package version.
|
|
462
|
-
var version = "17.0
|
|
461
|
+
var version = "17.1.0";
|
|
463
462
|
|
|
464
463
|
exports["default"] = dateRangeInput;
|
|
465
464
|
exports.version = version;
|
|
@@ -13,9 +13,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
13
13
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
14
14
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
15
15
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
16
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
17
16
|
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
18
17
|
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
18
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
19
19
|
require('prop-types');
|
|
20
20
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
21
21
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
@@ -51,10 +51,10 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
|
|
|
51
51
|
var Downshift__default = /*#__PURE__*/_interopDefault(Downshift);
|
|
52
52
|
var Constraints__default = /*#__PURE__*/_interopDefault(Constraints);
|
|
53
53
|
|
|
54
|
-
function ownKeys(
|
|
55
|
-
function _objectSpread(
|
|
56
|
-
function
|
|
57
|
-
function _isNativeReflectConstruct() {
|
|
54
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
55
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
56
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
57
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
58
58
|
const preventDownshiftDefault = event => {
|
|
59
59
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
60
60
|
};
|
|
@@ -107,14 +107,13 @@ const getRange = _ref => {
|
|
|
107
107
|
};
|
|
108
108
|
let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
109
109
|
_inherits(DateRangeInput, _Component);
|
|
110
|
-
var _super = _createSuper(DateRangeInput);
|
|
111
110
|
function DateRangeInput() {
|
|
112
111
|
var _this;
|
|
113
112
|
_classCallCheck(this, DateRangeInput);
|
|
114
113
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
115
114
|
args[_key] = arguments[_key];
|
|
116
115
|
}
|
|
117
|
-
_this =
|
|
116
|
+
_this = _callSuper(this, DateRangeInput, [...args]);
|
|
118
117
|
_this.inputRef = /*#__PURE__*/react.createRef();
|
|
119
118
|
_this.state = {
|
|
120
119
|
calendarDate: _this.props.value.length === 2 ? _this.props.value[0] : calendarUtils.getToday(),
|
|
@@ -156,7 +155,7 @@ let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
|
156
155
|
};
|
|
157
156
|
_this.emit = unsortedRange => {
|
|
158
157
|
var _this$props$onChange, _this$props;
|
|
159
|
-
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0
|
|
158
|
+
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props, {
|
|
160
159
|
target: {
|
|
161
160
|
id: _this.props.id,
|
|
162
161
|
name: _this.props.name,
|
|
@@ -442,7 +441,7 @@ DateRangeInput.propTypes = {};
|
|
|
442
441
|
var dateRangeInput = reactIntl.injectIntl(DateRangeInput);
|
|
443
442
|
|
|
444
443
|
// NOTE: This string will be replaced on build time with the package version.
|
|
445
|
-
var version = "17.0
|
|
444
|
+
var version = "17.1.0";
|
|
446
445
|
|
|
447
446
|
exports["default"] = dateRangeInput;
|
|
448
447
|
exports.version = version;
|
|
@@ -9,9 +9,9 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
9
9
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
10
10
|
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
11
11
|
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
12
|
-
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
13
12
|
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
14
13
|
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
14
|
+
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
15
15
|
import _pt from 'prop-types';
|
|
16
16
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
17
17
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
@@ -28,10 +28,10 @@ import { getToday, formatRange, changeMonth, getDateInMonth, createItemRangeToSt
|
|
|
28
28
|
import { getLocalizedDateTimeFormatPattern } from '@commercetools-uikit/calendar-time-utils';
|
|
29
29
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
30
30
|
|
|
31
|
-
function ownKeys(
|
|
32
|
-
function _objectSpread(
|
|
33
|
-
function
|
|
34
|
-
function _isNativeReflectConstruct() {
|
|
31
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
33
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
35
35
|
const preventDownshiftDefault = event => {
|
|
36
36
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
37
37
|
};
|
|
@@ -84,14 +84,13 @@ const getRange = _ref => {
|
|
|
84
84
|
};
|
|
85
85
|
let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
86
86
|
_inherits(DateRangeInput, _Component);
|
|
87
|
-
var _super = _createSuper(DateRangeInput);
|
|
88
87
|
function DateRangeInput() {
|
|
89
88
|
var _this;
|
|
90
89
|
_classCallCheck(this, DateRangeInput);
|
|
91
90
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
92
91
|
args[_key] = arguments[_key];
|
|
93
92
|
}
|
|
94
|
-
_this =
|
|
93
|
+
_this = _callSuper(this, DateRangeInput, [...args]);
|
|
95
94
|
_this.inputRef = /*#__PURE__*/createRef();
|
|
96
95
|
_this.state = {
|
|
97
96
|
calendarDate: _this.props.value.length === 2 ? _this.props.value[0] : getToday(),
|
|
@@ -133,7 +132,7 @@ let DateRangeInput = /*#__PURE__*/function (_Component) {
|
|
|
133
132
|
};
|
|
134
133
|
_this.emit = unsortedRange => {
|
|
135
134
|
var _this$props$onChange, _this$props;
|
|
136
|
-
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0
|
|
135
|
+
(_this$props$onChange = (_this$props = _this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props, {
|
|
137
136
|
target: {
|
|
138
137
|
id: _this.props.id,
|
|
139
138
|
name: _this.props.name,
|
|
@@ -435,6 +434,6 @@ DateRangeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
435
434
|
var dateRangeInput = injectIntl(DateRangeInput);
|
|
436
435
|
|
|
437
436
|
// NOTE: This string will be replaced on build time with the package version.
|
|
438
|
-
var version = "17.0
|
|
437
|
+
var version = "17.1.0";
|
|
439
438
|
|
|
440
439
|
export { dateRangeInput as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/date-range-input",
|
|
3
3
|
"description": "The `DateRangeInput` component allows the user to select a date range.",
|
|
4
|
-
"version": "17.0
|
|
4
|
+
"version": "17.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "17.0
|
|
25
|
-
"@commercetools-uikit/calendar-time-utils": "17.0
|
|
26
|
-
"@commercetools-uikit/calendar-utils": "17.0
|
|
27
|
-
"@commercetools-uikit/constraints": "17.0
|
|
28
|
-
"@commercetools-uikit/design-system": "17.0
|
|
29
|
-
"@commercetools-uikit/hooks": "17.0
|
|
30
|
-
"@commercetools-uikit/icons": "17.0
|
|
31
|
-
"@commercetools-uikit/secondary-icon-button": "17.0
|
|
32
|
-
"@commercetools-uikit/select-utils": "17.0
|
|
33
|
-
"@commercetools-uikit/spacings-inline": "17.0
|
|
34
|
-
"@commercetools-uikit/text": "17.0
|
|
35
|
-
"@commercetools-uikit/tooltip": "17.0
|
|
36
|
-
"@commercetools-uikit/utils": "17.0
|
|
24
|
+
"@commercetools-uikit/accessible-button": "17.1.0",
|
|
25
|
+
"@commercetools-uikit/calendar-time-utils": "17.1.0",
|
|
26
|
+
"@commercetools-uikit/calendar-utils": "17.1.0",
|
|
27
|
+
"@commercetools-uikit/constraints": "17.1.0",
|
|
28
|
+
"@commercetools-uikit/design-system": "17.1.0",
|
|
29
|
+
"@commercetools-uikit/hooks": "17.1.0",
|
|
30
|
+
"@commercetools-uikit/icons": "17.1.0",
|
|
31
|
+
"@commercetools-uikit/secondary-icon-button": "17.1.0",
|
|
32
|
+
"@commercetools-uikit/select-utils": "17.1.0",
|
|
33
|
+
"@commercetools-uikit/spacings-inline": "17.1.0",
|
|
34
|
+
"@commercetools-uikit/text": "17.1.0",
|
|
35
|
+
"@commercetools-uikit/tooltip": "17.1.0",
|
|
36
|
+
"@commercetools-uikit/utils": "17.1.0",
|
|
37
37
|
"@emotion/react": "^11.10.5",
|
|
38
38
|
"@emotion/styled": "^11.10.5",
|
|
39
39
|
"downshift": "6.1.12",
|