igniteui-webcomponents-grids 7.1.0 → 7.2.0-beta.1
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/custom-elements.json +24487 -10990
- package/grids/3rdpartylicenses.txt +158 -524
- package/grids/combined.js +63752 -62828
- package/grids/lib/igc-action-strip-component.d.ts +0 -39
- package/grids/lib/igc-base-exporter.d.ts +1 -25
- package/grids/lib/igc-base-toolbar-directive.d.ts +0 -1
- package/grids/lib/igc-boolean-filtering-operand.d.ts +0 -2
- package/grids/lib/igc-column-component.d.ts +0 -489
- package/grids/lib/igc-column-exporting-event-args.d.ts +0 -5
- package/grids/lib/igc-column-group-component.d.ts +0 -55
- package/grids/lib/igc-column-layout-component.d.ts +0 -12
- package/grids/lib/igc-column-toggled-event-args.d.ts +1 -1
- package/grids/lib/igc-columns-auto-generated-event-args.d.ts +0 -2
- package/grids/lib/igc-csv-exporter-options.d.ts +0 -10
- package/grids/lib/igc-csv-exporter-service.d.ts +1 -23
- package/grids/lib/igc-data-clone-strategy.d.ts +0 -1
- package/grids/lib/igc-date-filtering-operand.d.ts +0 -2
- package/grids/lib/igc-date-summary-operand.d.ts +1 -38
- package/grids/lib/igc-dimensions-change.d.ts +1 -0
- package/grids/lib/igc-excel-exporter-options.d.ts +0 -27
- package/grids/lib/igc-excel-exporter-service.d.ts +1 -22
- package/grids/lib/igc-exporter-event-args.d.ts +12 -16
- package/grids/lib/igc-exporter-options-base.d.ts +4 -63
- package/grids/lib/igc-expression-tree.d.ts +1 -0
- package/grids/lib/igc-field-type.d.ts +0 -2
- package/grids/lib/igc-filtering-expressions-tree.d.ts +2 -0
- package/grids/lib/igc-filtering-operand.d.ts +0 -4
- package/grids/lib/igc-filtering-operation.d.ts +0 -2
- package/grids/lib/igc-grid-actions-base-directive.d.ts +0 -6
- package/grids/lib/igc-grid-base-component.d.ts +305 -0
- package/grids/lib/igc-grid-base-directive.d.ts +28 -1131
- package/grids/lib/igc-grid-component.d.ts +18 -512
- package/grids/lib/igc-grid-created-event-args.d.ts +4 -4
- package/grids/lib/igc-grid-editing-actions-component.d.ts +0 -7
- package/grids/lib/igc-grid-pinning-actions-component.d.ts +0 -12
- package/grids/lib/igc-grid-resource-strings.d.ts +1 -0
- package/grids/lib/igc-grid-state-base-directive.d.ts +0 -6
- package/grids/lib/igc-grid-state-component.d.ts +0 -5
- package/grids/lib/igc-grid-toolbar-actions-component.d.ts +0 -10
- package/grids/lib/igc-grid-toolbar-advanced-filtering-component.d.ts +0 -10
- package/grids/lib/igc-grid-toolbar-component.d.ts +0 -14
- package/grids/lib/igc-grid-toolbar-export-event-args.d.ts +2 -2
- package/grids/lib/igc-grid-toolbar-exporter-component.d.ts +0 -8
- package/grids/lib/igc-grid-toolbar-hiding-component.d.ts +0 -9
- package/grids/lib/igc-grid-toolbar-pinning-component.d.ts +0 -9
- package/grids/lib/igc-grid-toolbar-title-component.d.ts +0 -8
- package/grids/lib/igc-hierarchical-grid-base-component.d.ts +156 -0
- package/grids/lib/igc-hierarchical-grid-base-directive.d.ts +0 -20
- package/grids/lib/igc-hierarchical-grid-component.d.ts +28 -172
- package/grids/lib/igc-number-filtering-operand.d.ts +0 -2
- package/grids/lib/igc-number-summary-operand.d.ts +1 -53
- package/grids/lib/igc-overlay-outlet-directive.d.ts +0 -3
- package/grids/lib/igc-paginator-component.d.ts +2 -81
- package/grids/lib/igc-pinning-config.d.ts +2 -0
- package/grids/lib/igc-pivot-aggregation.d.ts +19 -0
- package/grids/lib/igc-pivot-aggregator.d.ts +3 -2
- package/grids/lib/igc-pivot-data-selector-component.d.ts +0 -87
- package/grids/lib/igc-pivot-date-dimension.d.ts +0 -3
- package/grids/lib/igc-pivot-grid-component.d.ts +0 -163
- package/grids/lib/igc-pivot-value.d.ts +1 -1
- package/grids/lib/igc-position-settings.d.ts +4 -0
- package/grids/lib/igc-position-strategy.d.ts +1 -4
- package/grids/lib/igc-query-builder-component.d.ts +1 -14
- package/grids/lib/igc-query-builder-header-component.d.ts +1 -13
- package/grids/lib/igc-row-data-cancelable-event-args.d.ts +28 -0
- package/grids/lib/igc-row-directive.d.ts +1 -55
- package/grids/lib/igc-row-island-base-component.d.ts +76 -0
- package/grids/lib/igc-row-island-component.d.ts +68 -1132
- package/grids/lib/igc-scroll-strategy.d.ts +1 -7
- package/grids/lib/igc-string-filtering-operand.d.ts +0 -4
- package/grids/lib/igc-summary-operand.d.ts +1 -33
- package/grids/lib/igc-summary-result.d.ts +0 -9
- package/grids/lib/igc-time-summary-operand.d.ts +0 -11
- package/grids/lib/igc-tree-grid-base-component.d.ts +226 -0
- package/grids/lib/igc-tree-grid-component.d.ts +23 -341
- package/grids/lib/igc-validation-errors.d.ts +4 -0
- package/grids/lib/index.d.ts +60 -55
- package/grids/lib/pivot-row-layout-type.d.ts +1 -1
- package/grids/lib/pivot-summary-position.d.ts +1 -1
- package/grids/themes/dark/bootstrap.css +1 -1
- package/grids/themes/dark/fluent.css +1 -1
- package/grids/themes/dark/indigo.css +1 -1
- package/grids/themes/dark/material.css +1 -1
- package/grids/themes/light/bootstrap.css +1 -1
- package/grids/themes/light/fluent.css +1 -1
- package/grids/themes/light/indigo.css +1 -1
- package/grids/themes/light/material.css +1 -1
- package/package.json +1 -1
- package/vscode.html-custom-data.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { IgcGridBaseComponent } from './igc-grid-base-component';
|
|
3
3
|
import { IgcColumnComponent } from './igc-column-component';
|
|
4
4
|
import { IgcColumnGroupComponent } from './igc-column-group-component';
|
|
5
5
|
import { IgcColumnLayoutComponent } from './igc-column-layout-component';
|
|
@@ -13,20 +13,10 @@ import { IgcGridToolbarPinningComponent } from './igc-grid-toolbar-pinning-compo
|
|
|
13
13
|
import { IgcActionStripComponent } from './igc-action-strip-component';
|
|
14
14
|
import { IgcGridEditingActionsComponent } from './igc-grid-editing-actions-component';
|
|
15
15
|
import { IgcGridPinningActionsComponent } from './igc-grid-pinning-actions-component';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { IgcGroupByExpandState } from './igc-group-by-expand-state';
|
|
19
|
-
import { IgcGroupingDoneEventArgs } from './igc-grouping-done-event-args';
|
|
20
|
-
import { IgcRenderFunction } from './common';
|
|
21
|
-
import { IgcGridMasterDetailContext } from './igc-grid-master-detail-context';
|
|
22
|
-
import { IgcGroupByRecord } from './igc-group-by-record';
|
|
23
|
-
import { IgcGridGroupingStrategy } from './igc-grid-grouping-strategy';
|
|
24
|
-
import { IgcGroupByRowSelectorTemplateContext } from './igc-group-by-row-selector-template-context';
|
|
25
|
-
import { IgcGroupByRowTemplateContext } from './igc-group-by-row-template-context';
|
|
26
|
-
import { IgcCellType } from './igc-cell-type';
|
|
27
|
-
import { IgcRowType } from './igc-row-type';
|
|
16
|
+
import { IgcColumnsAutoGeneratedEventArgs } from './igc-columns-auto-generated-event-args';
|
|
17
|
+
import { IgcActionStripToken } from './igc-action-strip-token';
|
|
28
18
|
import { EventEmitterMixin, LitElement, Constructor, AbstractConstructor } from './common';
|
|
29
|
-
import {
|
|
19
|
+
import { IgcGridBaseComponentEventMap } from './igc-grid-base-component';
|
|
30
20
|
|
|
31
21
|
|
|
32
22
|
|
|
@@ -48,25 +38,9 @@ import { IgcGridBaseDirectiveEventMap } from './igc-grid-base-directive';
|
|
|
48
38
|
/* blazorIndirectRender */
|
|
49
39
|
/**
|
|
50
40
|
* Grid provides a way to present and manipulate tabular data.
|
|
51
|
-
*
|
|
52
|
-
* @igxModule IgxGridModule
|
|
53
|
-
* @igxGroup Grids & Lists
|
|
54
|
-
* @igxKeywords grid, table
|
|
55
|
-
* @igxTheme igx-grid-theme
|
|
56
|
-
* @remarks
|
|
57
|
-
* The Ignite UI Grid is used for presenting and manipulating tabular data in the simplest way possible. Once data
|
|
58
|
-
* has been bound, it can be manipulated through filtering, sorting & editing operations.
|
|
59
|
-
* @example
|
|
60
|
-
* ```html
|
|
61
|
-
* <igx-grid [data]="employeeData" [autoGenerate]="false">
|
|
62
|
-
* <igx-column field="first" header="First Name"></igx-column>
|
|
63
|
-
* <igx-column field="last" header="Last Name"></igx-column>
|
|
64
|
-
* <igx-column field="role" header="Role"></igx-column>
|
|
65
|
-
* </igx-grid>
|
|
66
|
-
* ```
|
|
67
41
|
*/
|
|
68
42
|
|
|
69
|
-
export declare class IgcGridComponent extends EventEmitterMixin<IgcGridComponentEventMap,
|
|
43
|
+
export declare class IgcGridComponent extends EventEmitterMixin<IgcGridComponentEventMap, Constructor<IgcGridBaseComponent>>(IgcGridBaseComponent)
|
|
70
44
|
|
|
71
45
|
{
|
|
72
46
|
|
|
@@ -77,494 +51,26 @@ import { IgcGridBaseDirectiveEventMap } from './igc-grid-base-directive';
|
|
|
77
51
|
|
|
78
52
|
|
|
79
53
|
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*/
|
|
90
|
-
public set groupsExpanded(value: boolean);
|
|
91
|
-
public get groupsExpanded(): boolean;
|
|
54
|
+
/** @hidden @internal */
|
|
55
|
+
/* blazorInclude */
|
|
56
|
+
/* contentChildren */
|
|
57
|
+
/* blazorTreatAsCollection */
|
|
58
|
+
/* blazorCollectionName: ActionStripCollection */
|
|
59
|
+
/* blazorCollectionItemName: ActionStrip */
|
|
60
|
+
/* ngQueryListName: actionStripComponents */
|
|
61
|
+
public set actionStripComponents(value: IgcActionStripToken[]);
|
|
62
|
+
public get actionStripComponents(): IgcActionStripToken[];
|
|
92
63
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Gets/Sets the template that will be rendered as a GroupBy drop area.
|
|
97
|
-
*
|
|
98
|
-
* @remarks
|
|
99
|
-
* The grid needs to have at least one groupable column in order the GroupBy area to be displayed.
|
|
100
|
-
* @example
|
|
101
|
-
* ```html
|
|
102
|
-
* <igx-grid [dropAreaTemplate]="dropAreaRef">
|
|
103
|
-
* </igx-grid>
|
|
104
|
-
* <ng-template #myDropArea>
|
|
105
|
-
* <span> Custom drop area! </span>
|
|
106
|
-
* </ng-template>
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
public set dropAreaTemplate(value: IgcRenderFunction<void>);
|
|
110
|
-
public get dropAreaTemplate(): IgcRenderFunction<void>;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Returns a reference to the master-detail template.
|
|
117
|
-
* ```typescript
|
|
118
|
-
* let detailTemplate = this.grid.detailTemplate;
|
|
119
|
-
* ```
|
|
120
|
-
*
|
|
121
|
-
* @memberof IgxColumnComponent
|
|
122
|
-
*/
|
|
123
|
-
public set detailTemplate(value: IgcRenderFunction<IgcGridMasterDetailContext>);
|
|
124
|
-
public get detailTemplate(): IgcRenderFunction<IgcGridMasterDetailContext>;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Gets/Sets the value of the `id` attribute.
|
|
130
|
-
*
|
|
131
|
-
* @remarks
|
|
132
|
-
* If not provided it will be automatically generated.
|
|
133
|
-
* @example
|
|
134
|
-
* ```html
|
|
135
|
-
* <igx-grid [id]="'igx-grid-1'" [data]="Data" [autoGenerate]="true"></igx-grid>
|
|
136
|
-
* ```
|
|
137
|
-
*/
|
|
138
|
-
public set id(value: string);
|
|
139
|
-
public get id(): string;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Gets the hierarchical representation of the group by records.
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* ```typescript
|
|
147
|
-
* let groupRecords = this.grid.groupsRecords;
|
|
148
|
-
* ```
|
|
149
|
-
*/
|
|
150
|
-
public get groupsRecords(): IgcGroupByRecord[];
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Gets/Sets the array of data that populates the component.
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* ```html
|
|
159
|
-
* <igx-grid [data]="Data" [autoGenerate]="true"></igx-grid>
|
|
160
|
-
* ```
|
|
161
|
-
*/
|
|
162
|
-
/* treatAsRef */
|
|
163
|
-
public set data(value: any[]);
|
|
164
|
-
public get data(): any[];
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Gets/Sets the total number of records in the data source.
|
|
170
|
-
*
|
|
171
|
-
* @remarks
|
|
172
|
-
* This property is required for remote grid virtualization to function when it is bound to remote data.
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* const itemCount = this.grid1.totalItemCount;
|
|
176
|
-
* this.grid1.totalItemCount = 55;
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
public set totalItemCount(value: number);
|
|
180
|
-
public get totalItemCount(): number;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
/* mustSetInCodePlatforms: WebComponents;Blazor;React */
|
|
185
|
-
/**
|
|
186
|
-
* Gets/Sets the group by state.
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```typescript
|
|
190
|
-
* let groupByState = this.grid.groupingExpressions;
|
|
191
|
-
* this.grid.groupingExpressions = [...];
|
|
192
|
-
* ```
|
|
193
|
-
* @remarks
|
|
194
|
-
* Supports two-way data binding.
|
|
195
|
-
* @example
|
|
196
|
-
* ```html
|
|
197
|
-
* <igx-grid #grid [data]="Data" [autoGenerate]="true" [(groupingExpressions)]="model.groupingExpressions"></igx-grid>
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
public set groupingExpressions(value: IgcGroupingExpression[]);
|
|
201
|
-
public get groupingExpressions(): IgcGroupingExpression[];
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Gets/Sets a list of expansion states for group rows.
|
|
207
|
-
*
|
|
208
|
-
* @remarks
|
|
209
|
-
* Includes only states that differ from the default one (controlled through groupsExpanded and states that the user has changed.
|
|
210
|
-
* Contains the expansion state (expanded: boolean) and the unique identifier for the group row (Array).
|
|
211
|
-
* Supports two-way data binding.
|
|
212
|
-
* @example
|
|
213
|
-
* ```html
|
|
214
|
-
* <igx-grid #grid [data]="Data" [autoGenerate]="true" [(groupingExpansionState)]="model.groupingExpansionState"></igx-grid>
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
public set groupingExpansionState(value: IgcGroupByExpandState[]);
|
|
218
|
-
public get groupingExpansionState(): IgcGroupByExpandState[];
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Gets/Sets whether the grouped columns should be hidden.
|
|
224
|
-
*
|
|
225
|
-
* @remarks
|
|
226
|
-
* The default value is "false"
|
|
227
|
-
* @example
|
|
228
|
-
* ```html
|
|
229
|
-
* <igx-grid #grid [data]="localData" [hideGroupedColumns]="true" [autoGenerate]="true"></igx-grid>
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
public set hideGroupedColumns(value: boolean);
|
|
233
|
-
public get hideGroupedColumns(): boolean;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Gets/Sets the grouping strategy of the grid.
|
|
239
|
-
*
|
|
240
|
-
* @remarks The default IgxGrouping extends from IgxSorting and a custom one can be used as a `sortStrategy` as well.
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
* ```html
|
|
244
|
-
* <igx-grid #grid [data]="localData" [groupStrategy]="groupStrategy"></igx-grid>
|
|
245
|
-
* ```
|
|
246
|
-
*/
|
|
247
|
-
public set groupStrategy(value: IgcGridGroupingStrategy);
|
|
248
|
-
public get groupStrategy(): IgcGridGroupingStrategy;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Gets/Sets the message displayed inside the GroupBy drop area where columns can be dragged on.
|
|
254
|
-
*
|
|
255
|
-
* @remarks
|
|
256
|
-
* The grid needs to have at least one groupable column in order the GroupBy area to be displayed.
|
|
257
|
-
* @example
|
|
258
|
-
* ```html
|
|
259
|
-
* <igx-grid dropAreaMessage="Drop here to group!">
|
|
260
|
-
* <igx-column [groupable]="true" field="ID"></igx-column>
|
|
261
|
-
* </igx-grid>
|
|
262
|
-
* ```
|
|
263
|
-
*/
|
|
264
|
-
public set dropAreaMessage(value: string);
|
|
265
|
-
public get dropAreaMessage(): string;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Gets the group by row selector template.
|
|
271
|
-
*/
|
|
272
|
-
public set groupByRowSelectorTemplate(value: IgcRenderFunction<IgcGroupByRowSelectorTemplateContext>);
|
|
273
|
-
public get groupByRowSelectorTemplate(): IgcRenderFunction<IgcGroupByRowSelectorTemplateContext>;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Gets/Sets the template reference for the group row.
|
|
279
|
-
*
|
|
280
|
-
* @example
|
|
281
|
-
* ```
|
|
282
|
-
* const groupRowTemplate = this.grid.groupRowTemplate;
|
|
283
|
-
* this.grid.groupRowTemplate = myRowTemplate;
|
|
284
|
-
* ```
|
|
285
|
-
*/
|
|
286
|
-
public set groupRowTemplate(value: IgcRenderFunction<IgcGroupByRowTemplateContext>);
|
|
287
|
-
public get groupRowTemplate(): IgcRenderFunction<IgcGroupByRowTemplateContext>;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Returns whether the `IgxGridComponent` has group area.
|
|
293
|
-
*
|
|
294
|
-
* @example
|
|
295
|
-
* ```typescript
|
|
296
|
-
* let isGroupAreaVisible = this.grid.showGroupArea;
|
|
297
|
-
* ```
|
|
298
|
-
*
|
|
299
|
-
* @example
|
|
300
|
-
* ```html
|
|
301
|
-
* <igx-grid #grid [data]="Data" [showGroupArea]="false"></igx-grid>
|
|
302
|
-
* ```
|
|
303
|
-
*/
|
|
304
|
-
public set showGroupArea(value: boolean);
|
|
305
|
-
public get showGroupArea(): boolean;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Returns an array of the selected `IgxGridCell`s.
|
|
311
|
-
*
|
|
312
|
-
* @example
|
|
313
|
-
* ```typescript
|
|
314
|
-
* const selectedCells = this.grid.selectedCells;
|
|
315
|
-
* ```
|
|
316
|
-
*/
|
|
317
|
-
public get selectedCells(): IgcCellType[];
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Groups by a new `IgxColumnComponent` based on the provided expression, or modifies an existing one.
|
|
323
|
-
*
|
|
324
|
-
* @remarks
|
|
325
|
-
* Also allows for multiple columns to be grouped at once if an array of `ISortingExpression` is passed.
|
|
326
|
-
* The `groupingDone` event would get raised only **once** if this method gets called multiple times with the same arguments.
|
|
327
|
-
* @example
|
|
328
|
-
* ```typescript
|
|
329
|
-
* this.grid.groupBy({ fieldName: name, dir: SortingDirection.Asc, ignoreCase: false });
|
|
330
|
-
* this.grid.groupBy([
|
|
331
|
-
* { fieldName: name1, dir: SortingDirection.Asc, ignoreCase: false },
|
|
332
|
-
* { fieldName: name2, dir: SortingDirection.Desc, ignoreCase: true },
|
|
333
|
-
* { fieldName: name3, dir: SortingDirection.Desc, ignoreCase: false }
|
|
334
|
-
* ]);
|
|
335
|
-
* ```
|
|
336
|
-
*/
|
|
337
|
-
public groupBy(expression: IgcGroupingExpression[]): void;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Clears grouping for particular column, array of columns or all columns.
|
|
343
|
-
*
|
|
344
|
-
* @remarks
|
|
345
|
-
* Clears all grouping in the grid, if no parameter is passed.
|
|
346
|
-
* If a parameter is provided, clears grouping for a particular column or an array of columns.
|
|
347
|
-
* @example
|
|
348
|
-
* ```typescript
|
|
349
|
-
* this.grid.clearGrouping(); //clears all grouping
|
|
350
|
-
* this.grid.clearGrouping("ID"); //ungroups a single column
|
|
351
|
-
* this.grid.clearGrouping(["ID", "Column1", "Column2"]); //ungroups multiple columns
|
|
352
|
-
* ```
|
|
353
|
-
* @param name Name of column or array of column names to be ungrouped.
|
|
354
|
-
*/
|
|
355
|
-
public clearGrouping(name?: string): void;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Returns if a group is expanded or not.
|
|
361
|
-
*
|
|
362
|
-
* @param group The group record.
|
|
363
|
-
* @example
|
|
364
|
-
* ```typescript
|
|
365
|
-
* public groupRow: IGroupByRecord;
|
|
366
|
-
* const expandedGroup = this.grid.isExpandedGroup(this.groupRow);
|
|
367
|
-
* ```
|
|
368
|
-
*/
|
|
369
|
-
public isExpandedGroup(group: IgcGroupByRecord): boolean;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Toggles the expansion state of a group.
|
|
375
|
-
*
|
|
376
|
-
* @param groupRow The group record to toggle.
|
|
377
|
-
* @example
|
|
378
|
-
* ```typescript
|
|
379
|
-
* public groupRow: IGroupByRecord;
|
|
380
|
-
* const toggleExpGroup = this.grid.toggleGroup(this.groupRow);
|
|
381
|
-
* ```
|
|
382
|
-
*/
|
|
383
|
-
public toggleGroup(groupRow: IgcGroupByRecord): void;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Select all rows within a group.
|
|
389
|
-
*
|
|
390
|
-
* @param groupRow: The group record which rows would be selected.
|
|
391
|
-
* @param clearCurrentSelection if true clears the current selection
|
|
392
|
-
* @example
|
|
393
|
-
* ```typescript
|
|
394
|
-
* this.grid.selectRowsInGroup(this.groupRow, true);
|
|
395
|
-
* ```
|
|
396
|
-
*/
|
|
397
|
-
public selectRowsInGroup(groupRow: IgcGroupByRecord, clearPrevSelection?: boolean): void;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Deselect all rows within a group.
|
|
403
|
-
*
|
|
404
|
-
* @param groupRow The group record which rows would be deselected.
|
|
405
|
-
* @example
|
|
406
|
-
* ```typescript
|
|
407
|
-
* public groupRow: IGroupByRecord;
|
|
408
|
-
* this.grid.deselectRowsInGroup(this.groupRow);
|
|
409
|
-
* ```
|
|
410
|
-
*/
|
|
411
|
-
public deselectRowsInGroup(groupRow: IgcGroupByRecord): void;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Expands the specified group and all of its parent groups.
|
|
417
|
-
*
|
|
418
|
-
* @param groupRow The group record to fully expand.
|
|
419
|
-
* @example
|
|
420
|
-
* ```typescript
|
|
421
|
-
* public groupRow: IGroupByRecord;
|
|
422
|
-
* this.grid.fullyExpandGroup(this.groupRow);
|
|
423
|
-
* ```
|
|
424
|
-
*/
|
|
425
|
-
public fullyExpandGroup(groupRow: IgcGroupByRecord): void;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Toggles the expansion state of all group rows recursively.
|
|
431
|
-
*
|
|
432
|
-
* @example
|
|
433
|
-
* ```typescript
|
|
434
|
-
* this.grid.toggleAllGroupRows;
|
|
435
|
-
* ```
|
|
436
|
-
*/
|
|
437
|
-
public toggleAllGroupRows(): void;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
*
|
|
443
|
-
* Returns an array of the current cell selection in the form of `[{ column.field: cell.value }, ...]`.
|
|
444
|
-
*
|
|
445
|
-
* @remarks
|
|
446
|
-
* If `formatters` is enabled, the cell value will be formatted by its respective column formatter (if any).
|
|
447
|
-
* If `headers` is enabled, it will use the column header (if any) instead of the column field.
|
|
448
|
-
*/
|
|
449
|
-
public getSelectedData(formatters?: boolean, headers?: boolean): any[];
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Returns the `IgxGridRow` by index.
|
|
455
|
-
*
|
|
456
|
-
* @example
|
|
457
|
-
* ```typescript
|
|
458
|
-
* const myRow = grid.getRowByIndex(1);
|
|
459
|
-
* ```
|
|
460
|
-
* @param index
|
|
461
|
-
*/
|
|
462
|
-
public getRowByIndex(index: number): IgcRowType;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Returns `IgxGridRow` object by the specified primary key.
|
|
468
|
-
*
|
|
469
|
-
* @remarks
|
|
470
|
-
* Requires that the `primaryKey` property is set.
|
|
471
|
-
* @example
|
|
472
|
-
* ```typescript
|
|
473
|
-
* const myRow = this.grid1.getRowByKey("cell5");
|
|
474
|
-
* ```
|
|
475
|
-
* @param keyValue
|
|
476
|
-
*/
|
|
477
|
-
public getRowByKey(key: any): IgcRowType;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Returns a `CellType` object that matches the conditions.
|
|
483
|
-
*
|
|
484
|
-
* @example
|
|
485
|
-
* ```typescript
|
|
486
|
-
* const myCell = this.grid1.getCellByColumn(2, "UnitPrice");
|
|
487
|
-
* ```
|
|
488
|
-
* @param rowIndex
|
|
489
|
-
* @param columnField
|
|
490
|
-
*/
|
|
491
|
-
public getCellByColumn(rowIndex: number, columnField: string): IgcCellType;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* Returns a `CellType` object that matches the conditions.
|
|
497
|
-
*
|
|
498
|
-
* @remarks
|
|
499
|
-
* Requires that the primaryKey property is set.
|
|
500
|
-
* @example
|
|
501
|
-
* ```typescript
|
|
502
|
-
* grid.getCellByKey(1, 'index');
|
|
503
|
-
* ```
|
|
504
|
-
* @param rowSelector match any rowID
|
|
505
|
-
* @param columnField
|
|
506
|
-
*/
|
|
507
|
-
public getCellByKey(rowSelector: any, columnField: string): IgcCellType;
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
public pinRow(rowID: any, index?: number): boolean;
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
public unpinRow(rowID: any): boolean;
|
|
516
|
-
|
|
517
64
|
}
|
|
518
65
|
|
|
519
|
-
export declare interface IgcGridComponentEventMap extends
|
|
66
|
+
export declare interface IgcGridComponentEventMap extends IgcGridBaseComponentEventMap {
|
|
520
67
|
|
|
521
|
-
|
|
522
|
-
* Emitted when a new chunk of data is loaded from virtualization.
|
|
523
|
-
*
|
|
524
|
-
* @example
|
|
525
|
-
* ```typescript
|
|
526
|
-
* <igx-grid #grid [data]="localData" [autoGenerate]="true" (dataPreLoad)='handleDataPreloadEvent()'></igx-grid>
|
|
527
|
-
* ```
|
|
528
|
-
*/
|
|
529
|
-
dataPreLoad: CustomEvent<IgcForOfState>;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Emitted when grouping is performed.
|
|
533
|
-
*
|
|
534
|
-
* @example
|
|
535
|
-
* ```html
|
|
536
|
-
* <igx-grid #grid [data]="localData" [autoGenerate]="true" (groupingExpressionsChange)="groupingExpressionsChange($event)"></igx-grid>
|
|
537
|
-
* ```
|
|
538
|
-
*/
|
|
539
|
-
groupingExpressionsChange: CustomEvent<IgcGroupingExpression[]>;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Emitted when groups are expanded/collapsed.
|
|
543
|
-
*
|
|
544
|
-
* @example
|
|
545
|
-
* ```html
|
|
546
|
-
* <igx-grid #grid [data]="localData" [autoGenerate]="true" (groupingExpansionStateChange)="groupingExpansionStateChange($event)"></igx-grid>
|
|
547
|
-
* ```
|
|
548
|
-
*/
|
|
549
|
-
groupingExpansionStateChange: CustomEvent<IgcGroupByExpandState[]>;
|
|
68
|
+
columnsAutogenerated: CustomEvent<IgcColumnsAutoGeneratedEventArgs>;
|
|
550
69
|
|
|
551
70
|
/**
|
|
552
|
-
* Emitted when
|
|
553
|
-
*
|
|
554
|
-
* @remarks
|
|
555
|
-
* The `groupingDone` event would be raised only once if several columns get grouped at once by calling
|
|
556
|
-
* the `groupBy()` or `clearGrouping()` API methods and passing an array as an argument.
|
|
557
|
-
* The event arguments provide the `expressions`, `groupedColumns` and `ungroupedColumns` properties, which contain
|
|
558
|
-
* the `ISortingExpression` and the `IgxColumnComponent` related to the grouping/ungrouping operation.
|
|
559
|
-
* Please note that `groupedColumns` and `ungroupedColumns` show only the **newly** changed columns (affected by the **last**
|
|
560
|
-
* grouping/ungrouping operation), not all columns which are currently grouped/ungrouped.
|
|
561
|
-
* columns.
|
|
562
|
-
* @example
|
|
563
|
-
* ```html
|
|
564
|
-
* <igx-grid #grid [data]="localData" (groupingDone)="groupingDone($event)" [autoGenerate]="true"></igx-grid>
|
|
565
|
-
* ```
|
|
71
|
+
* Emitted when content children are resolved and collections in grid are updated.
|
|
566
72
|
*/
|
|
567
|
-
|
|
73
|
+
childrenResolved: CustomEvent<void>;
|
|
568
74
|
|
|
569
75
|
}
|
|
570
76
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { IgcBaseEventArgs } from './igc-base-event-args';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { IgcRowIslandBaseComponent } from './igc-row-island-base-component';
|
|
4
|
+
import { IgcHierarchicalGridBaseComponent } from './igc-hierarchical-grid-base-component';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,13 +12,13 @@ import { IgcHierarchicalGridComponent } from './igc-hierarchical-grid-component'
|
|
|
12
12
|
{
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
public owner:
|
|
15
|
+
public owner: IgcRowIslandBaseComponent;
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
public parentID: any;
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
public grid:
|
|
21
|
+
public grid: IgcHierarchicalGridBaseComponent;
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
public parentRowData?: any;
|
|
@@ -11,8 +11,6 @@ import { IgcGridActionsBaseDirective } from './igc-grid-actions-base-directive';
|
|
|
11
11
|
/* singleInstanceIdentifier */
|
|
12
12
|
/**
|
|
13
13
|
* Grid Editing Actions for the Action Strip
|
|
14
|
-
*
|
|
15
|
-
* @igxParent IgxActionStripComponent
|
|
16
14
|
*/
|
|
17
15
|
|
|
18
16
|
export declare class IgcGridEditingActionsComponent extends IgcGridActionsBaseDirective
|
|
@@ -63,11 +61,6 @@ import { IgcGridActionsBaseDirective } from './igc-grid-actions-base-directive';
|
|
|
63
61
|
|
|
64
62
|
/**
|
|
65
63
|
* Enter row or cell edit mode depending the grid rowEditable option
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* this.gridEditingActions.startEdit();
|
|
70
|
-
* ```
|
|
71
64
|
*/
|
|
72
65
|
public startEdit(evt?: any): void;
|
|
73
66
|
|
|
@@ -10,8 +10,6 @@ import { IgcGridActionsBaseDirective } from './igc-grid-actions-base-directive';
|
|
|
10
10
|
/* singleInstanceIdentifier */
|
|
11
11
|
/**
|
|
12
12
|
* Grid Pinning Actions for the Action Strip
|
|
13
|
-
*
|
|
14
|
-
* @igxParent IgxActionStripComponent
|
|
15
13
|
*/
|
|
16
14
|
|
|
17
15
|
export declare class IgcGridPinningActionsComponent extends IgcGridActionsBaseDirective
|
|
@@ -26,11 +24,6 @@ import { IgcGridActionsBaseDirective } from './igc-grid-actions-base-directive';
|
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
26
|
* Pin the row according to the context.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* this.gridPinningActions.pin();
|
|
33
|
-
* ```
|
|
34
27
|
*/
|
|
35
28
|
public pin(evt?: any): void;
|
|
36
29
|
|
|
@@ -38,11 +31,6 @@ import { IgcGridActionsBaseDirective } from './igc-grid-actions-base-directive';
|
|
|
38
31
|
|
|
39
32
|
/**
|
|
40
33
|
* Unpin the row according to the context.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```typescript
|
|
44
|
-
* this.gridPinningActions.unpin();
|
|
45
|
-
* ```
|
|
46
34
|
*/
|
|
47
35
|
public unpin(evt?: any): void;
|
|
48
36
|
|
|
@@ -15,12 +15,6 @@ import { IgcGridStateOptions } from './igc-grid-state-options';
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* An object with options determining if a certain feature state should be saved.
|
|
18
|
-
* ```html
|
|
19
|
-
* <igx-grid [igxGridState]="options"></igx-grid>
|
|
20
|
-
* ```
|
|
21
|
-
* ```typescript
|
|
22
|
-
* public options = {selection: false, advancedFiltering: false};
|
|
23
|
-
* ```
|
|
24
18
|
*/
|
|
25
19
|
public set options(value: IgcGridStateOptions);
|
|
26
20
|
public get options(): IgcGridStateOptions;
|
|
@@ -15,7 +15,6 @@ import { EventEmitterMixin, LitElement, Constructor, AbstractConstructor } from
|
|
|
15
15
|
/* jsonAPIManageCollectionInMarkup */
|
|
16
16
|
/**
|
|
17
17
|
* State component allows saving and restoring the state of the grid features.
|
|
18
|
-
* @igxParent IgxGridComponent, IgxTreeGridComponent, IgxHierarchicalGridComponent, IgxPivotGridComponent, *
|
|
19
18
|
*/
|
|
20
19
|
|
|
21
20
|
export declare class IgcGridStateComponent extends EventEmitterMixin<IgcGridStateComponentEventMap, Constructor<IgcGridStateBaseDirective>>(IgcGridStateBaseDirective)
|
|
@@ -48,9 +47,7 @@ import { EventEmitterMixin, LitElement, Constructor, AbstractConstructor } from
|
|
|
48
47
|
|
|
49
48
|
/**
|
|
50
49
|
* Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the `options` property.
|
|
51
|
-
*
|
|
52
50
|
* @param feature string or array of strings determining the features to be added in the state. If skipped, all features are added.
|
|
53
|
-
* @returns The state object.
|
|
54
51
|
*/
|
|
55
52
|
public getState(features?: string[]): IgcGridStateInfo;
|
|
56
53
|
|
|
@@ -58,9 +55,7 @@ import { EventEmitterMixin, LitElement, Constructor, AbstractConstructor } from
|
|
|
58
55
|
|
|
59
56
|
/**
|
|
60
57
|
* Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the `options` property.
|
|
61
|
-
*
|
|
62
58
|
* @param feature array of strings determining the features to be added in the state. If skipped, all features are added.
|
|
63
|
-
* @returns Returns the serialized to JSON string IGridStateInfo object.
|
|
64
59
|
*/
|
|
65
60
|
public getStateAsString(features?: string[]): string;
|
|
66
61
|
|