@syncfusion/ej2-inputs 20.4.40 → 20.4.42
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 +1 -1
- 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 +38 -23
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +38 -23
- 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 +9 -9
- package/src/rating/rating-model.d.ts +64 -48
- package/src/rating/rating.d.ts +87 -56
- package/src/rating/rating.js +31 -16
- package/src/uploader/uploader.js +8 -8
|
@@ -8281,13 +8281,6 @@ let Uploader = class Uploader extends Component {
|
|
|
8281
8281
|
}
|
|
8282
8282
|
}
|
|
8283
8283
|
setCSSClass(oldCSSClass) {
|
|
8284
|
-
let updatedCssClassValue = this.cssClass;
|
|
8285
|
-
if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
|
|
8286
|
-
updatedCssClassValue = (this.cssClass.replace(/\s+/g, ' ')).trim();
|
|
8287
|
-
}
|
|
8288
|
-
if (!isNullOrUndefined(this.cssClass) && updatedCssClassValue !== '') {
|
|
8289
|
-
addClass([this.uploadWrapper], updatedCssClassValue.split(updatedCssClassValue.indexOf(',') > -1 ? ',' : ' '));
|
|
8290
|
-
}
|
|
8291
8284
|
let updatedOldCssClass = oldCSSClass;
|
|
8292
8285
|
if (!isNullOrUndefined(oldCSSClass)) {
|
|
8293
8286
|
updatedOldCssClass = (oldCSSClass.replace(/\s+/g, ' ')).trim();
|
|
@@ -8295,6 +8288,13 @@ let Uploader = class Uploader extends Component {
|
|
|
8295
8288
|
if (!isNullOrUndefined(oldCSSClass) && updatedOldCssClass !== '') {
|
|
8296
8289
|
removeClass([this.uploadWrapper], updatedOldCssClass.split(' '));
|
|
8297
8290
|
}
|
|
8291
|
+
let updatedCssClassValue = this.cssClass;
|
|
8292
|
+
if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
|
|
8293
|
+
updatedCssClassValue = (this.cssClass.replace(/\s+/g, ' ')).trim();
|
|
8294
|
+
}
|
|
8295
|
+
if (!isNullOrUndefined(this.cssClass) && updatedCssClassValue !== '') {
|
|
8296
|
+
addClass([this.uploadWrapper], updatedCssClassValue.split(updatedCssClassValue.indexOf(',') > -1 ? ',' : ' '));
|
|
8297
|
+
}
|
|
8298
8298
|
}
|
|
8299
8299
|
wireEvents() {
|
|
8300
8300
|
EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);
|
|
@@ -10833,7 +10833,7 @@ let Uploader = class Uploader extends Component {
|
|
|
10833
10833
|
const files = this.getFiles(fileData);
|
|
10834
10834
|
for (let i = 0; i < files.length; i++) {
|
|
10835
10835
|
if (files[i].statusCode === '5' || files[i].statusCode === '0') {
|
|
10836
|
-
if (this.asyncSettings.chunkSize > 0) {
|
|
10836
|
+
if (this.asyncSettings.chunkSize > 0 && this.getCurrentMetaData(files[i], null)) {
|
|
10837
10837
|
this.retryUpload(this.getCurrentMetaData(files[i], null), fromcanceledStage);
|
|
10838
10838
|
}
|
|
10839
10839
|
else {
|
|
@@ -14734,49 +14734,64 @@ const EMPTYTEMPLATE = 'e-rating-empty';
|
|
|
14734
14734
|
const SELECTEDVALUE = 'e-selected-value';
|
|
14735
14735
|
const RATINGVALUE = '--rating-value';
|
|
14736
14736
|
/**
|
|
14737
|
-
* Defines
|
|
14737
|
+
* Defines where to position the label in rating
|
|
14738
14738
|
*/
|
|
14739
14739
|
var LabelPosition;
|
|
14740
14740
|
(function (LabelPosition) {
|
|
14741
14741
|
/**
|
|
14742
|
-
*
|
|
14742
|
+
* The label is positioned at the top center of the rating component.
|
|
14743
14743
|
*/
|
|
14744
14744
|
LabelPosition["Top"] = "Top";
|
|
14745
14745
|
/**
|
|
14746
|
-
*
|
|
14746
|
+
* The label is positioned at the bottom center of the rating component.
|
|
14747
14747
|
*/
|
|
14748
14748
|
LabelPosition["Bottom"] = "Bottom";
|
|
14749
14749
|
/**
|
|
14750
|
-
*
|
|
14750
|
+
* The label is positioned at the left side of the rating component.
|
|
14751
14751
|
*/
|
|
14752
14752
|
LabelPosition["Left"] = "Left";
|
|
14753
14753
|
/**
|
|
14754
|
-
*
|
|
14754
|
+
* The label is positioned at the right side of the rating component.
|
|
14755
14755
|
*/
|
|
14756
14756
|
LabelPosition["Right"] = "Right";
|
|
14757
14757
|
})(LabelPosition || (LabelPosition = {}));
|
|
14758
14758
|
/**
|
|
14759
|
-
* Defines the
|
|
14759
|
+
* Defines the precision type of the rating.
|
|
14760
|
+
* It is used to component the granularity of the rating, allowing users to provide ratings with varying levels of precision.
|
|
14760
14761
|
*/
|
|
14761
14762
|
var PrecisionType;
|
|
14762
14763
|
(function (PrecisionType) {
|
|
14763
14764
|
/**
|
|
14764
|
-
*
|
|
14765
|
+
* The rating is increased in whole number increments.
|
|
14765
14766
|
*/
|
|
14766
14767
|
PrecisionType["Full"] = "Full";
|
|
14767
14768
|
/**
|
|
14768
|
-
*
|
|
14769
|
+
* The rating is increased in increments of 0.5 (half).
|
|
14769
14770
|
*/
|
|
14770
14771
|
PrecisionType["Half"] = "Half";
|
|
14771
14772
|
/**
|
|
14772
|
-
*
|
|
14773
|
+
* The rating is increased in increments of 0.25 (quarter).
|
|
14773
14774
|
*/
|
|
14774
14775
|
PrecisionType["Quarter"] = "Quarter";
|
|
14775
14776
|
/**
|
|
14776
|
-
*
|
|
14777
|
+
* The rating is increased in increments of 0.1.
|
|
14777
14778
|
*/
|
|
14778
14779
|
PrecisionType["Exact"] = "Exact";
|
|
14779
14780
|
})(PrecisionType || (PrecisionType = {}));
|
|
14781
|
+
/**
|
|
14782
|
+
* The Rating component allows the user to rate something by clicking on a set of symbols on a numeric scale.
|
|
14783
|
+
* This allows users to provide feedback or ratings for products, services, or content.
|
|
14784
|
+
*
|
|
14785
|
+
* ```html
|
|
14786
|
+
* <input id="rating">
|
|
14787
|
+
* ```
|
|
14788
|
+
* ```typescript
|
|
14789
|
+
* <script>
|
|
14790
|
+
* let ratingObj: Rating = new Rating();
|
|
14791
|
+
* ratingObj.appendTo('#rating');
|
|
14792
|
+
* </script>
|
|
14793
|
+
* ```
|
|
14794
|
+
*/
|
|
14780
14795
|
let Rating = class Rating extends Component {
|
|
14781
14796
|
/**
|
|
14782
14797
|
* Constructor for creating the widget
|
|
@@ -14852,7 +14867,7 @@ let Rating = class Rating extends Component {
|
|
|
14852
14867
|
attributes(this.ratingItemList, { 'aria-label': 'rating', 'role': 'slider' });
|
|
14853
14868
|
this.wrapper.appendChild(this.ratingItemList);
|
|
14854
14869
|
EventHandler.add(this.ratingItemList, 'touchmove', (e) => this.touchMoveHandler(e), this);
|
|
14855
|
-
EventHandler.add(this.ratingItemList,
|
|
14870
|
+
EventHandler.add(this.ratingItemList, Browser.touchEndEvent, this.touchEndHandler, this);
|
|
14856
14871
|
}
|
|
14857
14872
|
touchMoveHandler(e) {
|
|
14858
14873
|
const rect = this.ratingItemList.getBoundingClientRect();
|
|
@@ -14938,7 +14953,7 @@ let Rating = class Rating extends Component {
|
|
|
14938
14953
|
target: '.e-rating-item-container', windowCollision: true,
|
|
14939
14954
|
opensOn: 'Custom', cssClass: 'e-rating-tooltip'
|
|
14940
14955
|
});
|
|
14941
|
-
this.tooltipObj.appendTo(
|
|
14956
|
+
this.tooltipObj.appendTo(this.ratingItemList);
|
|
14942
14957
|
}
|
|
14943
14958
|
else {
|
|
14944
14959
|
if (!isNullOrUndefined(this.tooltipObj)) {
|
|
@@ -15406,12 +15421,12 @@ __decorate$8([
|
|
|
15406
15421
|
__decorate$8([
|
|
15407
15422
|
Property(false)
|
|
15408
15423
|
], Rating.prototype, "disabled", void 0);
|
|
15409
|
-
__decorate$8([
|
|
15410
|
-
Property(true)
|
|
15411
|
-
], Rating.prototype, "enableAnimation", void 0);
|
|
15412
15424
|
__decorate$8([
|
|
15413
15425
|
Property('')
|
|
15414
15426
|
], Rating.prototype, "emptyTemplate", void 0);
|
|
15427
|
+
__decorate$8([
|
|
15428
|
+
Property(true)
|
|
15429
|
+
], Rating.prototype, "enableAnimation", void 0);
|
|
15415
15430
|
__decorate$8([
|
|
15416
15431
|
Property(false)
|
|
15417
15432
|
], Rating.prototype, "enableSingleSelection", void 0);
|