bs-datepicker-inline.component.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
  2. import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
  3. import { Subscription } from 'rxjs';
  4. import { BsDatepickerInlineConfig } from './bs-datepicker-inline.config';
  5. import { DatepickerDateCustomClasses } from './models';
  6. export declare class BsDatepickerInlineDirective implements OnInit, OnDestroy, OnChanges {
  7. _config: BsDatepickerInlineConfig;
  8. private _elementRef;
  9. _bsValue: Date;
  10. /**
  11. * Initial value of datepicker
  12. */
  13. bsValue: Date;
  14. /**
  15. * Config object for datepicker
  16. */
  17. bsConfig: Partial<BsDatepickerInlineConfig>;
  18. /**
  19. * Indicates whether datepicker is enabled or not
  20. */
  21. isDisabled: boolean;
  22. /**
  23. * Minimum date which is available for selection
  24. */
  25. minDate: Date;
  26. /**
  27. * Maximum date which is available for selection
  28. */
  29. maxDate: Date;
  30. /**
  31. * Date custom classes
  32. */
  33. dateCustomClasses: DatepickerDateCustomClasses[];
  34. /**
  35. * Disable specific dates
  36. */
  37. datesDisabled: Date[];
  38. /**
  39. * Emits when datepicker value has been changed
  40. */
  41. bsValueChange: EventEmitter<Date>;
  42. protected _subs: Subscription[];
  43. private _datepicker;
  44. private _datepickerRef;
  45. constructor(_config: BsDatepickerInlineConfig, _elementRef: ElementRef, _renderer: Renderer2, _viewContainerRef: ViewContainerRef, cis: ComponentLoaderFactory);
  46. ngOnInit(): void;
  47. ngOnChanges(changes: SimpleChanges): void;
  48. /**
  49. * Set config for datepicker
  50. */
  51. setConfig(): void;
  52. ngOnDestroy(): any;
  53. }