Icard/angular-clarity-master(work.../node_modules/primeng/esm2022/api/treedragdropservice.mjs

21 lines
2.7 KiB
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import * as i0 from "@angular/core";
export class TreeDragDropService {
dragStartSource = new Subject();
dragStopSource = new Subject();
dragStart$ = this.dragStartSource.asObservable();
dragStop$ = this.dragStopSource.asObservable();
startDrag(event) {
this.dragStartSource.next(event);
}
stopDrag(event) {
this.dragStopSource.next(event);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TreeDragDropService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TreeDragDropService });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TreeDragDropService, decorators: [{
type: Injectable
}] });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZWRyYWdkcm9wc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9hcGkvdHJlZWRyYWdkcm9wc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBSS9CLE1BQU0sT0FBTyxtQkFBbUI7SUFDcEIsZUFBZSxHQUFHLElBQUksT0FBTyxFQUFxQixDQUFDO0lBQ25ELGNBQWMsR0FBRyxJQUFJLE9BQU8sRUFBcUIsQ0FBQztJQUUxRCxVQUFVLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxZQUFZLEVBQUUsQ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