@rebilly/revel 12.37.0 → 12.39.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [12.37.0](https://github.com/Rebilly/rebilly/compare/revel-v12.36.5...revel-v12.37.0) (2026-06-17)
1
+ ## [12.39.0](https://github.com/Rebilly/rebilly/compare/revel-v12.38.0...revel-v12.39.0) (2026-06-24)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **recomm, replay-elements, team-docs:** Extract ScoringStrategy into a named schema and rebuild SDK ([#22767](https://github.com/Rebilly/rebilly/issues/22767)) ([82dd5b4](https://github.com/Rebilly/rebilly/commit/82dd5b442850113ca5e229afef4c3f7079d4876f))
6
+ * **revel, recomm:** Add maxDateRangeDays prop to r-date-range component ([#22909](https://github.com/Rebilly/rebilly/issues/22909)) ([1402148](https://github.com/Rebilly/rebilly/commit/1402148d5c7d40e3c8394bb0f2b877759d37557b))
@@ -1,4 +1,4 @@
1
- import type { TimeValue } from '../types';
1
+ import type { TimeValue, CalendarPreset } from '../types';
2
2
  interface Props {
3
3
  startDate: Date | null;
4
4
  endDate: Date | null;
@@ -16,6 +16,7 @@ interface Props {
16
16
  isInRange: (date: Date) => boolean;
17
17
  isRangeStart: (date: Date) => boolean;
18
18
  isRangeEnd: (date: Date) => boolean;
19
+ availablePresets?: CalendarPreset[];
19
20
  }
20
21
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
22
  [x: string]: any;
@@ -32,5 +33,6 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
32
33
  showPresets: boolean;
33
34
  showTimePicker: boolean;
34
35
  isMobile: boolean;
36
+ availablePresets: CalendarPreset[];
35
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
38
  export default _default;
@@ -1,6 +1,8 @@
1
+ import { type CalendarPreset } from '../../r-date-input/calendar-presets';
1
2
  interface Props {
2
3
  selectedPreset?: string | null;
3
4
  isMobile?: boolean;
5
+ availablePresets?: CalendarPreset[];
4
6
  }
5
7
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
8
  select: (preset: "today" | "yesterday" | "thisWeek" | "lastWeek" | "last30Days" | "thisMonth" | "lastMonth" | "last3Months" | "last6Months" | "thisYear" | "lastYear") => any;
@@ -9,5 +11,6 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
9
11
  }>, {
10
12
  selectedPreset: string | null;
11
13
  isMobile: boolean;
14
+ availablePresets: CalendarPreset[];
12
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
16
  export default _default;
@@ -13,6 +13,7 @@ interface Props {
13
13
  minDate?: Date | string;
14
14
  maxDate?: Date | string;
15
15
  columns?: 1 | 2;
16
+ maxDateRangeDays?: number;
16
17
  }
17
18
  type __VLS_Props = Props;
18
19
  type __VLS_PublicProps = __VLS_Props & {
@@ -42,5 +43,6 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
42
43
  showPresets: boolean;
43
44
  showValidateMessages: boolean;
44
45
  showTimePicker: boolean;
46
+ maxDateRangeDays: number;
45
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
48
  export default _default;
@@ -0,0 +1,2 @@
1
+ export declare function resolveEffectiveMaxDate(maxDateRangeDays: number | undefined, startDate: Date | null, isSelectingEnd: boolean, maxDate: Date | string | undefined): Date | string | undefined;
2
+ export declare function resolveEffectiveMinDate(maxDateRangeDays: number | undefined, startDate: Date | null, isSelectingEnd: boolean, minDate: Date | string | undefined): Date | string | undefined;