@coolon/angular-ui-powerups 1.3.3 → 1.3.5
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 +39 -35
- 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/focus-container/focus-container.component.js +4 -2
- 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/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/focus-container/focus-container.component.js +10 -6
- package/esm5/lib/components/focus-container/focus-container.component.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 +31 -31
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +37 -35
- 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/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,20 @@
|
|
|
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.5](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.4...v1.3.5) (2020-05-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* updated FocusContainerComponent to extend DisposableComponent ([3a41a0c](https://bitbucket.org/coolon/angular-ui-powerups/commit/3a41a0cdd76b117417b977eeb3d6f418f0901c95))
|
|
11
|
+
|
|
12
|
+
### [1.3.4](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.3...v1.3.4) (2020-05-20)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* moved FocusBinding.Factory to top level class ([ba909be](https://bitbucket.org/coolon/angular-ui-powerups/commit/ba909be75a38ac0a430c9ea788faae8fd2629fbc))
|
|
18
|
+
|
|
5
19
|
### [1.3.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.2...v1.3.3) (2020-05-20)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -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,36 +566,38 @@
|
|
|
566
566
|
], FocusBinding);
|
|
567
567
|
return FocusBinding;
|
|
568
568
|
}(pectin.GarbageCollector));
|
|
569
|
-
(function (FocusBinding) {
|
|
570
|
-
var Factory = /** @class */ (function () {
|
|
571
|
-
function Factory(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
|
-
Factory.prototype.createBinding = function (el, focusContext) {
|
|
577
|
-
return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
|
|
578
|
-
};
|
|
579
|
-
Factory.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
|
-
Factory = __decorate([
|
|
584
|
-
core.Injectable({
|
|
585
|
-
providedIn: 'root'
|
|
586
|
-
}),
|
|
587
|
-
__param(0, core.Inject(core.NgZone)), __param(1, core.Inject(common.DOCUMENT)),
|
|
588
|
-
__metadata("design:paramtypes", [core.NgZone, Object])
|
|
589
|
-
], Factory);
|
|
590
|
-
return Factory;
|
|
591
|
-
}());
|
|
592
|
-
FocusBinding.Factory = Factory;
|
|
593
|
-
})(exports.ɵt || (exports.ɵt = {}));
|
|
594
569
|
|
|
595
|
-
var
|
|
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
|
+
}());
|
|
593
|
+
|
|
594
|
+
var FocusContainerComponent = /** @class */ (function (_super) {
|
|
595
|
+
__extends(FocusContainerComponent, _super);
|
|
596
596
|
function FocusContainerComponent(focusManager) {
|
|
597
|
-
|
|
598
|
-
|
|
597
|
+
var _this = _super.call(this) || this;
|
|
598
|
+
_this.focusManager = focusManager;
|
|
599
|
+
_this.tabIndex = -1;
|
|
600
|
+
return _this;
|
|
599
601
|
}
|
|
600
602
|
FocusContainerComponent.prototype.ngOnInit = function () {
|
|
601
603
|
};
|
|
@@ -606,7 +608,7 @@
|
|
|
606
608
|
{ type: pectin.FocusManager, decorators: [{ type: core.Host }] }
|
|
607
609
|
]; };
|
|
608
610
|
__decorate([
|
|
609
|
-
core.HostBinding(
|
|
611
|
+
core.HostBinding('attr.tabindex'),
|
|
610
612
|
__metadata("design:type", Object)
|
|
611
613
|
], FocusContainerComponent.prototype, "tabIndex", void 0);
|
|
612
614
|
__decorate([
|
|
@@ -628,7 +630,7 @@
|
|
|
628
630
|
__metadata("design:paramtypes", [pectin.FocusManager])
|
|
629
631
|
], FocusContainerComponent);
|
|
630
632
|
return FocusContainerComponent;
|
|
631
|
-
}());
|
|
633
|
+
}(DisposableComponent));
|
|
632
634
|
|
|
633
635
|
var FocusableComponent = /** @class */ (function (_super) {
|
|
634
636
|
__extends(FocusableComponent, _super);
|
|
@@ -668,7 +670,7 @@
|
|
|
668
670
|
FocusableComponent.ctorParameters = function () { return [
|
|
669
671
|
{ type: core.ElementRef },
|
|
670
672
|
{ type: pectin.FocusManager },
|
|
671
|
-
{ type:
|
|
673
|
+
{ type: FocusBindingFactory }
|
|
672
674
|
]; };
|
|
673
675
|
__decorate([
|
|
674
676
|
core.HostBinding('attr.tabindex'),
|
|
@@ -689,7 +691,7 @@
|
|
|
689
691
|
], FocusableComponent.prototype, "onBlur", null);
|
|
690
692
|
FocusableComponent = __decorate([
|
|
691
693
|
core.Component({ template: '' }),
|
|
692
|
-
__metadata("design:paramtypes", [core.ElementRef, pectin.FocusManager,
|
|
694
|
+
__metadata("design:paramtypes", [core.ElementRef, pectin.FocusManager, FocusBindingFactory])
|
|
693
695
|
], FocusableComponent);
|
|
694
696
|
return FocusableComponent;
|
|
695
697
|
}(DisposableComponent));
|
|
@@ -1236,7 +1238,7 @@
|
|
|
1236
1238
|
FocusableComponent
|
|
1237
1239
|
],
|
|
1238
1240
|
providers: [
|
|
1239
|
-
|
|
1241
|
+
FocusBindingFactory
|
|
1240
1242
|
]
|
|
1241
1243
|
})
|
|
1242
1244
|
], ComponentsModule);
|
|
@@ -4980,8 +4982,9 @@
|
|
|
4980
4982
|
exports.DisposableComponent = DisposableComponent;
|
|
4981
4983
|
exports.EmptyStateComponent = EmptyStateComponent;
|
|
4982
4984
|
exports.EventCleanUpSession = EventCleanUpSession;
|
|
4983
|
-
exports.FocusBinding =
|
|
4985
|
+
exports.FocusBinding = FocusBinding;
|
|
4984
4986
|
exports.FocusBindingDirective = FocusBindingDirective;
|
|
4987
|
+
exports.FocusBindingFactory = FocusBindingFactory;
|
|
4985
4988
|
exports.FocusContainerComponent = FocusContainerComponent;
|
|
4986
4989
|
exports.FocusableComponent = FocusableComponent;
|
|
4987
4990
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
@@ -5069,6 +5072,7 @@
|
|
|
5069
5072
|
exports.ɵq = SwitchCaseComponent;
|
|
5070
5073
|
exports.ɵr = FocusContainerComponent;
|
|
5071
5074
|
exports.ɵs = FocusableComponent;
|
|
5075
|
+
exports.ɵt = FocusBindingFactory;
|
|
5072
5076
|
exports.ɵu = PlaceModule;
|
|
5073
5077
|
exports.ɵv = EmptyStateComponent;
|
|
5074
5078
|
exports.ɵw = BusyOverlayComponent;
|