@syncfusion/ej2-splitbuttons 30.1.37 → 30.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.
Files changed (47) hide show
  1. package/.eslintrc.json +2 -0
  2. package/dist/ej2-splitbuttons.min.js +2 -2
  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 +1 -1
  6. package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
  7. package/dist/es6/ej2-splitbuttons.es5.js +1 -1
  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/package.json +12 -57
  13. package/src/drop-down-button/drop-down-button.js +1 -1
  14. package/styles/material3-dark-lite.css +5 -0
  15. package/styles/material3-dark.css +5 -0
  16. package/styles/material3-lite.css +5 -0
  17. package/styles/material3.css +5 -0
  18. package/styles/split-button/_layout.scss +1 -0
  19. package/styles/split-button/_theme.scss +4 -0
  20. package/styles/split-button/material3-dark.css +5 -0
  21. package/styles/split-button/material3.css +5 -0
  22. package/dist/ts/button-group/button-group.d.ts +0 -38
  23. package/dist/ts/button-group/button-group.ts +0 -84
  24. package/dist/ts/button-group/index.d.ts +0 -4
  25. package/dist/ts/button-group/index.ts +0 -4
  26. package/dist/ts/common/common-model.d.ts +0 -51
  27. package/dist/ts/common/common.d.ts +0 -95
  28. package/dist/ts/common/common.ts +0 -218
  29. package/dist/ts/common/index.d.ts +0 -5
  30. package/dist/ts/common/index.ts +0 -5
  31. package/dist/ts/drop-down-button/drop-down-button-model.d.ts +0 -195
  32. package/dist/ts/drop-down-button/drop-down-button.d.ts +0 -308
  33. package/dist/ts/drop-down-button/drop-down-button.ts +0 -1110
  34. package/dist/ts/drop-down-button/index.d.ts +0 -5
  35. package/dist/ts/drop-down-button/index.ts +0 -5
  36. package/dist/ts/index.d.ts +0 -8
  37. package/dist/ts/index.ts +0 -8
  38. package/dist/ts/progress-button/index.d.ts +0 -5
  39. package/dist/ts/progress-button/index.ts +0 -5
  40. package/dist/ts/progress-button/progress-button-model.d.ts +0 -206
  41. package/dist/ts/progress-button/progress-button.d.ts +0 -323
  42. package/dist/ts/progress-button/progress-button.ts +0 -689
  43. package/dist/ts/split-button/index.d.ts +0 -5
  44. package/dist/ts/split-button/index.ts +0 -5
  45. package/dist/ts/split-button/split-button-model.d.ts +0 -133
  46. package/dist/ts/split-button/split-button.d.ts +0 -236
  47. package/dist/ts/split-button/split-button.ts +0 -535
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 30.1.37
3
+ * version : 30.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,58 +1,17 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@28.2.0",
4
- "_inBundle": false,
5
- "_integrity": "sha512-TvfE2XBZrIRf0OHfwArvbbgRJTxF3YSWscGWNEb2FNimdMZAQhSLGRmca36wAJ4ZGOoyKp0KXEhm4oKDt32uZQ==",
6
- "_location": "/@syncfusion/ej2-splitbuttons",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-splitbuttons@*",
12
- "name": "@syncfusion/ej2-splitbuttons",
13
- "escapedName": "@syncfusion%2fej2-splitbuttons",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2-angular-splitbuttons",
22
- "/@syncfusion/ej2-documenteditor",
23
- "/@syncfusion/ej2-filemanager",
24
- "/@syncfusion/ej2-grids",
25
- "/@syncfusion/ej2-image-editor",
26
- "/@syncfusion/ej2-inplace-editor",
27
- "/@syncfusion/ej2-inputs",
28
- "/@syncfusion/ej2-interactive-chat",
29
- "/@syncfusion/ej2-pivotview",
30
- "/@syncfusion/ej2-querybuilder",
31
- "/@syncfusion/ej2-react-splitbuttons",
32
- "/@syncfusion/ej2-ribbon",
33
- "/@syncfusion/ej2-richtexteditor",
34
- "/@syncfusion/ej2-vue-splitbuttons"
35
- ],
36
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-development/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-28.2.0.tgz",
37
- "_shasum": "7f4fe237f666e0f7feb08f2dd39f41de49bc6dbb",
38
- "_spec": "@syncfusion/ej2-splitbuttons@*",
39
- "_where": "D:\\SF3992\\WFH\\Nexus\\ej2-nexus-branch-switching-dev\\release",
40
- "author": {
41
- "name": "Syncfusion Inc."
42
- },
43
- "bugs": {
44
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
45
- },
46
- "bundleDependencies": false,
2
+ "name": "@syncfusion/ej2-splitbuttons",
3
+ "version": "30.1.41",
4
+ "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
5
+ "author": "Syncfusion Inc.",
6
+ "license": "SEE LICENSE IN license",
7
+ "main": "./dist/ej2-splitbuttons.umd.min.js",
8
+ "module": "./index.js",
9
+ "es2015": "./dist/es6/ej2-splitbuttons.es5.js",
47
10
  "dependencies": {
48
- "@syncfusion/ej2-base": "~30.1.37",
11
+ "@syncfusion/ej2-base": "~30.1.38",
49
12
  "@syncfusion/ej2-popups": "~30.1.37"
50
13
  },
51
- "deprecated": false,
52
- "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
53
14
  "devDependencies": {},
54
- "es2015": "./dist/es6/ej2-splitbuttons.es5.js",
55
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
56
15
  "keywords": [
57
16
  "ej2",
58
17
  "syncfusion",
@@ -80,15 +39,11 @@
80
39
  "spinbutton",
81
40
  "spin button"
82
41
  ],
83
- "license": "SEE LICENSE IN license",
84
- "main": "./dist/ej2-splitbuttons.umd.min.js",
85
- "module": "./index.js",
86
- "name": "@syncfusion/ej2-splitbuttons",
87
42
  "repository": {
88
43
  "type": "git",
89
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
44
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
90
45
  },
91
46
  "typings": "index.d.ts",
92
- "version": "30.1.37",
93
- "sideEffects": false
47
+ "sideEffects": false,
48
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls"
94
49
  }
@@ -832,7 +832,7 @@ var DropDownButton = /** @class */ (function (_super) {
832
832
  }
833
833
  }
834
834
  else {
835
- if (ul) {
835
+ if (observedArgs.element) {
836
836
  ul.focus();
837
837
  }
838
838
  }
@@ -245,6 +245,7 @@
245
245
  text-transform: none;
246
246
  -webkit-box-shadow: none;
247
247
  box-shadow: none;
248
+ z-index: 1;
248
249
  padding-left: 10px;
249
250
  padding-right: 10px;
250
251
  }
@@ -420,6 +421,10 @@
420
421
 
421
422
  .e-split-btn-wrapper .e-split-btn {
422
423
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
424
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
425
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
426
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
427
+ border-width: 0 1px 0 0;
423
428
  }
424
429
  .e-split-btn-wrapper .e-split-btn:focus {
425
430
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -301,6 +301,7 @@
301
301
  text-transform: none;
302
302
  -webkit-box-shadow: none;
303
303
  box-shadow: none;
304
+ z-index: 1;
304
305
  padding-left: 10px;
305
306
  padding-right: 10px;
306
307
  }
@@ -476,6 +477,10 @@
476
477
 
477
478
  .e-split-btn-wrapper .e-split-btn {
478
479
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
480
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
481
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
482
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
483
+ border-width: 0 1px 0 0;
479
484
  }
480
485
  .e-split-btn-wrapper .e-split-btn:focus {
481
486
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -247,6 +247,7 @@
247
247
  text-transform: none;
248
248
  -webkit-box-shadow: none;
249
249
  box-shadow: none;
250
+ z-index: 1;
250
251
  padding-left: 10px;
251
252
  padding-right: 10px;
252
253
  }
@@ -414,6 +415,10 @@
414
415
 
415
416
  .e-split-btn-wrapper .e-split-btn {
416
417
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
418
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
419
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
420
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
421
+ border-width: 0 1px 0 0;
417
422
  }
418
423
  .e-split-btn-wrapper .e-split-btn:focus {
419
424
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -303,6 +303,7 @@
303
303
  text-transform: none;
304
304
  -webkit-box-shadow: none;
305
305
  box-shadow: none;
306
+ z-index: 1;
306
307
  padding-left: 10px;
307
308
  padding-right: 10px;
308
309
  }
@@ -470,6 +471,10 @@
470
471
 
471
472
  .e-split-btn-wrapper .e-split-btn {
472
473
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
474
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
475
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
476
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
477
+ border-width: 0 1px 0 0;
473
478
  }
474
479
  .e-split-btn-wrapper .e-split-btn:focus {
475
480
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -21,6 +21,7 @@
21
21
  }
22
22
  @if $skin-name == 'Material3' or $skin-name == 'Material3-dark' {
23
23
  box-shadow: none;
24
+ z-index: 1;
24
25
  }
25
26
  @if $skin-name == 'bootstrap5' or $skin-name == 'fluent2' or $skin-name == 'tailwind3' or $skin-name == 'tailwind3-dark' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' {
26
27
  padding: 3.75px 11px;
@@ -4,6 +4,10 @@
4
4
  @if $skin-name != 'tailwind3' {
5
5
  border-right-color: $split-btn-seperator-border-color;
6
6
  }
7
+ @if $skin-name == 'Material3' or $skin-name == 'Material3-dark' {
8
+ border-image: $split-btn-seperator-border-color;
9
+ border-width: 0 1px 0 0;
10
+ }
7
11
 
8
12
  &:focus {
9
13
  border-right-color: $split-btn-focus-border-color;
@@ -19,6 +19,7 @@
19
19
  text-transform: none;
20
20
  -webkit-box-shadow: none;
21
21
  box-shadow: none;
22
+ z-index: 1;
22
23
  padding-left: 10px;
23
24
  padding-right: 10px;
24
25
  }
@@ -194,6 +195,10 @@
194
195
 
195
196
  .e-split-btn-wrapper .e-split-btn {
196
197
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
198
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
199
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
200
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
201
+ border-width: 0 1px 0 0;
197
202
  }
198
203
  .e-split-btn-wrapper .e-split-btn:focus {
199
204
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -21,6 +21,7 @@
21
21
  text-transform: none;
22
22
  -webkit-box-shadow: none;
23
23
  box-shadow: none;
24
+ z-index: 1;
24
25
  padding-left: 10px;
25
26
  padding-right: 10px;
26
27
  }
@@ -188,6 +189,10 @@
188
189
 
189
190
  .e-split-btn-wrapper .e-split-btn {
190
191
  border-right-color: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
192
+ -o-border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
193
+ border-image: -webkit-gradient(linear, left top, right top, color-stop(25%, rgba(var(--color-sf-surface), 1)), color-stop(75%, rgba(var(--color-sf-outline-variant), 1))) 1;
194
+ border-image: linear-gradient(to right, rgba(var(--color-sf-surface), 1) 25%, rgba(var(--color-sf-outline-variant), 1) 75%) 1;
195
+ border-width: 0 1px 0 0;
191
196
  }
192
197
  .e-split-btn-wrapper .e-split-btn:focus {
193
198
  border-right-color: rgba(var(--color-sf-outline-variant));
@@ -1,38 +0,0 @@
1
- import { ButtonModel } from '@syncfusion/ej2-buttons';
2
- /**
3
- * Initialize ButtonGroup CSS component with specified properties.
4
- * ```html
5
- * <div id='buttongroup'>
6
- * <button></button>
7
- * <button></button>
8
- * <button></button>
9
- * </div>
10
- * ```
11
- * ```typescript
12
- * createButtonGroup('#buttongroup', {
13
- * cssClass: 'e-outline',
14
- * buttons: [
15
- * { content: 'Day' },
16
- * { content: 'Week' },
17
- * { content: 'Work Week'}
18
- * ]
19
- * });
20
- * ```
21
- *
22
- * @param {string} selector
23
- * @param {CreateButtonGroupModel} options
24
- * @returns HTMLElement
25
- */
26
- /**
27
- * Creates button group.
28
- *
29
- * @param {string} selector - Specifies the selector.
30
- * @param {CreateButtonGroupModel} options - Specifies the button group model.
31
- * @param {Function} createElement - Specifies the element.
32
- * @returns {HTMLElement} - Button group element.
33
- */
34
- export declare function createButtonGroup(selector: string, options?: CreateButtonGroupModel, createElement?: Function): HTMLElement;
35
- export interface CreateButtonGroupModel {
36
- cssClass?: string;
37
- buttons?: (ButtonModel | null)[];
38
- }
@@ -1,84 +0,0 @@
1
- import { addClass, createElement as internalCreateElement, isNullOrUndefined } from '@syncfusion/ej2-base';
2
- import { ButtonModel, Button } from '@syncfusion/ej2-buttons';
3
-
4
- /**
5
- * Initialize ButtonGroup CSS component with specified properties.
6
- * ```html
7
- * <div id='buttongroup'>
8
- * <button></button>
9
- * <button></button>
10
- * <button></button>
11
- * </div>
12
- * ```
13
- * ```typescript
14
- * createButtonGroup('#buttongroup', {
15
- * cssClass: 'e-outline',
16
- * buttons: [
17
- * { content: 'Day' },
18
- * { content: 'Week' },
19
- * { content: 'Work Week'}
20
- * ]
21
- * });
22
- * ```
23
- *
24
- * @param {string} selector
25
- * @param {CreateButtonGroupModel} options
26
- * @returns HTMLElement
27
- */
28
-
29
- /**
30
- * Creates button group.
31
- *
32
- * @param {string} selector - Specifies the selector.
33
- * @param {CreateButtonGroupModel} options - Specifies the button group model.
34
- * @param {Function} createElement - Specifies the element.
35
- * @returns {HTMLElement} - Button group element.
36
- */
37
- export function createButtonGroup(selector: string, options: CreateButtonGroupModel = {}, createElement?: Function): HTMLElement {
38
- let child: Element;
39
- let btnElem: Element;
40
- let nextChild: Element;
41
- let btnModel: ButtonModel | null;
42
- if (isNullOrUndefined(createElement)) {
43
- createElement = internalCreateElement;
44
- }
45
- const wrapper: HTMLElement = document.querySelector(selector) as HTMLElement;
46
- addClass([wrapper], ['e-btn-group', 'e-css']);
47
- wrapper.setAttribute('role', 'group');
48
- const childs: HTMLCollection = wrapper.children;
49
- options.buttons = options.buttons || [] as ButtonModel[];
50
- for (let i: number = 0, j: number = 0; j < childs.length; i++, j++) {
51
- child = childs[j as number];
52
- btnModel = options.buttons[i as number];
53
- if (btnModel !== null) {
54
- if (child.tagName === 'BUTTON') {
55
- btnElem = child;
56
- } else {
57
- btnElem = createElement('label');
58
- nextChild = childs[j + 1];
59
- if (nextChild) {
60
- wrapper.insertBefore(btnElem, nextChild);
61
- } else {
62
- wrapper.appendChild(btnElem);
63
- }
64
- if (child.id) {
65
- btnElem.setAttribute('for', child.id);
66
- }
67
- if (btnModel && btnModel.disabled) {
68
- (child as HTMLInputElement).disabled = true;
69
- }
70
- j++;
71
- }
72
- if (options.cssClass && btnModel && !btnModel.cssClass) {
73
- btnModel.cssClass = options.cssClass;
74
- }
75
- new Button(btnModel || {}, btnElem as HTMLButtonElement);
76
- }
77
- }
78
- return wrapper;
79
- }
80
-
81
- export interface CreateButtonGroupModel {
82
- cssClass?: string;
83
- buttons?: (ButtonModel | null)[];
84
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * ButtonGroup modules
3
- */
4
- export * from './button-group';
@@ -1,4 +0,0 @@
1
- /**
2
- * ButtonGroup modules
3
- */
4
- export * from './button-group';
@@ -1,51 +0,0 @@
1
- import { ChildProperty, extend, deleteObject, Property, BaseEventArgs, addClass, isNullOrUndefined } from '@syncfusion/ej2-base';
2
-
3
- /**
4
- * Interface for a class Item
5
- */
6
- export interface ItemModel {
7
-
8
- /**
9
- * Defines class/multiple classes separated by a space for the item that is used to include an icon.
10
- * Action item can include font icon and sprite image.
11
- *
12
- * @default ''
13
- */
14
- iconCss?: string;
15
-
16
- /**
17
- * Specifies the id for item.
18
- *
19
- * @default ''
20
- */
21
- id?: string;
22
-
23
- /**
24
- * Specifies separator between the items. Separator are horizontal lines used to group action items.
25
- *
26
- * @default false
27
- */
28
- separator?: boolean;
29
-
30
- /**
31
- * Specifies text for item.
32
- *
33
- * @default ''
34
- */
35
- text?: string;
36
-
37
- /**
38
- * Specifies url for item that creates the anchor link to navigate to the url provided.
39
- *
40
- * @default ''
41
- */
42
- url?: string;
43
-
44
- /**
45
- * Used to enable or disable the item.
46
- *
47
- * @default false
48
- */
49
- disabled?: boolean;
50
-
51
- }
@@ -1,95 +0,0 @@
1
- import { ChildProperty, BaseEventArgs } from '@syncfusion/ej2-base';
2
- import { ItemModel } from './common-model';
3
- /**
4
- * Defines the icon position of Split Button.
5
- */
6
- export declare type SplitButtonIconPosition = 'Left' | 'Top';
7
- /**
8
- * @param {Object} props - Specifies the properties
9
- * @param {string[]} model - Specifies the model
10
- * @returns {Object} Component Model
11
- */
12
- export declare function getModel(props: Object, model: string[]): Object;
13
- /** @hidden
14
- * @param {HTMLElement} ul - Specifies the UL element
15
- * @param {number} keyCode - Specifies the keycode
16
- * @returns {void}
17
- */
18
- export declare function upDownKeyHandler(ul: HTMLElement, keyCode: number): void;
19
- /** @hidden
20
- * @param {HTMLElement} popup - Specifies the popup element.
21
- * @param {boolean} blankIcon - Specifies the blankIcon value.
22
- * @returns {void}
23
- */
24
- export declare function setBlankIconStyle(popup: HTMLElement, blankIcon?: boolean): void;
25
- /**
26
- * Defines the items of Split Button/DropDownButton.
27
- */
28
- export declare class Item extends ChildProperty<Item> {
29
- /**
30
- * Defines class/multiple classes separated by a space for the item that is used to include an icon.
31
- * Action item can include font icon and sprite image.
32
- *
33
- * @default ''
34
- */
35
- iconCss: string;
36
- /**
37
- * Specifies the id for item.
38
- *
39
- * @default ''
40
- */
41
- id: string;
42
- /**
43
- * Specifies separator between the items. Separator are horizontal lines used to group action items.
44
- *
45
- * @default false
46
- */
47
- separator: boolean;
48
- /**
49
- * Specifies text for item.
50
- *
51
- * @default ''
52
- */
53
- text: string;
54
- /**
55
- * Specifies url for item that creates the anchor link to navigate to the url provided.
56
- *
57
- * @default ''
58
- */
59
- url: string;
60
- /**
61
- * Used to enable or disable the item.
62
- *
63
- * @default false
64
- */
65
- disabled: boolean;
66
- }
67
- /**
68
- * Interface for before item render / select event.
69
- */
70
- export interface MenuEventArgs extends BaseEventArgs {
71
- element: HTMLElement;
72
- item: ItemModel;
73
- event?: Event;
74
- }
75
- /**
76
- * Interface for before open / close event.
77
- */
78
- export interface BeforeOpenCloseMenuEventArgs extends BaseEventArgs {
79
- element: HTMLElement;
80
- items: ItemModel[];
81
- event: Event;
82
- cancel?: boolean;
83
- }
84
- /**
85
- * Interface for open/close event.
86
- */
87
- export interface OpenCloseMenuEventArgs extends BaseEventArgs {
88
- element: HTMLElement;
89
- items: ItemModel[];
90
- parentItem?: ItemModel;
91
- }
92
- /**
93
- * Interface for animation effects.
94
- */
95
- export declare type DropDownAnimationEffect = 'None' | 'SlideDown' | 'ZoomIn' | 'FadeIn';