@synerise/ds-completed-within 0.3.2 → 0.3.6
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 +32 -0
- package/dist/CompletedWithin.js +9 -23
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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.3.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.3.5...@synerise/ds-completed-within@0.3.6) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.3.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.3.4...@synerise/ds-completed-within@0.3.5) (2021-12-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.3.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.3.3...@synerise/ds-completed-within@0.3.4) (2021-11-23)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.3.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.3.2...@synerise/ds-completed-within@0.3.3) (2021-11-22)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [0.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.3.1...@synerise/ds-completed-within@0.3.2) (2021-11-16)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @synerise/ds-completed-within
|
package/dist/CompletedWithin.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
-
|
|
9
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
-
|
|
11
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
-
|
|
13
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
14
2
|
|
|
15
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
16
4
|
|
|
@@ -61,7 +49,7 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
61
49
|
return {
|
|
62
50
|
value: period,
|
|
63
51
|
label: intl.formatMessage({
|
|
64
|
-
id: "DS.COMPLETED-WITHIN."
|
|
52
|
+
id: "DS.COMPLETED-WITHIN." + period,
|
|
65
53
|
defaultMessage: period
|
|
66
54
|
})
|
|
67
55
|
};
|
|
@@ -69,14 +57,12 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
69
57
|
}, [periods, intl]);
|
|
70
58
|
|
|
71
59
|
var _React$useState = React.useState(value.value),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
setInnerValue = _React$useState2[1];
|
|
60
|
+
innerValue = _React$useState[0],
|
|
61
|
+
setInnerValue = _React$useState[1];
|
|
75
62
|
|
|
76
|
-
var _React$
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
setInnerPeriod = _React$useState4[1];
|
|
63
|
+
var _React$useState2 = React.useState(value.period || DEFAULT_PERIOD),
|
|
64
|
+
innerPeriod = _React$useState2[0],
|
|
65
|
+
setInnerPeriod = _React$useState2[1];
|
|
80
66
|
|
|
81
67
|
var hasValue = React.useMemo(function () {
|
|
82
68
|
return value.value !== undefined && value.value > 0;
|
|
@@ -104,9 +90,9 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
104
90
|
var triggerLabel = React.useMemo(function () {
|
|
105
91
|
var _getPeriods$find;
|
|
106
92
|
|
|
107
|
-
return hasValue &&
|
|
93
|
+
return hasValue && texts.completedLabel + " " + value.value + " " + ((_getPeriods$find = getPeriods.find(function (singlePeriod) {
|
|
108
94
|
return singlePeriod.value === value.period;
|
|
109
|
-
}))
|
|
95
|
+
})) == null ? void 0 : _getPeriods$find.label);
|
|
110
96
|
}, [getPeriods, hasValue, texts, value]);
|
|
111
97
|
return /*#__PURE__*/React.createElement(S.CompletedWithinWrapper, {
|
|
112
98
|
withValue: hasValue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-completed-within",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "CompletedWithin UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.16.
|
|
36
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
37
|
-
"@synerise/ds-icon": "^0.46.
|
|
35
|
+
"@synerise/ds-button": "^0.16.3",
|
|
36
|
+
"@synerise/ds-dropdown": "^0.17.6",
|
|
37
|
+
"@synerise/ds-icon": "^0.46.2",
|
|
38
38
|
"@synerise/ds-input-number": "^0.3.45",
|
|
39
|
-
"@synerise/ds-select": "^0.14.
|
|
40
|
-
"@synerise/ds-tooltip": "^0.11.
|
|
39
|
+
"@synerise/ds-select": "^0.14.4",
|
|
40
|
+
"@synerise/ds-tooltip": "^0.11.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@synerise/ds-core": "*",
|
|
44
44
|
"react": ">=16.9.0 < 17.0.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7ddae11318ca2906145c9f48e74df41ca5f15d49"
|
|
47
47
|
}
|