@syncfusion/ej2-inputs
Advanced tools
Comparing version 20.4.42 to 20.4.48
@@ -5,5 +5,11 @@ # Changelog | ||
### Signature | ||
#### Bug Fixes | ||
- `#F179949` - Provide the change event fires support for draw method of signature. | ||
## 20.4.38 (2022-12-21) | ||
### Rating `Preview` | ||
### Rating | ||
@@ -10,0 +16,0 @@ **Key features**: |
/*! | ||
* filename: index.d.ts | ||
* version : 20.4.42 | ||
* version : 20.4.48 | ||
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-inputs@*", | ||
"_id": "@syncfusion/ej2-inputs@20.4.40", | ||
"_id": "@syncfusion/ej2-inputs@20.4.42", | ||
"_inBundle": false, | ||
"_integrity": "sha512-QNBevj26CfCNoO5BrbIa44IZ8wckJUfTbc1aIBQeH+IVTVQcrOcqpSaCWsYt1ocotu6Vw+cqNTBLxUS3taoRhA==", | ||
"_integrity": "sha512-cjzaMmmmfNG3GwYbZw1nMEqn2i4S+KZpDTM37zRWdIvcEkBTyMF/d1XU+sqEK24/HclUdaMAJu7yZfmzxfCAxg==", | ||
"_location": "/@syncfusion/ej2-inputs", | ||
@@ -42,4 +42,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.4.40.tgz", | ||
"_shasum": "833c32633801cc7e55292c80ee511a1ada4cf67b", | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-20.4.42.tgz", | ||
"_shasum": "c75a231b3cd6ebaa687dc98d96318ef77b79b97d", | ||
"_spec": "@syncfusion/ej2-inputs@*", | ||
@@ -52,6 +52,6 @@ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~20.4.42", | ||
"@syncfusion/ej2-buttons": "~20.4.42", | ||
"@syncfusion/ej2-popups": "~20.4.42", | ||
"@syncfusion/ej2-splitbuttons": "~20.4.42" | ||
"@syncfusion/ej2-base": "~20.4.48", | ||
"@syncfusion/ej2-buttons": "~20.4.48", | ||
"@syncfusion/ej2-popups": "~20.4.48", | ||
"@syncfusion/ej2-splitbuttons": "~20.4.48" | ||
}, | ||
@@ -124,5 +124,5 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "20.4.42", | ||
"version": "20.4.48", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -666,2 +666,3 @@ var __extends = (this && this.__extends) || (function () { | ||
SignatureBase.prototype.draw = function (text, fontFamily, fontSize) { | ||
var args = { actionName: 'draw-text' }; | ||
this.canvasContext.clearRect(0, 0, this.canvasContext.canvas.width, this.canvasContext.canvas.height); | ||
@@ -676,2 +677,3 @@ fontFamily = fontFamily || 'Arial'; | ||
this.isSignatureEmpty = false; | ||
this.trigger('change', args); | ||
}; | ||
@@ -678,0 +680,0 @@ /** |
@@ -21,3 +21,3 @@ import { addClass, Event, attributes, BaseEventArgs, compile, Component, EmitType, EventHandler, getUniqueID, INotifyPropertyChanged, select, Browser } from '@syncfusion/ej2-base';import { isNullOrUndefined, KeyboardEventArgs, KeyboardEvents, MouseEventArgs, NotifyPropertyChanges, Property, remove, removeClass } from '@syncfusion/ej2-base';import { Tooltip } from '@syncfusion/ej2-popups'; | ||
* One or more CSS classes to customize the appearance of the rating component, such as by changing its colors, fonts, sizes, or other visual aspects. | ||
* | ||
* | ||
* @default '' | ||
@@ -31,3 +31,3 @@ */ | ||
* When set to "true", the rating component will be disabled, and the user will not be able to interact with it. | ||
* | ||
* | ||
* @default false | ||
@@ -47,3 +47,3 @@ */ | ||
* When set to "true", an animation will be added when the user hovers their cursor over an item in the rating component. | ||
* | ||
* | ||
* @default true | ||
@@ -57,3 +57,3 @@ */ | ||
* When set to "false", all items before the selected one will be in the selected state. | ||
* | ||
* | ||
* @default false | ||
@@ -81,3 +81,3 @@ */ | ||
* Defines the position of the label in rating component. | ||
* | ||
* | ||
* The possible values are: | ||
@@ -105,3 +105,3 @@ * * Top | ||
* The value is set to 0, which means that the minimum possible rating is 0. | ||
* | ||
* | ||
* @default 0.0 | ||
@@ -113,5 +113,5 @@ * @aspType double | ||
/** | ||
* Defines the precision type of the rating which used to component the granularity of the rating, | ||
* Defines the precision type of the rating which used to component the granularity of the rating, | ||
* allowing users to provide ratings with varying levels of precision. | ||
* | ||
* | ||
* The possible values are: | ||
@@ -140,3 +140,3 @@ * * Full | ||
* When set to "true", a label will be displayed that shows the current value of the rating; otherwise false. | ||
* | ||
* | ||
* @default false | ||
@@ -149,3 +149,3 @@ */ | ||
* When set to "true", show tooltip for the items. | ||
* | ||
* | ||
* @default true | ||
@@ -157,3 +157,3 @@ */ | ||
* Defines the template that used as tooltip content over default tooltip content of the rating. | ||
* The current value of rating passed as context to build the content. | ||
* The current value of rating passed as context to build the content. | ||
* | ||
@@ -167,3 +167,3 @@ * @default '' | ||
* Based on "PrecisionType", users can select ratings with varying levels of precision. | ||
* The "value" is a decimal value that ranges from the minimum value to the items count, | ||
* The "value" is a decimal value that ranges from the minimum value to the items count, | ||
* as specified by the "min" and "itemsCount" properties of the rating. | ||
@@ -178,3 +178,3 @@ * | ||
* Defines a value that indicates whether the rating component is visible or hidden. | ||
* When set to "true", if the rating component is visible. | ||
* When set to "true", if the rating component is visible. | ||
* | ||
@@ -181,0 +181,0 @@ * @default true |
@@ -328,2 +328,3 @@ import { BaseEventArgs, Component, EmitType, INotifyPropertyChanged } from '@syncfusion/ej2-base'; | ||
private clickHandler; | ||
private updateValueChange; | ||
private triggerChange; | ||
@@ -330,0 +331,0 @@ private mouseMoveHandler; |
@@ -262,3 +262,3 @@ var __extends = (this && this.__extends) || (function () { | ||
target: '.e-rating-item-container', windowCollision: true, | ||
opensOn: 'Custom', cssClass: 'e-rating-tooltip' | ||
opensOn: 'Custom', cssClass: this.cssClass ? ('e-rating-tooltip ' + this.cssClass) : 'e-rating-tooltip' | ||
}); | ||
@@ -294,3 +294,3 @@ this.tooltipObj.appendTo(this.ratingItemList); | ||
else { | ||
currentValue = (this.precision === PrecisionType.Full) ? Math.round(currentValue) : | ||
currentValue = ((this.precision === PrecisionType.Full) || this.enableSingleSelection) ? Math.round(currentValue) : | ||
(this.precision === PrecisionType.Half) ? (Math.round(currentValue * 2) / 2) : | ||
@@ -302,3 +302,3 @@ (this.precision === PrecisionType.Quarter) ? (Math.round(currentValue * 4) / 4) : (Math.round(currentValue * 10) / 10); | ||
Rating.prototype.getRatingValue = function (value, i) { | ||
return (this.enableSingleSelection && this.precision === PrecisionType.Full) ? ((value === i + 1) ? 1 : 0) : | ||
return (this.enableSingleSelection) ? (((value > i) && (value <= i + 1)) ? 1 : 0) : | ||
(value >= i + 1) ? 1 : ((value < i) ? 0 : (value - i)); | ||
@@ -458,2 +458,8 @@ }; | ||
}; | ||
Rating.prototype.updateValueChange = function (e, val, isInteracted) { | ||
if (isInteracted === void 0) { isInteracted = true; } | ||
this.triggerChange(e, val, isInteracted); | ||
this.updateItemValue(); | ||
this.updateLabel(); | ||
}; | ||
Rating.prototype.triggerChange = function (e, val, isInteracted) { | ||
@@ -513,3 +519,3 @@ if (isInteracted === void 0) { isInteracted = true; } | ||
var currentValue = index; | ||
if (this.precision !== PrecisionType.Full) { | ||
if (!(this.enableSingleSelection || (this.precision === PrecisionType.Full))) { | ||
currentValue = args.offsetX / this.itemElements[index - 1].clientWidth; | ||
@@ -537,5 +543,3 @@ currentValue = (this.enableRtl) ? (1 - currentValue) : currentValue; | ||
if (isInteracted === void 0) { isInteracted = true; } | ||
this.triggerChange(e, this.min, isInteracted); | ||
this.updateItemValue(); | ||
this.updateLabel(); | ||
this.updateValueChange(e, this.min, isInteracted); | ||
this.updateResetButton(); | ||
@@ -580,8 +584,7 @@ }; | ||
if ((!isIncrease && (this.value > this.min)) || (isIncrease && (this.value < this.itemsCount))) { | ||
var currentValue = (this.precision === PrecisionType.Full) ? 1 : (this.precision === PrecisionType.Half) ? 0.5 : | ||
(this.precision === PrecisionType.Quarter) ? 0.25 : Math.round(0.1 * 10) / 10; | ||
var currentValue = (this.precision === PrecisionType.Full || this.enableSingleSelection) ? 1 : | ||
(this.precision === PrecisionType.Half) ? 0.5 : (this.precision === PrecisionType.Quarter) ? 0.25 : | ||
Math.round(0.1 * 10) / 10; | ||
currentValue = isIncrease ? this.value + currentValue : this.value - currentValue; | ||
this.triggerChange(e, (currentValue)); | ||
this.updateItemValue(); | ||
this.updateLabel(); | ||
this.updateValueChange(e, (currentValue)); | ||
if (this.allowReset) { | ||
@@ -666,5 +669,3 @@ this.updateResetButton(); | ||
case 'value': | ||
this.triggerChange(null, (this.value > this.min) ? this.value : this.min, false); | ||
this.updateItemValue(); | ||
this.updateLabel(); | ||
this.updateValueChange(null, (this.value > this.min) ? this.value : this.min, false); | ||
break; | ||
@@ -701,2 +702,5 @@ case 'min': | ||
} | ||
if (this.tooltipObj) { | ||
this.tooltipObj.setProperties({ cssClass: this.cssClass ? ('e-rating-tooltip ' + this.cssClass) : 'e-rating-tooltip' }); | ||
} | ||
break; | ||
@@ -714,3 +718,4 @@ case 'labelPosition': | ||
case 'enableSingleSelection': | ||
this.updateItemValue(); | ||
//To validate the value against single selection and update the items, label + trigger change event if value changed | ||
this.updateValueChange(null, this.currentValue, false); | ||
break; | ||
@@ -717,0 +722,0 @@ case 'enableAnimation': |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22027754
290027