@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.
@@ -11657,7 +11657,7 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
11657
11657
  hsvContainer.appendChild(this.createElement('div', { className: HSVAREA }));
11658
11658
  var dragHandler = this.createElement('span', { className: HANDLER, attrs: { 'tabindex': '0' } });
11659
11659
  hsvContainer.appendChild(dragHandler);
11660
- if (this.value === null) {
11660
+ if (this.value === null || this.value === '') {
11661
11661
  this.value = '#008000ff';
11662
11662
  }
11663
11663
  this.rgb = this.hexToRgb(this.value);
@@ -12460,12 +12460,23 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12460
12460
  };
12461
12461
  ColorPicker.prototype.paletteKeyDown = function (e) {
12462
12462
  var target = e.target;
12463
- if (!target.classList.contains(PALETTES)) {
12464
- return;
12465
- }
12466
12463
  var selectedEle;
12467
12464
  var idx;
12468
12465
  var tiles = [].slice.call(selectAll('.' + TILE, target));
12466
+ if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && !e.shiftKey)) {
12467
+ if (this.modeSwitcher || this.showButtons) {
12468
+ this.getPopupEle().querySelector('.e-btn').focus();
12469
+ e.preventDefault();
12470
+ e.stopPropagation();
12471
+ }
12472
+ }
12473
+ else if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && e.shiftKey)) {
12474
+ if (this.splitBtn) {
12475
+ this.splitBtn.element.focus();
12476
+ e.preventDefault();
12477
+ e.stopPropagation();
12478
+ }
12479
+ }
12469
12480
  var prevSelectedEle = (tiles.filter(function (tile) { return tile.classList.contains('e-selected'); })).pop();
12470
12481
  switch (!e.altKey && e.keyCode) {
12471
12482
  case 39:
@@ -13008,6 +13019,10 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
13008
13019
  preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));
13009
13020
  }
13010
13021
  }
13022
+ else if (this.noColor && this.mode === 'Palette' && this.value === '') {
13023
+ var preview = this.splitBtn && select('.' + SPLITPREVIEW, this.splitBtn.element);
13024
+ preview.style.backgroundColor = '';
13025
+ }
13011
13026
  else {
13012
13027
  this.value = oldProp.value;
13013
13028
  }