@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.
@@ -636,7 +636,7 @@ var Input;
636
636
  else {
637
637
  parentElement.classList.add(CLASSNAMES.NOFLOATLABEL);
638
638
  const floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];
639
- if (floatTextContent) {
639
+ if (floatTextContent && floatTextContent.children[0]) {
640
640
  floatTextContent.children[0].textContent = '';
641
641
  }
642
642
  else {
@@ -11665,7 +11665,8 @@ let ColorPicker = class ColorPicker extends Component {
11665
11665
  if (this.formElement) {
11666
11666
  EventHandler.add(this.formElement, 'reset', this.formResetHandler, this);
11667
11667
  }
11668
- const localeText = { Apply: 'Apply', Cancel: 'Cancel', ModeSwitcher: 'Switch Mode', RecentColors: 'Recent colors' };
11668
+ const localeText = { Apply: 'Apply', Cancel: 'Cancel', ModeSwitcher: 'Switch Mode', RecentColors: 'Recent colors',
11669
+ CurrentColor: 'Current', PreviousColor: 'Previous' };
11669
11670
  this.l10n = new L10n('colorpicker', localeText, this.locale);
11670
11671
  if (ele.getAttribute('ejs-for') && !ele.getAttribute('name')) {
11671
11672
  ele.setAttribute('name', ele.id);
@@ -12119,11 +12120,11 @@ let ColorPicker = class ColorPicker extends Component {
12119
12120
  createPreview(parentEle) {
12120
12121
  const previewContainer = this.createElement('div', { className: PREVIEW });
12121
12122
  parentEle.appendChild(previewContainer);
12122
- let preview = this.createElement('span', { className: 'e-preview ' + CURRENT });
12123
+ let preview = this.createElement('span', { className: 'e-preview ' + CURRENT, attrs: { title: this.l10n.getConstant('CurrentColor') } });
12123
12124
  previewContainer.appendChild(preview);
12124
12125
  const colorValue = this.convertToRgbString(this.rgb);
12125
12126
  preview.style.backgroundColor = colorValue;
12126
- preview = this.createElement('span', { className: 'e-preview ' + PREVIOUS });
12127
+ preview = this.createElement('span', { className: 'e-preview ' + PREVIOUS, attrs: { title: this.l10n.getConstant('PreviousColor') } });
12127
12128
  previewContainer.appendChild(preview);
12128
12129
  preview.style.backgroundColor = colorValue;
12129
12130
  }