@syncfusion/ej2-grids 20.3.47-54738 → 20.3.47-54739

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 (161) hide show
  1. package/dist/ej2-grids.min.js +1 -0
  2. package/helpers/e2e/gridhelper.d.ts +59 -0
  3. package/helpers/e2e/index.d.ts +1 -0
  4. package/package.json +1 -1
  5. package/src/components.d.ts +5 -0
  6. package/src/grid/actions/aggregate.d.ts +31 -0
  7. package/src/grid/actions/batch-edit.d.ts +116 -0
  8. package/src/grid/actions/blazor-action.d.ts +47 -0
  9. package/src/grid/actions/checkbox-filter.d.ts +47 -0
  10. package/src/grid/actions/clipboard.d.ts +69 -0
  11. package/src/grid/actions/column-chooser.d.ts +114 -0
  12. package/src/grid/actions/column-menu.d.ts +99 -0
  13. package/src/grid/actions/command-column.d.ts +31 -0
  14. package/src/grid/actions/context-menu.d.ts +102 -0
  15. package/src/grid/actions/data.d.ts +110 -0
  16. package/src/grid/actions/detail-row.d.ts +73 -0
  17. package/src/grid/actions/dialog-edit.d.ts +21 -0
  18. package/src/grid/actions/edit.d.ts +271 -0
  19. package/src/grid/actions/excel-export.d.ts +89 -0
  20. package/src/grid/actions/excel-filter.d.ts +53 -0
  21. package/src/grid/actions/export-helper.d.ts +67 -0
  22. package/src/grid/actions/filter.d.ts +253 -0
  23. package/src/grid/actions/foreign-key.d.ts +20 -0
  24. package/src/grid/actions/freeze.d.ts +17 -0
  25. package/src/grid/actions/group.d.ts +178 -0
  26. package/src/grid/actions/infinite-scroll.d.ts +146 -0
  27. package/src/grid/actions/inline-edit.d.ts +21 -0
  28. package/src/grid/actions/lazy-load-group.d.ts +40 -0
  29. package/src/grid/actions/logger.d.ts +30 -0
  30. package/src/grid/actions/normal-edit.d.ts +76 -0
  31. package/src/grid/actions/page.d.ts +117 -0
  32. package/src/grid/actions/pdf-export.d.ts +142 -0
  33. package/src/grid/actions/print.d.ts +67 -0
  34. package/src/grid/actions/reorder.d.ts +95 -0
  35. package/src/grid/actions/resize.d.ts +117 -0
  36. package/src/grid/actions/row-reorder.d.ts +92 -0
  37. package/src/grid/actions/scroll.d.ts +114 -0
  38. package/src/grid/actions/search.d.ts +72 -0
  39. package/src/grid/actions/selection.d.ts +481 -0
  40. package/src/grid/actions/show-hide.d.ts +55 -0
  41. package/src/grid/actions/sort.d.ts +138 -0
  42. package/src/grid/actions/toolbar.d.ts +84 -0
  43. package/src/grid/actions/virtual-scroll.d.ts +23 -0
  44. package/src/grid/actions.d.ts +39 -0
  45. package/src/grid/aggregate.d.ts +4 -0
  46. package/src/grid/base/constant.d.ts +559 -0
  47. package/src/grid/base/enum.d.ts +704 -0
  48. package/src/grid/base/grid.d.ts +3627 -0
  49. package/src/grid/base/interface.d.ts +2567 -0
  50. package/src/grid/base/string-literals.d.ts +87 -0
  51. package/src/grid/base/type.d.ts +42 -0
  52. package/src/grid/base/util.d.ts +747 -0
  53. package/src/grid/base.d.ts +11 -0
  54. package/src/grid/column-chooser.d.ts +4 -0
  55. package/src/grid/column-menu.d.ts +4 -0
  56. package/src/grid/command-column.d.ts +4 -0
  57. package/src/grid/common/checkbox-filter-base.d.ts +137 -0
  58. package/src/grid/common/excel-filter-base.d.ts +115 -0
  59. package/src/grid/common/filter-interface.d.ts +42 -0
  60. package/src/grid/common/index.d.ts +5 -0
  61. package/src/grid/common.d.ts +6 -0
  62. package/src/grid/context-menu.d.ts +4 -0
  63. package/src/grid/detail-row.d.ts +4 -0
  64. package/src/grid/edit.d.ts +4 -0
  65. package/src/grid/excel-export.d.ts +4 -0
  66. package/src/grid/filter.d.ts +4 -0
  67. package/src/grid/foreign-key.d.ts +4 -0
  68. package/src/grid/freeze.d.ts +4 -0
  69. package/src/grid/group.d.ts +4 -0
  70. package/src/grid/index.d.ts +9 -0
  71. package/src/grid/infinite-scroll.d.ts +4 -0
  72. package/src/grid/lazy-load-group.d.ts +4 -0
  73. package/src/grid/logger.d.ts +4 -0
  74. package/src/grid/models/aggregate.d.ts +138 -0
  75. package/src/grid/models/cell.d.ts +38 -0
  76. package/src/grid/models/column-chooser-settings.d.ts +20 -0
  77. package/src/grid/models/column.d.ts +1122 -0
  78. package/src/grid/models/models.d.ts +7 -0
  79. package/src/grid/models/page-settings.d.ts +55 -0
  80. package/src/grid/models/row.d.ts +62 -0
  81. package/src/grid/models.d.ts +7 -0
  82. package/src/grid/page.d.ts +4 -0
  83. package/src/grid/pdf-export.d.ts +4 -0
  84. package/src/grid/renderer/autocomplete-edit-cell.d.ts +20 -0
  85. package/src/grid/renderer/batch-edit-renderer.d.ts +23 -0
  86. package/src/grid/renderer/boolean-edit-cell.d.ts +30 -0
  87. package/src/grid/renderer/boolean-filter-ui.d.ts +42 -0
  88. package/src/grid/renderer/caption-cell-renderer.d.ts +45 -0
  89. package/src/grid/renderer/cell-merge-renderer.d.ts +23 -0
  90. package/src/grid/renderer/cell-renderer.d.ts +91 -0
  91. package/src/grid/renderer/column-freeze-renderer.d.ts +166 -0
  92. package/src/grid/renderer/combobox-edit-cell.d.ts +19 -0
  93. package/src/grid/renderer/command-column-renderer.d.ts +31 -0
  94. package/src/grid/renderer/content-renderer.d.ts +210 -0
  95. package/src/grid/renderer/date-filter-ui.d.ts +31 -0
  96. package/src/grid/renderer/datepicker-edit-cell.d.ts +20 -0
  97. package/src/grid/renderer/default-edit-cell.d.ts +22 -0
  98. package/src/grid/renderer/detail-expand-cell-renderer.d.ts +21 -0
  99. package/src/grid/renderer/detail-header-indent-renderer.d.ts +20 -0
  100. package/src/grid/renderer/dialog-edit-renderer.d.ts +39 -0
  101. package/src/grid/renderer/dropdown-edit-cell.d.ts +32 -0
  102. package/src/grid/renderer/edit-cell-base.d.ts +25 -0
  103. package/src/grid/renderer/edit-renderer.d.ts +35 -0
  104. package/src/grid/renderer/expand-cell-renderer.d.ts +28 -0
  105. package/src/grid/renderer/filter-cell-renderer.d.ts +36 -0
  106. package/src/grid/renderer/filter-menu-operator.d.ts +43 -0
  107. package/src/grid/renderer/filter-menu-renderer.d.ts +65 -0
  108. package/src/grid/renderer/footer-renderer.d.ts +50 -0
  109. package/src/grid/renderer/freeze-renderer.d.ts +142 -0
  110. package/src/grid/renderer/group-lazy-load-renderer.d.ts +177 -0
  111. package/src/grid/renderer/header-cell-renderer.d.ts +54 -0
  112. package/src/grid/renderer/header-indent-renderer.d.ts +20 -0
  113. package/src/grid/renderer/header-renderer.d.ts +156 -0
  114. package/src/grid/renderer/indent-cell-renderer.d.ts +20 -0
  115. package/src/grid/renderer/inline-edit-renderer.d.ts +39 -0
  116. package/src/grid/renderer/inputmask-edit-cell.d.ts +18 -0
  117. package/src/grid/renderer/multiselect-edit-cell.d.ts +18 -0
  118. package/src/grid/renderer/number-filter-ui.d.ts +30 -0
  119. package/src/grid/renderer/numeric-edit-cell.d.ts +27 -0
  120. package/src/grid/renderer/render.d.ts +104 -0
  121. package/src/grid/renderer/responsive-dialog-renderer.d.ts +84 -0
  122. package/src/grid/renderer/row-drag-drop-renderer.d.ts +20 -0
  123. package/src/grid/renderer/row-drag-header-indent-render.d.ts +20 -0
  124. package/src/grid/renderer/row-renderer.d.ts +55 -0
  125. package/src/grid/renderer/stacked-cell-renderer.d.ts +23 -0
  126. package/src/grid/renderer/string-filter-ui.d.ts +39 -0
  127. package/src/grid/renderer/summary-cell-renderer.d.ts +15 -0
  128. package/src/grid/renderer/template-edit-cell.d.ts +13 -0
  129. package/src/grid/renderer/timepicker-edit-cell.d.ts +18 -0
  130. package/src/grid/renderer/toggleswitch-edit-cell.d.ts +27 -0
  131. package/src/grid/renderer/virtual-content-renderer.d.ts +221 -0
  132. package/src/grid/renderer/virtual-freeze-renderer.d.ts +382 -0
  133. package/src/grid/renderer.d.ts +42 -0
  134. package/src/grid/reorder.d.ts +4 -0
  135. package/src/grid/resize.d.ts +4 -0
  136. package/src/grid/row-reorder.d.ts +4 -0
  137. package/src/grid/selection.d.ts +4 -0
  138. package/src/grid/services/aria-service.d.ts +34 -0
  139. package/src/grid/services/cell-render-factory.d.ts +14 -0
  140. package/src/grid/services/focus-strategy.d.ts +192 -0
  141. package/src/grid/services/freeze-row-model-generator.d.ts +14 -0
  142. package/src/grid/services/group-model-generator.d.ts +68 -0
  143. package/src/grid/services/intersection-observer.d.ts +23 -0
  144. package/src/grid/services/renderer-factory.d.ts +14 -0
  145. package/src/grid/services/row-model-generator.d.ts +41 -0
  146. package/src/grid/services/service-locator.d.ts +14 -0
  147. package/src/grid/services/summary-model-generator.d.ts +43 -0
  148. package/src/grid/services/value-formatter.d.ts +16 -0
  149. package/src/grid/services/virtual-row-model-generator.d.ts +55 -0
  150. package/src/grid/services/width-controller.d.ts +35 -0
  151. package/src/grid/services.d.ts +11 -0
  152. package/src/grid/sort.d.ts +4 -0
  153. package/src/grid/toolbar.d.ts +4 -0
  154. package/src/grid/virtual-scroll.d.ts +4 -0
  155. package/src/index.d.ts +5 -0
  156. package/src/pager/external-message.d.ts +55 -0
  157. package/src/pager/index.d.ts +9 -0
  158. package/src/pager/numeric-container.d.ts +78 -0
  159. package/src/pager/pager-dropdown.d.ts +68 -0
  160. package/src/pager/pager-message.d.ts +50 -0
  161. package/src/pager/pager.d.ts +341 -0
@@ -0,0 +1,146 @@
1
+ import { IGrid, IAction } from '../base/interface';
2
+ import { ServiceLocator } from '../services/service-locator';
3
+ import { Action } from '../base/enum';
4
+ import { ColumnWidthService } from '../services/width-controller';
5
+ /**
6
+ * Infinite Scrolling class
7
+ *
8
+ * @hidden
9
+ */
10
+ export declare class InfiniteScroll implements IAction {
11
+ private parent;
12
+ private serviceLocator;
13
+ private maxPage;
14
+ private actionBeginFunction;
15
+ private actionCompleteFunction;
16
+ private dataBoundFunction;
17
+ private infiniteCache;
18
+ private infiniteCurrentViewData;
19
+ private infiniteFrozenCache;
20
+ private isDownScroll;
21
+ private isUpScroll;
22
+ private isScroll;
23
+ private top;
24
+ private enableContinuousScroll;
25
+ private initialRender;
26
+ private pressedKey;
27
+ private isRemove;
28
+ private isInitialCollapse;
29
+ protected prevScrollTop: number;
30
+ private actions;
31
+ private keys;
32
+ private rowIndex;
33
+ protected cellIndex: number;
34
+ private rowTop;
35
+ private empty;
36
+ private isInitialMovableRender;
37
+ private frozenFrag;
38
+ private movableFrag;
39
+ private editRowIndex;
40
+ private virtualInfiniteData;
41
+ private isAdd;
42
+ private isEdit;
43
+ private isCancel;
44
+ private emptyRowData;
45
+ private isNormaledit;
46
+ /** @hidden */
47
+ requestType: Action;
48
+ private firstBlock;
49
+ private firstIndex;
50
+ private lastIndex;
51
+ private rowModelGenerator;
52
+ private isInfiniteScroll;
53
+ private isLastPage;
54
+ private isInitialRender;
55
+ private isFocusScroll;
56
+ private lastFocusInfo;
57
+ private isGroupCollapse;
58
+ private parentCapUid;
59
+ private groupCaptionAction;
60
+ protected widthService: ColumnWidthService;
61
+ private addRowIndex;
62
+ /**
63
+ * Constructor for the Grid infinite scrolling.
64
+ *
65
+ * @param {IGrid} parent - specifies the IGrid
66
+ * @param {ServiceLocator} serviceLocator - specifies the ServiceLocator
67
+ * @hidden
68
+ */
69
+ constructor(parent?: IGrid, serviceLocator?: ServiceLocator);
70
+ getModuleName(): string;
71
+ /**
72
+ * @returns {void}
73
+ * @hidden
74
+ */
75
+ addEventListener(): void;
76
+ /**
77
+ * @returns {void}
78
+ * @hidden
79
+ */
80
+ removeEventListener(): void;
81
+ private dataBound;
82
+ private setGroupCollapsePageQuery;
83
+ private captionActionComplete;
84
+ private makeGroupCollapseRequest;
85
+ private getCaptionChildCount;
86
+ private childCheck;
87
+ private updateCurrentViewData;
88
+ private refreshInfiniteCurrentViewData;
89
+ private resetCurrentViewData;
90
+ private deleteComplate;
91
+ private modelChanged;
92
+ private infiniteAddActionBegin;
93
+ private infiniteEditHandler;
94
+ private createRow;
95
+ private ensureRowAvailability;
96
+ private generateRows;
97
+ private resetRowIndex;
98
+ private resetInfiniteCurrentViewData;
99
+ private swapCurrentViewData;
100
+ private setDisplayNone;
101
+ private refreshInfiniteCache;
102
+ private refreshInfiniteCacheRowVisibleLength;
103
+ private refreshInfiniteEditrowindex;
104
+ private getEditedRowObject;
105
+ private infiniteEditSuccess;
106
+ private updateCurrentViewRecords;
107
+ private actionBegin;
108
+ private actionComplete;
109
+ private resetInfiniteEdit;
110
+ private getVirtualInfiniteData;
111
+ private editActionBegin;
112
+ private dataSourceModified;
113
+ private onDataReady;
114
+ private ensureIntialCollapse;
115
+ private infiniteScrollHandler;
116
+ private makeRequest;
117
+ private infinitePageQuery;
118
+ private editPageQuery;
119
+ private intialPageQuery;
120
+ private scrollToLastFocusedCell;
121
+ private setLastCellFocusInfo;
122
+ private infiniteCellFocus;
123
+ private createEmptyRowdata;
124
+ private getVirtualInfiniteEditedData;
125
+ private restoreInfiniteEdit;
126
+ private restoreInfiniteAdd;
127
+ private appendInfiniteRows;
128
+ private selectNewRow;
129
+ private removeInfiniteCacheRows;
130
+ private calculateScrollTop;
131
+ private captionRowHeight;
132
+ private removeTopRows;
133
+ private removeBottomRows;
134
+ private removeCaptionRows;
135
+ private resetInfiniteBlocks;
136
+ private setCache;
137
+ private setInitialCache;
138
+ private createFrozenCache;
139
+ private setInitialGroupCache;
140
+ private resetContentModuleCache;
141
+ /**
142
+ * @returns {void}
143
+ * @hidden
144
+ */
145
+ destroy(): void;
146
+ }
@@ -0,0 +1,21 @@
1
+ import { IGrid } from '../base/interface';
2
+ import { EditRender } from '../renderer/edit-renderer';
3
+ import { ServiceLocator } from '../services/service-locator';
4
+ import { NormalEdit } from './normal-edit';
5
+ /**
6
+ * `InlineEdit` module is used to handle inline editing actions.
7
+ *
8
+ * @hidden
9
+ */
10
+ export declare class InlineEdit extends NormalEdit {
11
+ protected parent: IGrid;
12
+ protected serviceLocator: ServiceLocator;
13
+ protected renderer: EditRender;
14
+ constructor(parent?: IGrid, serviceLocator?: ServiceLocator, renderer?: EditRender);
15
+ closeEdit(): void;
16
+ addRecord(data?: Object, index?: number): void;
17
+ endEdit(): void;
18
+ updateRow(index: number, data?: Object): void;
19
+ deleteRecord(fieldname?: string, data?: Object): void;
20
+ protected startEdit(tr?: Element): void;
21
+ }
@@ -0,0 +1,40 @@
1
+ import { IGrid, IAction } from '../base/interface';
2
+ import { ServiceLocator } from '../services/service-locator';
3
+ /**
4
+ * Group lazy load class
5
+ */
6
+ export declare class LazyLoadGroup implements IAction {
7
+ private parent;
8
+ private serviceLocator;
9
+ /**
10
+ * Constructor for Grid group lazy load module
11
+ *
12
+ * @param {IGrid} parent - specifies the IGrid
13
+ * @param {ServiceLocator} serviceLocator - specifies the ServiceLocator
14
+ * @hidden
15
+ */
16
+ constructor(parent?: IGrid, serviceLocator?: ServiceLocator);
17
+ /**
18
+ * For internal use only - Get the module name.
19
+ *
20
+ * @returns {string} returns the module name
21
+ * @private
22
+ */
23
+ protected getModuleName(): string;
24
+ /**
25
+ * @returns {void}
26
+ * @hidden
27
+ */
28
+ addEventListener(): void;
29
+ /**
30
+ * @returns {void}
31
+ * @hidden
32
+ */
33
+ removeEventListener(): void;
34
+ private instantiateRenderer;
35
+ /**
36
+ * @returns {void}
37
+ * @hidden
38
+ */
39
+ destroy(): void;
40
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ *
3
+ * `Logger` class
4
+ */
5
+ import { IGrid } from '../base/interface';
6
+ export interface ILogger {
7
+ log: (type: string | string[], args: Object) => void;
8
+ }
9
+ export interface CheckOptions {
10
+ success: boolean;
11
+ options?: Object;
12
+ }
13
+ export interface ItemDetails {
14
+ type: string;
15
+ logType: string;
16
+ message?: string;
17
+ check: (args: Object, parent: IGrid) => CheckOptions;
18
+ generateMessage: (args: Object, parent: IGrid, checkOptions?: Object) => string;
19
+ }
20
+ export declare class Logger implements ILogger {
21
+ parent: IGrid;
22
+ constructor(parent: IGrid);
23
+ getModuleName(): string;
24
+ log(types: string | string[], args: Object): void;
25
+ patchadaptor(): void;
26
+ destroy(): void;
27
+ }
28
+ export declare const detailLists: {
29
+ [key: string]: ItemDetails;
30
+ };
@@ -0,0 +1,76 @@
1
+ import { IGrid, NotifyArgs } from '../base/interface';
2
+ import { EditRender } from '../renderer/edit-renderer';
3
+ import { ServiceLocator } from '../services/service-locator';
4
+ import { FormValidator } from '@syncfusion/ej2-inputs';
5
+ /**
6
+ * `NormalEdit` module is used to handle normal('inline, dialog, external') editing actions.
7
+ *
8
+ * @hidden
9
+ */
10
+ export declare class NormalEdit {
11
+ protected parent: IGrid;
12
+ protected serviceLocator: ServiceLocator;
13
+ protected renderer: EditRender;
14
+ formObj: FormValidator;
15
+ protected previousData: Object;
16
+ private editRowIndex;
17
+ private rowIndex;
18
+ private addedRowIndex;
19
+ private uid;
20
+ private args;
21
+ private cloneRow;
22
+ private originalRow;
23
+ private frozen;
24
+ private cloneFrozen;
25
+ private currentVirtualData;
26
+ private evtHandlers;
27
+ constructor(parent?: IGrid, serviceLocator?: ServiceLocator, renderer?: EditRender);
28
+ protected clickHandler(e: MouseEvent): void;
29
+ protected dblClickHandler(e: MouseEvent): void;
30
+ /**
31
+ * The function used to trigger editComplete
32
+ *
33
+ * @param {NotifyArgs} e - specifies the NotifyArgs
34
+ * @returns {void}
35
+ * @hidden
36
+ */
37
+ editComplete(e: NotifyArgs): void;
38
+ private getEditArgs;
39
+ protected startEdit(tr: Element): void;
40
+ private inlineEditHandler;
41
+ protected updateRow(index: number, data: Object): void;
42
+ private editFormValidate;
43
+ protected endEdit(): void;
44
+ private destroyElements;
45
+ private editHandler;
46
+ private edSucc;
47
+ private edFail;
48
+ private updateCurrentViewData;
49
+ private requestSuccess;
50
+ private editSuccess;
51
+ private closeForm;
52
+ private blazorTemplate;
53
+ private editFailure;
54
+ private needRefresh;
55
+ private refreshRow;
56
+ protected closeEdit(): void;
57
+ protected addRecord(data?: Object, index?: number): void;
58
+ private inlineAddHandler;
59
+ protected deleteRecord(fieldname?: string, data?: Object): void;
60
+ private stopEditStatus;
61
+ /**
62
+ * @returns {void}
63
+ * @hidden
64
+ */
65
+ addEventListener(): void;
66
+ /**
67
+ * @returns {void}
68
+ * @hidden
69
+ */
70
+ removeEventListener(): void;
71
+ /**
72
+ * @returns {void}
73
+ * @hidden
74
+ */
75
+ destroy(): void;
76
+ }
@@ -0,0 +1,117 @@
1
+ import { Pager } from '../../pager/pager';
2
+ import { PageSettingsModel } from '../models/page-settings-model';
3
+ import { IGrid, IAction, NotifyArgs } from '../base/interface';
4
+ /**
5
+ * The `Page` module is used to render pager and handle paging action.
6
+ */
7
+ export declare class Page implements IAction {
8
+ private element;
9
+ private pageSettings;
10
+ private isForceCancel;
11
+ private isInitialLoad;
12
+ private isInitialRender;
13
+ private evtHandlers;
14
+ private isCancel;
15
+ private parent;
16
+ /** @hidden */
17
+ pagerObj: Pager;
18
+ private handlers;
19
+ /**
20
+ * Constructor for the Grid paging module
21
+ *
22
+ * @param {IGrid} parent - specifies the IGrid
23
+ * @param {PageSettingsModel} pageSettings - specifies the PageSettingsModel
24
+ * @hidden
25
+ */
26
+ constructor(parent?: IGrid, pageSettings?: PageSettingsModel);
27
+ /**
28
+ * For internal use only - Get the module name.
29
+ *
30
+ * @returns {string} returns the module name
31
+ * @private
32
+ */
33
+ protected getModuleName(): string;
34
+ /**
35
+ * The function used to render pager from grid pageSettings
36
+ *
37
+ * @returns {void}
38
+ * @hidden
39
+ */
40
+ render(): void;
41
+ private onSelect;
42
+ private addAriaAttr;
43
+ private dataReady;
44
+ /**
45
+ * Refreshes the page count, pager information, and external message.
46
+ *
47
+ * @returns {void}
48
+ */
49
+ refresh(): void;
50
+ /**
51
+ * Navigates to the target page according to the given number.
52
+ *
53
+ * @param {number} pageNo - Defines the page number to navigate.
54
+ * @returns {void}
55
+ */
56
+ goToPage(pageNo: number): void;
57
+ /**
58
+ * @param {number} pageSize - specifies the page size
59
+ * @returns {void}
60
+ * @hidden
61
+ */
62
+ setPageSize(pageSize: number): void;
63
+ /**
64
+ * The function used to update pageSettings model
65
+ *
66
+ * @param {NotifyArgs} e - specfies the NotifyArgs
67
+ * @returns {void}
68
+ * @hidden
69
+ */
70
+ updateModel(e?: NotifyArgs): void;
71
+ /**
72
+ * The function used to trigger onActionComplete
73
+ *
74
+ * @param {NotifyArgs} e - specifies the NotifyArgs
75
+ * @returns {void}
76
+ * @hidden
77
+ */
78
+ onActionComplete(e: NotifyArgs): void;
79
+ /**
80
+ * @param {NotifyArgs} e - specifies the NotifyArgs
81
+ * @returns {void}
82
+ * @hidden
83
+ */
84
+ onPropertyChanged(e: NotifyArgs): void;
85
+ private clickHandler;
86
+ private keyPressHandler;
87
+ /**
88
+ * Defines the text of the external message.
89
+ *
90
+ * @param {string} message - Defines the message to update.
91
+ * @returns {void}
92
+ */
93
+ updateExternalMessage(message: string): void;
94
+ private appendToElement;
95
+ private enableAfterRender;
96
+ /**
97
+ * @returns {void}
98
+ * @hidden
99
+ */
100
+ addEventListener(): void;
101
+ private created;
102
+ private isReactTemplate;
103
+ private renderReactPagerTemplate;
104
+ /**
105
+ * @returns {void}
106
+ * @hidden
107
+ */
108
+ removeEventListener(): void;
109
+ /**
110
+ * To destroy the pager
111
+ *
112
+ * @returns {void}
113
+ * @hidden
114
+ */
115
+ destroy(): void;
116
+ private pagerDestroy;
117
+ }
@@ -0,0 +1,142 @@
1
+ import { IGrid, PdfExportProperties } from '../base/interface';
2
+ /**
3
+ * `PDF Export` module is used to handle the exportToPDF action.
4
+ *
5
+ * @hidden
6
+ */
7
+ export declare class PdfExport {
8
+ private parent;
9
+ private isExporting;
10
+ private data;
11
+ private pdfDocument;
12
+ private hideColumnInclude;
13
+ private currentViewData;
14
+ private customDataSource;
15
+ private exportValueFormatter;
16
+ private gridTheme;
17
+ private isGrouping;
18
+ private helper;
19
+ private isBlob;
20
+ private blobPromise;
21
+ private globalResolve;
22
+ private gridPool;
23
+ private headerOnPages;
24
+ private drawPosition;
25
+ private pdfPageSettings;
26
+ private rowIndex;
27
+ /**
28
+ * Constructor for the Grid PDF Export module
29
+ *
30
+ * @param {IGrid} parent - specifies the IGrid
31
+ * @hidden
32
+ */
33
+ constructor(parent?: IGrid);
34
+ /**
35
+ * For internal use only - Get the module name.
36
+ *
37
+ * @returns {string} returns the module name
38
+ */
39
+ private getModuleName;
40
+ private init;
41
+ private exportWithData;
42
+ /**
43
+ * Used to map the input data
44
+ *
45
+ * @param {IGrid} parent - specifies the IGrid
46
+ * @param {PdfExportProperties} pdfExportProperties - specifies the PdfExportProperties
47
+ * @param {boolean} isMultipleExport - specifies the isMultipleExport
48
+ * @param {Object} pdfDoc - specifies the pdfDoc
49
+ * @param {boolean} isBlob - speciies whether it is Blob or not
50
+ * @returns {void}
51
+ */
52
+ Map(parent?: IGrid, pdfExportProperties?: PdfExportProperties, isMultipleExport?: boolean, pdfDoc?: Object, isBlob?: boolean): Promise<Object>;
53
+ private processExport;
54
+ private processSectionExportProperties;
55
+ private processGridExport;
56
+ private getSummaryCaptionThemeStyle;
57
+ private getGridPdfFont;
58
+ private getHeaderThemeStyle;
59
+ private processGroupedRecords;
60
+ private processGridHeaders;
61
+ private processExportProperties;
62
+ private drawHeader;
63
+ private drawPageTemplate;
64
+ private processContentValidation;
65
+ private drawText;
66
+ private drawPageNumber;
67
+ private drawImage;
68
+ private drawLine;
69
+ private processAggregates;
70
+ private getTemplateFunction;
71
+ private getSummaryWithoutTemplate;
72
+ /**
73
+ * Set alignment, width and type of the values of the column
74
+ *
75
+ * @param {Column[]} gridColumns - specifies the grid column
76
+ * @param {PdfGrid} pdfGrid - specifies the pdfGrid
77
+ * @param {ExportHelper} helper - specifies the helper
78
+ * @param {IGrid} gObj - specifies the IGrid
79
+ * @param {boolean} allowHorizontalOverflow - specifies the allowHorizontalOverflow
80
+ * @returns {void}
81
+ */
82
+ private setColumnProperties;
83
+ /**
84
+ * set default style properties of each rows in exporting grid
85
+ *
86
+ * @param {PdfGridRow} row - specifies the PdfGridRow
87
+ * @param {PdfBorders} border - specifies the PdfBorders
88
+ * @returns {PdfGrid} returns the pdfgrid
89
+ * @private
90
+ */
91
+ private setRecordThemeStyle;
92
+ /**
93
+ * generate the formatted cell values
94
+ *
95
+ * @param {PdfBorders} border - specifies the border
96
+ * @param {Column[]} columns - specifies the columns
97
+ * @param {IGrid} gObj - specifies the IGrid
98
+ * @param {Object[]} dataSource - specifies the datasource
99
+ * @param {PdfGrid} pdfGrid - specifies the pdfGrid
100
+ * @param {number} startIndex - specifies the startindex
101
+ * @param {PdfExportProperties} pdfExportProperties - specifies the pdfExportProperties
102
+ * @param {ExportHelper} helper - specifies the helper
103
+ * @param {number} rowIndex - specifies the rowIndex
104
+ * @returns {number} returns the number of records
105
+ * @private
106
+ */
107
+ private processRecord;
108
+ private setHyperLink;
109
+ private childGridCell;
110
+ private processCellStyle;
111
+ /**
112
+ * set text alignment of each columns in exporting grid
113
+ *
114
+ * @param {string} textAlign - specifies the textAlign
115
+ * @param {PdfStringFormat} format - specifies the PdfStringFormat
116
+ * @returns {PdfStringFormat} returns the PdfStringFormat
117
+ * @private
118
+ */
119
+ private getHorizontalAlignment;
120
+ /**
121
+ * set vertical alignment of each columns in exporting grid
122
+ *
123
+ * @param {string} verticalAlign - specifies the verticalAlign
124
+ * @param {PdfStringFormat} format - specifies the PdfStringFormat
125
+ * @param {string} textAlign - specifies the text align
126
+ * @returns {PdfStringFormat} returns the PdfStringFormat
127
+ * @private
128
+ */
129
+ private getVerticalAlignment;
130
+ private getFontFamily;
131
+ private getFont;
132
+ private getPageNumberStyle;
133
+ private setContentFormat;
134
+ private getPageSize;
135
+ private getDashStyle;
136
+ private getPenFromContent;
137
+ private getBrushFromContent;
138
+ private hexToRgb;
139
+ private getFontStyle;
140
+ private getBorderStyle;
141
+ destroy(): void;
142
+ }
@@ -0,0 +1,67 @@
1
+ import { IGrid } from '../base/interface';
2
+ import { Scroll } from '../actions/scroll';
3
+ /**
4
+ * @returns {string[]} returns the cloned property
5
+ * @hidden
6
+ */
7
+ export declare function getCloneProperties(): string[];
8
+ /**
9
+ *
10
+ * The `Print` module is used to handle print action.
11
+ */
12
+ export declare class Print {
13
+ private parent;
14
+ private printWind;
15
+ private scrollModule;
16
+ private isAsyncPrint;
17
+ static printGridProp: string[];
18
+ private defered;
19
+ private actionBeginFunction;
20
+ /**
21
+ * Constructor for the Grid print module
22
+ *
23
+ * @param {IGrid} parent - specifies the IGrid
24
+ * @param {Scroll} scrollModule - specifies the scroll module
25
+ * @hidden
26
+ */
27
+ constructor(parent?: IGrid, scrollModule?: Scroll);
28
+ private isContentReady;
29
+ private hierarchyPrint;
30
+ /**
31
+ * By default, prints all the Grid pages and hides the pager.
32
+ * > You can customize print options using the
33
+ * [`printMode`](grid/#printmode-string/).
34
+ *
35
+ * @returns {void}
36
+ */
37
+ print(): void;
38
+ private onEmpty;
39
+ private actionBegin;
40
+ private renderPrintGrid;
41
+ private contentReady;
42
+ private printGrid;
43
+ private printGridElement;
44
+ private removeColGroup;
45
+ private hideColGroup;
46
+ /**
47
+ * To destroy the print
48
+ *
49
+ * @returns {boolean} returns the isPrintGrid or not
50
+ * @hidden
51
+ */
52
+ isPrintGrid(): boolean;
53
+ /**
54
+ * To destroy the print
55
+ *
56
+ * @returns {void}
57
+ * @hidden
58
+ */
59
+ destroy(): void;
60
+ /**
61
+ * For internal use only - Get the module name.
62
+ *
63
+ * @returns {string} returns the module name
64
+ * @private
65
+ */
66
+ protected getModuleName(): string;
67
+ }