@syncfusion/ej2-splitbuttons 20.1.57 → 20.2.43

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 (74) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/ej2-splitbuttons.umd.min.js +2 -2
  3. package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-splitbuttons.es2015.js +24 -4
  5. package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
  6. package/dist/es6/ej2-splitbuttons.es5.js +24 -4
  7. package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
  8. package/dist/global/ej2-splitbuttons.min.js +2 -2
  9. package/dist/global/ej2-splitbuttons.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/helpers/e2e/dropdownbuttonHelper.js +55 -38
  12. package/helpers/e2e/index.js +10 -8
  13. package/helpers/e2e/progressbuttonHelper.js +52 -35
  14. package/helpers/e2e/splitbuttonHelper.js +58 -41
  15. package/package.json +7 -7
  16. package/src/drop-down-button/drop-down-button-model.d.ts +7 -0
  17. package/src/drop-down-button/drop-down-button.d.ts +7 -0
  18. package/src/drop-down-button/drop-down-button.js +24 -4
  19. package/styles/bootstrap-dark.css +5 -13
  20. package/styles/bootstrap.css +0 -8
  21. package/styles/bootstrap4.css +1 -9
  22. package/styles/bootstrap5-dark.css +14 -0
  23. package/styles/bootstrap5.css +14 -0
  24. package/styles/button-group/_fusionnew-definition.scss +31 -0
  25. package/styles/button-group/_layout.scss +1 -1
  26. package/styles/button-group/_material3-definition.scss +31 -0
  27. package/styles/button-group/_theme.scss +48 -12
  28. package/styles/button-group/bootstrap-dark.css +0 -8
  29. package/styles/button-group/bootstrap.css +0 -8
  30. package/styles/button-group/bootstrap4.css +0 -8
  31. package/styles/button-group/bootstrap5-dark.css +12 -0
  32. package/styles/button-group/bootstrap5.css +12 -0
  33. package/styles/button-group/fabric-dark.css +0 -8
  34. package/styles/button-group/fabric.css +0 -8
  35. package/styles/button-group/fluent-dark.css +15 -23
  36. package/styles/button-group/fluent.css +0 -8
  37. package/styles/button-group/highcontrast-light.css +0 -8
  38. package/styles/button-group/highcontrast.css +0 -8
  39. package/styles/button-group/material-dark.css +0 -8
  40. package/styles/button-group/material.css +0 -8
  41. package/styles/button-group/tailwind-dark.css +8 -12
  42. package/styles/button-group/tailwind.css +8 -12
  43. package/styles/drop-down-button/_fusionnew-definition.scss +51 -0
  44. package/styles/drop-down-button/_layout.scss +4 -2
  45. package/styles/drop-down-button/_material3-definition.scss +51 -0
  46. package/styles/drop-down-button/bootstrap5-dark.css +2 -0
  47. package/styles/drop-down-button/bootstrap5.css +2 -0
  48. package/styles/drop-down-button/icons/_fusionnew.scss +10 -0
  49. package/styles/drop-down-button/icons/_material3.scss +10 -0
  50. package/styles/drop-down-button/tailwind-dark.css +2 -0
  51. package/styles/drop-down-button/tailwind.css +2 -0
  52. package/styles/fabric-dark.css +0 -8
  53. package/styles/fabric.css +0 -8
  54. package/styles/fluent-dark.css +41 -49
  55. package/styles/fluent.css +1 -9
  56. package/styles/highcontrast-light.css +0 -8
  57. package/styles/highcontrast.css +2 -10
  58. package/styles/material-dark.css +0 -8
  59. package/styles/material.css +0 -8
  60. package/styles/progress-button/_bootstrap-dark-definition.scss +5 -5
  61. package/styles/progress-button/_bootstrap4-definition.scss +1 -1
  62. package/styles/progress-button/_fluent-definition.scss +1 -1
  63. package/styles/progress-button/_fusionnew-definition.scss +21 -0
  64. package/styles/progress-button/_highcontrast-definition.scss +1 -1
  65. package/styles/progress-button/_material3-definition.scss +21 -0
  66. package/styles/progress-button/bootstrap-dark.css +5 -5
  67. package/styles/progress-button/bootstrap4.css +1 -1
  68. package/styles/progress-button/fluent-dark.css +26 -26
  69. package/styles/progress-button/fluent.css +1 -1
  70. package/styles/progress-button/highcontrast.css +2 -2
  71. package/styles/split-button/_fusionnew-definition.scss +25 -0
  72. package/styles/split-button/_material3-definition.scss +25 -0
  73. package/styles/tailwind-dark.css +10 -12
  74. package/styles/tailwind.css +10 -12
@@ -1,39 +1,56 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class DropDownButtonHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var DropDownButtonHelper = (function (_super) {
18
+ __extends(DropDownButtonHelper, _super);
19
+ function DropDownButtonHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
10
26
  }
11
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- getPopupElement() {
17
- return this.selector('#' + this.id + '_popup');
18
- }
19
- setModel(property, value) {
20
- let cy;
21
- return cy.get('#' + this.id).then((ele) => {
22
- return ele[0].ej2_instances[0][property] = value;
23
- });
24
- }
25
- getModel(property) {
26
- let cy;
27
- return cy.get('#' + this.id).then((ele) => {
28
- return ele[0].ej2_instances[0][property];
29
- });
30
- }
31
- invoke(fName, args = []) {
32
- let cy;
33
- return cy.get('#' + this.id).then((ele) => {
34
- var inst = ele[0].ej2_instances[0];
35
- return inst[fName].apply(inst, args);
36
- });
37
- }
38
- }
39
- exports.DropDownButtonHelper = DropDownButtonHelper;
27
+ DropDownButtonHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ DropDownButtonHelper.prototype.getPopupElement = function () {
31
+ return this.selector('#' + this.id + '_popup');
32
+ };
33
+ DropDownButtonHelper.prototype.setModel = function (property, value) {
34
+ var cy;
35
+ return cy.get('#' + this.id).then(function (ele) {
36
+ return ele[0].ej2_instances[0][property] = value;
37
+ });
38
+ };
39
+ DropDownButtonHelper.prototype.getModel = function (property) {
40
+ var cy;
41
+ return cy.get('#' + this.id).then(function (ele) {
42
+ return ele[0].ej2_instances[0][property];
43
+ });
44
+ };
45
+ DropDownButtonHelper.prototype.invoke = function (fName, args) {
46
+ if (args === void 0) { args = []; }
47
+ var cy;
48
+ return cy.get('#' + this.id).then(function (ele) {
49
+ var inst = ele[0].ej2_instances[0];
50
+ return inst[fName].apply(inst, args);
51
+ });
52
+ };
53
+ return DropDownButtonHelper;
54
+ }(e2e_1.TestHelper));
55
+ exports.DropDownButtonHelper = DropDownButtonHelper;
56
+ });
@@ -1,8 +1,10 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./dropdownbuttonHelper"));
7
- __export(require("./progressbuttonHelper"));
8
- __export(require("./splitbuttonHelper"));
1
+ define(["require", "exports", "./dropdownbuttonHelper", "./progressbuttonHelper", "./splitbuttonHelper"], function (require, exports, dropdownbuttonHelper_1, progressbuttonHelper_1, splitbuttonHelper_1) {
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ __export(dropdownbuttonHelper_1);
8
+ __export(progressbuttonHelper_1);
9
+ __export(splitbuttonHelper_1);
10
+ });
@@ -1,36 +1,53 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class ProgressButtonHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var ProgressButtonHelper = (function (_super) {
18
+ __extends(ProgressButtonHelper, _super);
19
+ function ProgressButtonHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
10
26
  }
11
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- setModel(property, value) {
17
- let cy;
18
- return cy.get('#' + this.id).then((ele) => {
19
- return ele[0].ej2_instances[0][property] = value;
20
- });
21
- }
22
- getModel(property) {
23
- let cy;
24
- return cy.get('#' + this.id).then((ele) => {
25
- return ele[0].ej2_instances[0][property];
26
- });
27
- }
28
- invoke(fName, args = []) {
29
- let cy;
30
- return cy.get('#' + this.id).then((ele) => {
31
- var inst = ele[0].ej2_instances[0];
32
- return inst[fName].apply(inst, args);
33
- });
34
- }
35
- }
36
- exports.ProgressButtonHelper = ProgressButtonHelper;
27
+ ProgressButtonHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ ProgressButtonHelper.prototype.setModel = function (property, value) {
31
+ var cy;
32
+ return cy.get('#' + this.id).then(function (ele) {
33
+ return ele[0].ej2_instances[0][property] = value;
34
+ });
35
+ };
36
+ ProgressButtonHelper.prototype.getModel = function (property) {
37
+ var cy;
38
+ return cy.get('#' + this.id).then(function (ele) {
39
+ return ele[0].ej2_instances[0][property];
40
+ });
41
+ };
42
+ ProgressButtonHelper.prototype.invoke = function (fName, args) {
43
+ if (args === void 0) { args = []; }
44
+ var cy;
45
+ return cy.get('#' + this.id).then(function (ele) {
46
+ var inst = ele[0].ej2_instances[0];
47
+ return inst[fName].apply(inst, args);
48
+ });
49
+ };
50
+ return ProgressButtonHelper;
51
+ }(e2e_1.TestHelper));
52
+ exports.ProgressButtonHelper = ProgressButtonHelper;
53
+ });
@@ -1,42 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const e2e_1 = require("@syncfusion/ej2-base/helpers/e2e");
4
- class SplitButtonHelper extends e2e_1.TestHelper {
5
- constructor(id, wrapperFn) {
6
- super();
7
- this.id = id;
8
- if (wrapperFn !== undefined) {
9
- this.wrapperFn = wrapperFn;
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var SplitButtonHelper = (function (_super) {
18
+ __extends(SplitButtonHelper, _super);
19
+ function SplitButtonHelper(id, wrapperFn) {
20
+ var _this = _super.call(this) || this;
21
+ _this.id = id;
22
+ if (wrapperFn !== undefined) {
23
+ _this.wrapperFn = wrapperFn;
24
+ }
25
+ return _this;
10
26
  }
11
- return this;
12
- }
13
- getElement() {
14
- return this.selector('#' + this.id);
15
- }
16
- getDropDownElement() {
17
- return this.selector('#' + this.id + '_dropdownbtn');
18
- }
19
- getPopupElement() {
20
- return this.selector('#' + this.id + '_dropdownbtn_popup');
21
- }
22
- setModel(property, value) {
23
- let cy;
24
- return cy.get('#' + this.id).then((ele) => {
25
- return ele[0].ej2_instances[0][property] = value;
26
- });
27
- }
28
- getModel(property) {
29
- let cy;
30
- return cy.get('#' + this.id).then((ele) => {
31
- return ele[0].ej2_instances[0][property];
32
- });
33
- }
34
- invoke(fName, args = []) {
35
- let cy;
36
- return cy.get('#' + this.id).then((ele) => {
37
- var inst = ele[0].ej2_instances[0];
38
- return inst[fName].apply(inst, args);
39
- });
40
- }
41
- }
42
- exports.SplitButtonHelper = SplitButtonHelper;
27
+ SplitButtonHelper.prototype.getElement = function () {
28
+ return this.selector('#' + this.id);
29
+ };
30
+ SplitButtonHelper.prototype.getDropDownElement = function () {
31
+ return this.selector('#' + this.id + '_dropdownbtn');
32
+ };
33
+ SplitButtonHelper.prototype.getPopupElement = function () {
34
+ return this.selector('#' + this.id + '_dropdownbtn_popup');
35
+ };
36
+ SplitButtonHelper.prototype.setModel = function (property, value) {
37
+ var cy;
38
+ return cy.get('#' + this.id).then(function (ele) {
39
+ return ele[0].ej2_instances[0][property] = value;
40
+ });
41
+ };
42
+ SplitButtonHelper.prototype.getModel = function (property) {
43
+ var cy;
44
+ return cy.get('#' + this.id).then(function (ele) {
45
+ return ele[0].ej2_instances[0][property];
46
+ });
47
+ };
48
+ SplitButtonHelper.prototype.invoke = function (fName, args) {
49
+ if (args === void 0) { args = []; }
50
+ var cy;
51
+ return cy.get('#' + this.id).then(function (ele) {
52
+ var inst = ele[0].ej2_instances[0];
53
+ return inst[fName].apply(inst, args);
54
+ });
55
+ };
56
+ return SplitButtonHelper;
57
+ }(e2e_1.TestHelper));
58
+ exports.SplitButtonHelper = SplitButtonHelper;
59
+ });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@20.1.47",
3
+ "_id": "@syncfusion/ej2-splitbuttons@20.2.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-YLoDlwjsPTpygotqeQuC/PwMUCZgKq85xJzl+rXCT4LkRo+/dFf450xhzQCf146uAfTObREdPH+gidG7iM4aLQ==",
5
+ "_integrity": "sha512-vDJOw9dEFF22KXMDqyQwphs4kEFWn8MpFqnjPW5HJbDLqGEDPIcB43GGyGLqQWocLdr9CXAj89C9xCCJEDosqA==",
6
6
  "_location": "/@syncfusion/ej2-splitbuttons",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -31,8 +31,8 @@
31
31
  "/@syncfusion/ej2-richtexteditor",
32
32
  "/@syncfusion/ej2-vue-splitbuttons"
33
33
  ],
34
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.1.47.tgz",
35
- "_shasum": "fcd71526585b17491e31f0081d63373def121b30",
34
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.2.38.tgz",
35
+ "_shasum": "a906817eb0b66a3876af13d3a8f3551740778e8a",
36
36
  "_spec": "@syncfusion/ej2-splitbuttons@*",
37
37
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
38
38
  "author": {
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~20.1.56",
47
- "@syncfusion/ej2-popups": "~20.1.57"
46
+ "@syncfusion/ej2-base": "~20.2.43",
47
+ "@syncfusion/ej2-popups": "~20.2.43"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
@@ -87,6 +87,6 @@
87
87
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
88
88
  },
89
89
  "typings": "index.d.ts",
90
- "version": "20.1.57",
90
+ "version": "20.2.43",
91
91
  "sideEffects": false
92
92
  }
@@ -73,6 +73,13 @@ export interface DropDownButtonModel extends ComponentModel{
73
73
  */
74
74
  target?: string | Element;
75
75
 
76
+ /**
77
+ * Specifies the event to close the DropDownButton popup.
78
+ *
79
+ * @default ""
80
+ */
81
+ closeActionEvents?: string;
82
+
76
83
  /**
77
84
  * Triggers while rendering each Popup item of DropDownButton.
78
85
  *
@@ -87,6 +87,12 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
87
87
  * @default ""
88
88
  */
89
89
  target: string | Element;
90
+ /**
91
+ * Specifies the event to close the DropDownButton popup.
92
+ *
93
+ * @default ""
94
+ */
95
+ closeActionEvents: string;
90
96
  /**
91
97
  * Triggers while rendering each Popup item of DropDownButton.
92
98
  *
@@ -215,6 +221,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
215
221
  private keyEventHandler;
216
222
  private getLI;
217
223
  private mousedownHandler;
224
+ private focusoutHandler;
218
225
  protected clickHandler(e: MouseEvent | KeyboardEventArgs): void;
219
226
  private openPopUp;
220
227
  private closePopup;
@@ -171,7 +171,7 @@ var DropDownButton = /** @class */ (function (_super) {
171
171
  _a['aria-expanded'] = 'false',
172
172
  _a['aria-owns'] = this.getPopUpElement().id,
173
173
  _a['type'] = 'button',
174
- _a['aria-label'] = this.element.textContent + ' dropdownbutton',
174
+ _a['aria-label'] = this.element.textContent ? this.element.textContent : 'dropdownbutton',
175
175
  _a));
176
176
  if (this.cssClass) {
177
177
  addClass([div], this.cssClass.split(' '));
@@ -201,8 +201,9 @@ var DropDownButton = /** @class */ (function (_super) {
201
201
  item = items[i];
202
202
  var tempItem = item.text;
203
203
  li = this.createElement('li', {
204
+ innerHTML: item.url ? '' : tempItem,
204
205
  className: item.separator ? classNames.ITEM + ' ' + classNames.SEPARATOR : classNames.ITEM,
205
- attrs: { 'role': 'menuItem', 'tabindex': '-1' },
206
+ attrs: { 'role': 'menuItem', 'tabindex': '-1', 'aria-label': tempItem },
206
207
  id: item.id ? item.id : getUniqueID('e-' + this.getModuleName() + '-item')
207
208
  });
208
209
  if (this.enableHtmlSanitizer) {
@@ -391,6 +392,9 @@ var DropDownButton = /** @class */ (function (_super) {
391
392
  if (popupElement) {
392
393
  EventHandler.add(popupElement, 'click', this.clickHandler, this);
393
394
  EventHandler.add(popupElement, 'keydown', this.keyBoardHandler, this);
395
+ if (this.closeActionEvents) {
396
+ EventHandler.add(popupElement, this.closeActionEvents, this.focusoutHandler, this);
397
+ }
394
398
  }
395
399
  this.rippleFn = rippleEffect(popupElement, { selector: '.' + classNames.ITEM });
396
400
  };
@@ -402,6 +406,9 @@ var DropDownButton = /** @class */ (function (_super) {
402
406
  if (popupElement && popupElement.parentElement) {
403
407
  EventHandler.remove(popupElement, 'click', this.clickHandler);
404
408
  EventHandler.remove(popupElement, 'keydown', this.keyBoardHandler);
409
+ if (this.closeActionEvents) {
410
+ EventHandler.remove(popupElement, this.closeActionEvents, this.focusoutHandler);
411
+ }
405
412
  }
406
413
  };
407
414
  /**
@@ -469,6 +476,11 @@ var DropDownButton = /** @class */ (function (_super) {
469
476
  this.closePopup(e);
470
477
  }
471
478
  };
479
+ DropDownButton.prototype.focusoutHandler = function (e) {
480
+ if (this.isPopupCreated && !this.canOpen()) {
481
+ this.closePopup(e);
482
+ }
483
+ };
472
484
  DropDownButton.prototype.clickHandler = function (e) {
473
485
  var trgt = e.target;
474
486
  if (closest(trgt, '[id="' + this.element.id + '"]')) {
@@ -544,7 +556,9 @@ var DropDownButton = /** @class */ (function (_super) {
544
556
  _this.dropDown.show(null, _this.element);
545
557
  addClass([_this.element], 'e-active');
546
558
  _this.element.setAttribute('aria-expanded', 'true');
547
- ul_1.focus();
559
+ if (ul_1) {
560
+ ul_1.focus();
561
+ }
548
562
  var openArgs = { element: ul_1, items: _this.items };
549
563
  _this.trigger('open', openArgs);
550
564
  }
@@ -563,7 +577,10 @@ var DropDownButton = /** @class */ (function (_super) {
563
577
  if (!observedArgs.cancel) {
564
578
  _this.popupUnWireEvents();
565
579
  var ul_2 = _this.getULElement();
566
- var selectedLi = ul_2.querySelector('.e-selected');
580
+ var selectedLi = void 0;
581
+ if (ul_2) {
582
+ selectedLi = ul_2.querySelector('.e-selected');
583
+ }
567
584
  if (selectedLi) {
568
585
  selectedLi.classList.remove('e-selected');
569
586
  }
@@ -706,6 +723,9 @@ var DropDownButton = /** @class */ (function (_super) {
706
723
  __decorate([
707
724
  Property('')
708
725
  ], DropDownButton.prototype, "target", void 0);
726
+ __decorate([
727
+ Property('')
728
+ ], DropDownButton.prototype, "closeActionEvents", void 0);
709
729
  __decorate([
710
730
  Event()
711
731
  ], DropDownButton.prototype, "beforeItemRender", void 0);
@@ -531,14 +531,6 @@
531
531
  flex-direction: row;
532
532
  position: relative;
533
533
  }
534
- *.e-btn-group input:focus + label.e-btn,
535
- *.e-btn-group .e-btn:focus,
536
- *.e-btn-group .e-btn:hover,
537
- *.e-css.e-btn-group input:focus + label.e-btn,
538
- *.e-css.e-btn-group .e-btn:focus,
539
- *.e-css.e-btn-group .e-btn:hover {
540
- z-index: 2;
541
- }
542
534
  *.e-btn-group input + label.e-btn,
543
535
  *.e-css.e-btn-group input + label.e-btn {
544
536
  margin-bottom: 0;
@@ -1779,19 +1771,19 @@
1779
1771
  }
1780
1772
 
1781
1773
  *.e-flat.e-primary .e-progress {
1782
- background-color: rgba(255, 64, 129, 0.2);
1774
+ background-color: rgba(255, 255, 255, 0.2);
1783
1775
  }
1784
1776
  *.e-flat.e-success .e-progress {
1785
- background-color: rgba(77, 132, 29, 0.2);
1777
+ background-color: rgba(255, 255, 255, 0.2);
1786
1778
  }
1787
1779
  *.e-flat.e-info .e-progress {
1788
- background-color: rgba(3, 120, 213, 0.2);
1780
+ background-color: rgba(255, 255, 255, 0.2);
1789
1781
  }
1790
1782
  *.e-flat.e-warning .e-progress {
1791
- background-color: rgba(193, 87, 0, 0.2);
1783
+ background-color: rgba(255, 255, 255, 0.2);
1792
1784
  }
1793
1785
  *.e-flat.e-danger .e-progress {
1794
- background-color: rgba(214, 65, 19, 0.2);
1786
+ background-color: rgba(255, 255, 255, 0.2);
1795
1787
  }
1796
1788
 
1797
1789
  *.e-outline:not(:focus).e-primary .e-progress {
@@ -531,14 +531,6 @@
531
531
  flex-direction: row;
532
532
  position: relative;
533
533
  }
534
- *.e-btn-group input:focus + label.e-btn,
535
- *.e-btn-group .e-btn:focus,
536
- *.e-btn-group .e-btn:hover,
537
- *.e-css.e-btn-group input:focus + label.e-btn,
538
- *.e-css.e-btn-group .e-btn:focus,
539
- *.e-css.e-btn-group .e-btn:hover {
540
- z-index: 2;
541
- }
542
534
  *.e-btn-group input + label.e-btn,
543
535
  *.e-css.e-btn-group input + label.e-btn {
544
536
  margin-bottom: 0;
@@ -514,14 +514,6 @@
514
514
  flex-direction: row;
515
515
  position: relative;
516
516
  }
517
- *.e-btn-group input:focus + label.e-btn,
518
- *.e-btn-group .e-btn:focus,
519
- *.e-btn-group .e-btn:hover,
520
- *.e-css.e-btn-group input:focus + label.e-btn,
521
- *.e-css.e-btn-group .e-btn:focus,
522
- *.e-css.e-btn-group .e-btn:hover {
523
- z-index: 2;
524
- }
525
517
  *.e-btn-group input + label.e-btn,
526
518
  *.e-css.e-btn-group input + label.e-btn {
527
519
  margin-bottom: 0;
@@ -1759,7 +1751,7 @@
1759
1751
  *.e-success .e-progress,
1760
1752
  *.e-danger .e-progress,
1761
1753
  *.e-info .e-progress {
1762
- background-color: rgba(255, 255, 255, 0.25);
1754
+ background-color: rgba(73, 80, 87, 0.2);
1763
1755
  }
1764
1756
 
1765
1757
  *.e-warning .e-progress {
@@ -69,6 +69,7 @@
69
69
 
70
70
  .e-dropdown-popup {
71
71
  position: absolute;
72
+ border-radius: 4px;
72
73
  margin-top: 2px;
73
74
  }
74
75
  .e-dropdown-popup ul {
@@ -148,6 +149,7 @@
148
149
 
149
150
  *.e-bigger .e-dropdown-popup {
150
151
  background-color: transparent;
152
+ border-radius: 4px;
151
153
  }
152
154
 
153
155
  *.e-bigger .e-dropdown-popup ul,
@@ -778,6 +780,7 @@
778
780
  outline: #6c757d 0 solid;
779
781
  outline-offset: 0;
780
782
  box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5);
783
+ border-color: #5c636a;
781
784
  outline-color: inherit;
782
785
  }
783
786
  .e-btn-group .e-btn:focus.e-primary,
@@ -789,6 +792,7 @@
789
792
  color: #fff;
790
793
  outline: #6c757d 0 solid;
791
794
  box-shadow: 0 0 0 4px rgba(49, 132, 253, 0.5);
795
+ border-color: #0b5ed7;
792
796
  outline-color: inherit;
793
797
  }
794
798
  .e-btn-group .e-btn:focus.e-success,
@@ -799,6 +803,7 @@
799
803
  border-color: #198754;
800
804
  color: #fff;
801
805
  box-shadow: 0 0 0 4px rgba(66, 190, 133, 0.5);
806
+ border-color: #157347;
802
807
  outline-color: inherit;
803
808
  }
804
809
  .e-btn-group .e-btn:focus.e-info,
@@ -809,6 +814,7 @@
809
814
  border-color: #0dcaf0;
810
815
  color: #000;
811
816
  box-shadow: 0 0 0 4px rgba(49, 210, 242, 0.5);
817
+ border-color: #31d2f2;
812
818
  outline-color: inherit;
813
819
  }
814
820
  .e-btn-group .e-btn:focus.e-warning,
@@ -819,6 +825,7 @@
819
825
  border-color: #ffc107;
820
826
  color: #000;
821
827
  box-shadow: 0 0 0 4px rgba(255, 202, 44, 0.5);
828
+ border-color: #ffca2c;
822
829
  outline-color: inherit;
823
830
  }
824
831
  .e-btn-group .e-btn:focus.e-danger,
@@ -829,6 +836,7 @@
829
836
  border-color: #dc3545;
830
837
  color: #fff;
831
838
  box-shadow: 0 0 0 4px rgba(232, 120, 131, 0.5);
839
+ border-color: #bb2d3b;
832
840
  outline-color: inherit;
833
841
  }
834
842
  .e-btn-group .e-btn:focus.e-link,
@@ -848,36 +856,42 @@
848
856
  .e-css.e-btn-group .e-btn:focus.e-outline,
849
857
  .e-css.e-btn-group input:focus + label.e-btn.e-outline {
850
858
  box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5);
859
+ border-color: #5c636a;
851
860
  }
852
861
  .e-btn-group .e-btn:focus.e-outline.e-primary,
853
862
  .e-btn-group input:focus + label.e-btn.e-outline.e-primary,
854
863
  .e-css.e-btn-group .e-btn:focus.e-outline.e-primary,
855
864
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-primary {
856
865
  box-shadow: 0 0 0 4px rgba(49, 132, 253, 0.5);
866
+ border-color: #0d6efd;
857
867
  }
858
868
  .e-btn-group .e-btn:focus.e-outline.e-success,
859
869
  .e-btn-group input:focus + label.e-btn.e-outline.e-success,
860
870
  .e-css.e-btn-group .e-btn:focus.e-outline.e-success,
861
871
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-success {
862
872
  box-shadow: 0 0 0 4px rgba(66, 190, 133, 0.5);
873
+ border-color: #157347;
863
874
  }
864
875
  .e-btn-group .e-btn:focus.e-outline.e-info,
865
876
  .e-btn-group input:focus + label.e-btn.e-outline.e-info,
866
877
  .e-css.e-btn-group .e-btn:focus.e-outline.e-info,
867
878
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-info {
868
879
  box-shadow: 0 0 0 4px rgba(49, 210, 242, 0.5);
880
+ border-color: #31d2f2;
869
881
  }
870
882
  .e-btn-group .e-btn:focus.e-outline.e-warning,
871
883
  .e-btn-group input:focus + label.e-btn.e-outline.e-warning,
872
884
  .e-css.e-btn-group .e-btn:focus.e-outline.e-warning,
873
885
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-warning {
874
886
  box-shadow: 0 0 0 4px rgba(255, 202, 44, 0.5);
887
+ border-color: #ffca2c;
875
888
  }
876
889
  .e-btn-group .e-btn:focus.e-outline.e-danger,
877
890
  .e-btn-group input:focus + label.e-btn.e-outline.e-danger,
878
891
  .e-css.e-btn-group .e-btn:focus.e-outline.e-danger,
879
892
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-danger {
880
893
  box-shadow: 0 0 0 4px rgba(232, 120, 131, 0.5);
894
+ border-color: #bb2d3b;
881
895
  }
882
896
  .e-btn-group .e-btn:active,
883
897
  .e-btn-group input:active + label.e-btn,