@coolon/angular-ui-powerups 1.2.1 → 1.3.3

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.
@@ -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, Injectable, Host, HostBinding, Component, EventEmitter, Output, ContentChild, TemplateRef, ChangeDetectorRef, ContentChildren, QueryList, InjectionToken, Injector, ComponentFactoryResolver, ViewContainerRef, ViewChild, ViewChildren, ɵɵdefineInjectable, ɵɵinject, 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) {
@@ -452,6 +414,44 @@ var FocusBinding = /** @class */ (function (_super) {
452
414
  FocusBinding.Factory = Factory;
453
415
  })(FocusBinding || (FocusBinding = {}));
454
416
 
417
+ var FocusContainerComponent = /** @class */ (function () {
418
+ function FocusContainerComponent(focusManager) {
419
+ this.focusManager = focusManager;
420
+ this.tabIndex = -1;
421
+ }
422
+ FocusContainerComponent.prototype.ngOnInit = function () {
423
+ };
424
+ FocusContainerComponent.prototype.restoreFocus = function () {
425
+ this.focusManager.restoreFocus();
426
+ };
427
+ FocusContainerComponent.ctorParameters = function () { return [
428
+ { type: FocusManager, decorators: [{ type: Host }] }
429
+ ]; };
430
+ __decorate([
431
+ HostBinding("attr.tabindex"),
432
+ __metadata("design:type", Object)
433
+ ], FocusContainerComponent.prototype, "tabIndex", void 0);
434
+ __decorate([
435
+ Trace(),
436
+ __metadata("design:type", Function),
437
+ __metadata("design:paramtypes", []),
438
+ __metadata("design:returntype", void 0)
439
+ ], FocusContainerComponent.prototype, "restoreFocus", null);
440
+ FocusContainerComponent = __decorate([
441
+ Component({
442
+ selector: 'aup-focus-container',
443
+ template: "<ng-content></ng-content>\n",
444
+ providers: [
445
+ { provide: FocusManager }
446
+ ],
447
+ styles: [":host{display:block}"]
448
+ }),
449
+ __param(0, Host()),
450
+ __metadata("design:paramtypes", [FocusManager])
451
+ ], FocusContainerComponent);
452
+ return FocusContainerComponent;
453
+ }());
454
+
455
455
  var FocusableComponent = /** @class */ (function (_super) {
456
456
  __extends(FocusableComponent, _super);
457
457
  function FocusableComponent(el, focusManager, focusBindingFactory) {
@@ -1056,6 +1056,9 @@ var ComponentsModule = /** @class */ (function () {
1056
1056
  SwitchCaseDefaultDirective,
1057
1057
  FocusContainerComponent,
1058
1058
  FocusableComponent
1059
+ ],
1060
+ providers: [
1061
+ FocusBinding.Factory
1059
1062
  ]
1060
1063
  })
1061
1064
  ], ComponentsModule);