@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.
Files changed (23) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +37 -26
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
  8. package/esm2015/lib/components/focusable.component.js +1 -0
  9. package/esm2015/lib/components/focusable.component.js.map +1 -1
  10. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js +37 -27
  11. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
  12. package/esm2015/lib/components/vertical-focus-container/vertical-focus-container.component.metadata.json +1 -1
  13. package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
  14. package/esm5/lib/components/focusable.component.js +1 -0
  15. package/esm5/lib/components/focusable.component.js.map +1 -1
  16. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js +37 -27
  17. package/esm5/lib/components/vertical-focus-container/vertical-focus-container.component.js.map +1 -1
  18. package/fesm2015/coolon-angular-ui-powerups.js +37 -26
  19. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  20. package/fesm5/coolon-angular-ui-powerups.js +37 -26
  21. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  22. package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +5 -1
  23. 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
- // 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
- // }
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),