@rebilly/revel 6.30.41 → 6.30.42
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 +1 -1
- package/dist/components/r-month-picker/r-month-picker.vue.d.ts +52 -131
- package/dist/revel.mjs +988 -1068
- package/dist/revel.umd.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [6.30.
|
|
1
|
+
## [6.30.42](https://github.com/Rebilly/rebilly/compare/revel-v6.30.41...revel-v6.30.42) (2024-08-12)
|
|
@@ -1,164 +1,68 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
1
|
type Position = 'bottomStart' | 'bottomEnd' | 'topStart' | 'topEnd';
|
|
3
2
|
interface Month {
|
|
4
3
|
monthIndex: Nullable<number>;
|
|
5
4
|
year: number;
|
|
6
5
|
}
|
|
7
|
-
interface State {
|
|
8
|
-
months: string[];
|
|
9
|
-
}
|
|
10
|
-
interface MonthPickerElement extends HTMLElement {
|
|
11
|
-
popper: {
|
|
12
|
-
toggle: () => void;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
6
|
export interface Props {
|
|
16
|
-
label?: string;
|
|
17
|
-
caption?: string;
|
|
18
|
-
modelValue: Month;
|
|
19
|
-
clearable?: boolean;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
position?: Position;
|
|
22
|
-
minValue?: Month;
|
|
23
|
-
maxValue?: Month;
|
|
24
|
-
}
|
|
25
|
-
declare const _default: import("vue").DefineComponent<{
|
|
26
7
|
/**
|
|
27
8
|
* Label for the month picker
|
|
28
9
|
*/
|
|
29
|
-
label
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Help text for the month picker
|
|
35
|
-
*/
|
|
36
|
-
caption: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Selected month and year
|
|
42
|
-
*/
|
|
43
|
-
modelValue: {
|
|
44
|
-
required: true;
|
|
45
|
-
type: PropType<Month>;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Defines if month picker is clearable
|
|
49
|
-
*/
|
|
50
|
-
clearable: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
required: false;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Placeholder of the input if no month is selected
|
|
57
|
-
*/
|
|
58
|
-
placeholder: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Position of popover control
|
|
64
|
-
*/
|
|
65
|
-
position: {
|
|
66
|
-
type: PropType<Position>;
|
|
67
|
-
default: string;
|
|
68
|
-
validator: (pos: string) => boolean;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Minimum month and year
|
|
72
|
-
*/
|
|
73
|
-
minValue: {
|
|
74
|
-
type: PropType<Month>;
|
|
75
|
-
default: () => {};
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Maximum month and year
|
|
79
|
-
*/
|
|
80
|
-
maxValue: {
|
|
81
|
-
type: PropType<Month>;
|
|
82
|
-
default: () => {};
|
|
83
|
-
};
|
|
84
|
-
}, {
|
|
85
|
-
monthPickerElement: import("vue").Ref<MonthPickerElement | null>;
|
|
86
|
-
}, State, {
|
|
87
|
-
selectedDateLabel(): string;
|
|
88
|
-
isYearDecrementDisabled(): boolean | 0;
|
|
89
|
-
isYearIncrementDisabled(): boolean | 0;
|
|
90
|
-
}, {
|
|
91
|
-
selectMonth(monthIndex: number): void;
|
|
92
|
-
changeYear(value: number): void;
|
|
93
|
-
populateInput(date: Month): void;
|
|
94
|
-
onClear(): void;
|
|
95
|
-
togglePopper(): void;
|
|
96
|
-
isMonthSelected(monthIndex: number): boolean;
|
|
97
|
-
isMonthDisabled(monthIndex: number): boolean;
|
|
98
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "clear" | "month-change" | "year-change")[], "update:modelValue" | "clear" | "month-change" | "year-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
|
-
/**
|
|
100
|
-
* Label for the month picker
|
|
101
|
-
*/
|
|
102
|
-
label: {
|
|
103
|
-
type: StringConstructor;
|
|
104
|
-
default: string;
|
|
105
|
-
};
|
|
10
|
+
label?: string;
|
|
106
11
|
/**
|
|
107
12
|
* Help text for the month picker
|
|
108
13
|
*/
|
|
109
|
-
caption
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
14
|
+
caption?: string;
|
|
113
15
|
/**
|
|
114
16
|
* Selected month and year
|
|
115
17
|
*/
|
|
116
|
-
modelValue:
|
|
117
|
-
required: true;
|
|
118
|
-
type: PropType<Month>;
|
|
119
|
-
};
|
|
18
|
+
modelValue: Month;
|
|
120
19
|
/**
|
|
121
20
|
* Defines if month picker is clearable
|
|
122
21
|
*/
|
|
123
|
-
clearable
|
|
124
|
-
type: BooleanConstructor;
|
|
125
|
-
default: boolean;
|
|
126
|
-
required: false;
|
|
127
|
-
};
|
|
22
|
+
clearable?: boolean;
|
|
128
23
|
/**
|
|
129
24
|
* Placeholder of the input if no month is selected
|
|
130
25
|
*/
|
|
131
|
-
placeholder
|
|
132
|
-
type: StringConstructor;
|
|
133
|
-
default: string;
|
|
134
|
-
};
|
|
26
|
+
placeholder?: string;
|
|
135
27
|
/**
|
|
136
28
|
* Position of popover control
|
|
137
29
|
*/
|
|
138
|
-
position
|
|
139
|
-
type: PropType<Position>;
|
|
140
|
-
default: string;
|
|
141
|
-
validator: (pos: string) => boolean;
|
|
142
|
-
};
|
|
30
|
+
position?: Position;
|
|
143
31
|
/**
|
|
144
32
|
* Minimum month and year
|
|
145
33
|
*/
|
|
146
|
-
minValue
|
|
147
|
-
type: PropType<Month>;
|
|
148
|
-
default: () => {};
|
|
149
|
-
};
|
|
34
|
+
minValue?: Month;
|
|
150
35
|
/**
|
|
151
36
|
* Maximum month and year
|
|
152
37
|
*/
|
|
153
|
-
maxValue
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
38
|
+
maxValue?: Month;
|
|
39
|
+
}
|
|
40
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
41
|
+
label: string;
|
|
42
|
+
caption: string;
|
|
43
|
+
clearable: boolean;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
position: string;
|
|
46
|
+
minValue: undefined;
|
|
47
|
+
maxValue: undefined;
|
|
48
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
clear: () => void;
|
|
50
|
+
"month-change": (value: number) => void;
|
|
51
|
+
"update:modelValue": (value: Month) => void;
|
|
52
|
+
"year-change": (value: number) => void;
|
|
53
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
54
|
+
label: string;
|
|
55
|
+
caption: string;
|
|
56
|
+
clearable: boolean;
|
|
57
|
+
placeholder: string;
|
|
58
|
+
position: string;
|
|
59
|
+
minValue: undefined;
|
|
60
|
+
maxValue: undefined;
|
|
61
|
+
}>>> & {
|
|
62
|
+
"onUpdate:modelValue"?: ((value: Month) => any) | undefined;
|
|
63
|
+
onClear?: (() => any) | undefined;
|
|
64
|
+
"onMonth-change"?: ((value: number) => any) | undefined;
|
|
65
|
+
"onYear-change"?: ((value: number) => any) | undefined;
|
|
162
66
|
}, {
|
|
163
67
|
caption: string;
|
|
164
68
|
label: string;
|
|
@@ -169,3 +73,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
73
|
maxValue: Month;
|
|
170
74
|
}>;
|
|
171
75
|
export default _default;
|
|
76
|
+
type __VLS_WithDefaults<P, D> = {
|
|
77
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
78
|
+
default: D[K];
|
|
79
|
+
}> : P[K];
|
|
80
|
+
};
|
|
81
|
+
type __VLS_Prettify<T> = {
|
|
82
|
+
[K in keyof T]: T[K];
|
|
83
|
+
} & {};
|
|
84
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
85
|
+
type __VLS_TypePropsToOption<T> = {
|
|
86
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
87
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
88
|
+
} : {
|
|
89
|
+
type: import('vue').PropType<T[K]>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
};
|