@syncfusion/ej2-splitbuttons 19.3.44 → 19.3.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@18.20.0",
3
+ "_id": "@syncfusion/ej2-splitbuttons@19.3.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rxULxy7dj5ipzI9AdQ4LWOTK06du8Tunwd8MSXPtX6CMAawuYzJDHLAuzY0D/R/872ma0OKfTnp4taZ1vT4JKQ==",
5
+ "_integrity": "sha512-F4pU2WFenwqHcnaA0TKG1IsyLDexSc7ae4SrQyZnqlPEEVgtYeHu9LFwQH7zN5pv+Cr8g5yamVoklVxsPkXDlQ==",
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-18.20.0.tgz",
35
- "_shasum": "b8ef6885a48cff681b8b9aa77d28ab9a137eee3e",
34
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.3.48.tgz",
35
+ "_shasum": "46d76e360edd23309b25ff0d25316c15a50242fd",
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.3.43",
47
- "@syncfusion/ej2-popups": "~19.3.43"
46
+ "@syncfusion/ej2-base": "~19.3.53",
47
+ "@syncfusion/ej2-popups": "~19.3.53"
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.3.44",
90
+ "version": "19.3.53",
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
  /**
@@ -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) {
@@ -383,7 +394,7 @@ var DropDownButton = /** @class */ (function (_super) {
383
394
  if (this.createPopupOnClick) {
384
395
  EventHandler.remove(document, 'mousedown touchstart', this.delegateMousedownHandler);
385
396
  }
386
- if (popupElement) {
397
+ if (popupElement && popupElement.parentElement) {
387
398
  EventHandler.remove(popupElement, 'click', this.clickHandler);
388
399
  EventHandler.remove(popupElement, 'keydown', this.keyBoardHandler);
389
400
  }
@@ -456,7 +467,7 @@ var DropDownButton = /** @class */ (function (_super) {
456
467
  DropDownButton.prototype.clickHandler = function (e) {
457
468
  var trgt = e.target;
458
469
  if (closest(trgt, '[id="' + this.element.id + '"]')) {
459
- if (!this.createPopupOnClick || this.target) {
470
+ if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
460
471
  if (this.getPopUpElement().classList.contains('e-popup-close')) {
461
472
  this.openPopUp(e);
462
473
  }
@@ -539,7 +550,7 @@ var DropDownButton = /** @class */ (function (_super) {
539
550
  if (!_this.target && ul_2) {
540
551
  detach(ul_2);
541
552
  }
542
- if (!_this.target) {
553
+ if (!_this.target || _this.isColorPicker()) {
543
554
  if (_this.createPopupOnClick) {
544
555
  _this.destroyPopup();
545
556
  }