@syncfusion/ej2-navigations 17.3.9-beta → 17.3.14-96615
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/.eslintrc.json +244 -0
- package/CHANGELOG.md +898 -800
- package/README.md +163 -163
- package/dist/ej2-navigations.umd.min.js +1 -10
- package/dist/ej2-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-navigations.es2015.js +325 -170
- package/dist/es6/ej2-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-navigations.es5.js +455 -300
- package/dist/es6/ej2-navigations.es5.js.map +1 -1
- package/dist/global/ej2-navigations.min.js +1 -10
- package/dist/global/ej2-navigations.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/accordion/accordion.ts +1312 -0
- package/dist/ts/common/h-scroll.ts +459 -0
- package/dist/ts/common/menu-base.ts +2131 -0
- package/dist/ts/common/v-scroll.ts +430 -0
- package/dist/ts/context-menu/context-menu.ts +119 -0
- package/dist/ts/menu/menu.ts +270 -0
- package/dist/ts/sidebar/sidebar.ts +817 -0
- package/dist/ts/tab/tab.ts +1761 -0
- package/dist/ts/toolbar/toolbar.ts +2076 -0
- package/dist/ts/treeview/treeview.ts +5050 -0
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +135 -149
- package/src/accordion/accordion-model.d.ts +156 -156
- package/src/accordion/accordion.d.ts +1 -0
- package/src/accordion/accordion.js +40 -41
- package/src/common/h-scroll-model.d.ts +5 -5
- package/src/common/h-scroll.js +19 -20
- package/src/common/menu-base-model.d.ts +157 -157
- package/src/common/menu-base.d.ts +19 -0
- package/src/common/menu-base.js +94 -24
- package/src/common/v-scroll-model.d.ts +5 -5
- package/src/common/v-scroll.js +19 -19
- package/src/context-menu/context-menu-model.d.ts +15 -15
- package/src/context-menu/context-menu.js +19 -19
- package/src/menu/menu-model.d.ts +30 -30
- package/src/menu/menu.js +19 -19
- package/src/sidebar/sidebar-model.d.ts +136 -136
- package/src/sidebar/sidebar.js +19 -19
- package/src/tab/tab-model.d.ts +215 -215
- package/src/tab/tab.d.ts +3 -0
- package/src/tab/tab.js +117 -82
- package/src/toolbar/toolbar-model.d.ts +175 -175
- package/src/toolbar/toolbar.d.ts +1 -0
- package/src/toolbar/toolbar.js +30 -24
- package/src/treeview/treeview-model.d.ts +323 -323
- package/src/treeview/treeview.js +79 -33
- package/styles/accordion/_all.scss +2 -2
- package/styles/accordion/_bootstrap-dark-definition.scss +69 -69
- package/styles/accordion/_bootstrap-definition.scss +76 -76
- package/styles/accordion/_bootstrap4-definition.scss +82 -82
- package/styles/accordion/_fabric-dark-definition.scss +74 -74
- package/styles/accordion/_fabric-definition.scss +78 -78
- package/styles/accordion/_highcontrast-definition.scss +106 -106
- package/styles/accordion/_highcontrast-light-definition.scss +104 -104
- package/styles/accordion/_layout.scss +447 -447
- package/styles/accordion/_material-dark-definition.scss +75 -75
- package/styles/accordion/_material-definition.scss +72 -72
- package/styles/accordion/_theme.scss +479 -479
- package/styles/accordion/icons/_bootstrap-dark.scss +17 -17
- package/styles/accordion/icons/_bootstrap.scss +17 -17
- package/styles/accordion/icons/_bootstrap4.scss +17 -17
- package/styles/accordion/icons/_fabric-dark.scss +17 -17
- package/styles/accordion/icons/_fabric.scss +17 -17
- package/styles/accordion/icons/_highcontrast-light.scss +17 -17
- package/styles/accordion/icons/_highcontrast.scss +17 -17
- package/styles/accordion/icons/_material-dark.scss +17 -17
- package/styles/accordion/icons/_material.scss +17 -17
- package/styles/bootstrap-dark.css +7 -9
- package/styles/bootstrap.css +7 -9
- package/styles/bootstrap4.css +7 -9
- package/styles/bootstrap5-dark.css +0 -0
- package/styles/bootstrap5-dark.scss +0 -0
- package/styles/bootstrap5.css +0 -0
- package/styles/bootstrap5.scss +0 -0
- package/styles/context-menu/_all.scss +2 -2
- package/styles/context-menu/_bootstrap-dark-definition.scss +54 -54
- package/styles/context-menu/_bootstrap-definition.scss +52 -52
- package/styles/context-menu/_bootstrap4-definition.scss +52 -52
- package/styles/context-menu/_fabric-dark-definition.scss +54 -54
- package/styles/context-menu/_fabric-definition.scss +52 -52
- package/styles/context-menu/_highcontrast-definition.scss +52 -52
- package/styles/context-menu/_highcontrast-light-definition.scss +54 -54
- package/styles/context-menu/_layout-mixin.scss +175 -175
- package/styles/context-menu/_layout.scss +70 -70
- package/styles/context-menu/_material-dark-definition.scss +54 -54
- package/styles/context-menu/_material-definition.scss +52 -52
- package/styles/context-menu/_theme-mixin.scss +59 -59
- package/styles/context-menu/_theme.scss +36 -36
- package/styles/context-menu/bootstrap-dark.css +0 -1
- package/styles/context-menu/bootstrap.css +0 -1
- package/styles/context-menu/bootstrap4.css +0 -1
- package/styles/context-menu/fabric-dark.css +0 -1
- package/styles/context-menu/fabric.css +0 -1
- package/styles/context-menu/highcontrast-light.css +0 -1
- package/styles/context-menu/highcontrast.css +0 -1
- package/styles/context-menu/icons/_bootstrap-dark.scss +30 -30
- package/styles/context-menu/icons/_bootstrap.scss +30 -30
- package/styles/context-menu/icons/_bootstrap4.scss +30 -30
- package/styles/context-menu/icons/_fabric-dark.scss +30 -30
- package/styles/context-menu/icons/_fabric.scss +30 -30
- package/styles/context-menu/icons/_highcontrast-light.scss +30 -30
- package/styles/context-menu/icons/_highcontrast.scss +30 -30
- package/styles/context-menu/icons/_material-dark.scss +30 -30
- package/styles/context-menu/icons/_material.scss +30 -30
- package/styles/context-menu/material-dark.css +0 -1
- package/styles/context-menu/material.css +3 -4
- package/styles/fabric-dark.css +7 -9
- package/styles/fabric.css +7 -9
- package/styles/h-scroll/_all.scss +2 -2
- package/styles/h-scroll/_bootstrap-dark-definition.scss +49 -49
- package/styles/h-scroll/_bootstrap-definition.scss +50 -50
- package/styles/h-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/h-scroll/_fabric-dark-definition.scss +50 -50
- package/styles/h-scroll/_fabric-definition.scss +48 -48
- package/styles/h-scroll/_highcontrast-definition.scss +52 -52
- package/styles/h-scroll/_highcontrast-light-definition.scss +54 -54
- package/styles/h-scroll/_layout.scss +198 -198
- package/styles/h-scroll/_material-dark-definition.scss +77 -77
- package/styles/h-scroll/_material-definition.scss +77 -77
- package/styles/h-scroll/_theme.scss +157 -157
- package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap.scss +49 -49
- package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
- package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
- package/styles/h-scroll/icons/_fabric.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
- package/styles/h-scroll/icons/_highcontrast.scss +49 -49
- package/styles/h-scroll/icons/_material-dark.scss +49 -49
- package/styles/h-scroll/icons/_material.scss +49 -49
- package/styles/highcontrast-light.css +7 -9
- package/styles/highcontrast.css +7 -9
- package/styles/material-dark.css +7 -9
- package/styles/material.css +21 -14
- package/styles/menu/_all.scss +2 -2
- package/styles/menu/_bootstrap-dark-definition.scss +63 -63
- package/styles/menu/_bootstrap-definition.scss +65 -65
- package/styles/menu/_bootstrap4-definition.scss +64 -64
- package/styles/menu/_fabric-dark-definition.scss +63 -63
- package/styles/menu/_fabric-definition.scss +64 -64
- package/styles/menu/_highcontrast-definition.scss +65 -65
- package/styles/menu/_highcontrast-light-definition.scss +61 -61
- package/styles/menu/_layout.scss +638 -638
- package/styles/menu/_material-dark-definition.scss +63 -63
- package/styles/menu/_material-definition.scss +64 -64
- package/styles/menu/_theme.scss +243 -243
- package/styles/menu/bootstrap-dark.css +0 -1
- package/styles/menu/bootstrap.css +0 -1
- package/styles/menu/bootstrap.scss +1 -0
- package/styles/menu/bootstrap4.css +0 -1
- package/styles/menu/fabric-dark.css +0 -1
- package/styles/menu/fabric.css +0 -1
- package/styles/menu/fabric.scss +1 -0
- package/styles/menu/highcontrast-light.css +0 -1
- package/styles/menu/highcontrast.css +0 -1
- package/styles/menu/highcontrast.scss +1 -0
- package/styles/menu/icons/_bootstrap-dark.scss +127 -127
- package/styles/menu/icons/_bootstrap.scss +127 -127
- package/styles/menu/icons/_bootstrap4.scss +127 -127
- package/styles/menu/icons/_fabric-dark.scss +127 -127
- package/styles/menu/icons/_fabric.scss +127 -127
- package/styles/menu/icons/_highcontrast-light.scss +127 -127
- package/styles/menu/icons/_highcontrast.scss +127 -127
- package/styles/menu/icons/_material-dark.scss +127 -127
- package/styles/menu/icons/_material.scss +127 -127
- package/styles/menu/material-dark.css +0 -1
- package/styles/menu/material.css +2 -3
- package/styles/menu/material.scss +1 -0
- package/styles/sidebar/_all.scss +3 -3
- package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
- package/styles/sidebar/_bootstrap-definition.scss +4 -4
- package/styles/sidebar/_bootstrap4-definition.scss +4 -4
- package/styles/sidebar/_fabric-dark-definition.scss +4 -4
- package/styles/sidebar/_fabric-definition.scss +6 -6
- package/styles/sidebar/_highcontrast-definition.scss +4 -4
- package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
- package/styles/sidebar/_icons.scss +1 -1
- package/styles/sidebar/_material-dark-definition.scss +4 -4
- package/styles/sidebar/_material-definition.scss +6 -6
- package/styles/sidebar/_theme.scss +168 -168
- package/styles/sidebar/bootstrap-dark.css +0 -1
- package/styles/sidebar/bootstrap.css +0 -1
- package/styles/sidebar/bootstrap4.css +0 -1
- package/styles/sidebar/fabric-dark.css +0 -1
- package/styles/sidebar/fabric.css +0 -1
- package/styles/sidebar/highcontrast-light.css +0 -1
- package/styles/sidebar/highcontrast.css +0 -1
- package/styles/sidebar/material-dark.css +0 -1
- package/styles/sidebar/material.css +0 -1
- package/styles/tab/_all.scss +2 -2
- package/styles/tab/_bootstrap-dark-definition.scss +386 -386
- package/styles/tab/_bootstrap-definition.scss +396 -396
- package/styles/tab/_bootstrap4-definition.scss +401 -401
- package/styles/tab/_fabric-dark-definition.scss +394 -394
- package/styles/tab/_fabric-definition.scss +410 -410
- package/styles/tab/_highcontrast-definition.scss +434 -434
- package/styles/tab/_highcontrast-light-definition.scss +423 -423
- package/styles/tab/_icons.scss +43 -43
- package/styles/tab/_layout.scss +3528 -3521
- package/styles/tab/_material-dark-definition.scss +407 -407
- package/styles/tab/_material-definition.scss +416 -416
- package/styles/tab/_theme.scss +1751 -1751
- package/styles/tab/bootstrap-dark.css +7 -2
- package/styles/tab/bootstrap.css +7 -2
- package/styles/tab/bootstrap4.css +7 -2
- package/styles/tab/fabric-dark.css +7 -2
- package/styles/tab/fabric.css +7 -2
- package/styles/tab/highcontrast-light.css +7 -2
- package/styles/tab/highcontrast.css +7 -2
- package/styles/tab/icons/_bootstrap-dark.scss +132 -132
- package/styles/tab/icons/_bootstrap.scss +132 -132
- package/styles/tab/icons/_bootstrap4.scss +132 -132
- package/styles/tab/icons/_fabric-dark.scss +132 -132
- package/styles/tab/icons/_fabric.scss +132 -132
- package/styles/tab/icons/_highcontrast-light.scss +132 -132
- package/styles/tab/icons/_highcontrast.scss +132 -132
- package/styles/tab/icons/_material-dark.scss +132 -132
- package/styles/tab/icons/_material.scss +132 -132
- package/styles/tab/material-dark.css +7 -2
- package/styles/tab/material.css +7 -2
- package/styles/tailwind-dark.css +0 -0
- package/styles/tailwind-dark.scss +0 -0
- package/styles/tailwind.css +0 -0
- package/styles/tailwind.scss +0 -0
- package/styles/toolbar/_all.scss +2 -2
- package/styles/toolbar/_bootstrap-dark-definition.scss +135 -135
- package/styles/toolbar/_bootstrap-definition.scss +134 -134
- package/styles/toolbar/_bootstrap4-definition.scss +139 -139
- package/styles/toolbar/_fabric-dark-definition.scss +155 -155
- package/styles/toolbar/_fabric-definition.scss +139 -139
- package/styles/toolbar/_highcontrast-definition.scss +149 -149
- package/styles/toolbar/_highcontrast-light-definition.scss +164 -164
- package/styles/toolbar/_layout.scss +1460 -1460
- package/styles/toolbar/_material-dark-definition.scss +180 -180
- package/styles/toolbar/_material-definition.scss +164 -164
- package/styles/toolbar/_theme.scss +451 -451
- package/styles/toolbar/bootstrap-dark.css +0 -1
- package/styles/toolbar/bootstrap.css +0 -1
- package/styles/toolbar/bootstrap.scss +1 -0
- package/styles/toolbar/bootstrap4.css +0 -1
- package/styles/toolbar/fabric-dark.css +0 -1
- package/styles/toolbar/fabric.css +0 -1
- package/styles/toolbar/fabric.scss +1 -0
- package/styles/toolbar/highcontrast-light.css +0 -1
- package/styles/toolbar/highcontrast.css +0 -1
- package/styles/toolbar/highcontrast.scss +1 -0
- package/styles/toolbar/icons/_bootstrap-dark.scss +16 -16
- package/styles/toolbar/icons/_bootstrap.scss +16 -16
- package/styles/toolbar/icons/_bootstrap4.scss +16 -16
- package/styles/toolbar/icons/_fabric-dark.scss +16 -16
- package/styles/toolbar/icons/_fabric.scss +16 -16
- package/styles/toolbar/icons/_highcontrast-light.scss +16 -16
- package/styles/toolbar/icons/_highcontrast.scss +16 -16
- package/styles/toolbar/icons/_material-dark.scss +16 -16
- package/styles/toolbar/icons/_material.scss +16 -16
- package/styles/toolbar/material-dark.css +0 -1
- package/styles/toolbar/material.css +0 -1
- package/styles/toolbar/material.scss +1 -0
- package/styles/treeview/_all.scss +2 -2
- package/styles/treeview/_bootstrap-dark-definition.scss +131 -131
- package/styles/treeview/_bootstrap-definition.scss +127 -127
- package/styles/treeview/_bootstrap4-definition.scss +153 -153
- package/styles/treeview/_fabric-dark-definition.scss +130 -130
- package/styles/treeview/_fabric-definition.scss +126 -126
- package/styles/treeview/_highcontrast-definition.scss +132 -132
- package/styles/treeview/_highcontrast-light-definition.scss +137 -137
- package/styles/treeview/_layout.scss +551 -551
- package/styles/treeview/_material-dark-definition.scss +126 -126
- package/styles/treeview/_material-definition.scss +126 -126
- package/styles/treeview/_theme.scss +331 -331
- package/styles/treeview/bootstrap-dark.css +0 -3
- package/styles/treeview/bootstrap.css +0 -3
- package/styles/treeview/bootstrap4.css +0 -3
- package/styles/treeview/fabric-dark.css +0 -3
- package/styles/treeview/fabric.css +0 -3
- package/styles/treeview/highcontrast-light.css +0 -3
- package/styles/treeview/highcontrast.css +0 -3
- package/styles/treeview/icons/_bootstrap-dark.scss +39 -39
- package/styles/treeview/icons/_bootstrap.scss +39 -39
- package/styles/treeview/icons/_bootstrap4.scss +39 -39
- package/styles/treeview/icons/_fabric-dark.scss +43 -43
- package/styles/treeview/icons/_fabric.scss +43 -43
- package/styles/treeview/icons/_highcontrast-light.scss +43 -43
- package/styles/treeview/icons/_highcontrast.scss +43 -43
- package/styles/treeview/icons/_material-dark.scss +43 -43
- package/styles/treeview/icons/_material.scss +43 -43
- package/styles/treeview/material-dark.css +0 -3
- package/styles/treeview/material.css +9 -3
- package/styles/v-scroll/_all.scss +2 -2
- package/styles/v-scroll/_bootstrap-dark-definition.scss +50 -50
- package/styles/v-scroll/_bootstrap-definition.scss +49 -49
- package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
- package/styles/v-scroll/_fabric-dark-definition.scss +51 -51
- package/styles/v-scroll/_fabric-definition.scss +50 -50
- package/styles/v-scroll/_highcontrast-definition.scss +51 -51
- package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
- package/styles/v-scroll/_layout.scss +162 -162
- package/styles/v-scroll/_material-dark-definition.scss +78 -78
- package/styles/v-scroll/_material-definition.scss +77 -77
- package/styles/v-scroll/_theme.scss +133 -133
- package/styles/v-scroll/icons/_bootstrap-dark.scss +26 -26
- package/styles/v-scroll/icons/_bootstrap.scss +26 -26
- package/styles/v-scroll/icons/_bootstrap4.scss +26 -26
- package/styles/v-scroll/icons/_fabric-dark.scss +26 -26
- package/styles/v-scroll/icons/_fabric.scss +26 -26
- package/styles/v-scroll/icons/_highcontrast-light.scss +26 -26
- package/styles/v-scroll/icons/_highcontrast.scss +26 -26
- package/styles/v-scroll/icons/_material-dark.scss +26 -26
- package/styles/v-scroll/icons/_material.scss +26 -26
- package/tslint.json +111 -0
- package/.gitlab/merge_request_templates/Bug.md +0 -63
- package/.gitlab/merge_request_templates/feature.md +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, EventHandler, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Component, EventHandler, Property, Event, EmitType, BaseEventArgs } from '@syncfusion/ej2-base';
|
|
2
2
|
import {OverflowOption,ItemType,DisplayMode,ItemAlign,ClickEventArgs,OverflowMode,BeforeCreateArgs} from "./toolbar";
|
|
3
3
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
@@ -8,133 +8,133 @@ import {ComponentModel} from '@syncfusion/ej2-base';
|
|
|
8
8
|
export interface ItemModel {
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Specifies the unique ID to be used with button or input element of Toolbar items.
|
|
12
|
-
* @default ""
|
|
13
|
-
*/
|
|
14
|
-
id?: string;
|
|
11
|
+
* Specifies the unique ID to be used with button or input element of Toolbar items.
|
|
12
|
+
* @default ""
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Specifies the text to be displayed on the Toolbar button.
|
|
18
|
-
* @default ""
|
|
19
|
-
*/
|
|
20
|
-
text?: string;
|
|
17
|
+
* Specifies the text to be displayed on the Toolbar button.
|
|
18
|
+
* @default ""
|
|
19
|
+
*/
|
|
20
|
+
text?: string;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Specifies the width of the Toolbar button commands.
|
|
24
|
-
* @default 'auto'
|
|
25
|
-
*/
|
|
26
|
-
width?: number | string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Defines single/multiple classes (separated by space) to be used for customization of commands.
|
|
30
|
-
* @default ""
|
|
31
|
-
*/
|
|
32
|
-
cssClass?: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Defines the priority of items to display it in popup always.
|
|
36
|
-
* It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
showAlwaysInPopup?: boolean;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Defines single/multiple classes separated by space used to specify an icon for the button.
|
|
43
|
-
* The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
|
|
44
|
-
* @default ""
|
|
45
|
-
*/
|
|
46
|
-
prefixIcon?: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Defines single/multiple classes separated by space used to specify an icon for the button.
|
|
50
|
-
* The icon will be positioned after the text content if text is available.
|
|
51
|
-
* @default ""
|
|
52
|
-
*/
|
|
53
|
-
suffixIcon?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the Toolbar command display area when an element's content is too large to fit available space.
|
|
57
|
-
* This is applicable only to `popup` mode. Possible values are:
|
|
58
|
-
* - Show: Always shows the item as the primary priority on the *Toolbar*.
|
|
59
|
-
* - Hide: Always shows the item as the secondary priority on the *popup*.
|
|
60
|
-
* - None: No priority for display, and as per normal order moves to popup when content exceeds.
|
|
61
|
-
* @default 'None'
|
|
62
|
-
*/
|
|
63
|
-
overflow?: OverflowOption;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
|
|
67
|
-
* ```
|
|
68
|
-
* E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
|
|
69
|
-
* ```
|
|
70
|
-
* @default ""
|
|
71
|
-
*/
|
|
72
|
-
template?: string | Object;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Specifies the types of command to be rendered in the Toolbar.
|
|
76
|
-
* Supported types are:
|
|
77
|
-
* - Button: Creates the Button control with its given properties like text, prefixIcon, etc.
|
|
78
|
-
* - Separator: Adds a horizontal line that separates the Toolbar commands.
|
|
79
|
-
* - Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
|
|
80
|
-
* AutoComplete, etc.
|
|
81
|
-
* @default 'Button'
|
|
82
|
-
*/
|
|
83
|
-
type?: ItemType;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Specifies where the button text will be displayed on *popup mode* of the Toolbar.
|
|
87
|
-
* Possible values are:
|
|
88
|
-
* - Toolbar: Text will be displayed on *Toolbar* only.
|
|
89
|
-
* - Overflow: Text will be displayed only when content overflows to *popup*.
|
|
90
|
-
* - Both: Text will be displayed on *popup* and *Toolbar*.
|
|
91
|
-
* @default 'Both'
|
|
92
|
-
*/
|
|
93
|
-
showTextOn?: DisplayMode;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Defines htmlAttributes used to add custom attributes to Toolbar command.
|
|
97
|
-
* Supports HTML attributes such as style, class, etc.
|
|
98
|
-
* @default null
|
|
99
|
-
*/
|
|
100
|
-
htmlAttributes?: { [key: string]: string; };
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Specifies the text to be displayed on the Toolbar button.
|
|
104
|
-
* @default ""
|
|
105
|
-
*/
|
|
106
|
-
tooltipText?: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
|
|
110
|
-
* Possible values are:
|
|
111
|
-
* - Left: To align commands to the left side of the Toolbar.
|
|
112
|
-
* - Center: To align commands at the center of the Toolbar.
|
|
113
|
-
* - Right: To align commands to the right side of the Toolbar.
|
|
114
|
-
* ```html
|
|
115
|
-
* <div id="element"> </div>
|
|
116
|
-
* ```
|
|
117
|
-
* ```typescript
|
|
118
|
-
* let toolbar: Toolbar = new Toolbar({
|
|
119
|
-
* items: [
|
|
120
|
-
* { text: "Home" },
|
|
121
|
-
* { text: "My Home Page" , align: 'Center' },
|
|
122
|
-
* { text: "Search", align: 'Right' }
|
|
123
|
-
* { text: "Settings", align: 'Right' }
|
|
124
|
-
* ]
|
|
125
|
-
* });
|
|
126
|
-
* toolbar.appendTo('#element');
|
|
127
|
-
* ```
|
|
128
|
-
* @default "Left"
|
|
129
|
-
*/
|
|
130
|
-
align?: ItemAlign;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Event triggers when `click` the toolbar item.
|
|
134
|
-
* @event
|
|
135
|
-
* @blazorProperty 'OnClick'
|
|
136
|
-
*/
|
|
137
|
-
click?: EmitType<ClickEventArgs>;
|
|
23
|
+
* Specifies the width of the Toolbar button commands.
|
|
24
|
+
* @default 'auto'
|
|
25
|
+
*/
|
|
26
|
+
width?: number | string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Defines single/multiple classes (separated by space) to be used for customization of commands.
|
|
30
|
+
* @default ""
|
|
31
|
+
*/
|
|
32
|
+
cssClass?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Defines the priority of items to display it in popup always.
|
|
36
|
+
* It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
showAlwaysInPopup?: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Defines single/multiple classes separated by space used to specify an icon for the button.
|
|
43
|
+
* The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
|
|
44
|
+
* @default ""
|
|
45
|
+
*/
|
|
46
|
+
prefixIcon?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Defines single/multiple classes separated by space used to specify an icon for the button.
|
|
50
|
+
* The icon will be positioned after the text content if text is available.
|
|
51
|
+
* @default ""
|
|
52
|
+
*/
|
|
53
|
+
suffixIcon?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the Toolbar command display area when an element's content is too large to fit available space.
|
|
57
|
+
* This is applicable only to `popup` mode. Possible values are:
|
|
58
|
+
* - Show: Always shows the item as the primary priority on the *Toolbar*.
|
|
59
|
+
* - Hide: Always shows the item as the secondary priority on the *popup*.
|
|
60
|
+
* - None: No priority for display, and as per normal order moves to popup when content exceeds.
|
|
61
|
+
* @default 'None'
|
|
62
|
+
*/
|
|
63
|
+
overflow?: OverflowOption;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
|
|
67
|
+
* ```
|
|
68
|
+
* E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
|
|
69
|
+
* ```
|
|
70
|
+
* @default ""
|
|
71
|
+
*/
|
|
72
|
+
template?: string | Object;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Specifies the types of command to be rendered in the Toolbar.
|
|
76
|
+
* Supported types are:
|
|
77
|
+
* - Button: Creates the Button control with its given properties like text, prefixIcon, etc.
|
|
78
|
+
* - Separator: Adds a horizontal line that separates the Toolbar commands.
|
|
79
|
+
* - Input: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
|
|
80
|
+
* AutoComplete, etc.
|
|
81
|
+
* @default 'Button'
|
|
82
|
+
*/
|
|
83
|
+
type?: ItemType;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Specifies where the button text will be displayed on *popup mode* of the Toolbar.
|
|
87
|
+
* Possible values are:
|
|
88
|
+
* - Toolbar: Text will be displayed on *Toolbar* only.
|
|
89
|
+
* - Overflow: Text will be displayed only when content overflows to *popup*.
|
|
90
|
+
* - Both: Text will be displayed on *popup* and *Toolbar*.
|
|
91
|
+
* @default 'Both'
|
|
92
|
+
*/
|
|
93
|
+
showTextOn?: DisplayMode;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Defines htmlAttributes used to add custom attributes to Toolbar command.
|
|
97
|
+
* Supports HTML attributes such as style, class, etc.
|
|
98
|
+
* @default null
|
|
99
|
+
*/
|
|
100
|
+
htmlAttributes?: { [key: string]: string; };
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Specifies the text to be displayed on the Toolbar button.
|
|
104
|
+
* @default ""
|
|
105
|
+
*/
|
|
106
|
+
tooltipText?: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
|
|
110
|
+
* Possible values are:
|
|
111
|
+
* - Left: To align commands to the left side of the Toolbar.
|
|
112
|
+
* - Center: To align commands at the center of the Toolbar.
|
|
113
|
+
* - Right: To align commands to the right side of the Toolbar.
|
|
114
|
+
* ```html
|
|
115
|
+
* <div id="element"> </div>
|
|
116
|
+
* ```
|
|
117
|
+
* ```typescript
|
|
118
|
+
* let toolbar: Toolbar = new Toolbar({
|
|
119
|
+
* items: [
|
|
120
|
+
* { text: "Home" },
|
|
121
|
+
* { text: "My Home Page" , align: 'Center' },
|
|
122
|
+
* { text: "Search", align: 'Right' }
|
|
123
|
+
* { text: "Settings", align: 'Right' }
|
|
124
|
+
* ]
|
|
125
|
+
* });
|
|
126
|
+
* toolbar.appendTo('#element');
|
|
127
|
+
* ```
|
|
128
|
+
* @default "Left"
|
|
129
|
+
*/
|
|
130
|
+
align?: ItemAlign;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Event triggers when `click` the toolbar item.
|
|
134
|
+
* @event
|
|
135
|
+
* @blazorProperty 'OnClick'
|
|
136
|
+
*/
|
|
137
|
+
click?: EmitType<ClickEventArgs>;
|
|
138
138
|
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -144,74 +144,74 @@ export interface ItemModel {
|
|
|
144
144
|
export interface ToolbarModel extends ComponentModel{
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* An array of items that is used to configure Toolbar commands.
|
|
148
|
-
* @default []
|
|
149
|
-
*/
|
|
150
|
-
items?: ItemModel[];
|
|
147
|
+
* An array of items that is used to configure Toolbar commands.
|
|
148
|
+
* @default []
|
|
149
|
+
*/
|
|
150
|
+
items?: ItemModel[];
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
|
|
154
|
-
* @default 'auto'
|
|
155
|
-
*/
|
|
156
|
-
width?: string | number;
|
|
153
|
+
* Specifies the width of the Toolbar in pixels/numbers/percentage. Number value is considered as pixels.
|
|
154
|
+
* @default 'auto'
|
|
155
|
+
*/
|
|
156
|
+
width?: string | number;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
|
|
160
|
-
* @default 'auto'
|
|
161
|
-
*/
|
|
162
|
-
height?: string | number;
|
|
159
|
+
* Specifies the height of the Toolbar in pixels/number/percentage. Number value is considered as pixels.
|
|
160
|
+
* @default 'auto'
|
|
161
|
+
*/
|
|
162
|
+
height?: string | number;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
|
|
166
|
-
* Possible modes are:
|
|
167
|
-
* - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
168
|
-
* - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
|
|
169
|
-
* - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
|
|
170
|
-
* - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
171
|
-
* If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
172
|
-
* @default 'Scrollable'
|
|
173
|
-
*/
|
|
174
|
-
overflowMode?: OverflowMode;
|
|
165
|
+
* Specifies the Toolbar display mode when Toolbar content exceeds the viewing area.
|
|
166
|
+
* Possible modes are:
|
|
167
|
+
* - Scrollable: All the elements are displayed in a single line with horizontal scrolling enabled.
|
|
168
|
+
* - Popup: Prioritized elements are displayed on the Toolbar and the rest of elements are moved to the *popup*.
|
|
169
|
+
* - MultiRow: Displays the overflow toolbar items as an in-line of a toolbar.
|
|
170
|
+
* - Extended: Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
|
|
171
|
+
* If the popup content overflows the height of the page, the rest of the elements will be hidden.
|
|
172
|
+
* @default 'Scrollable'
|
|
173
|
+
*/
|
|
174
|
+
overflowMode?: OverflowMode;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* Specifies the scrolling distance in scroller.
|
|
178
|
-
* @default null
|
|
179
|
-
*/
|
|
180
|
-
scrollStep?: number;
|
|
177
|
+
* Specifies the scrolling distance in scroller.
|
|
178
|
+
* @default null
|
|
179
|
+
*/
|
|
180
|
+
scrollStep?: number;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Enable or disable the popup collision.
|
|
184
|
-
* @default true
|
|
185
|
-
*/
|
|
186
|
-
enableCollision?: boolean;
|
|
183
|
+
* Enable or disable the popup collision.
|
|
184
|
+
* @default true
|
|
185
|
+
*/
|
|
186
|
+
enableCollision?: boolean;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
* The event will be fired on clicking the Toolbar elements.
|
|
190
|
-
* @event
|
|
191
|
-
* @blazorProperty 'Clicked'
|
|
192
|
-
*/
|
|
193
|
-
clicked?: EmitType<ClickEventArgs>;
|
|
189
|
+
* The event will be fired on clicking the Toolbar elements.
|
|
190
|
+
* @event
|
|
191
|
+
* @blazorProperty 'Clicked'
|
|
192
|
+
*/
|
|
193
|
+
clicked?: EmitType<ClickEventArgs>;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* The event will be fired when the control is rendered.
|
|
197
|
-
* @event
|
|
198
|
-
* @blazorProperty 'Created'
|
|
199
|
-
*/
|
|
200
|
-
created?: EmitType<Event>;
|
|
196
|
+
* The event will be fired when the control is rendered.
|
|
197
|
+
* @event
|
|
198
|
+
* @blazorProperty 'Created'
|
|
199
|
+
*/
|
|
200
|
+
created?: EmitType<Event>;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
* The event will be fired when the control gets destroyed.
|
|
204
|
-
* @event
|
|
205
|
-
* @blazorProperty 'Destroyed'
|
|
206
|
-
*/
|
|
207
|
-
destroyed?: EmitType<Event>;
|
|
203
|
+
* The event will be fired when the control gets destroyed.
|
|
204
|
+
* @event
|
|
205
|
+
* @blazorProperty 'Destroyed'
|
|
206
|
+
*/
|
|
207
|
+
destroyed?: EmitType<Event>;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* The event will be fired before the control is rendered on a page.
|
|
211
|
-
* @event
|
|
212
|
-
* @blazorProperty 'OnCreate'
|
|
213
|
-
* @deprecated
|
|
214
|
-
*/
|
|
215
|
-
beforeCreate?: EmitType<BeforeCreateArgs>;
|
|
210
|
+
* The event will be fired before the control is rendered on a page.
|
|
211
|
+
* @event
|
|
212
|
+
* @blazorProperty 'OnCreate'
|
|
213
|
+
* @deprecated
|
|
214
|
+
*/
|
|
215
|
+
beforeCreate?: EmitType<BeforeCreateArgs>;
|
|
216
216
|
|
|
217
217
|
}
|
package/src/toolbar/toolbar.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
|
|
|
319
319
|
refreshOverflow(): void;
|
|
320
320
|
private toolbarAlign;
|
|
321
321
|
private renderOverflowMode;
|
|
322
|
+
private setOverflowAttributes;
|
|
322
323
|
private separator;
|
|
323
324
|
private createPopupEle;
|
|
324
325
|
private pushingPoppedEle;
|
package/src/toolbar/toolbar.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
}
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Component, EventHandler, Property, Event } from '@syncfusion/ej2-base';
|
|
21
21
|
import { addClass, removeClass, isVisible, closest, attributes, detach, classList, KeyboardEvents } from '@syncfusion/ej2-base';
|
|
22
22
|
import { selectAll, setStyleAttribute as setStyle } from '@syncfusion/ej2-base';
|
|
@@ -545,7 +545,8 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
545
545
|
}
|
|
546
546
|
if (!eventArgs.cancel) {
|
|
547
547
|
this.trigger('clicked', eventArgs, function (clickedArgs) {
|
|
548
|
-
if (!isNOU(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup'
|
|
548
|
+
if (!isNOU(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup' &&
|
|
549
|
+
clickedArgs.item && clickedArgs.item.type !== 'Input') {
|
|
549
550
|
_this.popObj.hide({ name: 'FadeOut', duration: 100 });
|
|
550
551
|
}
|
|
551
552
|
});
|
|
@@ -731,8 +732,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
731
732
|
this.removePositioning();
|
|
732
733
|
}
|
|
733
734
|
if (this.checkOverflow(ele, innerItems) || priorityCheck) {
|
|
734
|
-
this.
|
|
735
|
-
this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
|
|
735
|
+
this.setOverflowAttributes(ele);
|
|
736
736
|
}
|
|
737
737
|
this.toolbarAlign(innerItems);
|
|
738
738
|
break;
|
|
@@ -755,13 +755,17 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
755
755
|
if (this.tbarAlign) {
|
|
756
756
|
this.removePositioning();
|
|
757
757
|
}
|
|
758
|
-
this.
|
|
759
|
-
this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
|
|
758
|
+
this.setOverflowAttributes(ele);
|
|
760
759
|
}
|
|
761
760
|
this.toolbarAlign(innerItems);
|
|
762
761
|
}
|
|
763
762
|
}
|
|
764
763
|
};
|
|
764
|
+
Toolbar.prototype.setOverflowAttributes = function (ele) {
|
|
765
|
+
this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
|
|
766
|
+
this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
|
|
767
|
+
this.element.querySelector('.' + CLS_TBARNAV).setAttribute('role', 'list');
|
|
768
|
+
};
|
|
765
769
|
Toolbar.prototype.separator = function () {
|
|
766
770
|
var element = this.element;
|
|
767
771
|
var eleItem = [].slice.call(element.querySelectorAll('.' + CLS_SEPARATOR));
|
|
@@ -1099,6 +1103,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1099
1103
|
var navItem = this.createElement('div', { className: CLS_POPUPDOWN + ' e-icons' });
|
|
1100
1104
|
nav.appendChild(navItem);
|
|
1101
1105
|
nav.setAttribute('tabindex', '0');
|
|
1106
|
+
nav.setAttribute('role', 'list');
|
|
1102
1107
|
element.appendChild(nav);
|
|
1103
1108
|
};
|
|
1104
1109
|
Toolbar.prototype.tbarPriRef = function (inEle, indx, sepPri, el, des, elWid, wid, ig) {
|
|
@@ -1738,6 +1743,7 @@ var Toolbar = /** @class */ (function (_super) {
|
|
|
1738
1743
|
case 'Button':
|
|
1739
1744
|
dom = this.buttonRendering(item, innerEle);
|
|
1740
1745
|
dom.setAttribute('tabindex', '-1');
|
|
1746
|
+
dom.setAttribute('aria-label', (item.text || item.tooltipText));
|
|
1741
1747
|
innerEle.appendChild(dom);
|
|
1742
1748
|
innerEle.addEventListener('click', this.itemClick.bind(this));
|
|
1743
1749
|
break;
|