@rxap/material-table-system 12.4.0-next.0 → 12.4.1

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.
@@ -1433,19 +1433,26 @@
1433
1433
  TableCreateButtonDirective.prototype.ngOnInit = function () {
1434
1434
  this.renderer.setStyle(this.elementRef.nativeElement, 'margin-bottom', '6px');
1435
1435
  };
1436
+ TableCreateButtonDirective.prototype.ngOnDestroy = function () {
1437
+ if (this._createObservable instanceof rxjs.Subject) {
1438
+ this._createObservable.complete();
1439
+ }
1440
+ };
1436
1441
  TableCreateButtonDirective.prototype.onClick = function () {
1437
1442
  return __awaiter(this, void 0, void 0, function () {
1438
- var result;
1439
- return __generator(this, function (_a) {
1440
- switch (_a.label) {
1441
- case 0: return [4 /*yield*/, this.remoteMethod.call()];
1443
+ var result, _a;
1444
+ return __generator(this, function (_b) {
1445
+ switch (_b.label) {
1446
+ case 0:
1447
+ _a = this;
1448
+ return [4 /*yield*/, this.remoteMethod.call()];
1442
1449
  case 1:
1443
- result = _a.sent();
1450
+ result = _a._createObservable = _b.sent();
1444
1451
  if (!rxjs.isObservable(result)) return [3 /*break*/, 3];
1445
1452
  return [4 /*yield*/, result.toPromise()];
1446
1453
  case 2:
1447
- _a.sent();
1448
- _a.label = 3;
1454
+ _b.sent();
1455
+ _b.label = 3;
1449
1456
  case 3:
1450
1457
  this.dataSource.refresh();
1451
1458
  return [2 /*return*/];
@@ -1464,7 +1471,7 @@
1464
1471
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: TableCreateButtonDirective, decorators: [{
1465
1472
  type: i0.Directive,
1466
1473
  args: [{
1467
- selector: 'button[rxapTableCreate]',
1474
+ selector: 'button[rxapTableCreate]'
1468
1475
  }]
1469
1476
  }], ctorParameters: function () {
1470
1477
  return [{ type: undefined, decorators: [{