@syncfusion/ej2-inputs 30.2.6 → 31.1.20

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.
@@ -639,7 +639,7 @@ var Input;
639
639
  else {
640
640
  parentElement.classList.add(CLASSNAMES.NOFLOATLABEL);
641
641
  var floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];
642
- if (floatTextContent) {
642
+ if (floatTextContent && floatTextContent.children[0]) {
643
643
  floatTextContent.children[0].textContent = '';
644
644
  }
645
645
  else {
@@ -11908,7 +11908,8 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
11908
11908
  if (this.formElement) {
11909
11909
  EventHandler.add(this.formElement, 'reset', this.formResetHandler, this);
11910
11910
  }
11911
- var localeText = { Apply: 'Apply', Cancel: 'Cancel', ModeSwitcher: 'Switch Mode', RecentColors: 'Recent colors' };
11911
+ var localeText = { Apply: 'Apply', Cancel: 'Cancel', ModeSwitcher: 'Switch Mode', RecentColors: 'Recent colors',
11912
+ CurrentColor: 'Current', PreviousColor: 'Previous' };
11912
11913
  this.l10n = new L10n('colorpicker', localeText, this.locale);
11913
11914
  if (ele.getAttribute('ejs-for') && !ele.getAttribute('name')) {
11914
11915
  ele.setAttribute('name', ele.id);
@@ -12367,11 +12368,11 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12367
12368
  ColorPicker.prototype.createPreview = function (parentEle) {
12368
12369
  var previewContainer = this.createElement('div', { className: PREVIEW });
12369
12370
  parentEle.appendChild(previewContainer);
12370
- var preview = this.createElement('span', { className: 'e-preview ' + CURRENT });
12371
+ var preview = this.createElement('span', { className: 'e-preview ' + CURRENT, attrs: { title: this.l10n.getConstant('CurrentColor') } });
12371
12372
  previewContainer.appendChild(preview);
12372
12373
  var colorValue = this.convertToRgbString(this.rgb);
12373
12374
  preview.style.backgroundColor = colorValue;
12374
- preview = this.createElement('span', { className: 'e-preview ' + PREVIOUS });
12375
+ preview = this.createElement('span', { className: 'e-preview ' + PREVIOUS, attrs: { title: this.l10n.getConstant('PreviousColor') } });
12375
12376
  previewContainer.appendChild(preview);
12376
12377
  preview.style.backgroundColor = colorValue;
12377
12378
  };