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

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: 1647519685,
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
  };
@@ -9,8 +9,9 @@ import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
9
9
  * Returns true if the used browser is Safari.
10
10
  */
11
11
  export var isSafari = function (userAgent) {
12
- return detectDesktopBrowser(userAgent).safari ||
13
- (detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
12
+ var desktopBrowser = detectDesktopBrowser(userAgent);
13
+ var mobileOS = detectMobileOS(userAgent);
14
+ return (desktopBrowser && desktopBrowser.safari) || (mobileOS && mobileOS.browser === 'mobilesafari');
14
15
  };
15
16
  /**
16
17
  * @hidden
@@ -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: 1647519685,
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
  };
@@ -9,8 +9,9 @@ import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
9
9
  * Returns true if the used browser is Safari.
10
10
  */
11
11
  export const isSafari = (userAgent) => {
12
- return detectDesktopBrowser(userAgent).safari ||
13
- (detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
12
+ const desktopBrowser = detectDesktopBrowser(userAgent);
13
+ const mobileOS = detectMobileOS(userAgent);
14
+ return (desktopBrowser && desktopBrowser.safari) || (mobileOS && mobileOS.browser === 'mobilesafari');
14
15
  };
15
16
  /**
16
17
  * @hidden
@@ -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: 1647519685,
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
  };
@@ -5668,8 +5668,9 @@ MaskedTextBoxModule = __decorate([
5668
5668
  * Returns true if the used browser is Safari.
5669
5669
  */
5670
5670
  const isSafari = (userAgent) => {
5671
- return detectDesktopBrowser(userAgent).safari ||
5672
- (detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
5671
+ const desktopBrowser = detectDesktopBrowser(userAgent);
5672
+ const mobileOS$$1 = detectMobileOS(userAgent);
5673
+ return (desktopBrowser && desktopBrowser.safari) || (mobileOS$$1 && mobileOS$$1.browser === 'mobilesafari');
5673
5674
  };
5674
5675
  /**
5675
5676
  * @hidden
@@ -5927,8 +5928,14 @@ let TextBoxComponent = TextBoxComponent_1 = class TextBoxComponent {
5927
5928
  * @hidden
5928
5929
  */
5929
5930
  this.handleInput = (ev) => {
5930
- let incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
5931
+ const target = ev.target;
5932
+ const isBrowserSafari = isSafari(navigator.userAgent);
5933
+ const incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
5934
+ const [caretStart, caretEnd] = [target.selectionStart, target.selectionEnd];
5931
5935
  this.updateValue(incomingValue);
5936
+ if (isBrowserSafari) {
5937
+ target.setSelectionRange(caretStart, caretEnd);
5938
+ }
5932
5939
  };
5933
5940
  this.ngChange = (_) => { };
5934
5941
  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: 1647519685,
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
  };
@@ -5836,8 +5836,9 @@ var MaskedTextBoxModule = /** @class */ (function () {
5836
5836
  * Returns true if the used browser is Safari.
5837
5837
  */
5838
5838
  var isSafari = function (userAgent) {
5839
- return detectDesktopBrowser(userAgent).safari ||
5840
- (detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
5839
+ var desktopBrowser = detectDesktopBrowser(userAgent);
5840
+ var mobileOS$$1 = detectMobileOS(userAgent);
5841
+ return (desktopBrowser && desktopBrowser.safari) || (mobileOS$$1 && mobileOS$$1.browser === 'mobilesafari');
5841
5842
  };
5842
5843
  /**
5843
5844
  * @hidden
@@ -6097,8 +6098,14 @@ var TextBoxComponent = /** @class */ (function () {
6097
6098
  * @hidden
6098
6099
  */
6099
6100
  this.handleInput = function (ev) {
6100
- var incomingValue = isSafari(navigator.userAgent) && isJapanese(ev.target.value) ? ev.data : ev.target.value;
6101
+ var target = ev.target;
6102
+ var isBrowserSafari = isSafari(navigator.userAgent);
6103
+ var incomingValue = isBrowserSafari && isJapanese(target.value) ? ev.data : target.value;
6104
+ var _a = [target.selectionStart, target.selectionEnd], caretStart = _a[0], caretEnd = _a[1];
6101
6105
  _this.updateValue(incomingValue);
6106
+ if (isBrowserSafari) {
6107
+ target.setSelectionRange(caretStart, caretEnd);
6108
+ }
6102
6109
  };
6103
6110
  this.ngChange = function (_) { };
6104
6111
  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: 1647519685,
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
  };
@@ -11,8 +11,9 @@ var kendo_common_1 = require("@progress/kendo-common");
11
11
  * Returns true if the used browser is Safari.
12
12
  */
13
13
  exports.isSafari = function (userAgent) {
14
- return kendo_common_1.detectDesktopBrowser(userAgent).safari ||
15
- (kendo_common_1.detectMobileOS(userAgent) && kendo_common_1.detectMobileOS(userAgent).browser === 'mobilesafari');
14
+ var desktopBrowser = kendo_common_1.detectDesktopBrowser(userAgent);
15
+ var mobileOS = kendo_common_1.detectMobileOS(userAgent);
16
+ return (desktopBrowser && desktopBrowser.safari) || (mobileOS && mobileOS.browser === 'mobilesafari');
16
17
  };
17
18
  /**
18
19
  * @hidden
@@ -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 () { };