@syncfusion/ej2-splitbuttons 23.2.4 → 24.1.41

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.2.4
3
+ * version : 24.1.41
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@23.1.43",
3
+ "_id": "@syncfusion/ej2-splitbuttons@19.16.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-HLT+obi87lgivOh09dOLc6l8WLdEfJwSFnQkeevin4fGfol0SxBhVs/Fx9SIAzcv37WNKnl3RNMlYSvJt4dq7g==",
5
+ "_integrity": "sha512-qny+mbMw7X8UPi/m1bYkmTHvpN/xsFTOSBWYCz4VOovOZZWT4FONYLODSOi146Mixs8HqOiZ5iV7TEIPLeQm2g==",
6
6
  "_location": "/@syncfusion/ej2-splitbuttons",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -33,10 +33,10 @@
33
33
  "/@syncfusion/ej2-richtexteditor",
34
34
  "/@syncfusion/ej2-vue-splitbuttons"
35
35
  ],
36
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-23.1.43.tgz",
37
- "_shasum": "ec4431d81132eb8276d0ff405d1d66cb09a9d24f",
36
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.16.4.tgz",
37
+ "_shasum": "21cf837f2cc854ae4a2db216948cb8c70c813fee",
38
38
  "_spec": "@syncfusion/ej2-splitbuttons@*",
39
- "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
39
+ "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
40
40
  "author": {
41
41
  "name": "Syncfusion Inc."
42
42
  },
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "bundleDependencies": false,
47
47
  "dependencies": {
48
- "@syncfusion/ej2-base": "~23.2.4",
49
- "@syncfusion/ej2-popups": "~23.2.4"
48
+ "@syncfusion/ej2-base": "~24.1.41",
49
+ "@syncfusion/ej2-popups": "~24.1.41"
50
50
  },
51
51
  "deprecated": false,
52
52
  "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
@@ -89,6 +89,6 @@
89
89
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
90
90
  },
91
91
  "typings": "index.d.ts",
92
- "version": "23.2.4",
92
+ "version": "24.1.41",
93
93
  "sideEffects": false
94
94
  }
@@ -208,6 +208,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
208
208
  protected getPopUpElement(): HTMLElement;
209
209
  protected getULElement(): HTMLElement;
210
210
  protected wireEvents(): void;
211
+ protected windowResize(): void;
211
212
  protected popupWireEvents(): void;
212
213
  protected popupUnWireEvents(): void;
213
214
  /**
@@ -166,6 +166,8 @@ var DropDownButton = /** @class */ (function (_super) {
166
166
  content: this.target ? this.getTargetElement() : '',
167
167
  enableRtl: this.enableRtl
168
168
  });
169
+ this.dropDown.element.setAttribute('role', 'dialog');
170
+ this.dropDown.element.setAttribute('aria-label', 'dropdown menu');
169
171
  if (!isNullOrUndefined(this.popupContent)) {
170
172
  this.popupContent.style.display = '';
171
173
  }
@@ -211,7 +213,7 @@ var DropDownButton = /** @class */ (function (_super) {
211
213
  li = this.createElement('li', {
212
214
  innerHTML: item.url ? '' : tempItem,
213
215
  className: item.separator ? classNames.ITEM + ' ' + classNames.SEPARATOR : classNames.ITEM,
214
- attrs: item.separator ? { 'role': 'separator', 'tabindex': '-1' } : { 'role': 'menuitem', 'tabindex': '-1', 'aria-label': tempItem },
216
+ attrs: item.separator ? { 'role': 'separator', 'tabindex': '-1', 'aria-label': 'separator', 'aria-hidden': 'true' } : { 'role': 'menuitem', 'tabindex': '-1', 'aria-label': tempItem },
215
217
  id: item.id ? item.id : getUniqueID('e-' + this.getModuleName() + '-item')
216
218
  });
217
219
  if (this.enableHtmlSanitizer) {
@@ -403,6 +405,12 @@ var DropDownButton = /** @class */ (function (_super) {
403
405
  }
404
406
  EventHandler.add(this.element, 'click', this.clickHandler, this);
405
407
  EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
408
+ EventHandler.add(window, 'resize', this.windowResize, this);
409
+ };
410
+ DropDownButton.prototype.windowResize = function () {
411
+ if (!this.canOpen() && this.dropDown) {
412
+ this.dropDown.refreshPosition(this.element);
413
+ }
406
414
  };
407
415
  DropDownButton.prototype.popupWireEvents = function () {
408
416
  if (!this.delegateMousedownHandler) {
@@ -677,6 +685,7 @@ var DropDownButton = /** @class */ (function (_super) {
677
685
  EventHandler.remove(this.getPopUpElement(), 'click', this.clickHandler);
678
686
  EventHandler.remove(this.getPopUpElement(), 'keydown', this.keyBoardHandler);
679
687
  }
688
+ EventHandler.remove(window, 'resize', this.windowResize);
680
689
  };
681
690
  /**
682
691
  * Called internally if any of the property value changed.
@@ -405,7 +405,7 @@ var ProgressButton = /** @class */ (function (_super) {
405
405
  };
406
406
  ProgressButton.prototype.setAria = function () {
407
407
  attributes(this.element, {
408
- 'aria-label': this.element.textContent + ' progress', 'aria-valuemin': '0', 'aria-valuemax': '100', 'aria-valuenow': '0'
408
+ 'aria-label': this.element.textContent + ' progress'
409
409
  });
410
410
  };
411
411
  ProgressButton.prototype.wireEvents = function () {
@@ -263,13 +263,20 @@ var SplitButton = /** @class */ (function (_super) {
263
263
  this.unWireEvents();
264
264
  }
265
265
  }
266
- this.wrapper = null;
267
266
  this.primaryBtnObj.destroy();
268
267
  this.secondaryBtnObj.destroy();
269
268
  _super.prototype.destroy.call(this);
270
- if (!this.element.getAttribute('class')) {
269
+ if (this.element && !this.element.getAttribute('class')) {
271
270
  this.element.removeAttribute('class');
272
271
  }
272
+ if (this.refreshing && this.isAngular) {
273
+ this.element = this.wrapper;
274
+ ['e-control', 'e-split-btn', 'e-lib'].forEach(function (key) {
275
+ _this.element.classList.add(key);
276
+ });
277
+ setValue('ej2_instances', [this], this.element);
278
+ }
279
+ this.wrapper = null;
273
280
  };
274
281
  SplitButton.prototype.wireEvents = function () {
275
282
  EventHandler.add(this.element, 'click', this.primaryBtnClickHandler, this);