@coolon/angular-ui-powerups 1.3.7 → 1.4.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 +133 -46
- 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.d.ts +27 -26
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +25 -24
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/components.module.js +3 -0
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.js +8 -10
- package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -1
- package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
- package/esm2015/lib/components/index.js +1 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +87 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/coolon-angular-ui-powerups.js +25 -24
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/components.module.js +3 -0
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/focus-container/focus-container.component.js +8 -10
- package/esm5/lib/components/focus-container/focus-container.component.js.map +1 -1
- package/esm5/lib/components/index.js +1 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +90 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.scss.shim.ngstyle.js.map +1 -0
- package/fesm2015/coolon-angular-ui-powerups.js +93 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +96 -11
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/focus-container/focus-container.component.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __extends, __decorate, __metadata, __param, __awaiter, __generator, __spread, __assign } from 'tslib';
|
|
2
2
|
import { DOCUMENT, CommonModule, Location } from '@angular/common';
|
|
3
|
-
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule,
|
|
3
|
+
import { ElementRef, Inject, Input, HostListener, Directive, NgZone, ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule, Self, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -10,7 +10,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
|
11
11
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
|
-
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger,
|
|
13
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, Command, FocusManager, DelegatingFormValueModel, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, Deferred, Trace, MutableListModel, MutableValueModel, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
14
14
|
import { PortalModule } from '@angular/cdk/portal';
|
|
15
15
|
import { MatDialogModule, MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
16
16
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
@@ -366,27 +366,25 @@ var FocusContainerComponent = /** @class */ (function (_super) {
|
|
|
366
366
|
function FocusContainerComponent(focusManager) {
|
|
367
367
|
var _this = _super.call(this) || this;
|
|
368
368
|
_this.focusManager = focusManager;
|
|
369
|
+
_this.restoreFocusCommand = Command.create(function () {
|
|
370
|
+
_this.restoreFocus();
|
|
371
|
+
});
|
|
369
372
|
_this.tabIndex = -1;
|
|
370
373
|
return _this;
|
|
371
374
|
}
|
|
372
375
|
FocusContainerComponent.prototype.ngOnInit = function () {
|
|
373
376
|
};
|
|
377
|
+
// @Trace()
|
|
374
378
|
FocusContainerComponent.prototype.restoreFocus = function () {
|
|
375
379
|
this.focusManager.restoreFocus();
|
|
376
380
|
};
|
|
377
381
|
FocusContainerComponent.ctorParameters = function () { return [
|
|
378
|
-
{ type: FocusManager, decorators: [{ type:
|
|
382
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
379
383
|
]; };
|
|
380
384
|
__decorate([
|
|
381
385
|
HostBinding('attr.tabindex'),
|
|
382
386
|
__metadata("design:type", Object)
|
|
383
387
|
], FocusContainerComponent.prototype, "tabIndex", void 0);
|
|
384
|
-
__decorate([
|
|
385
|
-
Trace(),
|
|
386
|
-
__metadata("design:type", Function),
|
|
387
|
-
__metadata("design:paramtypes", []),
|
|
388
|
-
__metadata("design:returntype", void 0)
|
|
389
|
-
], FocusContainerComponent.prototype, "restoreFocus", null);
|
|
390
388
|
FocusContainerComponent = __decorate([
|
|
391
389
|
Component({
|
|
392
390
|
selector: 'aup-focus-container',
|
|
@@ -396,7 +394,7 @@ var FocusContainerComponent = /** @class */ (function (_super) {
|
|
|
396
394
|
],
|
|
397
395
|
styles: [":host{display:block}"]
|
|
398
396
|
}),
|
|
399
|
-
__param(0,
|
|
397
|
+
__param(0, Self()),
|
|
400
398
|
__metadata("design:paramtypes", [FocusManager])
|
|
401
399
|
], FocusContainerComponent);
|
|
402
400
|
return FocusContainerComponent;
|
|
@@ -960,6 +958,91 @@ var SwitchCaseComponent = /** @class */ (function (_super) {
|
|
|
960
958
|
return SwitchCaseComponent;
|
|
961
959
|
}(DisposableComponent));
|
|
962
960
|
|
|
961
|
+
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
962
|
+
__extends(VerticalFocusContainerComponent, _super);
|
|
963
|
+
function VerticalFocusContainerComponent(focusManager) {
|
|
964
|
+
var _this = _super.call(this, focusManager) || this;
|
|
965
|
+
_this.focusManager = focusManager;
|
|
966
|
+
return _this;
|
|
967
|
+
}
|
|
968
|
+
VerticalFocusContainerComponent.prototype.arrowLeft = function (event) {
|
|
969
|
+
if (this.leftArrowCommand.enabled.value) {
|
|
970
|
+
event.preventDefault();
|
|
971
|
+
event.stopPropagation();
|
|
972
|
+
this.leftArrowCommand.execute();
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
VerticalFocusContainerComponent.prototype.arrowRight = function (event) {
|
|
976
|
+
if (this.rightArrowCommand.enabled.value) {
|
|
977
|
+
event.preventDefault();
|
|
978
|
+
event.stopPropagation();
|
|
979
|
+
this.rightArrowCommand.execute();
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
VerticalFocusContainerComponent.prototype.arrowDown = function (event) {
|
|
983
|
+
event.preventDefault();
|
|
984
|
+
event.stopPropagation();
|
|
985
|
+
this.focusManager.focusNext();
|
|
986
|
+
};
|
|
987
|
+
VerticalFocusContainerComponent.prototype.arrowUp = function (event) {
|
|
988
|
+
event.preventDefault();
|
|
989
|
+
event.stopPropagation();
|
|
990
|
+
this.focusManager.focusPrevious();
|
|
991
|
+
};
|
|
992
|
+
VerticalFocusContainerComponent.prototype.ngOnInit = function () {
|
|
993
|
+
};
|
|
994
|
+
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
995
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
996
|
+
]; };
|
|
997
|
+
__decorate([
|
|
998
|
+
Input('command.arrowRight'),
|
|
999
|
+
TrackExternal(),
|
|
1000
|
+
__metadata("design:type", Command)
|
|
1001
|
+
], VerticalFocusContainerComponent.prototype, "rightArrowCommand", void 0);
|
|
1002
|
+
__decorate([
|
|
1003
|
+
Input('command.arrowLeft'),
|
|
1004
|
+
TrackExternal(),
|
|
1005
|
+
__metadata("design:type", Command)
|
|
1006
|
+
], VerticalFocusContainerComponent.prototype, "leftArrowCommand", void 0);
|
|
1007
|
+
__decorate([
|
|
1008
|
+
HostListener('keyup.arrowLeft', ['$event']),
|
|
1009
|
+
__metadata("design:type", Function),
|
|
1010
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1011
|
+
__metadata("design:returntype", void 0)
|
|
1012
|
+
], VerticalFocusContainerComponent.prototype, "arrowLeft", null);
|
|
1013
|
+
__decorate([
|
|
1014
|
+
HostListener('keyup.arrowRight', ['$event']),
|
|
1015
|
+
__metadata("design:type", Function),
|
|
1016
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1017
|
+
__metadata("design:returntype", void 0)
|
|
1018
|
+
], VerticalFocusContainerComponent.prototype, "arrowRight", null);
|
|
1019
|
+
__decorate([
|
|
1020
|
+
HostListener('keyup.arrowDown', ['$event']),
|
|
1021
|
+
__metadata("design:type", Function),
|
|
1022
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1023
|
+
__metadata("design:returntype", void 0)
|
|
1024
|
+
], VerticalFocusContainerComponent.prototype, "arrowDown", null);
|
|
1025
|
+
__decorate([
|
|
1026
|
+
HostListener('keyup.arrowUp', ['$event']),
|
|
1027
|
+
__metadata("design:type", Function),
|
|
1028
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1029
|
+
__metadata("design:returntype", void 0)
|
|
1030
|
+
], VerticalFocusContainerComponent.prototype, "arrowUp", null);
|
|
1031
|
+
VerticalFocusContainerComponent = __decorate([
|
|
1032
|
+
Component({
|
|
1033
|
+
selector: 'aup-vertical-focus-container',
|
|
1034
|
+
template: "<ng-content></ng-content>\n",
|
|
1035
|
+
providers: [
|
|
1036
|
+
{ provide: FocusManager }
|
|
1037
|
+
],
|
|
1038
|
+
styles: [":host{display:block}"]
|
|
1039
|
+
}),
|
|
1040
|
+
__param(0, Self()),
|
|
1041
|
+
__metadata("design:paramtypes", [FocusManager])
|
|
1042
|
+
], VerticalFocusContainerComponent);
|
|
1043
|
+
return VerticalFocusContainerComponent;
|
|
1044
|
+
}(FocusContainerComponent));
|
|
1045
|
+
|
|
963
1046
|
var ComponentsModule = /** @class */ (function () {
|
|
964
1047
|
function ComponentsModule() {
|
|
965
1048
|
}
|
|
@@ -978,6 +1061,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
978
1061
|
SwitchCaseWhenDirective,
|
|
979
1062
|
SwitchCaseDefaultDirective,
|
|
980
1063
|
FocusContainerComponent,
|
|
1064
|
+
VerticalFocusContainerComponent,
|
|
981
1065
|
FocusableComponent
|
|
982
1066
|
],
|
|
983
1067
|
imports: [
|
|
@@ -1005,6 +1089,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
1005
1089
|
SwitchCaseWhenDirective,
|
|
1006
1090
|
SwitchCaseDefaultDirective,
|
|
1007
1091
|
FocusContainerComponent,
|
|
1092
|
+
VerticalFocusContainerComponent,
|
|
1008
1093
|
FocusableComponent
|
|
1009
1094
|
],
|
|
1010
1095
|
providers: [
|
|
@@ -4727,5 +4812,5 @@ function VisitParameterList(options) {
|
|
|
4727
4812
|
* Generated bundle index. Do not edit.
|
|
4728
4813
|
*/
|
|
4729
4814
|
|
|
4730
|
-
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb,
|
|
4815
|
+
export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, VerticalFocusContainerComponent, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, LEFT_RIGHT_PLACE_ANIMATION as ɵba, AUP_PLACE_CONFIG as ɵbb, PlaceRouter as ɵbd, InteractionService as ɵbe, ModalInteractionContextFactory as ɵbf, UrlService as ɵbg, PlaceHistory as ɵbh, TabbedPlaceNavigationComponent as ɵbi, AbstractPlaceNavigationComponent as ɵbj, ListPlaceNavComponent as ɵbk, InteractionModule as ɵbl, ActivityContainerComponent as ɵbm, AbstractInteractionContext as ɵbn, ActivityOutletComponent as ɵbo, ConfirmationDialogComponent as ɵbp, ACTIVITY_DATA as ɵbq, Activity as ɵbr, ConfirmThenDialogComponent as ɵbt, AlertDialogComponent as ɵbu, InPlaceInteractionContextComponent as ɵbw, FocusBindingDirective as ɵc, DisposableComponent as ɵd, FocusBindingFactory as ɵe, ComponentsModule as ɵf, NumberInputComponent as ɵg, AbstractInputComponent as ɵh, StringInputComponent as ɵi, PasswordInputComponent as ɵj, SelectInputComponent as ɵk, CheckboxInputComponent as ɵl, ScrollContainerComponent as ɵm, NoopComponent as ɵn, SwitchCaseOption as ɵo, SwitchCaseWhenDirective as ɵp, SwitchCaseDefaultDirective as ɵq, SwitchCaseComponent as ɵr, FocusContainerComponent as ɵs, VerticalFocusContainerComponent as ɵt, FocusableComponent as ɵu, PlaceModule as ɵv, EmptyStateComponent as ɵw, BusyOverlayComponent as ɵx, PlaceOutletComponent as ɵy, leftRightPlaceAnimation as ɵz };
|
|
4731
4816
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|