-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathenum.ts
791 lines (738 loc) · 18.2 KB
/
enum.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
/**
* Defines Actions of the Grid. They are
* * paging
* * refresh
* * sorting
* * filtering
* * selection
* * rowdraganddrop
* * reorder
* * grouping
* * ungrouping
*/
export type Action =
/** Defines current Action as Paging */
'paging' |
/** Defines current Action as Refresh */
'refresh' |
/** Defines current Action as Sorting */
'sorting' |
/** Defines current Action as Selection */
'selection' |
/** Defines current Action as Filtering */
'filtering' |
/** Defines current Action as Searching */
'searching' |
/** Defines current Action as Row Drag and Drop */
'rowdraganddrop' |
/** Defines current Action as Reorder */
'reorder' |
/** Defines current Action as Grouping */
'grouping' |
/** Defines current Action as UnGrouping */
'ungrouping' |
/** Defines current Action as Batch Save */
'batchsave' |
/** Defines current Action as Virtual Scroll */
'virtualscroll' |
/** Defines current Action as print */
'print' |
/** Defines current Action as beginedit */
'beginEdit' |
/** Defines current Action as save */
'save' |
/** Defines current Action as delete */
'delete' |
/** Defines current Action as cancel */
'cancel' |
/** Defines current Action as add */
'add' |
/** Defines current Action as filterBeforeOpen */
'filterBeforeOpen' |
/** Defines current Action as filterChoiceRequest */
'filterchoicerequest' |
/** Defines current Action as filterAfterOpen */
'filterAfterOpen' |
/** Defines current Action as filterSearchBegin */
'filterSearchBegin' |
/** represents the column state */
'columnstate' |
/** Defines current Action as Infinite Scroll */
'infiniteScroll';
/**
* Defines directions of Sorting. They are
* * Ascending
* * Descending
*/
export type SortDirection =
/** Defines SortDirection as Ascending */
'Ascending' |
/** Defines SortDirection as Descending */
'Descending';
/**
* `columnQueryMode`provides options to retrive data from the datasource. They are
* * All
* * Schema
* * ExcludeHidden
*/
export type ColumnQueryModeType =
/** It Retrieves whole datasource */
'All' |
/** Retrives data for all the defined columns in grid from the datasource. */
'Schema' |
/** Retrives data only for visible columns of grid from the dataSource. */
'ExcludeHidden';
/**
* Defines types of Selection. They are
* * Single - Allows user to select a row or cell.
* * Multiple - Allows user to select multiple rows or cells.
*/
export type SelectionType =
/** Defines Single selection in the Grid */
'Single' |
/** Defines multiple selections in the Grid */
'Multiple';
/**
* Defines modes of checkbox Selection. They are
* * Default
* * ResetOnRowClick
*/
export type CheckboxSelectionType =
/** Allows the user to select multiple rows by clicking rows one by one */
'Default' |
/** Allows to reset the previously selected row when a row is clicked and multiple rows can be selected by using CTRL or SHIFT key */
'ResetOnRowClick';
/**
* Defines alignments of text, they are
* * Left
* * Right
* * Center
* * Justify
*/
export type TextAlign =
/** Defines Left alignment */
'Left' |
/** Defines Right alignment */
'Right' |
/** Defines Center alignment */
'Center' |
/** Defines Justify alignment */
'Justify';
/**
* Defines types of Cell
*
* @hidden
*/
export enum CellType {
/** Defines CellType as Data */
Data,
/** Defines CellType as Header */
Header,
/** Defines CellType as Summary */
Summary,
/** Defines CellType as GroupSummary */
GroupSummary,
/** Defines CellType as CaptionSummary */
CaptionSummary,
/** Defines CellType as Filter */
Filter,
/** Defines CellType as Indent */
Indent,
/** Defines CellType as GroupCaption */
GroupCaption,
/** Defines CellType as GroupCaptionEmpty */
GroupCaptionEmpty,
/** Defines CellType as Expand */
Expand,
/** Defines CellType as HeaderIndent */
HeaderIndent,
/** Defines CellType as StackedHeader */
StackedHeader,
/** Defines CellType as DetailHeader */
DetailHeader,
/** Defines CellType as DetailExpand */
DetailExpand,
/** Defines CellType as CommandColumn */
CommandColumn,
/** Defines CellType as DetailFooterIntent */
DetailFooterIntent,
/** Defines CellType as RowDrag */
RowDragIcon,
/** Defines CellType as RowDragHeader */
RowDragHIcon
}
/**
* Defines modes of GridLine, They are
* * Both - Displays both the horizontal and vertical grid lines.
* * None - No grid lines are displayed.
* * Horizontal - Displays the horizontal grid lines only.
* * Vertical - Displays the vertical grid lines only.
* * Default - Displays grid lines based on the theme.
*/
export type GridLine =
/** Show both the vertical and horizontal line in the Grid */
'Both' |
/** Hide both the vertical and horizontal line in the Grid */
'None' |
/** Shows the horizontal line only in the Grid */
'Horizontal' |
/** Shows the vertical line only in the Grid */
'Vertical' |
/** Shows the grid lines based on the theme */
'Default';
/**
* Defines types of Render
*
* @hidden
*/
export enum RenderType {
/** Defines RenderType as Header */
Header,
/** Defines RenderType as Content */
Content,
/** Defines RenderType as Summary */
Summary
}
/**
* Defines modes of Selection, They are
* * Row
* * Cell
* * Both
*/
export type SelectionMode =
/** Defines SelectionMode as Cell */
'Cell' |
/** Defines SelectionMode as Row */
'Row' |
/** Defines SelectionMode as Both */
'Both';
/**
* Print mode options are
* * AllPages - Print all pages records of the Grid.
* * CurrentPage - Print current page records of the Grid.
*/
export type PrintMode =
/** Defines PrintMode as AllPages */
'AllPages' |
/** Defines PrintMode as CurrentPage */
'CurrentPage';
/**
* Hierarchy Grid Print modes are
* * `Expanded` - Prints the master grid with expanded child grids.
* * `All` - Prints the master grid with all the child grids.
* * `None` - Prints the master grid alone.
*/
export type HierarchyGridPrintMode =
/** Defines Hierarchy PrintMode as Expanded */
'Expanded' |
/** Defines Hierarchy PrintMode as All */
'All' |
/** Defines Hierarchy PrintMode as None */
'None';
/**
* Defines types of Filter
* * Menu - Specifies the filter type as menu.
* * Excel - Specifies the filter type as excel.
* * FilterBar - Specifies the filter type as filter bar.
* * CheckBox - Specifies the filter type as check box.
*/
export type FilterType =
/** Defines FilterType as filterbar */
'FilterBar' |
/** Defines FilterType as excel */
'Excel' |
/** Defines FilterType as menu */
'Menu' |
/** Defines FilterType as checkbox */
'CheckBox';
/**
* Filter bar mode options are
* * OnEnter - Initiate filter operation after Enter key is pressed.
* * Immediate - Initiate filter operation after certain time interval. By default time interval is 1500 ms.
*/
export type FilterBarMode =
/** Defines FilterBarMode as onenter */
'OnEnter' |
/** Defines FilterBarMode as immediate */
'Immediate';
/**
* Defines the aggregate types.
*/
export type AggregateType =
/** Defines sum aggregate type */
'Sum' |
/** Specifies average aggregate type */
'Average' |
/** Specifies maximum aggregate type */
'Max' |
/** Specifies minimum aggregate type */
'Min' |
/** Specifies count aggregate type */
'Count' |
/** Specifies true count aggregate type */
'TrueCount' |
/** Specifies false count aggregate type */
'FalseCount' |
/** Specifies custom aggregate type */
'Custom';
/**
* Defines the wrap mode.
* * Both - Wraps both header and content.
* * Header - Wraps header alone.
* * Content - Wraps content alone.
*/
export type WrapMode =
/** Wraps both header and content */
'Both' |
/** Wraps header alone */
'Header' |
/** Wraps content alone */
'Content';
/**
* Defines Multiple Export Type.
*/
export type MultipleExportType =
/** Multiple Grids are exported to same Worksheet. */
'AppendToSheet' |
/** Multiple Grids are exported to separate Worksheet. */
'NewSheet';
/**
* Defines Predefined toolbar items.
*
* @hidden
*/
export type ToolbarItems =
/** Add new record */
'Add' |
/** Delete selected record */
'Delete' |
/** Update edited record */
'Update' |
/** Cancel the edited state */
'Cancel' |
/** Edit the selected record */
'Edit' |
/** Searches the grid records by given key */
'Search' |
/** ColumnChooser used show/gird columns */
'ColumnChooser' |
/** Print the Grid */
'Print' |
/** Export the Grid to PDF format */
'PdfExport' |
/** Export the Grid to Excel format */
'ExcelExport' |
/** Export the Grid to CSV format */
'CsvExport' |
/** Export the Grid to word fromat */
'WordExport';
/**
* Defines the cell content's overflow mode. The available modes are
* * `Clip` - Truncates the cell content when it overflows its area.
* * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
* * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
* also it will display tooltip while hover on ellipsis applied cell.
*/
export type ClipMode =
/** Truncates the cell content when it overflows its area */
'Clip' |
/** Displays ellipsis when the cell content overflows its area */
'Ellipsis' |
/** Displays ellipsis when the cell content overflows its area also it will display tooltip while hover on ellipsis applied cell. */
'EllipsisWithTooltip';
/**
* Defines the Command Buttons type.
* * Edit - Edit the current record.
* * Delete - Delete the current record.
* * Save - Save the current edited record.
* * Cancel - Cancel the edited state.
*/
export type CommandButtonType =
/** Default enum type */
'None' |
/** Edit the current row */
'Edit' |
/** Delete the current row */
'Delete' |
/** Save the current edited row */
'Save' |
/** Cancel the edited state */
'Cancel';
/**
* Defines the default items of context menu.
*/
export type ContextMenuItem =
/** Auto fit the size of all columns */
'AutoFitAll' |
/** Auto fit the current column */
'AutoFit' |
/** Group by current column */
'Group' |
/** Ungroup by current column */
'Ungroup' |
/** Edit the current record */
'Edit' |
/** Delete the current record */
'Delete' |
/** Save the edited record */
'Save' |
/** Cancel the edited state */
'Cancel' |
/** Copy the selected records */
'Copy' |
/** Export the grid as Pdf format */
'PdfExport' |
/** Export the grid as Excel format */
'ExcelExport' |
/** Export the grid as CSV format */
'CsvExport' |
/** Sort the current column in ascending order */
'SortAscending' |
/** Sort the current column in descending order */
'SortDescending' |
/** Go to the first page */
'FirstPage' |
/** Go to the previous page */
'PrevPage' |
/** Go to the last page */
'LastPage' |
/** Go to the next page */
'NextPage';
/**
* Defines the default items of Column menu.
*/
export type ColumnMenuItem =
/** Auto fit the size of all columns */
'AutoFitAll' |
/** Auto fit the current column */
'AutoFit' |
/** Group by current column */
'Group' |
/** Ungroup by current column */
'Ungroup' |
/** Sort the current column in ascending order */
'SortAscending' |
/** Sort the current column in descending order */
'SortDescending' |
/** show the column chooser */
'ColumnChooser' |
/** show the Filter popup */
'Filter';
/**
* Defines Predefined toolbar items.
*
* @hidden
*/
export enum ToolbarItem {
Add,
Edit,
Update,
Delete,
Cancel,
Print,
Search,
ColumnChooser,
PdfExport,
ExcelExport,
CsvExport,
WordExport
}
export type PdfPageSize =
'Letter' |
'Note' |
'Legal' |
'A0' |
'A1' |
'A2' |
'A3' |
'A4' |
'A5' |
'A6' |
'A7' |
'A8' |
'A9' |
'B0' |
'B1' |
'B2' |
'B3' |
'B4' |
'B5' |
'Archa' |
'Archb' |
'Archc' |
'Archd' |
'Arche' |
'Flsa' |
'HalfLetter' |
'Letter11x17' |
'Ledger';
export type PageOrientation =
'Landscape' |
'Portrait';
export type ContentType =
'Image' |
'Line' |
'PageNumber' |
'Text';
export type PdfPageNumberType =
'LowerLatin' |
'LowerRoman' |
'UpperLatin' |
'UpperRoman' |
'Numeric' |
'Arabic';
export type PdfDashStyle =
'Solid' |
'Dash' |
'Dot' |
'DashDot' |
'DashDotDot';
/**
* Defines PDF horizontal alignment.
*/
export type PdfHAlign =
/** left alignment */
'Left' |
/** right alignment */
'Right' |
/** center alignment */
'Center' |
/** justify alignment */
'Justify';
/**
* Defines PDF vertical alignment.
*/
export type PdfVAlign =
/** top alignment */
'Top' |
/** bottom alignment */
'Bottom' |
/** middle alignment */
'Middle';
/**
* Defines Export Type.
*/
export type ExportType =
/** All pages of the grid is exported. */
'AllPages' |
/** Current page in grid is exported. */
'CurrentPage';
/**
* Defines Excel horizontal alignment.
*/
export type ExcelHAlign =
/** left alignment */
'Left' |
/** right alignment */
'Right' |
/** center alignment */
'Center' |
/** fill alignment */
'Fill';
/**
* Defines Excel vertical alignment.
*/
export type ExcelVAlign =
/** top alignment */
'Top' |
/** bottom alignment */
'Bottom' |
/** center alignment */
'Center' |
/** justify alignment */
'Justify';
/**
* Defines border line style.
*/
export type BorderLineStyle =
/** thin line style */
'Thin' |
/** thick line style */
'Thick';
export type CheckState = 'Check' | 'Uncheck' | 'Intermediate' | 'None';
/**
* Defines mode of cell selection.
* * Flow
* * Box
*/
export type CellSelectionMode =
/** Defines CellSelectionMode as Flow */
'Flow' |
/** Defines CellSelectionMode as Box */
'Box' |
/** Defines CellSelectionMode as Box with border */
'BoxWithBorder';
/**
* Defines modes of editing.
* * Normal
* * Dialog
* * Batch
*/
export type EditMode =
/** Defines EditMode as Normal */
'Normal' |
/** Defines EditMode as Dialog */
'Dialog' |
/** Defines EditMode as Batch */
'Batch';
/**
* Defines adding new row position.
* * Top
* * Bottom
*/
export type NewRowPosition =
/** Defines row adding position as Top */
'Top' |
/** Defines row adding position as Top */
'Bottom';
/**
* Defines the Edit Type of the column
* * DefaultEdit
* * DropdownEdit
* * BooleanEdit
* * DatepickerEdit
* * DatetimepickerEdit
* * NumericEdit
*/
export type EditType =
/** Defines EditType as DefaultEdit */
'defaultEdit' |
/** Defines EditMode as Dropdownedit */
'dropDownEdit' |
/** Defines EditMode as Booleanedit */
'booleanEdit' |
/** Defines EditMode as Datepickeredit */
'datePickerEdit' |
/** Defines EditType as Datetimepickeredit */
'dateTimePickerEdit' |
/** Defines EditMode as Numericedit */
'numericEdit' ;
/**
* Defines the Column Type
* * String
* * Number
* * Boolean
* * Date
* * DateTime
* * checkBox
*/
export type ColumnType =
/** Defines ColumnType as Null */
'none' |
/** Defines ColumnType as String */
'string' |
/** Defines ColumnType as Number */
'number' |
/** Defines ColumnType as Boolean */
'boolean' |
/** Defines ColumnType as Date */
'date' |
/** Defines ColumnType as DateTime */
'dateTime' |
/** Defines ColumnType as checkBox */
'checkBox';
/**
* Defines the Aggregate Template Type
* * groupCaptionTemplate
* * groupFooterTemplate
* * footerTemplate
*/
export type AggregateTemplateType =
'GroupCaption' |
'GroupFooter' |
'Footer';
/**
* Defines mode of resizing.
* * Normal
* * Auto
*/
export type ResizeMode =
/** Columns will not be adjusted to fit the remaining space */
'Normal' |
/** Resized column width will be adjusted by other columns automatically */
'Auto';
/**
* Defines freeze direction of the grid columns
* * Left
* * Right
*/
export type freezeDirection =
/** freeze the columns at left */
'Left' |
/** freeze the columns at right */
'Right';
/**
* Defines rendered part of the grid column
*
* @hidden
*/
export type freezeTable =
/** Defines rendered the column at frozen left part */
'frozen-left' |
/** Defines rendered the columns at frozen right part */
'frozen-right' |
/** Defines rendered the columns at movable part */
'movable';
/**
* Defines name of the Grid frozen mode
* * Left
* * Right
* * Left-Right
*/
export type freezeMode =
/** Left frozen mode */
'Left' |
/** Right frozen mode */
'Right' |
/** Left and right frozen mode */
'Left-Right';
/**
* Defines types of responsive dialogs
*
* @hidden
*/
export enum ResponsiveDialogAction {
/** Defines dialog type as Edit */
isEdit,
/** Defines dialog type as Add */
isAdd,
/** Defines dialog type as Sort */
isSort,
/** Defines dialog type as Filter */
isFilter
}
/**
* Defines responsive toolbar actions
*
* @hidden
*/
export enum ResponsiveToolbarAction {
/** Defines initial responsive toolbar buttons */
isInitial,
/** Defines responsive toolbar search */
isSearch
}
/**
* Defines mode of row rendering.
* * Horizontal
* * Vertical
*/
export type RowRenderingDirection =
/** Defines horizontal row rendeing */
'Horizontal' |
/** Defined vertical row rendering */
'Vertical';
/**
* Defines keyboard focus keys.
*
* @hidden
*/
export type FocusKeys =
'downArrow' |
'upArrow' |
'PageUp' |
'PageDown' |
'enter' |
'shiftEnter' |
'tab' |
'shiftTab'