@coolon/angular-ui-powerups 1.7.0 → 1.8.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.8.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.7.0...v1.8.0) (2020-05-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * in-place-interaction-context can disable startActivity animation ([34a4192](https://bitbucket.org/coolon/angular-ui-powerups/commit/34a41925bd924f2427dec3a17a09d80b8a3c5da4))
11
+
5
12
  ## [1.7.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.6.1...v1.7.0) (2020-05-26)
6
13
 
7
14
 
@@ -2073,11 +2073,25 @@
2073
2073
 
2074
2074
  var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
2075
2075
  __extends(InPlaceInteractionContextComponent, _super);
2076
- function InPlaceInteractionContextComponent(interactionService) {
2076
+ function InPlaceInteractionContextComponent(interactionService, tabConfig) {
2077
2077
  var _this = _super.call(this) || this;
2078
2078
  _this.interactionService = interactionService;
2079
+ _this.tabConfig = tabConfig;
2080
+ /**
2081
+ * If true then the first startActivity call will slide the activity into view. If false
2082
+ * the activity will replace the existing content immediately.
2083
+ */
2084
+ _this.animateFirstActivity = true;
2079
2085
  return _this;
2080
2086
  }
2087
+ Object.defineProperty(InPlaceInteractionContextComponent.prototype, "animationDuration", {
2088
+ get: function () {
2089
+ var _a;
2090
+ return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : "0ms";
2091
+ },
2092
+ enumerable: true,
2093
+ configurable: true
2094
+ });
2081
2095
  InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
2082
2096
  this.interactionService.registerInplaceInteractionContext(this);
2083
2097
  };
@@ -2113,19 +2127,25 @@
2113
2127
  return this.activityContainerComponent.startActivity(activityType, data);
2114
2128
  };
2115
2129
  InPlaceInteractionContextComponent.ctorParameters = function () { return [
2116
- { type: exports.ɵbg }
2130
+ { type: exports.ɵbg },
2131
+ { type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
2117
2132
  ]; };
2118
2133
  __decorate([
2119
2134
  core.ViewChild('activityContainer', { static: true }),
2120
2135
  __metadata("design:type", ActivityContainerComponent)
2121
2136
  ], InPlaceInteractionContextComponent.prototype, "activityContainerComponent", void 0);
2137
+ __decorate([
2138
+ core.Input(),
2139
+ __metadata("design:type", Object)
2140
+ ], InPlaceInteractionContextComponent.prototype, "animateFirstActivity", void 0);
2122
2141
  InPlaceInteractionContextComponent = __decorate([
2123
2142
  core.Component({
2124
2143
  selector: 'aup-in-place-interaction-context',
2125
- template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
2144
+ template: "<mat-tab-group no-tab-header [selectedIndex]=\"isActive() ? 1 : 0\" full-height-tabs [dynamicHeight]=\"false\" [animationDuration]=\"animationDuration\">\n <mat-tab>\n <ng-content></ng-content>\n </mat-tab>\n <mat-tab>\n <aup-activity-container #activityContainer [dynamicHeight]=\"false\"></aup-activity-container>\n </mat-tab>\n</mat-tab-group>\n\n",
2126
2145
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
2127
2146
  }),
2128
- __metadata("design:paramtypes", [exports.ɵbg])
2147
+ __param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
2148
+ __metadata("design:paramtypes", [exports.ɵbg, Object])
2129
2149
  ], InPlaceInteractionContextComponent);
2130
2150
  return InPlaceInteractionContextComponent;
2131
2151
  }(DisposableComponent));