@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
@@ -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, Host, HostBinding, Component, Injectable, 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';
@@ -307,44 +307,6 @@ var DirectivesModule = /** @class */ (function () {
307
307
  return DirectivesModule;
308
308
  }());
309
309
 
310
- var FocusContainerComponent = /** @class */ (function () {
311
- function FocusContainerComponent(focusManager) {
312
- this.focusManager = focusManager;
313
- this.tabIndex = -1;
314
- }
315
- FocusContainerComponent.prototype.ngOnInit = function () {
316
- };
317
- FocusContainerComponent.prototype.restoreFocus = function () {
318
- this.focusManager.restoreFocus();
319
- };
320
- FocusContainerComponent.ctorParameters = function () { return [
321
- { type: FocusManager, decorators: [{ type: Host }] }
322
- ]; };
323
- __decorate([
324
- HostBinding("attr.tabindex"),
325
- __metadata("design:type", Object)
326
- ], FocusContainerComponent.prototype, "tabIndex", void 0);
327
- __decorate([
328
- Trace(),
329
- __metadata("design:type", Function),
330
- __metadata("design:paramtypes", []),
331
- __metadata("design:returntype", void 0)
332
- ], FocusContainerComponent.prototype, "restoreFocus", null);
333
- FocusContainerComponent = __decorate([
334
- Component({
335
- selector: 'aup-focus-container',
336
- template: "<ng-content></ng-content>\n",
337
- providers: [
338
- { provide: FocusManager }
339
- ],
340
- styles: [":host{display:block}"]
341
- }),
342
- __param(0, Host()),
343
- __metadata("design:paramtypes", [FocusManager])
344
- ], FocusContainerComponent);
345
- return FocusContainerComponent;
346
- }());
347
-
348
310
  var FocusBinding = /** @class */ (function (_super) {
349
311
  __extends(FocusBinding, _super);
350
312
  function FocusBinding(focusTargetElement, ngZone, document, focusContext) {
@@ -426,31 +388,68 @@ var FocusBinding = /** @class */ (function (_super) {
426
388
  ], FocusBinding);
427
389
  return FocusBinding;
428
390
  }(GarbageCollector));
429
- (function (FocusBinding) {
430
- var Factory = /** @class */ (function () {
431
- function Factory(ngZone, document) {
432
- this.ngZone = ngZone;
433
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
434
- this.document = document;
435
- }
436
- Factory.prototype.createBinding = function (el, focusContext) {
437
- return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
438
- };
439
- Factory.ctorParameters = function () { return [
440
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
441
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
442
- ]; };
443
- Factory = __decorate([
444
- Injectable({
445
- providedIn: 'root'
446
- }),
447
- __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
448
- __metadata("design:paramtypes", [NgZone, Object])
449
- ], Factory);
450
- return Factory;
451
- }());
452
- FocusBinding.Factory = Factory;
453
- })(FocusBinding || (FocusBinding = {}));
391
+
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 () {
417
+ function FocusContainerComponent(focusManager) {
418
+ this.focusManager = focusManager;
419
+ this.tabIndex = -1;
420
+ }
421
+ FocusContainerComponent.prototype.ngOnInit = function () {
422
+ };
423
+ FocusContainerComponent.prototype.restoreFocus = function () {
424
+ this.focusManager.restoreFocus();
425
+ };
426
+ FocusContainerComponent.ctorParameters = function () { return [
427
+ { type: FocusManager, decorators: [{ type: Host }] }
428
+ ]; };
429
+ __decorate([
430
+ HostBinding("attr.tabindex"),
431
+ __metadata("design:type", Object)
432
+ ], FocusContainerComponent.prototype, "tabIndex", void 0);
433
+ __decorate([
434
+ Trace(),
435
+ __metadata("design:type", Function),
436
+ __metadata("design:paramtypes", []),
437
+ __metadata("design:returntype", void 0)
438
+ ], FocusContainerComponent.prototype, "restoreFocus", null);
439
+ FocusContainerComponent = __decorate([
440
+ Component({
441
+ selector: 'aup-focus-container',
442
+ template: "<ng-content></ng-content>\n",
443
+ providers: [
444
+ { provide: FocusManager }
445
+ ],
446
+ styles: [":host{display:block}"]
447
+ }),
448
+ __param(0, Host()),
449
+ __metadata("design:paramtypes", [FocusManager])
450
+ ], FocusContainerComponent);
451
+ return FocusContainerComponent;
452
+ }());
454
453
 
455
454
  var FocusableComponent = /** @class */ (function (_super) {
456
455
  __extends(FocusableComponent, _super);
@@ -490,7 +489,7 @@ var FocusableComponent = /** @class */ (function (_super) {
490
489
  FocusableComponent.ctorParameters = function () { return [
491
490
  { type: ElementRef },
492
491
  { type: FocusManager },
493
- { type: FocusBinding.Factory }
492
+ { type: FocusBindingFactory }
494
493
  ]; };
495
494
  __decorate([
496
495
  HostBinding('attr.tabindex'),
@@ -511,7 +510,7 @@ var FocusableComponent = /** @class */ (function (_super) {
511
510
  ], FocusableComponent.prototype, "onBlur", null);
512
511
  FocusableComponent = __decorate([
513
512
  Component({ template: '' }),
514
- __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBinding.Factory])
513
+ __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
515
514
  ], FocusableComponent);
516
515
  return FocusableComponent;
517
516
  }(DisposableComponent));
@@ -1056,6 +1055,9 @@ var ComponentsModule = /** @class */ (function () {
1056
1055
  SwitchCaseDefaultDirective,
1057
1056
  FocusContainerComponent,
1058
1057
  FocusableComponent
1058
+ ],
1059
+ providers: [
1060
+ FocusBindingFactory
1059
1061
  ]
1060
1062
  })
1061
1063
  ], ComponentsModule);
@@ -4779,5 +4781,5 @@ function VisitParameterList(options) {
4779
4781
  * Generated bundle index. Do not edit.
4780
4782
  */
4781
4783
 
4782
- 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 };
4784
+ 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 };
4783
4785
  //# sourceMappingURL=coolon-angular-ui-powerups.js.map