@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +39 -35
  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 +2 -2
  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/focus-container/focus-container.component.js +4 -2
  15. package/esm2015/lib/components/focus-container/focus-container.component.js.map +1 -1
  16. package/esm2015/lib/components/focus-container/focus-container.component.metadata.json +1 -1
  17. package/esm2015/lib/components/focusable.component.js +4 -4
  18. package/esm2015/lib/components/focusable.component.js.map +1 -1
  19. package/esm2015/lib/components/focusable.component.metadata.json +1 -1
  20. package/esm2015/lib/directives/focus-binding-factory.js +30 -0
  21. package/esm2015/lib/directives/focus-binding-factory.js.map +1 -0
  22. package/esm2015/lib/directives/focus-binding-factory.metadata.json +1 -0
  23. package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  24. package/esm2015/lib/directives/focus-binding.js +1 -25
  25. package/esm2015/lib/directives/focus-binding.js.map +1 -1
  26. package/esm2015/lib/directives/index.js +1 -0
  27. package/esm2015/lib/directives/index.js.map +1 -1
  28. package/esm2015/lib/directives/index.metadata.json +1 -1
  29. package/esm5/coolon-angular-ui-powerups.js +1 -1
  30. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  31. package/esm5/lib/components/components.module.js +2 -2
  32. package/esm5/lib/components/components.module.js.map +1 -1
  33. package/esm5/lib/components/focus-container/focus-container.component.js +10 -6
  34. package/esm5/lib/components/focus-container/focus-container.component.js.map +1 -1
  35. package/esm5/lib/components/focusable.component.js +4 -4
  36. package/esm5/lib/components/focusable.component.js.map +1 -1
  37. package/esm5/lib/directives/focus-binding-factory.js +31 -0
  38. package/esm5/lib/directives/focus-binding-factory.js.map +1 -0
  39. package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  40. package/esm5/lib/directives/focus-binding.js +1 -26
  41. package/esm5/lib/directives/focus-binding.js.map +1 -1
  42. package/esm5/lib/directives/index.js +1 -0
  43. package/esm5/lib/directives/index.js.map +1 -1
  44. package/fesm2015/coolon-angular-ui-powerups.js +31 -31
  45. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  46. package/fesm5/coolon-angular-ui-powerups.js +37 -35
  47. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  48. package/lib/components/focus-container/focus-container.component.d.ts +2 -1
  49. package/lib/components/focusable.component.d.ts +2 -2
  50. package/lib/directives/focus-binding-factory.d.ts +9 -0
  51. package/lib/directives/focus-binding.d.ts +1 -9
  52. package/lib/directives/index.d.ts +1 -0
  53. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { __extends, __decorate, __metadata, __param, __awaiter, __generator, __spread, __assign } from 'tslib';
2
2
  import { DOCUMENT, CommonModule, Location } from '@angular/common';
3
- import { ElementRef, Inject, Input, HostListener, Directive, NgZone, NgModule, Injectable, Host, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, ɵɵdefineInjectable, ɵɵinject, Optional, SkipSelf } from '@angular/core';
3
+ import { ElementRef, Inject, Input, HostListener, Directive, NgZone, NgModule, ɵɵdefineInjectable, ɵɵinject, Injectable, Host, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, Optional, SkipSelf } from '@angular/core';
4
4
  import { FormsModule } from '@angular/forms';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { MatInputModule } from '@angular/material/input';
@@ -388,36 +388,38 @@ var FocusBinding = /** @class */ (function (_super) {
388
388
  ], FocusBinding);
389
389
  return FocusBinding;
390
390
  }(GarbageCollector));
391
- (function (FocusBinding) {
392
- var Factory = /** @class */ (function () {
393
- function Factory(ngZone, document) {
394
- this.ngZone = ngZone;
395
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
396
- this.document = document;
397
- }
398
- Factory.prototype.createBinding = function (el, focusContext) {
399
- return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
400
- };
401
- Factory.ctorParameters = function () { return [
402
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
403
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
404
- ]; };
405
- Factory = __decorate([
406
- Injectable({
407
- providedIn: 'root'
408
- }),
409
- __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
410
- __metadata("design:paramtypes", [NgZone, Object])
411
- ], Factory);
412
- return Factory;
413
- }());
414
- FocusBinding.Factory = Factory;
415
- })(FocusBinding || (FocusBinding = {}));
416
391
 
417
- var FocusContainerComponent = /** @class */ (function () {
392
+ var FocusBindingFactory = /** @class */ (function () {
393
+ function FocusBindingFactory(ngZone, document) {
394
+ this.ngZone = ngZone;
395
+ // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
396
+ this.document = document;
397
+ }
398
+ FocusBindingFactory.prototype.createBinding = function (el, focusContext) {
399
+ return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
400
+ };
401
+ FocusBindingFactory.ctorParameters = function () { return [
402
+ { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
403
+ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
404
+ ]; };
405
+ FocusBindingFactory.ɵprov = ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(ɵɵinject(NgZone), ɵɵinject(DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
406
+ FocusBindingFactory = __decorate([
407
+ Injectable({
408
+ providedIn: 'root'
409
+ }),
410
+ __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
411
+ __metadata("design:paramtypes", [NgZone, Object])
412
+ ], FocusBindingFactory);
413
+ return FocusBindingFactory;
414
+ }());
415
+
416
+ var FocusContainerComponent = /** @class */ (function (_super) {
417
+ __extends(FocusContainerComponent, _super);
418
418
  function FocusContainerComponent(focusManager) {
419
- this.focusManager = focusManager;
420
- this.tabIndex = -1;
419
+ var _this = _super.call(this) || this;
420
+ _this.focusManager = focusManager;
421
+ _this.tabIndex = -1;
422
+ return _this;
421
423
  }
422
424
  FocusContainerComponent.prototype.ngOnInit = function () {
423
425
  };
@@ -428,7 +430,7 @@ var FocusContainerComponent = /** @class */ (function () {
428
430
  { type: FocusManager, decorators: [{ type: Host }] }
429
431
  ]; };
430
432
  __decorate([
431
- HostBinding("attr.tabindex"),
433
+ HostBinding('attr.tabindex'),
432
434
  __metadata("design:type", Object)
433
435
  ], FocusContainerComponent.prototype, "tabIndex", void 0);
434
436
  __decorate([
@@ -450,7 +452,7 @@ var FocusContainerComponent = /** @class */ (function () {
450
452
  __metadata("design:paramtypes", [FocusManager])
451
453
  ], FocusContainerComponent);
452
454
  return FocusContainerComponent;
453
- }());
455
+ }(DisposableComponent));
454
456
 
455
457
  var FocusableComponent = /** @class */ (function (_super) {
456
458
  __extends(FocusableComponent, _super);
@@ -490,7 +492,7 @@ var FocusableComponent = /** @class */ (function (_super) {
490
492
  FocusableComponent.ctorParameters = function () { return [
491
493
  { type: ElementRef },
492
494
  { type: FocusManager },
493
- { type: FocusBinding.Factory }
495
+ { type: FocusBindingFactory }
494
496
  ]; };
495
497
  __decorate([
496
498
  HostBinding('attr.tabindex'),
@@ -511,7 +513,7 @@ var FocusableComponent = /** @class */ (function (_super) {
511
513
  ], FocusableComponent.prototype, "onBlur", null);
512
514
  FocusableComponent = __decorate([
513
515
  Component({ template: '' }),
514
- __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBinding.Factory])
516
+ __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
515
517
  ], FocusableComponent);
516
518
  return FocusableComponent;
517
519
  }(DisposableComponent));
@@ -1058,7 +1060,7 @@ var ComponentsModule = /** @class */ (function () {
1058
1060
  FocusableComponent
1059
1061
  ],
1060
1062
  providers: [
1061
- FocusBinding.Factory
1063
+ FocusBindingFactory
1062
1064
  ]
1063
1065
  })
1064
1066
  ], ComponentsModule);
@@ -4782,5 +4784,5 @@ function VisitParameterList(options) {
4782
4784
  * Generated bundle index. Do not edit.
4783
4785
  */
4784
4786
 
4785
- export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, AUP_PLACE_CONFIG as ɵba, PlaceRouter as ɵbc, InteractionService as ɵbd, ModalInteractionContextFactory as ɵbe, UrlService as ɵbf, PlaceHistory as ɵbg, TabbedPlaceNavigationComponent as ɵbh, AbstractPlaceNavigationComponent as ɵbi, ListPlaceNavComponent as ɵbj, InteractionModule as ɵbk, ActivityContainerComponent as ɵbl, AbstractInteractionContext as ɵbm, ActivityOutletComponent as ɵbn, ConfirmationDialogComponent as ɵbo, ACTIVITY_DATA as ɵbp, Activity as ɵbq, ConfirmThenDialogComponent as ɵbs, AlertDialogComponent as ɵbt, InPlaceInteractionContextComponent as ɵbv, FocusBindingDirective as ɵc, DisposableComponent as ɵd, ComponentsModule as ɵe, NumberInputComponent as ɵf, AbstractInputComponent as ɵg, StringInputComponent as ɵh, PasswordInputComponent as ɵi, SelectInputComponent as ɵj, CheckboxInputComponent as ɵk, ScrollContainerComponent as ɵl, NoopComponent as ɵm, SwitchCaseOption as ɵn, SwitchCaseWhenDirective as ɵo, SwitchCaseDefaultDirective as ɵp, SwitchCaseComponent as ɵq, FocusContainerComponent as ɵr, FocusableComponent as ɵs, FocusBinding as ɵt, PlaceModule as ɵu, EmptyStateComponent as ɵv, BusyOverlayComponent as ɵw, PlaceOutletComponent as ɵx, leftRightPlaceAnimation as ɵy, LEFT_RIGHT_PLACE_ANIMATION as ɵz };
4787
+ export { ACTIVITY_DATA, AUP_PLACE_CONFIG, AbstractInputComponent, AbstractInteractionContext, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, Activity, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, AlertDialogComponent, AngularUiPowerupsModule, Bounds, BusyOverlayComponent, CheckboxInputComponent, CommandDirective, ComponentsModule, ConfirmThenDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EventCleanUpSession, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, InPlaceInteractionContextComponent, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, LEFT_RIGHT_PLACE_ANIMATION, ListPlaceNavComponent, ModalInteractionContextFactory, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NumberInputComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SelectInputComponent, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, UrlService, UrlSnapshot, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationEventsFinish, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, slideDownOnEnterAnimation, slideRightOnEnterAnimation, DirectivesModule as ɵa, CommandDirective as ɵb, AUP_PLACE_CONFIG as ɵba, PlaceRouter as ɵbc, InteractionService as ɵbd, ModalInteractionContextFactory as ɵbe, UrlService as ɵbf, PlaceHistory as ɵbg, TabbedPlaceNavigationComponent as ɵbh, AbstractPlaceNavigationComponent as ɵbi, ListPlaceNavComponent as ɵbj, InteractionModule as ɵbk, ActivityContainerComponent as ɵbl, AbstractInteractionContext as ɵbm, ActivityOutletComponent as ɵbn, ConfirmationDialogComponent as ɵbo, ACTIVITY_DATA as ɵbp, Activity as ɵbq, ConfirmThenDialogComponent as ɵbs, AlertDialogComponent as ɵbt, InPlaceInteractionContextComponent as ɵbv, FocusBindingDirective as ɵc, DisposableComponent as ɵd, ComponentsModule as ɵe, NumberInputComponent as ɵf, AbstractInputComponent as ɵg, StringInputComponent as ɵh, PasswordInputComponent as ɵi, SelectInputComponent as ɵj, CheckboxInputComponent as ɵk, ScrollContainerComponent as ɵl, NoopComponent as ɵm, SwitchCaseOption as ɵn, SwitchCaseWhenDirective as ɵo, SwitchCaseDefaultDirective as ɵp, SwitchCaseComponent as ɵq, FocusContainerComponent as ɵr, FocusableComponent as ɵs, FocusBindingFactory as ɵt, PlaceModule as ɵu, EmptyStateComponent as ɵv, BusyOverlayComponent as ɵw, PlaceOutletComponent as ɵx, leftRightPlaceAnimation as ɵy, LEFT_RIGHT_PLACE_ANIMATION as ɵz };
4786
4788
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map