@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
|
@@ -1522,10 +1522,10 @@
|
|
|
1522
1522
|
__extends(ActivityContainerComponent, _super);
|
|
1523
1523
|
function ActivityContainerComponent() {
|
|
1524
1524
|
var _this = _super.call(this) || this;
|
|
1525
|
-
_this.
|
|
1525
|
+
_this.activityOutletTabs = new pectin.MutableListModel();
|
|
1526
1526
|
_this.obsoleteTabs = [];
|
|
1527
1527
|
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;
|
|
1528
|
-
_this.lastActivityTab = chain(_this.
|
|
1528
|
+
_this.lastActivityTab = chain(_this.activityOutletTabs).last().otherwise(_this.initialActivityOutlet);
|
|
1529
1529
|
return _this;
|
|
1530
1530
|
}
|
|
1531
1531
|
/**
|
|
@@ -1561,7 +1561,7 @@
|
|
|
1561
1561
|
* @return {?}
|
|
1562
1562
|
*/
|
|
1563
1563
|
function (options) {
|
|
1564
|
-
this.
|
|
1564
|
+
this.initialActivityOutlet = __assign({}, options, { interactionContext: this });
|
|
1565
1565
|
};
|
|
1566
1566
|
/**
|
|
1567
1567
|
* @template D, R, E
|
|
@@ -1587,14 +1587,14 @@
|
|
|
1587
1587
|
onDone: deferred.resolve,
|
|
1588
1588
|
onCancel: deferred.reject
|
|
1589
1589
|
};
|
|
1590
|
-
this.
|
|
1591
|
-
this.tabs.selectedIndex = this.
|
|
1590
|
+
this.activityOutletTabs.push(context);
|
|
1591
|
+
this.tabs.selectedIndex = this.activityOutletTabs.length;
|
|
1592
1592
|
return deferred.promise.finally((/**
|
|
1593
1593
|
* @return {?}
|
|
1594
1594
|
*/
|
|
1595
1595
|
function () {
|
|
1596
1596
|
_this.obsoleteTabs.push(context);
|
|
1597
|
-
_this.tabs.selectedIndex = _this.
|
|
1597
|
+
_this.tabs.selectedIndex = _this.activityOutletTabs.length - 1;
|
|
1598
1598
|
}));
|
|
1599
1599
|
};
|
|
1600
1600
|
/**
|
|
@@ -1629,7 +1629,7 @@
|
|
|
1629
1629
|
*/
|
|
1630
1630
|
function () {
|
|
1631
1631
|
var _this = this;
|
|
1632
|
-
this.
|
|
1632
|
+
this.activityOutletTabs.value = this.activityOutletTabs.value.filter((/**
|
|
1633
1633
|
* @param {?} tab
|
|
1634
1634
|
* @return {?}
|
|
1635
1635
|
*/
|
|
@@ -1641,7 +1641,7 @@
|
|
|
1641
1641
|
ActivityContainerComponent.decorators = [
|
|
1642
1642
|
{ type: core.Component, args: [{
|
|
1643
1643
|
selector: 'angular-ui-powerups-activity-container',
|
|
1644
|
-
template: "<mat-tab-group #tabs no-tab-header [dynamicHeight]=\"true\">\n <mat-tab>\n <angular-ui-powerups-activity-outlet [interactionContext]=\"this\" [activityContext]=\"
|
|
1644
|
+
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",
|
|
1645
1645
|
styles: [":host{display:block}"]
|
|
1646
1646
|
}] }
|
|
1647
1647
|
];
|
|
@@ -1649,7 +1649,7 @@
|
|
|
1649
1649
|
ActivityContainerComponent.ctorParameters = function () { return []; };
|
|
1650
1650
|
ActivityContainerComponent.propDecorators = {
|
|
1651
1651
|
parentInteractionContext: [{ type: core.Input }],
|
|
1652
|
-
|
|
1652
|
+
initialActivityOutlet: [{ type: core.Input }],
|
|
1653
1653
|
tabs: [{ type: core.ViewChild, args: ['tabs', { static: true },] }],
|
|
1654
1654
|
outlets: [{ type: core.ViewChildren, args: [exports.ɵu,] }]
|
|
1655
1655
|
};
|
|
@@ -1659,13 +1659,13 @@
|
|
|
1659
1659
|
/** @type {?} */
|
|
1660
1660
|
exports.ɵt.prototype.parentInteractionContext;
|
|
1661
1661
|
/** @type {?} */
|
|
1662
|
-
exports.ɵt.prototype.
|
|
1662
|
+
exports.ɵt.prototype.initialActivityOutlet;
|
|
1663
1663
|
/** @type {?} */
|
|
1664
1664
|
exports.ɵt.prototype.tabs;
|
|
1665
1665
|
/** @type {?} */
|
|
1666
1666
|
exports.ɵt.prototype.outlets;
|
|
1667
1667
|
/** @type {?} */
|
|
1668
|
-
exports.ɵt.prototype.
|
|
1668
|
+
exports.ɵt.prototype.activityOutletTabs;
|
|
1669
1669
|
/**
|
|
1670
1670
|
* @type {?}
|
|
1671
1671
|
* @private
|
|
@@ -1847,6 +1847,10 @@
|
|
|
1847
1847
|
AlertDialogComponent,
|
|
1848
1848
|
exports.ɵu
|
|
1849
1849
|
],
|
|
1850
|
+
exports: [
|
|
1851
|
+
exports.ɵt,
|
|
1852
|
+
exports.ɵu
|
|
1853
|
+
],
|
|
1850
1854
|
entryComponents: [
|
|
1851
1855
|
exports.ɵt,
|
|
1852
1856
|
ConfirmationDialogComponent,
|