@coolon/angular-ui-powerups 0.0.41 → 0.0.43
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/coolon-angular-ui-powerups.umd.js +15 -11
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +12 -12
- package/esm2015/lib/interaction/interaction.module.js +5 -1
- package/esm5/lib/angular-ui-powerups.module.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +12 -12
- package/esm5/lib/interaction/interaction.module.js +5 -1
- package/fesm2015/coolon-angular-ui-powerups.js +15 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +15 -11
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1340,10 +1340,10 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1340
1340
|
__extends(ActivityContainerComponent, _super);
|
|
1341
1341
|
function ActivityContainerComponent() {
|
|
1342
1342
|
var _this = _super.call(this) || this;
|
|
1343
|
-
_this.
|
|
1343
|
+
_this.activityOutletTabs = new MutableListModel();
|
|
1344
1344
|
_this.obsoleteTabs = [];
|
|
1345
1345
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
1346
|
-
_this.lastActivityTab = chain(_this.
|
|
1346
|
+
_this.lastActivityTab = chain(_this.activityOutletTabs).last().otherwise(_this.initialActivityOutlet);
|
|
1347
1347
|
return _this;
|
|
1348
1348
|
}
|
|
1349
1349
|
/**
|
|
@@ -1379,7 +1379,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1379
1379
|
* @return {?}
|
|
1380
1380
|
*/
|
|
1381
1381
|
function (options) {
|
|
1382
|
-
this.
|
|
1382
|
+
this.initialActivityOutlet = __assign({}, options, { interactionContext: this });
|
|
1383
1383
|
};
|
|
1384
1384
|
/**
|
|
1385
1385
|
* @template D, R, E
|
|
@@ -1405,14 +1405,14 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1405
1405
|
onDone: deferred.resolve,
|
|
1406
1406
|
onCancel: deferred.reject
|
|
1407
1407
|
};
|
|
1408
|
-
this.
|
|
1409
|
-
this.tabs.selectedIndex = this.
|
|
1408
|
+
this.activityOutletTabs.push(context);
|
|
1409
|
+
this.tabs.selectedIndex = this.activityOutletTabs.length;
|
|
1410
1410
|
return deferred.promise.finally((/**
|
|
1411
1411
|
* @return {?}
|
|
1412
1412
|
*/
|
|
1413
1413
|
function () {
|
|
1414
1414
|
_this.obsoleteTabs.push(context);
|
|
1415
|
-
_this.tabs.selectedIndex = _this.
|
|
1415
|
+
_this.tabs.selectedIndex = _this.activityOutletTabs.length - 1;
|
|
1416
1416
|
}));
|
|
1417
1417
|
};
|
|
1418
1418
|
/**
|
|
@@ -1447,7 +1447,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1447
1447
|
*/
|
|
1448
1448
|
function () {
|
|
1449
1449
|
var _this = this;
|
|
1450
|
-
this.
|
|
1450
|
+
this.activityOutletTabs.value = this.activityOutletTabs.value.filter((/**
|
|
1451
1451
|
* @param {?} tab
|
|
1452
1452
|
* @return {?}
|
|
1453
1453
|
*/
|
|
@@ -1459,7 +1459,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1459
1459
|
ActivityContainerComponent.decorators = [
|
|
1460
1460
|
{ type: Component, args: [{
|
|
1461
1461
|
selector: 'angular-ui-powerups-activity-container',
|
|
1462
|
-
template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"
|
|
1462
|
+
template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"initialActivityOutlet\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of activityOutletTabs.value\">\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"tab\"></angular-ui-powerups-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
1463
1463
|
styles: [":host{display:block}"]
|
|
1464
1464
|
}] }
|
|
1465
1465
|
];
|
|
@@ -1467,7 +1467,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1467
1467
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
1468
1468
|
ActivityContainerComponent.propDecorators = {
|
|
1469
1469
|
parentInteractionContext: [{ type: Input }],
|
|
1470
|
-
|
|
1470
|
+
initialActivityOutlet: [{ type: Input }],
|
|
1471
1471
|
tabs: [{ type: ViewChild, args: ['tabs', { static: true },] }],
|
|
1472
1472
|
outlets: [{ type: ViewChildren, args: [ActivityOutletComponent,] }]
|
|
1473
1473
|
};
|
|
@@ -1477,13 +1477,13 @@ if (false) {
|
|
|
1477
1477
|
/** @type {?} */
|
|
1478
1478
|
ActivityContainerComponent.prototype.parentInteractionContext;
|
|
1479
1479
|
/** @type {?} */
|
|
1480
|
-
ActivityContainerComponent.prototype.
|
|
1480
|
+
ActivityContainerComponent.prototype.initialActivityOutlet;
|
|
1481
1481
|
/** @type {?} */
|
|
1482
1482
|
ActivityContainerComponent.prototype.tabs;
|
|
1483
1483
|
/** @type {?} */
|
|
1484
1484
|
ActivityContainerComponent.prototype.outlets;
|
|
1485
1485
|
/** @type {?} */
|
|
1486
|
-
ActivityContainerComponent.prototype.
|
|
1486
|
+
ActivityContainerComponent.prototype.activityOutletTabs;
|
|
1487
1487
|
/**
|
|
1488
1488
|
* @type {?}
|
|
1489
1489
|
* @private
|
|
@@ -1665,6 +1665,10 @@ var InteractionModule = /** @class */ (function () {
|
|
|
1665
1665
|
AlertDialogComponent,
|
|
1666
1666
|
ActivityOutletComponent
|
|
1667
1667
|
],
|
|
1668
|
+
exports: [
|
|
1669
|
+
ActivityContainerComponent,
|
|
1670
|
+
ActivityOutletComponent
|
|
1671
|
+
],
|
|
1668
1672
|
entryComponents: [
|
|
1669
1673
|
ActivityContainerComponent,
|
|
1670
1674
|
ConfirmationDialogComponent,
|