@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.
- package/dist/ej2-grids.min.js +1 -0
- package/helpers/e2e/gridhelper.d.ts +59 -0
- package/helpers/e2e/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components.d.ts +5 -0
- package/src/grid/actions/aggregate.d.ts +31 -0
- package/src/grid/actions/batch-edit.d.ts +116 -0
- package/src/grid/actions/blazor-action.d.ts +47 -0
- package/src/grid/actions/checkbox-filter.d.ts +47 -0
- package/src/grid/actions/clipboard.d.ts +69 -0
- package/src/grid/actions/column-chooser.d.ts +114 -0
- package/src/grid/actions/column-menu.d.ts +99 -0
- package/src/grid/actions/command-column.d.ts +31 -0
- package/src/grid/actions/context-menu.d.ts +102 -0
- package/src/grid/actions/data.d.ts +110 -0
- package/src/grid/actions/detail-row.d.ts +73 -0
- package/src/grid/actions/dialog-edit.d.ts +21 -0
- package/src/grid/actions/edit.d.ts +271 -0
- package/src/grid/actions/excel-export.d.ts +89 -0
- package/src/grid/actions/excel-filter.d.ts +53 -0
- package/src/grid/actions/export-helper.d.ts +67 -0
- package/src/grid/actions/filter.d.ts +253 -0
- package/src/grid/actions/foreign-key.d.ts +20 -0
- package/src/grid/actions/freeze.d.ts +17 -0
- package/src/grid/actions/group.d.ts +178 -0
- package/src/grid/actions/infinite-scroll.d.ts +146 -0
- package/src/grid/actions/inline-edit.d.ts +21 -0
- package/src/grid/actions/lazy-load-group.d.ts +40 -0
- package/src/grid/actions/logger.d.ts +30 -0
- package/src/grid/actions/normal-edit.d.ts +76 -0
- package/src/grid/actions/page.d.ts +117 -0
- package/src/grid/actions/pdf-export.d.ts +142 -0
- package/src/grid/actions/print.d.ts +67 -0
- package/src/grid/actions/reorder.d.ts +95 -0
- package/src/grid/actions/resize.d.ts +117 -0
- package/src/grid/actions/row-reorder.d.ts +92 -0
- package/src/grid/actions/scroll.d.ts +114 -0
- package/src/grid/actions/search.d.ts +72 -0
- package/src/grid/actions/selection.d.ts +481 -0
- package/src/grid/actions/show-hide.d.ts +55 -0
- package/src/grid/actions/sort.d.ts +138 -0
- package/src/grid/actions/toolbar.d.ts +84 -0
- package/src/grid/actions/virtual-scroll.d.ts +23 -0
- package/src/grid/actions.d.ts +39 -0
- package/src/grid/aggregate.d.ts +4 -0
- package/src/grid/base/constant.d.ts +559 -0
- package/src/grid/base/enum.d.ts +704 -0
- package/src/grid/base/grid.d.ts +3627 -0
- package/src/grid/base/interface.d.ts +2567 -0
- package/src/grid/base/string-literals.d.ts +87 -0
- package/src/grid/base/type.d.ts +42 -0
- package/src/grid/base/util.d.ts +747 -0
- package/src/grid/base.d.ts +11 -0
- package/src/grid/column-chooser.d.ts +4 -0
- package/src/grid/column-menu.d.ts +4 -0
- package/src/grid/command-column.d.ts +4 -0
- package/src/grid/common/checkbox-filter-base.d.ts +137 -0
- package/src/grid/common/excel-filter-base.d.ts +115 -0
- package/src/grid/common/filter-interface.d.ts +42 -0
- package/src/grid/common/index.d.ts +5 -0
- package/src/grid/common.d.ts +6 -0
- package/src/grid/context-menu.d.ts +4 -0
- package/src/grid/detail-row.d.ts +4 -0
- package/src/grid/edit.d.ts +4 -0
- package/src/grid/excel-export.d.ts +4 -0
- package/src/grid/filter.d.ts +4 -0
- package/src/grid/foreign-key.d.ts +4 -0
- package/src/grid/freeze.d.ts +4 -0
- package/src/grid/group.d.ts +4 -0
- package/src/grid/index.d.ts +9 -0
- package/src/grid/infinite-scroll.d.ts +4 -0
- package/src/grid/lazy-load-group.d.ts +4 -0
- package/src/grid/logger.d.ts +4 -0
- package/src/grid/models/aggregate.d.ts +138 -0
- package/src/grid/models/cell.d.ts +38 -0
- package/src/grid/models/column-chooser-settings.d.ts +20 -0
- package/src/grid/models/column.d.ts +1122 -0
- package/src/grid/models/models.d.ts +7 -0
- package/src/grid/models/page-settings.d.ts +55 -0
- package/src/grid/models/row.d.ts +62 -0
- package/src/grid/models.d.ts +7 -0
- package/src/grid/page.d.ts +4 -0
- package/src/grid/pdf-export.d.ts +4 -0
- package/src/grid/renderer/autocomplete-edit-cell.d.ts +20 -0
- package/src/grid/renderer/batch-edit-renderer.d.ts +23 -0
- package/src/grid/renderer/boolean-edit-cell.d.ts +30 -0
- package/src/grid/renderer/boolean-filter-ui.d.ts +42 -0
- package/src/grid/renderer/caption-cell-renderer.d.ts +45 -0
- package/src/grid/renderer/cell-merge-renderer.d.ts +23 -0
- package/src/grid/renderer/cell-renderer.d.ts +91 -0
- package/src/grid/renderer/column-freeze-renderer.d.ts +166 -0
- package/src/grid/renderer/combobox-edit-cell.d.ts +19 -0
- package/src/grid/renderer/command-column-renderer.d.ts +31 -0
- package/src/grid/renderer/content-renderer.d.ts +210 -0
- package/src/grid/renderer/date-filter-ui.d.ts +31 -0
- package/src/grid/renderer/datepicker-edit-cell.d.ts +20 -0
- package/src/grid/renderer/default-edit-cell.d.ts +22 -0
- package/src/grid/renderer/detail-expand-cell-renderer.d.ts +21 -0
- package/src/grid/renderer/detail-header-indent-renderer.d.ts +20 -0
- package/src/grid/renderer/dialog-edit-renderer.d.ts +39 -0
- package/src/grid/renderer/dropdown-edit-cell.d.ts +32 -0
- package/src/grid/renderer/edit-cell-base.d.ts +25 -0
- package/src/grid/renderer/edit-renderer.d.ts +35 -0
- package/src/grid/renderer/expand-cell-renderer.d.ts +28 -0
- package/src/grid/renderer/filter-cell-renderer.d.ts +36 -0
- package/src/grid/renderer/filter-menu-operator.d.ts +43 -0
- package/src/grid/renderer/filter-menu-renderer.d.ts +65 -0
- package/src/grid/renderer/footer-renderer.d.ts +50 -0
- package/src/grid/renderer/freeze-renderer.d.ts +142 -0
- package/src/grid/renderer/group-lazy-load-renderer.d.ts +177 -0
- package/src/grid/renderer/header-cell-renderer.d.ts +54 -0
- package/src/grid/renderer/header-indent-renderer.d.ts +20 -0
- package/src/grid/renderer/header-renderer.d.ts +156 -0
- package/src/grid/renderer/indent-cell-renderer.d.ts +20 -0
- package/src/grid/renderer/inline-edit-renderer.d.ts +39 -0
- package/src/grid/renderer/inputmask-edit-cell.d.ts +18 -0
- package/src/grid/renderer/multiselect-edit-cell.d.ts +18 -0
- package/src/grid/renderer/number-filter-ui.d.ts +30 -0
- package/src/grid/renderer/numeric-edit-cell.d.ts +27 -0
- package/src/grid/renderer/render.d.ts +104 -0
- package/src/grid/renderer/responsive-dialog-renderer.d.ts +84 -0
- package/src/grid/renderer/row-drag-drop-renderer.d.ts +20 -0
- package/src/grid/renderer/row-drag-header-indent-render.d.ts +20 -0
- package/src/grid/renderer/row-renderer.d.ts +55 -0
- package/src/grid/renderer/stacked-cell-renderer.d.ts +23 -0
- package/src/grid/renderer/string-filter-ui.d.ts +39 -0
- package/src/grid/renderer/summary-cell-renderer.d.ts +15 -0
- package/src/grid/renderer/template-edit-cell.d.ts +13 -0
- package/src/grid/renderer/timepicker-edit-cell.d.ts +18 -0
- package/src/grid/renderer/toggleswitch-edit-cell.d.ts +27 -0
- package/src/grid/renderer/virtual-content-renderer.d.ts +221 -0
- package/src/grid/renderer/virtual-freeze-renderer.d.ts +382 -0
- package/src/grid/renderer.d.ts +42 -0
- package/src/grid/reorder.d.ts +4 -0
- package/src/grid/resize.d.ts +4 -0
- package/src/grid/row-reorder.d.ts +4 -0
- package/src/grid/selection.d.ts +4 -0
- package/src/grid/services/aria-service.d.ts +34 -0
- package/src/grid/services/cell-render-factory.d.ts +14 -0
- package/src/grid/services/focus-strategy.d.ts +192 -0
- package/src/grid/services/freeze-row-model-generator.d.ts +14 -0
- package/src/grid/services/group-model-generator.d.ts +68 -0
- package/src/grid/services/intersection-observer.d.ts +23 -0
- package/src/grid/services/renderer-factory.d.ts +14 -0
- package/src/grid/services/row-model-generator.d.ts +41 -0
- package/src/grid/services/service-locator.d.ts +14 -0
- package/src/grid/services/summary-model-generator.d.ts +43 -0
- package/src/grid/services/value-formatter.d.ts +16 -0
- package/src/grid/services/virtual-row-model-generator.d.ts +55 -0
- package/src/grid/services/width-controller.d.ts +35 -0
- package/src/grid/services.d.ts +11 -0
- package/src/grid/sort.d.ts +4 -0
- package/src/grid/toolbar.d.ts +4 -0
- package/src/grid/virtual-scroll.d.ts +4 -0
- package/src/index.d.ts +5 -0
- package/src/pager/external-message.d.ts +55 -0
- package/src/pager/index.d.ts +9 -0
- package/src/pager/numeric-container.d.ts +78 -0
- package/src/pager/pager-dropdown.d.ts +68 -0
- package/src/pager/pager-message.d.ts +50 -0
- package/src/pager/pager.d.ts +341 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FilterSettings } from '../base/grid';
|
|
2
|
+
import { IGrid, IFilterArgs, FilterUI } from '../base/interface';
|
|
3
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
4
|
+
import { ExcelFilterBase } from '../common/excel-filter-base';
|
|
5
|
+
import { CheckBoxFilter } from './checkbox-filter';
|
|
6
|
+
import { Column } from '../models/column';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
* `ExcelFilter` module is used to handle filtering action.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ExcelFilter extends CheckBoxFilter {
|
|
12
|
+
protected parent: IGrid;
|
|
13
|
+
excelFilterBase: ExcelFilterBase;
|
|
14
|
+
isresetFocus: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Constructor for excelbox filtering module
|
|
17
|
+
*
|
|
18
|
+
* @param {IGrid} parent - specifies the IGrid
|
|
19
|
+
* @param {FilterSettings} filterSettings - specifies the Filtersettings
|
|
20
|
+
* @param {ServiceLocator} serviceLocator - specifies the serviceLocator
|
|
21
|
+
* @param {object} customFltrOperators - specifies the customFltrOperators
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
constructor(parent?: IGrid, filterSettings?: FilterSettings, serviceLocator?: ServiceLocator, customFltrOperators?: Object);
|
|
25
|
+
/**
|
|
26
|
+
* To destroy the excel filter.
|
|
27
|
+
*
|
|
28
|
+
* @returns {void}
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
destroy(): void;
|
|
32
|
+
openDialog(options: IFilterArgs): void;
|
|
33
|
+
closeDialog(): void;
|
|
34
|
+
protected clearCustomFilter(col: Column): void;
|
|
35
|
+
protected closeResponsiveDialog(isCustomFilter?: boolean): void;
|
|
36
|
+
protected applyCustomFilter(args?: {
|
|
37
|
+
col: Column;
|
|
38
|
+
isCustomFilter: boolean;
|
|
39
|
+
}): void;
|
|
40
|
+
filterByColumn(fieldName: string, firstOperator: string, firstValue: string | number | Date | boolean, predicate?: string, matchCase?: boolean, ignoreAccent?: boolean, secondOperator?: string, secondValue?: string | number | Date | boolean): void;
|
|
41
|
+
/**
|
|
42
|
+
* @returns {FilterUI} returns the filterUI
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
getFilterUIInfo(): FilterUI;
|
|
46
|
+
/**
|
|
47
|
+
* For internal use only - Get the module name.
|
|
48
|
+
*
|
|
49
|
+
* @returns {string} returns the module name
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
protected getModuleName(): string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Column } from './../models/column';
|
|
2
|
+
import { Row } from './../models/row';
|
|
3
|
+
import { IGrid, ExportHelperArgs, ForeignKeyFormat } from '../base/interface';
|
|
4
|
+
import { Query } from '@syncfusion/ej2-data';
|
|
5
|
+
import { Data } from '../actions/data';
|
|
6
|
+
import { Grid } from '../base/grid';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
* `ExportHelper` for `PdfExport` & `ExcelExport`
|
|
10
|
+
*/
|
|
11
|
+
export declare class ExportHelper {
|
|
12
|
+
parent: IGrid;
|
|
13
|
+
private colDepth;
|
|
14
|
+
private hideColumnInclude;
|
|
15
|
+
private foreignKeyData;
|
|
16
|
+
constructor(parent: IGrid, foreignKeyData?: {
|
|
17
|
+
[key: string]: Object[];
|
|
18
|
+
});
|
|
19
|
+
static getQuery(parent: IGrid, data: Data): Query;
|
|
20
|
+
getFData(value: string, column: Column): Object;
|
|
21
|
+
getGridRowModel(columns: Column[], dataSource: Object[], gObj: IGrid, startIndex?: number): Row<Column>[];
|
|
22
|
+
private generateCells;
|
|
23
|
+
getColumnData(gridObj: Grid): Promise<Object>;
|
|
24
|
+
getHeaders(columns: Column[], isHideColumnInclude?: boolean): {
|
|
25
|
+
rows: Row<Column>[];
|
|
26
|
+
columns: Column[];
|
|
27
|
+
};
|
|
28
|
+
getConvertedWidth(input: string): number;
|
|
29
|
+
private generateActualColumns;
|
|
30
|
+
private processHeaderCells;
|
|
31
|
+
private appendGridCells;
|
|
32
|
+
private generateCell;
|
|
33
|
+
private processColumns;
|
|
34
|
+
private getCellCount;
|
|
35
|
+
checkAndExport(gridPool: Object, globalResolve: Function): void;
|
|
36
|
+
failureHandler(gridPool: Object, childGridObj: IGrid, resolve: Function): Function;
|
|
37
|
+
createChildGrid(gObj: IGrid, row: Row<Column>, exportType: string, gridPool: Object): {
|
|
38
|
+
childGrid: IGrid;
|
|
39
|
+
element: HTMLElement;
|
|
40
|
+
};
|
|
41
|
+
getGridExportColumns(columns: Column[]): Column[];
|
|
42
|
+
/**
|
|
43
|
+
* Gets the foreignkey data.
|
|
44
|
+
*
|
|
45
|
+
* @returns {ForeignKeyFormat} returns the foreignkey data
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
getForeignKeyData(): ForeignKeyFormat;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
* `ExportValueFormatter` for `PdfExport` & `ExcelExport`
|
|
53
|
+
*/
|
|
54
|
+
export declare class ExportValueFormatter {
|
|
55
|
+
private internationalization;
|
|
56
|
+
private valueFormatter;
|
|
57
|
+
constructor(culture: string);
|
|
58
|
+
private returnFormattedValue;
|
|
59
|
+
/**
|
|
60
|
+
* Used to format the exporting cell value
|
|
61
|
+
*
|
|
62
|
+
* @param {ExportHelperArgs} args - Specifies cell details.
|
|
63
|
+
* @returns {string} returns formated value
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
formatCellValue(args: ExportHelperArgs): string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { FilterSettings } from '../base/grid';
|
|
2
|
+
import { IGrid, IAction, NotifyArgs, IFilterOperator, FilterUI } from '../base/interface';
|
|
3
|
+
import { PredicateModel } from '../base/grid-model';
|
|
4
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
5
|
+
import { Column } from '../models/column';
|
|
6
|
+
import { ResponsiveDialogRenderer } from '../renderer/responsive-dialog-renderer';
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* The `Filter` module is used to handle filtering action.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Filter implements IAction {
|
|
12
|
+
private filterSettings;
|
|
13
|
+
private element;
|
|
14
|
+
private value;
|
|
15
|
+
private predicate;
|
|
16
|
+
private operator;
|
|
17
|
+
private column;
|
|
18
|
+
private fieldName;
|
|
19
|
+
private matchCase;
|
|
20
|
+
private ignoreAccent;
|
|
21
|
+
private timer;
|
|
22
|
+
private filterStatusMsg;
|
|
23
|
+
private currentFilterObject;
|
|
24
|
+
private isRemove;
|
|
25
|
+
private contentRefresh;
|
|
26
|
+
private initialLoad;
|
|
27
|
+
private filterByMethod;
|
|
28
|
+
private refresh;
|
|
29
|
+
private values;
|
|
30
|
+
operators: Object;
|
|
31
|
+
private cellText;
|
|
32
|
+
private nextFlMenuOpen;
|
|
33
|
+
private refreshFilterValueFn;
|
|
34
|
+
private type;
|
|
35
|
+
/** @hidden */
|
|
36
|
+
filterModule: {
|
|
37
|
+
openDialog: Function;
|
|
38
|
+
closeDialog: Function;
|
|
39
|
+
destroy: Function;
|
|
40
|
+
isresetFocus: boolean;
|
|
41
|
+
getFilterUIInfo: Function;
|
|
42
|
+
clearCustomFilter: Function;
|
|
43
|
+
closeResponsiveDialog: Function;
|
|
44
|
+
applyCustomFilter: Function;
|
|
45
|
+
renderCheckBoxMenu?: Function;
|
|
46
|
+
afterRenderFilterUI?: Function;
|
|
47
|
+
};
|
|
48
|
+
/** @hidden */
|
|
49
|
+
filterOperators: IFilterOperator;
|
|
50
|
+
private fltrDlgDetails;
|
|
51
|
+
customOperators: Object;
|
|
52
|
+
/** @hidden */
|
|
53
|
+
skipNumberInput: string[];
|
|
54
|
+
skipStringInput: string[];
|
|
55
|
+
/** @hidden */
|
|
56
|
+
parent: IGrid;
|
|
57
|
+
/** @hidden */
|
|
58
|
+
serviceLocator: ServiceLocator;
|
|
59
|
+
private l10n;
|
|
60
|
+
private valueFormatter;
|
|
61
|
+
private actualPredicate;
|
|
62
|
+
prevFilterObject: PredicateModel;
|
|
63
|
+
filterObjIndex: number;
|
|
64
|
+
/** @hidden */
|
|
65
|
+
responsiveDialogRenderer: ResponsiveDialogRenderer;
|
|
66
|
+
menuOperator: {
|
|
67
|
+
[key: string]: Object;
|
|
68
|
+
}[];
|
|
69
|
+
private docClickHandler;
|
|
70
|
+
/**
|
|
71
|
+
* Constructor for Grid filtering module
|
|
72
|
+
*
|
|
73
|
+
* @param {IGrid} parent - specifies the IGrid
|
|
74
|
+
* @param {FilterSettings} filterSettings - specifies the filterSettings
|
|
75
|
+
* @param {ServiceLocator} serviceLocator - specifes the serviceLocator
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
constructor(parent?: IGrid, filterSettings?: FilterSettings, serviceLocator?: ServiceLocator);
|
|
79
|
+
/**
|
|
80
|
+
* To render filter bar when filtering enabled.
|
|
81
|
+
*
|
|
82
|
+
* @param {NotifyArgs} e - specifies the NotifyArgs
|
|
83
|
+
* @returns {void}
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
render(e?: NotifyArgs): void;
|
|
87
|
+
/**
|
|
88
|
+
* To show the responsive custom filter dialog
|
|
89
|
+
*
|
|
90
|
+
* @param {boolean} enable - specifes dialog open
|
|
91
|
+
* @returns {void}
|
|
92
|
+
* @hidden
|
|
93
|
+
*/
|
|
94
|
+
showCustomFilter(enable: boolean): void;
|
|
95
|
+
/**
|
|
96
|
+
* To create the filter module.
|
|
97
|
+
*
|
|
98
|
+
* @param {Column} col - specifies the filtering column name
|
|
99
|
+
* @returns {void}
|
|
100
|
+
* @hidden
|
|
101
|
+
*/
|
|
102
|
+
setFilterModel(col: Column): void;
|
|
103
|
+
/**
|
|
104
|
+
* To destroy the filter bar.
|
|
105
|
+
*
|
|
106
|
+
* @returns {void}
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
destroy(): void;
|
|
110
|
+
private setFullScreenDialog;
|
|
111
|
+
private generateRow;
|
|
112
|
+
private generateCells;
|
|
113
|
+
private generateCell;
|
|
114
|
+
/**
|
|
115
|
+
* To update filterSettings when applying filter.
|
|
116
|
+
*
|
|
117
|
+
* @returns {void}
|
|
118
|
+
* @hidden
|
|
119
|
+
*/
|
|
120
|
+
updateModel(): void;
|
|
121
|
+
private getFilteredColsIndexByField;
|
|
122
|
+
/**
|
|
123
|
+
* To trigger action complete event.
|
|
124
|
+
*
|
|
125
|
+
* @param {NotifyArgs} e - specifies the NotifyArgs
|
|
126
|
+
* @returns {void}
|
|
127
|
+
* @hidden
|
|
128
|
+
*/
|
|
129
|
+
onActionComplete(e: NotifyArgs): void;
|
|
130
|
+
private wireEvents;
|
|
131
|
+
private unWireEvents;
|
|
132
|
+
private enableAfterRender;
|
|
133
|
+
private refreshFilterValue;
|
|
134
|
+
private initialEnd;
|
|
135
|
+
/**
|
|
136
|
+
* @returns {void}
|
|
137
|
+
* @hidden
|
|
138
|
+
*/
|
|
139
|
+
addEventListener(): void;
|
|
140
|
+
/**
|
|
141
|
+
* @returns {void}
|
|
142
|
+
* @hidden
|
|
143
|
+
*/
|
|
144
|
+
removeEventListener(): void;
|
|
145
|
+
private refreshClearIcon;
|
|
146
|
+
private filterMenuClose;
|
|
147
|
+
/**
|
|
148
|
+
* Filters the Grid row by fieldName, filterOperator, and filterValue.
|
|
149
|
+
*
|
|
150
|
+
* @param {string} fieldName - Defines the field name of the filter column.
|
|
151
|
+
* @param {string} filterOperator - Defines the operator to filter records.
|
|
152
|
+
* @param {string | number | Date | boolean} filterValue - Defines the value which is used to filter records.
|
|
153
|
+
* @param {string} predicate - Defines the relationship of one filter query with another by using AND or OR predicate.
|
|
154
|
+
* @param {boolean} matchCase - If match case is set to true, then the filter records
|
|
155
|
+
* the exact match or <br> filters records that are case insensitive (uppercase and lowercase letters treated the same).
|
|
156
|
+
* @param {boolean} ignoreAccent - If ignoreAccent set to true, then filter ignores the diacritic characters or accents while filtering.
|
|
157
|
+
* @param {string} actualFilterValue - Defines the actual filter value for the filter column.
|
|
158
|
+
* @param {string} actualOperator - Defines the actual filter operator for the filter column.
|
|
159
|
+
* @returns {void}
|
|
160
|
+
*/
|
|
161
|
+
filterByColumn(fieldName: string, filterOperator: string, filterValue: string | number | Date | boolean | number[] | string[] | Date[] | boolean[], predicate?: string, matchCase?: boolean, ignoreAccent?: boolean, actualFilterValue?: Object, actualOperator?: Object): void;
|
|
162
|
+
private applyColumnFormat;
|
|
163
|
+
private skipUid;
|
|
164
|
+
private onPropertyChanged;
|
|
165
|
+
private refreshFilterSettings;
|
|
166
|
+
private updateFilterIcon;
|
|
167
|
+
private getFilterBarElement;
|
|
168
|
+
/**
|
|
169
|
+
* @private
|
|
170
|
+
* @returns {void}
|
|
171
|
+
*/
|
|
172
|
+
refreshFilter(): void;
|
|
173
|
+
/**
|
|
174
|
+
* Clears all the filtered rows of the Grid.
|
|
175
|
+
*
|
|
176
|
+
* @param {string[]} fields - returns the fields
|
|
177
|
+
* @returns {void}
|
|
178
|
+
*/
|
|
179
|
+
clearFiltering(fields?: string[]): void;
|
|
180
|
+
private checkAlreadyColFiltered;
|
|
181
|
+
private columnMenuFilter;
|
|
182
|
+
private filterDialogOpen;
|
|
183
|
+
/**
|
|
184
|
+
* Create filter dialog options
|
|
185
|
+
*
|
|
186
|
+
* @param {Column} col - Filtering column detail.
|
|
187
|
+
* @param {Element} target - Filter dialog target.
|
|
188
|
+
* @param {number} left - Filter dialog left position.
|
|
189
|
+
* @param {number} top - Filter dialog top position.
|
|
190
|
+
* @returns {Object} returns the created dialog options
|
|
191
|
+
* @hidden
|
|
192
|
+
*/
|
|
193
|
+
createOptions(col: Column, target: Element, left?: number, top?: number): Object;
|
|
194
|
+
/**
|
|
195
|
+
* Removes filtered column by field name.
|
|
196
|
+
*
|
|
197
|
+
* @param {string} field - Defines column field name to remove filter.
|
|
198
|
+
* @param {boolean} isClearFilterBar - Specifies whether the filter bar value needs to be cleared.
|
|
199
|
+
* @returns {void}
|
|
200
|
+
* @hidden
|
|
201
|
+
*/
|
|
202
|
+
removeFilteredColsByField(field: string, isClearFilterBar?: boolean): void;
|
|
203
|
+
/**
|
|
204
|
+
* For internal use only - Get the module name.
|
|
205
|
+
*
|
|
206
|
+
* @returns {string} returns the module name
|
|
207
|
+
* @private
|
|
208
|
+
*/
|
|
209
|
+
protected getModuleName(): string;
|
|
210
|
+
private keyUpHandlerImmediate;
|
|
211
|
+
private keyUpHandler;
|
|
212
|
+
private updateCrossIcon;
|
|
213
|
+
private updateFilterMsg;
|
|
214
|
+
private setFormatForFlColumn;
|
|
215
|
+
private checkForSkipInput;
|
|
216
|
+
private processFilter;
|
|
217
|
+
private startTimer;
|
|
218
|
+
private stopTimer;
|
|
219
|
+
private onTimerTick;
|
|
220
|
+
private validateFilterValue;
|
|
221
|
+
private getOperator;
|
|
222
|
+
private columnPositionChanged;
|
|
223
|
+
private getLocalizedCustomOperators;
|
|
224
|
+
/**
|
|
225
|
+
* @param {string} field - specifies the field name
|
|
226
|
+
* @returns {void}
|
|
227
|
+
* @hidden
|
|
228
|
+
*/
|
|
229
|
+
openMenuByField(field: string): void;
|
|
230
|
+
private filterIconClickHandler;
|
|
231
|
+
private clickHandler;
|
|
232
|
+
private filterHandler;
|
|
233
|
+
private updateFilter;
|
|
234
|
+
private refreshFilterIcon;
|
|
235
|
+
private addFilteredClass;
|
|
236
|
+
/**
|
|
237
|
+
* @hidden
|
|
238
|
+
* @returns {FilterUI} returns the FilterUI
|
|
239
|
+
*/
|
|
240
|
+
getFilterUIInfo(): FilterUI;
|
|
241
|
+
/**
|
|
242
|
+
* @param {string} field - specifies the field name
|
|
243
|
+
* @returns {string} returns the operator name
|
|
244
|
+
* @hidden
|
|
245
|
+
*/
|
|
246
|
+
private getOperatorName;
|
|
247
|
+
/**
|
|
248
|
+
* Renders checkbox items in Menu filter dialog.
|
|
249
|
+
*
|
|
250
|
+
* @returns {void}
|
|
251
|
+
*/
|
|
252
|
+
renderCheckboxOnFilterMenu(): HTMLElement;
|
|
253
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IGrid } from '../base/interface';
|
|
2
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
3
|
+
import { Data } from './data';
|
|
4
|
+
/**
|
|
5
|
+
* `ForeignKey` module is used to handle foreign key column's actions.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ForeignKey extends Data {
|
|
8
|
+
constructor(parent: IGrid, serviceLocator: ServiceLocator);
|
|
9
|
+
private initEvent;
|
|
10
|
+
private initForeignKeyColumns;
|
|
11
|
+
private eventfPromise;
|
|
12
|
+
private getForeignKeyData;
|
|
13
|
+
private generateQueryFormData;
|
|
14
|
+
private genarateQuery;
|
|
15
|
+
private genarateColumnQuery;
|
|
16
|
+
private isFiltered;
|
|
17
|
+
protected getModuleName(): string;
|
|
18
|
+
protected destroy(): void;
|
|
19
|
+
private destroyEvent;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IGrid, IAction } from '../base/interface';
|
|
2
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
3
|
+
/**
|
|
4
|
+
* `Freeze` module is used to handle Frozen rows and columns.
|
|
5
|
+
*
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare class Freeze implements IAction {
|
|
9
|
+
private locator;
|
|
10
|
+
private parent;
|
|
11
|
+
constructor(parent: IGrid, locator?: ServiceLocator);
|
|
12
|
+
getModuleName(): string;
|
|
13
|
+
addEventListener(): void;
|
|
14
|
+
private instantiateRenderer;
|
|
15
|
+
removeEventListener(): void;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { GroupSettingsModel } from '../base/grid-model';
|
|
2
|
+
import { ServiceLocator } from '../services/service-locator';
|
|
3
|
+
import { IGrid, IAction, NotifyArgs } from '../base/interface';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* The `Group` module is used to handle group action.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Group implements IAction {
|
|
9
|
+
private sortRequired;
|
|
10
|
+
/** @hidden */
|
|
11
|
+
groupSettings: GroupSettingsModel;
|
|
12
|
+
/** @hidden */
|
|
13
|
+
element: HTMLElement;
|
|
14
|
+
/** @hidden */
|
|
15
|
+
groupSortFocus: boolean;
|
|
16
|
+
/** @hidden */
|
|
17
|
+
groupCancelFocus: boolean;
|
|
18
|
+
private colName;
|
|
19
|
+
private column;
|
|
20
|
+
private isAppliedGroup;
|
|
21
|
+
private isAppliedUnGroup;
|
|
22
|
+
private reorderingColumns;
|
|
23
|
+
private groupGenerator;
|
|
24
|
+
private visualElement;
|
|
25
|
+
private helper;
|
|
26
|
+
private dragStart;
|
|
27
|
+
private drag;
|
|
28
|
+
private dragStop;
|
|
29
|
+
private animateDropper;
|
|
30
|
+
private addLabel;
|
|
31
|
+
private rearrangeGroup;
|
|
32
|
+
private drop;
|
|
33
|
+
private parent;
|
|
34
|
+
private serviceLocator;
|
|
35
|
+
private contentRefresh;
|
|
36
|
+
private sortedColumns;
|
|
37
|
+
private l10n;
|
|
38
|
+
private aria;
|
|
39
|
+
private focus;
|
|
40
|
+
/**
|
|
41
|
+
* Constructor for Grid group module
|
|
42
|
+
*
|
|
43
|
+
* @param {IGrid} parent - specifies the IGrid
|
|
44
|
+
* @param {GroupSettingsModel} groupSettings - specifies the GroupSettingsModel
|
|
45
|
+
* @param {string[]} sortedColumns - specifies the sortedColumns
|
|
46
|
+
* @param {ServiceLocator} serviceLocator - specifies the serviceLocator
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
constructor(parent?: IGrid, groupSettings?: GroupSettingsModel, sortedColumns?: string[], serviceLocator?: ServiceLocator);
|
|
50
|
+
private columnDrag;
|
|
51
|
+
private columnDragStart;
|
|
52
|
+
private columnDrop;
|
|
53
|
+
/**
|
|
54
|
+
* @returns {void}
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
addEventListener(): void;
|
|
58
|
+
/**
|
|
59
|
+
* @returns {void}
|
|
60
|
+
* @hidden
|
|
61
|
+
*/
|
|
62
|
+
removeEventListener(): void;
|
|
63
|
+
private initialEnd;
|
|
64
|
+
private keyPressHandler;
|
|
65
|
+
/**
|
|
66
|
+
* @returns {Element[]} - Return the focusable grouping items
|
|
67
|
+
* @hidden */
|
|
68
|
+
getFocusableGroupedItems(): Element[];
|
|
69
|
+
private wireEvent;
|
|
70
|
+
private unWireEvent;
|
|
71
|
+
private onFocusIn;
|
|
72
|
+
private onFocusOut;
|
|
73
|
+
private addOrRemoveFocus;
|
|
74
|
+
private clickHandler;
|
|
75
|
+
private unGroupFromTarget;
|
|
76
|
+
private toogleGroupFromHeader;
|
|
77
|
+
private applySortFromTarget;
|
|
78
|
+
/**
|
|
79
|
+
* Expands or collapses grouped rows by target element.
|
|
80
|
+
*
|
|
81
|
+
* @param {Element} target - Defines the target element of the grouped row.
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
84
|
+
expandCollapseRows(target: Element): void;
|
|
85
|
+
private updateVirtualRows;
|
|
86
|
+
private expandCollapse;
|
|
87
|
+
/**
|
|
88
|
+
* Expands all the grouped rows of the Grid.
|
|
89
|
+
*
|
|
90
|
+
* @returns {void}
|
|
91
|
+
*/
|
|
92
|
+
expandAll(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Collapses all the grouped rows of the Grid.
|
|
95
|
+
*
|
|
96
|
+
* @returns {void}
|
|
97
|
+
*/
|
|
98
|
+
collapseAll(): void;
|
|
99
|
+
/**
|
|
100
|
+
* The function is used to render grouping
|
|
101
|
+
*
|
|
102
|
+
* @returns {void}
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
render(): void;
|
|
106
|
+
private renderGroupDropArea;
|
|
107
|
+
private updateGroupDropArea;
|
|
108
|
+
private initDragAndDrop;
|
|
109
|
+
private initializeGHeaderDrag;
|
|
110
|
+
private initializeGHeaderDrop;
|
|
111
|
+
/**
|
|
112
|
+
* Groups a column by column name.
|
|
113
|
+
*
|
|
114
|
+
* @param {string} columnName - Defines the column name to group.
|
|
115
|
+
* @returns {void}
|
|
116
|
+
*/
|
|
117
|
+
groupColumn(columnName: string): void;
|
|
118
|
+
/**
|
|
119
|
+
* Ungroups a column by column name.
|
|
120
|
+
*
|
|
121
|
+
* @param {string} columnName - Defines the column name to ungroup.
|
|
122
|
+
* @returns {void}
|
|
123
|
+
*/
|
|
124
|
+
ungroupColumn(columnName: string): void;
|
|
125
|
+
/**
|
|
126
|
+
* The function used to update groupSettings
|
|
127
|
+
*
|
|
128
|
+
* @returns {void}
|
|
129
|
+
* @hidden
|
|
130
|
+
*/
|
|
131
|
+
updateModel(): void;
|
|
132
|
+
/**
|
|
133
|
+
* The function used to trigger onActionComplete
|
|
134
|
+
*
|
|
135
|
+
* @param {NotifyArgs} e - specifies the NotifyArgs
|
|
136
|
+
* @returns {void}
|
|
137
|
+
* @hidden
|
|
138
|
+
*/
|
|
139
|
+
onActionComplete(e: NotifyArgs): void;
|
|
140
|
+
private groupAddSortingQuery;
|
|
141
|
+
private createElement;
|
|
142
|
+
private addColToGroupDrop;
|
|
143
|
+
private createSeparator;
|
|
144
|
+
private refreshToggleBtn;
|
|
145
|
+
private removeColFromGroupDrop;
|
|
146
|
+
private onPropertyChanged;
|
|
147
|
+
private updateGroupedColumn;
|
|
148
|
+
private updateButtonVisibility;
|
|
149
|
+
private enableAfterRender;
|
|
150
|
+
/**
|
|
151
|
+
* To destroy the reorder
|
|
152
|
+
*
|
|
153
|
+
* @returns {void}
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
destroy(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Clears all the grouped columns of the Grid.
|
|
159
|
+
*
|
|
160
|
+
* @returns {void}
|
|
161
|
+
*/
|
|
162
|
+
clearGrouping(): void;
|
|
163
|
+
/**
|
|
164
|
+
* For internal use only - Get the module name.
|
|
165
|
+
*
|
|
166
|
+
* @returns {string} returns the module name
|
|
167
|
+
* @private
|
|
168
|
+
*/
|
|
169
|
+
protected getModuleName(): string;
|
|
170
|
+
private refreshSortIcons;
|
|
171
|
+
private getGHeaderCell;
|
|
172
|
+
private onGroupAggregates;
|
|
173
|
+
private iterateGroupAggregates;
|
|
174
|
+
updateExpand(args: {
|
|
175
|
+
uid?: string;
|
|
176
|
+
isExpand?: boolean;
|
|
177
|
+
}): void;
|
|
178
|
+
}
|