@coolon/angular-ui-powerups 2.0.0-alpha.30 → 2.0.0-alpha.32

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.
Files changed (24) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +7 -26
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +7 -27
  8. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  9. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  10. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -0
  11. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  12. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  13. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  14. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +7 -27
  15. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  16. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -0
  17. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  18. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  19. package/fesm2015/coolon-angular-ui-powerups.js +8 -27
  20. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  21. package/fesm5/coolon-angular-ui-powerups.js +8 -27
  22. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  23. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +1 -0
  24. package/package.json +1 -1
@@ -18,7 +18,7 @@ import { MatTableModule } from '@angular/material/table';
18
18
  import { MatTooltipModule } from '@angular/material/tooltip';
19
19
  import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
20
20
  import { fas } from '@fortawesome/free-solid-svg-icons';
21
- import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableListModel, Disposable, MutableValueModel, StoreInValueModel, ListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, StoreInListModel, ValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace, Functions } from '@coolon/pectin';
21
+ import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, MutableListModel, Disposable, MutableValueModel, StoreInValueModel, ListModel, FocusManager, EventListenerList, Form, Guard, Binding, DebugContext, StoreInListModel, ValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Functions } from '@coolon/pectin';
22
22
  import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
23
23
  import ___default, { isEqual, isNil } from 'lodash';
24
24
  import { Enum } from 'typescript-string-enums';
@@ -3583,6 +3583,7 @@ var ActivityOutletComponent = /** @class */ (function () {
3583
3583
  this.componentFactoryResolver = componentFactoryResolver;
3584
3584
  this.viewContainerRef = viewContainerRef;
3585
3585
  this.injector = injector;
3586
+ this._disableAnimation = false;
3586
3587
  }
3587
3588
  Object.defineProperty(ActivityOutletComponent.prototype, "activityRef", {
3588
3589
  get: function () {
@@ -3656,7 +3657,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
3656
3657
  _this.activityTabs = [];
3657
3658
  _this.garbage = new GarbageCollector();
3658
3659
  // We have issues where angular is triggering a leave animation when an
3659
- // activity is replaced by another, but is not running the enter animation
3660
+ // new activity is started, but is not running the enter animation
3660
3661
  // when it is scrolled back into view. So we track the tab changes and
3661
3662
  // disable all animations inside the tab while we're animating.
3662
3663
  _this.inTabChange = new MutableValueModel(false);
@@ -3799,6 +3800,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
3799
3800
  return index;
3800
3801
  };
3801
3802
  ;
3803
+ // @Trace()
3802
3804
  ActivityContainerComponent.prototype.onAnimationFinished = function () {
3803
3805
  if (this.onAnimationFinishedJob) {
3804
3806
  this.onAnimationFinishedJob();
@@ -3809,6 +3811,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
3809
3811
  /**
3810
3812
  * Synchronises the selected tab index.
3811
3813
  */
3814
+ // @Trace()
3812
3815
  ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
3813
3816
  var _this = this;
3814
3817
  var previousIndex = this.tabs.selectedIndex;
@@ -3825,9 +3828,11 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
3825
3828
  ActivityContainerComponent.prototype.getSelectedOutlet = function () {
3826
3829
  return this.activityOutlets.toArray()[this.tabs.selectedIndex];
3827
3830
  };
3831
+ // @Trace()
3828
3832
  ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
3829
3833
  return this.tabs.selectedIndex;
3830
3834
  };
3835
+ // @Trace()
3831
3836
  ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
3832
3837
  var _this = this;
3833
3838
  if (this.syncSelectedTabTimeout) {
@@ -3850,34 +3855,10 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
3850
3855
  ViewChildren(ActivityOutletComponent),
3851
3856
  __metadata("design:type", QueryList)
3852
3857
  ], ActivityContainerComponent.prototype, "activityOutlets", void 0);
3853
- __decorate([
3854
- Trace(),
3855
- __metadata("design:type", Function),
3856
- __metadata("design:paramtypes", []),
3857
- __metadata("design:returntype", void 0)
3858
- ], ActivityContainerComponent.prototype, "onAnimationFinished", null);
3859
- __decorate([
3860
- Trace(),
3861
- __metadata("design:type", Function),
3862
- __metadata("design:paramtypes", []),
3863
- __metadata("design:returntype", void 0)
3864
- ], ActivityContainerComponent.prototype, "synchroniseSelectedTabIndex", null);
3865
- __decorate([
3866
- Trace(),
3867
- __metadata("design:type", Function),
3868
- __metadata("design:paramtypes", []),
3869
- __metadata("design:returntype", void 0)
3870
- ], ActivityContainerComponent.prototype, "getSelectedTabIndex", null);
3871
- __decorate([
3872
- Trace(),
3873
- __metadata("design:type", Function),
3874
- __metadata("design:paramtypes", []),
3875
- __metadata("design:returntype", void 0)
3876
- ], ActivityContainerComponent.prototype, "triggerTabSynchronisation", null);
3877
3858
  ActivityContainerComponent = __decorate([
3878
3859
  Component({
3879
3860
  selector: 'aup-activity-container',
3880
- template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; let i = index; trackBy: activityIndex\" [@.disabled]=\"inTabChange.value\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
3861
+ template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; let i = index; trackBy: activityIndex\"\n [@.disabled]=\"inTabChange.value || i !== getSelectedTabIndex()\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
3881
3862
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
3882
3863
  }),
3883
3864
  __metadata("design:paramtypes", [])