@coolon/angular-ui-powerups 0.0.80 → 0.0.81
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 +77 -18
- 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.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +48 -9
- package/esm2015/lib/place/place-component.js +13 -4
- package/esm2015/lib/place/place.module.js +5 -2
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +53 -17
- package/esm5/lib/place/place-component.js +26 -4
- package/esm5/lib/place/place.module.js +5 -2
- package/fesm2015/coolon-angular-ui-powerups.js +60 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +78 -19
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +2 -0
- package/lib/place/place-component.d.ts +8 -3
- package/package.json +1 -1
|
@@ -3486,13 +3486,36 @@
|
|
|
3486
3486
|
*/
|
|
3487
3487
|
function () {
|
|
3488
3488
|
};
|
|
3489
|
+
/**
|
|
3490
|
+
* Called by the place outlet after all animations have finished. We need this instead of ngOnDestroy
|
|
3491
|
+
* to avoid the fact that the angular router calls it before the animations have run causing the component
|
|
3492
|
+
* to loose any pectin bindings.
|
|
3493
|
+
*/
|
|
3494
|
+
// @Trace()
|
|
3495
|
+
/**
|
|
3496
|
+
* Called by the place outlet after all animations have finished. We need this instead of ngOnDestroy
|
|
3497
|
+
* to avoid the fact that the angular router calls it before the animations have run causing the component
|
|
3498
|
+
* to loose any pectin bindings.
|
|
3499
|
+
* @return {?}
|
|
3500
|
+
*/
|
|
3501
|
+
// @Trace()
|
|
3502
|
+
PlaceComponent.prototype.onPlaceDestroyed = /**
|
|
3503
|
+
* Called by the place outlet after all animations have finished. We need this instead of ngOnDestroy
|
|
3504
|
+
* to avoid the fact that the angular router calls it before the animations have run causing the component
|
|
3505
|
+
* to loose any pectin bindings.
|
|
3506
|
+
* @return {?}
|
|
3507
|
+
*/
|
|
3508
|
+
// @Trace()
|
|
3509
|
+
function () {
|
|
3510
|
+
this.dispose();
|
|
3511
|
+
};
|
|
3489
3512
|
__decorate([
|
|
3490
3513
|
fastMemoizeDecorator.Memoize(),
|
|
3491
3514
|
__metadata("design:type", exports.PlaceDefinition),
|
|
3492
3515
|
__metadata("design:paramtypes", [])
|
|
3493
3516
|
], PlaceComponent.prototype, "placeDefinition", null);
|
|
3494
3517
|
return PlaceComponent;
|
|
3495
|
-
}(
|
|
3518
|
+
}(pectin.GarbageCollector));
|
|
3496
3519
|
if (false) {
|
|
3497
3520
|
/**
|
|
3498
3521
|
* @type {?}
|
|
@@ -4454,9 +4477,9 @@
|
|
|
4454
4477
|
* @return {?}
|
|
4455
4478
|
*/
|
|
4456
4479
|
function (o) { return o.activePlaceModel; }))
|
|
4457
|
-
.pluck(
|
|
4458
|
-
.pluckList(
|
|
4459
|
-
.pluck(
|
|
4480
|
+
.pluck('placeDefinition')
|
|
4481
|
+
.pluckList('children')
|
|
4482
|
+
.pluck('component');
|
|
4460
4483
|
/** @type {?} */
|
|
4461
4484
|
var activatePlaceType = chain(_this.activePlaceModel).map((/**
|
|
4462
4485
|
* @param {?} p
|
|
@@ -4530,7 +4553,7 @@
|
|
|
4530
4553
|
* @return {?}
|
|
4531
4554
|
*/
|
|
4532
4555
|
function () {
|
|
4533
|
-
return this.placeConfig && this.placeConfig.animationDuration ? this.placeConfig.animationDuration :
|
|
4556
|
+
return this.placeConfig && this.placeConfig.animationDuration ? this.placeConfig.animationDuration : '500ms';
|
|
4534
4557
|
},
|
|
4535
4558
|
enumerable: true,
|
|
4536
4559
|
configurable: true
|
|
@@ -4594,16 +4617,12 @@
|
|
|
4594
4617
|
enumerable: true,
|
|
4595
4618
|
configurable: true
|
|
4596
4619
|
});
|
|
4597
|
-
// @Trace()
|
|
4598
|
-
// @Trace()
|
|
4599
4620
|
/**
|
|
4600
4621
|
* @param {?} routerOutlet
|
|
4601
4622
|
* @param {?} place
|
|
4602
4623
|
* @return {?}
|
|
4603
4624
|
*/
|
|
4604
|
-
PlaceOutletComponent.prototype.onOutletActivated =
|
|
4605
|
-
// @Trace()
|
|
4606
|
-
/**
|
|
4625
|
+
PlaceOutletComponent.prototype.onOutletActivated = /**
|
|
4607
4626
|
* @param {?} routerOutlet
|
|
4608
4627
|
* @param {?} place
|
|
4609
4628
|
* @return {?}
|
|
@@ -4629,16 +4648,12 @@
|
|
|
4629
4648
|
this.animationDone();
|
|
4630
4649
|
}
|
|
4631
4650
|
};
|
|
4632
|
-
// @Trace()
|
|
4633
|
-
// @Trace()
|
|
4634
4651
|
/**
|
|
4635
4652
|
* @param {?} routerOutlet
|
|
4636
4653
|
* @param {?} $event
|
|
4637
4654
|
* @return {?}
|
|
4638
4655
|
*/
|
|
4639
|
-
PlaceOutletComponent.prototype.onOutletDeactivated =
|
|
4640
|
-
// @Trace()
|
|
4641
|
-
/**
|
|
4656
|
+
PlaceOutletComponent.prototype.onOutletDeactivated = /**
|
|
4642
4657
|
* @param {?} routerOutlet
|
|
4643
4658
|
* @param {?} $event
|
|
4644
4659
|
* @return {?}
|
|
@@ -4649,12 +4664,22 @@
|
|
|
4649
4664
|
* @return {?}
|
|
4650
4665
|
*/
|
|
4651
4666
|
function () {
|
|
4667
|
+
_this._previousPlace = _this._activePlace.value;
|
|
4652
4668
|
_this.isOnInitialPlace = false;
|
|
4653
4669
|
_this._activePlace.value = null;
|
|
4654
4670
|
_this._activatedRouteModel.value = null;
|
|
4655
4671
|
_this._placeDefinition.value = null;
|
|
4656
4672
|
}));
|
|
4657
4673
|
};
|
|
4674
|
+
/**
|
|
4675
|
+
* @return {?}
|
|
4676
|
+
*/
|
|
4677
|
+
PlaceOutletComponent.prototype.animationStarted = /**
|
|
4678
|
+
* @return {?}
|
|
4679
|
+
*/
|
|
4680
|
+
function () {
|
|
4681
|
+
console.log({ activePlace: this._activePlace.value });
|
|
4682
|
+
};
|
|
4658
4683
|
/**
|
|
4659
4684
|
* @return {?}
|
|
4660
4685
|
*/
|
|
@@ -4662,6 +4687,10 @@
|
|
|
4662
4687
|
* @return {?}
|
|
4663
4688
|
*/
|
|
4664
4689
|
function () {
|
|
4690
|
+
console.log({ activePlace: this._activePlace.value });
|
|
4691
|
+
if (this._previousPlace) {
|
|
4692
|
+
this._previousPlace.onPlaceDestroyed();
|
|
4693
|
+
}
|
|
4665
4694
|
if (this._activePlace.value) {
|
|
4666
4695
|
this._activePlace.value.onPlaceReady();
|
|
4667
4696
|
}
|
|
@@ -4669,7 +4698,7 @@
|
|
|
4669
4698
|
PlaceOutletComponent.decorators = [
|
|
4670
4699
|
{ type: core.Component, args: [{
|
|
4671
4700
|
selector: 'aup-place-outlet',
|
|
4672
|
-
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",
|
|
4701
|
+
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: placeAnimationOrder.value, params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\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",
|
|
4673
4702
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
4674
4703
|
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}"]
|
|
4675
4704
|
}] }
|
|
@@ -4693,7 +4722,7 @@
|
|
|
4693
4722
|
__metadata("design:type", pectin.ListModel)
|
|
4694
4723
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrderModel", void 0);
|
|
4695
4724
|
__decorate([
|
|
4696
|
-
pectin.StoreInListModel(
|
|
4725
|
+
pectin.StoreInListModel('customPlaceAnimationOrderModel'),
|
|
4697
4726
|
__metadata("design:type", Array)
|
|
4698
4727
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrder", void 0);
|
|
4699
4728
|
__decorate([
|
|
@@ -4702,6 +4731,30 @@
|
|
|
4702
4731
|
__metadata("design:paramtypes", [Visit]),
|
|
4703
4732
|
__metadata("design:returntype", void 0)
|
|
4704
4733
|
], PlaceOutletComponent.prototype, "navigate", null);
|
|
4734
|
+
__decorate([
|
|
4735
|
+
pectin.Trace(),
|
|
4736
|
+
__metadata("design:type", Function),
|
|
4737
|
+
__metadata("design:paramtypes", [router.RouterOutlet, exports.PlaceComponent]),
|
|
4738
|
+
__metadata("design:returntype", void 0)
|
|
4739
|
+
], PlaceOutletComponent.prototype, "onOutletActivated", null);
|
|
4740
|
+
__decorate([
|
|
4741
|
+
pectin.Trace(),
|
|
4742
|
+
__metadata("design:type", Function),
|
|
4743
|
+
__metadata("design:paramtypes", [router.RouterOutlet, Object]),
|
|
4744
|
+
__metadata("design:returntype", void 0)
|
|
4745
|
+
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
4746
|
+
__decorate([
|
|
4747
|
+
pectin.Trace(),
|
|
4748
|
+
__metadata("design:type", Function),
|
|
4749
|
+
__metadata("design:paramtypes", []),
|
|
4750
|
+
__metadata("design:returntype", void 0)
|
|
4751
|
+
], PlaceOutletComponent.prototype, "animationStarted", null);
|
|
4752
|
+
__decorate([
|
|
4753
|
+
pectin.Trace(),
|
|
4754
|
+
__metadata("design:type", Function),
|
|
4755
|
+
__metadata("design:paramtypes", []),
|
|
4756
|
+
__metadata("design:returntype", void 0)
|
|
4757
|
+
], PlaceOutletComponent.prototype, "animationDone", null);
|
|
4705
4758
|
return PlaceOutletComponent;
|
|
4706
4759
|
}(DisposableComponent));
|
|
4707
4760
|
if (false) {
|
|
@@ -4752,6 +4805,11 @@
|
|
|
4752
4805
|
* @private
|
|
4753
4806
|
*/
|
|
4754
4807
|
PlaceOutletComponent.prototype.isOnInitialPlace;
|
|
4808
|
+
/**
|
|
4809
|
+
* @type {?}
|
|
4810
|
+
* @private
|
|
4811
|
+
*/
|
|
4812
|
+
PlaceOutletComponent.prototype._previousPlace;
|
|
4755
4813
|
/**
|
|
4756
4814
|
* @type {?}
|
|
4757
4815
|
* @private
|
|
@@ -4968,6 +5026,7 @@
|
|
|
4968
5026
|
* @fileoverview added by tsickle
|
|
4969
5027
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4970
5028
|
*/
|
|
5029
|
+
var ɵ0 = { animationDuration: "2000ms" };
|
|
4971
5030
|
var PlaceModule = /** @class */ (function () {
|
|
4972
5031
|
function PlaceModule() {
|
|
4973
5032
|
}
|
|
@@ -5000,7 +5059,7 @@
|
|
|
5000
5059
|
ListPlaceNavComponent
|
|
5001
5060
|
],
|
|
5002
5061
|
providers: [
|
|
5003
|
-
|
|
5062
|
+
{ provide: AUP_PLACE_CONFIG, useValue: ɵ0 }
|
|
5004
5063
|
]
|
|
5005
5064
|
},] }
|
|
5006
5065
|
];
|