import { OnInit, OnDestroy, ElementRef, Component, Renderer2 } from '@angular/core'; import { pDaterangepickerContainerComponent } from './p-daterangepicker-container.component'; import { pDatepickerActions } from '../../reducer/p-datepicker.actions'; import { pDatepickerConfig } from '../../p-datepicker.config'; import { pDatepickerEffects } from '../../reducer/p-datepicker.effects'; import { pDatepickerStore } from '../../reducer/p-datepicker.store'; import { PositioningService } from 'mirra-ui/positioning'; import { datepickerAnimation } from '../../datepicker-animations'; @Component({ selector: 'p-daterangepicker-inline-container', providers: [pDatepickerStore, pDatepickerEffects], templateUrl: './p-datepicker-view.html', host: { '(click)': '_stopPropagation($event)' }, animations: [datepickerAnimation] }) export class pDaterangepickerInlineContainerComponent extends pDaterangepickerContainerComponent implements OnInit, OnDestroy { constructor( _renderer: Renderer2, _config: pDatepickerConfig, _store: pDatepickerStore, _element: ElementRef, _actions: pDatepickerActions, _effects: pDatepickerEffects, _positioningService: PositioningService ) { super(_renderer, _config, _store, _element, _actions, _effects, _positioningService); _renderer.setStyle(_element.nativeElement, 'display', 'inline-block'); _renderer.setStyle(_element.nativeElement, 'position', 'static'); } }