@synerise/ds-date-range-picker 0.20.5 → 0.20.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,29 @@
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.20.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.20.6...@synerise/ds-date-range-picker@0.20.7) (2023-03-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **time-picker:** for 12 pm picker fix ([2566b19](https://github.com/Synerise/synerise-design/commit/2566b190a194b095bbe6e4a12a883ef8fd183422))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.20.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.20.5...@synerise/ds-date-range-picker@0.20.6) (2023-03-30)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **date-range-picker:** filter persistance test ([93b4a35](https://github.com/Synerise/synerise-design/commit/93b4a3576c9ec7c61f19dfe3bdf3b44c4a9d7912))
23
+ * **date-range-picker:** filters must persist through range change ([1fb7b43](https://github.com/Synerise/synerise-design/commit/1fb7b430fa8f8528d7487802e3df682b3a4fd4d9))
24
+
25
+
26
+
27
+
28
+
6
29
  ## [0.20.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.20.4...@synerise/ds-date-range-picker@0.20.5) (2023-03-29)
7
30
 
8
31
 
@@ -3,7 +3,7 @@ import { legacyParse } from '@date-fns/upgrade/v2';
3
3
  import fnsMin from 'date-fns/min';
4
4
  import fnsMax from 'date-fns/max';
5
5
  import fnsIsValid from 'date-fns/isValid';
6
- import * as dayjs from 'dayjs';
6
+ import dayjs from 'dayjs';
7
7
  import { AM, PM, HOUR_12, MAP_24_HOUR_TO_12, HOUR } from '@synerise/ds-time-picker';
8
8
  import { fnsEndOfDay, fnsIsSameMonth, fnsStartOfDay, fnsStartOfMonth } from '../fns';
9
9
  import { TIME_OPTIONS } from '../constants';
@@ -35,7 +35,8 @@ export function defaultValueTransformer(value) {
35
35
 
36
36
  var id = value.id,
37
37
  timestamp = value.timestamp,
38
- translationKey = value.translationKey;
38
+ translationKey = value.translationKey,
39
+ filter = value.filter;
39
40
 
40
41
  var baseValue = _objectSpread({}, id ? {
41
42
  id: id
@@ -43,6 +44,8 @@ export function defaultValueTransformer(value) {
43
44
  timestamp: timestamp
44
45
  } : {}, {}, translationKey ? {
45
46
  translationKey: translationKey
47
+ } : {}, {}, filter ? {
48
+ filter: filter
46
49
  } : {});
47
50
 
48
51
  if (value.type === 'ABSOLUTE') {
@@ -62,9 +65,7 @@ export function defaultValueTransformer(value) {
62
65
  duration: value.duration,
63
66
  offset: value.offset,
64
67
  future: value.future
65
- }, value.filter ? {
66
- filter: value.filter
67
- } : {});
68
+ });
68
69
  }
69
70
 
70
71
  return value;
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export { RawDateRangePicker } from './RawDateRangePicker';
5
5
  export * as utils from './utils';
6
6
  export * as CONST from './constants';
7
7
  export { default } from './DateRangePicker';
8
+ export { getDisabledTimeOptions } from './RangePicker/utils';
package/dist/index.js CHANGED
@@ -6,4 +6,5 @@ import * as _utils from './utils';
6
6
  export { _utils as utils };
7
7
  import * as _CONST from './constants';
8
8
  export { _CONST as CONST };
9
- export { default } from './DateRangePicker';
9
+ export { default } from './DateRangePicker';
10
+ export { getDisabledTimeOptions } from './RangePicker/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-date-range-picker",
3
- "version": "0.20.5",
3
+ "version": "0.20.7",
4
4
  "description": "Date-Range-Picker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,10 +34,10 @@
34
34
  "dependencies": {
35
35
  "@date-fns/upgrade": "^1.0.3",
36
36
  "@synerise/ds-button": "^0.17.12",
37
- "@synerise/ds-date-picker": "^0.9.3",
37
+ "@synerise/ds-date-picker": "^0.9.4",
38
38
  "@synerise/ds-icon": "^0.54.0",
39
- "@synerise/ds-manageable-list": "^0.24.11",
40
- "@synerise/ds-time-picker": "^0.7.2",
39
+ "@synerise/ds-manageable-list": "^0.24.12",
40
+ "@synerise/ds-time-picker": "^0.7.3",
41
41
  "@synerise/ds-tooltip": "^0.13.0",
42
42
  "@synerise/ds-utils": "^0.19.0",
43
43
  "date-fns": "^2.16.1",
@@ -54,5 +54,5 @@
54
54
  "devDependencies": {
55
55
  "@types/ramda": "^0.27.14"
56
56
  },
57
- "gitHead": "0df1c9c765f7871c488f0700d2e476ecb83c6ded"
57
+ "gitHead": "2ba3cb743a9dde56429a5616ca840dbcd8f3f8be"
58
58
  }