@coolon/angular-ui-powerups 1.9.0 → 1.10.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 +12 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +32 -16
- 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/activity-actions/activity-actions.component.js +2 -2
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +22 -9
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +4 -1
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +2 -2
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +23 -9
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +4 -1
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +28 -13
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +29 -13
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.10.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.9.0...v1.10.0) (2020-06-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added ng-content support to aup-activity-actions ([c30272d](https://bitbucket.org/coolon/angular-ui-powerups/commit/c30272dfe3f6fe09daf67542a32103fbb3821c9d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* activity container component not always calling onActivityReady ([a6cbcf7](https://bitbucket.org/coolon/angular-ui-powerups/commit/a6cbcf740e98f31c016d13086df76baa91f0dfd2))
|
|
16
|
+
|
|
5
17
|
## [1.9.0](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.8.0...v1.9.0) (2020-05-31)
|
|
6
18
|
|
|
7
19
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/material/dialog'), require('@angular/router'), require('lodash'), require('resize-observer-polyfill'), require('@coolon/typescript-utilities'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@coolon/pectin', '@angular/cdk/portal', '@angular/material/dialog', '@angular/router', 'lodash', 'resize-observer-polyfill', '@coolon/typescript-utilities', '@angular/
|
|
4
|
-
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.pectin, global.ng.cdk.portal, global.ng.material.dialog, global.ng.router, global.___default, global.ResizeObserver, global.typescriptUtilities, global.ng.
|
|
5
|
-
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, button, checkbox, icon, pectin, portal, dialog, router, ___default, ResizeObserver, typescriptUtilities,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@coolon/pectin'), require('@angular/cdk/portal'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('lodash'), require('resize-observer-polyfill'), require('@coolon/typescript-utilities'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@angular/material/tooltip'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@coolon/pectin', '@angular/cdk/portal', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', 'lodash', 'resize-observer-polyfill', '@coolon/typescript-utilities', '@angular/material/progress-spinner', '@angular/material/list', '@angular/material/tooltip', '@typescript-plus/fast-memoize-decorator/dist/src', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.pectin, global.ng.cdk.portal, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.___default, global.ResizeObserver, global.typescriptUtilities, global.ng.material.progressSpinner, global.ng.material.list, global.ng.material.tooltip, global.src, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
+
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, button, checkbox, icon, pectin, portal, flexLayout, dialog, router, ___default, ResizeObserver, typescriptUtilities, progressSpinner, list, tooltip, src, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
ResizeObserver = ResizeObserver && Object.prototype.hasOwnProperty.call(ResizeObserver, 'default') ? ResizeObserver['default'] : ResizeObserver;
|
|
@@ -1529,8 +1529,8 @@
|
|
|
1529
1529
|
ActivityActionsComponent = __decorate([
|
|
1530
1530
|
core.Component({
|
|
1531
1531
|
selector: 'aup-activity-actions',
|
|
1532
|
-
template: "<button mat-icon-button [pectinCommand]=\"cancelCommand\"
|
|
1533
|
-
styles: [":host{display:
|
|
1532
|
+
template: "<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <mat-icon>clear</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <mat-icon>done</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
|
|
1533
|
+
styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}"]
|
|
1534
1534
|
})
|
|
1535
1535
|
], ActivityActionsComponent);
|
|
1536
1536
|
return ActivityActionsComponent;
|
|
@@ -1855,6 +1855,8 @@
|
|
|
1855
1855
|
ActivityContainerComponent.prototype.ngAfterViewInit = function () {
|
|
1856
1856
|
var _this = this;
|
|
1857
1857
|
var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, observe = _a.observe;
|
|
1858
|
+
// using the component directly rather than (animationDone)=.. allows us
|
|
1859
|
+
// to keep our callback private.
|
|
1858
1860
|
observe.valuesFrom(this.tabs.animationDone).subscribe(function () { return _this.onAnimationFinished(); });
|
|
1859
1861
|
};
|
|
1860
1862
|
ActivityContainerComponent.prototype.initialise = function (identifier, api) {
|
|
@@ -1961,6 +1963,12 @@
|
|
|
1961
1963
|
ActivityContainerComponent.prototype.finishAndStartCleanup = function () {
|
|
1962
1964
|
var _this = this;
|
|
1963
1965
|
if (!this._deferredCleanUp) {
|
|
1966
|
+
// Important:
|
|
1967
|
+
// Clear our tabs so the next activity triggers a tab change.
|
|
1968
|
+
// Without this our animation done wasn't called when a single
|
|
1969
|
+
// new activity followed a single tab activity (since we're tracking
|
|
1970
|
+
// by activity index)
|
|
1971
|
+
this.activityTabs = [];
|
|
1964
1972
|
var promise = this.interactionServiceApi.notifyFinished(this);
|
|
1965
1973
|
this._deferredCleanUp = promise
|
|
1966
1974
|
.finally(function () {
|
|
@@ -1972,26 +1980,32 @@
|
|
|
1972
1980
|
ActivityContainerComponent.prototype.launchActivity = function (activityRef) {
|
|
1973
1981
|
var cleanedTabs = this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
1974
1982
|
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
1975
|
-
this.
|
|
1983
|
+
this.synchroniseSelectedTabIndex();
|
|
1976
1984
|
};
|
|
1977
1985
|
ActivityContainerComponent.prototype.activityIndex = function (index, activityRef) {
|
|
1978
1986
|
return index;
|
|
1979
1987
|
};
|
|
1980
1988
|
;
|
|
1981
|
-
// @Trace()
|
|
1982
1989
|
ActivityContainerComponent.prototype.onAnimationFinished = function () {
|
|
1983
|
-
this.
|
|
1984
|
-
|
|
1990
|
+
if (this.onAnimationFinishedJob) {
|
|
1991
|
+
this.onAnimationFinishedJob();
|
|
1992
|
+
this.onAnimationFinishedJob = undefined;
|
|
1993
|
+
}
|
|
1985
1994
|
};
|
|
1986
1995
|
/**
|
|
1987
|
-
* Synchronises the selected tab index.
|
|
1996
|
+
* Synchronises the selected tab index.
|
|
1988
1997
|
*/
|
|
1989
|
-
// @Trace()
|
|
1990
1998
|
ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
|
|
1999
|
+
var _this = this;
|
|
1991
2000
|
var previousIndex = this.tabs.selectedIndex;
|
|
1992
2001
|
var newIndex = this.getActiveActivityCount() - 1;
|
|
1993
|
-
|
|
1994
|
-
|
|
2002
|
+
if (previousIndex !== newIndex) {
|
|
2003
|
+
this.tabs.selectedIndex = newIndex;
|
|
2004
|
+
this.onAnimationFinishedJob = function () {
|
|
2005
|
+
_this.getSelectedOutlet().component.onActivityReady();
|
|
2006
|
+
_this.activityTabs = _this.activityTabs.filter(function (tab) { return !tab.isComplete(); });
|
|
2007
|
+
};
|
|
2008
|
+
}
|
|
1995
2009
|
};
|
|
1996
2010
|
ActivityContainerComponent.prototype.getSelectedOutlet = function () {
|
|
1997
2011
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
@@ -2028,7 +2042,7 @@
|
|
|
2028
2042
|
ActivityContainerComponent = __decorate([
|
|
2029
2043
|
core.Component({
|
|
2030
2044
|
selector: 'aup-activity-container',
|
|
2031
|
-
template: "<mat-tab-group #tabs no-tab-header
|
|
2045
|
+
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; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
2032
2046
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
2033
2047
|
}),
|
|
2034
2048
|
__metadata("design:paramtypes", [])
|
|
@@ -2478,7 +2492,9 @@
|
|
|
2478
2492
|
portal.PortalModule,
|
|
2479
2493
|
router.RouterModule,
|
|
2480
2494
|
icon.MatIconModule,
|
|
2481
|
-
DirectivesModule
|
|
2495
|
+
DirectivesModule,
|
|
2496
|
+
flexLayout.FlexModule,
|
|
2497
|
+
flexLayout.GridModule
|
|
2482
2498
|
],
|
|
2483
2499
|
declarations: [
|
|
2484
2500
|
ActivityContainerComponent,
|