@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.
@@ -7825,7 +7825,10 @@ let Uploader = class Uploader extends Component {
7825
7825
  break;
7826
7826
  case 'template':
7827
7827
  const ejInstance = getValue('ej2_instances', this.element);
7828
- if (!ejInstance[0].isReact) {
7828
+ if (ejInstance[0].isReact) {
7829
+ this.reRenderFileList();
7830
+ }
7831
+ else {
7829
7832
  this.clearAll();
7830
7833
  }
7831
7834
  break;
@@ -11411,7 +11414,7 @@ let ColorPicker = class ColorPicker extends Component {
11411
11414
  hsvContainer.appendChild(this.createElement('div', { className: HSVAREA }));
11412
11415
  const dragHandler = this.createElement('span', { className: HANDLER, attrs: { 'tabindex': '0' } });
11413
11416
  hsvContainer.appendChild(dragHandler);
11414
- if (this.value === null) {
11417
+ if (this.value === null || this.value === '') {
11415
11418
  this.value = '#008000ff';
11416
11419
  }
11417
11420
  this.rgb = this.hexToRgb(this.value);
@@ -12208,12 +12211,23 @@ let ColorPicker = class ColorPicker extends Component {
12208
12211
  }
12209
12212
  paletteKeyDown(e) {
12210
12213
  const target = e.target;
12211
- if (!target.classList.contains(PALETTES)) {
12212
- return;
12213
- }
12214
12214
  let selectedEle;
12215
12215
  let idx;
12216
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
+ }
12217
12231
  const prevSelectedEle = (tiles.filter((tile) => tile.classList.contains('e-selected'))).pop();
12218
12232
  switch (!e.altKey && e.keyCode) {
12219
12233
  case 39:
@@ -12753,6 +12767,10 @@ let ColorPicker = class ColorPicker extends Component {
12753
12767
  preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));
12754
12768
  }
12755
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
+ }
12756
12774
  else {
12757
12775
  this.value = oldProp.value;
12758
12776
  }