@syncfusion/ej2-inputs
Advanced tools
Comparing version 28.1.41 to 28.2.3
/*! | ||
* filename: index.d.ts | ||
* version : 28.1.41 | ||
* version : 28.2.3 | ||
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.37", | ||
"_id": "@syncfusion/ej2-inputs@28.1.41", | ||
"_inBundle": false, | ||
"_integrity": "sha512-xq5ftk/1AS5NTv7Ahsu7g3lvfo+V7VO9Hj+sXwYGAdsBPTBZTUtNU3/Ra2mD6Kz/9u1cG6s/y2Yk9KafBqaCWw==", | ||
"_integrity": "sha512-4k74kUvq3YKXX7DLthlC5VsIEEiKav4CLorKdyy3sbMkbGfy3kSt6UjPmDZfEsMJliSNI1YDjjKKF9/cWzxpvw==", | ||
"_location": "/@syncfusion/ej2-inputs", | ||
@@ -43,4 +43,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.37.tgz", | ||
"_shasum": "b5b652d54d2e1807a935a0b68977262115e98232", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.41.tgz", | ||
"_shasum": "0dd1806a0796c2c9519bf0c33f011c6d18e95a8e", | ||
"_spec": "@syncfusion/ej2-inputs@*", | ||
@@ -53,6 +53,6 @@ "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~28.1.33", | ||
"@syncfusion/ej2-buttons": "~28.1.39", | ||
"@syncfusion/ej2-popups": "~28.1.39", | ||
"@syncfusion/ej2-splitbuttons": "~28.1.41" | ||
"@syncfusion/ej2-base": "~28.2.3", | ||
"@syncfusion/ej2-buttons": "~28.2.3", | ||
"@syncfusion/ej2-popups": "~28.2.3", | ||
"@syncfusion/ej2-splitbuttons": "~28.2.3" | ||
}, | ||
@@ -125,5 +125,5 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "28.1.41", | ||
"version": "28.2.3", | ||
"sideEffects": false, | ||
"homepage": "https://www.syncfusion.com/javascript-ui-controls" | ||
} |
@@ -286,2 +286,6 @@ import { Base, EmitType } from '@syncfusion/ej2-base'; | ||
format?: string; | ||
/** | ||
* Returns the culture for the input. | ||
*/ | ||
culture?: string; | ||
} | ||
@@ -288,0 +292,0 @@ export interface FormEventArgs { |
@@ -654,3 +654,4 @@ var __extends = (this && this.__extends) || (function () { | ||
typeof (this.rules['' + name].date) === 'string') ? this.rules['' + name].date : null; | ||
var args = { value: this.inputElement.value, param: param, element: this.inputElement, formElement: this.element, format: dateFormat }; | ||
var args = { value: this.inputElement.value, | ||
param: param, element: this.inputElement, formElement: this.element, format: dateFormat, culture: this.locale }; | ||
this.trigger('validationBegin', args); | ||
@@ -837,3 +838,3 @@ if (!args.param && rule === 'required') { | ||
if (!isNullOrUndefined(option.param) && (typeof (option.param) === 'string' && option.param !== '')) { | ||
var globalize = new Internationalization; | ||
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization; | ||
var dateOptions = { format: option.param.toString(), type: 'dateTime', skeleton: 'yMd' }; | ||
@@ -854,3 +855,3 @@ var dateValue = globalize.parseDate(option.value, dateOptions); | ||
if (option.format && option.format !== '') { | ||
var globalize = new Internationalization; | ||
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization; | ||
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' }; | ||
@@ -877,3 +878,3 @@ var dateValue = globalize.parseDate(option.value, dateOptions); | ||
if (option.format && option.format !== '') { | ||
var globalize = new Internationalization; | ||
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization; | ||
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' }; | ||
@@ -880,0 +881,0 @@ var dateValue = globalize.parseDate(option.value, dateOptions); |
@@ -1,2 +0,2 @@ | ||
import { addClass, Event, attributes, BaseEventArgs, compile, Component, EmitType, EventHandler, getUniqueID, INotifyPropertyChanged, select, Browser, append } from '@syncfusion/ej2-base';import { isNullOrUndefined, KeyboardEventArgs, KeyboardEvents, MouseEventArgs, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate } from '@syncfusion/ej2-base';import { Tooltip } from '@syncfusion/ej2-popups'; | ||
import { addClass, Event, attributes, BaseEventArgs, compile, Component, EmitType, EventHandler, getUniqueID, INotifyPropertyChanged, select, Browser, append } from '@syncfusion/ej2-base';import { isNullOrUndefined, KeyboardEventArgs, KeyboardEvents, MouseEventArgs, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate, closest } from '@syncfusion/ej2-base';import { Tooltip } from '@syncfusion/ej2-popups'; | ||
import {LabelPosition,PrecisionType,RatingItemEventArgs,RatingHoverEventArgs,RatingChangedEventArgs} from "./rating"; | ||
@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base'; |
@@ -21,3 +21,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { addClass, Event, attributes, compile, Component, EventHandler, getUniqueID, select, Browser, append } from '@syncfusion/ej2-base'; | ||
import { isNullOrUndefined, KeyboardEvents, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate } from '@syncfusion/ej2-base'; | ||
import { isNullOrUndefined, KeyboardEvents, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate, closest } from '@syncfusion/ej2-base'; | ||
import { Tooltip } from '@syncfusion/ej2-popups'; | ||
@@ -125,2 +125,5 @@ var ICONCSS = 'e-rating-icon e-icons e-star-filled'; | ||
this.isTouchSelected = false; | ||
if (closest(this.element, 'form') && this.element.getAttribute('value')) { | ||
this.setProperties({ value: this.element.getAttribute('value') }, true); | ||
} | ||
}; | ||
@@ -131,3 +134,3 @@ Rating.prototype.render = function () { | ||
this.updateTemplateFunction(); | ||
this.triggerChange(null, this.value, false); | ||
this.triggerChange(null, this.value, false, true); | ||
this.renderItems(); | ||
@@ -499,4 +502,6 @@ this.displayLabel(); | ||
}; | ||
Rating.prototype.triggerChange = function (e, val, isInteracted) { | ||
Rating.prototype.triggerChange = function (e, val, isInteracted, isInitial) { | ||
if (isInteracted === void 0) { isInteracted = true; } | ||
if (isInitial === void 0) { isInitial = false; } | ||
var ratingObj = null || this; | ||
val = this.validateValue(val); | ||
@@ -509,3 +514,8 @@ this.currentValue = val; | ||
this.setProperties({ value: val }, true); | ||
this.trigger('valueChanged', eventArgs); | ||
if (this.isAngular && !isInitial) { | ||
ratingObj.localChange({ value: val }); | ||
} | ||
if (!isInitial) { | ||
this.trigger('valueChanged', eventArgs); | ||
} | ||
}; | ||
@@ -512,0 +522,0 @@ Rating.prototype.mouseMoveHandler = function (index, e) { |
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
39342236
587678
+ Added@syncfusion/ej2-base@28.2.3(transitive)
+ Added@syncfusion/ej2-buttons@28.2.3(transitive)
+ Added@syncfusion/ej2-icons@28.2.3(transitive)
+ Added@syncfusion/ej2-popups@28.2.3(transitive)
+ Added@syncfusion/ej2-splitbuttons@28.2.3(transitive)
- Removed@syncfusion/ej2-base@28.1.33(transitive)
- Removed@syncfusion/ej2-buttons@28.1.39(transitive)
- Removed@syncfusion/ej2-icons@28.1.33(transitive)
- Removed@syncfusion/ej2-popups@28.1.39(transitive)
- Removed@syncfusion/ej2-splitbuttons@28.1.41(transitive)
Updated@syncfusion/ej2-base@~28.2.3