@synerise/ds-date-range-picker 0.26.6 → 0.26.8
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.26.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.26.7...@synerise/ds-date-range-picker@0.26.8) (2024-02-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-date-range-picker
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.26.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.26.6...@synerise/ds-date-range-picker@0.26.7) (2024-02-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **date-range-picker:** make texts optional ([5d33724](https://github.com/Synerise/synerise-design/commit/5d337248c423ef7b1caf17da6e0f0e56767cccf1))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.26.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.26.5...@synerise/ds-date-range-picker@0.26.6) (2024-01-31)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -20,6 +20,7 @@ import { v4 as uuid } from 'uuid';
|
|
|
20
20
|
import { MONTH_DAYS, DEFAULT_DAYS_OF_PERIODS, DEFAULT_COUNTED_FROM, defaultId, DAYS_OF_PERIOD_ENUM, COUNTED_FROM_ENUM, SPACE_UNICODE } from '../../constants';
|
|
21
21
|
import * as S from './MonthlyFilter.styles';
|
|
22
22
|
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
23
|
+
import { getDefaultTexts } from '../../../utils';
|
|
23
24
|
|
|
24
25
|
var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
25
26
|
_inheritsLoose(MonthlyFilter, _React$PureComponent);
|
|
@@ -332,13 +333,15 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
332
333
|
disabled = _this$props4.disabled,
|
|
333
334
|
renderRangeFormSuffix = _this$props4.renderRangeFormSuffix,
|
|
334
335
|
maxEntries = _this$props4.maxEntries,
|
|
335
|
-
rangeDisplayMode = _this$props4.rangeDisplayMode
|
|
336
|
+
rangeDisplayMode = _this$props4.rangeDisplayMode,
|
|
337
|
+
intl = _this$props4.intl; // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
336
338
|
|
|
337
339
|
var _ref = this.props,
|
|
338
340
|
_ref$min = _ref.min,
|
|
339
341
|
min = _ref$min === void 0 ? 1 : _ref$min;
|
|
340
342
|
var visible = this.state.visible;
|
|
341
343
|
var data = [].concat(value);
|
|
344
|
+
var allTexts = getDefaultTexts(intl, false, texts);
|
|
342
345
|
/** if `min` is undefined, then entry can be always deleted, otherwise it's key has to be greated or equal than N */
|
|
343
346
|
|
|
344
347
|
var deletableDueToEntriesLimit = function deletableDueToEntriesLimit(key) {
|
|
@@ -371,12 +374,12 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
371
374
|
return event.stopPropagation();
|
|
372
375
|
},
|
|
373
376
|
className: visible[item.id] ? 'dropdown-header-visible' : 'dropdown-header'
|
|
374
|
-
}, /*#__PURE__*/React.createElement(S.DropdownLabel, null,
|
|
377
|
+
}, /*#__PURE__*/React.createElement(S.DropdownLabel, null, allTexts.daysOf, SPACE_UNICODE), _this2.renderDaysOfField(item, key), /*#__PURE__*/React.createElement(S.DropdownLabel, null, SPACE_UNICODE, allTexts.countedFrom, SPACE_UNICODE), _this2.renderCountedFromField(item, key)),
|
|
375
378
|
nameWrapperClassNames: ['full-width'],
|
|
376
379
|
content: visible[item.id] ? /*#__PURE__*/React.createElement(S.ContentWrapper, null, /*#__PURE__*/React.createElement(TimeWindow, _extends({
|
|
377
380
|
disabled: disabled,
|
|
378
381
|
readOnly: !!disabled,
|
|
379
|
-
texts:
|
|
382
|
+
texts: allTexts // eslint-disable-next-line react/no-array-index-key
|
|
380
383
|
,
|
|
381
384
|
key: item.period + "_" + key,
|
|
382
385
|
showSelectAll: true,
|
|
@@ -404,11 +407,11 @@ var MonthlyFilter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
404
407
|
}))) : /*#__PURE__*/React.createElement("div", null)
|
|
405
408
|
},
|
|
406
409
|
texts: {
|
|
407
|
-
itemActionDeleteTooltip:
|
|
410
|
+
itemActionDeleteTooltip: allTexts.remove
|
|
408
411
|
}
|
|
409
412
|
});
|
|
410
413
|
}), /*#__PURE__*/React.createElement(S.AddContainer, null, !disabled && value.length < Number(maxEntries) && /*#__PURE__*/React.createElement(Button.Creator, {
|
|
411
|
-
label:
|
|
414
|
+
label: allTexts.addRule,
|
|
412
415
|
onClick: this.handleAddRow,
|
|
413
416
|
block: true
|
|
414
417
|
})));
|
|
@@ -18,7 +18,7 @@ export type MonthlyFilterProps = {
|
|
|
18
18
|
rangeClipboard?: Partial<FilterDefinition>;
|
|
19
19
|
valueSelectionModes?: DateLimitMode[];
|
|
20
20
|
rangeDisplayMode?: RangeDisplayMode;
|
|
21
|
-
} & WithDisabledProp & Partial<RangeActions> & WithTranslations
|
|
21
|
+
} & WithDisabledProp & Partial<RangeActions> & Partial<WithTranslations>;
|
|
22
22
|
export type Month<T = DenormalizedFilter> = {
|
|
23
23
|
id: string | number;
|
|
24
24
|
period: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-range-picker",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.8",
|
|
4
4
|
"description": "Date-Range-Picker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,23 +34,23 @@
|
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@date-fns/upgrade": "^1.0.3",
|
|
37
|
-
"@synerise/ds-badge": "^0.6.
|
|
37
|
+
"@synerise/ds-badge": "^0.6.49",
|
|
38
38
|
"@synerise/ds-button": "^0.19.0",
|
|
39
39
|
"@synerise/ds-button-group": "^0.6.40",
|
|
40
40
|
"@synerise/ds-data-format": "^0.4.7",
|
|
41
|
-
"@synerise/ds-date-picker": "^0.10.
|
|
42
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
41
|
+
"@synerise/ds-date-picker": "^0.10.34",
|
|
42
|
+
"@synerise/ds-dropdown": "^0.17.95",
|
|
43
43
|
"@synerise/ds-icon": "^0.60.0",
|
|
44
|
-
"@synerise/ds-inline-edit": "^0.6.
|
|
45
|
-
"@synerise/ds-input": "^0.19.
|
|
44
|
+
"@synerise/ds-inline-edit": "^0.6.95",
|
|
45
|
+
"@synerise/ds-input": "^0.19.16",
|
|
46
46
|
"@synerise/ds-input-number": "^0.9.2",
|
|
47
|
-
"@synerise/ds-manageable-list": "^0.26.
|
|
47
|
+
"@synerise/ds-manageable-list": "^0.26.26",
|
|
48
48
|
"@synerise/ds-menu": "^0.18.11",
|
|
49
49
|
"@synerise/ds-scrollbar": "^0.7.3",
|
|
50
|
-
"@synerise/ds-select": "^0.15.
|
|
51
|
-
"@synerise/ds-slider": "^0.13.
|
|
52
|
-
"@synerise/ds-tags": "^0.8.
|
|
53
|
-
"@synerise/ds-time-picker": "^0.9.
|
|
50
|
+
"@synerise/ds-select": "^0.15.34",
|
|
51
|
+
"@synerise/ds-slider": "^0.13.13",
|
|
52
|
+
"@synerise/ds-tags": "^0.8.29",
|
|
53
|
+
"@synerise/ds-time-picker": "^0.9.13",
|
|
54
54
|
"@synerise/ds-tooltip": "^0.14.16",
|
|
55
55
|
"@synerise/ds-utils": "^0.24.24",
|
|
56
56
|
"date-fns": "^2.16.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"@testing-library/user-event": "^10.3.1",
|
|
74
74
|
"@types/ramda": "^0.28.23"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "f44d8347f9fdba6acdb8e3489adaadeda5cf87e3"
|
|
77
77
|
}
|