@syncfusion/ej2-splitbuttons 19.2.62 → 19.3.47

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 (97) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +1 -1
  3. package/dist/ej2-splitbuttons.umd.min.js +2 -2
  4. package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-splitbuttons.es2015.js +39 -8
  6. package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
  7. package/dist/es6/ej2-splitbuttons.es5.js +38 -7
  8. package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
  9. package/dist/global/ej2-splitbuttons.min.js +2 -2
  10. package/dist/global/ej2-splitbuttons.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/helpers/e2e/dropdownbuttonHelper.d.ts +42 -0
  13. package/helpers/e2e/dropdownbuttonHelper.js +39 -0
  14. package/helpers/e2e/index.d.ts +3 -0
  15. package/helpers/e2e/index.js +8 -0
  16. package/helpers/e2e/progressbuttonHelper.d.ts +37 -0
  17. package/helpers/e2e/progressbuttonHelper.js +36 -0
  18. package/helpers/e2e/splitbuttonHelper.d.ts +45 -0
  19. package/helpers/e2e/splitbuttonHelper.js +42 -0
  20. package/package.json +7 -7
  21. package/src/drop-down-button/drop-down-button.d.ts +2 -0
  22. package/src/drop-down-button/drop-down-button.js +37 -6
  23. package/src/split-button/split-button.d.ts +1 -1
  24. package/src/split-button/split-button.js +1 -1
  25. package/styles/bootstrap-dark.css +1 -31
  26. package/styles/bootstrap.css +1 -19
  27. package/styles/bootstrap4.css +1 -31
  28. package/styles/bootstrap5-dark.css +2105 -0
  29. package/styles/bootstrap5-dark.scss +4 -0
  30. package/styles/bootstrap5.css +2105 -0
  31. package/styles/bootstrap5.scss +4 -0
  32. package/styles/button-group/_bootstrap5-dark-definition.scss +1 -0
  33. package/styles/button-group/_bootstrap5-definition.scss +31 -0
  34. package/styles/button-group/_tailwind-dark-definition.scss +1 -30
  35. package/styles/button-group/_tailwind-definition.scss +1 -0
  36. package/styles/button-group/_theme.scss +35 -47
  37. package/styles/button-group/bootstrap-dark.css +1 -31
  38. package/styles/button-group/bootstrap.css +1 -19
  39. package/styles/button-group/bootstrap4.css +1 -31
  40. package/styles/button-group/bootstrap5-dark.css +842 -0
  41. package/styles/button-group/bootstrap5-dark.scss +4 -0
  42. package/styles/button-group/bootstrap5.css +842 -0
  43. package/styles/button-group/bootstrap5.scss +4 -0
  44. package/styles/button-group/fabric-dark.css +1 -31
  45. package/styles/button-group/fabric.css +1 -31
  46. package/styles/button-group/highcontrast-light.css +1 -31
  47. package/styles/button-group/highcontrast.css +1 -31
  48. package/styles/button-group/material-dark.css +5 -35
  49. package/styles/button-group/material.css +1 -31
  50. package/styles/button-group/tailwind-dark.css +1 -31
  51. package/styles/button-group/tailwind.css +1 -31
  52. package/styles/drop-down-button/_bootstrap5-dark-definition.scss +1 -0
  53. package/styles/drop-down-button/_bootstrap5-definition.scss +51 -0
  54. package/styles/drop-down-button/_layout.scss +12 -5
  55. package/styles/drop-down-button/_tailwind-dark-definition.scss +1 -48
  56. package/styles/drop-down-button/_tailwind-definition.scss +19 -17
  57. package/styles/drop-down-button/_theme.scss +6 -1
  58. package/styles/drop-down-button/bootstrap5-dark.css +248 -0
  59. package/styles/drop-down-button/bootstrap5-dark.scss +6 -0
  60. package/styles/drop-down-button/bootstrap5.css +248 -0
  61. package/styles/drop-down-button/bootstrap5.scss +6 -0
  62. package/styles/drop-down-button/icons/_bootstrap5-dark.scss +1 -0
  63. package/styles/drop-down-button/icons/_bootstrap5.scss +10 -0
  64. package/styles/drop-down-button/tailwind-dark.css +5 -0
  65. package/styles/drop-down-button/tailwind.css +5 -0
  66. package/styles/fabric-dark.css +1 -31
  67. package/styles/fabric.css +1 -31
  68. package/styles/highcontrast-light.css +1 -31
  69. package/styles/highcontrast.css +1 -31
  70. package/styles/material-dark.css +15 -45
  71. package/styles/material.css +2 -32
  72. package/styles/progress-button/_bootstrap5-dark-definition.scss +1 -0
  73. package/styles/progress-button/_bootstrap5-definition.scss +21 -0
  74. package/styles/progress-button/_tailwind-dark-definition.scss +1 -24
  75. package/styles/progress-button/_tailwind-definition.scss +6 -9
  76. package/styles/progress-button/_theme.scss +2 -2
  77. package/styles/progress-button/bootstrap5-dark.css +645 -0
  78. package/styles/progress-button/bootstrap5-dark.scss +5 -0
  79. package/styles/progress-button/bootstrap5.css +645 -0
  80. package/styles/progress-button/bootstrap5.scss +5 -0
  81. package/styles/progress-button/material-dark.css +9 -9
  82. package/styles/progress-button/tailwind-dark.css +10 -10
  83. package/styles/split-button/_bootstrap5-dark-definition.scss +1 -0
  84. package/styles/split-button/_bootstrap5-definition.scss +25 -0
  85. package/styles/split-button/_layout.scss +13 -9
  86. package/styles/split-button/_tailwind-dark-definition.scss +1 -23
  87. package/styles/split-button/_tailwind-definition.scss +7 -5
  88. package/styles/split-button/bootstrap5-dark.css +367 -0
  89. package/styles/split-button/bootstrap5-dark.scss +6 -0
  90. package/styles/split-button/bootstrap5.css +367 -0
  91. package/styles/split-button/bootstrap5.scss +6 -0
  92. package/styles/split-button/material-dark.css +1 -1
  93. package/styles/split-button/material.css +1 -1
  94. package/styles/split-button/tailwind-dark.css +2 -0
  95. package/styles/split-button/tailwind.css +2 -0
  96. package/styles/tailwind-dark.css +18 -41
  97. package/styles/tailwind.css +8 -31
@@ -0,0 +1,42 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ /**
3
+ * E2E test helpers for DropDownButton to easily interact and the test the component
4
+ */
5
+ export declare class DropDownButtonHelper extends TestHelper {
6
+ id: string;
7
+ wrapperFn: Function;
8
+ /**
9
+ * Initialize the DropDownButton E2E helpers
10
+ * @param id Element id of the DropDownButton element
11
+ * @param wrapperFn Pass the wrapper function
12
+ * @return DropDownButton any
13
+ */
14
+ constructor(id: string, wrapperFn: Function);
15
+ /**
16
+ * Used to get the root element of the DropDownButton component.
17
+ * @return Element
18
+ */
19
+ getElement(): any;
20
+ /**
21
+ * Used to get the popup element of the DropDownButton component.
22
+ * @return Element
23
+ */
24
+ getPopupElement(): any;
25
+ /**
26
+ * The setModel method is used to set values for the property. It will accepts two arguments.
27
+ * @param property - Specifies the name of the property whose value has to be updated.
28
+ * @param value - Specifies the corresponding value to the property.
29
+ */
30
+ setModel(property: any, value: any): any;
31
+ /**
32
+ * The getModel method is used to return value for the property.
33
+ * @param property - Specifies the name of the property.
34
+ */
35
+ getModel(property: any): any;
36
+ /**
37
+ * The invoke method is used to access the public methods available in DropDownButton control.
38
+ * @param fName - Specifies the method name of the DropDownButton control.
39
+ * @param args - Specifies the arguments. This is optional.
40
+ */
41
+ invoke(fName: any, args?: any): any;
42
+ }
@@ -0,0 +1,39 @@
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;
10
+ }
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;
@@ -0,0 +1,3 @@
1
+ export * from './dropdownbuttonHelper';
2
+ export * from './progressbuttonHelper';
3
+ export * from './splitbuttonHelper';
@@ -0,0 +1,8 @@
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"));
@@ -0,0 +1,37 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ /**
3
+ * E2E test helpers for ProgressButton to easily interact and the test the component
4
+ */
5
+ export declare class ProgressButtonHelper extends TestHelper {
6
+ id: string;
7
+ wrapperFn: Function;
8
+ /**
9
+ * Initialize the ProgressButton E2E helpers
10
+ * @param id Element id of the ProgressButton element
11
+ * @param wrapperFn Pass the wrapper function
12
+ * @return ProgressButton any
13
+ */
14
+ constructor(id: string, wrapperFn: Function);
15
+ /**
16
+ * Used to get the root element of the ProgressButton component.
17
+ * @return Element
18
+ */
19
+ getElement(): any;
20
+ /**
21
+ * The setModel method is used to set values for the property. It will accepts two arguments.
22
+ * @param property - Specifies the name of the property whose value has to be updated.
23
+ * @param value - Specifies the corresponding value to the property.
24
+ */
25
+ setModel(property: any, value: any): any;
26
+ /**
27
+ * The getModel method is used to return value for the property.
28
+ * @param property - Specifies the name of the property.
29
+ */
30
+ getModel(property: any): any;
31
+ /**
32
+ * The invoke method is used to access the public methods available in ProgressButton control.
33
+ * @param fName - Specifies the method name of the ProgressButton control.
34
+ * @param args - Specifies the arguments. This is optional.
35
+ */
36
+ invoke(fName: any, args?: any): any;
37
+ }
@@ -0,0 +1,36 @@
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;
10
+ }
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;
@@ -0,0 +1,45 @@
1
+ import { TestHelper } from '@syncfusion/ej2-base/helpers/e2e';
2
+ /**
3
+ * E2E test helpers for SplitButton to easily interact and the test the component
4
+ */
5
+ export declare class SplitButtonHelper extends TestHelper {
6
+ id: string;
7
+ wrapperFn: Function;
8
+ /**
9
+ * Initialize the SplitButton E2E helpers
10
+ * @param id Element id of the SplitButton element
11
+ * @param wrapperFn Pass the wrapper function
12
+ * @return SplitButton any
13
+ */
14
+ constructor(id: string, wrapperFn: Function);
15
+ /**
16
+ * Used to get the root element of the SplitButton component.
17
+ * @return Element
18
+ */
19
+ getElement(): any;
20
+ /**
21
+ * Used to get the dropdown button element of the SplitButton component
22
+ */
23
+ getDropDownElement(): any;
24
+ /**
25
+ * Used to get the dropdown popup element of the SplitButton component
26
+ */
27
+ getPopupElement(): any;
28
+ /**
29
+ * The setModel method is used to set values for the property. It will accepts two arguments.
30
+ * @param property - Specifies the name of the property whose value has to be updated.
31
+ * @param value - Specifies the corresponding value to the property.
32
+ */
33
+ setModel(property: any, value: any): any;
34
+ /**
35
+ * The getModel method is used to return value for the property.
36
+ * @param property - Specifies the name of the property.
37
+ */
38
+ getModel(property: any): any;
39
+ /**
40
+ * The invoke method is used to access the public methods available in SplitButton control.
41
+ * @param fName - Specifies the method name of the SplitButton control.
42
+ * @param args - Specifies the arguments. This is optional.
43
+ */
44
+ invoke(fName: any, args?: any): any;
45
+ }
@@ -0,0 +1,42 @@
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;
10
+ }
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;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@19.2.60",
3
+ "_id": "@syncfusion/ej2-splitbuttons@19.3.45",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-68e+sfKjKkywiSwjytsff6ZtwYcdT4Ie25cODaRO8paZGPfPlEQ4Bd+jrtMl2+0n/cYkklEhG0N/cMqDZeJcuA==",
5
+ "_integrity": "sha512-Z3Q1DDHHbC/SsJoAtUtsvXlo32ZOBX9WTHME3TllG8mRctCiO9RZ1n4YggH7I6y+eqwEBD/x6v1neqWpg7Ft8Q==",
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/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.2.60.tgz",
35
- "_shasum": "0877b4523bb67bc7cb4ee28c8e35bccd43b77800",
34
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.3.45.tgz",
35
+ "_shasum": "9a444ab3598387de82f877d5685f77698f2a5e56",
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": "~19.2.60",
47
- "@syncfusion/ej2-popups": "~19.2.62"
46
+ "@syncfusion/ej2-base": "~19.3.47",
47
+ "@syncfusion/ej2-popups": "~19.3.47"
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": "19.2.62",
90
+ "version": "19.3.47",
91
91
  "sideEffects": false
92
92
  }
@@ -180,6 +180,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
180
180
  private hasIcon;
181
181
  private createAnchor;
182
182
  private initialize;
183
+ private isColorPicker;
183
184
  private appendArrowSpan;
184
185
  protected setActiveElem(elem: HTMLElement[]): void;
185
186
  /**
@@ -201,6 +202,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
201
202
  protected getULElement(): HTMLElement;
202
203
  protected wireEvents(): void;
203
204
  protected popupWireEvents(): void;
205
+ protected popupUnWireEvents(): void;
204
206
  /**
205
207
  * Handles the keyboard interactions.
206
208
  *
@@ -262,13 +262,23 @@ var DropDownButton = /** @class */ (function (_super) {
262
262
  }
263
263
  this.appendArrowSpan();
264
264
  this.setActiveElem([this.element]);
265
- if (this.target || !this.createPopupOnClick) {
265
+ if ((this.target && !this.isColorPicker()) || !this.createPopupOnClick) {
266
266
  this.createPopup();
267
267
  }
268
268
  else {
269
269
  this.isPopupCreated = false;
270
270
  }
271
271
  };
272
+ DropDownButton.prototype.isColorPicker = function () {
273
+ if (!this.element) {
274
+ return false;
275
+ }
276
+ var prevElem = this.element.previousSibling;
277
+ if (prevElem && prevElem.classList && prevElem.classList.contains('e-split-colorpicker')) {
278
+ return true;
279
+ }
280
+ return false;
281
+ };
272
282
  DropDownButton.prototype.appendArrowSpan = function () {
273
283
  this.element.appendChild(this.createElement('span', {
274
284
  className: 'e-btn-icon e-icons ' + 'e-icon-' + (this.cssClass.indexOf(classNames.VERTICAL) > -1
@@ -320,6 +330,7 @@ var DropDownButton = /** @class */ (function (_super) {
320
330
  attrList.forEach(function (key) {
321
331
  _this.element.removeAttribute(key);
322
332
  });
333
+ this.popupUnWireEvents();
323
334
  this.destroyPopup();
324
335
  this.isPopupCreated = false;
325
336
  if (!this.disabled) {
@@ -361,16 +372,33 @@ var DropDownButton = /** @class */ (function (_super) {
361
372
  };
362
373
  DropDownButton.prototype.wireEvents = function () {
363
374
  this.delegateMousedownHandler = this.mousedownHandler.bind(this);
364
- EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);
375
+ if (!this.createPopupOnClick) {
376
+ EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);
377
+ }
365
378
  EventHandler.add(this.element, 'click', this.clickHandler, this);
366
379
  EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
367
380
  };
368
381
  DropDownButton.prototype.popupWireEvents = function () {
369
382
  var popupElement = this.getPopUpElement();
370
- EventHandler.add(popupElement, 'click', this.clickHandler, this);
371
- EventHandler.add(popupElement, 'keydown', this.keyBoardHandler, this);
383
+ if (this.createPopupOnClick) {
384
+ EventHandler.add(document, 'mousedown touchstart', this.delegateMousedownHandler, this);
385
+ }
386
+ if (popupElement) {
387
+ EventHandler.add(popupElement, 'click', this.clickHandler, this);
388
+ EventHandler.add(popupElement, 'keydown', this.keyBoardHandler, this);
389
+ }
372
390
  this.rippleFn = rippleEffect(popupElement, { selector: '.' + classNames.ITEM });
373
391
  };
392
+ DropDownButton.prototype.popupUnWireEvents = function () {
393
+ var popupElement = this.getPopUpElement();
394
+ if (this.createPopupOnClick) {
395
+ EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);
396
+ }
397
+ if (popupElement && popupElement.parentElement) {
398
+ EventHandler.remove(popupElement, 'click', this.clickHandler);
399
+ EventHandler.remove(popupElement, 'keydown', this.keyBoardHandler);
400
+ }
401
+ };
374
402
  /**
375
403
  * Handles the keyboard interactions.
376
404
  *
@@ -439,7 +467,7 @@ var DropDownButton = /** @class */ (function (_super) {
439
467
  DropDownButton.prototype.clickHandler = function (e) {
440
468
  var trgt = e.target;
441
469
  if (closest(trgt, '[id="' + this.element.id + '"]')) {
442
- if (!this.createPopupOnClick || this.target) {
470
+ if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
443
471
  if (this.getPopUpElement().classList.contains('e-popup-close')) {
444
472
  this.openPopUp(e);
445
473
  }
@@ -505,6 +533,7 @@ var DropDownButton = /** @class */ (function (_super) {
505
533
  }
506
534
  this.trigger('beforeClose', beforeCloseArgs, function (observedArgs) {
507
535
  if (!observedArgs.cancel) {
536
+ _this.popupUnWireEvents();
508
537
  var ul_2 = _this.getULElement();
509
538
  var selectedLi = ul_2.querySelector('.e-selected');
510
539
  if (selectedLi) {
@@ -533,7 +562,9 @@ var DropDownButton = /** @class */ (function (_super) {
533
562
  });
534
563
  };
535
564
  DropDownButton.prototype.unWireEvents = function () {
536
- EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);
565
+ if (!this.createPopupOnClick) {
566
+ EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);
567
+ }
537
568
  EventHandler.remove(this.element, 'click', this.clickHandler);
538
569
  EventHandler.remove(this.element, 'keydown', this.keyBoardHandler);
539
570
  if (this.isPopupCreated) {
@@ -140,7 +140,7 @@ export declare class SplitButton extends DropDownButton implements INotifyProper
140
140
  */
141
141
  protected preRender(): void;
142
142
  /**
143
- * Initialize the Component rendering
143
+ * Initialize the Component rendering.
144
144
  *
145
145
  * @returns {void}
146
146
  * @private
@@ -81,7 +81,7 @@ var SplitButton = /** @class */ (function (_super) {
81
81
  }
82
82
  };
83
83
  /**
84
- * Initialize the Component rendering
84
+ * Initialize the Component rendering.
85
85
  *
86
86
  * @returns {void}
87
87
  * @private
@@ -1017,9 +1017,6 @@
1017
1017
  .e-btn-group input:focus + label.e-btn.e-outline,
1018
1018
  .e-css.e-btn-group .e-btn:focus.e-outline,
1019
1019
  .e-css.e-btn-group input:focus + label.e-btn.e-outline {
1020
- background-color: #2a2a2a;
1021
- border-color: #585858;
1022
- color: #fff;
1023
1020
  box-shadow: none;
1024
1021
  box-shadow: none;
1025
1022
  }
@@ -1028,9 +1025,6 @@
1028
1025
  .e-btn-group input:focus + label.e-btn.e-outline.e-primary,
1029
1026
  .e-css.e-btn-group .e-btn:focus.e-outline.e-primary,
1030
1027
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-primary {
1031
- background-color: #0058bd;
1032
- border-color: #0058bd;
1033
- color: #fff;
1034
1028
  box-shadow: none;
1035
1029
  }
1036
1030
 
@@ -1038,9 +1032,6 @@
1038
1032
  .e-btn-group input:focus + label.e-btn.e-outline.e-success,
1039
1033
  .e-css.e-btn-group .e-btn:focus.e-outline.e-success,
1040
1034
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-success {
1041
- background-color: #265e28;
1042
- border-color: #265e28;
1043
- color: #fff;
1044
1035
  box-shadow: none;
1045
1036
  }
1046
1037
 
@@ -1048,9 +1039,6 @@
1048
1039
  .e-btn-group input:focus + label.e-btn.e-outline.e-info,
1049
1040
  .e-css.e-btn-group .e-btn:focus.e-outline.e-info,
1050
1041
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-info {
1051
- background-color: #1b6d7b;
1052
- border-color: #175b66;
1053
- color: #fff;
1054
1042
  box-shadow: none;
1055
1043
  }
1056
1044
 
@@ -1058,9 +1046,6 @@
1058
1046
  .e-btn-group input:focus + label.e-btn.e-outline.e-warning,
1059
1047
  .e-css.e-btn-group .e-btn:focus.e-outline.e-warning,
1060
1048
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-warning {
1061
- background-color: #dd8907;
1062
- border-color: #7a4c04;
1063
- color: #000;
1064
1049
  box-shadow: none;
1065
1050
  }
1066
1051
 
@@ -1068,9 +1053,6 @@
1068
1053
  .e-btn-group input:focus + label.e-btn.e-outline.e-danger,
1069
1054
  .e-css.e-btn-group .e-btn:focus.e-outline.e-danger,
1070
1055
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-danger {
1071
- background-color: #ac2a2a;
1072
- border-color: #982525;
1073
- color: #fff;
1074
1056
  box-shadow: none;
1075
1057
  }
1076
1058
 
@@ -1086,7 +1068,6 @@
1086
1068
  outline: #393939 0 solid;
1087
1069
  outline-offset: 0;
1088
1070
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1089
- box-shadow: none;
1090
1071
  }
1091
1072
 
1092
1073
  .e-btn-group .e-btn:active.e-primary,
@@ -1100,7 +1081,6 @@
1100
1081
  color: #fff;
1101
1082
  outline: #393939 0 solid;
1102
1083
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1103
- box-shadow: none;
1104
1084
  }
1105
1085
 
1106
1086
  .e-btn-group .e-btn:active.e-success,
@@ -1113,7 +1093,6 @@
1113
1093
  border-color: #265e28;
1114
1094
  color: #fff;
1115
1095
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1116
- box-shadow: none;
1117
1096
  }
1118
1097
 
1119
1098
  .e-btn-group .e-btn:active.e-info,
@@ -1123,10 +1102,9 @@
1123
1102
  .e-css.e-btn-group input:active + label.e-btn.e-info,
1124
1103
  .e-css.e-btn-group input:checked + label.e-btn.e-info {
1125
1104
  background-color: #124851;
1126
- border-color: #175b66;
1127
1105
  color: #fff;
1106
+ border-color: #175b66;
1128
1107
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1129
- box-shadow: none;
1130
1108
  }
1131
1109
 
1132
1110
  .e-btn-group .e-btn:active.e-warning,
@@ -1139,7 +1117,6 @@
1139
1117
  border-color: #ab6a05;
1140
1118
  color: #000;
1141
1119
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1142
- box-shadow: none;
1143
1120
  }
1144
1121
 
1145
1122
  .e-btn-group .e-btn:active.e-danger,
@@ -1152,7 +1129,6 @@
1152
1129
  border-color: #982525;
1153
1130
  color: #fff;
1154
1131
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1155
- box-shadow: none;
1156
1132
  }
1157
1133
 
1158
1134
  .e-btn-group .e-btn:active.e-outline,
@@ -1165,7 +1141,6 @@
1165
1141
  border-color: #585858;
1166
1142
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1167
1143
  color: #fff;
1168
- box-shadow: none;
1169
1144
  }
1170
1145
 
1171
1146
  .e-btn-group .e-btn:active.e-outline.e-primary,
@@ -1178,7 +1153,6 @@
1178
1153
  border-color: #0058bd;
1179
1154
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1180
1155
  color: #fff;
1181
- box-shadow: none;
1182
1156
  }
1183
1157
 
1184
1158
  .e-btn-group .e-btn:active.e-outline.e-success,
@@ -1191,7 +1165,6 @@
1191
1165
  border-color: #265e28;
1192
1166
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1193
1167
  color: #fff;
1194
- box-shadow: none;
1195
1168
  }
1196
1169
 
1197
1170
  .e-btn-group .e-btn:active.e-outline.e-info,
@@ -1204,7 +1177,6 @@
1204
1177
  border-color: #175b66;
1205
1178
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1206
1179
  color: #fff;
1207
- box-shadow: none;
1208
1180
  }
1209
1181
 
1210
1182
  .e-btn-group .e-btn:active.e-outline.e-warning,
@@ -1217,7 +1189,6 @@
1217
1189
  border-color: #ab6a05;
1218
1190
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1219
1191
  color: #000;
1220
- box-shadow: none;
1221
1192
  }
1222
1193
 
1223
1194
  .e-btn-group .e-btn:active.e-outline.e-danger,
@@ -1230,7 +1201,6 @@
1230
1201
  border-color: #982525;
1231
1202
  box-shadow: inset 0 4px 5px rgba(26, 26, 26, 0.4);
1232
1203
  color: #fff;
1233
- box-shadow: none;
1234
1204
  }
1235
1205
 
1236
1206
  .e-btn-group .e-btn:disabled,
@@ -1017,9 +1017,6 @@
1017
1017
  .e-btn-group input:focus + label.e-btn.e-outline,
1018
1018
  .e-css.e-btn-group .e-btn:focus.e-outline,
1019
1019
  .e-css.e-btn-group input:focus + label.e-btn.e-outline {
1020
- background-color: #e6e6e6;
1021
- border-color: #8c8c8c;
1022
- color: #333;
1023
1020
  box-shadow: none;
1024
1021
  box-shadow: none;
1025
1022
  }
@@ -1028,9 +1025,6 @@
1028
1025
  .e-btn-group input:focus + label.e-btn.e-outline.e-primary,
1029
1026
  .e-css.e-btn-group .e-btn:focus.e-outline.e-primary,
1030
1027
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-primary {
1031
- background-color: #21527d;
1032
- border-color: #0c1d2c;
1033
- color: #fff;
1034
1028
  box-shadow: none;
1035
1029
  }
1036
1030
 
@@ -1038,9 +1032,6 @@
1038
1032
  .e-btn-group input:focus + label.e-btn.e-outline.e-success,
1039
1033
  .e-css.e-btn-group .e-btn:focus.e-outline.e-success,
1040
1034
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-success {
1041
- background-color: #124a1f;
1042
- border-color: black;
1043
- color: #fff;
1044
1035
  box-shadow: none;
1045
1036
  }
1046
1037
 
@@ -1048,9 +1039,6 @@
1048
1039
  .e-btn-group input:focus + label.e-btn.e-outline.e-info,
1049
1040
  .e-css.e-btn-group .e-btn:focus.e-outline.e-info,
1050
1041
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-info {
1051
- background-color: #104b5d;
1052
- border-color: #010406;
1053
- color: #fff;
1054
1042
  box-shadow: none;
1055
1043
  }
1056
1044
 
@@ -1058,9 +1046,6 @@
1058
1046
  .e-btn-group input:focus + label.e-btn.e-outline.e-warning,
1059
1047
  .e-css.e-btn-group .e-btn:focus.e-outline.e-warning,
1060
1048
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-warning {
1061
- background-color: #613b05;
1062
- border-color: black;
1063
- color: #fff;
1064
1049
  box-shadow: none;
1065
1050
  }
1066
1051
 
@@ -1068,9 +1053,6 @@
1068
1053
  .e-btn-group input:focus + label.e-btn.e-outline.e-danger,
1069
1054
  .e-css.e-btn-group .e-btn:focus.e-outline.e-danger,
1070
1055
  .e-css.e-btn-group input:focus + label.e-btn.e-outline.e-danger {
1071
- background-color: #a51c2a;
1072
- border-color: #4e0d14;
1073
- color: #fff;
1074
1056
  box-shadow: none;
1075
1057
  }
1076
1058
 
@@ -1120,8 +1102,8 @@
1120
1102
  .e-css.e-btn-group input:active + label.e-btn.e-info,
1121
1103
  .e-css.e-btn-group input:checked + label.e-btn.e-info {
1122
1104
  background-color: #104b5d;
1123
- border-color: #082831;
1124
1105
  color: #fff;
1106
+ border-color: #082831;
1125
1107
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
1126
1108
  }
1127
1109