@rebilly/revel 6.30.24 → 6.30.26

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 @@
1
- ## [6.30.24](https://github.com/Rebilly/rebilly/compare/revel-v6.30.23...revel-v6.30.24) (2024-07-18)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **revel:** Remove invalid target attribute assignment from button component ([#6605](https://github.com/Rebilly/rebilly/issues/6605)) ([45266b8](https://github.com/Rebilly/rebilly/commit/45266b8f71a1d6d1c68eebfd28bec250ba1f1da8))
1
+ ## [6.30.26](https://github.com/Rebilly/rebilly/compare/revel-v6.30.25...revel-v6.30.26) (2024-07-19)
@@ -1,171 +1,71 @@
1
- import { type PropType } from 'vue';
2
1
  import 'v-calendar/style.css';
3
- import type { ValidationState } from '../../types';
4
- declare const _default: import("vue").DefineComponent<{
2
+ interface Props {
5
3
  /**
6
- * Dates
4
+ * Date value
7
5
  */
8
- modelValue: {
9
- type: PropType<string | Date>;
10
- default: string;
11
- };
12
- /**
13
- * Disable
14
- */
15
- disabled: {
16
- type: BooleanConstructor;
17
- default: boolean;
18
- };
19
- /**
20
- * Validation result sent by Vuelidate
21
- */
22
- validate: {
23
- type: PropType<ValidationState>;
24
- default: null;
25
- };
26
- /**
27
- * Time zone
28
- */
29
- timezone: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- /**
34
- * Type
35
- */
36
- type: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- /**
41
- * v-calendar model config configuration
42
- */
43
- modelConfig: {
44
- type: ObjectConstructor;
45
- default: null;
46
- };
47
- /**
48
- * Masks are used to properly format and parse different sections of the calendar and date picker components.
49
- */
50
- masks: {
51
- type: ObjectConstructor;
52
- default: () => void;
53
- };
54
- }, {
55
- themeStyles: {
56
- wrapper: {
57
- background: string;
58
- borderRadius: string;
59
- boxShadow: string;
60
- border: string; /**
61
- * Dates
62
- */
63
- fontFamily: string;
64
- };
65
- header: {
66
- padding: string;
67
- };
68
- headerTitle: {
69
- fontSize: string; /**
70
- * Disable
71
- */
72
- lineHeight: string;
73
- fontFamily: string;
74
- fontWeight: string;
75
- color: string;
76
- };
77
- weekdays: {
78
- fontSize: string;
79
- lineHeight: string;
80
- color: string;
81
- fontWeight: string;
82
- };
83
- dayCell: {
84
- backgroundColor: string;
85
- };
86
- dayContent: {
87
- fontSize: string;
88
- lineHeight: string;
89
- color: string;
90
- width: string;
91
- height: string;
92
- };
93
- dayContentHover: {
94
- backgroundColor: string;
95
- };
96
- verticalDivider: {
97
- borderLeft: string;
98
- };
99
- bars: {
100
- backgroundColor: string; /**
101
- * Masks are used to properly format and parse different sections of the calendar and date picker components.
102
- */
103
- };
104
- tintColor: string;
105
- };
106
- popoverConfigs: Partial<import("v-calendar/dist/types/src/utils/popovers.js").PopoverOptions>;
107
- computedModelConfig: import("vue").ComputedRef<Record<string, any>>;
108
- }, unknown, {}, {
109
- onDateInput(date: Date): void;
110
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
111
- /**
112
- * Dates
113
- */
114
- modelValue: {
115
- type: PropType<string | Date>;
116
- default: string;
117
- };
6
+ modelValue?: Date | string;
118
7
  /**
119
8
  * Disable
120
9
  */
121
- disabled: {
122
- type: BooleanConstructor;
123
- default: boolean;
124
- };
125
- /**
126
- * Validation result sent by Vuelidate
127
- */
128
- validate: {
129
- type: PropType<ValidationState>;
130
- default: null;
131
- };
10
+ disabled?: boolean;
132
11
  /**
133
12
  * Time zone
134
13
  */
135
- timezone: {
136
- type: StringConstructor;
137
- default: string;
138
- };
14
+ timezone?: string;
139
15
  /**
140
16
  * Type
141
17
  */
142
- type: {
143
- type: StringConstructor;
144
- default: string;
145
- };
18
+ type?: string;
146
19
  /**
147
20
  * v-calendar model config configuration
148
21
  */
149
- modelConfig: {
150
- type: ObjectConstructor;
151
- default: null;
152
- };
22
+ modelConfig?: object;
153
23
  /**
154
24
  * Masks are used to properly format and parse different sections of the calendar and date picker components.
155
25
  */
156
- masks: {
157
- type: ObjectConstructor;
158
- default: () => void;
159
- };
160
- }>> & {
161
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
26
+ masks?: object;
27
+ }
28
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
29
+ modelValue: string;
30
+ disabled: boolean;
31
+ timezone: string;
32
+ type: string;
33
+ modelConfig: undefined;
34
+ masks: () => {};
35
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:modelValue": (value: string | Date) => void;
37
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
38
+ modelValue: string;
39
+ disabled: boolean;
40
+ timezone: string;
41
+ type: string;
42
+ modelConfig: undefined;
43
+ masks: () => {};
44
+ }>>> & {
45
+ "onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
162
46
  }, {
163
47
  type: string;
164
48
  disabled: boolean;
165
49
  modelValue: string | Date;
166
- validate: ValidationState;
167
- masks: Record<string, any>;
168
50
  timezone: string;
169
- modelConfig: Record<string, any>;
51
+ modelConfig: object;
52
+ masks: object;
170
53
  }>;
171
54
  export default _default;
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToRuntimeProps<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
64
+ type __VLS_WithDefaults<P, D> = {
65
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
+ default: D[K];
67
+ }> : P[K];
68
+ };
69
+ type __VLS_Prettify<T> = {
70
+ [K in keyof T]: T[K];
71
+ } & {};
@@ -1,294 +1,123 @@
1
- import { type PropType } from 'vue';
2
1
  import type { DateRange } from './types';
3
2
  import type { ValidationState } from '../../types';
4
- declare const _default: import("vue").DefineComponent<{
3
+ interface Props {
5
4
  /**
6
5
  * Label for the date picker
7
6
  */
8
- label: {
9
- type: StringConstructor;
10
- default: string;
11
- };
7
+ label?: string;
12
8
  /**
13
9
  * Unique id of the date picker
14
10
  */
15
- id: {
16
- type: StringConstructor;
17
- default: () => string;
18
- };
11
+ id?: string;
19
12
  /**
20
13
  * A text to describe the date picker
21
14
  */
22
- caption: {
23
- type: StringConstructor;
24
- default: null;
25
- };
15
+ caption?: string;
26
16
  /**
27
17
  * Used to specify selected dates
28
18
  * @model
29
19
  */
30
- modelValue: {
31
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
32
- default: () => Date;
33
- };
20
+ modelValue?: Date | object | string;
34
21
  /**
35
22
  * Disable
36
23
  */
37
- disabled: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
24
+ disabled?: boolean;
41
25
  /**
42
26
  * Validation result sent by Vuelidate
43
27
  */
44
- validate: {
45
- type: PropType<ValidationState>;
46
- default: null;
47
- };
28
+ validate?: ValidationState;
48
29
  /**
49
30
  * Time zone
50
31
  */
51
- timezone: {
52
- type: StringConstructor;
53
- default: string;
54
- };
32
+ timezone?: string;
55
33
  /**
56
34
  * Available dates
57
35
  */
58
- availableDates: {
59
- type: ObjectConstructor;
60
- default: null;
61
- };
36
+ availableDates?: object;
62
37
  /**
63
38
  * Columns
64
39
  */
65
- columns: {
66
- type: NumberConstructor;
67
- default: number;
68
- };
40
+ columns?: number;
69
41
  /**
70
42
  * Time picker used by RDateRangeButtonGroup to include time in ranges
71
43
  */
72
- timePicker: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
44
+ timePicker?: boolean;
76
45
  /**
77
46
  * Time picker
78
47
  */
79
- placeholder: {
80
- type: StringConstructor;
81
- default: string;
82
- };
48
+ placeholder?: string;
83
49
  /**
84
50
  * Min date
85
51
  */
86
- minDate: {
87
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
88
- default: null;
89
- };
52
+ minDate?: Date | string | object;
90
53
  /**
91
54
  * Max date
92
55
  */
93
- maxDate: {
94
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
95
- default: null;
96
- };
56
+ maxDate?: Date | string | object;
97
57
  /**
98
58
  * Type
99
59
  */
100
- type: {
101
- type: StringConstructor;
102
- default: string;
103
- validator: (type: string) => boolean;
104
- };
60
+ type?: string;
105
61
  /**
106
62
  * Define if the time format is 24H
107
63
  */
108
- is24hr: {
109
- type: BooleanConstructor;
110
- default: boolean;
111
- };
64
+ is24hr?: boolean;
112
65
  /**
113
66
  * Placement
114
67
  */
115
- placement: {
116
- type: StringConstructor;
117
- default: string;
118
- };
68
+ placement?: string;
119
69
  /**
120
70
  * v-calendar uses Internationalization API by default but we can explicitly specify a locale with this prop
121
71
  * See https://vcalendar.io/i18n.html#string-locales
122
72
  */
123
- locale: {
124
- type: StringConstructor;
125
- default: null;
126
- };
73
+ locale?: string;
127
74
  /**
128
75
  * Masks are used to properly format and parse different sections of the calendar and date picker components.
129
76
  */
130
- masks: {
131
- type: ObjectConstructor;
132
- default: () => void;
133
- };
134
- }, unknown, unknown, {
135
- isInvalid(): boolean;
136
- isDateRange(): boolean;
137
- commonAttrs(): {
138
- id: string;
139
- name: string;
140
- minDate: string | Record<string, any> | Date;
141
- maxDate: string | Record<string, any> | Date;
142
- columns: number;
143
- placement: string;
144
- timePicker: boolean;
145
- timezone: string;
146
- is24hr: boolean;
147
- availableDates: Record<string, any>;
148
- placeholder: string;
149
- popoverVisibility: string;
150
- disabled: boolean;
151
- locale: Optional<string>;
152
- };
153
- modelConfig(): {
154
- timeAdjust: string;
155
- } | {
156
- timeAdjust?: undefined;
157
- };
158
- }, {
159
- onValueUpdate(date: DateRange): void;
160
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
161
- /**
162
- * Label for the date picker
163
- */
164
- label: {
165
- type: StringConstructor;
166
- default: string;
167
- };
168
- /**
169
- * Unique id of the date picker
170
- */
171
- id: {
172
- type: StringConstructor;
173
- default: () => string;
174
- };
175
- /**
176
- * A text to describe the date picker
177
- */
178
- caption: {
179
- type: StringConstructor;
180
- default: null;
181
- };
182
- /**
183
- * Used to specify selected dates
184
- * @model
185
- */
186
- modelValue: {
187
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
188
- default: () => Date;
189
- };
190
- /**
191
- * Disable
192
- */
193
- disabled: {
194
- type: BooleanConstructor;
195
- default: boolean;
196
- };
197
- /**
198
- * Validation result sent by Vuelidate
199
- */
200
- validate: {
201
- type: PropType<ValidationState>;
202
- default: null;
203
- };
204
- /**
205
- * Time zone
206
- */
207
- timezone: {
208
- type: StringConstructor;
209
- default: string;
210
- };
211
- /**
212
- * Available dates
213
- */
214
- availableDates: {
215
- type: ObjectConstructor;
216
- default: null;
217
- };
218
- /**
219
- * Columns
220
- */
221
- columns: {
222
- type: NumberConstructor;
223
- default: number;
224
- };
225
- /**
226
- * Time picker used by RDateRangeButtonGroup to include time in ranges
227
- */
228
- timePicker: {
229
- type: BooleanConstructor;
230
- default: boolean;
231
- };
232
- /**
233
- * Time picker
234
- */
235
- placeholder: {
236
- type: StringConstructor;
237
- default: string;
238
- };
239
- /**
240
- * Min date
241
- */
242
- minDate: {
243
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
244
- default: null;
245
- };
246
- /**
247
- * Max date
248
- */
249
- maxDate: {
250
- type: (ObjectConstructor | DateConstructor | StringConstructor)[];
251
- default: null;
252
- };
253
- /**
254
- * Type
255
- */
256
- type: {
257
- type: StringConstructor;
258
- default: string;
259
- validator: (type: string) => boolean;
260
- };
261
- /**
262
- * Define if the time format is 24H
263
- */
264
- is24hr: {
265
- type: BooleanConstructor;
266
- default: boolean;
267
- };
268
- /**
269
- * Placement
270
- */
271
- placement: {
272
- type: StringConstructor;
273
- default: string;
274
- };
275
- /**
276
- * v-calendar uses Internationalization API by default but we can explicitly specify a locale with this prop
277
- * See https://vcalendar.io/i18n.html#string-locales
278
- */
279
- locale: {
280
- type: StringConstructor;
281
- default: null;
282
- };
283
- /**
284
- * Masks are used to properly format and parse different sections of the calendar and date picker components.
285
- */
286
- masks: {
287
- type: ObjectConstructor;
288
- default: () => void;
289
- };
290
- }>> & {
291
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
77
+ masks?: object;
78
+ }
79
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
80
+ label: string;
81
+ id: () => string;
82
+ caption: undefined;
83
+ modelValue: () => Date;
84
+ disabled: boolean;
85
+ validate: undefined;
86
+ timezone: string;
87
+ availableDates: undefined;
88
+ columns: number;
89
+ timePicker: boolean;
90
+ placeholder: string;
91
+ minDate: undefined;
92
+ maxDate: undefined;
93
+ type: string;
94
+ is24hr: boolean;
95
+ placement: string;
96
+ locale: undefined;
97
+ masks: () => {};
98
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
99
+ "update:modelValue": (value: string | Date | DateRange) => void;
100
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
101
+ label: string;
102
+ id: () => string;
103
+ caption: undefined;
104
+ modelValue: () => Date;
105
+ disabled: boolean;
106
+ validate: undefined;
107
+ timezone: string;
108
+ availableDates: undefined;
109
+ columns: number;
110
+ timePicker: boolean;
111
+ placeholder: string;
112
+ minDate: undefined;
113
+ maxDate: undefined;
114
+ type: string;
115
+ is24hr: boolean;
116
+ placement: string;
117
+ locale: undefined;
118
+ masks: () => {};
119
+ }>>> & {
120
+ "onUpdate:modelValue"?: ((value: string | Date | DateRange) => any) | undefined;
292
121
  }, {
293
122
  columns: number;
294
123
  id: string;
@@ -296,17 +125,34 @@ declare const _default: import("vue").DefineComponent<{
296
125
  label: string;
297
126
  type: string;
298
127
  disabled: boolean;
299
- modelValue: string | Record<string, any> | Date;
128
+ modelValue: string | object | Date;
300
129
  validate: ValidationState;
301
130
  placement: string;
131
+ timezone: string;
132
+ masks: object;
302
133
  is24hr: boolean;
303
- masks: Record<string, any>;
304
134
  locale: string;
305
- timezone: string;
306
- minDate: string | Record<string, any> | Date;
307
- maxDate: string | Record<string, any> | Date;
135
+ minDate: string | object | Date;
136
+ maxDate: string | object | Date;
308
137
  placeholder: string;
309
138
  timePicker: boolean;
310
- availableDates: Record<string, any>;
139
+ availableDates: object;
311
140
  }>;
312
141
  export default _default;
142
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
143
+ type __VLS_TypePropsToRuntimeProps<T> = {
144
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
145
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
146
+ } : {
147
+ type: import('vue').PropType<T[K]>;
148
+ required: true;
149
+ };
150
+ };
151
+ type __VLS_WithDefaults<P, D> = {
152
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
153
+ default: D[K];
154
+ }> : P[K];
155
+ };
156
+ type __VLS_Prettify<T> = {
157
+ [K in keyof T]: T[K];
158
+ } & {};