Calendar widget with block out date?

Hi everyone,

I need to use this calendar widget (e.g. new sales order - date) and black out dates based on

  • any days before today
  • public holidays
  • sunday

Is that something possible with the erpnext calendar widget? or is that something i have to build a new calendar widget?

Note: I am using this calendar widget for a custom module. Modify this should not affect other calendar widgets.