@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.
@@ -8454,13 +8454,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8454
8454
  }
8455
8455
  };
8456
8456
  Uploader.prototype.setCSSClass = function (oldCSSClass) {
8457
- var updatedCssClassValue = this.cssClass;
8458
- if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
8459
- updatedCssClassValue = (this.cssClass.replace(/\s+/g, ' ')).trim();
8460
- }
8461
- if (!isNullOrUndefined(this.cssClass) && updatedCssClassValue !== '') {
8462
- addClass([this.uploadWrapper], updatedCssClassValue.split(updatedCssClassValue.indexOf(',') > -1 ? ',' : ' '));
8463
- }
8464
8457
  var updatedOldCssClass = oldCSSClass;
8465
8458
  if (!isNullOrUndefined(oldCSSClass)) {
8466
8459
  updatedOldCssClass = (oldCSSClass.replace(/\s+/g, ' ')).trim();
@@ -8468,6 +8461,13 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8468
8461
  if (!isNullOrUndefined(oldCSSClass) && updatedOldCssClass !== '') {
8469
8462
  removeClass([this.uploadWrapper], updatedOldCssClass.split(' '));
8470
8463
  }
8464
+ var updatedCssClassValue = this.cssClass;
8465
+ if (!isNullOrUndefined(this.cssClass) && this.cssClass !== '') {
8466
+ updatedCssClassValue = (this.cssClass.replace(/\s+/g, ' ')).trim();
8467
+ }
8468
+ if (!isNullOrUndefined(this.cssClass) && updatedCssClassValue !== '') {
8469
+ addClass([this.uploadWrapper], updatedCssClassValue.split(updatedCssClassValue.indexOf(',') > -1 ? ',' : ' '));
8470
+ }
8471
8471
  };
8472
8472
  Uploader.prototype.wireEvents = function () {
8473
8473
  EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);
@@ -11058,7 +11058,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11058
11058
  var files = this.getFiles(fileData);
11059
11059
  for (var i = 0; i < files.length; i++) {
11060
11060
  if (files[i].statusCode === '5' || files[i].statusCode === '0') {
11061
- if (this.asyncSettings.chunkSize > 0) {
11061
+ if (this.asyncSettings.chunkSize > 0 && this.getCurrentMetaData(files[i], null)) {
11062
11062
  this.retryUpload(this.getCurrentMetaData(files[i], null), fromcanceledStage);
11063
11063
  }
11064
11064
  else {
@@ -15061,49 +15061,64 @@ var EMPTYTEMPLATE = 'e-rating-empty';
15061
15061
  var SELECTEDVALUE = 'e-selected-value';
15062
15062
  var RATINGVALUE = '--rating-value';
15063
15063
  /**
15064
- * Defines the position of the label in the rating.
15064
+ * Defines where to position the label in rating
15065
15065
  */
15066
15066
  var LabelPosition;
15067
15067
  (function (LabelPosition) {
15068
15068
  /**
15069
- * Shows the label above the rating.
15069
+ * The label is positioned at the top center of the rating component.
15070
15070
  */
15071
15071
  LabelPosition["Top"] = "Top";
15072
15072
  /**
15073
- * Shows the label below the rating.
15073
+ * The label is positioned at the bottom center of the rating component.
15074
15074
  */
15075
15075
  LabelPosition["Bottom"] = "Bottom";
15076
15076
  /**
15077
- * Shows the label to the left of rating.
15077
+ * The label is positioned at the left side of the rating component.
15078
15078
  */
15079
15079
  LabelPosition["Left"] = "Left";
15080
15080
  /**
15081
- * Shows the label to the right of rating.
15081
+ * The label is positioned at the right side of the rating component.
15082
15082
  */
15083
15083
  LabelPosition["Right"] = "Right";
15084
15084
  })(LabelPosition || (LabelPosition = {}));
15085
15085
  /**
15086
- * Defines the minimum increase in the value in Rating Control.
15086
+ * Defines the precision type of the rating.
15087
+ * It is used to component the granularity of the rating, allowing users to provide ratings with varying levels of precision.
15087
15088
  */
15088
15089
  var PrecisionType;
15089
15090
  (function (PrecisionType) {
15090
15091
  /**
15091
- * Process the value as whole numbers.
15092
+ * The rating is increased in whole number increments.
15092
15093
  */
15093
15094
  PrecisionType["Full"] = "Full";
15094
15095
  /**
15095
- * Process the value in terms of 0.5 (half).
15096
+ * The rating is increased in increments of 0.5 (half).
15096
15097
  */
15097
15098
  PrecisionType["Half"] = "Half";
15098
15099
  /**
15099
- * Process the value in terms of 0.25 (quarter).
15100
+ * The rating is increased in increments of 0.25 (quarter).
15100
15101
  */
15101
15102
  PrecisionType["Quarter"] = "Quarter";
15102
15103
  /**
15103
- * Process the value in terms of 0.1.
15104
+ * The rating is increased in increments of 0.1.
15104
15105
  */
15105
15106
  PrecisionType["Exact"] = "Exact";
15106
15107
  })(PrecisionType || (PrecisionType = {}));
15108
+ /**
15109
+ * The Rating component allows the user to rate something by clicking on a set of symbols on a numeric scale.
15110
+ * This allows users to provide feedback or ratings for products, services, or content.
15111
+ *
15112
+ * ```html
15113
+ * <input id="rating">
15114
+ * ```
15115
+ * ```typescript
15116
+ * <script>
15117
+ * let ratingObj: Rating = new Rating();
15118
+ * ratingObj.appendTo('#rating');
15119
+ * </script>
15120
+ * ```
15121
+ */
15107
15122
  var Rating = /** @__PURE__ @class */ (function (_super) {
15108
15123
  __extends$9(Rating, _super);
15109
15124
  /**
@@ -15182,7 +15197,7 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
15182
15197
  attributes(this.ratingItemList, { 'aria-label': 'rating', 'role': 'slider' });
15183
15198
  this.wrapper.appendChild(this.ratingItemList);
15184
15199
  EventHandler.add(this.ratingItemList, 'touchmove', function (e) { return _this.touchMoveHandler(e); }, this);
15185
- EventHandler.add(this.ratingItemList, 'touchend', this.touchEndHandler, this);
15200
+ EventHandler.add(this.ratingItemList, Browser.touchEndEvent, this.touchEndHandler, this);
15186
15201
  };
15187
15202
  Rating.prototype.touchMoveHandler = function (e) {
15188
15203
  var rect = this.ratingItemList.getBoundingClientRect();
@@ -15270,7 +15285,7 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
15270
15285
  target: '.e-rating-item-container', windowCollision: true,
15271
15286
  opensOn: 'Custom', cssClass: 'e-rating-tooltip'
15272
15287
  });
15273
- this.tooltipObj.appendTo('#' + this.ratingItemList.id);
15288
+ this.tooltipObj.appendTo(this.ratingItemList);
15274
15289
  }
15275
15290
  else {
15276
15291
  if (!isNullOrUndefined(this.tooltipObj)) {
@@ -15742,12 +15757,12 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
15742
15757
  __decorate$8([
15743
15758
  Property(false)
15744
15759
  ], Rating.prototype, "disabled", void 0);
15745
- __decorate$8([
15746
- Property(true)
15747
- ], Rating.prototype, "enableAnimation", void 0);
15748
15760
  __decorate$8([
15749
15761
  Property('')
15750
15762
  ], Rating.prototype, "emptyTemplate", void 0);
15763
+ __decorate$8([
15764
+ Property(true)
15765
+ ], Rating.prototype, "enableAnimation", void 0);
15751
15766
  __decorate$8([
15752
15767
  Property(false)
15753
15768
  ], Rating.prototype, "enableSingleSelection", void 0);