@syncfusion/ej2-inputs 28.1.37 → 28.2.3
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/README.md +18 -8
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +23 -11
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +24 -11
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +13 -9
- package/src/common/signature-base.d.ts +6 -4
- package/src/common/signature-base.js +6 -4
- package/src/form-validator/form-validator.d.ts +4 -0
- package/src/form-validator/form-validator.js +5 -4
- package/src/rating/rating-model.d.ts +1 -1
- package/src/rating/rating.js +14 -4
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.
|
|
3
|
+
* version : 28.2.3
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-inputs@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-inputs@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-inputs@28.1.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-4k74kUvq3YKXX7DLthlC5VsIEEiKav4CLorKdyy3sbMkbGfy3kSt6UjPmDZfEsMJliSNI1YDjjKKF9/cWzxpvw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-inputs",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
21
22
|
"/@syncfusion/ej2-angular-inputs",
|
|
22
23
|
"/@syncfusion/ej2-calendars",
|
|
23
24
|
"/@syncfusion/ej2-diagrams",
|
|
@@ -26,18 +27,21 @@
|
|
|
26
27
|
"/@syncfusion/ej2-filemanager",
|
|
27
28
|
"/@syncfusion/ej2-gantt",
|
|
28
29
|
"/@syncfusion/ej2-grids",
|
|
30
|
+
"/@syncfusion/ej2-image-editor",
|
|
29
31
|
"/@syncfusion/ej2-inplace-editor",
|
|
32
|
+
"/@syncfusion/ej2-interactive-chat",
|
|
30
33
|
"/@syncfusion/ej2-kanban",
|
|
31
34
|
"/@syncfusion/ej2-navigations",
|
|
32
35
|
"/@syncfusion/ej2-pdfviewer",
|
|
33
36
|
"/@syncfusion/ej2-pivotview",
|
|
37
|
+
"/@syncfusion/ej2-querybuilder",
|
|
34
38
|
"/@syncfusion/ej2-react-inputs",
|
|
35
39
|
"/@syncfusion/ej2-richtexteditor",
|
|
36
40
|
"/@syncfusion/ej2-schedule",
|
|
37
41
|
"/@syncfusion/ej2-vue-inputs"
|
|
38
42
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.
|
|
40
|
-
"_shasum": "
|
|
43
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-28.1.41.tgz",
|
|
44
|
+
"_shasum": "0dd1806a0796c2c9519bf0c33f011c6d18e95a8e",
|
|
41
45
|
"_spec": "@syncfusion/ej2-inputs@*",
|
|
42
46
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
43
47
|
"author": {
|
|
@@ -45,10 +49,10 @@
|
|
|
45
49
|
},
|
|
46
50
|
"bundleDependencies": false,
|
|
47
51
|
"dependencies": {
|
|
48
|
-
"@syncfusion/ej2-base": "~28.
|
|
49
|
-
"@syncfusion/ej2-buttons": "~28.
|
|
50
|
-
"@syncfusion/ej2-popups": "~28.
|
|
51
|
-
"@syncfusion/ej2-splitbuttons": "~28.
|
|
52
|
+
"@syncfusion/ej2-base": "~28.2.3",
|
|
53
|
+
"@syncfusion/ej2-buttons": "~28.2.3",
|
|
54
|
+
"@syncfusion/ej2-popups": "~28.2.3",
|
|
55
|
+
"@syncfusion/ej2-splitbuttons": "~28.2.3"
|
|
52
56
|
},
|
|
53
57
|
"deprecated": false,
|
|
54
58
|
"description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
|
|
117
121
|
},
|
|
118
122
|
"typings": "index.d.ts",
|
|
119
|
-
"version": "28.
|
|
123
|
+
"version": "28.2.3",
|
|
120
124
|
"sideEffects": false,
|
|
121
125
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
122
126
|
}
|
|
@@ -214,11 +214,13 @@ export declare abstract class SignatureBase extends Component<HTMLCanvasElement>
|
|
|
214
214
|
*/
|
|
215
215
|
saveAsBlob(): Blob;
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* Gets the signature as a Base 64 string.
|
|
218
218
|
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @
|
|
219
|
+
* This method is used to retrieve the current signature on the canvas as a Base 64-encoded string, in the specified image format.
|
|
220
|
+
*
|
|
221
|
+
* @param {SignatureFileType} [type] - Specifies the type of the image format.
|
|
222
|
+
* Can be one of 'Png', 'Jpeg', or 'Svg'. If not specified, the default is 'Png'.
|
|
223
|
+
* @returns {string} - Returns the Base 64 string of the signature in the specified format.
|
|
222
224
|
*/
|
|
223
225
|
getSignature(type?: SignatureFileType): string;
|
|
224
226
|
/**
|
|
@@ -887,11 +887,13 @@ var SignatureBase = /** @class */ (function (_super) {
|
|
|
887
887
|
return this.getBlob(this.canvasContext.canvas.toDataURL('image/png'));
|
|
888
888
|
};
|
|
889
889
|
/**
|
|
890
|
-
*
|
|
890
|
+
* Gets the signature as a Base 64 string.
|
|
891
891
|
*
|
|
892
|
-
*
|
|
893
|
-
*
|
|
894
|
-
* @
|
|
892
|
+
* This method is used to retrieve the current signature on the canvas as a Base 64-encoded string, in the specified image format.
|
|
893
|
+
*
|
|
894
|
+
* @param {SignatureFileType} [type] - Specifies the type of the image format.
|
|
895
|
+
* Can be one of 'Png', 'Jpeg', or 'Svg'. If not specified, the default is 'Png'.
|
|
896
|
+
* @returns {string} - Returns the Base 64 string of the signature in the specified format.
|
|
895
897
|
*/
|
|
896
898
|
SignatureBase.prototype.getSignature = function (type) {
|
|
897
899
|
if (this.saveWithBackground && this.backgroundColor && !this.backgroundImage) {
|
|
@@ -651,7 +651,8 @@ var FormValidator = /** @class */ (function (_super) {
|
|
|
651
651
|
var currentRule = this.rules["" + name]["" + rule];
|
|
652
652
|
var dateFormat = ((rule === 'min' || rule === 'max') && this.rules['' + name].date &&
|
|
653
653
|
typeof (this.rules['' + name].date) === 'string') ? this.rules['' + name].date : null;
|
|
654
|
-
var args = { value: this.inputElement.value,
|
|
654
|
+
var args = { value: this.inputElement.value,
|
|
655
|
+
param: param, element: this.inputElement, formElement: this.element, format: dateFormat, culture: this.locale };
|
|
655
656
|
this.trigger('validationBegin', args);
|
|
656
657
|
if (!args.param && rule === 'required') {
|
|
657
658
|
return true;
|
|
@@ -833,7 +834,7 @@ var FormValidator = /** @class */ (function (_super) {
|
|
|
833
834
|
},
|
|
834
835
|
date: function (option) {
|
|
835
836
|
if (!isNullOrUndefined(option.param) && (typeof (option.param) === 'string' && option.param !== '')) {
|
|
836
|
-
var globalize = new Internationalization;
|
|
837
|
+
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization;
|
|
837
838
|
var dateOptions = { format: option.param.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
838
839
|
var dateValue = globalize.parseDate(option.value, dateOptions);
|
|
839
840
|
return (!isNullOrUndefined(dateValue) && dateValue instanceof Date && !isNaN(+dateValue));
|
|
@@ -849,7 +850,7 @@ var FormValidator = /** @class */ (function (_super) {
|
|
|
849
850
|
}
|
|
850
851
|
// Maximum rule validation for date
|
|
851
852
|
if (option.format && option.format !== '') {
|
|
852
|
-
var globalize = new Internationalization;
|
|
853
|
+
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization;
|
|
853
854
|
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
854
855
|
var dateValue = globalize.parseDate(option.value, dateOptions);
|
|
855
856
|
var maxValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
@@ -871,7 +872,7 @@ var FormValidator = /** @class */ (function (_super) {
|
|
|
871
872
|
else {
|
|
872
873
|
// Minimum rule validation for date
|
|
873
874
|
if (option.format && option.format !== '') {
|
|
874
|
-
var globalize = new Internationalization;
|
|
875
|
+
var globalize = option.culture && option.culture !== '' ? new Internationalization(option.culture) : new Internationalization;
|
|
875
876
|
var dateOptions = { format: option.format.toString(), type: 'dateTime', skeleton: 'yMd' };
|
|
876
877
|
var dateValue = globalize.parseDate(option.value, dateOptions);
|
|
877
878
|
var minValue = (typeof (option.param) === 'string') ? globalize.parseDate(JSON.parse(JSON.stringify(option.param)), dateOptions) : option.param;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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';
|
|
1
|
+
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';
|
|
2
2
|
import {LabelPosition,PrecisionType,RatingItemEventArgs,RatingHoverEventArgs,RatingChangedEventArgs} from "./rating";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
package/src/rating/rating.js
CHANGED
|
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
20
|
import { addClass, Event, attributes, compile, Component, EventHandler, getUniqueID, select, Browser, append } from '@syncfusion/ej2-base';
|
|
21
|
-
import { isNullOrUndefined, KeyboardEvents, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate } from '@syncfusion/ej2-base';
|
|
21
|
+
import { isNullOrUndefined, KeyboardEvents, NotifyPropertyChanges, Property, remove, removeClass, initializeCSPTemplate, closest } from '@syncfusion/ej2-base';
|
|
22
22
|
import { Tooltip } from '@syncfusion/ej2-popups';
|
|
23
23
|
var ICONCSS = 'e-rating-icon e-icons e-star-filled';
|
|
24
24
|
var ITEMLIST = 'e-rating-item-list';
|
|
@@ -121,12 +121,15 @@ var Rating = /** @class */ (function (_super) {
|
|
|
121
121
|
};
|
|
122
122
|
this.tooltipOpen = false;
|
|
123
123
|
this.isTouchSelected = false;
|
|
124
|
+
if (closest(this.element, 'form') && this.element.getAttribute('value')) {
|
|
125
|
+
this.setProperties({ value: this.element.getAttribute('value') }, true);
|
|
126
|
+
}
|
|
124
127
|
};
|
|
125
128
|
Rating.prototype.render = function () {
|
|
126
129
|
this.initialize();
|
|
127
130
|
this.updateMinValue();
|
|
128
131
|
this.updateTemplateFunction();
|
|
129
|
-
this.triggerChange(null, this.value, false);
|
|
132
|
+
this.triggerChange(null, this.value, false, true);
|
|
130
133
|
this.renderItems();
|
|
131
134
|
this.displayLabel();
|
|
132
135
|
};
|
|
@@ -493,8 +496,10 @@ var Rating = /** @class */ (function (_super) {
|
|
|
493
496
|
this.updateItemValue();
|
|
494
497
|
this.updateLabel();
|
|
495
498
|
};
|
|
496
|
-
Rating.prototype.triggerChange = function (e, val, isInteracted) {
|
|
499
|
+
Rating.prototype.triggerChange = function (e, val, isInteracted, isInitial) {
|
|
497
500
|
if (isInteracted === void 0) { isInteracted = true; }
|
|
501
|
+
if (isInitial === void 0) { isInitial = false; }
|
|
502
|
+
var ratingObj = null || this;
|
|
498
503
|
val = this.validateValue(val);
|
|
499
504
|
this.currentValue = val;
|
|
500
505
|
if (this.currentValue === this.value) {
|
|
@@ -502,7 +507,12 @@ var Rating = /** @class */ (function (_super) {
|
|
|
502
507
|
}
|
|
503
508
|
var eventArgs = { event: e, isInteracted: isInteracted, value: val, previousValue: this.value };
|
|
504
509
|
this.setProperties({ value: val }, true);
|
|
505
|
-
this.
|
|
510
|
+
if (this.isAngular && !isInitial) {
|
|
511
|
+
ratingObj.localChange({ value: val });
|
|
512
|
+
}
|
|
513
|
+
if (!isInitial) {
|
|
514
|
+
this.trigger('valueChanged', eventArgs);
|
|
515
|
+
}
|
|
506
516
|
};
|
|
507
517
|
Rating.prototype.mouseMoveHandler = function (index, e) {
|
|
508
518
|
if (this.isTouchSelected) {
|