@syncfusion/ej2-inputs 21.2.6 → 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.
@@ -7994,7 +7994,10 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
7994
7994
  break;
7995
7995
  case 'template':
7996
7996
  var ejInstance = getValue('ej2_instances', this.element);
7997
- if (!ejInstance[0].isReact) {
7997
+ if (ejInstance[0].isReact) {
7998
+ this.reRenderFileList();
7999
+ }
8000
+ else {
7998
8001
  this.clearAll();
7999
8002
  }
8000
8003
  break;
@@ -11654,7 +11657,7 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
11654
11657
  hsvContainer.appendChild(this.createElement('div', { className: HSVAREA }));
11655
11658
  var dragHandler = this.createElement('span', { className: HANDLER, attrs: { 'tabindex': '0' } });
11656
11659
  hsvContainer.appendChild(dragHandler);
11657
- if (this.value === null) {
11660
+ if (this.value === null || this.value === '') {
11658
11661
  this.value = '#008000ff';
11659
11662
  }
11660
11663
  this.rgb = this.hexToRgb(this.value);
@@ -12457,12 +12460,23 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12457
12460
  };
12458
12461
  ColorPicker.prototype.paletteKeyDown = function (e) {
12459
12462
  var target = e.target;
12460
- if (!target.classList.contains(PALETTES)) {
12461
- return;
12462
- }
12463
12463
  var selectedEle;
12464
12464
  var idx;
12465
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
+ }
12466
12480
  var prevSelectedEle = (tiles.filter(function (tile) { return tile.classList.contains('e-selected'); })).pop();
12467
12481
  switch (!e.altKey && e.keyCode) {
12468
12482
  case 39:
@@ -13005,6 +13019,10 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
13005
13019
  preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));
13006
13020
  }
13007
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
+ }
13008
13026
  else {
13009
13027
  this.value = oldProp.value;
13010
13028
  }