@talrace/ngx-noder 0.0.23 → 0.0.25
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.
|
@@ -11718,13 +11718,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
11718
11718
|
|
|
11719
11719
|
class CommandsService {
|
|
11720
11720
|
constructor() {
|
|
11721
|
+
this.pendingOperations = [];
|
|
11721
11722
|
this._createCommand$ = new Subject();
|
|
11722
11723
|
}
|
|
11724
|
+
get createCommand$() {
|
|
11725
|
+
return this._createCommand$.asObservable();
|
|
11726
|
+
}
|
|
11723
11727
|
createCommand(command) {
|
|
11728
|
+
this.pendingOperations.push(command);
|
|
11724
11729
|
this._createCommand$.next(command);
|
|
11725
11730
|
}
|
|
11726
|
-
|
|
11727
|
-
|
|
11731
|
+
getPendingOperations() {
|
|
11732
|
+
const operations = this.pendingOperations;
|
|
11733
|
+
this.pendingOperations = [];
|
|
11734
|
+
return operations;
|
|
11728
11735
|
}
|
|
11729
11736
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CommandsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
11730
11737
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CommandsService }); }
|