@@ -32,12 +32,30 @@ const {
32
32
33
33
// --- Props ---
34
34
35
+ const calendarProps = omit ( BCalendarProps , [
36
+ 'block' ,
37
+ 'hidden' ,
38
+ 'id' ,
39
+ 'noKeyNav' ,
40
+ 'roleDescription' ,
41
+ 'value' ,
42
+ 'width'
43
+ ] )
44
+
45
+ const formBtnLabelControlProps = omit ( BVFormBtnLabelControlProps , [
46
+ 'formattedValue' ,
47
+ 'id' ,
48
+ 'lang' ,
49
+ 'rtl' ,
50
+ 'value'
51
+ ] )
52
+
35
53
export const props = makePropsConfigurable (
36
54
sortKeys ( {
37
55
...idProps ,
38
56
...modelProps ,
39
- ...omit ( BCalendarProps , [ 'id' , 'value' ] ) ,
40
- ...omit ( BVFormBtnLabelControlProps , [ 'formattedValue' , 'id' , 'lang' , 'rtl' , 'value' ] ) ,
57
+ ...calendarProps ,
58
+ ...formBtnLabelControlProps ,
41
59
buttonOnly : makeProp ( PROP_TYPE_BOOLEAN , false ) ,
42
60
// Applicable in button only mode
43
61
buttonVariant : makeProp ( PROP_TYPE_STRING , 'secondary' ) ,
@@ -262,9 +280,10 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({
262
280
{
263
281
staticClass : 'b-form-date-calendar w-100' ,
264
282
props : {
265
- ...pluckProps ( BCalendarProps , $props ) ,
283
+ ...pluckProps ( calendarProps , $props ) ,
266
284
value : localYMD ,
267
- hidden : ! this . isVisible
285
+ hidden : ! this . isVisible ,
286
+ width : this . calendarWidth
268
287
} ,
269
288
on : {
270
289
selected : this . onSelected ,
@@ -291,7 +310,7 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({
291
310
{
292
311
staticClass : 'b-form-datepicker' ,
293
312
props : {
294
- ...pluckProps ( BVFormBtnLabelControlProps , $props ) ,
313
+ ...pluckProps ( formBtnLabelControlProps , $props ) ,
295
314
id : this . safeId ( ) ,
296
315
value : localYMD ,
297
316
formattedValue : localYMD ? this . formattedValue : '' ,
0 commit comments