You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
495 B

  1. // Events to emit, copied from flatpickr source
  2. import flatpickr from 'flatpickr';
  3. import HookKey = flatpickr.Options.HookKey;
  4. const includedEvents = [
  5. 'onChange',
  6. 'onClose',
  7. 'onDestroy',
  8. 'onMonthChange',
  9. 'onOpen',
  10. 'onYearChange',
  11. ] as HookKey[];
  12. // Let's not emit these events by default
  13. const excludedEvents = [
  14. 'onValueUpdate',
  15. 'onDayCreate',
  16. 'onParseConfig',
  17. 'onReady',
  18. 'onPreCalendarPosition',
  19. 'onKeyDown',
  20. ] as HookKey[];
  21. export {includedEvents, excludedEvents}