@syncfusion/ej2-gantt 19.4.56 → 20.1.47-1460716

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 (211) hide show
  1. package/CHANGELOG.md +1072 -1060
  2. package/README.md +75 -75
  3. package/dist/ej2-gantt.umd.min.js +1 -10
  4. package/dist/ej2-gantt.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-gantt.es2015.js +274 -176
  6. package/dist/es6/ej2-gantt.es2015.js.map +1 -1
  7. package/dist/es6/ej2-gantt.es5.js +642 -534
  8. package/dist/es6/ej2-gantt.es5.js.map +1 -1
  9. package/dist/global/ej2-gantt.min.js +1 -10
  10. package/dist/global/ej2-gantt.min.js.map +1 -1
  11. package/dist/global/index.d.ts +0 -9
  12. package/dist/ts/components.ts +4 -0
  13. package/dist/ts/gantt/actions/actions.ts +18 -0
  14. package/dist/ts/gantt/actions/cell-edit.ts +606 -0
  15. package/dist/ts/gantt/actions/chart-scroll.ts +167 -0
  16. package/dist/ts/gantt/actions/column-menu.ts +35 -0
  17. package/dist/ts/gantt/actions/column-reorder.ts +52 -0
  18. package/dist/ts/gantt/actions/column-resize.ts +52 -0
  19. package/dist/ts/gantt/actions/connector-line-edit.ts +829 -0
  20. package/dist/ts/gantt/actions/context-menu.ts +754 -0
  21. package/dist/ts/gantt/actions/day-markers.ts +80 -0
  22. package/dist/ts/gantt/actions/dependency.ts +692 -0
  23. package/dist/ts/gantt/actions/dialog-edit.ts +2208 -0
  24. package/dist/ts/gantt/actions/edit.ts +3499 -0
  25. package/dist/ts/gantt/actions/excel-export.ts +61 -0
  26. package/dist/ts/gantt/actions/filter.ts +302 -0
  27. package/dist/ts/gantt/actions/keyboard.ts +306 -0
  28. package/dist/ts/gantt/actions/pdf-export.ts +214 -0
  29. package/dist/ts/gantt/actions/rowdragdrop.ts +839 -0
  30. package/dist/ts/gantt/actions/selection.ts +536 -0
  31. package/dist/ts/gantt/actions/sort.ts +98 -0
  32. package/dist/ts/gantt/actions/taskbar-edit.ts +1940 -0
  33. package/dist/ts/gantt/actions/toolbar.ts +489 -0
  34. package/dist/ts/gantt/actions/virtual-scroll.ts +60 -0
  35. package/dist/ts/gantt/base/common.ts +9 -0
  36. package/dist/ts/gantt/base/constant.ts +13 -0
  37. package/dist/ts/gantt/base/css-constants.ts +148 -0
  38. package/dist/ts/gantt/base/date-processor.ts +1257 -0
  39. package/dist/ts/gantt/base/enum.ts +372 -0
  40. package/dist/ts/gantt/base/gantt-chart.ts +1248 -0
  41. package/dist/ts/gantt/base/gantt.ts +4069 -0
  42. package/dist/ts/gantt/base/interface.ts +955 -0
  43. package/dist/ts/gantt/base/splitter.ts +174 -0
  44. package/dist/ts/gantt/base/task-processor.ts +2217 -0
  45. package/dist/ts/gantt/base/tree-grid.ts +694 -0
  46. package/dist/ts/gantt/base/utils.ts +208 -0
  47. package/dist/ts/gantt/export/export-helper.ts +552 -0
  48. package/dist/ts/gantt/export/pdf-base/dictionary.ts +152 -0
  49. package/dist/ts/gantt/export/pdf-base/pdf-borders.ts +277 -0
  50. package/dist/ts/gantt/export/pdf-base/pdf-grid-table.ts +901 -0
  51. package/dist/ts/gantt/export/pdf-base/pdf-style/gantt-theme.ts +131 -0
  52. package/dist/ts/gantt/export/pdf-base/pdf-style/style.ts +91 -0
  53. package/dist/ts/gantt/export/pdf-base/treegrid-layouter.ts +414 -0
  54. package/dist/ts/gantt/export/pdf-connector-line.ts +422 -0
  55. package/dist/ts/gantt/export/pdf-gantt.ts +282 -0
  56. package/dist/ts/gantt/export/pdf-taskbar.ts +395 -0
  57. package/dist/ts/gantt/export/pdf-timeline.ts +202 -0
  58. package/dist/ts/gantt/export/pdf-treegrid.ts +406 -0
  59. package/dist/ts/gantt/models/add-dialog-field-settings.ts +33 -0
  60. package/dist/ts/gantt/models/column.ts +464 -0
  61. package/dist/ts/gantt/models/day-working-time.ts +22 -0
  62. package/dist/ts/gantt/models/edit-dialog-field-settings.ts +33 -0
  63. package/dist/ts/gantt/models/edit-settings.ts +79 -0
  64. package/dist/ts/gantt/models/event-marker.ts +27 -0
  65. package/dist/ts/gantt/models/filter-settings.ts +53 -0
  66. package/dist/ts/gantt/models/holiday.ts +34 -0
  67. package/dist/ts/gantt/models/label-settings.ts +30 -0
  68. package/dist/ts/gantt/models/models.ts +36 -0
  69. package/dist/ts/gantt/models/resource-fields.ts +38 -0
  70. package/dist/ts/gantt/models/search-settings.ts +77 -0
  71. package/dist/ts/gantt/models/selection-settings.ts +56 -0
  72. package/dist/ts/gantt/models/sort-settings.ts +50 -0
  73. package/dist/ts/gantt/models/splitter-settings.ts +47 -0
  74. package/dist/ts/gantt/models/task-fields.ts +171 -0
  75. package/dist/ts/gantt/models/timeline-settings.ts +112 -0
  76. package/dist/ts/gantt/models/tooltip-settings.ts +46 -0
  77. package/dist/ts/gantt/renderer/chart-rows.ts +1838 -0
  78. package/dist/ts/gantt/renderer/connector-line.ts +1025 -0
  79. package/dist/ts/gantt/renderer/edit-tooltip.ts +228 -0
  80. package/dist/ts/gantt/renderer/event-marker.ts +96 -0
  81. package/dist/ts/gantt/renderer/nonworking-day.ts +205 -0
  82. package/dist/ts/gantt/renderer/render.ts +5 -0
  83. package/dist/ts/gantt/renderer/timeline.ts +1397 -0
  84. package/dist/ts/gantt/renderer/tooltip.ts +450 -0
  85. package/dist/ts/gantt/renderer/virtual-content-render.ts +50 -0
  86. package/license +9 -9
  87. package/package.json +80 -80
  88. package/src/gantt/actions/cell-edit.js +2 -1
  89. package/src/gantt/actions/dialog-edit.js +2 -1
  90. package/src/gantt/actions/edit.js +11 -2
  91. package/src/gantt/actions/rowdragdrop.js +37 -15
  92. package/src/gantt/actions/taskbar-edit.js +24 -24
  93. package/src/gantt/base/date-processor.js +0 -1
  94. package/src/gantt/base/gantt-chart.js +9 -4
  95. package/src/gantt/base/gantt-model.d.ts +779 -779
  96. package/src/gantt/base/gantt.d.ts +27 -27
  97. package/src/gantt/base/gantt.js +22 -22
  98. package/src/gantt/base/splitter.js +1 -0
  99. package/src/gantt/base/task-processor.js +13 -13
  100. package/src/gantt/base/tree-grid.js +3 -1
  101. package/src/gantt/export/pdf-base/treegrid-layouter.js +13 -13
  102. package/src/gantt/export/pdf-connector-line.js +11 -11
  103. package/src/gantt/export/pdf-gantt.js +24 -24
  104. package/src/gantt/export/pdf-taskbar.js +11 -11
  105. package/src/gantt/export/pdf-treegrid.js +13 -13
  106. package/src/gantt/models/add-dialog-field-settings-model.d.ts +21 -21
  107. package/src/gantt/models/add-dialog-field-settings.js +19 -19
  108. package/src/gantt/models/day-working-time-model.d.ts +11 -11
  109. package/src/gantt/models/day-working-time.js +19 -19
  110. package/src/gantt/models/edit-dialog-field-settings-model.d.ts +21 -21
  111. package/src/gantt/models/edit-dialog-field-settings.js +19 -19
  112. package/src/gantt/models/edit-settings-model.d.ts +50 -50
  113. package/src/gantt/models/edit-settings.js +19 -19
  114. package/src/gantt/models/event-marker-model.d.ts +16 -16
  115. package/src/gantt/models/event-marker.js +19 -19
  116. package/src/gantt/models/filter-settings-model.d.ts +34 -34
  117. package/src/gantt/models/filter-settings.js +19 -19
  118. package/src/gantt/models/holiday-model.d.ts +21 -21
  119. package/src/gantt/models/holiday.js +19 -19
  120. package/src/gantt/models/label-settings-model.d.ts +16 -16
  121. package/src/gantt/models/label-settings.js +19 -19
  122. package/src/gantt/models/resource-fields-model.d.ts +21 -21
  123. package/src/gantt/models/resource-fields.js +19 -19
  124. package/src/gantt/models/search-settings-model.d.ts +56 -56
  125. package/src/gantt/models/search-settings.js +19 -19
  126. package/src/gantt/models/selection-settings-model.d.ts +35 -35
  127. package/src/gantt/models/selection-settings.js +19 -19
  128. package/src/gantt/models/sort-settings-model.d.ts +24 -24
  129. package/src/gantt/models/sort-settings.js +19 -19
  130. package/src/gantt/models/splitter-settings-model.d.ts +30 -30
  131. package/src/gantt/models/splitter-settings.js +19 -19
  132. package/src/gantt/models/task-fields-model.d.ts +110 -110
  133. package/src/gantt/models/task-fields.js +19 -19
  134. package/src/gantt/models/timeline-settings-model.d.ts +71 -71
  135. package/src/gantt/models/timeline-settings.js +19 -19
  136. package/src/gantt/models/tooltip-settings-model.d.ts +26 -26
  137. package/src/gantt/models/tooltip-settings.js +19 -19
  138. package/src/gantt/renderer/chart-rows.js +49 -37
  139. package/src/gantt/renderer/connector-line.js +22 -18
  140. package/src/gantt/renderer/event-marker.js +1 -0
  141. package/src/gantt/renderer/nonworking-day.js +13 -6
  142. package/src/gantt/renderer/timeline.d.ts +1 -0
  143. package/src/gantt/renderer/timeline.js +48 -12
  144. package/src/gantt/renderer/tooltip.js +11 -3
  145. package/styles/bootstrap-dark.css +442 -427
  146. package/styles/bootstrap.css +442 -433
  147. package/styles/bootstrap4.css +454 -479
  148. package/styles/bootstrap5-dark.css +457 -433
  149. package/styles/bootstrap5.css +457 -433
  150. package/styles/fabric-dark.css +438 -421
  151. package/styles/fabric.css +445 -428
  152. package/styles/fluent-dark.css +1938 -0
  153. package/styles/fluent-dark.scss +1 -0
  154. package/styles/fluent.css +1938 -0
  155. package/styles/fluent.scss +1 -0
  156. package/styles/gantt/_all.scss +2 -2
  157. package/styles/gantt/_bootstrap-dark-definition.scss +210 -156
  158. package/styles/gantt/_bootstrap-definition.scss +211 -157
  159. package/styles/gantt/_bootstrap4-definition.scss +213 -158
  160. package/styles/gantt/_bootstrap5-definition.scss +215 -162
  161. package/styles/gantt/_fabric-dark-definition.scss +211 -157
  162. package/styles/gantt/_fabric-definition.scss +211 -157
  163. package/styles/gantt/_fluent-dark-definition.scss +1 -0
  164. package/styles/gantt/_fluent-definition.scss +215 -162
  165. package/styles/gantt/_fusionnew-definition.scss +214 -0
  166. package/styles/gantt/_highcontrast-definition.scss +211 -157
  167. package/styles/gantt/_highcontrast-light-definition.scss +211 -157
  168. package/styles/gantt/_layout.scss +1446 -1027
  169. package/styles/gantt/_material-dark-definition.scss +212 -157
  170. package/styles/gantt/_material-definition.scss +212 -157
  171. package/styles/gantt/_material3-definition.scss +215 -0
  172. package/styles/gantt/_tailwind-definition.scss +215 -161
  173. package/styles/gantt/_theme.scss +702 -668
  174. package/styles/gantt/bootstrap-dark.css +442 -427
  175. package/styles/gantt/bootstrap.css +442 -433
  176. package/styles/gantt/bootstrap4.css +454 -479
  177. package/styles/gantt/bootstrap5-dark.css +457 -433
  178. package/styles/gantt/bootstrap5.css +457 -433
  179. package/styles/gantt/fabric-dark.css +438 -421
  180. package/styles/gantt/fabric.css +445 -428
  181. package/styles/gantt/fluent-dark.css +1938 -0
  182. package/styles/gantt/fluent-dark.scss +22 -0
  183. package/styles/gantt/fluent.css +1938 -0
  184. package/styles/gantt/fluent.scss +22 -0
  185. package/styles/gantt/highcontrast-light.css +405 -405
  186. package/styles/gantt/highcontrast.css +444 -456
  187. package/styles/gantt/icons/_bootstrap-dark.scss +124 -113
  188. package/styles/gantt/icons/_bootstrap.scss +124 -113
  189. package/styles/gantt/icons/_bootstrap4.scss +124 -113
  190. package/styles/gantt/icons/_bootstrap5.scss +124 -112
  191. package/styles/gantt/icons/_fabric-dark.scss +124 -112
  192. package/styles/gantt/icons/_fabric.scss +124 -112
  193. package/styles/gantt/icons/_fluent-dark.scss +1 -0
  194. package/styles/gantt/icons/_fluent.scss +124 -112
  195. package/styles/gantt/icons/_fusionnew.scss +120 -0
  196. package/styles/gantt/icons/_highcontrast.scss +124 -112
  197. package/styles/gantt/icons/_material-dark.scss +124 -112
  198. package/styles/gantt/icons/_material.scss +124 -112
  199. package/styles/gantt/icons/_material3.scss +124 -0
  200. package/styles/gantt/icons/_tailwind-dark.scss +124 -113
  201. package/styles/gantt/icons/_tailwind.scss +124 -113
  202. package/styles/gantt/material-dark.css +446 -417
  203. package/styles/gantt/material.css +445 -419
  204. package/styles/gantt/tailwind-dark.css +452 -482
  205. package/styles/gantt/tailwind.css +449 -479
  206. package/styles/highcontrast-light.css +405 -405
  207. package/styles/highcontrast.css +444 -456
  208. package/styles/material-dark.css +446 -417
  209. package/styles/material.css +445 -419
  210. package/styles/tailwind-dark.css +452 -482
  211. package/styles/tailwind.css +449 -479
@@ -0,0 +1,464 @@
1
+ import { NumberFormatOptions, DateFormatOptions, merge } from '@syncfusion/ej2-base';
2
+ import { TextAlign, ClipMode, ValueAccessor, IEditCell, IFilter } from '@syncfusion/ej2-grids';
3
+ import { IGanttCellFormatter } from '../base/interface';
4
+ import { SortComparer} from '@syncfusion/ej2-grids';
5
+ /**
6
+ * Configures column collection in Gantt.
7
+ */
8
+ export class Column {
9
+ /**
10
+ * If `allowEditing` set to false, then it disables editing of a particular column.
11
+ * By default all columns are editable.
12
+ *
13
+ * @default true
14
+ */
15
+ public allowEditing: boolean = true;
16
+
17
+ /**
18
+ * If `allowReordering` set to false, then it disables reorder of a particular column.
19
+ * By default all columns can be reorder.
20
+ *
21
+ * @default true
22
+ */
23
+ public allowReordering: boolean = true;
24
+
25
+ /**
26
+ * If `allowResizing` is set to false, it disables resize option of a particular column.
27
+ * By default all the columns can be resized.
28
+ *
29
+ * @default true
30
+ */
31
+ public allowResizing: boolean = true;
32
+
33
+ /**
34
+ * If `allowSorting` set to false, then it disables sorting option of a particular column.
35
+ * By default all columns are sortable.
36
+ *
37
+ * @default true
38
+ */
39
+ public allowSorting: boolean = true;
40
+
41
+ /**
42
+ * If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
43
+ * By default all columns are filterable.
44
+ *
45
+ * @default true
46
+ */
47
+ public allowFiltering: boolean = true;
48
+
49
+ /**
50
+ * It is used to customize the default filter options for a specific columns.
51
+ * * ui - to render custom component for specific column it has following functions.
52
+ * * ui.create – It is used for creating custom components.
53
+ * * ui.read - It is used for read the value from the component.
54
+ * * ui.write - It is used to apply component model as dynamically.
55
+ *
56
+ * @default null
57
+ */
58
+ public filter: IFilter;
59
+
60
+ /**
61
+ * Defines the cell content's overflow mode. The available modes are
62
+ * * `Clip` - Truncates the cell content when it overflows its area.
63
+ * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
64
+ * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
65
+ * also it will display tooltip while hover on ellipsis applied cell.
66
+ *
67
+ * @default Syncfusion.EJ2.Grids.ClipMode.EllipsisWithTooltip
68
+ * @isEnumeration true
69
+ * @aspType Syncfusion.EJ2.Grids.ClipMode
70
+ */
71
+ public clipMode: ClipMode;
72
+
73
+ /**
74
+ * The CSS styles and attributes of the content cells of a particular column can be customized.
75
+ *
76
+ * @default null
77
+ */
78
+ public customAttributes: { [x: string]: Object };
79
+
80
+ /**
81
+ * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
82
+ *
83
+ * @default false
84
+ */
85
+ public disableHtmlEncode: boolean;
86
+
87
+ /**
88
+ * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
89
+ *
90
+ * @default false
91
+ */
92
+ public displayAsCheckBox: boolean;
93
+
94
+ /**
95
+ * Defines the type of component for editing.
96
+ *
97
+ * @default 'stringedit'
98
+ */
99
+ public editType: string;
100
+
101
+ /**
102
+ * Defines the custom sort comparer function.
103
+ */
104
+ public sortComparer: SortComparer | string;
105
+
106
+ /**
107
+ * Defines the field name of column which is mapped with mapping name of DataSource.
108
+ * The `field` name must be a valid JavaScript identifier,
109
+ * the first character must be an alphabet and should not contain spaces and special characters.
110
+ */
111
+ public field: string;
112
+
113
+ /**
114
+ * It is used to change display value with the given format and does not affect the original data.
115
+ * Gets the format from the user which can be standard or custom
116
+ * [`number`](../../../common/internationalization/#number-formatting)
117
+ * and [`date`](../../../common/internationalization/#formatting) formats.
118
+ *
119
+ * @default null
120
+ * @aspType string
121
+ */
122
+ public format: string | NumberFormatOptions | DateFormatOptions;
123
+
124
+ /**
125
+ * Defines the method which is used to achieve custom formatting from an external function.
126
+ * This function triggers before rendering of each cell.
127
+ *
128
+ * @default null
129
+ */
130
+ public formatter: { new(): IGanttCellFormatter } | Function | IGanttCellFormatter;
131
+
132
+ /**
133
+ * Defines the header template as string or HTML element ID which is used to add customized element in the column header.
134
+ *
135
+ * @default null
136
+ */
137
+ public headerTemplate: string;
138
+
139
+ /**
140
+ * Defines the header text of column which is used to display in column header.
141
+ * If `headerText` is not defined, then field name value will be assigned to header text.
142
+ *
143
+ * @default null
144
+ */
145
+ public headerText: string;
146
+
147
+ /**
148
+ * Define the alignment of column header which is used to align the text of column header.
149
+ *
150
+ * @default Syncfusion.EJ2.Grids.TextAlign.Left
151
+ * @isEnumeration true
152
+ * @aspType Syncfusion.EJ2.Grids.TextAlign
153
+ */
154
+ public headerTextAlign: TextAlign;
155
+
156
+ /**
157
+ * Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
158
+ * `hideAtMedia` accepts only valid Media Queries.
159
+ *
160
+ * @default null
161
+ */
162
+ public hideAtMedia: string;
163
+
164
+ /**
165
+ * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
166
+ *
167
+ * @default null
168
+ */
169
+ public maxWidth: string | number;
170
+
171
+ /**
172
+ * Defines the minimum width of the column in pixels or percentage.
173
+ *
174
+ * @default null
175
+ */
176
+ public minWidth: string | number;
177
+
178
+ /**
179
+ * Defines the column template that renders customized element in each cell of the column.
180
+ * It accepts either template string or HTML element ID.
181
+ *
182
+ * @default null
183
+ */
184
+ public template: string;
185
+
186
+ /**
187
+ * Defines the alignment of the column in both header and content cells.
188
+ *
189
+ * @default Syncfusion.EJ2.Grids.TextAlign.Left
190
+ * @isEnumeration true
191
+ * @aspType Syncfusion.EJ2.Grids.TextAlign
192
+ */
193
+ public textAlign: TextAlign;
194
+
195
+ /**
196
+ * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
197
+ *
198
+ * @default null
199
+ */
200
+ public valueAccessor: ValueAccessor | string;
201
+
202
+ /**
203
+ * If `visible` is set to false, hides the particular column. By default, columns are displayed.
204
+ *
205
+ * @default true
206
+ */
207
+ public visible: boolean;
208
+
209
+ /**
210
+ * Defines the width of the column in pixels or percentage.
211
+ *
212
+ * @default null
213
+ */
214
+ public width: string | number;
215
+ /**
216
+ * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
217
+ *
218
+ * @default false
219
+ */
220
+ public isPrimaryKey: boolean;
221
+ /**
222
+ * Defines the `IEditCell` object to customize default edit cell.
223
+ *
224
+ * @default {}
225
+ */
226
+ public edit: IEditCell = {};
227
+
228
+ constructor(options: ColumnModel) {
229
+ merge(this, options);
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Interface for a class GanttColumn
235
+ */
236
+ export interface ColumnModel {
237
+ /**
238
+ * If `allowEditing` set to false, then it disables editing of a particular column.
239
+ * By default all columns are editable.
240
+ *
241
+ * @default true
242
+ */
243
+ allowEditing?: boolean;
244
+
245
+ /**
246
+ * If `allowReordering` set to false, then it disables reorder of a particular column.
247
+ * By default all columns can be reorder.
248
+ *
249
+ * @default true
250
+ */
251
+ allowReordering?: boolean;
252
+
253
+ /**
254
+ * If `allowResizing` is set to false, it disables resize option of a particular column.
255
+ * By default all the columns can be resized.
256
+ *
257
+ * @default true
258
+ */
259
+ allowResizing?: boolean;
260
+
261
+ /**
262
+ * If `allowSorting` set to false, then it disables sorting option of a particular column.
263
+ * By default all columns are sortable.
264
+ *
265
+ * @default true
266
+ */
267
+ allowSorting?: boolean;
268
+
269
+ /**
270
+ * If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
271
+ * By default all columns are filterable.
272
+ *
273
+ * @default true
274
+ */
275
+ allowFiltering?: boolean;
276
+
277
+ /**
278
+ * It is used to customize the default filter options for a specific columns.
279
+ * * ui - to render custom component for specific column it has following functions.
280
+ * * ui.create – It is used for creating custom components.
281
+ * * ui.read - It is used for read the value from the component.
282
+ * * ui.write - It is used to apply component model as dynamically.
283
+ *
284
+ * @default null
285
+ */
286
+ filter?: IFilter;
287
+
288
+ /**
289
+ * Defines the cell content's overflow mode. The available modes are
290
+ * * `Clip` - Truncates the cell content when it overflows its area.
291
+ * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
292
+ * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
293
+ * also it will display tooltip while hover on ellipsis applied cell.
294
+ *
295
+ * @default Syncfusion.EJ2.Grids.ClipMode.EllipsisWithTooltip
296
+ * @isEnumeration true
297
+ * @aspType Syncfusion.EJ2.Grids.ClipMode
298
+ */
299
+ clipMode?: ClipMode;
300
+
301
+ /**
302
+ * The CSS styles and attributes of the content cells of a particular column can be customized.
303
+ *
304
+ * @default null
305
+ */
306
+ customAttributes?: { [x: string]: Object };
307
+
308
+ /**
309
+ * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
310
+ *
311
+ * @default false
312
+ */
313
+ disableHtmlEncode?: boolean;
314
+
315
+ /**
316
+ * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
317
+ *
318
+ * @default false
319
+ */
320
+ displayAsCheckBox?: boolean;
321
+
322
+ /**
323
+ * Defines the field name of column which is mapped with mapping name of DataSource.
324
+ * The `field` name must be a valid JavaScript identifier,
325
+ * the first character must be an alphabet and should not contain spaces and special characters.
326
+ *
327
+ * @default null
328
+ */
329
+ field?: string;
330
+
331
+ /**
332
+ * Defines the type of component for editing.
333
+ *
334
+ * @default 'stringedit'
335
+ */
336
+ editType?: string;
337
+
338
+ /**
339
+ * It is used to change display value with the given format and does not affect the original data.
340
+ * Gets the format from the user which can be standard or custom
341
+ * [`number`](../../../common/internationalization/#number-formatting)
342
+ * and [`date`](../../../common/internationalization/#formatting) formats.
343
+ *
344
+ * @default null
345
+ * @aspType string
346
+ */
347
+ format?: string | NumberFormatOptions | DateFormatOptions;
348
+
349
+ /**
350
+ * Defines the method which is used to achieve custom formatting from an external function.
351
+ * This function triggers before rendering of each cell.
352
+ *
353
+ * @default null
354
+ */
355
+ formatter?: { new(): IGanttCellFormatter } | Function | IGanttCellFormatter;
356
+
357
+ /**
358
+ * Defines the header template as string or HTML element ID which is used to add customized element in the column header.
359
+ *
360
+ * @default null
361
+ */
362
+ headerTemplate?: string;
363
+
364
+ /**
365
+ * Defines the header text of column which is used to display in column header.
366
+ * If `headerText` is not defined, then field name value will be assigned to header text.
367
+ *
368
+ * @default null
369
+ */
370
+ headerText?: string;
371
+
372
+ /**
373
+ * Define the alignment of column header which is used to align the text of column header.
374
+ *
375
+ * @default Syncfusion.EJ2.Grids.TextAlign.Left
376
+ * @isEnumeration true
377
+ * @aspType Syncfusion.EJ2.Grids.TextAlign
378
+ */
379
+ headerTextAlign?: TextAlign;
380
+
381
+ /**
382
+ * Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
383
+ * `hideAtMedia` accepts only valid Media Queries.
384
+ *
385
+ * @default null
386
+ */
387
+ hideAtMedia?: string;
388
+
389
+ /**
390
+ * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
391
+ *
392
+ * @default null
393
+ */
394
+ maxWidth?: string | number;
395
+
396
+ /**
397
+ * Defines the minimum width of the column in pixels or percentage.
398
+ *
399
+ * @default null
400
+ */
401
+ minWidth?: string | number;
402
+
403
+ /**
404
+ * Defines the column template that renders customized element in each cell of the column.
405
+ * It accepts either template string or HTML element ID.
406
+ *
407
+ * @default null
408
+ */
409
+ template?: string;
410
+
411
+ /**
412
+ * Defines the alignment of the column in both header and content cells.
413
+ *
414
+ * @default Syncfusion.EJ2.Grids.TextAlign.Left
415
+ * @isEnumeration true
416
+ * @aspType Syncfusion.EJ2.Grids.TextAlign
417
+ */
418
+ textAlign?: TextAlign;
419
+
420
+ /**
421
+ * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
422
+ *
423
+ * @default null
424
+ */
425
+ valueAccessor?: ValueAccessor | string;
426
+
427
+ /**
428
+ * If `visible` is set to false, hides the particular column. By default, columns are displayed.
429
+ *
430
+ * @default true
431
+ */
432
+ visible?: boolean;
433
+
434
+ /**
435
+ * Defines the width of the column in pixels or percentage.
436
+ *
437
+ * @default null
438
+ */
439
+ width?: string | number;
440
+ /**
441
+ * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
442
+ *
443
+ * @default false
444
+ */
445
+ isPrimaryKey?: boolean;
446
+ /**
447
+ * Defines the `IEditCell` object to customize default edit cell.
448
+ *
449
+ * @default {}
450
+ */
451
+ edit?: IEditCell;
452
+ /**
453
+ * To define column type.
454
+ *
455
+ * @private
456
+ */
457
+ type?: string;
458
+ /**
459
+ * Defines the sort comparer property.
460
+ *
461
+ * @default null
462
+ */
463
+ sortComparer?: SortComparer | string;
464
+ }
@@ -0,0 +1,22 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Defines working time of day in project.
5
+ */
6
+
7
+ export class DayWorkingTime extends ChildProperty<DayWorkingTime> {
8
+ /**
9
+ * Defines start time of working time range.
10
+ *
11
+ * @default null
12
+ */
13
+ @Property(null)
14
+ public from: number;
15
+ /**
16
+ * Defines end time of working time range.
17
+ *
18
+ * @default null
19
+ */
20
+ @Property(null)
21
+ public to: number;
22
+ }
@@ -0,0 +1,33 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { DialogFieldType } from '../base/enum';
3
+ /**
4
+ * Defines dialog fields of edit dialog.
5
+ */
6
+ export class EditDialogFieldSettings extends ChildProperty<EditDialogFieldSettings> {
7
+ /**
8
+ * Defines types of tab which contains editor for columns.
9
+ * * `General` - Defines tab container type as general.
10
+ * * `Dependency` - Defines tab as dependency editor.
11
+ * * `Resources` - Defines tab as resources editor.
12
+ * * `Notes` - Defines tab as notes editor.
13
+ * * `Custom` - Defines tab as custom column editor.
14
+ *
15
+ * @default null
16
+ */
17
+ @Property(null)
18
+ public type: DialogFieldType;
19
+ /**
20
+ * Defines header text of tab item.
21
+ *
22
+ * @default null
23
+ */
24
+ @Property(null)
25
+ public headerText: string;
26
+ /**
27
+ * Defines edited column fields placed inside the tab.
28
+ *
29
+ * @default null
30
+ */
31
+ @Property([])
32
+ public fields: string[];
33
+ }
@@ -0,0 +1,79 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { EditMode, RowPosition } from '../base/enum';
3
+
4
+ /**
5
+ * Configures edit settings of Gantt.
6
+ */
7
+ export class EditSettings extends ChildProperty<EditSettings> {
8
+ /**
9
+ * If `allowEditing` is set to true, values can be updated in the existing record.
10
+ *
11
+ * @default false
12
+ */
13
+ @Property(false)
14
+ public allowEditing: boolean;
15
+
16
+ /**
17
+ * If `allowAdding` is set to true, new records can be added to the Gantt.
18
+ *
19
+ * @default false
20
+ */
21
+ @Property(false)
22
+ public allowAdding: boolean;
23
+
24
+ /**
25
+ * If `allowDeleting` is set to true, existing record can be deleted from the Gantt.
26
+ *
27
+ * @default false
28
+ */
29
+ @Property(false)
30
+ public allowDeleting: boolean;
31
+
32
+ /**
33
+ * Defines edit mode in Gantt.
34
+ * * `Auto` - Defines cell edit mode in grid side and dialog mode in chart side.
35
+ * * `Dialog` - Defines dialog edit mode on both sides.
36
+ *
37
+ * @default Auto
38
+ * @isEnumeration true
39
+ */
40
+ @Property('Auto')
41
+ public mode: EditMode;
42
+
43
+ /**
44
+ * Defines the row position for new records. The available row positions are:
45
+ * * Top
46
+ * * Bottom
47
+ * * Above
48
+ * * Below
49
+ * * Child
50
+ *
51
+ * @default Top
52
+ */
53
+ @Property('Top')
54
+ public newRowPosition: RowPosition;
55
+
56
+ /**
57
+ * If `showDeleteConfirmDialog` is set to true, confirm dialog will show delete action. You can also cancel delete command.
58
+ *
59
+ * @default false
60
+ */
61
+ @Property(false)
62
+ public showDeleteConfirmDialog: boolean;
63
+
64
+ /**
65
+ * Enabled or disables taskbar resizing, taskbar dragging, progress bar resizing and
66
+ * predecessor draw action in chart side.
67
+ *
68
+ * @default false
69
+ */
70
+ @Property(false)
71
+ public allowTaskbarEditing: boolean;
72
+ /**
73
+ * If `allowNextRowEdit` is set as true, editing is continued to next row with keyboard navigation.
74
+ *
75
+ * @default false
76
+ */
77
+ @Property(false)
78
+ public allowNextRowEdit : boolean;
79
+ }
@@ -0,0 +1,27 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * Defines event marker collection in Gantt.
4
+ */
5
+ export class EventMarker extends ChildProperty<EventMarker> {
6
+ /**
7
+ * Defines day of event marker.
8
+ *
9
+ * @default null
10
+ */
11
+ @Property(null)
12
+ public day: Date | string;
13
+ /**
14
+ * Defines label of event marker.
15
+ *
16
+ * @default null
17
+ */
18
+ @Property(null)
19
+ public label: string;
20
+ /**
21
+ * Define custom css class for event marker to customize line and label.
22
+ *
23
+ * @default null
24
+ */
25
+ @Property(null)
26
+ public cssClass: string;
27
+ }
@@ -0,0 +1,53 @@
1
+ import { Property, ChildProperty, Collection } from '@syncfusion/ej2-base';
2
+ import { PredicateModel, Predicate, ICustomOptr } from '@syncfusion/ej2-grids';
3
+ import { FilterType, FilterHierarchyMode } from '../base/enum';
4
+ /**
5
+ * Configures the filtering behavior of the Gantt.
6
+ */
7
+ export class FilterSettings extends ChildProperty<FilterSettings> {
8
+ /**
9
+ * Specifies the columns to be filtered at initial rendering of the Gantt.
10
+ * You can also get the columns that were currently filtered.
11
+ *
12
+ * @default []
13
+ */
14
+ @Collection<PredicateModel[]>([], Predicate)
15
+ public columns: PredicateModel[];
16
+
17
+ /**
18
+ * Defines filter type of Gantt.
19
+ * * `Menu` - Enables menu filters in Grid.
20
+ *
21
+ * @hidden
22
+ */
23
+ @Property('Menu')
24
+ public type: FilterType;
25
+
26
+ /**
27
+ * The `operators` is used to override the default operators in filter menu. This should be defined by type wise
28
+ * (string, number, date and boolean). Based on the column type, this customize operator list will render in filter menu.
29
+ *
30
+ * @default null
31
+ */
32
+ @Property()
33
+ public operators: ICustomOptr;
34
+ /**
35
+ * If ignoreAccent set to true, then filter ignores the diacritic characters or accents while filtering.
36
+ *
37
+ * @default false
38
+ */
39
+ @Property(false)
40
+ public ignoreAccent: boolean;
41
+ /**
42
+ * Defines the filter types. The available options are,
43
+ * `Parent`: Shows the filtered record with parent record.
44
+ * `Child`: Shows the filtered record with child record.
45
+ * `Both` : shows the filtered record with both parent and child record.
46
+ * `None` : Shows only filtered record.
47
+ *
48
+ * @default Parent
49
+ * @isEnumeration true
50
+ */
51
+ @Property('Parent')
52
+ public hierarchyMode: FilterHierarchyMode;
53
+ }