@coolon/angular-ui-powerups 0.0.34 → 0.0.35

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.
@@ -1022,10 +1022,7 @@
1022
1022
  /**
1023
1023
  * @template D, R, E
1024
1024
  */
1025
- var /**
1026
- * @template D, R, E
1027
- */
1028
- AbstractActivity = /** @class */ (function (_super) {
1025
+ var AbstractActivity = /** @class */ (function (_super) {
1029
1026
  __extends(AbstractActivity, _super);
1030
1027
  function AbstractActivity() {
1031
1028
  var _this = _super !== null && _super.apply(this, arguments) || this;
@@ -1099,6 +1096,14 @@
1099
1096
  */
1100
1097
  function () { return _this.finalizeAndDispose(); }));
1101
1098
  };
1099
+ /**
1100
+ * @return {?}
1101
+ */
1102
+ AbstractActivity.prototype.onActivityReady = /**
1103
+ * @return {?}
1104
+ */
1105
+ function () {
1106
+ };
1102
1107
  /**
1103
1108
  * @private
1104
1109
  * @return {?}
@@ -1156,6 +1161,12 @@
1156
1161
  function () {
1157
1162
  return this._busyModel.value;
1158
1163
  };
1164
+ __decorate([
1165
+ pectin.Trace(),
1166
+ __metadata("design:type", Function),
1167
+ __metadata("design:paramtypes", []),
1168
+ __metadata("design:returntype", void 0)
1169
+ ], AbstractActivity.prototype, "onActivityReady", null);
1159
1170
  return AbstractActivity;
1160
1171
  }(DisposableComponent));
1161
1172
  if (false) {
@@ -1302,6 +1313,8 @@
1302
1313
  var _this = _super.call(this) || this;
1303
1314
  _this.activityTabs = new pectin.MutableListModel();
1304
1315
  _this.obsoleteTabs = [];
1316
+ var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
1317
+ _this.lastActivityTab = chain(_this.activityTabs).last();
1305
1318
  return _this;
1306
1319
  }
1307
1320
  /**
@@ -1324,7 +1337,7 @@
1324
1337
  observe.valuesFrom(this.tabs.animationDone).subscribe((/**
1325
1338
  * @return {?}
1326
1339
  */
1327
- function () { return _this.cleanUpTabs(); }));
1340
+ function () { return _this.onAnimationFinished(); }));
1328
1341
  };
1329
1342
  /**
1330
1343
  * @template D, R, E
@@ -1399,12 +1412,13 @@
1399
1412
  * @private
1400
1413
  * @return {?}
1401
1414
  */
1402
- ActivityContainerComponent.prototype.cleanUpTabs = /**
1415
+ ActivityContainerComponent.prototype.onAnimationFinished = /**
1403
1416
  * @private
1404
1417
  * @return {?}
1405
1418
  */
1406
1419
  function () {
1407
1420
  var _this = this;
1421
+ // TODO: notify selected tab they are ready. activty.afterAnimationComplete
1408
1422
  this.activityTabs.value = this.activityTabs.value.filter((/**
1409
1423
  * @param {?} tab
1410
1424
  * @return {?}
@@ -1412,6 +1426,9 @@
1412
1426
  function (tab) {
1413
1427
  return !_this.obsoleteTabs.includes(tab);
1414
1428
  }));
1429
+ if (this.lastActivityTab.value && this.lastActivityTab.value['onActivityReady']) {
1430
+ this.lastActivityTab.value['onActivityReady']();
1431
+ }
1415
1432
  };
1416
1433
  ActivityContainerComponent.decorators = [
1417
1434
  { type: core.Component, args: [{
@@ -1443,6 +1460,11 @@
1443
1460
  * @private
1444
1461
  */
1445
1462
  exports.ɵq.prototype.obsoleteTabs;
1463
+ /**
1464
+ * @type {?}
1465
+ * @private
1466
+ */
1467
+ exports.ɵq.prototype.lastActivityTab;
1446
1468
  }
1447
1469
  (function (ActivityContainerComponent) {
1448
1470
  /**