@coolon/angular-ui-powerups 1.3.2 → 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +71 -67
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +1 -1
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +1 -1
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/components/components.module.js +4 -0
  12. package/esm2015/lib/components/components.module.js.map +1 -1
  13. package/esm2015/lib/components/components.module.metadata.json +1 -1
  14. package/esm2015/lib/components/focusable.component.js +4 -4
  15. package/esm2015/lib/components/focusable.component.js.map +1 -1
  16. package/esm2015/lib/components/focusable.component.metadata.json +1 -1
  17. package/esm2015/lib/directives/focus-binding-factory.js +30 -0
  18. package/esm2015/lib/directives/focus-binding-factory.js.map +1 -0
  19. package/esm2015/lib/directives/focus-binding-factory.metadata.json +1 -0
  20. package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  21. package/esm2015/lib/directives/focus-binding.js +1 -25
  22. package/esm2015/lib/directives/focus-binding.js.map +1 -1
  23. package/esm2015/lib/directives/index.js +1 -0
  24. package/esm2015/lib/directives/index.js.map +1 -1
  25. package/esm2015/lib/directives/index.metadata.json +1 -1
  26. package/esm5/coolon-angular-ui-powerups.js +1 -1
  27. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  28. package/esm5/lib/components/components.module.js +4 -0
  29. package/esm5/lib/components/components.module.js.map +1 -1
  30. package/esm5/lib/components/focusable.component.js +4 -4
  31. package/esm5/lib/components/focusable.component.js.map +1 -1
  32. package/esm5/lib/directives/focus-binding-factory.js +31 -0
  33. package/esm5/lib/directives/focus-binding-factory.js.map +1 -0
  34. package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  35. package/esm5/lib/directives/focus-binding.js +1 -26
  36. package/esm5/lib/directives/focus-binding.js.map +1 -1
  37. package/esm5/lib/directives/index.js +1 -0
  38. package/esm5/lib/directives/index.js.map +1 -1
  39. package/fesm2015/coolon-angular-ui-powerups.js +67 -65
  40. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  41. package/fesm5/coolon-angular-ui-powerups.js +69 -67
  42. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  43. package/lib/components/focusable.component.d.ts +2 -2
  44. package/lib/directives/focus-binding-factory.d.ts +9 -0
  45. package/lib/directives/focus-binding.d.ts +1 -9
  46. package/lib/directives/index.d.ts +1 -0
  47. 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.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
+
12
+ ### [1.3.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.2...v1.3.3) (2020-05-20)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * added FocusBinding.Factory to the declared exports ([46fd087](https://bitbucket.org/coolon/angular-ui-powerups/commit/46fd08745a06c021034c1199a3ebe5a9fdeddc80))
18
+
5
19
  ### [1.3.2](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.1...v1.3.2) (2020-05-20)
6
20
 
7
21
  ### [1.3.1](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.3.0...v1.3.1) (2020-05-20)
@@ -485,45 +485,7 @@
485
485
  return DirectivesModule;
486
486
  }());
487
487
 
488
- var FocusContainerComponent = /** @class */ (function () {
489
- function FocusContainerComponent(focusManager) {
490
- this.focusManager = focusManager;
491
- this.tabIndex = -1;
492
- }
493
- FocusContainerComponent.prototype.ngOnInit = function () {
494
- };
495
- FocusContainerComponent.prototype.restoreFocus = function () {
496
- this.focusManager.restoreFocus();
497
- };
498
- FocusContainerComponent.ctorParameters = function () { return [
499
- { type: pectin.FocusManager, decorators: [{ type: core.Host }] }
500
- ]; };
501
- __decorate([
502
- core.HostBinding("attr.tabindex"),
503
- __metadata("design:type", Object)
504
- ], FocusContainerComponent.prototype, "tabIndex", void 0);
505
- __decorate([
506
- pectin.Trace(),
507
- __metadata("design:type", Function),
508
- __metadata("design:paramtypes", []),
509
- __metadata("design:returntype", void 0)
510
- ], FocusContainerComponent.prototype, "restoreFocus", null);
511
- FocusContainerComponent = __decorate([
512
- core.Component({
513
- selector: 'aup-focus-container',
514
- template: "<ng-content></ng-content>\n",
515
- providers: [
516
- { provide: pectin.FocusManager }
517
- ],
518
- styles: [":host{display:block}"]
519
- }),
520
- __param(0, core.Host()),
521
- __metadata("design:paramtypes", [pectin.FocusManager])
522
- ], FocusContainerComponent);
523
- return FocusContainerComponent;
524
- }());
525
-
526
- exports.ɵt = /** @class */ (function (_super) {
488
+ var FocusBinding = /** @class */ (function (_super) {
527
489
  __extends(FocusBinding, _super);
528
490
  function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
529
491
  var _this = _super.call(this) || this;
@@ -604,31 +566,68 @@
604
566
  ], FocusBinding);
605
567
  return FocusBinding;
606
568
  }(pectin.GarbageCollector));
607
- (function (FocusBinding) {
608
- var Factory = /** @class */ (function () {
609
- function Factory(ngZone, document) {
610
- this.ngZone = ngZone;
611
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
612
- this.document = document;
613
- }
614
- Factory.prototype.createBinding = function (el, focusContext) {
615
- return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
616
- };
617
- Factory.ctorParameters = function () { return [
618
- { type: core.NgZone, decorators: [{ type: core.Inject, args: [core.NgZone,] }] },
619
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }
620
- ]; };
621
- Factory = __decorate([
622
- core.Injectable({
623
- providedIn: 'root'
624
- }),
625
- __param(0, core.Inject(core.NgZone)), __param(1, core.Inject(common.DOCUMENT)),
626
- __metadata("design:paramtypes", [core.NgZone, Object])
627
- ], Factory);
628
- return Factory;
629
- }());
630
- FocusBinding.Factory = Factory;
631
- })(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
+ }());
593
+
594
+ var FocusContainerComponent = /** @class */ (function () {
595
+ function FocusContainerComponent(focusManager) {
596
+ this.focusManager = focusManager;
597
+ this.tabIndex = -1;
598
+ }
599
+ FocusContainerComponent.prototype.ngOnInit = function () {
600
+ };
601
+ FocusContainerComponent.prototype.restoreFocus = function () {
602
+ this.focusManager.restoreFocus();
603
+ };
604
+ FocusContainerComponent.ctorParameters = function () { return [
605
+ { type: pectin.FocusManager, decorators: [{ type: core.Host }] }
606
+ ]; };
607
+ __decorate([
608
+ core.HostBinding("attr.tabindex"),
609
+ __metadata("design:type", Object)
610
+ ], FocusContainerComponent.prototype, "tabIndex", void 0);
611
+ __decorate([
612
+ pectin.Trace(),
613
+ __metadata("design:type", Function),
614
+ __metadata("design:paramtypes", []),
615
+ __metadata("design:returntype", void 0)
616
+ ], FocusContainerComponent.prototype, "restoreFocus", null);
617
+ FocusContainerComponent = __decorate([
618
+ core.Component({
619
+ selector: 'aup-focus-container',
620
+ template: "<ng-content></ng-content>\n",
621
+ providers: [
622
+ { provide: pectin.FocusManager }
623
+ ],
624
+ styles: [":host{display:block}"]
625
+ }),
626
+ __param(0, core.Host()),
627
+ __metadata("design:paramtypes", [pectin.FocusManager])
628
+ ], FocusContainerComponent);
629
+ return FocusContainerComponent;
630
+ }());
632
631
 
633
632
  var FocusableComponent = /** @class */ (function (_super) {
634
633
  __extends(FocusableComponent, _super);
@@ -668,7 +667,7 @@
668
667
  FocusableComponent.ctorParameters = function () { return [
669
668
  { type: core.ElementRef },
670
669
  { type: pectin.FocusManager },
671
- { type: exports.ɵt.Factory }
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, exports.ɵt.Factory])
691
+ __metadata("design:paramtypes", [core.ElementRef, pectin.FocusManager, FocusBindingFactory])
693
692
  ], FocusableComponent);
694
693
  return FocusableComponent;
695
694
  }(DisposableComponent));
@@ -1234,6 +1233,9 @@
1234
1233
  SwitchCaseDefaultDirective,
1235
1234
  FocusContainerComponent,
1236
1235
  FocusableComponent
1236
+ ],
1237
+ providers: [
1238
+ FocusBindingFactory
1237
1239
  ]
1238
1240
  })
1239
1241
  ], ComponentsModule);
@@ -4977,8 +4979,9 @@
4977
4979
  exports.DisposableComponent = DisposableComponent;
4978
4980
  exports.EmptyStateComponent = EmptyStateComponent;
4979
4981
  exports.EventCleanUpSession = EventCleanUpSession;
4980
- exports.FocusBinding = exports.ɵt;
4982
+ exports.FocusBinding = FocusBinding;
4981
4983
  exports.FocusBindingDirective = FocusBindingDirective;
4984
+ exports.FocusBindingFactory = FocusBindingFactory;
4982
4985
  exports.FocusContainerComponent = FocusContainerComponent;
4983
4986
  exports.FocusableComponent = FocusableComponent;
4984
4987
  exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
@@ -5066,6 +5069,7 @@
5066
5069
  exports.ɵq = SwitchCaseComponent;
5067
5070
  exports.ɵr = FocusContainerComponent;
5068
5071
  exports.ɵs = FocusableComponent;
5072
+ exports.ɵt = FocusBindingFactory;
5069
5073
  exports.ɵu = PlaceModule;
5070
5074
  exports.ɵv = EmptyStateComponent;
5071
5075
  exports.ɵw = BusyOverlayComponent;