@syncfusion/ej2-filemanager 20.1.52-10460 → 20.1.52-10461

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 (172) hide show
  1. package/CHANGELOG.md +412 -410
  2. package/README.md +69 -69
  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 +57 -54
  7. package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
  8. package/dist/es6/ej2-filemanager.es5.js +174 -171
  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/dist/ts/file-manager/actions/breadcrumb-bar.ts +427 -0
  14. package/dist/ts/file-manager/actions/toolbar.ts +498 -0
  15. package/dist/ts/file-manager/base/classes.ts +225 -0
  16. package/dist/ts/file-manager/base/constant.ts +137 -0
  17. package/dist/ts/file-manager/base/file-manager.ts +1659 -0
  18. package/dist/ts/file-manager/base/interface.ts +652 -0
  19. package/dist/ts/file-manager/common/operations.ts +614 -0
  20. package/dist/ts/file-manager/common/utility.ts +1503 -0
  21. package/dist/ts/file-manager/layout/details-view.ts +1837 -0
  22. package/dist/ts/file-manager/layout/large-icons-view.ts +1587 -0
  23. package/dist/ts/file-manager/layout/navigation-pane.ts +879 -0
  24. package/dist/ts/file-manager/models/ajax-settings.ts +39 -0
  25. package/dist/ts/file-manager/models/column.ts +197 -0
  26. package/dist/ts/file-manager/models/contextMenu-settings.ts +44 -0
  27. package/dist/ts/file-manager/models/default-locale.ts +102 -0
  28. package/dist/ts/file-manager/models/details-view-settings.ts +48 -0
  29. package/dist/ts/file-manager/models/navigation-pane-settings.ts +42 -0
  30. package/dist/ts/file-manager/models/search-settings.ts +48 -0
  31. package/dist/ts/file-manager/models/toolbar-settings.ts +25 -0
  32. package/dist/ts/file-manager/models/upload-settings.ts +51 -0
  33. package/dist/ts/file-manager/pop-up/context-menu.ts +614 -0
  34. package/dist/ts/file-manager/pop-up/dialog.ts +996 -0
  35. package/helpers/e2e/filemanagerHelper.js +183 -166
  36. package/license +9 -9
  37. package/package.json +72 -72
  38. package/src/file-manager/base/file-manager-model.d.ts +329 -329
  39. package/src/file-manager/base/file-manager.js +19 -19
  40. package/src/file-manager/models/ajax-settings-model.d.ts +21 -21
  41. package/src/file-manager/models/ajax-settings.js +19 -19
  42. package/src/file-manager/models/column-model.d.ts +98 -98
  43. package/src/file-manager/models/column.js +19 -19
  44. package/src/file-manager/models/contextMenu-settings-model.d.ts +21 -21
  45. package/src/file-manager/models/contextMenu-settings.js +19 -19
  46. package/src/file-manager/models/details-view-settings-model.d.ts +19 -19
  47. package/src/file-manager/models/details-view-settings.js +19 -19
  48. package/src/file-manager/models/navigation-pane-settings-model.d.ts +25 -25
  49. package/src/file-manager/models/navigation-pane-settings.js +19 -19
  50. package/src/file-manager/models/search-settings-model.d.ts +26 -26
  51. package/src/file-manager/models/search-settings.js +19 -19
  52. package/src/file-manager/models/toolbar-settings-model.d.ts +11 -11
  53. package/src/file-manager/models/toolbar-settings.js +19 -19
  54. package/src/file-manager/models/upload-settings-model.d.ts +31 -31
  55. package/src/file-manager/models/upload-settings.js +19 -19
  56. package/src/file-manager/pop-up/context-menu.js +3 -0
  57. package/styles/compatibility/bootstrap.css +1 -0
  58. package/styles/compatibility/bootstrap.scss +12 -0
  59. package/styles/compatibility/bootstrap4.css +1 -0
  60. package/styles/compatibility/bootstrap4.scss +12 -0
  61. package/styles/compatibility/fabric.css +1 -0
  62. package/styles/compatibility/fabric.scss +12 -0
  63. package/styles/compatibility/highcontrast.css +1 -0
  64. package/styles/compatibility/highcontrast.scss +12 -0
  65. package/styles/compatibility/material.css +1 -0
  66. package/styles/compatibility/material.scss +12 -0
  67. package/styles/file-manager/_all.scss +2 -2
  68. package/styles/file-manager/_bds-definition.scss +236 -0
  69. package/styles/file-manager/_bigger.scss +759 -0
  70. package/styles/file-manager/_bootstrap-dark-definition.scss +244 -240
  71. package/styles/file-manager/_bootstrap-definition.scss +245 -241
  72. package/styles/file-manager/_bootstrap4-definition.scss +246 -242
  73. package/styles/file-manager/_bootstrap5-definition.scss +242 -237
  74. package/styles/file-manager/_bootstrap5.3-definition.scss +242 -0
  75. package/styles/file-manager/_fabric-dark-definition.scss +242 -238
  76. package/styles/file-manager/_fabric-definition.scss +244 -240
  77. package/styles/file-manager/_fluent-definition.scss +249 -246
  78. package/styles/file-manager/_fluent2-definition.scss +255 -0
  79. package/styles/file-manager/_fusionnew-definition.scss +241 -0
  80. package/styles/file-manager/_highcontrast-definition.scss +244 -240
  81. package/styles/file-manager/_highcontrast-light-definition.scss +244 -240
  82. package/styles/file-manager/_layout.scss +1252 -1815
  83. package/styles/file-manager/_material-dark-definition.scss +245 -240
  84. package/styles/file-manager/_material-definition.scss +245 -240
  85. package/styles/file-manager/_material3-definition.scss +235 -0
  86. package/styles/file-manager/_tailwind-definition.scss +236 -232
  87. package/styles/file-manager/_theme.scss +418 -397
  88. package/styles/file-manager/icons/_bds.scss +235 -0
  89. package/styles/file-manager/icons/_bootstrap-dark.scss +235 -235
  90. package/styles/file-manager/icons/_bootstrap.scss +235 -236
  91. package/styles/file-manager/icons/_bootstrap4.scss +235 -236
  92. package/styles/file-manager/icons/_bootstrap5.3.scss +235 -0
  93. package/styles/file-manager/icons/_bootstrap5.scss +235 -235
  94. package/styles/file-manager/icons/_fabric-dark.scss +229 -230
  95. package/styles/file-manager/icons/_fabric.scss +229 -230
  96. package/styles/file-manager/icons/_fluent.scss +235 -235
  97. package/styles/file-manager/icons/_fluent2.scss +235 -0
  98. package/styles/file-manager/icons/_fusionnew.scss +235 -0
  99. package/styles/file-manager/icons/_highcontrast-light.scss +235 -235
  100. package/styles/file-manager/icons/_highcontrast.scss +229 -229
  101. package/styles/file-manager/icons/_material-dark.scss +235 -235
  102. package/styles/file-manager/icons/_material.scss +235 -235
  103. package/styles/file-manager/icons/_material3.scss +235 -0
  104. package/styles/file-manager/icons/_tailwind.scss +235 -235
  105. package/.eslintrc.json +0 -244
  106. package/styles/bootstrap-dark.css +0 -1920
  107. package/styles/bootstrap-dark.scss +0 -1
  108. package/styles/bootstrap.css +0 -1899
  109. package/styles/bootstrap.scss +0 -1
  110. package/styles/bootstrap4.css +0 -1935
  111. package/styles/bootstrap4.scss +0 -1
  112. package/styles/bootstrap5-dark.css +0 -1982
  113. package/styles/bootstrap5-dark.scss +0 -1
  114. package/styles/bootstrap5.css +0 -1982
  115. package/styles/bootstrap5.scss +0 -1
  116. package/styles/fabric-dark.css +0 -1891
  117. package/styles/fabric-dark.scss +0 -1
  118. package/styles/fabric.css +0 -1891
  119. package/styles/fabric.scss +0 -1
  120. package/styles/file-manager/_bootstrap5-dark-definition.scss +0 -1
  121. package/styles/file-manager/_fluent-dark-definition.scss +0 -1
  122. package/styles/file-manager/_tailwind-dark-definition.scss +0 -1
  123. package/styles/file-manager/bootstrap-dark.css +0 -1920
  124. package/styles/file-manager/bootstrap-dark.scss +0 -16
  125. package/styles/file-manager/bootstrap.css +0 -1899
  126. package/styles/file-manager/bootstrap.scss +0 -16
  127. package/styles/file-manager/bootstrap4.css +0 -1935
  128. package/styles/file-manager/bootstrap4.scss +0 -16
  129. package/styles/file-manager/bootstrap5-dark.css +0 -1982
  130. package/styles/file-manager/bootstrap5-dark.scss +0 -16
  131. package/styles/file-manager/bootstrap5.css +0 -1982
  132. package/styles/file-manager/bootstrap5.scss +0 -16
  133. package/styles/file-manager/fabric-dark.css +0 -1891
  134. package/styles/file-manager/fabric-dark.scss +0 -16
  135. package/styles/file-manager/fabric.css +0 -1891
  136. package/styles/file-manager/fabric.scss +0 -16
  137. package/styles/file-manager/fluent-dark.css +0 -1901
  138. package/styles/file-manager/fluent-dark.scss +0 -16
  139. package/styles/file-manager/fluent.css +0 -1900
  140. package/styles/file-manager/fluent.scss +0 -16
  141. package/styles/file-manager/highcontrast-light.css +0 -1897
  142. package/styles/file-manager/highcontrast-light.scss +0 -16
  143. package/styles/file-manager/highcontrast.css +0 -1897
  144. package/styles/file-manager/highcontrast.scss +0 -16
  145. package/styles/file-manager/icons/_bootstrap5-dark.scss +0 -1
  146. package/styles/file-manager/icons/_fluent-dark.scss +0 -1
  147. package/styles/file-manager/icons/_tailwind-dark.scss +0 -1
  148. package/styles/file-manager/material-dark.css +0 -1945
  149. package/styles/file-manager/material-dark.scss +0 -16
  150. package/styles/file-manager/material.css +0 -1932
  151. package/styles/file-manager/material.scss +0 -16
  152. package/styles/file-manager/tailwind-dark.css +0 -1969
  153. package/styles/file-manager/tailwind-dark.scss +0 -16
  154. package/styles/file-manager/tailwind.css +0 -1969
  155. package/styles/file-manager/tailwind.scss +0 -16
  156. package/styles/fluent-dark.css +0 -1901
  157. package/styles/fluent-dark.scss +0 -1
  158. package/styles/fluent.css +0 -1900
  159. package/styles/fluent.scss +0 -1
  160. package/styles/highcontrast-light.css +0 -1897
  161. package/styles/highcontrast-light.scss +0 -1
  162. package/styles/highcontrast.css +0 -1897
  163. package/styles/highcontrast.scss +0 -1
  164. package/styles/material-dark.css +0 -1945
  165. package/styles/material-dark.scss +0 -1
  166. package/styles/material.css +0 -1932
  167. package/styles/material.scss +0 -1
  168. package/styles/tailwind-dark.css +0 -1969
  169. package/styles/tailwind-dark.scss +0 -1
  170. package/styles/tailwind.css +0 -1969
  171. package/styles/tailwind.scss +0 -1
  172. package/tslint.json +0 -111
@@ -0,0 +1,39 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Specifies the Ajax settings of the File Manager.
5
+ */
6
+ export class AjaxSettings extends ChildProperty<AjaxSettings> {
7
+ /**
8
+ * Specifies URL to download the files from server.
9
+ *
10
+ * @default null
11
+ */
12
+ @Property(null)
13
+ public downloadUrl: string;
14
+
15
+ /**
16
+ * Specifies URL to get the images from server.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property(null)
21
+ public getImageUrl: string;
22
+
23
+ /**
24
+ * Specifies URL to upload the files to server.
25
+ *
26
+ * @default null
27
+ */
28
+ @Property(null)
29
+ public uploadUrl: string;
30
+
31
+ /**
32
+ * Specifies URL to read the files from server.
33
+ *
34
+ * @default null
35
+ */
36
+ @Property(null)
37
+ public url: string;
38
+ }
39
+
@@ -0,0 +1,197 @@
1
+ import { Property, ChildProperty, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Defines alignments of text, they are
5
+ * * Left
6
+ * * Right
7
+ * * Center
8
+ * * Justify
9
+ */
10
+ export type TextAlign =
11
+ /** Defines Left alignment */
12
+ 'Left' |
13
+ /** Defines Right alignment */
14
+ 'Right' |
15
+ /** Defines Center alignment */
16
+ 'Center' |
17
+ /** Defines Justify alignment */
18
+ 'Justify';
19
+
20
+ /**
21
+ * Defines the cell content's overflow mode. The available modes are
22
+ * * `Clip` - Truncates the cell content when it overflows its area.
23
+ * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
24
+ * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
25
+ * also it will display tooltip while hover on ellipsis applied cell.
26
+ */
27
+ export type ClipMode =
28
+ /** Truncates the cell content when it overflows its area */
29
+ 'Clip' |
30
+ /** Displays ellipsis when the cell content overflows its area */
31
+ 'Ellipsis' |
32
+ /** Displays ellipsis when the cell content overflows its area also it will display tooltip while hover on ellipsis applied cell. */
33
+ 'EllipsisWithTooltip';
34
+
35
+ /**
36
+ * Interface for a class Column
37
+ */
38
+ /* istanbul ignore next */
39
+ export class Column extends ChildProperty<Column> {
40
+
41
+ /**
42
+ * Defines the field name of column which is mapped with mapping name of DataSource.
43
+ * The bounded columns can be sort, filter and group etc.,
44
+ * The `field` name must be a valid JavaScript identifier,
45
+ * the first character must be an alphabet and should not contain spaces and special characters.
46
+ *
47
+ * @default ''
48
+ */
49
+ @Property('')
50
+ public field: string;
51
+
52
+ /**
53
+ * Defines the header text of column which is used to display in column header.
54
+ * If `headerText` is not defined, then field name value will be assigned to header text.
55
+ *
56
+ * @default ''
57
+ */
58
+ @Property('')
59
+ public headerText: string;
60
+
61
+ /**
62
+ * Defines the width of the column in pixels or percentage.
63
+ *
64
+ * @default ''
65
+ */
66
+ @Property('')
67
+ public width: string | number;
68
+
69
+ /**
70
+ * Defines the minimum width of the column in pixels or percentage.
71
+ *
72
+ * @default ''
73
+ */
74
+ @Property('')
75
+ public minWidth: string | number;
76
+
77
+ /**
78
+ * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
79
+ *
80
+ * @default ''
81
+ */
82
+ @Property('')
83
+ public maxWidth: string | number;
84
+
85
+ /**
86
+ * Defines the alignment of the column in both header and content cells.
87
+ *
88
+ * @default Left
89
+ */
90
+ @Property('Left')
91
+ public textAlign: TextAlign;
92
+
93
+ /**
94
+ * Defines the cell content's overflow mode. The available modes are
95
+ * * `Clip` - Truncates the cell content when it overflows its area.
96
+ * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
97
+ * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
98
+ * also it will display tooltip while hover on ellipsis applied cell.
99
+ *
100
+ * @default Ellipsis
101
+ */
102
+ public clipMode: ClipMode;
103
+
104
+ /**
105
+ * Define the alignment of column header which is used to align the text of column header.
106
+ *
107
+ * @default null
108
+ */
109
+ @Property(null)
110
+ public headerTextAlign: TextAlign;
111
+
112
+ /**
113
+ * Defines the data type of the column.
114
+ *
115
+ * @default null
116
+ */
117
+ @Property(null)
118
+ public type: string;
119
+
120
+ /**
121
+ * It is used to change display value with the given format and does not affect the original data.
122
+ * Gets the format from the user which can be standard or custom
123
+ * [`number`](../../common/internationalization/#manipulating-numbers)
124
+ * and [`date`](../../common/internationalization/#manipulating-datetime) formats.
125
+ *
126
+ * @default null
127
+ * @aspType string
128
+ */
129
+ @Property(null)
130
+ public format: string | NumberFormatOptions | DateFormatOptions;
131
+
132
+ /**
133
+ * Defines the column template that renders customized element in each cell of the column.
134
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
135
+ *
136
+ * @default null
137
+ */
138
+ @Property(null)
139
+ public template: string;
140
+
141
+ /**
142
+ * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
143
+ *
144
+ * @default null
145
+ */
146
+ @Property(null)
147
+ public headerTemplate: string;
148
+
149
+ /**
150
+ * If `allowSorting` set to false, then it disables sorting option of a particular column.
151
+ * By default all columns are sortable.
152
+ *
153
+ * @default true
154
+ */
155
+ @Property(true)
156
+ public allowSorting: boolean;
157
+
158
+ /**
159
+ * If `allowResizing` set to false, it disables resize option of a particular column.
160
+ *
161
+ * @default true
162
+ */
163
+ @Property(true)
164
+ public allowResizing: boolean;
165
+
166
+ /**
167
+ * The CSS styles and attributes of the content cells of a particular column can be customized.
168
+ *
169
+ * @default null
170
+ */
171
+ /* eslint-disable */
172
+ @Property(null)
173
+ public customAttributes: { [x: string]: Object };
174
+ /* eslint-enable */
175
+
176
+ /**
177
+ * Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
178
+ * `hideAtMedia` accepts only valid Media Queries.
179
+ *
180
+ * @default ''
181
+ */
182
+ @Property('')
183
+ public hideAtMedia: string;
184
+
185
+ /**
186
+ * It is used to change display value with the given format and does not affect the original data.
187
+ * Gets the format from the user which can be standard or custom
188
+ * [`number`](../../common/internationalization/#manipulating-numbers)
189
+ * and [`date`](../../common/internationalization/#manipulating-datetime) formats.
190
+ *
191
+ * @default null
192
+ */
193
+ /* eslint-disable */
194
+ @Property(null)
195
+ public customFormat: { [x: string]: Object };
196
+ /* eslint-enable */
197
+ }
@@ -0,0 +1,44 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ export const fileItems: string[] = ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Download', 'Rename', '|', 'Details'];
4
+ export const folderItems: string[] = ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', 'Download', '|', 'Details'];
5
+ export const layoutItems: string[] = [
6
+ 'SortBy', 'View', 'Refresh', '|', 'Paste', '|', 'NewFolder', 'Upload', '|', 'Details', '|', 'SelectAll'
7
+ ];
8
+
9
+ /**
10
+ * Specifies the ContextMenu settings of the File Manager.
11
+ */
12
+ export class ContextMenuSettings extends ChildProperty<ContextMenuSettings> {
13
+ /**
14
+ * Specifies the array of string or object that is used to configure file items.
15
+ *
16
+ * @default fileItems
17
+ */
18
+ @Property(fileItems)
19
+ public file: string[];
20
+
21
+ /**
22
+ * An array of string or object that is used to configure folder items.
23
+ *
24
+ * @default folderItems
25
+ */
26
+ @Property(folderItems)
27
+ public folder: string[];
28
+
29
+ /**
30
+ * An array of string or object that is used to configure layout items.
31
+ *
32
+ * @default layoutItems
33
+ */
34
+ @Property(layoutItems)
35
+ public layout: string[];
36
+
37
+ /**
38
+ * Enables or disables the ContextMenu.
39
+ *
40
+ * @default true
41
+ */
42
+ @Property(true)
43
+ public visible: boolean;
44
+ }
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Specifies the default locale of FileManager component
3
+ */
4
+
5
+ // eslint-disable-next-line
6
+ export const defaultLocale: Object = {
7
+ 'NewFolder': 'New folder',
8
+ 'Upload': 'Upload',
9
+ 'Delete': 'Delete',
10
+ 'Rename': 'Rename',
11
+ 'Download': 'Download',
12
+ 'Cut': 'Cut',
13
+ 'Copy': 'Copy',
14
+ 'Paste': 'Paste',
15
+ 'SortBy': 'Sort by',
16
+ 'Refresh': 'Refresh',
17
+ 'Item-Selection': 'item selected',
18
+ 'Items-Selection': 'items selected',
19
+ 'View': 'View',
20
+ 'Details': 'Details',
21
+ 'SelectAll': 'Select all',
22
+ 'Open': 'Open',
23
+ 'Tooltip-NewFolder': 'New folder',
24
+ 'Tooltip-Upload': 'Upload',
25
+ 'Tooltip-Delete': 'Delete',
26
+ 'Tooltip-Rename': 'Rename',
27
+ 'Tooltip-Download': 'Download',
28
+ 'Tooltip-Cut': 'Cut',
29
+ 'Tooltip-Copy': 'Copy',
30
+ 'Tooltip-Paste': 'Paste',
31
+ 'Tooltip-SortBy': 'Sort by',
32
+ 'Tooltip-Refresh': 'Refresh',
33
+ 'Tooltip-Selection': 'Clear selection',
34
+ 'Tooltip-View': 'View',
35
+ 'Tooltip-Details': 'Details',
36
+ 'Tooltip-SelectAll': 'Select all',
37
+ 'Name': 'Name',
38
+ 'Size': 'Size',
39
+ 'DateModified': 'Modified',
40
+ 'DateCreated': 'Date created',
41
+ 'Path': 'Path',
42
+ 'Modified': 'Modified',
43
+ 'Created': 'Created',
44
+ 'Location': 'Location',
45
+ 'Type': 'Type',
46
+ 'Permission': 'Permission',
47
+ 'Ascending': 'Ascending',
48
+ 'Descending': 'Descending',
49
+ 'None': 'None',
50
+ 'View-LargeIcons': 'Large icons',
51
+ 'View-Details': 'Details',
52
+ 'Search': 'Search',
53
+ 'Button-Ok': 'OK',
54
+ 'Button-Cancel': 'Cancel',
55
+ 'Button-Yes': 'Yes',
56
+ 'Button-No': 'No',
57
+ 'Button-Create': 'Create',
58
+ 'Button-Save': 'Save',
59
+ 'Header-NewFolder': 'Folder',
60
+ 'Content-NewFolder': 'Enter your folder name',
61
+ 'Header-Rename': 'Rename',
62
+ 'Content-Rename': 'Enter your new name',
63
+ 'Header-Rename-Confirmation': 'Rename Confirmation',
64
+ 'Content-Rename-Confirmation': 'If you change a file name extension, the file might become unstable. ' +
65
+ 'Are you sure you want to change it?',
66
+ 'Header-Delete': 'Delete File',
67
+ 'Content-Delete': 'Are you sure you want to delete this file?',
68
+ 'Header-Folder-Delete': 'Delete Folder',
69
+ 'Content-Folder-Delete': 'Are you sure you want to delete this folder?',
70
+ 'Header-Multiple-Delete': 'Delete Multiple Items',
71
+ 'Content-Multiple-Delete': 'Are you sure you want to delete these {0} items?',
72
+ 'Header-Duplicate': 'File/Folder exists',
73
+ 'Content-Duplicate': '{0} already exists. Do you want to rename and paste?',
74
+ 'Header-Upload': 'Upload Files',
75
+ 'Error': 'Error',
76
+ 'Validation-Empty': 'The file or folder name cannot be empty.',
77
+ 'Validation-Invalid': 'The file or folder name {0} contains invalid characters. Please use a different name. ' +
78
+ // eslint-disable-next-line no-useless-escape
79
+ 'Valid file or folder names cannot end with a dot or space, and cannot contain any of the following characters: \\/:*?\"<>|',
80
+ 'Validation-NewFolder-Exists': 'A file or folder with the name {0} already exists.',
81
+ 'Validation-Rename-Exists': 'Cannot rename {0} to {1}: destination already exists.',
82
+ 'Folder-Empty': 'This folder is empty',
83
+ 'File-Upload': 'Drag files here to upload',
84
+ 'Search-Empty': 'No results found',
85
+ 'Search-Key': 'Try with different keywords',
86
+ 'Filter-Empty': 'No results found',
87
+ 'Filter-Key': 'Try with different filter',
88
+ 'Sub-Folder-Error': 'The destination folder is the subfolder of the source folder.',
89
+ 'Same-Folder-Error': 'The destination folder is the same as the source folder.',
90
+ 'Access-Denied': 'Access Denied',
91
+ 'Access-Details': 'You don"t have permission to access this folder.',
92
+ 'Header-Retry': 'File Already Exists',
93
+ 'Content-Retry': 'A file with this name already exists in this folder. What would you like to do?',
94
+ 'Button-Keep-Both': 'Keep both',
95
+ 'Button-Replace': 'Replace',
96
+ 'Button-Skip': 'Skip',
97
+ 'ApplyAll-Label': 'Do this for all current items',
98
+ 'KB': 'KB',
99
+ 'Access-Message': '{0} is not accessible. You need permission to perform the {1} action.',
100
+ 'Network-Error': 'NetworkError: Failed to send on XMLHTTPRequest: Failed to load',
101
+ 'Server-Error': 'ServerError: Invalid response from'
102
+ };
@@ -0,0 +1,48 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { ColumnModel } from './index';
3
+ /**
4
+ * Specifies the columns in the details view of the file manager.
5
+ */
6
+ export const columnArray: ColumnModel[] = [
7
+ {
8
+ field: 'name', headerText: 'Name', minWidth: 120,
9
+ template: '<span class="e-fe-text">${name}</span>', customAttributes: { class: 'e-fe-grid-name'}
10
+ },
11
+ {
12
+ field: '_fm_modified', headerText: 'DateModified', type: 'dateTime',
13
+ format: 'MMMM dd, yyyy HH:mm', minWidth: 120, width: '190'
14
+ },
15
+ {
16
+ field: 'size', headerText: 'Size', minWidth: 90, width: '110', template: '<span class="e-fe-size">${size}</span>'
17
+ }
18
+ ];
19
+ /**
20
+ * Specifies the grid settings of the File Manager.
21
+ */
22
+ export class DetailsViewSettings extends ChildProperty<DetailsViewSettings> {
23
+
24
+ /**
25
+ * If `columnResizing` is set to true, Grid columns can be resized.
26
+ *
27
+ * @default true
28
+ */
29
+ @Property(true)
30
+ public columnResizing: boolean;
31
+
32
+ /**
33
+ * Specifies the customizable details view.
34
+ *
35
+ * @default {
36
+ * columns: [{
37
+ * field: 'name', headerText: 'Name', minWidth: 120, customAttributes: { class: 'e-fe-grid-name' },
38
+ * template: '\<span class="e-fe-text">${name}\</span>'},{field: 'size', headerText: 'Size',
39
+ * minWidth: 50, width: '110', template: '\<span class="e-fe-size">${size}\</span>'},
40
+ * { field: '_fm_modified', headerText: 'DateModified',
41
+ * minWidth: 50, width: '190'}
42
+ * ]
43
+ * }
44
+ */
45
+ @Property(columnArray)
46
+ public columns: ColumnModel[];
47
+
48
+ }
@@ -0,0 +1,42 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Specifies the navigationpane settings of the File Manager.
5
+ */
6
+ export class NavigationPaneSettings extends ChildProperty<NavigationPaneSettings> {
7
+ /**
8
+ * Specifies the maximum width of navigationpane.
9
+ *
10
+ * @default '650px'
11
+ */
12
+ @Property('650px')
13
+ public maxWidth: string | number;
14
+
15
+ /**
16
+ * Specifies the minimum width of navigationpane.
17
+ *
18
+ * @default '240px'
19
+ */
20
+ @Property('240px')
21
+ public minWidth: string | number;
22
+
23
+ /**
24
+ * Enables or disables the navigation pane.
25
+ *
26
+ * @default true
27
+ */
28
+ @Property(true)
29
+ public visible: boolean;
30
+
31
+ /**
32
+ * Specifies a value that indicates how to sort the folders in the navigation pane of the file manager component.
33
+ *
34
+ * If the sortOrder is Ascending, the folders are sorted in ascending order.
35
+ * If the sortOrder is Descending, the folders are sorted in descending order.
36
+ * If the sortOrder is None, the folders are not sorted.
37
+ *
38
+ * @default 'None'
39
+ */
40
+ @Property('None')
41
+ public sortOrder: 'None' | 'Ascending' | 'Descending';
42
+ }
@@ -0,0 +1,48 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * Specifies the filter type for Search settings of the File Manager.
4
+ */
5
+ export type FilterType = 'contains' | 'startsWith' | 'endsWith';
6
+
7
+ /**
8
+ * Specifies the Search settings of the File Manager.
9
+ */
10
+ export class SearchSettings extends ChildProperty<SearchSettings> {
11
+ /**
12
+ * Enables or disables the allowSearchOnTyping.
13
+ *
14
+ * @default true
15
+ */
16
+ @Property(true)
17
+ public allowSearchOnTyping: boolean;
18
+
19
+ /**
20
+ * Specifies the filter type while searching the content. The available filter types are:
21
+ * * `contains`
22
+ * * `startsWith`
23
+ * * `endsWith`
24
+ *
25
+ * @default 'contains'
26
+ */
27
+ @Property('contains')
28
+ public filterType: FilterType;
29
+
30
+ /**
31
+ * If ignoreCase is set to false, searches files that match exactly,
32
+ * else searches files that are case insensitive(uppercase and lowercase letters treated the same).
33
+ *
34
+ * @default true
35
+ */
36
+ @Property(true)
37
+ public ignoreCase: boolean;
38
+
39
+ /**
40
+ * Specifies the placeholder value to the search input of the File Manager component.
41
+ * It accepts string.
42
+ *
43
+ * @default null
44
+ */
45
+ @Property(null)
46
+ public placeholder: string;
47
+ }
48
+
@@ -0,0 +1,25 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ export const toolbarItems: string[] = ['NewFolder', 'Upload', 'Cut', 'Copy', 'Paste', 'Delete', 'Download', 'Rename',
4
+ 'SortBy', 'Refresh', 'Selection', 'View', 'Details'];
5
+
6
+ /**
7
+ * Specifies the Toolbar settings of the FileManager.
8
+ */
9
+ export class ToolbarSettings extends ChildProperty<ToolbarSettings> {
10
+ /**
11
+ * An array of string or object that is used to configure the toolbar items.
12
+ *
13
+ * @default toolbarItems
14
+ */
15
+ @Property(toolbarItems)
16
+ public items: string[];
17
+
18
+ /**
19
+ * Enables or disables the toolbar rendering in the file manager component.
20
+ *
21
+ * @default true
22
+ */
23
+ @Property(true)
24
+ public visible: boolean;
25
+ }
@@ -0,0 +1,51 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Specifies the Ajax settings of the File Manager.
5
+ */
6
+ export class UploadSettings extends ChildProperty<UploadSettings> {
7
+ /**
8
+ * Specifies the extensions of the file types allowed in the file manager component and pass the extensions with comma separators.
9
+ * For example, if you want to upload specific image files, pass allowedExtensions as ".jpg,.png".
10
+ *
11
+ * @defaults ''
12
+ */
13
+ @Property('')
14
+ public 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
+ @Property(true)
24
+ public autoUpload: boolean;
25
+
26
+ /**
27
+ * Defines whether to close the upload dialog after uploading all the files.
28
+ *
29
+ * @default false
30
+ */
31
+ @Property(false)
32
+ public autoClose: boolean;
33
+
34
+ /**
35
+ * Specifies the minimum file size to be uploaded in bytes.
36
+ * The property is used to make sure that you cannot upload empty files and small files.
37
+ *
38
+ * @default 0
39
+ */
40
+ @Property(0)
41
+ public minFileSize: number;
42
+
43
+ /**
44
+ * Specifies the maximum allowed file size to be uploaded in bytes.
45
+ * The property is used to make sure that you cannot upload too large files.
46
+ *
47
+ * @default 30000000
48
+ */
49
+ @Property(30000000)
50
+ public maxFileSize: number;
51
+ }