@coolon/angular-ui-powerups 1.3.3 → 1.3.4
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 +31 -30
- 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 +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +1 -1
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +2 -2
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/focusable.component.js +4 -4
- package/esm2015/lib/components/focusable.component.js.map +1 -1
- package/esm2015/lib/components/focusable.component.metadata.json +1 -1
- package/esm2015/lib/directives/focus-binding-factory.js +30 -0
- package/esm2015/lib/directives/focus-binding-factory.js.map +1 -0
- package/esm2015/lib/directives/focus-binding-factory.metadata.json +1 -0
- package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
- package/esm2015/lib/directives/focus-binding.js +1 -25
- package/esm2015/lib/directives/focus-binding.js.map +1 -1
- package/esm2015/lib/directives/index.js +1 -0
- package/esm2015/lib/directives/index.js.map +1 -1
- package/esm2015/lib/directives/index.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +1 -1
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/components/components.module.js +2 -2
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/focusable.component.js +4 -4
- package/esm5/lib/components/focusable.component.js.map +1 -1
- package/esm5/lib/directives/focus-binding-factory.js +31 -0
- package/esm5/lib/directives/focus-binding-factory.js.map +1 -0
- package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
- package/esm5/lib/directives/focus-binding.js +1 -26
- package/esm5/lib/directives/focus-binding.js.map +1 -1
- package/esm5/lib/directives/index.js +1 -0
- package/esm5/lib/directives/index.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +28 -29
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +29 -30
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/focusable.component.d.ts +2 -2
- package/lib/directives/focus-binding-factory.d.ts +9 -0
- package/lib/directives/focus-binding.d.ts +1 -9
- package/lib/directives/index.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.3.4](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.3...v1.3.4) (2020-05-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* moved FocusBinding.Factory to top level class ([ba909be](https://bitbucket.org/coolon/angular-ui-powerups/commit/ba909be75a38ac0a430c9ea788faae8fd2629fbc))
|
|
11
|
+
|
|
5
12
|
### [1.3.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.2...v1.3.3) (2020-05-20)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
return DirectivesModule;
|
|
486
486
|
}());
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
var FocusBinding = /** @class */ (function (_super) {
|
|
489
489
|
__extends(FocusBinding, _super);
|
|
490
490
|
function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
|
|
491
491
|
var _this = _super.call(this) || this;
|
|
@@ -566,31 +566,30 @@
|
|
|
566
566
|
], FocusBinding);
|
|
567
567
|
return FocusBinding;
|
|
568
568
|
}(pectin.GarbageCollector));
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
})(exports.ɵt || (exports.ɵt = {}));
|
|
569
|
+
|
|
570
|
+
var FocusBindingFactory = /** @class */ (function () {
|
|
571
|
+
function FocusBindingFactory(ngZone, document) {
|
|
572
|
+
this.ngZone = ngZone;
|
|
573
|
+
// @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
|
|
574
|
+
this.document = document;
|
|
575
|
+
}
|
|
576
|
+
FocusBindingFactory.prototype.createBinding = function (el, focusContext) {
|
|
577
|
+
return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
|
|
578
|
+
};
|
|
579
|
+
FocusBindingFactory.ctorParameters = function () { return [
|
|
580
|
+
{ type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
|
|
581
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
|
|
582
|
+
]; };
|
|
583
|
+
FocusBindingFactory.ɵprov = core.ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(core.ɵɵinject(core.NgZone), core.ɵɵinject(common.DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
|
|
584
|
+
FocusBindingFactory = __decorate([
|
|
585
|
+
core.Injectable({
|
|
586
|
+
providedIn: 'root'
|
|
587
|
+
}),
|
|
588
|
+
__param(0, core.Inject(core.NgZone)), __param(1, core.Inject(common.DOCUMENT)),
|
|
589
|
+
__metadata("design:paramtypes", [core.NgZone, Object])
|
|
590
|
+
], FocusBindingFactory);
|
|
591
|
+
return FocusBindingFactory;
|
|
592
|
+
}());
|
|
594
593
|
|
|
595
594
|
var FocusContainerComponent = /** @class */ (function () {
|
|
596
595
|
function FocusContainerComponent(focusManager) {
|
|
@@ -668,7 +667,7 @@
|
|
|
668
667
|
FocusableComponent.ctorParameters = function () { return [
|
|
669
668
|
{ type: core.ElementRef },
|
|
670
669
|
{ type: pectin.FocusManager },
|
|
671
|
-
{ type:
|
|
670
|
+
{ type: FocusBindingFactory }
|
|
672
671
|
]; };
|
|
673
672
|
__decorate([
|
|
674
673
|
core.HostBinding('attr.tabindex'),
|
|
@@ -689,7 +688,7 @@
|
|
|
689
688
|
], FocusableComponent.prototype, "onBlur", null);
|
|
690
689
|
FocusableComponent = __decorate([
|
|
691
690
|
core.Component({ template: '' }),
|
|
692
|
-
__metadata("design:paramtypes", [core.ElementRef, pectin.FocusManager,
|
|
691
|
+
__metadata("design:paramtypes", [core.ElementRef, pectin.FocusManager, FocusBindingFactory])
|
|
693
692
|
], FocusableComponent);
|
|
694
693
|
return FocusableComponent;
|
|
695
694
|
}(DisposableComponent));
|
|
@@ -1236,7 +1235,7 @@
|
|
|
1236
1235
|
FocusableComponent
|
|
1237
1236
|
],
|
|
1238
1237
|
providers: [
|
|
1239
|
-
|
|
1238
|
+
FocusBindingFactory
|
|
1240
1239
|
]
|
|
1241
1240
|
})
|
|
1242
1241
|
], ComponentsModule);
|
|
@@ -4980,8 +4979,9 @@
|
|
|
4980
4979
|
exports.DisposableComponent = DisposableComponent;
|
|
4981
4980
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
4982
4981
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
4983
|
-
exports.FocusBinding =
|
|
4982
|
+
exports.FocusBinding = FocusBinding;
|
|
4984
4983
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
4984
|
+
exports.FocusBindingFactory = FocusBindingFactory;
|
|
4985
4985
|
exports.FocusContainerComponent = FocusContainerComponent;
|
|
4986
4986
|
exports.FocusableComponent = FocusableComponent;
|
|
4987
4987
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
@@ -5069,6 +5069,7 @@
|
|
|
5069
5069
|
exports.ɵq = SwitchCaseComponent;
|
|
5070
5070
|
exports.ɵr = FocusContainerComponent;
|
|
5071
5071
|
exports.ɵs = FocusableComponent;
|
|
5072
|
+
exports.ɵt = FocusBindingFactory;
|
|
5072
5073
|
exports.ɵu = PlaceModule;
|
|
5073
5074
|
exports.ɵv = EmptyStateComponent;
|
|
5074
5075
|
exports.ɵw = BusyOverlayComponent;
|