How jkuri/ngx-airbnb-calendar works
AirbnbCalendar is an Angular date-range calendar library. A host application attaches its directive to an input and supplies options; the directive creates the calendar component, which builds two months of date data and emits selected values back to Angular’s form model. The component template renders the calendar, while the options module supplies defaults and date-fns provides date operations. The README documents date bounds, formatting, locale, week-start, and auto-close options. The demo and build/test machinery are omitted; the view template is connected based on the component metadata.
Main entry points: airbnb-calendar.directive.ts Input directive · airbnb-calendar.component.ts Calendar logic · airbnb-calendar.module.ts Angular module · airbnb-calendar.interface.ts Calendar options
Components 9
Other components
- Host input
- Input directive
projects/airbnb-calendar/src/lib/airbnb-calendar.directive.ts - Calendar logic
projects/airbnb-calendar/src/lib/airbnb-calendar.component.ts - Calendar view
projects/airbnb-calendar/src/lib/airbnb-calendar.component.html - Calendar options
projects/airbnb-calendar/src/lib/airbnb-calendar.interface.ts - Angular module
projects/airbnb-calendar/src/lib/airbnb-calendar.module.ts - Public exports
projects/airbnb-calendar/src/public-api.ts - Angular forms
- date-fns
Connections 11
- Host input → Input directive: attaches to
README.md - Input directive → Calendar logic: creates and listens
projects/airbnb-calendar/src/lib/airbnb-calendar.directive.ts - Input directive → Calendar options: merges options
projects/airbnb-calendar/src/lib/airbnb-calendar.directive.ts - Calendar logic → Calendar options: merges options
projects/airbnb-calendar/src/lib/airbnb-calendar.component.ts - Calendar logic → Calendar view: renders
projects/airbnb-calendar/src/lib/airbnb-calendar.component.ts - Calendar logic → date-fns: uses date operations
projects/airbnb-calendar/src/lib/airbnb-calendar.component.ts - Input directive → Angular forms: patches form value
projects/airbnb-calendar/src/lib/airbnb-calendar.directive.ts - Angular module → Calendar logic: declares and exports
projects/airbnb-calendar/src/lib/airbnb-calendar.module.ts - Angular module → Input directive: declares and exports
projects/airbnb-calendar/src/lib/airbnb-calendar.module.ts - Public exports → Angular module: exports
projects/airbnb-calendar/src/public-api.ts - Public exports → Calendar options: exports
projects/airbnb-calendar/src/public-api.ts