@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.6
3
+ * version : 21.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inputs@*",
3
- "_id": "@syncfusion/ej2-inputs@21.2.4",
3
+ "_id": "@syncfusion/ej2-inputs@21.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-pz+63zCejeyIkA39rJIsIvsW420LIgvzOgUFuddToHJYLRhud5Vl1pglmyu7pLyrIAZrL47e6Z7XuSOdbeyN3A==",
5
+ "_integrity": "sha512-02NHXJ1oyYe+Xo8nAJLjd6420EQWAyHivfz8n+kNuvV1uLWJGzRXCL9gNydLzOSmEEZLhaqdLCsRizYLXW3x9Q==",
6
6
  "_location": "/@syncfusion/ej2-inputs",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,8 +39,8 @@
39
39
  "/@syncfusion/ej2-schedule",
40
40
  "/@syncfusion/ej2-vue-inputs"
41
41
  ],
42
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-21.2.4.tgz",
43
- "_shasum": "2492c6485b855591b3f049b8493b531e2f472408",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-inputs/-/ej2-inputs-21.2.8.tgz",
43
+ "_shasum": "1979ac5dcfd13ce9c0ed6408411791b297b3b444",
44
44
  "_spec": "@syncfusion/ej2-inputs@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
46
46
  "author": {
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "bundleDependencies": false,
50
50
  "dependencies": {
51
- "@syncfusion/ej2-base": "~21.2.3",
51
+ "@syncfusion/ej2-base": "~21.2.9",
52
52
  "@syncfusion/ej2-buttons": "~21.2.6",
53
53
  "@syncfusion/ej2-popups": "~21.2.4",
54
54
  "@syncfusion/ej2-splitbuttons": "~21.2.5"
@@ -119,7 +119,7 @@
119
119
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/inputs"
120
120
  },
121
121
  "typings": "index.d.ts",
122
- "version": "21.2.6",
122
+ "version": "21.2.9",
123
123
  "sideEffects": false,
124
124
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
125
125
  }
@@ -383,7 +383,7 @@ var ColorPicker = /** @class */ (function (_super) {
383
383
  hsvContainer.appendChild(this.createElement('div', { className: HSVAREA }));
384
384
  var dragHandler = this.createElement('span', { className: HANDLER, attrs: { 'tabindex': '0' } });
385
385
  hsvContainer.appendChild(dragHandler);
386
- if (this.value === null) {
386
+ if (this.value === null || this.value === '') {
387
387
  this.value = '#008000ff';
388
388
  }
389
389
  this.rgb = this.hexToRgb(this.value);
@@ -1186,12 +1186,23 @@ var ColorPicker = /** @class */ (function (_super) {
1186
1186
  };
1187
1187
  ColorPicker.prototype.paletteKeyDown = function (e) {
1188
1188
  var target = e.target;
1189
- if (!target.classList.contains(PALETTES)) {
1190
- return;
1191
- }
1192
1189
  var selectedEle;
1193
1190
  var idx;
1194
1191
  var tiles = [].slice.call(selectAll('.' + TILE, target));
1192
+ if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && !e.shiftKey)) {
1193
+ if (this.modeSwitcher || this.showButtons) {
1194
+ this.getPopupEle().querySelector('.e-btn').focus();
1195
+ e.preventDefault();
1196
+ e.stopPropagation();
1197
+ }
1198
+ }
1199
+ else if ((target.classList.contains('e-palette') || target.classList.contains('e-tile')) && (e.keyCode === 9 && e.shiftKey)) {
1200
+ if (this.splitBtn) {
1201
+ this.splitBtn.element.focus();
1202
+ e.preventDefault();
1203
+ e.stopPropagation();
1204
+ }
1205
+ }
1195
1206
  var prevSelectedEle = (tiles.filter(function (tile) { return tile.classList.contains('e-selected'); })).pop();
1196
1207
  switch (!e.altKey && e.keyCode) {
1197
1208
  case 39:
@@ -1734,6 +1745,10 @@ var ColorPicker = /** @class */ (function (_super) {
1734
1745
  preview.style.backgroundColor = this.convertToRgbString(this.hexToRgb(newProp.value));
1735
1746
  }
1736
1747
  }
1748
+ else if (this.noColor && this.mode === 'Palette' && this.value === '') {
1749
+ var preview = this.splitBtn && select('.' + SPLITPREVIEW, this.splitBtn.element);
1750
+ preview.style.backgroundColor = '';
1751
+ }
1737
1752
  else {
1738
1753
  this.value = oldProp.value;
1739
1754
  }
@@ -228,7 +228,10 @@ var Uploader = /** @class */ (function (_super) {
228
228
  break;
229
229
  case 'template':
230
230
  var ejInstance = getValue('ej2_instances', this.element);
231
- if (!ejInstance[0].isReact) {
231
+ if (ejInstance[0].isReact) {
232
+ this.reRenderFileList();
233
+ }
234
+ else {
232
235
  this.clearAll();
233
236
  }
234
237
  break;