@coolon/angular-ui-powerups 0.0.108 → 0.0.110
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 +71 -76
- 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/coolon-angular-ui-powerups.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/lib/animations/index.js +2 -2
- package/esm2015/lib/animations/slide-animations.js +31 -0
- package/esm2015/lib/place/guards/navigation-state.js +9 -45
- package/esm2015/lib/place/place-router.js +3 -8
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +2 -2
- package/esm5/index.js +2 -2
- package/esm5/lib/animations/index.js +2 -2
- package/esm5/lib/animations/slide-animations.js +31 -0
- package/esm5/lib/place/guards/navigation-state.js +47 -54
- package/esm5/lib/place/place-router.js +7 -9
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +30 -68
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +72 -78
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/animations/index.d.ts +1 -1
- package/lib/animations/slide-animations.d.ts +2 -0
- package/package.json +1 -1
- package/esm2015/lib/animations/slideDownAndUpAnimation.js +0 -30
- package/esm5/lib/animations/slideDownAndUpAnimation.js +0 -30
- package/lib/animations/slideDownAndUpAnimation.d.ts +0 -5
|
@@ -4,10 +4,10 @@ import { FormsModule } from '@angular/forms';
|
|
|
4
4
|
import { MatInputModule, MatFormFieldModule, MatSelectModule, MatButtonModule, MatDialogModule, MatTabsModule as MatTabsModule$1, MatProgressSpinnerModule, MatDialog } from '@angular/material';
|
|
5
5
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
6
6
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
7
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, DelegatingListModel, Deferred, MutableStream, MutableValueModel, MutableListModel, Binding,
|
|
7
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, DelegatingListModel, Deferred, MutableStream, MutableValueModel, MutableListModel, Binding, Guard, StoreInValueModel, Command, ValueHolder } from '@coolon/pectin';
|
|
8
8
|
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
9
9
|
import { PortalModule } from '@angular/cdk/portal';
|
|
10
|
-
import { RouterModule, NavigationStart,
|
|
10
|
+
import { RouterModule, UrlSegment, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, Router, UrlSerializer } from '@angular/router';
|
|
11
11
|
import { assert as assert$1, Opts, Klass } from '@coolon/typescript-utilities';
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
13
|
import { MatListModule } from '@angular/material/list';
|
|
@@ -3542,6 +3542,7 @@ if (false) {
|
|
|
3542
3542
|
onRouterStarted(event) {
|
|
3543
3543
|
return new InteractionTransition(this.context, event.url);
|
|
3544
3544
|
}
|
|
3545
|
+
// @Trace()
|
|
3545
3546
|
/**
|
|
3546
3547
|
* @param {?} event
|
|
3547
3548
|
* @return {?}
|
|
@@ -3550,12 +3551,6 @@ if (false) {
|
|
|
3550
3551
|
return new InteractionPopStateTransition(this.context, event.url);
|
|
3551
3552
|
}
|
|
3552
3553
|
}
|
|
3553
|
-
__decorate([
|
|
3554
|
-
Trace(),
|
|
3555
|
-
__metadata("design:type", Function),
|
|
3556
|
-
__metadata("design:paramtypes", [NavigationStart]),
|
|
3557
|
-
__metadata("design:returntype", NavigationState)
|
|
3558
|
-
], IdleDuringInteraction.prototype, "onPopState", null);
|
|
3559
3554
|
NavigationState.IdleDuringInteraction = IdleDuringInteraction;
|
|
3560
3555
|
if (false) {
|
|
3561
3556
|
/** @type {?} */
|
|
@@ -3595,6 +3590,7 @@ if (false) {
|
|
|
3595
3590
|
super(...arguments);
|
|
3596
3591
|
this.isPopState = false;
|
|
3597
3592
|
}
|
|
3593
|
+
// @Trace()
|
|
3598
3594
|
/**
|
|
3599
3595
|
* @param {?} event
|
|
3600
3596
|
* @return {?}
|
|
@@ -3610,6 +3606,7 @@ if (false) {
|
|
|
3610
3606
|
return new Idle(this.context);
|
|
3611
3607
|
}
|
|
3612
3608
|
}
|
|
3609
|
+
// @Trace()
|
|
3613
3610
|
/**
|
|
3614
3611
|
* @param {?} event
|
|
3615
3612
|
* @return {?}
|
|
@@ -3618,6 +3615,7 @@ if (false) {
|
|
|
3618
3615
|
// navigation was aborted.
|
|
3619
3616
|
return new IdleDuringInteraction(this.context, this.startingUrl);
|
|
3620
3617
|
}
|
|
3618
|
+
// @Trace()
|
|
3621
3619
|
/**
|
|
3622
3620
|
* @param {?} event
|
|
3623
3621
|
* @return {?}
|
|
@@ -3631,24 +3629,6 @@ if (false) {
|
|
|
3631
3629
|
}
|
|
3632
3630
|
}
|
|
3633
3631
|
}
|
|
3634
|
-
__decorate([
|
|
3635
|
-
Trace(),
|
|
3636
|
-
__metadata("design:type", Function),
|
|
3637
|
-
__metadata("design:paramtypes", [NavigationCancel]),
|
|
3638
|
-
__metadata("design:returntype", NavigationState)
|
|
3639
|
-
], InteractionTransition.prototype, "onRouterCancelled", null);
|
|
3640
|
-
__decorate([
|
|
3641
|
-
Trace(),
|
|
3642
|
-
__metadata("design:type", Function),
|
|
3643
|
-
__metadata("design:paramtypes", [NavigationError]),
|
|
3644
|
-
__metadata("design:returntype", NavigationState)
|
|
3645
|
-
], InteractionTransition.prototype, "onRouterError", null);
|
|
3646
|
-
__decorate([
|
|
3647
|
-
Trace(),
|
|
3648
|
-
__metadata("design:type", Function),
|
|
3649
|
-
__metadata("design:paramtypes", [NavigationEnd]),
|
|
3650
|
-
__metadata("design:returntype", NavigationState)
|
|
3651
|
-
], InteractionTransition.prototype, "onRouterEnd", null);
|
|
3652
3632
|
NavigationState.InteractionTransition = InteractionTransition;
|
|
3653
3633
|
if (false) {
|
|
3654
3634
|
/** @type {?} */
|
|
@@ -3663,6 +3643,7 @@ if (false) {
|
|
|
3663
3643
|
super(...arguments);
|
|
3664
3644
|
this.isPopState = true;
|
|
3665
3645
|
}
|
|
3646
|
+
// @Trace()
|
|
3666
3647
|
/**
|
|
3667
3648
|
* @param {?} event
|
|
3668
3649
|
* @return {?}
|
|
@@ -3678,6 +3659,7 @@ if (false) {
|
|
|
3678
3659
|
return new Idle(this.context);
|
|
3679
3660
|
}
|
|
3680
3661
|
}
|
|
3662
|
+
// @Trace()
|
|
3681
3663
|
/**
|
|
3682
3664
|
* @param {?} event
|
|
3683
3665
|
* @return {?}
|
|
@@ -3691,18 +3673,6 @@ if (false) {
|
|
|
3691
3673
|
}
|
|
3692
3674
|
}
|
|
3693
3675
|
}
|
|
3694
|
-
__decorate([
|
|
3695
|
-
Trace(),
|
|
3696
|
-
__metadata("design:type", Function),
|
|
3697
|
-
__metadata("design:paramtypes", [NavigationCancel]),
|
|
3698
|
-
__metadata("design:returntype", NavigationState)
|
|
3699
|
-
], InteractionPopStateTransition.prototype, "onRouterCancelled", null);
|
|
3700
|
-
__decorate([
|
|
3701
|
-
Trace(),
|
|
3702
|
-
__metadata("design:type", Function),
|
|
3703
|
-
__metadata("design:paramtypes", [NavigationEnd]),
|
|
3704
|
-
__metadata("design:returntype", NavigationState)
|
|
3705
|
-
], InteractionPopStateTransition.prototype, "onRouterEnd", null);
|
|
3706
3676
|
NavigationState.InteractionPopStateTransition = InteractionPopStateTransition;
|
|
3707
3677
|
if (false) {
|
|
3708
3678
|
/** @type {?} */
|
|
@@ -3736,6 +3706,7 @@ if (false) {
|
|
|
3736
3706
|
onRouterStarted(event) {
|
|
3737
3707
|
return this.ignore(event);
|
|
3738
3708
|
}
|
|
3709
|
+
// @Trace()
|
|
3739
3710
|
/**
|
|
3740
3711
|
* @param {?} event
|
|
3741
3712
|
* @return {?}
|
|
@@ -3803,12 +3774,6 @@ if (false) {
|
|
|
3803
3774
|
return `${this.constructor.name}(isIdl: ${this.idle}, startingUrl: ${this.startingUrl}, locationChangeTriggerUrl:${this.locationChangeTriggerUrl})`;
|
|
3804
3775
|
}
|
|
3805
3776
|
}
|
|
3806
|
-
__decorate([
|
|
3807
|
-
Trace(),
|
|
3808
|
-
__metadata("design:type", Function),
|
|
3809
|
-
__metadata("design:paramtypes", [NavigationCancel]),
|
|
3810
|
-
__metadata("design:returntype", NavigationState)
|
|
3811
|
-
], CancelledDuringNavigationInteraction.prototype, "onRouterCancelled", null);
|
|
3812
3777
|
NavigationState.CancelledDuringNavigationInteraction = CancelledDuringNavigationInteraction;
|
|
3813
3778
|
if (false) {
|
|
3814
3779
|
/** @type {?} */
|
|
@@ -4402,6 +4367,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
4402
4367
|
hasActiveInteractionIds(url) {
|
|
4403
4368
|
return this.getActiveInteractionIdsFromUrl(url).length > 0;
|
|
4404
4369
|
}
|
|
4370
|
+
// @Trace()
|
|
4405
4371
|
/**
|
|
4406
4372
|
* @param {?} urlSnapshot
|
|
4407
4373
|
* @param {?=} navigationExtras
|
|
@@ -4477,12 +4443,6 @@ PlaceRouter.ctorParameters = () => [
|
|
|
4477
4443
|
{ type: InteractionService }
|
|
4478
4444
|
];
|
|
4479
4445
|
/** @nocollapse */ PlaceRouter.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(ɵɵinject(Router), ɵɵinject(UrlSerializer), ɵɵinject(Location), ɵɵinject(PlaceHistory), ɵɵinject(InteractionService)); }, token: PlaceRouter, providedIn: "root" });
|
|
4480
|
-
__decorate([
|
|
4481
|
-
Trace(),
|
|
4482
|
-
__metadata("design:type", Function),
|
|
4483
|
-
__metadata("design:paramtypes", [UrlSnapshot, Object]),
|
|
4484
|
-
__metadata("design:returntype", Promise)
|
|
4485
|
-
], PlaceRouter.prototype, "navigateByUrl", null);
|
|
4486
4446
|
if (false) {
|
|
4487
4447
|
/**
|
|
4488
4448
|
* @type {?}
|
|
@@ -5286,28 +5246,30 @@ AngularUiPowerupsModule.decorators = [
|
|
|
5286
5246
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5287
5247
|
*/
|
|
5288
5248
|
/** @type {?} */
|
|
5289
|
-
const
|
|
5249
|
+
const slideDownOnEnterDef = style({
|
|
5290
5250
|
opacity: 0,
|
|
5291
5251
|
'height': '0',
|
|
5292
5252
|
paddingTop: '0',
|
|
5293
5253
|
paddingBottom: '0'
|
|
5294
5254
|
});
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
}
|
|
5255
|
+
// TODO: params aren't getting customised in the view. Need to figure out the correct approach.
|
|
5256
|
+
/** @type {?} */
|
|
5257
|
+
const slideDownOnEnterAnimation = trigger('slideDownOnEnter', [
|
|
5258
|
+
transition(':enter', [slideDownOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
5259
|
+
transition(':leave', [animate('{{duration}}', slideDownOnEnterDef)], { params: { duration: '100ms' } })
|
|
5260
|
+
]);
|
|
5261
|
+
/** @type {?} */
|
|
5262
|
+
const slideLeftOnEnterDef = style({
|
|
5263
|
+
opacity: 0,
|
|
5264
|
+
'width': '0',
|
|
5265
|
+
paddingLeft: '0',
|
|
5266
|
+
paddingRight: '0'
|
|
5267
|
+
});
|
|
5268
|
+
/** @type {?} */
|
|
5269
|
+
const slideRightOnEnterAnimation = trigger('slideRightOnEnter', [
|
|
5270
|
+
transition(':enter', [slideLeftOnEnterDef, animate('{{duration}}')], { params: { duration: '100ms' } }),
|
|
5271
|
+
transition(':leave', [animate('{{duration}}', slideLeftOnEnterDef)], { params: { duration: '100ms' } })
|
|
5272
|
+
]);
|
|
5311
5273
|
|
|
5312
5274
|
/**
|
|
5313
5275
|
* @fileoverview added by tsickle
|
|
@@ -6580,5 +6542,5 @@ if (false) {
|
|
|
6580
6542
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6581
6543
|
*/
|
|
6582
6544
|
|
|
6583
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, Activity, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, FocusBindingDirective, Formatter, InplaceInteractionContextComponent, InteractionContext, InteractionContextBase, InteractionModule, InteractionService, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, NavigationState, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, leftRightPlaceAnimation,
|
|
6545
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractActivity, AbstractInputComponent, AbstractPlaceNavigationComponent, Activity, ActivityContainerComponent, ActivityOutletComponent, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, FocusBindingDirective, Formatter, InplaceInteractionContextComponent, InteractionContext, InteractionContextBase, InteractionModule, InteractionService, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, NavigationState, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, ROUTE_PARAMETER_LIST_KEY, ResizeAwareComponent, RouteId, SelectInputComponent, StringInputComponent, TabbedPlaceNavigationComponent, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, InteractionModule as ɵba, ActivityContainerComponent as ɵbb, InteractionContextBase as ɵbc, InteractionContext as ɵbd, ActivityOutletComponent as ɵbe, ConfirmationDialogComponent as ɵbf, AbstractActivity as ɵbg, ACTIVITY_DATA as ɵbh, Activity as ɵbi, ConfirmThenDialogComponent as ɵbk, AlertDialogComponent as ɵbl, InplaceInteractionContextComponent 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, InteractionService as ɵv, ModalInteractionContextFactory as ɵw, TabbedPlaceNavigationComponent as ɵx, AbstractPlaceNavigationComponent as ɵy, ListPlaceNavComponent as ɵz };
|
|
6584
6546
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|