@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
62 lines (61 loc) • 3.05 kB
TypeScript
import { ADCIResourceSchedulerEvent, ADCIResourceSchedulerEventSelectEvent, ADCIResourceSchedulerResource, ADCIResourceSchedulerTableEvent } from '../interface.global';
import { Observable } from 'rxjs';
import { ADCIDateRangeChangeEvent } from '@asadi/angular-date-components/core';
import * as i0 from "@angular/core";
/**
* The `ADCResourceSchedulerSource` directive is used to manage and interact with the data source
* for the resource scheduler. It provides input properties for resources, events, holidays, and weekends,
* and emits output events for date range changes, event selection, and date range selection.
*/
export declare class ADCResourceSchedulerSource {
private _events;
private _resources;
private _holidays;
private _weekends;
/**
* Event emitted when a date range is selected.
*/
private dateRangeSelect;
/**
* Event emitted when an event is selected.
*/
private eventSelect;
/**
* Event emitted when the date range changes.
*/
private dateRangeChange;
/**
* Input property for setting the list of events in the resource scheduler.
* @param value The events to be set in the scheduler.
*/
set events(value: ADCIResourceSchedulerEvent[]);
get events(): ADCIResourceSchedulerEvent[];
/**
* Input property for setting the list of resources in the resource scheduler.
* @param value The resources to be set in the scheduler.
*/
set resources(value: ADCIResourceSchedulerResource[]);
get resources(): ADCIResourceSchedulerResource[];
/**
* Input property for setting the list of holidays in the resource scheduler.
* @param value The holidays to be set in the scheduler.
*/
set holidays(value: string[]);
get holidays(): string[];
/**
* Input property for setting the list of weekends in the resource scheduler.
* @param value The weekends to be set in the scheduler.
*/
set weekends(value: number[]);
get weekends(): number[];
startOf: string | null;
resourceChanges(): Observable<ADCIResourceSchedulerResource[]>;
eventChanges(): Observable<ADCIResourceSchedulerEvent[]>;
holidayChanges(): Observable<string[]>;
weekendChanges(): Observable<number[]>;
onEventSelect(e: ADCIResourceSchedulerEventSelectEvent): void;
onDateRangeSelect(e: ADCIResourceSchedulerTableEvent): void;
onDateRangeChange(e: ADCIDateRangeChangeEvent): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ADCResourceSchedulerSource, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ADCResourceSchedulerSource, "[ResourceSchedulerSource]", never, { "events": { "alias": "events"; "required": false; }; "resources": { "alias": "resources"; "required": false; }; "holidays": { "alias": "holidays"; "required": false; }; "weekends": { "alias": "weekends"; "required": false; }; "startOf": { "alias": "startOf"; "required": false; }; }, { "dateRangeSelect": "dateRangeSelect"; "eventSelect": "eventSelect"; "dateRangeChange": "dateRangeChange"; }, never, never, true, never>;
}