2016-06-14 21:23:40 -04:00
|
|
|
{
|
2017-08-02 22:15:30 -04:00
|
|
|
"extends": "../tsconfig-build.json",
|
|
|
|
|
2016-06-14 21:23:40 -04:00
|
|
|
"compilerOptions": {
|
|
|
|
"baseUrl": ".",
|
2017-08-02 22:15:30 -04:00
|
|
|
"rootDir": ".",
|
2016-06-14 21:23:40 -04:00
|
|
|
"paths": {
|
2017-03-02 15:12:46 -05:00
|
|
|
"@angular/core": ["../../dist/packages/core"],
|
|
|
|
"@angular/core/testing": ["../../dist/packages/core/testing"],
|
|
|
|
"@angular/common": ["../../dist/packages/common"],
|
|
|
|
"@angular/common/testing": ["../../dist/packages/common/testing"],
|
|
|
|
"@angular/compiler": ["../../dist/packages/compiler"],
|
fix(forms): make composition event buffering configurable (#15256)
This commit fixes a regression where `ngModel` no longer syncs
letter by letter on Android devices, and instead syncs at the
end of every word. This broke when we introduced buffering of
IME events so IMEs like Pinyin keyboards or Katakana keyboards
wouldn't display composition strings. Unfortunately, iOS devices
and Android devices have opposite event behavior. Whereas iOS
devices fire composition events for IME keyboards only, Android
fires composition events for Latin-language keyboards. For
this reason, languages like English don't work as expected on
Android if we always buffer. So to support both platforms,
composition string buffering will only be turned on by default
for non-Android devices.
However, we have also added a `COMPOSITION_BUFFER_MODE` token
to make this configurable by the application. In some cases, apps
might might still want to receive intermediate values. For example,
some inputs begin searching based on Latin letters before a
character selection is made.
As a provider, this is fairly flexible. If you want to turn
composition buffering off, simply provide the token at the top
level:
```ts
providers: [
{provide: COMPOSITION_BUFFER_MODE, useValue: false}
]
```
Or, if you want to change the mode based on locale or platform,
you can use a factory:
```ts
import {shouldUseBuffering} from 'my/lib';
....
providers: [
{provide: COMPOSITION_BUFFER_MODE, useFactory: shouldUseBuffering}
]
```
Closes #15079.
PR Close #15256
2017-03-20 20:38:33 -04:00
|
|
|
"@angular/compiler/testing": ["../../dist/packages/compiler/testing"],
|
|
|
|
"@angular/platform-browser": ["../../dist/packages/platform-browser"]
|
2016-06-14 21:23:40 -04:00
|
|
|
},
|
2017-08-02 22:15:30 -04:00
|
|
|
"outDir": "../../dist/packages/forms"
|
2016-06-14 21:23:40 -04:00
|
|
|
},
|
2017-08-02 22:15:30 -04:00
|
|
|
|
2016-06-14 21:23:40 -04:00
|
|
|
"files": [
|
2017-02-15 16:30:40 -05:00
|
|
|
"public_api.ts",
|
2017-03-02 15:12:46 -05:00
|
|
|
"../../node_modules/zone.js/dist/zone.js.d.ts"
|
2016-08-22 20:37:48 -04:00
|
|
|
],
|
2017-08-02 22:15:30 -04:00
|
|
|
|
2016-08-22 20:37:48 -04:00
|
|
|
"angularCompilerOptions": {
|
2016-11-16 19:42:24 -05:00
|
|
|
"annotateForClosureCompiler": true,
|
2017-02-15 16:30:40 -05:00
|
|
|
"strictMetadataEmit": true,
|
2017-02-22 13:57:01 -05:00
|
|
|
"flatModuleOutFile": "index.js",
|
|
|
|
"flatModuleId": "@angular/forms"
|
2016-08-22 20:37:48 -04:00
|
|
|
}
|
2016-06-14 21:23:40 -04:00
|
|
|
}
|