@synerise/ds-date-range-picker 2.3.1 → 2.3.3
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 +16 -0
- package/CLAUDE.md +62 -33
- package/README.md +26 -13
- package/dist/AddonCollapse/AddonCollapse.types.d.ts +4 -4
- package/dist/DateRangePicker.types.d.ts +39 -19
- package/dist/Footer/Footer.types.d.ts +3 -2
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.d.ts +5 -6
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types.d.ts +3 -2
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.d.ts +2 -1
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.types.d.ts +1 -5
- package/dist/RangeFilter/Filters/new/Filters.types.d.ts +2 -0
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.js +10 -45
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.types.d.ts +9 -4
- package/dist/RangeFilter/Filters/new/Monthly/utils.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.js +10 -44
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.types.d.ts +7 -3
- package/dist/RangeFilter/Filters/new/Weekly/utils.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/filters.spec.constants.d.ts +15 -15
- package/dist/RangeFilter/Filters/new/hooks/useShiftAndControlKeys.js +9 -4
- package/dist/RangeFilter/RangeFilter.js +30 -47
- package/dist/RangeFilter/RangeFilter.types.d.ts +82 -42
- package/dist/RangeFilter/Shared/AddButton/AddButton.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.js +1 -1
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/SelectionHint/SelectionHint.d.ts +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.js +2 -1
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.types.d.ts +4 -4
- package/dist/RangeFilter/constants.d.ts +19 -17
- package/dist/RangeFilter/constants.js +14 -21
- package/dist/RangeFilter/utils.d.ts +27 -24
- package/dist/RangeFilter/utils.js +124 -131
- package/dist/RangePickerInput/RangePickerInput.types.d.ts +3 -2
- package/dist/RawDateRangePicker.d.ts +2 -2
- package/dist/RawDateRangePicker.js +2 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.js +1 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.types.d.ts +0 -1
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.types.d.ts +0 -3
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.types.d.ts +2 -3
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.js +1 -1
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.types.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.types.d.ts +7 -5
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.js +19 -15
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.types.d.ts +2 -2
- package/dist/RelativeRangePicker/RelativeRangePicker.js +9 -9
- package/dist/RelativeRangePicker/RelativeRangePicker.types.d.ts +1 -2
- package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.d.ts +8 -11
- package/dist/RelativeRangePicker/utils/index.d.ts +0 -1
- package/dist/RelativeRangePicker/utils/index.js +0 -2
- package/dist/constants.d.ts +14 -14
- package/dist/constants.js +2 -4
- package/dist/date.types.d.ts +52 -25
- package/dist/dateUtils/isSinceRange.d.ts +3 -0
- package/dist/dateUtils/isSinceRange.js +4 -0
- package/dist/dateUtils/relativeToAbsolute.d.ts +2 -2
- package/dist/index.d.ts +14 -3
- package/dist/index.js +13 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -11
- package/dist/RelativeRangePicker/utils/isAbsolute.utils.d.ts +0 -2
- package/dist/RelativeRangePicker/utils/isAbsolute.utils.js +0 -5
package/dist/constants.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FlipConfig, OffsetConfig, ShiftConfig } from '@synerise/ds-popover';
|
|
3
|
-
import { AbsoluteDateRangePreset, RangeKey, RelativeDateRangePreset,
|
|
3
|
+
import { AbsoluteDateRangePreset, RangeKey, RelativeDateRangePreset, RelativeUnit } from './date.types';
|
|
4
4
|
export declare const SECONDS = "SECONDS";
|
|
5
5
|
export declare const MINUTES = "MINUTES";
|
|
6
6
|
export declare const HOURS = "HOURS";
|
|
7
|
-
export declare const DAYS
|
|
7
|
+
export declare const DAYS = "DAYS";
|
|
8
8
|
export declare const WEEKS = "WEEKS";
|
|
9
9
|
export declare const MONTHS = "MONTHS";
|
|
10
10
|
export declare const YEARS = "YEARS";
|
|
@@ -12,12 +12,12 @@ export declare const ABSOLUTE = "ABSOLUTE";
|
|
|
12
12
|
export declare const RELATIVE = "RELATIVE";
|
|
13
13
|
export declare const RELATIVE_OFFSET_MAX = 999999;
|
|
14
14
|
export declare const RELATIVE_DURATION_MAX = 999999;
|
|
15
|
-
export declare const RELATIVE_UNITS:
|
|
15
|
+
export declare const RELATIVE_UNITS: RelativeUnit[];
|
|
16
16
|
export declare const ALL_TIME: RangeKey;
|
|
17
17
|
export declare const RANGES_MODE: {
|
|
18
|
-
PAST:
|
|
19
|
-
FUTURE:
|
|
20
|
-
SINCE:
|
|
18
|
+
readonly PAST: "PAST";
|
|
19
|
+
readonly FUTURE: "FUTURE";
|
|
20
|
+
readonly SINCE: "SINCE";
|
|
21
21
|
};
|
|
22
22
|
export declare const RANGES_ICON: {
|
|
23
23
|
PAST: React.JSX.Element;
|
|
@@ -34,18 +34,18 @@ export declare const RELATIVE_PRESETS: RelativeDateRangePreset[];
|
|
|
34
34
|
export declare const RELATIVE_SECTION_BUTTON_KEYS_ORDER: string[];
|
|
35
35
|
export declare const ABSOLUTE_PRESETS: AbsoluteDateRangePreset[];
|
|
36
36
|
export declare const TIME_OPTIONS: {
|
|
37
|
-
HOURS: number[];
|
|
38
|
-
MINUTES: number[];
|
|
39
|
-
SECONDS: number[];
|
|
37
|
+
readonly HOURS: number[];
|
|
38
|
+
readonly MINUTES: number[];
|
|
39
|
+
readonly SECONDS: number[];
|
|
40
40
|
};
|
|
41
41
|
export declare const MODES: {
|
|
42
|
-
DATE:
|
|
43
|
-
TIME:
|
|
44
|
-
FILTER:
|
|
42
|
+
readonly DATE: "date";
|
|
43
|
+
readonly TIME: "time";
|
|
44
|
+
readonly FILTER: "filter";
|
|
45
45
|
};
|
|
46
46
|
export declare const COLUMNS: {
|
|
47
|
-
LEFT: "left";
|
|
48
|
-
RIGHT: "right";
|
|
47
|
+
readonly LEFT: "left";
|
|
48
|
+
readonly RIGHT: "right";
|
|
49
49
|
};
|
|
50
50
|
export declare const POPOVER_OFFSET_CONFIG: OffsetConfig;
|
|
51
51
|
export declare const POPOVER_FLIP_CONFIG: FlipConfig;
|
package/dist/constants.js
CHANGED
|
@@ -309,11 +309,9 @@ const MODES = {
|
|
|
309
309
|
TIME: "time",
|
|
310
310
|
FILTER: "filter"
|
|
311
311
|
};
|
|
312
|
-
const LEFT = "left";
|
|
313
|
-
const RIGHT = "right";
|
|
314
312
|
const COLUMNS = {
|
|
315
|
-
LEFT,
|
|
316
|
-
RIGHT
|
|
313
|
+
LEFT: "left",
|
|
314
|
+
RIGHT: "right"
|
|
317
315
|
};
|
|
318
316
|
const POPOVER_OFFSET_CONFIG = {
|
|
319
317
|
mainAxis: 8
|
package/dist/date.types.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { RangeFilterValue } from './RangeFilter/RangeFilter.types';
|
|
2
|
+
export type RelativeUnit = 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use `RelativeUnit`. `'SINCE'` is not a unit: it marks the offset of a SINCE range,
|
|
5
|
+
* whose `value` is the anchor `Date`. SINCE is unscoped and not supported.
|
|
6
|
+
*/
|
|
7
|
+
export type RelativeUnits = RelativeUnit | 'SINCE';
|
|
5
8
|
export type RangeKey = 'TODAY' | 'YESTERDAY' | 'TOMORROW' | 'LAST_WEEK' | 'THIS_WEEK' | 'NEXT_WEEK' | 'LAST_7_DAYS' | 'NEXT_7_DAYS' | 'LAST_MONTH' | 'THIS_MONTH' | 'NEXT_MONTH' | 'LAST_3_MONTHS' | 'NEXT_3_MONTHS' | 'LAST_6_MONTHS' | 'NEXT_6_MONTHS' | 'LAST_YEAR' | 'NEXT_YEAR' | 'ALL_TIME';
|
|
6
9
|
export type NullableDateLimit = null | string | Date;
|
|
7
10
|
export type DateLimit = string | Date;
|
|
8
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use `DateRange`, which `onApply` and `onValueChange` emit. `DateRange.filter` is a
|
|
13
|
+
* `RangeFilterValue`.
|
|
14
|
+
*/
|
|
15
|
+
export type DateFilter = {
|
|
9
16
|
key?: string;
|
|
10
17
|
type: 'ABSOLUTE' | 'RELATIVE' | 'SINCE';
|
|
11
18
|
from?: NullableDateLimit;
|
|
@@ -18,34 +25,57 @@ export interface DateFilter {
|
|
|
18
25
|
type: RelativeUnits;
|
|
19
26
|
value: number;
|
|
20
27
|
};
|
|
21
|
-
}
|
|
22
|
-
export
|
|
28
|
+
};
|
|
29
|
+
export type DateRangeBase = {
|
|
23
30
|
key?: RangeKey | string;
|
|
31
|
+
/**
|
|
32
|
+
* `true` only for FUTURE presets and the FUTURE / SINCE modes, which are unscoped and not
|
|
33
|
+
* supported. PAST presets and `ALL_TIME` carry `false`.
|
|
34
|
+
*/
|
|
24
35
|
future?: boolean;
|
|
25
|
-
filter
|
|
36
|
+
/** The schedule set by the filter addon (`showFilter`). */
|
|
37
|
+
filter?: RangeFilterValue;
|
|
26
38
|
translationKey?: string;
|
|
27
|
-
id?:
|
|
39
|
+
id?: string | number;
|
|
28
40
|
timestamp?: Date;
|
|
29
|
-
}
|
|
30
|
-
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* `from` / `to` arrive as offset-carrying ISO strings, or as `TZDate`s with the `timeZone` prop.
|
|
44
|
+
* A `Date` passed in is read as a real instant.
|
|
45
|
+
*/
|
|
46
|
+
export type AbsoluteDateRange = DateRangeBase & {
|
|
47
|
+
type: 'ABSOLUTE';
|
|
31
48
|
from?: NullableDateLimit;
|
|
32
49
|
to?: NullableDateLimit;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
type: RelativeUnits;
|
|
50
|
+
};
|
|
51
|
+
export type Duration = {
|
|
52
|
+
type: RelativeUnit;
|
|
37
53
|
value: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
54
|
+
};
|
|
55
|
+
/** The last (or, unsupported, next) `duration`, shifted back by `offset`. */
|
|
56
|
+
export type RelativeDateRange = DateRangeBase & {
|
|
57
|
+
type: 'RELATIVE';
|
|
58
|
+
offset: Duration;
|
|
59
|
+
duration: Duration;
|
|
60
|
+
from?: NullableDateLimit;
|
|
61
|
+
to?: NullableDateLimit;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* What the SINCE mode emits: `type` stays `'RELATIVE'`, and the anchor `Date` sits in
|
|
65
|
+
* `offset.value`. Tell it from a `RelativeDateRange` with `isSinceRange`.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated SINCE is unscoped and not supported.
|
|
68
|
+
*/
|
|
69
|
+
export type SinceDateRange = DateRangeBase & {
|
|
70
|
+
type: 'RELATIVE';
|
|
41
71
|
offset: {
|
|
42
|
-
type:
|
|
43
|
-
value:
|
|
72
|
+
type: 'SINCE';
|
|
73
|
+
value: Date;
|
|
44
74
|
};
|
|
45
75
|
duration: Duration;
|
|
46
76
|
from?: NullableDateLimit;
|
|
47
77
|
to?: NullableDateLimit;
|
|
48
|
-
}
|
|
78
|
+
};
|
|
49
79
|
type PresetType = {
|
|
50
80
|
key: string;
|
|
51
81
|
translationKey?: string;
|
|
@@ -53,8 +83,5 @@ type PresetType = {
|
|
|
53
83
|
export type RelativeDateRangePreset = RelativeDateRange & PresetType;
|
|
54
84
|
export type AbsoluteDateRangePreset = AbsoluteDateRange & PresetType;
|
|
55
85
|
export type DateRangePreset = RelativeDateRangePreset | AbsoluteDateRangePreset;
|
|
56
|
-
export type
|
|
57
|
-
[key: string]: object;
|
|
58
|
-
};
|
|
59
|
-
export type DateRange = AbsoluteDateRange | RelativeDateRange;
|
|
86
|
+
export type DateRange = AbsoluteDateRange | RelativeDateRange | SinceDateRange;
|
|
60
87
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbsoluteDateRange, RelativeDateRange, SinceDateRange } from '../date.types';
|
|
2
2
|
/**
|
|
3
3
|
* The bounds `forceAbsolute` emits, which must be the range the panel showed — so they come from
|
|
4
4
|
* `normalizeRange` rather than a second implementation of the arithmetic. `timeZone` is the
|
|
5
5
|
* clock "now" is read from, as in `normalizeRange`'s relative branch.
|
|
6
6
|
*/
|
|
7
|
-
declare const relativeToAbsolute: (range: RelativeDateRange, timeZone?: string) =>
|
|
7
|
+
declare const relativeToAbsolute: (range: RelativeDateRange | SinceDateRange, timeZone?: string) => AbsoluteDateRange;
|
|
8
8
|
export default relativeToAbsolute;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
export * as CONST from './constants';
|
|
2
2
|
export { default } from './DateRangePicker';
|
|
3
|
-
export type { DateRangePickerProps, Texts as DateRangePickerTexts, } from './DateRangePicker.types';
|
|
4
|
-
export type { AbsoluteDateRange, AbsoluteDateRangePreset, DateFilter, DateRange, DateRangePreset, RelativeDateRange, RelativeDateRangePreset, RelativeUnits, } from './date.types';
|
|
3
|
+
export type { DateRangePickerProps, RawDateRangePickerProps, RelativeMode, Texts as DateRangePickerTexts, } from './DateRangePicker.types';
|
|
4
|
+
export type { AbsoluteDateRange, AbsoluteDateRangePreset, DateFilter, DateLimit, DateRange, DateRangePreset, Duration, NullableDateLimit, RangeKey, RelativeDateRange, RelativeDateRangePreset, RelativeUnit, RelativeUnits, SinceDateRange, } from './date.types';
|
|
5
|
+
export { isSinceRange } from './dateUtils/isSinceRange';
|
|
6
|
+
export type { Props as FooterProps } from './Footer/Footer.types';
|
|
5
7
|
export { fnsFormat } from './fns';
|
|
6
|
-
export { DEFAULT_RANGE_END, DEFAULT_RANGE_START, } from './RangeFilter/constants';
|
|
8
|
+
export { COUNTED_FROM_ENUM, DAYS_OF_PERIOD_ENUM, DEFAULT_RANGE_END, DEFAULT_RANGE_START, MONTH_DAYS, type RangeFilterType, } from './RangeFilter/constants';
|
|
7
9
|
export { default as MonthlyDateFilter } from './RangeFilter/Filters/MonthlyFilter/MonthlyFilter';
|
|
10
|
+
export type { Month, MonthlyFilterProps, } from './RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types';
|
|
8
11
|
export { default as DailyDateFilter } from './RangeFilter/Filters/new/Daily/Daily';
|
|
12
|
+
export type { DailyProps, DailySchedule, } from './RangeFilter/Filters/new/Daily/Daily.types';
|
|
13
|
+
export type { DayOfMonthIndex, MonthlyProps, MonthlySchedule, MonthlyScheduleDayValue, } from './RangeFilter/Filters/new/Monthly/Monthly.types';
|
|
9
14
|
export { default as WeeklyDateFilter } from './RangeFilter/Filters/new/Weekly/Weekly';
|
|
10
15
|
export type { DayOfWeekIndex, WeeklyProps, WeeklySchedule, WeeklyScheduleDayValue, } from './RangeFilter/Filters/new/Weekly/Weekly.types';
|
|
16
|
+
export type { DenormalizedFilter, RangeFilterDaily, RangeFilterDay, RangeFilterMonthly, RangeFilterMonthRule, RangeFilterValue, RangeFilterWeekly, RangeFilterWeekRule, } from './RangeFilter/RangeFilter.types';
|
|
17
|
+
export type { SavedFilter } from './RangeFilter/Shared/FilterDropdown/FilterDropdown.types';
|
|
18
|
+
export { EU_NOTATION_WEEK_DAYS_INDEXES, US_NOTATION_WEEK_DAYS_INDEXES, } from './RangeFilter/Shared/TimeWindow/constants/timeWindow.constants';
|
|
19
|
+
export { FORM_MODES, RANGE_DISPLAY_MODES, } from './RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.constants';
|
|
20
|
+
export type { DateLimitMode, RangeDisplayMode, } from './RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
11
21
|
export { default as TimeWindow } from './RangeFilter/Shared/TimeWindow/TimeWindow';
|
|
12
22
|
export { getDisabledTimeOptions } from './RangePicker/utils';
|
|
23
|
+
export type { RangePickerInputProps } from './RangePickerInput/RangePickerInput.types';
|
|
13
24
|
export { RawDateRangePicker } from './RawDateRangePicker';
|
|
14
25
|
export * as utils from './utils';
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
import * as constants from "./constants.js";
|
|
2
2
|
import { default as default2 } from "./DateRangePicker.js";
|
|
3
|
+
import { isSinceRange } from "./dateUtils/isSinceRange.js";
|
|
3
4
|
import { format } from "date-fns";
|
|
4
|
-
import {
|
|
5
|
+
import { COUNTED_FROM_ENUM, DAYS_OF_PERIOD_ENUM, MONTH_DAYS } from "./RangeFilter/constants.js";
|
|
5
6
|
import { default as default3 } from "./RangeFilter/Filters/MonthlyFilter/MonthlyFilter.js";
|
|
6
7
|
import { default as default4 } from "./RangeFilter/Filters/new/Daily/Daily.js";
|
|
7
8
|
import { default as default5 } from "./RangeFilter/Filters/new/Weekly/Weekly.js";
|
|
9
|
+
import { EU_NOTATION_WEEK_DAYS_INDEXES, US_NOTATION_WEEK_DAYS_INDEXES } from "./RangeFilter/Shared/TimeWindow/constants/timeWindow.constants.js";
|
|
10
|
+
import { FORM_MODES, RANGE_DISPLAY_MODES } from "./RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.constants.js";
|
|
8
11
|
import { default as default6 } from "./RangeFilter/Shared/TimeWindow/TimeWindow.js";
|
|
9
12
|
import { getDisabledTimeOptions } from "./RangePicker/utils.js";
|
|
10
13
|
import { RawDateRangePicker } from "./RawDateRangePicker.js";
|
|
11
14
|
import * as utils from "./utils.js";
|
|
15
|
+
import { DEFAULT_RANGE_END, DEFAULT_RANGE_START } from "./RangeFilter/Filters/new/constants.js";
|
|
12
16
|
export {
|
|
13
17
|
constants as CONST,
|
|
18
|
+
COUNTED_FROM_ENUM,
|
|
19
|
+
DAYS_OF_PERIOD_ENUM,
|
|
14
20
|
DEFAULT_RANGE_END,
|
|
15
21
|
DEFAULT_RANGE_START,
|
|
16
22
|
default4 as DailyDateFilter,
|
|
23
|
+
EU_NOTATION_WEEK_DAYS_INDEXES,
|
|
24
|
+
FORM_MODES,
|
|
25
|
+
MONTH_DAYS,
|
|
17
26
|
default3 as MonthlyDateFilter,
|
|
27
|
+
RANGE_DISPLAY_MODES,
|
|
18
28
|
RawDateRangePicker,
|
|
19
29
|
default6 as TimeWindow,
|
|
30
|
+
US_NOTATION_WEEK_DAYS_INDEXES,
|
|
20
31
|
default5 as WeeklyDateFilter,
|
|
21
32
|
default2 as default,
|
|
22
33
|
format as fnsFormat,
|
|
23
34
|
getDisabledTimeOptions,
|
|
35
|
+
isSinceRange,
|
|
24
36
|
utils
|
|
25
37
|
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { default as START_OF } from './dateUtils/startOf';
|
|
|
15
15
|
export { toIsoString } from '@synerise/ds-core';
|
|
16
16
|
export { END_OF, START_OF };
|
|
17
17
|
export declare function toIsoStringWithoutZone(date: Date): string;
|
|
18
|
-
export declare const normalizeRange: (range: DateRange, timeZone?: string) => DateRange;
|
|
18
|
+
export declare const normalizeRange: (range: DateRange | undefined, timeZone?: string) => DateRange;
|
|
19
19
|
/**
|
|
20
20
|
* `normalizeRange` for values that are already in the panel's wall-clock convention.
|
|
21
21
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-range-picker",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "Date-Range-Picker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
"types": "dist/index.d.ts",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@synerise/ds-badge": "^2.1.1",
|
|
50
|
-
"@synerise/ds-button": "^2.2.
|
|
51
|
-
"@synerise/ds-button-group": "^2.1.
|
|
52
|
-
"@synerise/ds-date-picker": "^2.2.
|
|
53
|
-
"@synerise/ds-dropdown": "^2.2.
|
|
50
|
+
"@synerise/ds-button": "^2.2.2",
|
|
51
|
+
"@synerise/ds-button-group": "^2.1.2",
|
|
52
|
+
"@synerise/ds-date-picker": "^2.2.2",
|
|
53
|
+
"@synerise/ds-dropdown": "^2.2.2",
|
|
54
54
|
"@synerise/ds-form-field": "^2.1.1",
|
|
55
55
|
"@synerise/ds-icon": "^2.3.1",
|
|
56
|
-
"@synerise/ds-inline-edit": "^2.1.
|
|
56
|
+
"@synerise/ds-inline-edit": "^2.1.2",
|
|
57
57
|
"@synerise/ds-input": "^2.1.1",
|
|
58
58
|
"@synerise/ds-input-number": "^2.1.1",
|
|
59
|
-
"@synerise/ds-list-item": "^2.4.
|
|
60
|
-
"@synerise/ds-manageable-list": "^2.2.
|
|
59
|
+
"@synerise/ds-list-item": "^2.4.1",
|
|
60
|
+
"@synerise/ds-manageable-list": "^2.2.3",
|
|
61
61
|
"@synerise/ds-popover": "^2.3.0",
|
|
62
62
|
"@synerise/ds-scrollbar": "^2.1.1",
|
|
63
|
-
"@synerise/ds-select": "^2.2.
|
|
63
|
+
"@synerise/ds-select": "^2.2.2",
|
|
64
64
|
"@synerise/ds-slider": "^2.1.1",
|
|
65
65
|
"@synerise/ds-tag": "^2.1.1",
|
|
66
|
-
"@synerise/ds-time-picker": "^2.1.
|
|
66
|
+
"@synerise/ds-time-picker": "^2.1.2",
|
|
67
67
|
"@synerise/ds-tooltip": "^2.1.1",
|
|
68
68
|
"@synerise/ds-utils": "^2.3.1",
|
|
69
69
|
"date-fns": "^4.1.0",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
104
104
|
"styled-components": "^5.3.3"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "4547f33b8c9317ccc697f89a2b2c62bcf97fbec3"
|
|
107
107
|
}
|