@mintplayer/ng-bootstrap 13.1.23 → 13.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bootstrap.scss +0 -1
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/components/scheduler/components/index.mjs +2 -0
- package/esm2020/lib/components/scheduler/components/scheduler/scheduler.component.mjs +261 -0
- package/esm2020/lib/components/scheduler/enums/drag-operation.mjs +8 -0
- package/esm2020/lib/components/scheduler/index.mjs +3 -0
- package/esm2020/lib/components/scheduler/interfaces/drag-operation.mjs +2 -0
- package/esm2020/lib/components/scheduler/interfaces/scheduler-event-part.mjs +2 -0
- package/esm2020/lib/components/scheduler/interfaces/scheduler-event-with-parts.mjs +2 -0
- package/esm2020/lib/components/scheduler/interfaces/scheduler-event.mjs +2 -0
- package/esm2020/lib/components/scheduler/interfaces/time-slot.mjs +2 -0
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.mjs +16 -0
- package/esm2020/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.mjs +20 -0
- package/esm2020/lib/components/scheduler/pipes/date-offset/date-offset.pipe.mjs +20 -0
- package/esm2020/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.mjs +22 -0
- package/esm2020/lib/components/scheduler/scheduler.module.mjs +38 -0
- package/esm2020/lib/services/calendar-month/calendar-month.service.mjs +1 -1
- package/fesm2015/mintplayer-ng-bootstrap.mjs +361 -2
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +361 -2
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/scheduler/components/index.d.ts +1 -0
- package/lib/components/scheduler/components/scheduler/scheduler.component.d.ts +42 -0
- package/lib/components/scheduler/enums/drag-operation.d.ts +6 -0
- package/lib/components/scheduler/index.d.ts +2 -0
- package/lib/components/scheduler/interfaces/drag-operation.d.ts +6 -0
- package/lib/components/scheduler/interfaces/scheduler-event-part.d.ts +6 -0
- package/lib/components/scheduler/interfaces/scheduler-event-with-parts.d.ts +6 -0
- package/lib/components/scheduler/interfaces/scheduler-event.d.ts +6 -0
- package/lib/components/scheduler/interfaces/time-slot.d.ts +4 -0
- package/lib/components/scheduler/pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe.d.ts +9 -0
- package/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.d.ts +9 -0
- package/lib/components/scheduler/pipes/date-offset/date-offset.pipe.d.ts +8 -0
- package/lib/components/scheduler/pipes/day-of-week/day-of-week.pipe.d.ts +9 -0
- package/lib/components/scheduler/scheduler.module.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scheduler/scheduler.component';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
|
+
import { BsCalendarMonthService } from '../../../../services/calendar-month/calendar-month.service';
|
|
4
|
+
import { DragOperation } from '../../interfaces/drag-operation';
|
|
5
|
+
import { SchedulerEvent } from '../../interfaces/scheduler-event';
|
|
6
|
+
import { SchedulerEventPart } from '../../interfaces/scheduler-event-part';
|
|
7
|
+
import { SchedulerEventWithParts } from '../../interfaces/scheduler-event-with-parts';
|
|
8
|
+
import { TimeSlot } from '../../interfaces/time-slot';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class BsSchedulerComponent implements OnDestroy {
|
|
11
|
+
private calendarMonthService;
|
|
12
|
+
constructor(calendarMonthService: BsCalendarMonthService);
|
|
13
|
+
events$: BehaviorSubject<SchedulerEvent[]>;
|
|
14
|
+
eventParts$: Observable<SchedulerEventWithParts[]>;
|
|
15
|
+
eventPartsForThisWeek$: BehaviorSubject<SchedulerEventPart[]>;
|
|
16
|
+
currentWeek$: BehaviorSubject<Date>;
|
|
17
|
+
daysOfWeek$: Observable<Date[]>;
|
|
18
|
+
timeSlotDuration$: BehaviorSubject<number>;
|
|
19
|
+
timeSlots$: Observable<TimeSlot[][]>;
|
|
20
|
+
mouseState$: BehaviorSubject<boolean>;
|
|
21
|
+
hoveredTimeSlot$: BehaviorSubject<TimeSlot | null>;
|
|
22
|
+
destroyed$: Subject<unknown>;
|
|
23
|
+
timeSlotElements: QueryList<ElementRef<HTMLDivElement>>;
|
|
24
|
+
unitHeight$: BehaviorSubject<number>;
|
|
25
|
+
unitHeightChange: EventEmitter<number>;
|
|
26
|
+
get unitHeight(): number;
|
|
27
|
+
set unitHeight(value: number);
|
|
28
|
+
private dateEquals;
|
|
29
|
+
private addDays;
|
|
30
|
+
onPreviousWeek(): void;
|
|
31
|
+
onNextWeek(): void;
|
|
32
|
+
operation: DragOperation | null;
|
|
33
|
+
dragStartTimeslot: TimeSlot | null;
|
|
34
|
+
onCreateEvent(ev: MouseEvent, slot: TimeSlot): void;
|
|
35
|
+
onStartDragEvent(eventPart: SchedulerEventPart, ev: MouseEvent): void;
|
|
36
|
+
private getHoveredTimeslot;
|
|
37
|
+
onMousemove(ev: MouseEvent): void;
|
|
38
|
+
onMouseUp(ev: MouseEvent): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSchedulerComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsSchedulerComponent, "bs-scheduler", never, { "unitHeight": "unitHeight"; }, { "unitHeightChange": "unitHeightChange"; }, never, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SchedulerEvent } from '../../interfaces/scheduler-event';
|
|
3
|
+
import { SchedulerEventPart } from '../../interfaces/scheduler-event-part';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsSecondsTimespanPipe implements PipeTransform {
|
|
6
|
+
transform(value: SchedulerEventPart | SchedulerEvent): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSecondsTimespanPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BsSecondsTimespanPipe, "bsSecondsTimespan">;
|
|
9
|
+
}
|
package/lib/components/scheduler/pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SchedulerEvent } from '../../interfaces/scheduler-event';
|
|
3
|
+
import { SchedulerEventPart } from '../../interfaces/scheduler-event-part';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BsSecondsTodayOffsetPipe implements PipeTransform {
|
|
6
|
+
transform(value: SchedulerEventPart | SchedulerEvent): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSecondsTodayOffsetPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BsSecondsTodayOffsetPipe, "bsSecondsTodayOffset">;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SchedulerEventPart } from '../../interfaces/scheduler-event-part';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DateOffsetPipe implements PipeTransform {
|
|
5
|
+
transform(value: SchedulerEventPart): number;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateOffsetPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateOffsetPipe, "dateOffset">;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SchedulerEvent } from '../../interfaces/scheduler-event';
|
|
3
|
+
import { SchedulerEventPart } from '../../interfaces/scheduler-event-part';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DayOfWeekPipe implements PipeTransform {
|
|
6
|
+
transform(value: SchedulerEventPart | SchedulerEvent): number;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayOfWeekPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DayOfWeekPipe, "dayOfWeek">;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/scheduler/scheduler.component";
|
|
3
|
+
import * as i2 from "./pipes/bs-seconds-timespan.pipe/bs-seconds-timespan.pipe";
|
|
4
|
+
import * as i3 from "./pipes/bs-seconds-today-offset/bs-seconds-today-offset.pipe";
|
|
5
|
+
import * as i4 from "./pipes/date-offset/date-offset.pipe";
|
|
6
|
+
import * as i5 from "./pipes/day-of-week/day-of-week.pipe";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
export declare class BsSchedulerModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSchedulerModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BsSchedulerModule, [typeof i1.BsSchedulerComponent, typeof i2.BsSecondsTimespanPipe, typeof i3.BsSecondsTodayOffsetPipe, typeof i4.DateOffsetPipe, typeof i5.DayOfWeekPipe], [typeof i6.CommonModule], [typeof i1.BsSchedulerComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BsSchedulerModule>;
|
|
12
|
+
}
|