@coolon/angular-ui-powerups 0.0.78 → 0.0.80
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 +80 -42
- 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.d.ts +20 -19
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +20 -19
- package/esm2015/index.js +2 -2
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +6 -4
- package/esm2015/lib/interaction/interaction.module.js +2 -2
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +16 -4
- package/esm2015/lib/place/components/place-outlet/route-animations.js +6 -3
- package/esm2015/lib/place/index.js +2 -1
- package/esm2015/lib/place/place-config.js +16 -0
- package/esm2015/lib/place/place.module.js +4 -2
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +20 -19
- package/esm5/index.js +2 -2
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +6 -4
- package/esm5/lib/interaction/interaction.module.js +2 -2
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +19 -4
- package/esm5/lib/place/components/place-outlet/route-animations.js +6 -3
- package/esm5/lib/place/index.js +2 -1
- package/esm5/lib/place/place-config.js +16 -0
- package/esm5/lib/place/place.module.js +4 -2
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +43 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +46 -10
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -1
- package/lib/place/index.d.ts +1 -0
- package/lib/place/place-config.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1576,6 +1576,10 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1576
1576
|
*/
|
|
1577
1577
|
function (initialContext) {
|
|
1578
1578
|
assert.isNil(this._initialActivityOutletContext);
|
|
1579
|
+
// we clean up at the start as we leave the initial activity in place after it finishes
|
|
1580
|
+
// so that the activity remains visible during the inplace-interaction-context animations.
|
|
1581
|
+
this.activityTabs.value = [];
|
|
1582
|
+
this._activityList.value = [];
|
|
1579
1583
|
/** @type {?} */
|
|
1580
1584
|
var self = this;
|
|
1581
1585
|
if (initialContext) {
|
|
@@ -1610,7 +1614,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1610
1614
|
* @return {?}
|
|
1611
1615
|
*/
|
|
1612
1616
|
function () {
|
|
1613
|
-
return this.
|
|
1617
|
+
return !!this._initialActivityOutletContext;
|
|
1614
1618
|
};
|
|
1615
1619
|
Object.defineProperty(ActivityContainerComponent.prototype, "activityList", {
|
|
1616
1620
|
get: /**
|
|
@@ -1761,8 +1765,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1761
1765
|
*/
|
|
1762
1766
|
function () {
|
|
1763
1767
|
this._initialActivityOutletContext = null;
|
|
1764
|
-
this.activityTabs.value = [];
|
|
1765
|
-
this._activityList.value = [];
|
|
1766
1768
|
this.initialActivityOutletContextEvent.emit(null);
|
|
1767
1769
|
};
|
|
1768
1770
|
// @Trace()
|
|
@@ -2469,7 +2471,7 @@ var InteractionModule = /** @class */ (function () {
|
|
|
2469
2471
|
AlertDialogComponent
|
|
2470
2472
|
],
|
|
2471
2473
|
providers: [
|
|
2472
|
-
DialogInteractionService
|
|
2474
|
+
DialogInteractionService,
|
|
2473
2475
|
]
|
|
2474
2476
|
},] }
|
|
2475
2477
|
];
|
|
@@ -3534,6 +3536,21 @@ if (false) {
|
|
|
3534
3536
|
Visit.prototype.visitParameters;
|
|
3535
3537
|
}
|
|
3536
3538
|
|
|
3539
|
+
/**
|
|
3540
|
+
* @fileoverview added by tsickle
|
|
3541
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3542
|
+
*/
|
|
3543
|
+
/** @type {?} */
|
|
3544
|
+
var AUP_PLACE_CONFIG = new InjectionToken('AUP_PLACE_CONFIG');
|
|
3545
|
+
/**
|
|
3546
|
+
* @record
|
|
3547
|
+
*/
|
|
3548
|
+
function PlaceConfig() { }
|
|
3549
|
+
if (false) {
|
|
3550
|
+
/** @type {?} */
|
|
3551
|
+
PlaceConfig.prototype.animationDuration;
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3537
3554
|
/**
|
|
3538
3555
|
* @fileoverview added by tsickle
|
|
3539
3556
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -4182,12 +4199,15 @@ var right = [
|
|
|
4182
4199
|
query(':enter, :leave', animationStartStyle, { optional: true }),
|
|
4183
4200
|
group([
|
|
4184
4201
|
query(':enter', [
|
|
4185
|
-
style({ transform: 'translateX(100%)' }),
|
|
4202
|
+
style({ transform: 'translateX(100%)', minHeight: '1px' }),
|
|
4186
4203
|
animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
|
|
4187
4204
|
], {
|
|
4188
4205
|
optional: true
|
|
4189
4206
|
}),
|
|
4190
|
-
query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({
|
|
4207
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({
|
|
4208
|
+
transform: 'translateX(-100%)',
|
|
4209
|
+
minHeight: '1px'
|
|
4210
|
+
}))], {
|
|
4191
4211
|
optional: true
|
|
4192
4212
|
})
|
|
4193
4213
|
])
|
|
@@ -4228,10 +4248,11 @@ if (false) {
|
|
|
4228
4248
|
}
|
|
4229
4249
|
var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
4230
4250
|
__extends(PlaceOutletComponent, _super);
|
|
4231
|
-
function PlaceOutletComponent(router, placeRouter, parentOutlet) {
|
|
4251
|
+
function PlaceOutletComponent(router, placeRouter, placeConfig, parentOutlet) {
|
|
4232
4252
|
var _this = _super.call(this) || this;
|
|
4233
4253
|
_this.router = router;
|
|
4234
4254
|
_this.placeRouter = placeRouter;
|
|
4255
|
+
_this.placeConfig = placeConfig;
|
|
4235
4256
|
_this.animate = true;
|
|
4236
4257
|
_this.placeChanged = new EventEmitter();
|
|
4237
4258
|
_this._activePlace = new MutableValueModel();
|
|
@@ -4320,6 +4341,16 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
4320
4341
|
*/
|
|
4321
4342
|
function () {
|
|
4322
4343
|
};
|
|
4344
|
+
Object.defineProperty(PlaceOutletComponent.prototype, "animationDuration", {
|
|
4345
|
+
get: /**
|
|
4346
|
+
* @return {?}
|
|
4347
|
+
*/
|
|
4348
|
+
function () {
|
|
4349
|
+
return this.placeConfig && this.placeConfig.animationDuration ? this.placeConfig.animationDuration : "500ms";
|
|
4350
|
+
},
|
|
4351
|
+
enumerable: true,
|
|
4352
|
+
configurable: true
|
|
4353
|
+
});
|
|
4323
4354
|
/**
|
|
4324
4355
|
* @param {?} visit
|
|
4325
4356
|
* @return {?}
|
|
@@ -4454,7 +4485,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
4454
4485
|
PlaceOutletComponent.decorators = [
|
|
4455
4486
|
{ type: Component, args: [{
|
|
4456
4487
|
selector: 'aup-place-outlet',
|
|
4457
|
-
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"placeAnimationOrder.value\"\n (@routeAnimations.done)=\"animationDone()\"\n>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated(routerOutlet, $event)\">\n </router-outlet>\n</div>\n\n",
|
|
4488
|
+
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: placeAnimationOrder.value, params:{duration: animationDuration}}\"\n (@routeAnimations.done)=\"animationDone()\"\n>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated(routerOutlet, $event)\">\n </router-outlet>\n</div>\n\n",
|
|
4458
4489
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
4459
4490
|
styles: [":host{display:flex;flex-direction:column;min-height:0;overflow-x:hidden}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
4460
4491
|
}] }
|
|
@@ -4463,6 +4494,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
4463
4494
|
PlaceOutletComponent.ctorParameters = function () { return [
|
|
4464
4495
|
{ type: Router },
|
|
4465
4496
|
{ type: PlaceRouter },
|
|
4497
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [AUP_PLACE_CONFIG,] }] },
|
|
4466
4498
|
{ type: PlaceOutletComponent, decorators: [{ type: SkipSelf }, { type: Optional }] }
|
|
4467
4499
|
]; };
|
|
4468
4500
|
PlaceOutletComponent.propDecorators = {
|
|
@@ -4546,6 +4578,8 @@ if (false) {
|
|
|
4546
4578
|
* @private
|
|
4547
4579
|
*/
|
|
4548
4580
|
PlaceOutletComponent.prototype.placeRouter;
|
|
4581
|
+
/** @type {?} */
|
|
4582
|
+
PlaceOutletComponent.prototype.placeConfig;
|
|
4549
4583
|
}
|
|
4550
4584
|
|
|
4551
4585
|
/**
|
|
@@ -4781,7 +4815,9 @@ var PlaceModule = /** @class */ (function () {
|
|
|
4781
4815
|
TabbedPlaceNavigationComponent,
|
|
4782
4816
|
ListPlaceNavComponent
|
|
4783
4817
|
],
|
|
4784
|
-
providers: [
|
|
4818
|
+
providers: [
|
|
4819
|
+
// {provide: AUP_PLACE_CONFIG, useValue: {animationDuration: "100ms"}}
|
|
4820
|
+
]
|
|
4785
4821
|
},] }
|
|
4786
4822
|
];
|
|
4787
4823
|
return PlaceModule;
|
|
@@ -6222,5 +6258,5 @@ if (false) {
|
|
|
6222
6258
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6223
6259
|
*/
|
|
6224
6260
|
|
|
6225
|
-
export { ACTIVITY_DATA, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, Activity, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionService, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnterPlaceGuard, FocusBindingDirective, Formatter, InplaceInteractionContextComponent, InteractionContext, InteractionGuard, InteractionModule, InteractionOutletComponent, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, ListPlaceNavComponent, NavigationSession, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceDefinition, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, leftRightPlaceAnimation, slideDownAndUpAnimation, DirectivesModule as ɵa, CommandDirective as ɵb,
|
|
6261
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, Activity, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionService, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnterPlaceGuard, FocusBindingDirective, Formatter, InplaceInteractionContextComponent, InteractionContext, InteractionGuard, InteractionModule, InteractionOutletComponent, LEFT_RIGHT_PLACE_ANIMATION, LeavePlaceGuard, ListPlaceNavComponent, NavigationSession, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceDefinition, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, leftRightPlaceAnimation, slideDownAndUpAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, InteractionContext as ɵba, ActivityOutletComponent as ɵbb, ConfirmationDialogComponent as ɵbc, AbstractActivity as ɵbd, ACTIVITY_DATA as ɵbe, Activity as ɵbf, ConfirmThenDialogComponent as ɵbh, AlertDialogComponent as ɵbi, InteractionOutletComponent as ɵbk, InplaceInteractionContextComponent as ɵbl, DIALOG_INTERACTION_SERVICE_DEFAULTS as ɵbm, DialogInteractionService as ɵbn, FocusBindingDirective as ɵc, DisposableComponent as ɵd, ComponentsModule as ɵe, NumberInputComponent as ɵf, AbstractInputComponent as ɵg, StringInputComponent as ɵh, PasswordInputComponent as ɵi, SelectInputComponent as ɵj, NoopComponent as ɵk, PlaceModule as ɵl, EmptyStateComponent as ɵm, BusyOverlayComponent as ɵn, PlaceOutletComponent as ɵo, leftRightPlaceAnimation as ɵp, LEFT_RIGHT_PLACE_ANIMATION as ɵq, AUP_PLACE_CONFIG as ɵr, PlaceRouter as ɵt, PlaceHistory as ɵu, TabbedPlaceNavigationComponent as ɵv, AbstractPlaceNavigationComponent as ɵw, ListPlaceNavComponent as ɵx, InteractionModule as ɵy, ActivityContainerComponent as ɵz };
|
|
6226
6262
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|