@syncfusion/ej2-inputs 21.2.8 → 21.2.9

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.
@@ -11414,7 +11414,7 @@ let ColorPicker = class ColorPicker extends Component {
11414
11414
  hsvContainer.appendChild(this.createElement('div', { className: HSVAREA }));
11415
11415
  const dragHandler = this.createElement('span', { className: HANDLER, attrs: { 'tabindex': '0' } });
11416
11416
  hsvContainer.appendChild(dragHandler);
11417
- if (this.value === null) {
11417
+ if (this.value === null || this.value === '') {
11418
11418
  this.value = '#008000ff';
11419
11419
  }
11420
11420
  this.rgb = this.hexToRgb(this.value);
@@ -12211,12 +12211,23 @@ let ColorPicker = class ColorPicker extends Component {
12211
12211
  }
12212
12212
  paletteKeyDown(e) {
12213
12213
  const target = e.target;
12214
- if (!target.classList.contains(PALETTES)) {
12215
- return;
12216
- }
12217
12214
  let selectedEle;
12218
12215
  let idx;
12219
12216
  const tiles = [].slice.call(selectAll('.' + TILE, target));
12217
+ if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && !e.shiftKey)) {
12218
+ if (this.modeSwitcher || this.showButtons) {
12219
+ this.getPopupEle().querySelector('.e-btn').focus();
12220
+ e.preventDefault();
12221
+ e.stopPropagation();
12222
+ }
12223
+ }
12224
+ else if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && e.shiftKey)) {
12225
+ if (this.splitBtn) {
12226
+ this.splitBtn.element.focus();
12227
+ e.preventDefault();
12228
+ e.stopPropagation();
12229
+ }
12230
+ }
12220
12231
  const prevSelectedEle = (tiles.filter((tile) => tile.classList.contains('e-selected'))).pop();
12221
12232
  switch (!e.altKey && e.keyCode) {
12222
12233
  case 39:
@@ -12756,6 +12767,10 @@ let ColorPicker = class ColorPicker extends Component {
12756
12767
  preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));
12757
12768
  }
12758
12769
  }
12770
+ else if (this.noColor && this.mode === 'Palette' && this.value === '') {
12771
+ const preview = this.splitBtn && select('.' + SPLITPREVIEW, this.splitBtn.element);
12772
+ preview.style.backgroundColor = '';
12773
+ }
12759
12774
  else {
12760
12775
  this.value = oldProp.value;
12761
12776
  }