@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.
- package/CHANGELOG.md +15 -0
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +19 -4
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +19 -4
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/color-picker/color-picker.js +19 -4
|
@@ -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
|
}
|