@mintplayer/ng-focus-on-load 20.0.0 → 21.0.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.
|
@@ -27,10 +27,10 @@ class FocusOnLoadDirective {
|
|
|
27
27
|
}
|
|
28
28
|
}, 10);
|
|
29
29
|
}
|
|
30
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FocusOnLoadDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
31
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: FocusOnLoadDirective, isStandalone: true, selector: "*[autofocus]", inputs: { autofocus: "autofocus" }, ngImport: i0 }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FocusOnLoadDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
36
|
selector: '*[autofocus]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-focus-on-load.mjs","sources":["
|
|
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/mintplayer-ng-focus-on-load.ts"],"sourcesContent":["import { Input, ViewContainerRef, Directive, AfterViewInit } from '@angular/core';\n\n@Directive({\n selector: '*[autofocus]',\n standalone: true,\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 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}","/**\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;QAYf,IAAA,CAAA,UAAU,GAAG,IAAI;QAVvB,MAAM,SAAS,GAAS,IAAI,CAAC,aAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;AAC7D,QAAA,IAAI,SAAS,YAAY,WAAW,EAAE;AACpC,YAAA,IAAI,CAAC,QAAQ,GAAqB,SAAS;QAC7C;aAAO;AACL,YAAA,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC;QAC9B;IACF;IAKA,IAAoB,SAAS,CAAC,KAAU,EAAA;AACtC,QAAA,IAAI,KAAK,KAAK,EAAE,EAAE;;YAEhB,KAAK,GAAG,IAAI;QACd;AACA,QAAA,IAAI,CAAC,UAAU,GAAG,KAAK;IACzB;IAEA,eAAe,GAAA;QACb,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,gBAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;YACvB;QACF,CAAC,EAAE,EAAE,CAAC;IACR;8GA9BW,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;sBAiBE;;;ACtBH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/ng-focus-on-load",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "21.0.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": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/platform-browser": "^
|
|
11
|
+
"@angular/common": "^21.0.0",
|
|
12
|
+
"@angular/core": "^21.0.0",
|
|
13
|
+
"@angular/platform-browser": "^21.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0"
|
|
17
17
|
},
|
|
18
18
|
"module": "fesm2022/mintplayer-ng-focus-on-load.mjs",
|
|
19
|
-
"typings": "
|
|
19
|
+
"typings": "types/mintplayer-ng-focus-on-load.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
"./package.json": {
|
|
22
22
|
"default": "./package.json"
|
|
23
23
|
},
|
|
24
24
|
".": {
|
|
25
|
-
"types": "./
|
|
25
|
+
"types": "./types/mintplayer-ng-focus-on-load.d.ts",
|
|
26
26
|
"default": "./fesm2022/mintplayer-ng-focus-on-load.mjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
File without changes
|