@asadi/angular-date-components
Version:
`Angular Date Components` is a comprehensive angular library of date-related components designed to meet the needs of applications that require localization based on various calendar systems. While the package currently includes two powerful components (S
74 lines (73 loc) • 3.25 kB
TypeScript
import { Observable } from 'rxjs';
import { ADCISchedulerDateRangeSelectEvent, ADCISchedulerEvent, ADCISchedulerEventSelectEvent } from '../interface.global';
import { ADCIDateRangeChangeEvent } from '@asadi/angular-date-components/core';
import * as i0 from "@angular/core";
/**
* Directive to manage and emit events related to the scheduler, such as date range selection and event selection.
* It handles holidays, weekends, and events and provides observables for changes in these values.
*/
export declare class ADCSchedulerSource {
private _events;
private _holidays;
private _weekends;
/**
* Emitted when a date range is selected by the user.
* This output allows handling of date range selection events in the parent component.
*
* @example
* <div SchedulerSource (DateRangeSelect)="onDateRangeSelect($event)"></div>
*/
private dateRangeSelect;
/**
* Emitted when an event is selected in the scheduler.
* This output allows handling of event selection events in the parent component.
*
* @example
* <div SchedulerSource (EventSelect)="onEventSelect($event)"></div>
*/
private EventSelect;
/**
* Emitted when the date range is changed.
* This output allows handling of date range change events in the parent component.
*
* @example
* <div SchedulerSource (DateRangeChange)="onDateRangeChange($event)"></div>
*/
private dateRangeChange;
/**
* The list of holiday dates to exclude in the scheduler.
* When this value is updated, it updates the internal holidays list.
*
* @example
* <div SchedulerSource [Holidays]="holidayList"></div>
*/
set holidays(value: string[]);
get holidays(): string[];
/**
* The list of weekend days (represented as day numbers, e.g., [0, 6] for Sunday and Saturday).
* When this value is updated, it updates the internal weekends list.
*
* @example
* <div SchedulerSource [Weekends]="[0, 6]"></div>
*/
set weekends(value: number[]);
get weekends(): number[];
startOf: string | null;
/**
* The list of scheduler events to be displayed in the scheduler.
* When this value is updated, it updates the internal events list.
*
* @example
* <div SchedulerSource [Events]="eventList"></div>
*/
set events(value: ADCISchedulerEvent[]);
get events(): ADCISchedulerEvent[];
eventChanges(): Observable<ADCISchedulerEvent[]>;
holidayChanges(): Observable<string[]>;
weekendChanges(): Observable<number[]>;
onEventSelect(e: ADCISchedulerEventSelectEvent): void;
onDateRangeSelect(e: ADCISchedulerDateRangeSelectEvent): void;
onDateRangeChange(e: ADCIDateRangeChangeEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ADCSchedulerSource, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ADCSchedulerSource, "[SchedulerSource]", never, { "holidays": { "alias": "holidays"; "required": false; }; "weekends": { "alias": "weekends"; "required": false; }; "startOf": { "alias": "startOf"; "required": false; }; "events": { "alias": "events"; "required": false; }; }, { "dateRangeSelect": "dateRangeSelect"; "EventSelect": "eventSelect"; "dateRangeChange": "dateRangeChange"; }, never, never, true, never>;
}