@coolon/angular-ui-powerups 1.4.1 → 1.4.2
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 +8 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +37 -26
- 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.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/focusable.component.js +1 -0
- package/esm2015/lib/components/focusable.component.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +37 -27
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
- package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/focusable.component.js +1 -0
- package/esm5/lib/components/focusable.component.js.map +1 -1
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +37 -27
- package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +37 -26
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +37 -26
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -409,6 +409,7 @@ var FocusableComponent = /** @class */ (function (_super) {
|
|
|
409
409
|
var _a = Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
410
410
|
if (_this.focusManager) {
|
|
411
411
|
_this._focusContext = _this.focusManager.registerFocusable(_this);
|
|
412
|
+
_this.registerDisposable(_this._focusContext);
|
|
412
413
|
_this.registerDisposable(focusBindingFactory.createBinding(el.nativeElement, _this.focusContext));
|
|
413
414
|
}
|
|
414
415
|
return _this;
|
|
@@ -965,32 +966,20 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
|
965
966
|
_this.focusManager = focusManager;
|
|
966
967
|
return _this;
|
|
967
968
|
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
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
|
-
// }
|
|
969
|
+
VerticalFocusContainerComponent.prototype.arrowLeft = function (event) {
|
|
970
|
+
if (this.leftArrowCommand.enabled.value) {
|
|
971
|
+
event.preventDefault();
|
|
972
|
+
event.stopPropagation();
|
|
973
|
+
this.leftArrowCommand.execute();
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
VerticalFocusContainerComponent.prototype.arrowRight = function (event) {
|
|
977
|
+
if (this.rightArrowCommand.enabled.value) {
|
|
978
|
+
event.preventDefault();
|
|
979
|
+
event.stopPropagation();
|
|
980
|
+
this.rightArrowCommand.execute();
|
|
981
|
+
}
|
|
982
|
+
};
|
|
994
983
|
VerticalFocusContainerComponent.prototype.arrowDown = function (event) {
|
|
995
984
|
event.preventDefault();
|
|
996
985
|
event.stopPropagation();
|
|
@@ -1006,6 +995,28 @@ var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
|
1006
995
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
1007
996
|
{ type: FocusManager, decorators: [{ type: Self }] }
|
|
1008
997
|
]; };
|
|
998
|
+
__decorate([
|
|
999
|
+
Input('command.arrowRight'),
|
|
1000
|
+
TrackExternal(),
|
|
1001
|
+
__metadata("design:type", Command)
|
|
1002
|
+
], VerticalFocusContainerComponent.prototype, "rightArrowCommand", void 0);
|
|
1003
|
+
__decorate([
|
|
1004
|
+
Input('command.arrowLeft'),
|
|
1005
|
+
TrackExternal(),
|
|
1006
|
+
__metadata("design:type", Command)
|
|
1007
|
+
], VerticalFocusContainerComponent.prototype, "leftArrowCommand", void 0);
|
|
1008
|
+
__decorate([
|
|
1009
|
+
HostListener('keyup.arrowLeft', ['$event']),
|
|
1010
|
+
__metadata("design:type", Function),
|
|
1011
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1012
|
+
__metadata("design:returntype", void 0)
|
|
1013
|
+
], VerticalFocusContainerComponent.prototype, "arrowLeft", null);
|
|
1014
|
+
__decorate([
|
|
1015
|
+
HostListener('keyup.arrowRight', ['$event']),
|
|
1016
|
+
__metadata("design:type", Function),
|
|
1017
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1018
|
+
__metadata("design:returntype", void 0)
|
|
1019
|
+
], VerticalFocusContainerComponent.prototype, "arrowRight", null);
|
|
1009
1020
|
__decorate([
|
|
1010
1021
|
HostListener('keyup.arrowDown', ['$event']),
|
|
1011
1022
|
__metadata("design:type", Function),
|