@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.
- package/bundles/rxap-material-table-system.umd.js +15 -8
- package/bundles/rxap-material-table-system.umd.js.map +1 -1
- package/esm2015/lib/table-create-button/table-create-button.directive.js +8 -3
- package/esm2015/lib/table-create-button/table-create-button.directive.js.map +1 -1
- package/fesm2015/rxap-material-table-system.js +8 -3
- package/fesm2015/rxap-material-table-system.js.map +1 -1
- package/lib/table-create-button/table-create-button.directive.d.ts +4 -2
- package/package.json +17 -12
|
@@ -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 (
|
|
1440
|
-
switch (
|
|
1441
|
-
case 0:
|
|
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
|
-
|
|
1448
|
-
|
|
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: [{
|