@syncfusion/ej2-filemanager 20.1.47 → 20.1.52-10459

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 (203) hide show
  1. package/.eslintrc.json +20 -3
  2. package/README.md +54 -43
  3. package/dist/ej2-filemanager.min.js +1 -0
  4. package/dist/ej2-filemanager.umd.min.js +1 -10
  5. package/dist/ej2-filemanager.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-filemanager.es2015.js +2353 -659
  7. package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
  8. package/dist/es6/ej2-filemanager.es5.js +2422 -709
  9. package/dist/es6/ej2-filemanager.es5.js.map +1 -1
  10. package/dist/global/ej2-filemanager.min.js +1 -10
  11. package/dist/global/ej2-filemanager.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/helpers/e2e/filemanagerHelper.js +183 -166
  14. package/package.json +71 -71
  15. package/src/file-manager/actions/breadcrumb-bar.js +1 -5
  16. package/src/file-manager/actions/index.d.ts +1 -0
  17. package/src/file-manager/actions/index.js +1 -0
  18. package/src/file-manager/actions/toolbar.d.ts +1 -0
  19. package/src/file-manager/actions/toolbar.js +129 -17
  20. package/src/file-manager/actions/virtualization.d.ts +93 -0
  21. package/src/file-manager/actions/virtualization.js +279 -0
  22. package/src/file-manager/base/file-manager-model.d.ts +154 -28
  23. package/src/file-manager/base/file-manager.d.ts +176 -27
  24. package/src/file-manager/base/file-manager.js +244 -28
  25. package/src/file-manager/base/interface.d.ts +329 -3
  26. package/src/file-manager/base/interface.js +0 -1
  27. package/src/file-manager/common/operations.d.ts +7 -0
  28. package/src/file-manager/common/operations.js +830 -185
  29. package/src/file-manager/common/utility.d.ts +46 -3
  30. package/src/file-manager/common/utility.js +249 -73
  31. package/src/file-manager/index.d.ts +1 -0
  32. package/src/file-manager/index.js +1 -0
  33. package/src/file-manager/layout/details-view.d.ts +10 -0
  34. package/src/file-manager/layout/details-view.js +203 -94
  35. package/src/file-manager/layout/large-icons-view.d.ts +4 -2
  36. package/src/file-manager/layout/large-icons-view.js +122 -73
  37. package/src/file-manager/layout/navigation-pane.d.ts +2 -0
  38. package/src/file-manager/layout/navigation-pane.js +97 -73
  39. package/src/file-manager/models/column-model.d.ts +23 -5
  40. package/src/file-manager/models/column.d.ts +21 -2
  41. package/src/file-manager/models/column.js +6 -0
  42. package/src/file-manager/models/default-locale.js +0 -1
  43. package/src/file-manager/models/details-view-settings-model.d.ts +1 -1
  44. package/src/file-manager/models/details-view-settings.js +8 -3
  45. package/src/file-manager/models/search-settings.d.ts +5 -0
  46. package/src/file-manager/models/toolbar-settings-model.d.ts +177 -2
  47. package/src/file-manager/models/toolbar-settings.d.ts +157 -2
  48. package/src/file-manager/models/toolbar-settings.js +64 -2
  49. package/src/file-manager/models/upload-settings-model.d.ts +13 -0
  50. package/src/file-manager/models/upload-settings.d.ts +12 -0
  51. package/src/file-manager/models/upload-settings.js +3 -0
  52. package/src/file-manager/pop-up/context-menu.d.ts +2 -1
  53. package/src/file-manager/pop-up/context-menu.js +111 -36
  54. package/src/file-manager/pop-up/dialog.d.ts +1 -2
  55. package/src/file-manager/pop-up/dialog.js +19 -40
  56. package/src/global.js +1 -1
  57. package/styles/bootstrap-dark-lite.css +1058 -0
  58. package/styles/bootstrap-dark-lite.scss +16 -0
  59. package/styles/bootstrap-dark.css +371 -665
  60. package/styles/bootstrap-dark.scss +17 -1
  61. package/styles/bootstrap-lite.css +1040 -0
  62. package/styles/bootstrap-lite.scss +16 -0
  63. package/styles/bootstrap.css +353 -644
  64. package/styles/bootstrap.scss +17 -1
  65. package/styles/bootstrap4-lite.css +1068 -0
  66. package/styles/bootstrap4-lite.scss +16 -0
  67. package/styles/bootstrap4.css +381 -680
  68. package/styles/bootstrap4.scss +17 -1
  69. package/styles/bootstrap5-dark-lite.css +1078 -0
  70. package/styles/bootstrap5-dark-lite.scss +16 -0
  71. package/styles/bootstrap5-dark.css +376 -694
  72. package/styles/bootstrap5-dark.scss +17 -1
  73. package/styles/bootstrap5-lite.css +1078 -0
  74. package/styles/bootstrap5-lite.scss +16 -0
  75. package/styles/bootstrap5.3-lite.css +1035 -0
  76. package/styles/bootstrap5.3-lite.scss +16 -0
  77. package/styles/bootstrap5.3.css +1603 -0
  78. package/styles/bootstrap5.3.scss +17 -0
  79. package/styles/bootstrap5.css +376 -694
  80. package/styles/bootstrap5.scss +17 -1
  81. package/styles/fabric-dark-lite.css +1039 -0
  82. package/styles/fabric-dark-lite.scss +16 -0
  83. package/styles/fabric-dark.css +358 -642
  84. package/styles/fabric-dark.scss +17 -1
  85. package/styles/fabric-lite.css +1039 -0
  86. package/styles/fabric-lite.scss +16 -0
  87. package/styles/fabric.css +357 -641
  88. package/styles/fabric.scss +17 -1
  89. package/styles/file-manager/_all.scss +1 -1
  90. package/styles/file-manager/_bds-definition.scss +236 -0
  91. package/styles/file-manager/_bigger.scss +758 -0
  92. package/styles/file-manager/_bootstrap-dark-definition.scss +6 -2
  93. package/styles/file-manager/_bootstrap-definition.scss +6 -2
  94. package/styles/file-manager/_bootstrap4-definition.scss +6 -2
  95. package/styles/file-manager/_bootstrap5-definition.scss +20 -15
  96. package/styles/file-manager/_bootstrap5.3-definition.scss +242 -0
  97. package/styles/file-manager/_fabric-dark-definition.scss +6 -2
  98. package/styles/file-manager/_fabric-definition.scss +6 -2
  99. package/styles/file-manager/_fluent-definition.scss +20 -16
  100. package/styles/file-manager/_fluent2-definition.scss +255 -0
  101. package/styles/file-manager/_fusionnew-definition.scss +241 -0
  102. package/styles/file-manager/_highcontrast-definition.scss +6 -2
  103. package/styles/file-manager/_highcontrast-light-definition.scss +6 -2
  104. package/styles/file-manager/_layout.scss +367 -921
  105. package/styles/file-manager/_material-dark-definition.scss +7 -2
  106. package/styles/file-manager/_material-definition.scss +7 -2
  107. package/styles/file-manager/_material3-dark-definition.scss +1 -0
  108. package/styles/file-manager/_material3-definition.scss +235 -0
  109. package/styles/file-manager/_tailwind-definition.scss +20 -16
  110. package/styles/file-manager/_theme.scss +126 -102
  111. package/styles/file-manager/bootstrap-dark.css +371 -665
  112. package/styles/file-manager/bootstrap-dark.scss +2 -1
  113. package/styles/file-manager/bootstrap.css +353 -644
  114. package/styles/file-manager/bootstrap.scss +2 -1
  115. package/styles/file-manager/bootstrap4.css +381 -680
  116. package/styles/file-manager/bootstrap4.scss +2 -1
  117. package/styles/file-manager/bootstrap5-dark.css +376 -694
  118. package/styles/file-manager/bootstrap5-dark.scss +2 -1
  119. package/styles/file-manager/bootstrap5.3.css +1603 -0
  120. package/styles/file-manager/bootstrap5.3.scss +17 -0
  121. package/styles/file-manager/bootstrap5.css +376 -694
  122. package/styles/file-manager/bootstrap5.scss +2 -1
  123. package/styles/file-manager/fabric-dark.css +358 -642
  124. package/styles/file-manager/fabric-dark.scss +2 -1
  125. package/styles/file-manager/fabric.css +357 -641
  126. package/styles/file-manager/fabric.scss +2 -1
  127. package/styles/file-manager/fluent-dark.css +359 -641
  128. package/styles/file-manager/fluent-dark.scss +2 -1
  129. package/styles/file-manager/fluent.css +358 -641
  130. package/styles/file-manager/fluent.scss +2 -1
  131. package/styles/file-manager/fluent2.css +1886 -0
  132. package/styles/file-manager/fluent2.scss +17 -0
  133. package/styles/file-manager/highcontrast-light.css +354 -644
  134. package/styles/file-manager/highcontrast-light.scss +2 -1
  135. package/styles/file-manager/highcontrast.css +377 -647
  136. package/styles/file-manager/highcontrast.scss +2 -1
  137. package/styles/file-manager/icons/_bds.scss +235 -0
  138. package/styles/file-manager/icons/_bootstrap.scss +0 -1
  139. package/styles/file-manager/icons/_bootstrap4.scss +0 -1
  140. package/styles/file-manager/icons/_bootstrap5.3.scss +235 -0
  141. package/styles/file-manager/icons/_fabric-dark.scss +0 -1
  142. package/styles/file-manager/icons/_fabric.scss +0 -1
  143. package/styles/file-manager/icons/_fluent2.scss +235 -0
  144. package/styles/file-manager/icons/_fusionnew.scss +235 -0
  145. package/styles/file-manager/icons/_material3-dark.scss +1 -0
  146. package/styles/file-manager/icons/_material3.scss +235 -0
  147. package/styles/file-manager/material-dark.css +392 -671
  148. package/styles/file-manager/material-dark.scss +2 -1
  149. package/styles/file-manager/material.css +391 -654
  150. package/styles/file-manager/material.scss +2 -1
  151. package/styles/file-manager/material3-dark.css +1633 -0
  152. package/styles/file-manager/material3-dark.scss +18 -0
  153. package/styles/file-manager/material3.css +1635 -0
  154. package/styles/file-manager/material3.scss +18 -0
  155. package/styles/file-manager/tailwind-dark.css +347 -664
  156. package/styles/file-manager/tailwind-dark.scss +2 -1
  157. package/styles/file-manager/tailwind.css +347 -664
  158. package/styles/file-manager/tailwind.scss +2 -1
  159. package/styles/fluent-dark-lite.css +1037 -0
  160. package/styles/fluent-dark-lite.scss +16 -0
  161. package/styles/fluent-dark.css +359 -641
  162. package/styles/fluent-dark.scss +17 -1
  163. package/styles/fluent-lite.css +1036 -0
  164. package/styles/fluent-lite.scss +16 -0
  165. package/styles/fluent.css +358 -641
  166. package/styles/fluent.scss +17 -1
  167. package/styles/fluent2-lite.css +1272 -0
  168. package/styles/fluent2-lite.scss +16 -0
  169. package/styles/fluent2.css +1886 -0
  170. package/styles/fluent2.scss +17 -0
  171. package/styles/highcontrast-light-lite.css +1039 -0
  172. package/styles/highcontrast-light-lite.scss +16 -0
  173. package/styles/highcontrast-light.css +354 -644
  174. package/styles/highcontrast-light.scss +17 -1
  175. package/styles/highcontrast-lite.css +1059 -0
  176. package/styles/highcontrast-lite.scss +16 -0
  177. package/styles/highcontrast.css +377 -647
  178. package/styles/highcontrast.scss +17 -1
  179. package/styles/material-dark-lite.css +1092 -0
  180. package/styles/material-dark-lite.scss +16 -0
  181. package/styles/material-dark.css +392 -671
  182. package/styles/material-dark.scss +17 -1
  183. package/styles/material-lite.css +1097 -0
  184. package/styles/material-lite.scss +16 -0
  185. package/styles/material.css +391 -654
  186. package/styles/material.scss +17 -1
  187. package/styles/material3-dark-lite.css +1090 -0
  188. package/styles/material3-dark-lite.scss +16 -0
  189. package/styles/material3-dark.css +1633 -0
  190. package/styles/material3-dark.scss +19 -0
  191. package/styles/material3-lite.css +1092 -0
  192. package/styles/material3-lite.scss +16 -0
  193. package/styles/material3.css +1635 -0
  194. package/styles/material3.scss +19 -0
  195. package/styles/tailwind-dark-lite.css +1060 -0
  196. package/styles/tailwind-dark-lite.scss +16 -0
  197. package/styles/tailwind-dark.css +347 -664
  198. package/styles/tailwind-dark.scss +17 -1
  199. package/styles/tailwind-lite.css +1060 -0
  200. package/styles/tailwind-lite.scss +16 -0
  201. package/styles/tailwind.css +347 -664
  202. package/styles/tailwind.scss +17 -1
  203. package/CHANGELOG.md +0 -404
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
2
2
 
3
3
  /**
4
4
  * Interface for a class ToolbarSettings
@@ -8,7 +8,7 @@ export interface ToolbarSettingsModel {
8
8
  /**
9
9
  * An array of string or object that is used to configure the toolbar items.
10
10
  *
11
- * @default toolbarItems
11
+ * @default defaultToolbarItems
12
12
  */
13
13
  items?: string[];
14
14
 
@@ -19,4 +19,179 @@ export interface ToolbarSettingsModel {
19
19
  */
20
20
  visible?: boolean;
21
21
 
22
+ }
23
+
24
+ /**
25
+ * Interface for a class ToolbarItem
26
+ */
27
+ export interface ToolbarItemModel {
28
+
29
+ /**
30
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
31
+ *
32
+ * @default ""
33
+ */
34
+ id?: string;
35
+
36
+ /**
37
+ * Specifies the text to be displayed on the Toolbar button.
38
+ *
39
+ * @default ""
40
+ */
41
+ text?: string;
42
+
43
+ /**
44
+ * Specifies the width of the Toolbar button commands.
45
+ *
46
+ * @default 'auto'
47
+ */
48
+ width?: number | string;
49
+
50
+ /**
51
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
52
+ *
53
+ * @default ""
54
+ */
55
+ cssClass?: string;
56
+
57
+ /**
58
+ * Defines the priority of items to display it in popup always.
59
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
60
+ *
61
+ * @default false
62
+ */
63
+ showAlwaysInPopup?: boolean;
64
+
65
+ /**
66
+ * Specifies whether an item should be disabled or not.
67
+ *
68
+ * @default false
69
+ */
70
+ disabled?: boolean;
71
+
72
+ /**
73
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
74
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
75
+ *
76
+ * @default ""
77
+ */
78
+ prefixIcon?: string;
79
+
80
+ /**
81
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
82
+ * The icon will be positioned after the text content if text is available.
83
+ *
84
+ * @default ""
85
+ */
86
+ suffixIcon?: string;
87
+
88
+ /**
89
+ * Specifies whether an item should be hidden or not.
90
+ *
91
+ * @default true
92
+ */
93
+ visible?: boolean;
94
+
95
+ /**
96
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
97
+ * This is applicable only to `popup` mode. The possible values for this property as follows
98
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
99
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
100
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
101
+ *
102
+ * @default 'None'
103
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.OverflowOption.None
104
+ * @isEnumeration true
105
+ * @aspType Syncfusion.EJ2.Navigations.OverflowOption
106
+ */
107
+ overflow?: OverflowOption;
108
+
109
+ /**
110
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
111
+ * ```
112
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
113
+ * ```
114
+ *
115
+ * @default ""
116
+ * @angularType string | object
117
+ * @reactType string | function | JSX.Element
118
+ * @vueType string | function
119
+ * @aspType string
120
+ */
121
+ template?: string | Object | Function;
122
+
123
+ /**
124
+ * Specifies the types of command to be rendered in the Toolbar.
125
+ * Supported types are:
126
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
127
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
128
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
129
+ * AutoComplete, etc.
130
+ *
131
+ * @default 'Button'
132
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemType.Button
133
+ * @isEnumeration true
134
+ * @aspType Syncfusion.EJ2.Navigations.ItemType
135
+ */
136
+ type?: ItemType;
137
+
138
+ /**
139
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
140
+ * The possible values for this property as follows
141
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
142
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
143
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
144
+ *
145
+ * @default 'Both'
146
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.DisplayMode.Both
147
+ * @isEnumeration true
148
+ * @aspType Syncfusion.EJ2.Navigations.DisplayMode
149
+ */
150
+ showTextOn?: DisplayMode;
151
+
152
+ /**
153
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
154
+ * Supports HTML attributes such as style, class, etc.
155
+ *
156
+ * @default null
157
+ */
158
+ htmlAttributes?: { [key: string]: string };
159
+
160
+ /**
161
+ * Specifies the text to be displayed on hovering the Toolbar button.
162
+ *
163
+ * @default ""
164
+ */
165
+ tooltipText?: string;
166
+
167
+ /**
168
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
169
+ * The possible values for this property as follows
170
+ * * `Left`: To align commands to the left side of the Toolbar.
171
+ * * `Center`: To align commands at the center of the Toolbar.
172
+ * * `Right`: To align commands to the right side of the Toolbar.
173
+ *
174
+ * @default 'Left'
175
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemAlign.Left
176
+ * @isEnumeration true
177
+ * @aspType Syncfusion.EJ2.Navigations.ItemAlign
178
+ */
179
+ align?: ItemAlign;
180
+
181
+ /**
182
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
183
+ * By default, user can able to switch between items only via arrow keys.
184
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
185
+ *
186
+ * @default -1
187
+ */
188
+ tabIndex?: number;
189
+
190
+ /**
191
+ * Specifies the unique name for each toolbar item rendered in File Manager. This name is used to map the toolbar items in the File Manager component.
192
+ *
193
+ * @default null
194
+ */
195
+ name?: string;
196
+
22
197
  }
@@ -1,5 +1,6 @@
1
1
  import { ChildProperty } from '@syncfusion/ej2-base';
2
- export declare const toolbarItems: string[];
2
+ import { DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
3
+ export declare const defaultToolbarItems: string[];
3
4
  /**
4
5
  * Specifies the Toolbar settings of the FileManager.
5
6
  */
@@ -7,7 +8,7 @@ export declare class ToolbarSettings extends ChildProperty<ToolbarSettings> {
7
8
  /**
8
9
  * An array of string or object that is used to configure the toolbar items.
9
10
  *
10
- * @default toolbarItems
11
+ * @default defaultToolbarItems
11
12
  */
12
13
  items: string[];
13
14
  /**
@@ -17,3 +18,157 @@ export declare class ToolbarSettings extends ChildProperty<ToolbarSettings> {
17
18
  */
18
19
  visible: boolean;
19
20
  }
21
+ export declare class ToolbarItem extends ChildProperty<ToolbarItem> {
22
+ /**
23
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
24
+ *
25
+ * @default ""
26
+ */
27
+ id: string;
28
+ /**
29
+ * Specifies the text to be displayed on the Toolbar button.
30
+ *
31
+ * @default ""
32
+ */
33
+ text: string;
34
+ /**
35
+ * Specifies the width of the Toolbar button commands.
36
+ *
37
+ * @default 'auto'
38
+ */
39
+ width: number | string;
40
+ /**
41
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
42
+ *
43
+ * @default ""
44
+ */
45
+ cssClass: string;
46
+ /**
47
+ * Defines the priority of items to display it in popup always.
48
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
49
+ *
50
+ * @default false
51
+ */
52
+ showAlwaysInPopup: boolean;
53
+ /**
54
+ * Specifies whether an item should be disabled or not.
55
+ *
56
+ * @default false
57
+ */
58
+ disabled: boolean;
59
+ /**
60
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
61
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
62
+ *
63
+ * @default ""
64
+ */
65
+ prefixIcon: string;
66
+ /**
67
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
68
+ * The icon will be positioned after the text content if text is available.
69
+ *
70
+ * @default ""
71
+ */
72
+ suffixIcon: string;
73
+ /**
74
+ * Specifies whether an item should be hidden or not.
75
+ *
76
+ * @default true
77
+ */
78
+ visible: boolean;
79
+ /**
80
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
81
+ * This is applicable only to `popup` mode. The possible values for this property as follows
82
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
83
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
84
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
85
+ *
86
+ * @default 'None'
87
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.OverflowOption.None
88
+ * @isEnumeration true
89
+ * @aspType Syncfusion.EJ2.Navigations.OverflowOption
90
+ */
91
+ overflow: OverflowOption;
92
+ /**
93
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
94
+ * ```
95
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
96
+ * ```
97
+ *
98
+ * @default ""
99
+ * @angularType string | object
100
+ * @reactType string | function | JSX.Element
101
+ * @vueType string | function
102
+ * @aspType string
103
+ */
104
+ template: string | Object | Function;
105
+ /**
106
+ * Specifies the types of command to be rendered in the Toolbar.
107
+ * Supported types are:
108
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
109
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
110
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
111
+ * AutoComplete, etc.
112
+ *
113
+ * @default 'Button'
114
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemType.Button
115
+ * @isEnumeration true
116
+ * @aspType Syncfusion.EJ2.Navigations.ItemType
117
+ */
118
+ type: ItemType;
119
+ /**
120
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
121
+ * The possible values for this property as follows
122
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
123
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
124
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
125
+ *
126
+ * @default 'Both'
127
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.DisplayMode.Both
128
+ * @isEnumeration true
129
+ * @aspType Syncfusion.EJ2.Navigations.DisplayMode
130
+ */
131
+ showTextOn: DisplayMode;
132
+ /**
133
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
134
+ * Supports HTML attributes such as style, class, etc.
135
+ *
136
+ * @default null
137
+ */
138
+ htmlAttributes: {
139
+ [key: string]: string;
140
+ };
141
+ /**
142
+ * Specifies the text to be displayed on hovering the Toolbar button.
143
+ *
144
+ * @default ""
145
+ */
146
+ tooltipText: string;
147
+ /**
148
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
149
+ * The possible values for this property as follows
150
+ * * `Left`: To align commands to the left side of the Toolbar.
151
+ * * `Center`: To align commands at the center of the Toolbar.
152
+ * * `Right`: To align commands to the right side of the Toolbar.
153
+ *
154
+ * @default 'Left'
155
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemAlign.Left
156
+ * @isEnumeration true
157
+ * @aspType Syncfusion.EJ2.Navigations.ItemAlign
158
+ */
159
+ align: ItemAlign;
160
+ /**
161
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
162
+ * By default, user can able to switch between items only via arrow keys.
163
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
164
+ *
165
+ * @default -1
166
+ */
167
+ tabIndex: number;
168
+ /**
169
+ * Specifies the unique name for each toolbar item rendered in File Manager. This name is used to map the toolbar items in the File Manager component.
170
+ *
171
+ * @default null
172
+ */
173
+ name: string;
174
+ }
@@ -18,7 +18,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
20
  import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
- export var toolbarItems = ['NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download', 'Rename',
21
+ export var defaultToolbarItems = ['NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download', 'Rename',
22
22
  'SortBy', 'Refresh', 'Selection', 'View', 'Details'];
23
23
  /**
24
24
  * Specifies the Toolbar settings of the FileManager.
@@ -29,7 +29,7 @@ var ToolbarSettings = /** @class */ (function (_super) {
29
29
  return _super !== null && _super.apply(this, arguments) || this;
30
30
  }
31
31
  __decorate([
32
- Property(toolbarItems)
32
+ Property(defaultToolbarItems)
33
33
  ], ToolbarSettings.prototype, "items", void 0);
34
34
  __decorate([
35
35
  Property(true)
@@ -37,3 +37,65 @@ var ToolbarSettings = /** @class */ (function (_super) {
37
37
  return ToolbarSettings;
38
38
  }(ChildProperty));
39
39
  export { ToolbarSettings };
40
+ var ToolbarItem = /** @class */ (function (_super) {
41
+ __extends(ToolbarItem, _super);
42
+ function ToolbarItem() {
43
+ return _super !== null && _super.apply(this, arguments) || this;
44
+ }
45
+ __decorate([
46
+ Property('')
47
+ ], ToolbarItem.prototype, "id", void 0);
48
+ __decorate([
49
+ Property('')
50
+ ], ToolbarItem.prototype, "text", void 0);
51
+ __decorate([
52
+ Property('auto')
53
+ ], ToolbarItem.prototype, "width", void 0);
54
+ __decorate([
55
+ Property('')
56
+ ], ToolbarItem.prototype, "cssClass", void 0);
57
+ __decorate([
58
+ Property(false)
59
+ ], ToolbarItem.prototype, "showAlwaysInPopup", void 0);
60
+ __decorate([
61
+ Property(false)
62
+ ], ToolbarItem.prototype, "disabled", void 0);
63
+ __decorate([
64
+ Property('')
65
+ ], ToolbarItem.prototype, "prefixIcon", void 0);
66
+ __decorate([
67
+ Property('')
68
+ ], ToolbarItem.prototype, "suffixIcon", void 0);
69
+ __decorate([
70
+ Property(true)
71
+ ], ToolbarItem.prototype, "visible", void 0);
72
+ __decorate([
73
+ Property('None')
74
+ ], ToolbarItem.prototype, "overflow", void 0);
75
+ __decorate([
76
+ Property('')
77
+ ], ToolbarItem.prototype, "template", void 0);
78
+ __decorate([
79
+ Property('Button')
80
+ ], ToolbarItem.prototype, "type", void 0);
81
+ __decorate([
82
+ Property('Both')
83
+ ], ToolbarItem.prototype, "showTextOn", void 0);
84
+ __decorate([
85
+ Property(null)
86
+ ], ToolbarItem.prototype, "htmlAttributes", void 0);
87
+ __decorate([
88
+ Property('')
89
+ ], ToolbarItem.prototype, "tooltipText", void 0);
90
+ __decorate([
91
+ Property('Left')
92
+ ], ToolbarItem.prototype, "align", void 0);
93
+ __decorate([
94
+ Property(-1)
95
+ ], ToolbarItem.prototype, "tabIndex", void 0);
96
+ __decorate([
97
+ Property()
98
+ ], ToolbarItem.prototype, "name", void 0);
99
+ return ToolbarItem;
100
+ }(ChildProperty));
101
+ export { ToolbarItem };
@@ -29,6 +29,19 @@ export interface UploadSettingsModel {
29
29
  */
30
30
  autoClose?: boolean;
31
31
 
32
+ /**
33
+ * Specifies a Boolean value that indicates whether the folder (directory) can be browsed and uploaded in the FileManager component.
34
+ * This property allows to select or drop to upload the folders (directories) instead of files. When folder upload is enabled, all the folder contents including hierarchy folders and files are considered to upload.
35
+ * Folder (directory) upload is supported for the following file system providers,
36
+ * - Physical provider
37
+ * - NodeJS provider
38
+ * - Azure provider
39
+ * - Amazon S3 provider
40
+ *
41
+ * @default false
42
+ */
43
+ directoryUpload?: boolean;
44
+
32
45
  /**
33
46
  * Specifies the minimum file size to be uploaded in bytes.
34
47
  * The property is used to make sure that you cannot upload empty files and small files.
@@ -24,6 +24,18 @@ export declare class UploadSettings extends ChildProperty<UploadSettings> {
24
24
  * @default false
25
25
  */
26
26
  autoClose: boolean;
27
+ /**
28
+ * Specifies a Boolean value that indicates whether the folder (directory) can be browsed and uploaded in the FileManager component.
29
+ * This property allows to select or drop to upload the folders (directories) instead of files. When folder upload is enabled, all the folder contents including hierarchy folders and files are considered to upload.
30
+ * Folder (directory) upload is supported for the following file system providers,
31
+ * - Physical provider
32
+ * - NodeJS provider
33
+ * - Azure provider
34
+ * - Amazon S3 provider
35
+ *
36
+ * @default false
37
+ */
38
+ directoryUpload: boolean;
27
39
  /**
28
40
  * Specifies the minimum file size to be uploaded in bytes.
29
41
  * The property is used to make sure that you cannot upload empty files and small files.
@@ -35,6 +35,9 @@ var UploadSettings = /** @class */ (function (_super) {
35
35
  __decorate([
36
36
  Property(false)
37
37
  ], UploadSettings.prototype, "autoClose", void 0);
38
+ __decorate([
39
+ Property(false)
40
+ ], UploadSettings.prototype, "directoryUpload", void 0);
38
41
  __decorate([
39
42
  Property(0)
40
43
  ], UploadSettings.prototype, "minFileSize", void 0);
@@ -9,6 +9,7 @@ export declare class ContextMenu {
9
9
  private targetElement;
10
10
  contextMenu: Menu;
11
11
  menuTarget: HTMLElement;
12
+ isMenuItemClicked: boolean;
12
13
  private keyConfigs;
13
14
  private keyboardModule;
14
15
  private menuType;
@@ -26,7 +27,7 @@ export declare class ContextMenu {
26
27
  constructor(parent?: IFileManager);
27
28
  private render;
28
29
  onBeforeItemRender(args: MenuEventArgs): void;
29
- onBeforeClose(): void;
30
+ onBeforeClose(args: BeforeOpenCloseMenuEventArgs): void;
30
31
  onBeforeOpen(args: BeforeOpenCloseMenuEventArgs): void;
31
32
  private updateActiveModule;
32
33
  /**