@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
|
@@ -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
|
}
|