@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
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.4.2](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.4.1...v1.4.2) (2020-05-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* missing dispose of focusContext ([6edfc2f](https://bitbucket.org/coolon/angular-ui-powerups/commit/6edfc2faad04095cb25948d545ccce552f0bf0d0))
|
|
11
|
+
* reinstated arrowLeft/Right commands ([869be40](https://bitbucket.org/coolon/angular-ui-powerups/commit/869be40b8e97eb995448404a779d87efcabafc1d))
|
|
12
|
+
|
|
5
13
|
### [1.4.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.4.0...v1.4.1) (2020-05-21)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -587,6 +587,7 @@
|
|
|
587
587
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
588
588
|
if (_this.focusManager) {
|
|
589
589
|
_this._focusContext = _this.focusManager.registerFocusable(_this);
|
|
590
|
+
_this.registerDisposable(_this._focusContext);
|
|
590
591
|
_this.registerDisposable(focusBindingFactory.createBinding(el.nativeElement, _this.focusContext));
|
|
591
592
|
}
|
|
592
593
|
return _this;
|
|
@@ -1143,32 +1144,20 @@
|
|
|
1143
1144
|
_this.focusManager = focusManager;
|
|
1144
1145
|
return _this;
|
|
1145
1146
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
// this.leftArrowCommand.execute();
|
|
1161
|
-
// }
|
|
1162
|
-
// }
|
|
1163
|
-
//
|
|
1164
|
-
// @HostListener('keyup.arrowRight', ['$event'])
|
|
1165
|
-
// arrowRight(event: KeyboardEvent) {
|
|
1166
|
-
// if (this.rightArrowCommand.enabled.value) {
|
|
1167
|
-
// event.preventDefault();
|
|
1168
|
-
// event.stopPropagation();
|
|
1169
|
-
// this.rightArrowCommand.execute();
|
|
1170
|
-
// }
|
|
1171
|
-
// }
|
|
1147
|
+
VerticalFocusContainerComponent.prototype.arrowLeft = function (event) {
|
|
1148
|
+
if (this.leftArrowCommand.enabled.value) {
|
|
1149
|
+
event.preventDefault();
|
|
1150
|
+
event.stopPropagation();
|
|
1151
|
+
this.leftArrowCommand.execute();
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
VerticalFocusContainerComponent.prototype.arrowRight = function (event) {
|
|
1155
|
+
if (this.rightArrowCommand.enabled.value) {
|
|
1156
|
+
event.preventDefault();
|
|
1157
|
+
event.stopPropagation();
|
|
1158
|
+
this.rightArrowCommand.execute();
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1172
1161
|
VerticalFocusContainerComponent.prototype.arrowDown = function (event) {
|
|
1173
1162
|
event.preventDefault();
|
|
1174
1163
|
event.stopPropagation();
|
|
@@ -1184,6 +1173,28 @@
|
|
|
1184
1173
|
VerticalFocusContainerComponent.ctorParameters = function () { return [
|
|
1185
1174
|
{ type: pectin.FocusManager, decorators: [{ type: core.Self }] }
|
|
1186
1175
|
]; };
|
|
1176
|
+
__decorate([
|
|
1177
|
+
core.Input('command.arrowRight'),
|
|
1178
|
+
pectin.TrackExternal(),
|
|
1179
|
+
__metadata("design:type", pectin.Command)
|
|
1180
|
+
], VerticalFocusContainerComponent.prototype, "rightArrowCommand", void 0);
|
|
1181
|
+
__decorate([
|
|
1182
|
+
core.Input('command.arrowLeft'),
|
|
1183
|
+
pectin.TrackExternal(),
|
|
1184
|
+
__metadata("design:type", pectin.Command)
|
|
1185
|
+
], VerticalFocusContainerComponent.prototype, "leftArrowCommand", void 0);
|
|
1186
|
+
__decorate([
|
|
1187
|
+
core.HostListener('keyup.arrowLeft', ['$event']),
|
|
1188
|
+
__metadata("design:type", Function),
|
|
1189
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1190
|
+
__metadata("design:returntype", void 0)
|
|
1191
|
+
], VerticalFocusContainerComponent.prototype, "arrowLeft", null);
|
|
1192
|
+
__decorate([
|
|
1193
|
+
core.HostListener('keyup.arrowRight', ['$event']),
|
|
1194
|
+
__metadata("design:type", Function),
|
|
1195
|
+
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
1196
|
+
__metadata("design:returntype", void 0)
|
|
1197
|
+
], VerticalFocusContainerComponent.prototype, "arrowRight", null);
|
|
1187
1198
|
__decorate([
|
|
1188
1199
|
core.HostListener('keyup.arrowDown', ['$event']),
|
|
1189
1200
|
__metadata("design:type", Function),
|