@syncfusion/ej2-splitbuttons 19.3.45 → 19.4.38

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@19.3.44",
3
+ "_id": "@syncfusion/ej2-splitbuttons@18.22.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MY8IG9t4KUJoHUEbyFPq+0/RT8afcCMWKHTdG1h304ymusEJZRqPCUtBp/iQsmx6d60srbm1TL7xPjOj1XRJ9w==",
5
+ "_integrity": "sha512-HnLFIx3gYAL3a8MURQpNU9rOXWUCk10wrp63cxiJVyQ+ZvjdTjEdlkIsIQPY+xExDBdmNWJucuuV9FWow2v+aw==",
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.3.44.tgz",
35
- "_shasum": "f4e67e1a7ef20ba8aca2476d08ac40bf32667c09",
34
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-18.22.0.tgz",
35
+ "_shasum": "f73522edaa642fb8d2c82ccdbd7ef65de4b4eb2a",
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.4.38",
47
+ "@syncfusion/ej2-popups": "~19.4.38"
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.45",
90
+ "version": "19.4.38",
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
@@ -457,7 +467,7 @@ var DropDownButton = /** @class */ (function (_super) {
457
467
  DropDownButton.prototype.clickHandler = function (e) {
458
468
  var trgt = e.target;
459
469
  if (closest(trgt, '[id="' + this.element.id + '"]')) {
460
- if (!this.createPopupOnClick || this.target) {
470
+ if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
461
471
  if (this.getPopUpElement().classList.contains('e-popup-close')) {
462
472
  this.openPopUp(e);
463
473
  }
@@ -540,7 +550,7 @@ var DropDownButton = /** @class */ (function (_super) {
540
550
  if (!_this.target && ul_2) {
541
551
  detach(ul_2);
542
552
  }
543
- if (!_this.target) {
553
+ if (!_this.target || _this.isColorPicker()) {
544
554
  if (_this.createPopupOnClick) {
545
555
  _this.destroyPopup();
546
556
  }
@@ -0,0 +1,31 @@
1
+ //layout variables
2
+ $btn-grp-margin: -1px !default;
3
+ $btn-grp-margin-left: -1px !default;
4
+ $btn-grp-wrapper-border: 4px !default;
5
+ $btn-grp-round-radius: 20px !default;
6
+ $btn-grp-icon-font-size: 16px !default;
7
+ $btn-grp-icon-font-size-bigger: 20px !default;
8
+
9
+ //Normal Outline GroupButton
10
+ $btn-grp-outline-focus-border-color: $secondary-border-color !default;
11
+ $btn-grp-outline-focus-color: inherit !default;
12
+
13
+ //Outline Primary
14
+ $btn-grp-outline-primary-focus-border-color: $primary !default;
15
+ $btn-grp-outline-focus-primary-color: inherit !default;
16
+
17
+ //Outline Success
18
+ $btn-grp-outline-success-focus-border-color: $btn-success-focus-border-color !default;
19
+ $btn-grp-outline-focus-success-color: inherit !default;
20
+
21
+ //Outline Info
22
+ $btn-grp-outline-info-focus-border-color: $btn-info-focus-border-color !default;
23
+ $btn-grp-outline-focus-info-color: inherit !default;
24
+
25
+ //Outline warning
26
+ $btn-grp-outline-warning-focus-border-color: $btn-warning-focus-border-color !default;
27
+ $btn-grp-outline-focus-warning-color: inherit !default;
28
+
29
+ //Outline danger
30
+ $btn-grp-outline-danger-focus-border-color: $btn-danger-focus-border-color !default;
31
+ $btn-grp-outline-focus-danger-color: inherit !default;
@@ -0,0 +1,52 @@
1
+ //layout variables
2
+ $drop-down-btn-arrow-content: '\e70d' !default;
3
+ $drop-down-btn-vertical-btn-padding: 6px 12px !default;
4
+ $drop-down-btn-vertical-bigger-padding: 8px 16px !default;
5
+ $drop-down-btn-bigger-font-size: $text-base !default;
6
+ $drop-down-btn-bigger-li-height: 40px !default;
7
+ $drop-down-btn-bigger-max-width: 202px !default;
8
+ $drop-down-btn-bigger-min-width: 112px !default;
9
+ $drop-down-btn-icon-font-size: 14px !default;
10
+ $drop-down-btn-icon-margin-right: 11px !default;
11
+ $drop-down-btn-bigger-icon-margin-right: 12px !default;
12
+ $drop-down-btn-li-border-width: 1px !default;
13
+ $drop-down-btn-li-height: 36px !default;
14
+ $drop-down-btn-li-padding: 0 12px !default;
15
+ $drop-down-btn-bigger-li-padding: 0 16px !default;
16
+ $drop-down-btn-small-li-padding: 0 8px !default;
17
+ $drop-down-btn-max-width: 178px !default;
18
+ $drop-down-btn-menu-icon-bigger-font-size: 22px !default;
19
+ $drop-down-btn-menu-icon-font-size: 18px !default;
20
+ $drop-down-btn-min-width: 120px !default;
21
+ $drop-down-btn-seperator-padding: 3px 0 !default;
22
+ $drop-down-btn-sub-ul-box-shadow: none !default;
23
+ $drop-down-btn-ul-border-radius: 2px !default;
24
+ $drop-down-btn-ul-padding: 6px 0 !default;
25
+ $drop-down-btn-ul-bigger-padding: 8px 0 !default;
26
+ $drop-down-btn-ul-small-padding: 4px 0 !default;
27
+ $drop-down-btn-caret-icon-font-size: 16px !default;
28
+ $drop-down-btn-icon-font-size-bigger: 16px !default;
29
+ $drop-down-btn-caret-icon-font-size-bigger: 20px !default;
30
+ $drop-down-btn-box-shadow: $secondary-shadow-focus !default;
31
+ $drop-down-btn-popup-margin-top: 4px !default;
32
+ $drop-down-btn-bigger-popup-margin-top: 4px !default;
33
+ $drop-down-btn-ul-border: 0 solid $border-light !default;
34
+ $drop-down-btn-li-box-shadow: none !default;
35
+ $drop-down-btn-li-border-style: solid !default;
36
+ //Color
37
+ $drop-down-btn-color: $secondary-text-color !default;
38
+ $drop-down-btn-disable-text: $secondary-text-color-disabled !default;
39
+ $drop-down-btn-font-size: $text-sm !default;
40
+ $drop-down-btn-font-weight: $font-weight-normal !default;
41
+ $drop-down-btn-li-bgcolor: $flyout-bg-color-hover !default;
42
+ $drop-down-btn-ul-bgcolor: $flyout-bg-color !default;
43
+ $drop-down-btn-li-border-color: $border-light !default;
44
+ $drop-down-btn-selected-color: $flyout-text-color-selected !default;
45
+ $drop-down-btn-parent-ul-box-shadow: $shadow-md !default;
46
+ $drop-down-btn-li-focus-bgcolor: $flyout-bg-color-focus !default;
47
+ $drop-down-btn-li-selection-bgcolor: $flyout-bg-color-selected !default;
48
+ $drop-down-btn-li-selection-font-color: $flyout-text-color-selected !default;
49
+ $drop-down-btn-menu-icon-color: $primary-outline !default;
50
+ $drop-down-btn-menu-icon-disabled-color: $primary-outline !default;
51
+ $drop-down-btn-li-hover-bgcolor: $flyout-bg-color-hover !default;
52
+
@@ -39,7 +39,12 @@
39
39
  }
40
40
 
41
41
  & .e-menu-icon {
42
- color: $drop-down-btn-selected-color;
42
+ @if $skin-name == 'FluentUI' or $theme-name == 'FluentUI' {
43
+ color: $drop-down-btn-menu-icon-color;
44
+ }
45
+ @else {
46
+ color: $drop-down-btn-selected-color;
47
+ }
43
48
  }
44
49
  }
45
50
  }
@@ -0,0 +1,10 @@
1
+ @include export-module('drop-down-button-fluent-icons') {
2
+ .e-dropdown-btn,
3
+ .e-dropdown-btn.e-btn {
4
+ .e-caret {
5
+ &::before {
6
+ content: '\e7c3';
7
+ }
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,21 @@
1
+ //layout variables
2
+ $progress-btn-circle-opacity: .3 !default;
3
+ $progress-btn-transition: all .3s linear !default;
4
+ $progress-btn-spinner-padding: 12px !default;
5
+ $progress-btn-spinner-padding-small: 10px !default;
6
+ $progress-btn-spinner-padding-bigger: 14px !default;
7
+ $progress-btn-spinner-padding-bigger-small: 12px !default;
8
+ $progress-btn-spin-btn-padding: 16px !default;
9
+ $progress-btn-small-spin-btn-padding: 14px !default;
10
+ $progress-btn-bigger-spin-btn-padding: 20px !default;
11
+ $progress-btn-bigger-small-spin-btn-padding: 16px !default;
12
+ $progress-btn-color: $secondary-text-color !default;
13
+ $progress-btn-bgcolor: rgba($secondary-text-color, .2) !default;
14
+ $progress-btn-bgcolor-normal: rgba($secondary-text-color, .2) !default;
15
+ $progress-btn-warning-progress-color: $progress-btn-bgcolor !default;
16
+ $progress-btn-flat-primary-progress-color: rgba($primary-text-color, 1) !default;
17
+ $progress-btn-flat-success-progress-color: rgba($success-text, 1) !default;
18
+ $progress-btn-flat-info-progress-color: rgba($info-text, 1) !default;
19
+ $progress-btn-flat-warning-progress-color: rgba($warning-text, 1) !default;
20
+ $progress-btn-flat-danger-progress-color: rgba($danger-text, 1) !default;
21
+ $btn-flat-primary-path-arc: $white;
@@ -0,0 +1,25 @@
1
+ //layout variables
2
+ $split-btn-zindex: 2 !default;
3
+ $split-btn-border-radius: 0 !default;
4
+ $split-btn-focus-outline-offset: 0 !default;
5
+ $split-btn-vertical-secondary-icon-line-height: .334em !default;
6
+ $split-btn-seperator-border: 1px solid !default;
7
+ $split-btn-sec-btn-margin-left: -1px !default;
8
+ $split-btn-icon-btn-padding: 10px !default;
9
+ $split-btn-icon-btn-padding-bigger: 12px !default;
10
+ $split-btn-focus-border-color: $secondary-border-color !default;
11
+ $split-btn-focus-vertical-border-color: $secondary-border-color !default;
12
+ $split-btn-seperator-border-color: $secondary-border-color !default;
13
+ $split-btn-seperator-default-border-color: $secondary-border-color !default;
14
+ $split-btn-seperator-vertical-border-color: $secondary-border-color !default;
15
+ $split-btn-hover-border-color: $secondary-border-color !default;
16
+ $split-btn-hover-vertical-border-color: $secondary-border-color !default;
17
+ $split-btn-active-border-color: $secondary-bg-color-pressed !default;
18
+ $split-btn-active-vertical-border-color: $secondary-bg-color-pressed !default;
19
+ $split-btn-disabled-vertical-border-color: $secondary-border-color-disabled !default;
20
+ $split-btn-active-box-shadow: $shadow-none !default;
21
+ $split-btn-disabled-left-border-color: $secondary-border-color !default;
22
+ $split-btn-hover-left-border-color: $secondary-border-color !default;
23
+ $split-btn-focus-left-border-color: $secondary-border-color !default;
24
+ $split-btn-active-left-border-color: $secondary-border-color !default;
25
+
@@ -18,6 +18,9 @@
18
18
  padding-left: 12px;
19
19
  padding-right: 12px;
20
20
  }
21
+ @else if $skin-name == 'FluentUI' or $theme-name == 'FluentUI' {
22
+ padding: 0 19px;
23
+ }
21
24
  @else {
22
25
  padding-left: 10px;
23
26
  padding-right: 4px;
@@ -28,7 +31,7 @@
28
31
  }
29
32
 
30
33
  &:hover {
31
- @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' {
34
+ @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' and $skin-name != 'FluentUI' and $theme-name != 'FluentUI' {
32
35
  box-shadow: none;
33
36
  }
34
37
  }
@@ -83,6 +86,9 @@
83
86
  padding-left: $split-btn-icon-btn-padding;
84
87
  padding-right: $split-btn-icon-btn-padding;
85
88
  }
89
+ @else if $skin-name == 'FluentUI' or $theme-name == 'FluentUI' {
90
+ padding: 4px;
91
+ }
86
92
  @else {
87
93
  padding-left: 4px;
88
94
  padding-right: 4px;
@@ -93,7 +99,7 @@
93
99
 
94
100
  &:focus,
95
101
  &:hover {
96
- @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' {
102
+ @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' and $skin-name != 'FluentUI' and $theme-name != 'FluentUI' {
97
103
  box-shadow: none;
98
104
  }
99
105
  }
@@ -117,12 +123,12 @@
117
123
  }
118
124
 
119
125
  .e-btn {
120
- @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' {
126
+ @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' and $skin-name != 'FluentUI' and $theme-name != 'FluentUI' {
121
127
  box-shadow: none;
122
128
  }
123
129
 
124
130
  &:hover {
125
- @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' {
131
+ @if $skin-name != 'bootstrap4' and $skin-name != 'bootstrap5' and $skin-name != 'FluentUI' and $theme-name != 'FluentUI' {
126
132
  box-shadow: none;
127
133
  }
128
134
  }
@@ -146,6 +152,10 @@
146
152
 
147
153
  &:disabled {
148
154
  box-shadow: none;
155
+ @if $skin-name == 'FluentUI' or $theme-name == 'FluentUI' {
156
+ outline: 0;
157
+ outline-offset: 0;
158
+ }
149
159
  }
150
160
  }
151
161