@@ -52,6 +52,7 @@ import { DateTimeUtil } from '../date-time-input/date-util.js';
52
52
import IgcDialogComponent from '../dialog/dialog.js' ;
53
53
import IgcFocusTrapComponent from '../focus-trap/focus-trap.js' ;
54
54
import IgcIconComponent from '../icon/icon.js' ;
55
+ import IgcInputComponent from '../input/input.js' ;
55
56
import IgcPopoverComponent from '../popover/popover.js' ;
56
57
import IgcValidationContainerComponent from '../validation-container/validation-container.js' ;
57
58
import IgcDateRangeInputComponent , {
@@ -69,6 +70,8 @@ export interface IgcDateRangePickerComponentEventMap {
69
70
igcInput : CustomEvent < ( Date | null ) [ ] > ;
70
71
}
71
72
73
+ //const formats = new Set(['short', 'medium', 'long', 'full']);
74
+
72
75
/**
73
76
* The igc-date-range-picker allows the user to select a range of dates.
74
77
*
@@ -111,6 +114,7 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
111
114
IgcDateRangePickerComponent ,
112
115
IgcCalendarComponent ,
113
116
IgcDateTimeInputComponent ,
117
+ IgcInputComponent ,
114
118
IgcFocusTrapComponent ,
115
119
IgcIconComponent ,
116
120
IgcPopoverComponent ,
@@ -849,6 +853,10 @@ export default class IgcDateRangePickerComponent extends FormAssociatedRequiredM
849
853
}
850
854
851
855
private renderSingleInput ( id : string ) {
856
+ // const format = formats.has(this._displayFormat!)
857
+ // ? `${this._displayFormat}Date`
858
+ // : this._displayFormat;
859
+
852
860
return html ` < igc-input
853
861
id =${ id }
854
862
aria-haspopup ="dialog"
0 commit comments