@progress/kendo-angular-inputs 8.0.8-dev.202203091608 → 8.0.8-dev.202203101143

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.
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646841968,
12
+ publishDate: 1646912457,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -202,8 +202,14 @@ var TextBoxComponent = /** @class */ (function () {
202
202
  * @hidden
203
203
  */
204
204
  this.handleInput = function (ev) {
205
- var incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
205
+ var target = ev.target;
206
+ var isBrowserSafari = isSafari(navigator.userAgent);
207
+ var incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
208
+ var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
206
209
  _this.updateValue(incomingValue);
210
+ if (isBrowserSafari) {
211
+ target.setSelectionRange(caretStart, caretEnd);
212
+ }
207
213
  };
208
214
  this.ngChange = function (_) { };
209
215
  this.ngTouched = function () { };
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-inputs',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646841968,
12
+ publishDate: 1646912457,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -202,8 +202,14 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
202
202
  * @hidden
203
203
  */
204
204
  this.handleInput = (ev) => {
205
- let incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
205
+ const target = ev.target;
206
+ const isBrowserSafari = isSafari(navigator.userAgent);
207
+ const incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
208
+ const [caretStart, caretEnd] = [target.selectionStart, target.selectionEnd];
206
209
  this.updateValue(incomingValue);
210
+ if (isBrowserSafari) {
211
+ target.setSelectionRange(caretStart, caretEnd);
212
+ }
207
213
  };
208
214
  this.ngChange = (_) => { };
209
215
  this.ngTouched = () => { };
@@ -481,7 +481,7 @@ const packageMetadata = {
481
481
  name: '@progress/kendo-angular-inputs',
482
482
  productName: 'Kendo UI for Angular',
483
483
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
484
- publishDate: 1646841968,
484
+ publishDate: 1646912457,
485
485
  version: '',
486
486
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
487
487
  };
@@ -5927,8 +5927,14 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
5927
5927
  * @hidden
5928
5928
  */
5929
5929
  this.handleInput = (ev) => {
5930
- let incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
5930
+ const target = ev.target;
5931
+ const isBrowserSafari = isSafari(navigator.userAgent);
5932
+ const incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
5933
+ const [caretStart, caretEnd] = [target.selectionStart, target.selectionEnd];
5931
5934
  this.updateValue(incomingValue);
5935
+ if (isBrowserSafari) {
5936
+ target.setSelectionRange(caretStart, caretEnd);
5937
+ }
5932
5938
  };
5933
5939
  this.ngChange = (_) => { };
5934
5940
  this.ngTouched = () => { };
@@ -514,7 +514,7 @@ var packageMetadata = {
514
514
  name: '@progress/kendo-angular-inputs',
515
515
  productName: 'Kendo UI for Angular',
516
516
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
517
- publishDate: 1646841968,
517
+ publishDate: 1646912457,
518
518
  version: '',
519
519
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
520
520
  };
@@ -6097,8 +6097,14 @@ var TextBoxComponent = /** @class */ (function () {
6097
6097
  * @hidden
6098
6098
  */
6099
6099
  this.handleInput = function (ev) {
6100
- var incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
6100
+ var target = ev.target;
6101
+ var isBrowserSafari = isSafari(navigator.userAgent);
6102
+ var incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
6103
+ var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
6101
6104
  _this.updateValue(incomingValue);
6105
+ if (isBrowserSafari) {
6106
+ target.setSelectionRange(caretStart, caretEnd);
6107
+ }
6102
6108
  };
6103
6109
  this.ngChange = function (_) { };
6104
6110
  this.ngTouched = function () { };
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-inputs',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1646841968,
14
+ publishDate: 1646912457,
15
15
  version: '',
16
16
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
17
17
  };
@@ -204,8 +204,14 @@ var TextBoxComponent = /** @class */ (function () {
204
204
  * @hidden
205
205
  */
206
206
  this.handleInput = function (ev) {
207
- var incomingValue = utils_3.isSafari(navigator.userAgent) && utils_1.isJapanese(ev.target.value) ? ev.data : ev.target.value;
207
+ var target = ev.target;
208
+ var isBrowserSafari = utils_3.isSafari(navigator.userAgent);
209
+ var incomingValue = isBrowserSafari && utils_1.isJapanese(target.value) ? ev.data : target.value;
210
+ var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
208
211
  _this.updateValue(incomingValue);
212
+ if (isBrowserSafari) {
213
+ target.setSelectionRange(caretStart, caretEnd);
214
+ }
209
215
  };
210
216
  this.ngChange = function (_) { };
211
217
  this.ngTouched = function () { };