@coolon/angular-ui-powerups 1.3.7 → 1.4.1
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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +123 -46
- 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 +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 +77 -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 +80 -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 +83 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +86 -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 +10 -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,81 @@ 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
|
+
// The key listeners seem to be preventing manual binding
|
|
969
|
+
// @Input('command.arrowRight')
|
|
970
|
+
// @TrackExternal()
|
|
971
|
+
// rightArrowCommand: Command<void>;
|
|
972
|
+
//
|
|
973
|
+
// @Input('command.arrowLeft')
|
|
974
|
+
// @TrackExternal()
|
|
975
|
+
// leftArrowCommand: Command<void>;
|
|
976
|
+
//
|
|
977
|
+
// @HostListener('keyup.arrowLeft', ['$event'])
|
|
978
|
+
// arrowLeft(event: KeyboardEvent) {
|
|
979
|
+
// if (this.leftArrowCommand.enabled.value) {
|
|
980
|
+
// event.preventDefault();
|
|
981
|
+
// event.stopPropagation();
|
|
982
|
+
// this.leftArrowCommand.execute();
|
|
983
|
+
// }
|
|
984
|
+
// }
|
|
985
|
+
//
|
|
986
|
+
// @HostListener('keyup.arrowRight', ['$event'])
|
|
987
|
+
// arrowRight(event: KeyboardEvent) {
|
|
988
|
+
// if (this.rightArrowCommand.enabled.value) {
|
|
989
|
+
// event.preventDefault();
|
|
990
|
+
// event.stopPropagation();
|
|
991
|
+
// this.rightArrowCommand.execute();
|
|
992
|
+
// }
|
|
993
|
+
// }
|
|
994
|
+
VerticalFocusContainerComponent.prototype.arrowDown = function (event) {
|
|
995
|
+
event.preventDefault();
|
|
996
|
+
event.stopPropagation();
|
|
997
|
+
this.focusManager.focusNext();
|
|
998
|
+
};
|
|
999
|
+
VerticalFocusContainerComponent.prototype.arrowUp = function (event) {
|
|
1000
|
+
event.preventDefault();
|
|
1001
|
+
event.stopPropagation();
|
|
1002
|
+
this.focusManager.focusPrevious();
|
|
1003
|
+
};
|
|
1004
|
+
VerticalFocusContainerComponent.prototype.ngOnInit = function () {
|
|
1005
|
+
};
|
|
1006
|
+
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
1007
|
+
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
1008
|
+
]; };
|
|
1009
|
+
__decorate([
|
|
1010
|
+
HostListener('keyup.arrowDown', ['$event']),
|
|
1011
|
+
__metadata("design:type", Function),
|
|
1012
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1013
|
+
__metadata("design:returntype", void 0)
|
|
1014
|
+
], VerticalFocusContainerComponent.prototype, "arrowDown", null);
|
|
1015
|
+
__decorate([
|
|
1016
|
+
HostListener('keyup.arrowUp', ['$event']),
|
|
1017
|
+
__metadata("design:type", Function),
|
|
1018
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1019
|
+
__metadata("design:returntype", void 0)
|
|
1020
|
+
], VerticalFocusContainerComponent.prototype, "arrowUp", null);
|
|
1021
|
+
VerticalFocusContainerComponent = __decorate([
|
|
1022
|
+
Component({
|
|
1023
|
+
selector: 'aup-vertical-focus-container',
|
|
1024
|
+
template: "<ng-content></ng-content>\n",
|
|
1025
|
+
providers: [
|
|
1026
|
+
{ provide: FocusManager }
|
|
1027
|
+
],
|
|
1028
|
+
styles: [":host{display:block}"]
|
|
1029
|
+
}),
|
|
1030
|
+
__param(0, Self()),
|
|
1031
|
+
__metadata("design:paramtypes", [FocusManager])
|
|
1032
|
+
], VerticalFocusContainerComponent);
|
|
1033
|
+
return VerticalFocusContainerComponent;
|
|
1034
|
+
}(FocusContainerComponent));
|
|
1035
|
+
|
|
963
1036
|
var ComponentsModule = /** @class */ (function () {
|
|
964
1037
|
function ComponentsModule() {
|
|
965
1038
|
}
|
|
@@ -978,6 +1051,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
978
1051
|
SwitchCaseWhenDirective,
|
|
979
1052
|
SwitchCaseDefaultDirective,
|
|
980
1053
|
FocusContainerComponent,
|
|
1054
|
+
VerticalFocusContainerComponent,
|
|
981
1055
|
FocusableComponent
|
|
982
1056
|
],
|
|
983
1057
|
imports: [
|
|
@@ -1005,6 +1079,7 @@ var ComponentsModule = /** @class */ (function () {
|
|
|
1005
1079
|
SwitchCaseWhenDirective,
|
|
1006
1080
|
SwitchCaseDefaultDirective,
|
|
1007
1081
|
FocusContainerComponent,
|
|
1082
|
+
VerticalFocusContainerComponent,
|
|
1008
1083
|
FocusableComponent
|
|
1009
1084
|
],
|
|
1010
1085
|
providers: [
|
|
@@ -4727,5 +4802,5 @@ function VisitParameterList(options) {
|
|
|
4727
4802
|
* Generated bundle index. Do not edit.
|
|
4728
4803
|
*/
|
|
4729
4804
|
|
|
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,
|
|
4805
|
+
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
4806
|
//# sourceMappingURL=coolon-angular-ui-powerups.js.map
|