source: trip-planner-front/node_modules/primeng/esm2020/api/contextmenuservice.mjs@ 59329aa

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

adding photos

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