@syncfusion/ej2-filemanager 29.2.4 → 30.1.37
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 +2 -0
- package/dist/ej2-filemanager.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +181 -20
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +182 -20
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/file-manager/actions/breadcrumb-bar.d.ts +60 -0
- package/dist/ts/file-manager/actions/breadcrumb-bar.ts +423 -0
- package/dist/ts/file-manager/actions/index.d.ts +6 -0
- package/dist/ts/file-manager/actions/index.ts +6 -0
- package/dist/ts/file-manager/actions/toolbar.d.ts +54 -0
- package/dist/ts/file-manager/actions/toolbar.ts +609 -0
- package/dist/ts/file-manager/actions/virtualization.d.ts +93 -0
- package/dist/ts/file-manager/actions/virtualization.ts +324 -0
- package/dist/ts/file-manager/base/classes.d.ts +224 -0
- package/dist/ts/file-manager/base/classes.ts +225 -0
- package/dist/ts/file-manager/base/constant.d.ts +136 -0
- package/dist/ts/file-manager/base/constant.ts +137 -0
- package/dist/ts/file-manager/base/file-manager-model.d.ts +520 -0
- package/dist/ts/file-manager/base/file-manager.d.ts +867 -0
- package/dist/ts/file-manager/base/file-manager.ts +2061 -0
- package/dist/ts/file-manager/base/index.d.ts +8 -0
- package/dist/ts/file-manager/base/index.ts +8 -0
- package/dist/ts/file-manager/base/interface.d.ts +952 -0
- package/dist/ts/file-manager/base/interface.ts +931 -0
- package/dist/ts/file-manager/common/index.d.ts +5 -0
- package/dist/ts/file-manager/common/index.ts +5 -0
- package/dist/ts/file-manager/common/operations.d.ts +122 -0
- package/dist/ts/file-manager/common/operations.ts +1369 -0
- package/dist/ts/file-manager/common/utility.d.ts +644 -0
- package/dist/ts/file-manager/common/utility.ts +1728 -0
- package/dist/ts/file-manager/index.d.ts +9 -0
- package/dist/ts/file-manager/index.ts +9 -0
- package/dist/ts/file-manager/layout/details-view.d.ts +152 -0
- package/dist/ts/file-manager/layout/details-view.ts +1990 -0
- package/dist/ts/file-manager/layout/index.d.ts +6 -0
- package/dist/ts/file-manager/layout/index.ts +6 -0
- package/dist/ts/file-manager/layout/large-icons-view.d.ts +157 -0
- package/dist/ts/file-manager/layout/large-icons-view.ts +1684 -0
- package/dist/ts/file-manager/layout/navigation-pane.d.ts +104 -0
- package/dist/ts/file-manager/layout/navigation-pane.ts +919 -0
- package/dist/ts/file-manager/models/ajax-settings-model.d.ts +36 -0
- package/dist/ts/file-manager/models/ajax-settings.d.ts +30 -0
- package/dist/ts/file-manager/models/ajax-settings.ts +39 -0
- package/dist/ts/file-manager/models/column-model.d.ts +155 -0
- package/dist/ts/file-manager/models/column.d.ts +179 -0
- package/dist/ts/file-manager/models/column.ts +216 -0
- package/dist/ts/file-manager/models/contextMenu-settings-model.d.ts +36 -0
- package/dist/ts/file-manager/models/contextMenu-settings.d.ts +33 -0
- package/dist/ts/file-manager/models/contextMenu-settings.ts +44 -0
- package/dist/ts/file-manager/models/default-locale.d.ts +4 -0
- package/dist/ts/file-manager/models/default-locale.ts +101 -0
- package/dist/ts/file-manager/models/details-view-settings-model.d.ts +30 -0
- package/dist/ts/file-manager/models/details-view-settings.d.ts +31 -0
- package/dist/ts/file-manager/models/details-view-settings.ts +54 -0
- package/dist/ts/file-manager/models/index.d.ts +19 -0
- package/dist/ts/file-manager/models/index.ts +19 -0
- package/dist/ts/file-manager/models/navigation-pane-settings-model.d.ts +40 -0
- package/dist/ts/file-manager/models/navigation-pane-settings.d.ts +34 -0
- package/dist/ts/file-manager/models/navigation-pane-settings.ts +42 -0
- package/dist/ts/file-manager/models/search-settings-model.d.ts +42 -0
- package/dist/ts/file-manager/models/search-settings.d.ts +44 -0
- package/dist/ts/file-manager/models/search-settings.ts +53 -0
- package/dist/ts/file-manager/models/toolbar-settings-model.d.ts +197 -0
- package/dist/ts/file-manager/models/toolbar-settings.d.ts +174 -0
- package/dist/ts/file-manager/models/toolbar-settings.ts +198 -0
- package/dist/ts/file-manager/models/upload-settings-model.d.ts +70 -0
- package/dist/ts/file-manager/models/upload-settings.d.ts +61 -0
- package/dist/ts/file-manager/models/upload-settings.ts +75 -0
- package/dist/ts/file-manager/pop-up/context-menu.d.ts +64 -0
- package/dist/ts/file-manager/pop-up/context-menu.ts +693 -0
- package/dist/ts/file-manager/pop-up/dialog.d.ts +31 -0
- package/dist/ts/file-manager/pop-up/dialog.ts +1009 -0
- package/dist/ts/file-manager/pop-up/index.d.ts +5 -0
- package/dist/ts/file-manager/pop-up/index.ts +5 -0
- package/dist/ts/index.d.ts +4 -0
- package/dist/ts/index.ts +4 -0
- package/package.json +16 -17
- package/src/file-manager/base/interface.d.ts +10 -0
- package/src/file-manager/common/operations.d.ts +18 -1
- package/src/file-manager/common/operations.js +59 -0
- package/src/file-manager/common/utility.d.ts +3 -3
- package/src/file-manager/common/utility.js +20 -6
- package/src/file-manager/layout/details-view.js +4 -3
- package/src/file-manager/layout/large-icons-view.d.ts +3 -0
- package/src/file-manager/layout/large-icons-view.js +67 -9
- package/src/file-manager/layout/navigation-pane.js +2 -0
- package/src/file-manager/pop-up/dialog.d.ts +3 -3
- package/src/file-manager/pop-up/dialog.js +34 -6
- package/styles/bds-lite.css +51 -1
- package/styles/bds.css +51 -1
- package/styles/bootstrap-dark-lite.css +51 -0
- package/styles/bootstrap-dark.css +51 -0
- package/styles/bootstrap-lite.css +51 -0
- package/styles/bootstrap.css +51 -0
- package/styles/bootstrap4-lite.css +51 -0
- package/styles/bootstrap4.css +51 -0
- package/styles/bootstrap5-dark-lite.css +51 -1
- package/styles/bootstrap5-dark.css +51 -1
- package/styles/bootstrap5-lite.css +51 -1
- package/styles/bootstrap5.3-lite.css +51 -0
- package/styles/bootstrap5.3.css +51 -0
- package/styles/bootstrap5.css +51 -1
- package/styles/fabric-dark-lite.css +51 -0
- package/styles/fabric-dark.css +51 -0
- package/styles/fabric-lite.css +51 -0
- package/styles/fabric.css +51 -0
- package/styles/file-manager/_bds-definition.scss +1 -0
- package/styles/file-manager/_bootstrap5-definition.scss +1 -0
- package/styles/file-manager/_layout.scss +46 -4
- package/styles/file-manager/_material3-definition.scss +2 -2
- package/styles/file-manager/_tailwind-definition.scss +1 -0
- package/styles/file-manager/_tailwind3-definition.scss +1 -0
- package/styles/file-manager/bds.css +51 -1
- package/styles/file-manager/bootstrap-dark.css +51 -0
- package/styles/file-manager/bootstrap.css +51 -0
- package/styles/file-manager/bootstrap4.css +51 -0
- package/styles/file-manager/bootstrap5-dark.css +51 -1
- package/styles/file-manager/bootstrap5.3.css +51 -0
- package/styles/file-manager/bootstrap5.css +51 -1
- package/styles/file-manager/fabric-dark.css +51 -0
- package/styles/file-manager/fabric.css +51 -0
- package/styles/file-manager/fluent-dark.css +51 -0
- package/styles/file-manager/fluent.css +51 -0
- package/styles/file-manager/fluent2.css +51 -0
- package/styles/file-manager/highcontrast-light.css +51 -0
- package/styles/file-manager/highcontrast.css +51 -0
- package/styles/file-manager/material-dark.css +51 -0
- package/styles/file-manager/material.css +51 -0
- package/styles/file-manager/material3-dark.css +53 -2
- package/styles/file-manager/material3.css +53 -2
- package/styles/file-manager/tailwind-dark.css +51 -1
- package/styles/file-manager/tailwind.css +51 -1
- package/styles/file-manager/tailwind3.css +51 -0
- package/styles/fluent-dark-lite.css +51 -0
- package/styles/fluent-dark.css +51 -0
- package/styles/fluent-lite.css +51 -0
- package/styles/fluent.css +51 -0
- package/styles/fluent2-lite.css +51 -0
- package/styles/fluent2.css +51 -0
- package/styles/highcontrast-light-lite.css +51 -0
- package/styles/highcontrast-light.css +51 -0
- package/styles/highcontrast-lite.css +51 -0
- package/styles/highcontrast.css +51 -0
- package/styles/material-dark-lite.css +51 -0
- package/styles/material-dark.css +51 -0
- package/styles/material-lite.css +51 -0
- package/styles/material.css +51 -0
- package/styles/material3-dark-lite.css +51 -0
- package/styles/material3-dark.css +53 -2
- package/styles/material3-lite.css +51 -0
- package/styles/material3.css +53 -2
- package/styles/tailwind-dark-lite.css +51 -1
- package/styles/tailwind-dark.css +51 -1
- package/styles/tailwind-lite.css +51 -1
- package/styles/tailwind.css +51 -1
- package/styles/tailwind3-lite.css +51 -0
- package/styles/tailwind3.css +51 -0
@@ -0,0 +1,197 @@
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Interface for a class ToolbarSettings
|
5
|
+
*/
|
6
|
+
export interface ToolbarSettingsModel {
|
7
|
+
|
8
|
+
/**
|
9
|
+
* An array of string or object that is used to configure the toolbar items.
|
10
|
+
*
|
11
|
+
* @default defaultToolbarItems
|
12
|
+
*/
|
13
|
+
items?: string[];
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Enables or disables the toolbar rendering in the file manager component.
|
17
|
+
*
|
18
|
+
* @default true
|
19
|
+
*/
|
20
|
+
visible?: boolean;
|
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
|
+
|
197
|
+
}
|
@@ -0,0 +1,174 @@
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
2
|
+
import { DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
|
3
|
+
export declare const defaultToolbarItems: string[];
|
4
|
+
/**
|
5
|
+
* Specifies the Toolbar settings of the FileManager.
|
6
|
+
*/
|
7
|
+
export declare class ToolbarSettings extends ChildProperty<ToolbarSettings> {
|
8
|
+
/**
|
9
|
+
* An array of string or object that is used to configure the toolbar items.
|
10
|
+
*
|
11
|
+
* @default defaultToolbarItems
|
12
|
+
*/
|
13
|
+
items: string[];
|
14
|
+
/**
|
15
|
+
* Enables or disables the toolbar rendering in the file manager component.
|
16
|
+
*
|
17
|
+
* @default true
|
18
|
+
*/
|
19
|
+
visible: boolean;
|
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
|
+
}
|
@@ -0,0 +1,198 @@
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
2
|
+
import { DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
|
3
|
+
|
4
|
+
export const defaultToolbarItems: string[] = ['NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download', 'Rename',
|
5
|
+
'SortBy', 'Refresh', 'Selection', 'View', 'Details'];
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Specifies the Toolbar settings of the FileManager.
|
9
|
+
*/
|
10
|
+
export class ToolbarSettings extends ChildProperty<ToolbarSettings> {
|
11
|
+
/**
|
12
|
+
* An array of string or object that is used to configure the toolbar items.
|
13
|
+
*
|
14
|
+
* @default defaultToolbarItems
|
15
|
+
*/
|
16
|
+
@Property(defaultToolbarItems)
|
17
|
+
public items: string[];
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Enables or disables the toolbar rendering in the file manager component.
|
21
|
+
*
|
22
|
+
* @default true
|
23
|
+
*/
|
24
|
+
@Property(true)
|
25
|
+
public visible: boolean;
|
26
|
+
}
|
27
|
+
|
28
|
+
export class ToolbarItem extends ChildProperty<ToolbarItem> {
|
29
|
+
/**
|
30
|
+
* Specifies the unique ID to be used with button or input element of Toolbar items.
|
31
|
+
*
|
32
|
+
* @default ""
|
33
|
+
*/
|
34
|
+
@Property('')
|
35
|
+
public id: string;
|
36
|
+
/**
|
37
|
+
* Specifies the text to be displayed on the Toolbar button.
|
38
|
+
*
|
39
|
+
* @default ""
|
40
|
+
*/
|
41
|
+
@Property('')
|
42
|
+
public text: string;
|
43
|
+
/**
|
44
|
+
* Specifies the width of the Toolbar button commands.
|
45
|
+
*
|
46
|
+
* @default 'auto'
|
47
|
+
*/
|
48
|
+
@Property('auto')
|
49
|
+
public width: number | string;
|
50
|
+
/**
|
51
|
+
* Defines single/multiple classes (separated by space) to be used for customization of commands.
|
52
|
+
*
|
53
|
+
* @default ""
|
54
|
+
*/
|
55
|
+
@Property('')
|
56
|
+
public cssClass: string;
|
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
|
+
@Property(false)
|
64
|
+
public showAlwaysInPopup: boolean;
|
65
|
+
/**
|
66
|
+
* Specifies whether an item should be disabled or not.
|
67
|
+
*
|
68
|
+
* @default false
|
69
|
+
*/
|
70
|
+
@Property(false)
|
71
|
+
public disabled: boolean;
|
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
|
+
@Property('')
|
79
|
+
public prefixIcon: string;
|
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
|
+
@Property('')
|
87
|
+
public suffixIcon: string;
|
88
|
+
/**
|
89
|
+
* Specifies whether an item should be hidden or not.
|
90
|
+
*
|
91
|
+
* @default true
|
92
|
+
*/
|
93
|
+
@Property(true)
|
94
|
+
public visible: boolean;
|
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
|
+
@Property('None')
|
108
|
+
public overflow: OverflowOption;
|
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
|
+
@Property('')
|
122
|
+
public template: string | Object | Function;
|
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
|
+
@Property('Button')
|
137
|
+
public type: ItemType;
|
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
|
+
@Property('Both')
|
151
|
+
public showTextOn: DisplayMode;
|
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
|
+
@Property(null)
|
159
|
+
public htmlAttributes: { [key: string]: string };
|
160
|
+
/**
|
161
|
+
* Specifies the text to be displayed on hovering the Toolbar button.
|
162
|
+
*
|
163
|
+
* @default ""
|
164
|
+
*/
|
165
|
+
@Property('')
|
166
|
+
public tooltipText: string;
|
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
|
+
@Property('Left')
|
180
|
+
public align: ItemAlign;
|
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
|
+
@Property(-1)
|
189
|
+
public tabIndex: number;
|
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
|
+
@Property()
|
196
|
+
public name: string;
|
197
|
+
|
198
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Interface for a class UploadSettings
|
5
|
+
*/
|
6
|
+
export interface UploadSettingsModel {
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Specifies the extensions of the file types allowed in the file manager component and pass the extensions with comma separators.
|
10
|
+
* For example, if you want to upload specific image files, pass allowedExtensions as ".jpg,.png".
|
11
|
+
*
|
12
|
+
* @defaults ''
|
13
|
+
*/
|
14
|
+
allowedExtensions?: string;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* By default, the FileManager component initiates automatic upload when the files are added in upload queue.
|
18
|
+
* If you want to manipulate the files before uploading to server, disable the autoUpload property.
|
19
|
+
* The buttons "upload" and "clear" will be hided from file list when the autoUpload property is true.
|
20
|
+
*
|
21
|
+
* @default true
|
22
|
+
*/
|
23
|
+
autoUpload?: boolean;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Defines whether to close the upload dialog after uploading all the files.
|
27
|
+
*
|
28
|
+
* @default false
|
29
|
+
*/
|
30
|
+
autoClose?: boolean;
|
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
|
+
|
45
|
+
/**
|
46
|
+
* Specifies the minimum file size to be uploaded in bytes.
|
47
|
+
* The property is used to make sure that you cannot upload empty files and small files.
|
48
|
+
*
|
49
|
+
* @default 0
|
50
|
+
*/
|
51
|
+
minFileSize?: number;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Specifies the maximum allowed file size to be uploaded in bytes.
|
55
|
+
* The property is used to make sure that you cannot upload too large files.
|
56
|
+
*
|
57
|
+
* @default 30000000
|
58
|
+
*/
|
59
|
+
maxFileSize?: number;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Specifies the chunk size to split the large file into chunks, and upload it to the server in a sequential order.
|
63
|
+
* If the chunk size property has value, the FileManager enables the chunk upload by default.
|
64
|
+
* It must be specified in bytes value.
|
65
|
+
*
|
66
|
+
* @default 0
|
67
|
+
*/
|
68
|
+
chunkSize?: number;
|
69
|
+
|
70
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
2
|
+
/**
|
3
|
+
* Specifies the Ajax settings of the File Manager.
|
4
|
+
*/
|
5
|
+
export declare class UploadSettings extends ChildProperty<UploadSettings> {
|
6
|
+
/**
|
7
|
+
* Specifies the extensions of the file types allowed in the file manager component and pass the extensions with comma separators.
|
8
|
+
* For example, if you want to upload specific image files, pass allowedExtensions as ".jpg,.png".
|
9
|
+
*
|
10
|
+
* @defaults ''
|
11
|
+
*/
|
12
|
+
allowedExtensions: string;
|
13
|
+
/**
|
14
|
+
* By default, the FileManager component initiates automatic upload when the files are added in upload queue.
|
15
|
+
* If you want to manipulate the files before uploading to server, disable the autoUpload property.
|
16
|
+
* The buttons "upload" and "clear" will be hided from file list when the autoUpload property is true.
|
17
|
+
*
|
18
|
+
* @default true
|
19
|
+
*/
|
20
|
+
autoUpload: boolean;
|
21
|
+
/**
|
22
|
+
* Defines whether to close the upload dialog after uploading all the files.
|
23
|
+
*
|
24
|
+
* @default false
|
25
|
+
*/
|
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;
|
39
|
+
/**
|
40
|
+
* Specifies the minimum file size to be uploaded in bytes.
|
41
|
+
* The property is used to make sure that you cannot upload empty files and small files.
|
42
|
+
*
|
43
|
+
* @default 0
|
44
|
+
*/
|
45
|
+
minFileSize: number;
|
46
|
+
/**
|
47
|
+
* Specifies the maximum allowed file size to be uploaded in bytes.
|
48
|
+
* The property is used to make sure that you cannot upload too large files.
|
49
|
+
*
|
50
|
+
* @default 30000000
|
51
|
+
*/
|
52
|
+
maxFileSize: number;
|
53
|
+
/**
|
54
|
+
* Specifies the chunk size to split the large file into chunks, and upload it to the server in a sequential order.
|
55
|
+
* If the chunk size property has value, the FileManager enables the chunk upload by default.
|
56
|
+
* It must be specified in bytes value.
|
57
|
+
*
|
58
|
+
* @default 0
|
59
|
+
*/
|
60
|
+
chunkSize: number;
|
61
|
+
}
|