@syncfusion/ej2-splitbuttons 20.2.38 → 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.
- package/CHANGELOG.md +12 -0
- package/dist/ej2-splitbuttons.umd.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es2015.js +21 -2
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +21 -2
- package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-splitbuttons.min.js +2 -2
- package/dist/global/ej2-splitbuttons.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/drop-down-button/drop-down-button-model.d.ts +7 -0
- package/src/drop-down-button/drop-down-button.d.ts +7 -0
- package/src/drop-down-button/drop-down-button.js +21 -2
- package/styles/bootstrap-dark.css +5 -5
- package/styles/bootstrap4.css +1 -1
- package/styles/highcontrast.css +2 -2
- package/styles/progress-button/_bootstrap-dark-definition.scss +5 -5
- package/styles/progress-button/_bootstrap4-definition.scss +1 -1
- package/styles/progress-button/_highcontrast-definition.scss +1 -1
- package/styles/progress-button/bootstrap-dark.css +5 -5
- package/styles/progress-button/bootstrap4.css +1 -1
- package/styles/progress-button/highcontrast.css +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-splitbuttons@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-splitbuttons@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-splitbuttons@20.2.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.2.
|
|
35
|
-
"_shasum": "
|
|
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.2.
|
|
47
|
-
"@syncfusion/ej2-popups": "~20.2.
|
|
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.2.
|
|
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;
|
|
@@ -392,6 +392,9 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
392
392
|
if (popupElement) {
|
|
393
393
|
EventHandler.add(popupElement, 'click', this.clickHandler, this);
|
|
394
394
|
EventHandler.add(popupElement, 'keydown', this.keyBoardHandler, this);
|
|
395
|
+
if (this.closeActionEvents) {
|
|
396
|
+
EventHandler.add(popupElement, this.closeActionEvents, this.focusoutHandler, this);
|
|
397
|
+
}
|
|
395
398
|
}
|
|
396
399
|
this.rippleFn = rippleEffect(popupElement, { selector: '.' + classNames.ITEM });
|
|
397
400
|
};
|
|
@@ -403,6 +406,9 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
403
406
|
if (popupElement && popupElement.parentElement) {
|
|
404
407
|
EventHandler.remove(popupElement, 'click', this.clickHandler);
|
|
405
408
|
EventHandler.remove(popupElement, 'keydown', this.keyBoardHandler);
|
|
409
|
+
if (this.closeActionEvents) {
|
|
410
|
+
EventHandler.remove(popupElement, this.closeActionEvents, this.focusoutHandler);
|
|
411
|
+
}
|
|
406
412
|
}
|
|
407
413
|
};
|
|
408
414
|
/**
|
|
@@ -470,6 +476,11 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
470
476
|
this.closePopup(e);
|
|
471
477
|
}
|
|
472
478
|
};
|
|
479
|
+
DropDownButton.prototype.focusoutHandler = function (e) {
|
|
480
|
+
if (this.isPopupCreated && !this.canOpen()) {
|
|
481
|
+
this.closePopup(e);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
473
484
|
DropDownButton.prototype.clickHandler = function (e) {
|
|
474
485
|
var trgt = e.target;
|
|
475
486
|
if (closest(trgt, '[id="' + this.element.id + '"]')) {
|
|
@@ -545,7 +556,9 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
545
556
|
_this.dropDown.show(null, _this.element);
|
|
546
557
|
addClass([_this.element], 'e-active');
|
|
547
558
|
_this.element.setAttribute('aria-expanded', 'true');
|
|
548
|
-
ul_1
|
|
559
|
+
if (ul_1) {
|
|
560
|
+
ul_1.focus();
|
|
561
|
+
}
|
|
549
562
|
var openArgs = { element: ul_1, items: _this.items };
|
|
550
563
|
_this.trigger('open', openArgs);
|
|
551
564
|
}
|
|
@@ -564,7 +577,10 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
564
577
|
if (!observedArgs.cancel) {
|
|
565
578
|
_this.popupUnWireEvents();
|
|
566
579
|
var ul_2 = _this.getULElement();
|
|
567
|
-
var selectedLi =
|
|
580
|
+
var selectedLi = void 0;
|
|
581
|
+
if (ul_2) {
|
|
582
|
+
selectedLi = ul_2.querySelector('.e-selected');
|
|
583
|
+
}
|
|
568
584
|
if (selectedLi) {
|
|
569
585
|
selectedLi.classList.remove('e-selected');
|
|
570
586
|
}
|
|
@@ -707,6 +723,9 @@ var DropDownButton = /** @class */ (function (_super) {
|
|
|
707
723
|
__decorate([
|
|
708
724
|
Property('')
|
|
709
725
|
], DropDownButton.prototype, "target", void 0);
|
|
726
|
+
__decorate([
|
|
727
|
+
Property('')
|
|
728
|
+
], DropDownButton.prototype, "closeActionEvents", void 0);
|
|
710
729
|
__decorate([
|
|
711
730
|
Event()
|
|
712
731
|
], DropDownButton.prototype, "beforeItemRender", void 0);
|
|
@@ -1771,19 +1771,19 @@
|
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
1773
|
*.e-flat.e-primary .e-progress {
|
|
1774
|
-
background-color: rgba(255,
|
|
1774
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1775
1775
|
}
|
|
1776
1776
|
*.e-flat.e-success .e-progress {
|
|
1777
|
-
background-color: rgba(
|
|
1777
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1778
1778
|
}
|
|
1779
1779
|
*.e-flat.e-info .e-progress {
|
|
1780
|
-
background-color: rgba(
|
|
1780
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1781
1781
|
}
|
|
1782
1782
|
*.e-flat.e-warning .e-progress {
|
|
1783
|
-
background-color: rgba(
|
|
1783
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1784
1784
|
}
|
|
1785
1785
|
*.e-flat.e-danger .e-progress {
|
|
1786
|
-
background-color: rgba(
|
|
1786
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
1789
|
*.e-outline:not(:focus).e-primary .e-progress {
|
package/styles/bootstrap4.css
CHANGED
package/styles/highcontrast.css
CHANGED
|
@@ -1814,11 +1814,11 @@
|
|
|
1814
1814
|
*.e-success .e-progress,
|
|
1815
1815
|
*.e-danger .e-progress,
|
|
1816
1816
|
*.e-info .e-progress {
|
|
1817
|
-
background-color: rgba(
|
|
1817
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
1820
|
*.e-warning .e-progress {
|
|
1821
|
-
background-color: rgba(
|
|
1821
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
1824
|
*.e-flat.e-primary .e-progress {
|
|
@@ -17,10 +17,10 @@ $progress-btn-spinner-padding-small: 10px !default;
|
|
|
17
17
|
$progress-btn-spinner-padding-bigger: 14px !default;
|
|
18
18
|
$progress-btn-spinner-padding-bigger-small: 12px !default;
|
|
19
19
|
|
|
20
|
-
$progress-btn-flat-primary-progress-color:
|
|
21
|
-
$progress-btn-flat-success-progress-color:
|
|
22
|
-
$progress-btn-flat-info-progress-color:
|
|
23
|
-
$progress-btn-flat-warning-progress-color:
|
|
24
|
-
$progress-btn-flat-danger-progress-color:
|
|
20
|
+
$progress-btn-flat-primary-progress-color: rgba($brand-primary-font, 1) !default;
|
|
21
|
+
$progress-btn-flat-success-progress-color: rgba($brand-primary-font, 1) !default;
|
|
22
|
+
$progress-btn-flat-info-progress-color: rgba($brand-primary-font, 1) !default;
|
|
23
|
+
$progress-btn-flat-warning-progress-color: rgba($brand-primary-font, 1) !default;
|
|
24
|
+
$progress-btn-flat-danger-progress-color: rgba($brand-primary-font, 1) !default;
|
|
25
25
|
$btn-flat-primary-path-arc: none;
|
|
26
26
|
//enddefault
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$progress-btn-color: $white !default;
|
|
2
|
-
$progress-btn-bgcolor: rgba($
|
|
2
|
+
$progress-btn-bgcolor: rgba($gray-700, .2) !default;
|
|
3
3
|
$progress-btn-bgcolor-normal: rgba($white, .25) !default;
|
|
4
4
|
$progress-btn-warning-progress-color: rgba($gray-900, .25) !default;
|
|
5
5
|
$progress-btn-circle-opacity: 0 !default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$progress-btn-color: $content-font !default;
|
|
2
|
-
$progress-btn-bgcolor: rgba($
|
|
2
|
+
$progress-btn-bgcolor: rgba($content-font, .2) !default;
|
|
3
3
|
$progress-btn-bgcolor-normal: rgba($bg-base-100, .3) !default;
|
|
4
4
|
$progress-btn-warning-progress-color: $progress-btn-bgcolor !default;
|
|
5
5
|
$progress-btn-circle-opacity: 1 !default;
|
|
@@ -496,19 +496,19 @@
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
*.e-flat.e-primary .e-progress {
|
|
499
|
-
background-color: rgba(255,
|
|
499
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
500
500
|
}
|
|
501
501
|
*.e-flat.e-success .e-progress {
|
|
502
|
-
background-color: rgba(
|
|
502
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
503
503
|
}
|
|
504
504
|
*.e-flat.e-info .e-progress {
|
|
505
|
-
background-color: rgba(
|
|
505
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
506
506
|
}
|
|
507
507
|
*.e-flat.e-warning .e-progress {
|
|
508
|
-
background-color: rgba(
|
|
508
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
509
509
|
}
|
|
510
510
|
*.e-flat.e-danger .e-progress {
|
|
511
|
-
background-color: rgba(
|
|
511
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
*.e-outline:not(:focus).e-primary .e-progress {
|
|
@@ -488,11 +488,11 @@
|
|
|
488
488
|
*.e-success .e-progress,
|
|
489
489
|
*.e-danger .e-progress,
|
|
490
490
|
*.e-info .e-progress {
|
|
491
|
-
background-color: rgba(
|
|
491
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
*.e-warning .e-progress {
|
|
495
|
-
background-color: rgba(
|
|
495
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
*.e-flat.e-primary .e-progress {
|