source: trip-planner-front/node_modules/primeng/esm2020/api/treedragdropservice.mjs@ b738035

Last change on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 2.8 KB
Line 
1import { Injectable } from '@angular/core';
2import { Subject } from 'rxjs';
3import * as i0 from "@angular/core";
4export class TreeDragDropService {
5 constructor() {
6 this.dragStartSource = new Subject();
7 this.dragStopSource = new Subject();
8 this.dragStart$ = this.dragStartSource.asObservable();
9 this.dragStop$ = this.dragStopSource.asObservable();
10 }
11 startDrag(event) {
12 this.dragStartSource.next(event);
13 }
14 stopDrag(event) {
15 this.dragStopSource.next(event);
16 }
17}
18TreeDragDropService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeDragDropService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19TreeDragDropService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeDragDropService });
20i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeDragDropService, decorators: [{
21 type: Injectable
22 }] });
23//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZWRyYWdkcm9wc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9hcGkvdHJlZWRyYWdkcm9wc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBSS9CLE1BQU0sT0FBTyxtQkFBbUI7SUFEaEM7UUFHWSxvQkFBZSxHQUFHLElBQUksT0FBTyxFQUFxQixDQUFDO1FBQ25EL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