@progress/kendo-angular-inputs 7.5.0-dev.202110141328 → 7.5.1-dev.202110280909
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.
- package/dist/cdn/js/kendo-angular-inputs.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/numerictextbox/numerictextbox.component.js +2 -2
- package/dist/es/numerictextbox/utils.js +8 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/numerictextbox/numerictextbox.component.js +2 -2
- package/dist/es2015/numerictextbox/utils.d.ts +4 -0
- package/dist/es2015/numerictextbox/utils.js +8 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +10 -2
- package/dist/fesm5/index.js +10 -2
- package/dist/npm/numerictextbox/numerictextbox.component.js +1 -1
- package/dist/npm/numerictextbox/utils.js +8 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +9 -9
|
@@ -16,7 +16,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
16
16
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
17
17
|
import { packageMetadata } from '../package-metadata';
|
|
18
18
|
import { MIN_DOC_LINK, MAX_DOC_LINK, POINT, INITIAL_SPIN_DELAY, SPIN_DELAY, EXPONENT_REGEX } from './constants';
|
|
19
|
-
import { defined, noop, numericRegex, isNumber, pad, decimalPart, getDeltaFromMouseWheel, getCaretPosition, extractSignificantNumericChars } from './utils';
|
|
19
|
+
import { defined, noop, numericRegex, isNumber, pad, decimalPart, getDeltaFromMouseWheel, getCaretPosition, extractSignificantNumericChars, isRightClick } from './utils';
|
|
20
20
|
import { ArrowDirection } from './arrow-direction';
|
|
21
21
|
import { mobileOS } from '@progress/kendo-common';
|
|
22
22
|
var PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
|
|
@@ -533,7 +533,7 @@ var NumericTextBoxComponent = /** @class */ (function () {
|
|
|
533
533
|
});
|
|
534
534
|
NumericTextBoxComponent.prototype.arrowPress = function (direction, e) {
|
|
535
535
|
e.preventDefault();
|
|
536
|
-
if (this.isDisabled) {
|
|
536
|
+
if (this.isDisabled || isRightClick(e)) {
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
539
|
if (!mobileOS) {
|
|
@@ -81,3 +81,11 @@ export var extractSignificantNumericChars = function (formattedString, separator
|
|
|
81
81
|
var significantCharacters = separator + "0123456789-";
|
|
82
82
|
return formattedString.split('').reduce(function (acc, curr) { return significantCharacters.includes(curr) ? ++acc : acc; }, 0);
|
|
83
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export var isRightClick = function (event) {
|
|
88
|
+
var isRightClickIE = event.button && event.button === 2;
|
|
89
|
+
var isRightClickOther = event.which && event.which === 3;
|
|
90
|
+
return isRightClickIE || isRightClickOther;
|
|
91
|
+
};
|
|
@@ -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:
|
|
12
|
+
publishDate: 1635411998,
|
|
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
|
};
|
|
@@ -17,7 +17,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
17
17
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
18
18
|
import { packageMetadata } from '../package-metadata';
|
|
19
19
|
import { MIN_DOC_LINK, MAX_DOC_LINK, POINT, INITIAL_SPIN_DELAY, SPIN_DELAY, EXPONENT_REGEX } from './constants';
|
|
20
|
-
import { defined, noop, numericRegex, isNumber, pad, decimalPart, getDeltaFromMouseWheel, getCaretPosition, extractSignificantNumericChars } from './utils';
|
|
20
|
+
import { defined, noop, numericRegex, isNumber, pad, decimalPart, getDeltaFromMouseWheel, getCaretPosition, extractSignificantNumericChars, isRightClick } from './utils';
|
|
21
21
|
import { ArrowDirection } from './arrow-direction';
|
|
22
22
|
import { mobileOS } from '@progress/kendo-common';
|
|
23
23
|
const PARSABLE_OPTIONS = ['min', 'max', 'step', 'decimals'];
|
|
@@ -490,7 +490,7 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
490
490
|
}
|
|
491
491
|
arrowPress(direction, e) {
|
|
492
492
|
e.preventDefault();
|
|
493
|
-
if (this.isDisabled) {
|
|
493
|
+
if (this.isDisabled || isRightClick(e)) {
|
|
494
494
|
return;
|
|
495
495
|
}
|
|
496
496
|
if (!mobileOS) {
|
|
@@ -38,3 +38,7 @@ export declare const getCaretPosition: (element: HTMLInputElement) => number;
|
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
export declare const extractSignificantNumericChars: (formattedString: string, separator: string) => number;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare const isRightClick: (event: any) => boolean;
|
|
@@ -81,3 +81,11 @@ export const extractSignificantNumericChars = (formattedString, separator) => {
|
|
|
81
81
|
const significantCharacters = `${separator}0123456789-`;
|
|
82
82
|
return formattedString.split('').reduce((acc, curr) => significantCharacters.includes(curr) ? ++acc : acc, 0);
|
|
83
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export const isRightClick = (event) => {
|
|
88
|
+
const isRightClickIE = event.button && event.button === 2;
|
|
89
|
+
const isRightClickOther = event.which && event.which === 3;
|
|
90
|
+
return isRightClickIE || isRightClickOther;
|
|
91
|
+
};
|
|
@@ -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:
|
|
12
|
+
publishDate: 1635411998,
|
|
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
|
};
|
package/dist/fesm2015/index.js
CHANGED
|
@@ -459,7 +459,7 @@ const packageMetadata = {
|
|
|
459
459
|
name: '@progress/kendo-angular-inputs',
|
|
460
460
|
productName: 'Kendo UI for Angular',
|
|
461
461
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
462
|
-
publishDate:
|
|
462
|
+
publishDate: 1635411998,
|
|
463
463
|
version: '',
|
|
464
464
|
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'
|
|
465
465
|
};
|
|
@@ -2939,6 +2939,14 @@ const extractSignificantNumericChars = (formattedString, separator) => {
|
|
|
2939
2939
|
const significantCharacters = `${separator}0123456789-`;
|
|
2940
2940
|
return formattedString.split('').reduce((acc, curr) => significantCharacters.includes(curr) ? ++acc : acc, 0);
|
|
2941
2941
|
};
|
|
2942
|
+
/**
|
|
2943
|
+
* @hidden
|
|
2944
|
+
*/
|
|
2945
|
+
const isRightClick = (event) => {
|
|
2946
|
+
const isRightClickIE = event.button && event.button === 2;
|
|
2947
|
+
const isRightClickOther = event.which && event.which === 3;
|
|
2948
|
+
return isRightClickIE || isRightClickOther;
|
|
2949
|
+
};
|
|
2942
2950
|
|
|
2943
2951
|
/**
|
|
2944
2952
|
* @hidden
|
|
@@ -3421,7 +3429,7 @@ let NumericTextBoxComponent = NumericTextBoxComponent_1 = class NumericTextBoxCo
|
|
|
3421
3429
|
}
|
|
3422
3430
|
arrowPress(direction, e) {
|
|
3423
3431
|
e.preventDefault();
|
|
3424
|
-
if (this.isDisabled) {
|
|
3432
|
+
if (this.isDisabled || isRightClick(e)) {
|
|
3425
3433
|
return;
|
|
3426
3434
|
}
|
|
3427
3435
|
if (!mobileOS) {
|
package/dist/fesm5/index.js
CHANGED
|
@@ -493,7 +493,7 @@ var packageMetadata = {
|
|
|
493
493
|
name: '@progress/kendo-angular-inputs',
|
|
494
494
|
productName: 'Kendo UI for Angular',
|
|
495
495
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
496
|
-
publishDate:
|
|
496
|
+
publishDate: 1635411998,
|
|
497
497
|
version: '',
|
|
498
498
|
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'
|
|
499
499
|
};
|
|
@@ -2997,6 +2997,14 @@ var extractSignificantNumericChars = function (formattedString, separator) {
|
|
|
2997
2997
|
var significantCharacters = separator + "0123456789-";
|
|
2998
2998
|
return formattedString.split('').reduce(function (acc, curr) { return significantCharacters.includes(curr) ? ++acc : acc; }, 0);
|
|
2999
2999
|
};
|
|
3000
|
+
/**
|
|
3001
|
+
* @hidden
|
|
3002
|
+
*/
|
|
3003
|
+
var isRightClick = function (event) {
|
|
3004
|
+
var isRightClickIE = event.button && event.button === 2;
|
|
3005
|
+
var isRightClickOther = event.which && event.which === 3;
|
|
3006
|
+
return isRightClickIE || isRightClickOther;
|
|
3007
|
+
};
|
|
3000
3008
|
|
|
3001
3009
|
/**
|
|
3002
3010
|
* @hidden
|
|
@@ -3522,7 +3530,7 @@ var NumericTextBoxComponent = /** @class */ (function () {
|
|
|
3522
3530
|
});
|
|
3523
3531
|
NumericTextBoxComponent.prototype.arrowPress = function (direction, e) {
|
|
3524
3532
|
e.preventDefault();
|
|
3525
|
-
if (this.isDisabled) {
|
|
3533
|
+
if (this.isDisabled || isRightClick(e)) {
|
|
3526
3534
|
return;
|
|
3527
3535
|
}
|
|
3528
3536
|
if (!mobileOS) {
|
|
@@ -535,7 +535,7 @@ var NumericTextBoxComponent = /** @class */ (function () {
|
|
|
535
535
|
});
|
|
536
536
|
NumericTextBoxComponent.prototype.arrowPress = function (direction, e) {
|
|
537
537
|
e.preventDefault();
|
|
538
|
-
if (this.isDisabled) {
|
|
538
|
+
if (this.isDisabled || utils_2.isRightClick(e)) {
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
541
|
if (!kendo_common_1.mobileOS) {
|
|
@@ -84,3 +84,11 @@ exports.extractSignificantNumericChars = function (formattedString, separator) {
|
|
|
84
84
|
var significantCharacters = separator + "0123456789-";
|
|
85
85
|
return formattedString.split('').reduce(function (acc, curr) { return significantCharacters.includes(curr) ? ++acc : acc; }, 0);
|
|
86
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
exports.isRightClick = function (event) {
|
|
91
|
+
var isRightClickIE = event.button && event.button === 2;
|
|
92
|
+
var isRightClickOther = event.which && event.which === 3;
|
|
93
|
+
return isRightClickIE || isRightClickOther;
|
|
94
|
+
};
|
|
@@ -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:
|
|
14
|
+
publishDate: 1635411998,
|
|
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
|
};
|