@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 +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +24 -4
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +23 -6
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +27 -6
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +21 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +25 -5
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { FormsModule } from '@angular/forms';
|
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
7
7
|
import { MatSelectModule } from '@angular/material/select';
|
|
8
|
-
import { MatTabsModule, MatTabGroup } from '@angular/material/tabs';
|
|
8
|
+
import { MatTabsModule, MatTabGroup, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
9
9
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
@@ -1896,11 +1896,25 @@ var InteractionService = /** @class */ (function () {
|
|
|
1896
1896
|
|
|
1897
1897
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
1898
1898
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
1899
|
-
function InPlaceInteractionContextComponent(interactionService) {
|
|
1899
|
+
function InPlaceInteractionContextComponent(interactionService, tabConfig) {
|
|
1900
1900
|
var _this = _super.call(this) || this;
|
|
1901
1901
|
_this.interactionService = interactionService;
|
|
1902
|
+
_this.tabConfig = tabConfig;
|
|
1903
|
+
/**
|
|
1904
|
+
* If true then the first startActivity call will slide the activity into view. If false
|
|
1905
|
+
* the activity will replace the existing content immediately.
|
|
1906
|
+
*/
|
|
1907
|
+
_this.animateFirstActivity = true;
|
|
1902
1908
|
return _this;
|
|
1903
1909
|
}
|
|
1910
|
+
Object.defineProperty(InPlaceInteractionContextComponent.prototype, "animationDuration", {
|
|
1911
|
+
get: function () {
|
|
1912
|
+
var _a;
|
|
1913
|
+
return this.animateFirstActivity ? (((_a = this.tabConfig) === null || _a === void 0 ? void 0 : _a.animationDuration) || '500ms') : "0ms";
|
|
1914
|
+
},
|
|
1915
|
+
enumerable: true,
|
|
1916
|
+
configurable: true
|
|
1917
|
+
});
|
|
1904
1918
|
InPlaceInteractionContextComponent.prototype.ngAfterViewInit = function () {
|
|
1905
1919
|
this.interactionService.registerInplaceInteractionContext(this);
|
|
1906
1920
|
};
|
|
@@ -1936,19 +1950,25 @@ var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
|
1936
1950
|
return this.activityContainerComponent.startActivity(activityType, data);
|
|
1937
1951
|
};
|
|
1938
1952
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
1939
|
-
{ type: InteractionService }
|
|
1953
|
+
{ type: InteractionService },
|
|
1954
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_TABS_CONFIG,] }, { type: Optional }] }
|
|
1940
1955
|
]; };
|
|
1941
1956
|
__decorate([
|
|
1942
1957
|
ViewChild('activityContainer', { static: true }),
|
|
1943
1958
|
__metadata("design:type", ActivityContainerComponent)
|
|
1944
1959
|
], InPlaceInteractionContextComponent.prototype, "activityContainerComponent", void 0);
|
|
1960
|
+
__decorate([
|
|
1961
|
+
Input(),
|
|
1962
|
+
__metadata("design:type", Object)
|
|
1963
|
+
], InPlaceInteractionContextComponent.prototype, "animateFirstActivity", void 0);
|
|
1945
1964
|
InPlaceInteractionContextComponent = __decorate([
|
|
1946
1965
|
Component({
|
|
1947
1966
|
selector: 'aup-in-place-interaction-context',
|
|
1948
|
-
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",
|
|
1967
|
+
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",
|
|
1949
1968
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
1950
1969
|
}),
|
|
1951
|
-
|
|
1970
|
+
__param(1, Inject(MAT_TABS_CONFIG)), __param(1, Optional()),
|
|
1971
|
+
__metadata("design:paramtypes", [InteractionService, Object])
|
|
1952
1972
|
], InPlaceInteractionContextComponent);
|
|
1953
1973
|
return InPlaceInteractionContextComponent;
|
|
1954
1974
|
}(DisposableComponent));
|