@syncfusion/ej2-image-editor 26.1.40 → 26.2.4

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.
Files changed (60) hide show
  1. package/dist/ej2-image-editor.umd.min.js +2 -2
  2. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-image-editor.es2015.js +197 -40
  4. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  5. package/dist/es6/ej2-image-editor.es5.js +196 -40
  6. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  7. package/dist/global/ej2-image-editor.min.js +2 -2
  8. package/dist/global/ej2-image-editor.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/hotfix/26.1.35_Vol2.txt +1 -0
  11. package/package.json +12 -12
  12. package/src/image-editor/action/draw.js +1 -2
  13. package/src/image-editor/action/export.js +11 -7
  14. package/src/image-editor/action/selection.d.ts +1 -0
  15. package/src/image-editor/action/selection.js +49 -1
  16. package/src/image-editor/action/transform.js +2 -1
  17. package/src/image-editor/action/undo-redo.js +4 -2
  18. package/src/image-editor/base/image-editor.d.ts +4 -1
  19. package/src/image-editor/base/image-editor.js +62 -10
  20. package/src/image-editor/base/interface.d.ts +4 -0
  21. package/src/image-editor/renderer/toolbar.d.ts +1 -0
  22. package/src/image-editor/renderer/toolbar.js +67 -17
  23. package/styles/bootstrap-dark.css +0 -2
  24. package/styles/bootstrap.css +0 -2
  25. package/styles/bootstrap4.css +2 -0
  26. package/styles/bootstrap5-dark.css +2 -0
  27. package/styles/bootstrap5.css +2 -0
  28. package/styles/fabric-dark.css +1 -2
  29. package/styles/fabric.css +1 -2
  30. package/styles/fluent-dark.css +3 -2
  31. package/styles/fluent.css +3 -2
  32. package/styles/fluent2.css +26 -12
  33. package/styles/highcontrast-light.css +3 -2
  34. package/styles/highcontrast.css +3 -2
  35. package/styles/image-editor/_layout.scss +16 -0
  36. package/styles/image-editor/_theme.scss +34 -1
  37. package/styles/image-editor/bootstrap-dark.css +0 -2
  38. package/styles/image-editor/bootstrap.css +0 -2
  39. package/styles/image-editor/bootstrap4.css +2 -0
  40. package/styles/image-editor/bootstrap5-dark.css +2 -0
  41. package/styles/image-editor/bootstrap5.css +2 -0
  42. package/styles/image-editor/fabric-dark.css +1 -2
  43. package/styles/image-editor/fabric.css +1 -2
  44. package/styles/image-editor/fluent-dark.css +3 -2
  45. package/styles/image-editor/fluent.css +3 -2
  46. package/styles/image-editor/fluent2.css +26 -12
  47. package/styles/image-editor/highcontrast-light.css +3 -2
  48. package/styles/image-editor/highcontrast.css +3 -2
  49. package/styles/image-editor/material-dark.css +0 -2
  50. package/styles/image-editor/material.css +0 -2
  51. package/styles/image-editor/material3-dark.css +2 -3
  52. package/styles/image-editor/material3.css +2 -3
  53. package/styles/image-editor/tailwind-dark.css +2 -2
  54. package/styles/image-editor/tailwind.css +2 -2
  55. package/styles/material-dark.css +0 -2
  56. package/styles/material.css +0 -2
  57. package/styles/material3-dark.css +2 -3
  58. package/styles/material3.css +2 -3
  59. package/styles/tailwind-dark.css +2 -2
  60. package/styles/tailwind.css +2 -2
@@ -639,7 +639,7 @@ var ToolbarModule = /** @class */ (function () {
639
639
  var toolbarItems = [];
640
640
  if (isOkBtn) {
641
641
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
642
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
642
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
643
643
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
644
644
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
645
645
  }
@@ -721,7 +721,7 @@ var ToolbarModule = /** @class */ (function () {
721
721
  }
722
722
  if (isApplyOption) {
723
723
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
724
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
724
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
725
725
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
726
726
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
727
727
  }
@@ -865,7 +865,7 @@ var ToolbarModule = /** @class */ (function () {
865
865
  };
866
866
  ToolbarModule.prototype.widthAspectRatio = function (e) {
867
867
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
868
- if (e.keyCode === 109) {
868
+ if (e.keyCode === 109 || e.keyCode === 9) {
869
869
  return;
870
870
  }
871
871
  var parent = this.parent;
@@ -909,7 +909,7 @@ var ToolbarModule = /** @class */ (function () {
909
909
  };
910
910
  ToolbarModule.prototype.heightAspectRatio = function (e) {
911
911
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
912
- if (e.keyCode === 109) {
912
+ if (e.keyCode === 109 || e.keyCode === 9) {
913
913
  return;
914
914
  }
915
915
  var parent = this.parent;
@@ -977,7 +977,8 @@ var ToolbarModule = /** @class */ (function () {
977
977
  placeholder: isResize ? null : height, format: '###.## px' })
978
978
  });
979
979
  if (!this.isAspectRatio) {
980
- toolbarItems.push({ id: id + '_aspectratio', prefixIcon: 'e-icons e-lock', align: 'Center', tooltipText: this.l10n.getConstant('AspectRatio'), type: 'Button' });
980
+ toolbarItems.push({ id: id + '_aspectratio', prefixIcon: 'e-icons e-lock', align: 'Center',
981
+ tooltipText: this.l10n.getConstant('AspectRatio'), type: 'Button', tabIndex: 0 });
981
982
  this.isAspectRatio = true;
982
983
  }
983
984
  else {
@@ -986,7 +987,7 @@ var ToolbarModule = /** @class */ (function () {
986
987
  }
987
988
  if (!Browser.isDevice) {
988
989
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
989
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
990
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
990
991
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
991
992
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
992
993
  }
@@ -1631,7 +1632,7 @@ var ToolbarModule = /** @class */ (function () {
1631
1632
  { id: 'svg', text: 'SVG' }
1632
1633
  ];
1633
1634
  var inputObj = new TextBox({
1634
- placeholder: this.l10n.getConstant('ImageName'),
1635
+ placeholder: this.l10n.getConstant('ImageName')
1635
1636
  });
1636
1637
  inputObj.appendTo('#' + id + '_imgNametext');
1637
1638
  var qualityContainer = document.getElementById(id + '_imgQualitydiv');
@@ -1802,7 +1803,7 @@ var ToolbarModule = /** @class */ (function () {
1802
1803
  else {
1803
1804
  imageNameLabel = document.getElementById(id + '_imageNameLabel');
1804
1805
  }
1805
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/tslint/config */
1806
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1806
1807
  tempCanvas.toBlob((function (blob) {
1807
1808
  fileSize = Math.floor(blob.size / 1024);
1808
1809
  if (fileSize > 1000) {
@@ -1882,7 +1883,7 @@ var ToolbarModule = /** @class */ (function () {
1882
1883
  }
1883
1884
  if (!Browser.isDevice) {
1884
1885
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
1885
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
1886
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
1886
1887
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
1887
1888
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
1888
1889
  }
@@ -1959,7 +1960,7 @@ var ToolbarModule = /** @class */ (function () {
1959
1960
  parent.notify('selection', { prop: 'getCurrentDrawingShape', value: { obj: obj } });
1960
1961
  if (obj['shape'] !== 'path') {
1961
1962
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
1962
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
1963
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
1963
1964
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
1964
1965
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
1965
1966
  }
@@ -2573,7 +2574,7 @@ var ToolbarModule = /** @class */ (function () {
2573
2574
  }
2574
2575
  if (!Browser.isDevice) {
2575
2576
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
2576
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
2577
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
2577
2578
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
2578
2579
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
2579
2580
  }
@@ -2871,6 +2872,15 @@ var ToolbarModule = /** @class */ (function () {
2871
2872
  args.toolbarItems = ['fillColor', 'strokeColor', 'strokeWidth', 'z-order', 'duplicate', 'remove'];
2872
2873
  }
2873
2874
  this.initShapesToolbarItem(args.toolbarItems);
2875
+ if (parent.activeObj.shape === 'image') {
2876
+ var actObj = extend({}, parent.activeObj, {}, true);
2877
+ parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
2878
+ parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null, isPreventClearRect: null, isFrame: true } });
2879
+ parent.activeObj = actObj;
2880
+ parent.notify('draw', { prop: 'drawObject', onPropertyChange: false, value: { canvas: 'duplicate', obj: parent.activeObj,
2881
+ isCropRatio: null, points: null, isPreventDrag: true } });
2882
+ this.renderQAT(false);
2883
+ }
2874
2884
  break;
2875
2885
  case 'text':
2876
2886
  if (Browser.isDevice) {
@@ -2954,8 +2964,46 @@ var ToolbarModule = /** @class */ (function () {
2954
2964
  parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null, isPreventClearRect: null, isFrame: true } });
2955
2965
  break;
2956
2966
  }
2957
- this.currToolbar = type;
2958
2967
  this.refreshDropDownBtn(isCropping);
2968
+ this.updateKBDNavigation(type);
2969
+ this.currToolbar = type;
2970
+ };
2971
+ ToolbarModule.prototype.updateKBDNavigation = function (type) {
2972
+ var parent = this.parent;
2973
+ var id = parent.element.id;
2974
+ if (!parent.isKBDNavigation || this.currToolbar === type) {
2975
+ return;
2976
+ }
2977
+ if (this.isToolbar()) {
2978
+ var tbar = parent.element.querySelectorAll('#' + id + '_toolbar')[0];
2979
+ var tbarInitialChild = void 0;
2980
+ var tbarInitialBtn_1;
2981
+ if (tbar) {
2982
+ tbarInitialChild = tbar.querySelector('.e-toolbar-center');
2983
+ if (!tbarInitialChild || !tbarInitialChild.children[0]) {
2984
+ return;
2985
+ }
2986
+ tbarInitialBtn_1 = tbarInitialChild.children[0].querySelector('.e-btn');
2987
+ var tempElem = tbarInitialChild.children[1];
2988
+ if (tempElem) {
2989
+ tempElem = tempElem.children[0];
2990
+ }
2991
+ if (tempElem) {
2992
+ tempElem = tempElem.children[0];
2993
+ }
2994
+ if (type === 'resize' && tempElem) {
2995
+ tbarInitialBtn_1 = tempElem;
2996
+ }
2997
+ if (tbarInitialBtn_1) {
2998
+ if (type === 'main') {
2999
+ setTimeout(function () { return tbarInitialBtn_1.focus(); }, 50);
3000
+ }
3001
+ else {
3002
+ tbarInitialBtn_1.focus();
3003
+ }
3004
+ }
3005
+ }
3006
+ }
2959
3007
  };
2960
3008
  ToolbarModule.prototype.performCropTransformClick = function (shape, isTransform) {
2961
3009
  var parent = this.parent;
@@ -3021,7 +3069,7 @@ var ToolbarModule = /** @class */ (function () {
3021
3069
  }
3022
3070
  if (!Browser.isDevice) {
3023
3071
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
3024
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
3072
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
3025
3073
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
3026
3074
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
3027
3075
  }
@@ -3074,7 +3122,7 @@ var ToolbarModule = /** @class */ (function () {
3074
3122
  if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Default') > -1)) {
3075
3123
  toolbarItems.push({ id: id + '_default', prefixIcon: 'e-icons e-none', cssClass: 'top-icon e-none',
3076
3124
  tooltipText: this.l10n.getConstant('Default'), align: 'Center',
3077
- template: '<div class="filter-wrapper" style="box-sizing: content-box;"><canvas id=' + id + '_defaultCanvas' + '></canvas><div style="text-align:center;"><span>' + this.l10n.getConstant('Default') + '</span></div></div>' });
3125
+ template: '<div class="filter-wrapper" style="box-sizing: content-box;"><canvas id=' + id + '_defaultCanvas' + ' tabindex=0></canvas><div style="text-align:center;"><span>' + this.l10n.getConstant('Default') + '</span></div></div>' });
3078
3126
  }
3079
3127
  if (isNullOrUndefined(parent.toolbar) || !isCustomized || (parent.toolbar && parent.toolbar.indexOf('Chrome') > -1)) {
3080
3128
  toolbarItems.push({ id: id + '_chrome', prefixIcon: 'e-icons e-none', cssClass: 'top-icon e-none',
@@ -3147,7 +3195,7 @@ var ToolbarModule = /** @class */ (function () {
3147
3195
  }
3148
3196
  if (!Browser.isDevice) {
3149
3197
  toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
3150
- tooltipText: this.l10n.getConstant('OK'), align: 'Right' });
3198
+ tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
3151
3199
  toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
3152
3200
  tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
3153
3201
  }
@@ -5415,8 +5463,10 @@ var ToolbarModule = /** @class */ (function () {
5415
5463
  }
5416
5464
  parent.notify('selection', { prop: 'setSliderActive', onPropertyChange: false, value: { bool: false } });
5417
5465
  if (type === 'transparency') {
5418
- parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
5419
- parent.element.querySelector('#' + parent.element.id + '_transparency').click();
5466
+ setTimeout(function () {
5467
+ parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
5468
+ parent.element.querySelector('#' + parent.element.id + '_transparency').click();
5469
+ }, 50);
5420
5470
  }
5421
5471
  }
5422
5472
  });
@@ -757,8 +757,6 @@
757
757
  background: inherit;
758
758
  border: none;
759
759
  margin-top: 2px;
760
- background: #131313;
761
- color: #f0f0f0;
762
760
  }
763
761
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
764
762
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 2px;
762
- background: #f8f8f8;
763
- color: #333;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -770,6 +770,8 @@
770
770
  -webkit-box-shadow: none;
771
771
  box-shadow: none;
772
772
  color: #fff;
773
+ -webkit-box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important;
774
+ box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important; /* stylelint-disable-line declaration-no-important */
773
775
  }
774
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
775
777
  background: #545b62;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 0;
762
- background: #333232;
763
- color: #dadada;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -776,6 +774,7 @@
776
774
  -webkit-box-shadow: none;
777
775
  box-shadow: none;
778
776
  color: #fff;
777
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
779
778
  }
780
779
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
781
780
  background: #6f6c6c;
package/styles/fabric.css CHANGED
@@ -762,8 +762,6 @@
762
762
  background: inherit;
763
763
  border: none;
764
764
  margin-top: 0;
765
- background: #fff;
766
- color: #333;
767
765
  }
768
766
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
769
767
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -779,6 +777,7 @@
779
777
  -webkit-box-shadow: none;
780
778
  box-shadow: none;
781
779
  color: #333;
780
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
782
781
  }
783
782
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
784
783
  background: #c8c8c8;
@@ -772,8 +772,6 @@
772
772
  background: inherit;
773
773
  border: none;
774
774
  margin-top: 2px;
775
- background: #252423;
776
- color: #a19f9d;
777
775
  }
778
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
779
777
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -789,6 +787,9 @@
789
787
  -webkit-box-shadow: none;
790
788
  box-shadow: none;
791
789
  color: #fff;
790
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
791
+ -webkit-box-shadow: inset 0 0 0 1px !important;
792
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
792
793
  }
793
794
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
794
795
  background: #292827;
package/styles/fluent.css CHANGED
@@ -772,8 +772,6 @@
772
772
  background: inherit;
773
773
  border: none;
774
774
  margin-top: 2px;
775
- background: #f3f2f1;
776
- color: #605e5c;
777
775
  }
778
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
779
777
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -789,6 +787,9 @@
789
787
  -webkit-box-shadow: none;
790
788
  box-shadow: none;
791
789
  color: #323130;
790
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
791
+ -webkit-box-shadow: inset 0 0 0 1px !important;
792
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
792
793
  }
793
794
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
794
795
  background: #edebe9;
@@ -47,7 +47,7 @@
47
47
  --color-sf-flyout-bg-color-pressed: #e0e0e0;
48
48
  --color-sf-flyout-bg-color-selected: #ebebeb;
49
49
  --color-sf-flyout-bg-color-focus: #f5f5f5;
50
- --color-sf-overlay-bg-color: #000;
50
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
51
51
  --color-sf-table-bg-color-hover: #f5f5f5;
52
52
  --color-sf-table-bg-color-pressed: #e0e0e0;
53
53
  --color-sf-table-bg-color-selected: #ebf3fc;
@@ -369,7 +369,7 @@
369
369
  --color-sf-flyout-bg-color-pressed: var(--color-sf-black);
370
370
  --color-sf-flyout-bg-color-selected: #383838;
371
371
  --color-sf-flyout-bg-color-focus: var(--color-sf-flyout-bg-color-hover);
372
- --color-sf-overlay-bg-color: rgba($black, .4);
372
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
373
373
  --color-sf-table-bg-color-hover: #383838;
374
374
  --color-sf-table-bg-color-pressed: #2e2e2e;
375
375
  --color-sf-table-bg-color-selected: #082338;
@@ -711,9 +711,9 @@
711
711
  --color-sf-flyout-bg-color-pressed: var(--color-sf-content-bg-color-hover);
712
712
  --color-sf-flyout-bg-color-selected: var(--color-sf-content-bg-color-hover);
713
713
  --color-sf-flyout-bg-color-focus: var(--color-sf-content-bg-color-hover);
714
- --color-sf-overlay-bg-color: rgba($black, .4);
715
- --color-sf-table-bg-color-hover: var(--color-sf-black);
716
- --color-sf-table-bg-color-pressed: var(--color-sf-black);
714
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
715
+ --color-sf-table-bg-color-hover: #1a3bff;
716
+ --color-sf-table-bg-color-pressed: #1a3bff;
717
717
  --color-sf-table-bg-color-selected: #1a3bff;
718
718
  --color-sf-content-text-color: #fff;
719
719
  --color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
@@ -732,12 +732,12 @@
732
732
  --color-sf-flyout-text-color-selected: var(--color-sf-content-text-color-hover);
733
733
  --color-sf-flyout-text-color-focus: var(--color-sf-content-text-color-hover);
734
734
  --color-sf-flyout-text-color-disabled: var(--color-sf-content-text-color-disabled);
735
- --color-sf-table-text-color-hover: var(--color-sf-content-text-color-hover);
736
- --color-sf-table-text-color-pressed: var(--color-sf-content-text-color-hover);
737
- --color-sf-table-text-color-selected: var(--color-sf-content-text-color-hover);
735
+ --color-sf-table-text-color-hover: #000;
736
+ --color-sf-table-text-color-pressed: #000;
737
+ --color-sf-table-text-color-selected: #000;
738
738
  --color-sf-icon-color: #fff;
739
- --color-sf-icon-color-hover: var(--color-sf-content-text-color-hover);
740
- --color-sf-icon-color-pressed: var(--color-sf-content-text-color-hover);
739
+ --color-sf-icon-color-hover: #000;
740
+ --color-sf-icon-color-pressed: #000;
741
741
  --color-sf-icon-color-disabled: var(--color-sf-content-text-color-disabled);
742
742
  --color-sf-border-light: #fff;
743
743
  --color-sf-border: var(--color-sf-border-light);
@@ -1345,6 +1345,11 @@
1345
1345
  .e-image-editor.e-bigger .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
1346
1346
  line-height: 1;
1347
1347
  }
1348
+ .e-bigger .e-image-editor .e-dropdown-btn.e-ie-ddb-popup,
1349
+ .e-image-editor.e-bigger .e-dropdown-btn.e-ie-ddb-popup {
1350
+ padding-left: 16px;
1351
+ }
1352
+
1348
1353
  .e-image-editor {
1349
1354
  border: 1px solid var(--color-sf-border-light);
1350
1355
  position: relative;
@@ -1514,6 +1519,13 @@
1514
1519
  margin-left: calc(50% - 137px);
1515
1520
  height: 54px !important; /* stylelint-disable-line declaration-no-important */
1516
1521
  }
1522
+ .e-image-editor .e-dropdown-btn.e-ie-ddb-popup {
1523
+ padding-left: 14px;
1524
+ }
1525
+ .e-image-editor .e-dropdown-btn, .e-image-editor .e-dropdown-btn span {
1526
+ font-weight: normal;
1527
+ }
1528
+
1517
1529
  .e-ie-straighten-value-span,
1518
1530
  .e-ie-straighten-span,
1519
1531
  .e-ie-toolbar-straighten {
@@ -1807,8 +1819,6 @@
1807
1819
  background: inherit;
1808
1820
  border: none;
1809
1821
  margin-top: 0;
1810
- background: var(--color-sf-content-bg-color-alt1);
1811
- color: var(--color-sf-icon-color);
1812
1822
  }
1813
1823
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
1814
1824
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -1825,6 +1835,10 @@
1825
1835
  box-shadow: none;
1826
1836
  color: var(--color-sf-secondary-text-color-hover);
1827
1837
  }
1838
+ .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:focus-visible {
1839
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important;
1840
+ box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important; /* stylelint-disable-line declaration-no-important */
1841
+ }
1828
1842
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
1829
1843
  background: var(--color-sf-secondary-bg-color-pressed);
1830
1844
  -webkit-box-shadow: none;
@@ -755,8 +755,7 @@
755
755
  background: inherit;
756
756
  border: none;
757
757
  margin-top: 0;
758
- background: #fff;
759
- color: #000;
758
+ border: 2px solid #000;
760
759
  }
761
760
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
762
761
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -772,6 +771,8 @@
772
771
  -webkit-box-shadow: none;
773
772
  box-shadow: none;
774
773
  color: #000;
774
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
775
+ border: 2px solid #fff !important; /* stylelint-disable-line declaration-no-important */
775
776
  }
776
777
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
777
778
  background: #400074;
@@ -764,8 +764,7 @@
764
764
  background: inherit;
765
765
  border: none;
766
766
  margin-top: 0;
767
- background: #000;
768
- color: #fff;
767
+ border: 2px solid #000;
769
768
  }
770
769
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
771
770
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -781,6 +780,8 @@
781
780
  -webkit-box-shadow: none;
782
781
  box-shadow: none;
783
782
  color: #fff;
783
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
784
+ border: 2px solid #fff !important; /* stylelint-disable-line declaration-no-important */
784
785
  }
785
786
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
786
787
  background: #ffd939;
@@ -185,6 +185,12 @@
185
185
  margin-top: 5px !important; /* stylelint-disable-line declaration-no-important */
186
186
  }
187
187
  }
188
+
189
+ @if $skin-name == 'fluent2' {
190
+ & .e-dropdown-btn.e-ie-ddb-popup {
191
+ padding-left: 16px;
192
+ }
193
+ }
188
194
  }
189
195
 
190
196
  .e-image-editor {
@@ -491,6 +497,16 @@
491
497
  width: 16px !important; /* stylelint-disable-line declaration-no-important */
492
498
  }
493
499
  }
500
+
501
+ @if $skin-name == 'fluent2' {
502
+ & .e-dropdown-btn.e-ie-ddb-popup {
503
+ padding-left: 14px;
504
+ }
505
+ & .e-dropdown-btn,
506
+ & .e-dropdown-btn span {
507
+ font-weight: normal;
508
+ }
509
+ }
494
510
  }
495
511
 
496
512
  .e-ie-img-save-dlg .e-btn {
@@ -36,10 +36,13 @@
36
36
  background: inherit;
37
37
  border: none;
38
38
  margin-top: $image-editor-ddbtn-margin-top;
39
- @if $skin-name == 'bootstrap4' or $skin-name == 'bootstrap5' $skin-name == 'bootstrap5-dark' {
39
+ @if $skin-name == 'bootstrap4' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5-dark' {
40
40
  background: $tbar-default-bg;
41
41
  color: $tbar-default-icon-color;
42
42
  }
43
+ @if $skin-name == 'highcontrast' or $skin-name == 'highcontrast-light' {
44
+ border: 2px solid #000;
45
+ }
43
46
  @if $skin-name == 'Material3' {
44
47
  box-shadow: none;
45
48
  }
@@ -58,6 +61,36 @@
58
61
  background: $btn-focus-bgcolor;
59
62
  box-shadow: none;
60
63
  color: $btn-focus-color;
64
+ @if $skin-name == 'FluentUI' {
65
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
66
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
67
+ }
68
+ @else if $skin-name == 'FluentUI' or $skin-name == 'fabric' or $skin-name == 'fabric-dark' {
69
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
70
+ }
71
+ @else if $skin-name == 'highcontrast' or $skin-name == 'highcontrast-light' {
72
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
73
+ border: 2px solid #fff !important; /* stylelint-disable-line declaration-no-important */
74
+ }
75
+ @else if $skin-name == 'bootstrap4' {
76
+ $color-rgba: rgba(mix(lighten($btn-focus-bgcolor, 50%), $btn-focus-border-color, 15%), .5);
77
+ box-shadow: 0 0 0 .25em $color-rgba !important; /* stylelint-disable-line declaration-no-important */
78
+ }
79
+ @else if $skin-name == 'bootstrap5' {
80
+ box-shadow: $secondary-shadow-focus !important; /* stylelint-disable-line declaration-no-important */
81
+ }
82
+ @else if $skin-name == 'Material3' {
83
+ box-shadow: $shadow-focus-ring1 !important; /* stylelint-disable-line declaration-no-important */
84
+ }
85
+ @else if $skin-name == 'tailwind' {
86
+ box-shadow: 0 0 0 1px #4f46e5 !important; /* stylelint-disable-line declaration-no-important */
87
+ }
88
+ }
89
+
90
+ &:focus-visible {
91
+ @if $skin-name == 'fluent2' {
92
+ box-shadow: $keyboard-focus !important; /* stylelint-disable-line declaration-no-important */
93
+ }
61
94
  }
62
95
 
63
96
  &:active {
@@ -757,8 +757,6 @@
757
757
  background: inherit;
758
758
  border: none;
759
759
  margin-top: 2px;
760
- background: #131313;
761
- color: #f0f0f0;
762
760
  }
763
761
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
764
762
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 2px;
762
- background: #f8f8f8;
763
- color: #333;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -770,6 +770,8 @@
770
770
  -webkit-box-shadow: none;
771
771
  box-shadow: none;
772
772
  color: #fff;
773
+ -webkit-box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important;
774
+ box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important; /* stylelint-disable-line declaration-no-important */
773
775
  }
774
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
775
777
  background: #545b62;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 0;
762
- background: #333232;
763
- color: #dadada;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -776,6 +774,7 @@
776
774
  -webkit-box-shadow: none;
777
775
  box-shadow: none;
778
776
  color: #fff;
777
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
779
778
  }
780
779
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
781
780
  background: #6f6c6c;
@@ -762,8 +762,6 @@
762
762
  background: inherit;
763
763
  border: none;
764
764
  margin-top: 0;
765
- background: #fff;
766
- color: #333;
767
765
  }
768
766
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
769
767
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -779,6 +777,7 @@
779
777
  -webkit-box-shadow: none;
780
778
  box-shadow: none;
781
779
  color: #333;
780
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
782
781
  }
783
782
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
784
783
  background: #c8c8c8;
@@ -772,8 +772,6 @@
772
772
  background: inherit;
773
773
  border: none;
774
774
  margin-top: 2px;
775
- background: #252423;
776
- color: #a19f9d;
777
775
  }
778
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
779
777
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -789,6 +787,9 @@
789
787
  -webkit-box-shadow: none;
790
788
  box-shadow: none;
791
789
  color: #fff;
790
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
791
+ -webkit-box-shadow: inset 0 0 0 1px !important;
792
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
792
793
  }
793
794
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
794
795
  background: #292827;