@mintplayer/ng-focus-on-load 14.0.0 → 14.2.0

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,9 +1,11 @@
1
- import { ViewContainerRef } from '@angular/core';
1
+ import { Input, ViewContainerRef } from '@angular/core';
2
2
  import { Directive } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export class FocusOnLoadDirective {
5
5
  constructor(viewContainer) {
6
6
  this.viewContainer = viewContainer;
7
+ this._autofocus = true;
8
+ console.log('init FocusOnLoadDirective');
7
9
  const container = this.viewContainer['_lContainer'][0];
8
10
  if (container instanceof HTMLElement) {
9
11
  this.inputBox = container;
@@ -12,18 +14,29 @@ export class FocusOnLoadDirective {
12
14
  this.inputBox = container[8];
13
15
  }
14
16
  }
17
+ set autofocus(value) {
18
+ if (value === '') {
19
+ // <bs-select2 ... autofocus></bs-select2>
20
+ value = true;
21
+ }
22
+ this._autofocus = value;
23
+ }
15
24
  ngAfterViewInit() {
16
25
  setTimeout(() => {
17
- this.inputBox.focus();
26
+ if (this._autofocus) {
27
+ this.inputBox.focus();
28
+ }
18
29
  }, 10);
19
30
  }
20
31
  }
21
- FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
22
- FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: FocusOnLoadDirective, selector: "*[autofocus]", ngImport: i0 });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
32
+ FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
33
+ FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: FocusOnLoadDirective, selector: "*[autofocus]", inputs: { autofocus: "autofocus" }, ngImport: i0 });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
24
35
  type: Directive,
25
36
  args: [{
26
37
  selector: '*[autofocus]'
27
38
  }]
28
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMtb24tbG9hZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctZm9jdXMtb24tbG9hZC9zcmMvbGliL2RpcmVjdGl2ZXMvZm9jdXMtb24tbG9hZC9mb2N1cy1vbi1sb2FkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLFNBQVMsRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBS3pELE1BQU0sT0FBTyxvQkFBb0I7SUFFL0IsWUFDVSxhQUErQjtRQUEvQixrQkFBYSxHQUFiLGFBQWEsQ0FBa0I7UUFFdkMsTUFBTSxTQUFTLEdBQVMsSUFBSSxDQUFDLGFBQWMsQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUM3RCxJQUFJLFNBQVMsWUFBWSxXQUFXLEVBQUU7WUFDcEMsSUFBSSxDQUFDLFFBQVEsR0FBcUIsU0FBUyxDQUFDO1NBQzdDO2FBQU07WUFDTCxJQUFJLENBQUMsUUFBUSxHQUFHLF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m94ITogYW55O1xuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgIHRoaXMuaW5wdXRCb3guZm9jdXMoKTtcbiAgICB9LCAxMCk7XG4gIH1cbn0iXX0=
39
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { autofocus: [{
40
+ type: Input
41
+ }] } });
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMtb24tbG9hZC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctZm9jdXMtb24tbG9hZC9zcmMvbGliL2RpcmVjdGl2ZXMvZm9jdXMtb24tbG9hZC9mb2N1cy1vbi1sb2FkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hELE9BQU8sRUFBRSxTQUFTLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUt6RCxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLFlBQ1UsYUFBK0I7UUFBL0Isa0JBQWEsR0FBYixhQUFhLENBQWtCO1FBYWpDLGVBQVUsR0FBRyxJQUFJLENBQUM7UUFYeEIsT0FBTyxDQUFDLEdBQUcsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO1FBQ3pDLE1BQU0sU0FBUyxHQUFTLElBQUksQ0FBQyxhQUFjLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDN0QsSUFBSSxTQUFTLFlBQVksV0FBVyxFQUFFO1lBQ3BDLElBQUksQ0FBQyxRQUFRLEdBQXFCLFNBQVMsQ0FBQztTQUM3QzthQUFNO1lBQ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ICkge1xuICAgIGNvbnNvbGUubG9nKCdpbml0IEZvY3VzT25Mb2FkRGlyZWN0aXZlJyk7XG4gICAgY29uc3QgY29udGFpbmVyID0gKDxhbnk+dGhpcy52aWV3Q29udGFpbmVyKVsnX2xDb250YWluZXInXVswXVxuICAgIGlmIChjb250YWluZXIgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCkge1xuICAgICAgdGhpcy5pbnB1dEJveCA9IDxIVE1MSW5wdXRFbGVtZW50PmNvbnRhaW5lcjtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5pbnB1dEJveCA9IGNvbnRhaW5lcls4XTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIHJlYWRvbmx5IGlucHV0Qm94ITogYW55O1xuXG4gIHByaXZhdGUgX2F1dG9mb2N1cyA9IHRydWU7XG4gIEBJbnB1dCgpIHB1YmxpYyBzZXQgYXV0b2ZvY3VzKHZhbHVlOiBhbnkpIHtcbiAgICBpZiAodmFsdWUgPT09ICcnKSB7XG4gICAgICAvLyA8YnMtc2VsZWN0MiAuLi4gYXV0b2ZvY3VzPjwvYnMtc2VsZWN0Mj5cbiAgICAgIHZhbHVlID0gdHJ1ZTtcbiAgICB9XG4gICAgdGhpcy5fYXV0b2ZvY3VzID0gdmFsdWU7ICBcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgIGlmICh0aGlzLl9hdXRvZm9jdXMpIHtcbiAgICAgICAgdGhpcy5pbnB1dEJveC5mb2N1cygpO1xuICAgICAgfVxuICAgIH0sIDEwKTtcbiAgfVxufSJdfQ==
@@ -4,10 +4,10 @@ import { FocusOnLoadDirective } from './directives/focus-on-load/focus-on-load.d
4
4
  import * as i0 from "@angular/core";
5
5
  export class FocusOnLoadModule {
6
6
  }
7
- FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
9
- FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, decorators: [{
7
+ FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
9
+ FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  imports: [CommonModule],
@@ -1,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, NgModule } from '@angular/core';
2
+ import { Directive, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class FocusOnLoadDirective {
6
6
  constructor(viewContainer) {
7
7
  this.viewContainer = viewContainer;
8
+ this._autofocus = true;
9
+ console.log('init FocusOnLoadDirective');
8
10
  const container = this.viewContainer['_lContainer'][0];
9
11
  if (container instanceof HTMLElement) {
10
12
  this.inputBox = container;
@@ -13,27 +15,38 @@ class FocusOnLoadDirective {
13
15
  this.inputBox = container[8];
14
16
  }
15
17
  }
18
+ set autofocus(value) {
19
+ if (value === '') {
20
+ // <bs-select2 ... autofocus></bs-select2>
21
+ value = true;
22
+ }
23
+ this._autofocus = value;
24
+ }
16
25
  ngAfterViewInit() {
17
26
  setTimeout(() => {
18
- this.inputBox.focus();
27
+ if (this._autofocus) {
28
+ this.inputBox.focus();
29
+ }
19
30
  }, 10);
20
31
  }
21
32
  }
22
- FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
23
- FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: FocusOnLoadDirective, selector: "*[autofocus]", ngImport: i0 });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
33
+ FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
34
+ FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: FocusOnLoadDirective, selector: "*[autofocus]", inputs: { autofocus: "autofocus" }, ngImport: i0 });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
25
36
  type: Directive,
26
37
  args: [{
27
38
  selector: '*[autofocus]'
28
39
  }]
29
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
40
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { autofocus: [{
41
+ type: Input
42
+ }] } });
30
43
 
31
44
  class FocusOnLoadModule {
32
45
  }
33
- FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
34
- FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
35
- FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, decorators: [{
46
+ FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
48
+ FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, decorators: [{
37
50
  type: NgModule,
38
51
  args: [{
39
52
  imports: [CommonModule],
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-focus-on-load.mjs","sources":["../../../../libs/mintplayer-ng-focus-on-load/src/lib/directives/focus-on-load/focus-on-load.directive.ts","../../../../libs/mintplayer-ng-focus-on-load/src/lib/focus-on-load.module.ts","../../../../libs/mintplayer-ng-focus-on-load/src/mintplayer-ng-focus-on-load.ts"],"sourcesContent":["import { ViewContainerRef } from '@angular/core';\nimport { Directive, AfterViewInit } from '@angular/core';\n\n@Directive({\n selector: '*[autofocus]'\n})\nexport class FocusOnLoadDirective implements AfterViewInit {\n\n constructor(\n private viewContainer: ViewContainerRef\n ) {\n const container = (<any>this.viewContainer)['_lContainer'][0]\n if (container instanceof HTMLElement) {\n this.inputBox = <HTMLInputElement>container;\n } else {\n this.inputBox = container[8];\n }\n }\n\n private readonly inputBox!: any;\n\n ngAfterViewInit() {\n setTimeout(() => {\n this.inputBox.focus();\n }, 10);\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FocusOnLoadDirective } from './directives/focus-on-load/focus-on-load.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n FocusOnLoadDirective\n ],\n exports: [\n FocusOnLoadDirective\n ],\n})\nexport class FocusOnLoadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,CACU,aAA+B,EAAA;AAA/B,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;QAEvC,MAAM,SAAS,GAAS,IAAI,CAAC,aAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,SAAS,YAAY,WAAW,EAAE;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAqB,SAAS,CAAC;AAC7C,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9B,SAAA;KACF;IAID,eAAe,GAAA;QACb,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;SACvB,EAAE,EAAE,CAAC,CAAC;KACR;;iHAnBU,oBAAoB,EAAA,IAAA,EAAA,CAAA,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mintplayer-ng-focus-on-load/src/lib/directives/focus-on-load/focus-on-load.directive.ts","../../../../libs/mintplayer-ng-focus-on-load/src/lib/focus-on-load.module.ts","../../../../libs/mintplayer-ng-focus-on-load/src/mintplayer-ng-focus-on-load.ts"],"sourcesContent":["import { Input, ViewContainerRef } from '@angular/core';\nimport { Directive, AfterViewInit } from '@angular/core';\n\n@Directive({\n selector: '*[autofocus]'\n})\nexport class FocusOnLoadDirective implements AfterViewInit {\n\n constructor(\n private viewContainer: ViewContainerRef\n ) {\n console.log('init FocusOnLoadDirective');\n const container = (<any>this.viewContainer)['_lContainer'][0]\n if (container instanceof HTMLElement) {\n this.inputBox = <HTMLInputElement>container;\n } else {\n this.inputBox = container[8];\n }\n }\n\n private readonly inputBox!: any;\n\n private _autofocus = true;\n @Input() public set autofocus(value: any) {\n if (value === '') {\n // <bs-select2 ... autofocus></bs-select2>\n value = true;\n }\n this._autofocus = value; \n }\n\n ngAfterViewInit() {\n setTimeout(() => {\n if (this._autofocus) {\n this.inputBox.focus();\n }\n }, 10);\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FocusOnLoadDirective } from './directives/focus-on-load/focus-on-load.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n FocusOnLoadDirective\n ],\n exports: [\n FocusOnLoadDirective\n ],\n})\nexport class FocusOnLoadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,CACU,aAA+B,EAAA;AAA/B,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;AAajC,QAAA,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;AAXxB,QAAA,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QACzC,MAAM,SAAS,GAAS,IAAI,CAAC,aAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,SAAS,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EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAN1B,YAAA,EAAA,CAAA,oBAAoB,CAFZ,EAAA,OAAA,EAAA,CAAA,YAAY,aAKpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YARlB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAQX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;iBACF,CAAA;;;ACZD;;AAEG;;;;"}
@@ -1,10 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, NgModule } from '@angular/core';
2
+ import { Directive, Input, NgModule } from '@angular/core';
3
3
  import { CommonModule } from '@angular/common';
4
4
 
5
5
  class FocusOnLoadDirective {
6
6
  constructor(viewContainer) {
7
7
  this.viewContainer = viewContainer;
8
+ this._autofocus = true;
9
+ console.log('init FocusOnLoadDirective');
8
10
  const container = this.viewContainer['_lContainer'][0];
9
11
  if (container instanceof HTMLElement) {
10
12
  this.inputBox = container;
@@ -13,27 +15,38 @@ class FocusOnLoadDirective {
13
15
  this.inputBox = container[8];
14
16
  }
15
17
  }
18
+ set autofocus(value) {
19
+ if (value === '') {
20
+ // <bs-select2 ... autofocus></bs-select2>
21
+ value = true;
22
+ }
23
+ this._autofocus = value;
24
+ }
16
25
  ngAfterViewInit() {
17
26
  setTimeout(() => {
18
- this.inputBox.focus();
27
+ if (this._autofocus) {
28
+ this.inputBox.focus();
29
+ }
19
30
  }, 10);
20
31
  }
21
32
  }
22
- FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
23
- FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: FocusOnLoadDirective, selector: "*[autofocus]", ngImport: i0 });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
33
+ FocusOnLoadDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
34
+ FocusOnLoadDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.0", type: FocusOnLoadDirective, selector: "*[autofocus]", inputs: { autofocus: "autofocus" }, ngImport: i0 });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
25
36
  type: Directive,
26
37
  args: [{
27
38
  selector: '*[autofocus]'
28
39
  }]
29
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
40
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { autofocus: [{
41
+ type: Input
42
+ }] } });
30
43
 
31
44
  class FocusOnLoadModule {
32
45
  }
33
- FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
34
- FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
35
- FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FocusOnLoadModule, decorators: [{
46
+ FocusOnLoadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ FocusOnLoadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, declarations: [FocusOnLoadDirective], imports: [CommonModule], exports: [FocusOnLoadDirective] });
48
+ FocusOnLoadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, imports: [CommonModule] });
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: FocusOnLoadModule, decorators: [{
37
50
  type: NgModule,
38
51
  args: [{
39
52
  imports: [CommonModule],
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-focus-on-load.mjs","sources":["../../../../libs/mintplayer-ng-focus-on-load/src/lib/directives/focus-on-load/focus-on-load.directive.ts","../../../../libs/mintplayer-ng-focus-on-load/src/lib/focus-on-load.module.ts","../../../../libs/mintplayer-ng-focus-on-load/src/mintplayer-ng-focus-on-load.ts"],"sourcesContent":["import { ViewContainerRef } from '@angular/core';\nimport { Directive, AfterViewInit } from '@angular/core';\n\n@Directive({\n selector: '*[autofocus]'\n})\nexport class FocusOnLoadDirective implements AfterViewInit {\n\n constructor(\n private viewContainer: ViewContainerRef\n ) {\n const container = (<any>this.viewContainer)['_lContainer'][0]\n if (container instanceof HTMLElement) {\n this.inputBox = <HTMLInputElement>container;\n } else {\n this.inputBox = container[8];\n }\n }\n\n private readonly inputBox!: any;\n\n ngAfterViewInit() {\n setTimeout(() => {\n this.inputBox.focus();\n }, 10);\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FocusOnLoadDirective } from './directives/focus-on-load/focus-on-load.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n FocusOnLoadDirective\n ],\n exports: [\n FocusOnLoadDirective\n ],\n})\nexport class FocusOnLoadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,CACU,aAA+B,EAAA;QAA/B,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;QAEvC,MAAM,SAAS,GAAS,IAAI,CAAC,aAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,SAAS,YAAY,WAAW,EAAE;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAqB,SAAS,CAAC;AAC7C,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9B,SAAA;KACF;IAID,eAAe,GAAA;QACb,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;SACvB,EAAE,EAAE,CAAC,CAAC;KACR;;iHAnBU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;qGAApB,oBAAoB,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACzB,iBAAA,CAAA;;;MCQY,iBAAiB,CAAA;;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAN1B,YAAA,EAAA,CAAA,oBAAoB,CAFZ,EAAA,OAAA,EAAA,CAAA,YAAY,aAKpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGX,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YARlB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAQX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;AACF,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-focus-on-load.mjs","sources":["../../../../libs/mintplayer-ng-focus-on-load/src/lib/directives/focus-on-load/focus-on-load.directive.ts","../../../../libs/mintplayer-ng-focus-on-load/src/lib/focus-on-load.module.ts","../../../../libs/mintplayer-ng-focus-on-load/src/mintplayer-ng-focus-on-load.ts"],"sourcesContent":["import { Input, ViewContainerRef } from '@angular/core';\nimport { Directive, AfterViewInit } from '@angular/core';\n\n@Directive({\n selector: '*[autofocus]'\n})\nexport class FocusOnLoadDirective implements AfterViewInit {\n\n constructor(\n private viewContainer: ViewContainerRef\n ) {\n console.log('init FocusOnLoadDirective');\n const container = (<any>this.viewContainer)['_lContainer'][0]\n if (container instanceof HTMLElement) {\n this.inputBox = <HTMLInputElement>container;\n } else {\n this.inputBox = container[8];\n }\n }\n\n private readonly inputBox!: any;\n\n private _autofocus = true;\n @Input() public set autofocus(value: any) {\n if (value === '') {\n // <bs-select2 ... autofocus></bs-select2>\n value = true;\n }\n this._autofocus = value; \n }\n\n ngAfterViewInit() {\n setTimeout(() => {\n if (this._autofocus) {\n this.inputBox.focus();\n }\n }, 10);\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FocusOnLoadDirective } from './directives/focus-on-load/focus-on-load.directive';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n FocusOnLoadDirective\n ],\n exports: [\n FocusOnLoadDirective\n ],\n})\nexport class FocusOnLoadModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,CACU,aAA+B,EAAA;QAA/B,IAAa,CAAA,aAAA,GAAb,aAAa,CAAkB;QAajC,IAAU,CAAA,UAAA,GAAG,IAAI,CAAC;AAXxB,QAAA,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;QACzC,MAAM,SAAS,GAAS,IAAI,CAAC,aAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,SAAS,YAAY,WAAW,EAAE;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAqB,SAAS,CAAC;AAC7C,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9B,SAAA;KACF;IAKD,IAAoB,SAAS,CAAC,KAAU,EAAA;QACtC,IAAI,KAAK,KAAK,EAAE,EAAE;;YAEhB,KAAK,GAAG,IAAI,CAAC;AACd,SAAA;AACD,QAAA,IAAI,CAAC,UAAU,GAAG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EAAA,CAAA,CAAA;2FAQX,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,YAAY,EAAE;wBACZ,oBAAoB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,oBAAoB;AACrB,qBAAA;AACF,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
@@ -5,7 +5,9 @@ export declare class FocusOnLoadDirective implements AfterViewInit {
5
5
  private viewContainer;
6
6
  constructor(viewContainer: ViewContainerRef);
7
7
  private readonly inputBox;
8
+ private _autofocus;
9
+ set autofocus(value: any);
8
10
  ngAfterViewInit(): void;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FocusOnLoadDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<FocusOnLoadDirective, "*[autofocus]", never, {}, {}, never, never, false>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FocusOnLoadDirective, "*[autofocus]", never, { "autofocus": "autofocus"; }, {}, never, never, false>;
11
13
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-focus-on-load",
3
3
  "private": false,
4
- "version": "14.0.0",
4
+ "version": "14.2.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/MintPlayer/mintplayer-ng-bootstrap",
8
8
  "directory": "libs/mintplayer-ng-focus-on-load"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^14.0.0",
12
- "@angular/core": "^14.0.0",
13
- "@angular/platform-browser": "~14.0.2"
11
+ "@angular/common": "^14.2.0",
12
+ "@angular/core": "^14.2.0",
13
+ "@angular/platform-browser": "~14.2.0"
14
14
  },
15
15
  "dependencies": {
16
16
  "tslib": "^2.3.0"