@rebilly/revel 12.38.0 → 12.40.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 +2 -2
- package/dist/components/r-date-range/components/popup.vue.d.ts +3 -1
- package/dist/components/r-date-range/components/presets.vue.d.ts +3 -0
- package/dist/components/r-date-range/r-date-range.vue.d.ts +2 -0
- package/dist/components/r-date-range/resolve-effective-date-boundary.d.ts +2 -0
- package/dist/components/r-input/r-input.vue.d.ts +5 -0
- package/dist/revel.mjs +2282 -2213
- package/dist/revel.umd.js +10 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [12.
|
|
1
|
+
## [12.40.0](https://github.com/Rebilly/rebilly/compare/revel-v12.39.0...revel-v12.40.0) (2026-06-30)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **revel:** Add integer prop to `r-input` ([#23010](https://github.com/Rebilly/rebilly/issues/23010)) ([53e55e6](https://github.com/Rebilly/rebilly/commit/53e55e6a99af8ba6d517506e42e7c5830c04cc4f))
|
|
@@ -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;
|
|
@@ -45,6 +45,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
45
45
|
leftLabel: Nullable<string>;
|
|
46
46
|
rightLabel: Nullable<string>;
|
|
47
47
|
numeric: boolean;
|
|
48
|
+
integer: boolean;
|
|
48
49
|
rows: string | number;
|
|
49
50
|
autoFocus: boolean;
|
|
50
51
|
autoHighlight: boolean;
|
|
@@ -129,6 +130,10 @@ interface Props {
|
|
|
129
130
|
* Changes the input type to number
|
|
130
131
|
*/
|
|
131
132
|
numeric?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Restricts input to integers only (no decimals)
|
|
135
|
+
*/
|
|
136
|
+
integer?: boolean;
|
|
132
137
|
/**
|
|
133
138
|
* Adds a name attribute to the input
|
|
134
139
|
*/
|