@mindfusion/dataviews 2.0.0 → 2.1.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/dataviews.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- /// <reference types="../../@mindfusion/controls" />
2
1
  /// <reference types="../../@mindfusion/common-ui" />
2
+ /// <reference types="../../@mindfusion/controls" />
3
3
  /// <reference types="../../@mindfusion/common" />
4
- declare module "DataViews/jsdv/src/Command" {
4
+ declare module "DataViews/jsdv/src/DataType" {
5
+ export default DataType;
5
6
  /**
6
7
  * @namespace MindFusion.DataViews
7
8
  */
8
9
  /**
9
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
10
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
10
11
  *
11
12
  * This source code is provided to you as part of the MindFusion software components
12
13
  * package you have purchased. You may use the source code to trace and/or fix
@@ -14,29 +15,39 @@ declare module "DataViews/jsdv/src/Command" {
14
15
  * to use the source code in any other way, please contact us at support@mindfusion.eu.
15
16
  */
16
17
  /**
17
- * @class A base class for grid row commands.
18
- */
19
- export class Command {
18
+ * @class A base class for data types.
19
+ */
20
+ class DataType {
20
21
  /**
21
- * Override this method in a derived class to customize the command controller.
22
- * @param {Object} [sender] Optional.
23
- * @param {Object} [args] Optional.
24
- * @returns {HTMLElement} The controller.
22
+ * Return the sort order of specified values.
23
+ * @param {Object} value1 The first value to compare.
24
+ * @param {Object} value2 The second value to compare.
25
+ * @returns {Number} A negative number if value1 < value2, 0 if values are equal,
26
+ * or a positive number if value1 > value2.
25
27
  */
26
- static createControl(sender?: any, args?: any): HTMLElement;
28
+ static sortFunction(value1: any, value2: any): number;
27
29
  /**
28
- * Override this property in a derived class to set the command string identifier.
30
+ * Creates an editor for specified value.
31
+ * @param {DOMElement} element The parent DOM element where editor should be added.
32
+ * @param {String} displayValue The label to display for value.
33
+ * @param {Object} value The value to edit.
34
+ * @param {Object} view The parent control.
35
+ * @returns {DOMElement} The DOM element used to edit the value.
29
36
  */
30
- static get commandName(): string;
37
+ static createEditor(element: any, displayValue: string, value: any, view: any): any;
31
38
  /**
32
- * Override this property in a derived class to change the trigger event for the command action.
39
+ * Parses value from specified string.
40
+ * @param {String} text Textual representation of the value.
41
+ * @returns {Object} The parsed value.
33
42
  */
34
- static get eventName(): string;
43
+ static parse(text: string): any;
35
44
  /**
36
- * Attaches the handler to the controller.
37
- * @private
45
+ * Determines if values are equal.
46
+ * @param {Object} value1 The first value to compare.
47
+ * @param {Object} value2 The second value to compare.
48
+ * @returns {Boolean} true if values are equal, or false otherwise.
38
49
  */
39
- private static attach;
50
+ static equals(value1: any, value2: any): boolean;
40
51
  }
41
52
  }
42
53
  declare module "DataViews/jsdv/src/Enum" {
@@ -51,283 +62,36 @@ declare module "DataViews/jsdv/src/Enum" {
51
62
  const Delete: number;
52
63
  const Command: number;
53
64
  const Render: number;
54
- }
55
- }
56
- declare module "DataViews/jsdv/src/EventArgs" {
57
- /**
58
- * @class Specifies data for row action validation events.
59
- * @augments CancelEventArgs
60
- * @property {Number} row Gets the index of the row that is being modified.
61
- * @property {RowAction} action Gets the row action, that triggered the event.
62
- * @property {Object} rowData Gets the row data.
63
- * @property {Map} oldValues Gets a dictionary of the original field name/value pairs.
64
- * @property {Map} newValues Gets a dictionary of the new field name/value pairs.
65
- */
66
- export class RowModifyingEventArgs extends CancelEventArgs {
67
- /**
68
- * Initializes a new instance of the RowModifyingEventArgs class.
69
- * @constructor
70
- * @param {Number} row The index of the row that is being modified.
71
- * @param {RowAction} action The row action.
72
- * @param {Object} rowData The row data.
73
- * @param {Map} oldValues The dictionary of the original field name/value pairs.
74
- * @param {Map} newValues The dictionary of the new field name/value pairs.
75
- */
76
- constructor(row: number, action: RowAction, rowData: any, oldValues: Map<any, any>, newValues: Map<any, any>);
77
- _row: number;
78
- _action: number;
79
- _rowData: any;
80
- _oldValues: Map<any, any>;
81
- _newValues: Map<any, any>;
82
- /**
83
- * Gets the row that is being modified.
84
- * @returns {Number} The index of the row that is being modified.
85
- */
86
- get row(): number;
87
- /**
88
- * Gets the row data.
89
- * @returns {Object} An object containing the row data.
90
- */
91
- get rowData(): any;
92
- /**
93
- * Gets the row action.
94
- * @returns {RowAction} One of the RowAction enumeration values.
95
- */
96
- get action(): number;
97
- /**
98
- * Gets the dictionary of the original field name/value pairs.
99
- * @returns {Map} The dictionary of the original field name/value pairs.
100
- */
101
- get oldValues(): Map<any, any>;
102
- /**
103
- * Gets the dictionary of the new field name/value pairs.
104
- * @returns {Map} The dictionary of the new field name/value pairs.
105
- */
106
- get newValues(): Map<any, any>;
107
- }
108
- /**
109
- * @class Specifies data for row action notification events.
110
- * @augments EventArgs
111
- * @property {Number} row Gets the index of the row that was modified.
112
- * @property {RowAction} action Gets the row action, that triggered the event.
113
- * @property {Object} rowData Gets the row data.
114
- * @property {Map} oldValues Gets a dictionary of the original field name/value pairs.
115
- * @property {Map} newValues Gets a dictionary of the new field name/value pairs.
116
- */
117
- export class RowModifiedEventArgs extends EventArgs {
118
- /**
119
- * Initializes a new instance of the RowModifiedEventArgs class.
120
- * @constructor
121
- * @param {Number} row The index of the row that was modified.
122
- * @param {RowAction} action The row action.
123
- * @param {Object} rowData The row data.
124
- * @param {Map} oldValues The dictionary of the original field name/value pairs.
125
- * @param {Map} newValues The dictionary of the new field name/value pairs.
126
- */
127
- constructor(row: number, action: RowAction, rowData: any, oldValues: Map<any, any>, newValues: Map<any, any>);
128
- _row: number;
129
- _action: number;
130
- _rowData: any;
131
- _oldValues: Map<any, any>;
132
- _newValues: Map<any, any>;
133
- /**
134
- * Gets the row that was modified.
135
- * @returns {Number} The index of the row that was modified.
136
- */
137
- get row(): number;
138
- /**
139
- * Gets the row data.
140
- * @returns {Object} An object containing the row data.
141
- */
142
- get rowData(): any;
143
- /**
144
- * Gets the row action.
145
- * @returns {RowAction} One of the RowAction enumeration values.
146
- */
147
- get action(): number;
148
- /**
149
- * Gets the dictionary of the original field name/value pairs.
150
- * @returns {Map} The dictionary of the original field name/value pairs.
151
- */
152
- get oldValues(): Map<any, any>;
153
- /**
154
- * Gets the dictionary of the new field name/value pairs.
155
- * @returns {Map} The dictionary of the new field name/value pairs.
156
- */
157
- get newValues(): Map<any, any>;
158
- }
159
- /**
160
- * @class Specifies data for the rowCommand event.
161
- * @augments RowModifyingEventArgs
162
- * @property {String} commandName Gets the string identifier of the executed command.
163
- * @property {HTMLElement} control Gets the controller that triggered the command.
164
- */
165
- export class CommandEventArgs extends RowModifyingEventArgs {
166
- /**
167
- * Initializes a new instance of the RowModifiedEventArgs class.
168
- * @constructor
169
- * @param {String} commandName The string identifier of the executed command.
170
- * @param {HTMLElement} control The controller that triggered the command.
171
- * @param {Number} row The index of the row, for which the command is executed.
172
- * @param {Object} rowData The row data.
173
- */
174
- constructor(commandName: string, control: HTMLElement, row: number, rowData: any);
175
- _commandName: string;
176
- _control: HTMLElement;
177
- /**
178
- * Gets the string identifier of the executed command.
179
- * @returns {String} The command name.
180
- */
181
- get commandName(): string;
182
- /**
183
- * Gets the controller that triggered the command.
184
- * @returns {HTMLElement} The HTML control.
185
- */
186
- get control(): HTMLElement;
187
- }
188
- /**
189
- * @class Provides data for the cell related validation events.
190
- * @augments CancelEventArgs
191
- * @property {Number} row Gets the row of the cell, associated with the event.
192
- * @property {Number} column Gets the column of the cell, associated with the event.
193
- */
194
- export class CellValidateEventArgs extends CancelEventArgs {
195
- /**
196
- * Initializes a new instance of the CellValidateEventArgs class.
197
- * @constructor
198
- * @param {Number} row The row index of the cell.
199
- * @param {Number} column The column index of the cell.
200
- */
201
- constructor(row: number, column: number);
202
- _row: number;
203
- _column: number;
204
- /**
205
- * Gets the row of the cell, associated with the event.
206
- * @returns {Number} The row index.
207
- */
208
- get row(): number;
209
- /**
210
- * Gets the column of the cell, associated with the event.
211
- * @returns {Number} The column index.
212
- */
213
- get column(): number;
214
- }
215
- /**
216
- * @class Provides data for the cell related notification events.
217
- * @augments EventArgs
218
- * @property {Number} row Gets the row of the cell, associated with the event.
219
- * @property {Number} column Gets the column of the cell, associated with the event.
220
- */
221
- export class CellEventArgs extends EventArgs {
222
- /**
223
- * Initializes a new instance of the CellEventArgs class.
224
- * @constructor
225
- * @param {Number} row The row index of the cell.
226
- * @param {Number} column The column index of the cell.
227
- */
228
- constructor(row: number, column: number);
229
- _row: number;
230
- _column: number;
231
- /**
232
- * Gets the row of the cell, associated with the event.
233
- * @returns {Number} The row index.
234
- */
235
- get row(): number;
236
- /**
237
- * Gets the column of the cell, associated with the event.
238
- * @returns {Number} The column index.
239
- */
240
- get column(): number;
241
- }
242
- /**
243
- * @class Provides data for custom draw events.
244
- * @augments CellEventArgs
245
- * @property {Node} defaultContent Gets the default content, displayed in the cell.
246
- * @property {Node} content Gets or sets the new content to be displayed in the cell.
247
- */
248
- export class CellCustomDrawEventArgs extends CellEventArgs {
249
- /**
250
- * Initializes a new instance of the CellCustomDrawEventArgs class.
251
- * @constructor
252
- * @param {Number} row The row index of the cell.
253
- * @param {Number} column The column index of the cell.
254
- * @param {Node} defaultContent The default content displayed in the cell.
255
- */
256
- constructor(row: number, column: number, defaultContent: Node);
257
- _defaultContent: Node;
258
- /**
259
- * Gets the default content, displayed in the cell.
260
- * @returns {Node} The default content.
261
- */
262
- get defaultContent(): Node;
263
- /**
264
- * Sets the new content to be displayed in the cell.
265
- * @param {Node} value The new content.
266
- */
267
- set content(arg: Node);
268
- /**
269
- * Gets the new content to be displayed in the cell.
270
- * @returns {Node} The new content.
271
- */
272
- get content(): Node;
273
- _content: Node;
274
- }
275
- import { CancelEventArgs } from "@mindfusion/controls";
276
- import { RowAction } from "DataViews/jsdv/src/Enum";
277
- import { EventArgs } from "@mindfusion/controls";
278
- }
279
- declare module "DataViews/jsdv/src/CommandType" {
280
- /**
281
- * @class Provides functionality for command columns.
282
- */
283
- export class CommandType {
284
- static createContent(element: any, view: any): void;
285
- }
286
- }
287
- declare module "DataViews/jsdv/src/DataType" {
288
- export default DataType;
289
- /**
290
- * @namespace MindFusion.DataViews
291
- */
292
- /**
293
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
294
- *
295
- * This source code is provided to you as part of the MindFusion software components
296
- * package you have purchased. You may use the source code to trace and/or fix
297
- * problems or customize the library as needed for your application. To get permission
298
- * to use the source code in any other way, please contact us at support@mindfusion.eu.
299
- */
300
- /**
301
- * @class A base class for data types.
302
- */
303
- class DataType {
304
- static sortFunction(value1: any, value2: any): void;
305
- static createEditor(element: any, displayValue: any, value: any, view: any): void;
306
- static parse(text: any): void;
307
- static equals(value1: any, value2: any): void;
65
+ const Load: number;
66
+ const Expand: number;
67
+ const Collapse: number;
308
68
  }
309
69
  }
310
70
  declare module "DataViews/jsdv/src/StringType" {
311
71
  /**
312
- * @class Provides functionality for grid columns, that display string data.
72
+ * @class Provides functionality for grid columns that display string data.
73
+ * @augments DataType
313
74
  */
314
75
  export class StringType extends DataType {
315
76
  static sortFunction(value1: any, value2: any): any;
316
77
  static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
317
- static updateValueFromInput(newValue: any, element: any, view: any): void;
78
+ static updateValueFromInput(newValue: any, element: any, view: any, row: any, column: any): void;
318
79
  static updateCell(view: any, element: any, r: any, c: any, displayValue: any): void;
319
80
  static parse(text: any): any;
320
81
  static format(value: any, meta: any): any;
321
82
  static equals(value1: any, value2: any): boolean;
83
+ static get textAlign(): string;
322
84
  }
323
85
  import DataType from "DataViews/jsdv/src/DataType";
324
86
  }
325
87
  declare module "DataViews/jsdv/src/DateType" {
326
88
  /**
327
- * @class Provides functionality for grid columns, that display dates.
89
+ * @class Provides functionality for grid columns that display dates.
90
+ * @augments DataType
328
91
  */
329
92
  export class DateType extends DataType {
330
93
  static sortFunction(value1: any, value2: any): number;
94
+ static get customEditor(): DateTimePicker;
331
95
  static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement | DateTimePicker;
332
96
  static createDefaultEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
333
97
  static createCustomEditor(editor: any, options: any, element: any, displayValue: any, value: any, view: any): void;
@@ -340,38 +104,111 @@ declare module "DataViews/jsdv/src/DateType" {
340
104
  }
341
105
  declare module "DataViews/jsdv/src/DateTimeType" {
342
106
  /**
343
- * @class Provides functionality for grid columns, that display date-time values.
107
+ * @class Provides functionality for grid columns that display date-time values.
108
+ * @augments DataType
344
109
  */
345
- export class DateTimeType extends DateType {
110
+ export class DateTimeType {
111
+ static get customEditor(): DateTimePicker;
112
+ static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement | DateTimePicker;
113
+ static createDefaultEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
114
+ static format(value: any, meta: any): any;
346
115
  }
347
- import { DateType } from "DataViews/jsdv/src/DateType";
116
+ import { DateTimePicker } from "@mindfusion/common-ui";
348
117
  }
349
- declare module "DataViews/jsdv/src/ImageType" {
118
+ declare module "DataViews/jsdv/src/BooleanType" {
350
119
  /**
351
- * @class Provides functionality for grid columns, that display image data.
120
+ * @class Provides functionality for grid columns that display boolean data.
121
+ * @augments StringType
352
122
  */
353
- export class ImageType extends DataType {
354
- static sortFunction(value1: any, value2: any): any;
355
- static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement | ImagePicker;
356
- static createDefaultEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
357
- static updateCell(view: any, element: any, r: any, c: any, displayValue: any): void;
358
- static createCustomEditor(editor: any, options: any, element: any, displayValue: any, value: any, view: any): void;
359
- static parse(text: any): any;
360
- static equals(value1: any, value2: any): boolean;
123
+ export class BooleanType extends StringType {
124
+ static sortFunction(value1: any, value2: any): number;
125
+ static parse(text: any): boolean;
361
126
  static format(value: any, meta: any): string;
362
127
  }
363
- import DataType from "DataViews/jsdv/src/DataType";
364
- import { ImagePicker } from "@mindfusion/common-ui";
128
+ import { StringType } from "DataViews/jsdv/src/StringType";
365
129
  }
366
- declare module "DataViews/jsdv/src/ArrayModel" {
130
+ declare module "DataViews/jsdv/src/ObjectType" {
367
131
  /**
368
- * @class Represents a grid model, that uses an array of objects as a backing store.
369
- * @property {Number} rowCount Gets the number of rows in the array.
370
- * @property {Number} columnCount Gets the number of display columns.
132
+ * @class Provides functionality for grid cells that display expandable objects.
133
+ * @augments DataType
371
134
  */
372
- export class ArrayModel {
373
- /**
374
- * Initializes a new instance of the ArrayModel class.
135
+ export class ObjectType extends DataType {
136
+ static sortFunction(value1: any, value2: any): number;
137
+ static createEditor(element: any, displayValue: any, value: any, view: any): HTMLButtonElement;
138
+ static parse(text: any): any;
139
+ static format(value: any, meta: any): any;
140
+ static equals(value1: any, value2: any): boolean;
141
+ }
142
+ import DataType from "DataViews/jsdv/src/DataType";
143
+ }
144
+ declare module "DataViews/jsdv/src/IntegerType" {
145
+ /**
146
+ * @class Provides functionality for grid columns that display integer data.
147
+ * @augments DataType
148
+ */
149
+ export class IntegerType extends DataType {
150
+ static sortFunction(value1: any, value2: any): number;
151
+ static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
152
+ static parse(text: any): number;
153
+ static format(value: any, meta: any): string;
154
+ static equals(value1: any, value2: any): boolean;
155
+ static get textAlign(): string;
156
+ }
157
+ import DataType from "DataViews/jsdv/src/DataType";
158
+ }
159
+ declare module "DataViews/jsdv/src/LookupType" {
160
+ /**
161
+ * @class Provides functionality for grid columns that display lookup or value lists.
162
+ * @augments DataType
163
+ */
164
+ export class LookupType extends DataType {
165
+ static sortFunction(value1: any, value2: any): any;
166
+ static get customEditor(): CheckListPicker;
167
+ static createEditor(element: any, displayValue: any, value: any, view: any): HTMLSelectElement | CheckListPicker;
168
+ static createDefaultEditor(element: any, displayValue: any, value: any, view: any): HTMLSelectElement;
169
+ static createCustomEditor(editor: any, options: any, element: any, displayValue: any, value: any, view: any): void;
170
+ static format(value: any, meta: any): any;
171
+ static equals(value1: any, value2: any): boolean;
172
+ }
173
+ import DataType from "DataViews/jsdv/src/DataType";
174
+ import { CheckListPicker } from "@mindfusion/common-ui";
175
+ }
176
+ declare module "DataViews/jsdv/src/RealNumberType" {
177
+ /**
178
+ * @class Provides functionality for grid columns that display real number data.
179
+ * @augments IntegerType
180
+ */
181
+ export class RealNumberType extends IntegerType {
182
+ }
183
+ import { IntegerType } from "DataViews/jsdv/src/IntegerType";
184
+ }
185
+ declare module "DataViews/jsdv/src/DynamicType" {
186
+ /**
187
+ * @class Provides functionality for grid columns that display data of different types.
188
+ * @augments DataType
189
+ */
190
+ export class DynamicType extends DataType {
191
+ static sortFunction(valueObj1: any, valueObj2: any): any;
192
+ static resolveValueType(value: any, meta: any): any;
193
+ static createEditor(element: any, displayValue: any, value: any, view: any): any;
194
+ static parse(text: any): any;
195
+ static format(value: any, meta: any): any;
196
+ static equals(value1: any, value2: any): any;
197
+ static get textAlign(): string;
198
+ static resolveDataTypeCallback(): any;
199
+ static getCellValueCallback(): any;
200
+ static resolveCellMetaDataCallback(): any;
201
+ static formatCellValueCallback(text: any): any;
202
+ }
203
+ import DataType from "DataViews/jsdv/src/DataType";
204
+ }
205
+ declare module "DataViews/jsdv/src/ArrayModel" {
206
+ /**
207
+ * @class Represents a grid model, that uses an array of objects as a backing store.
208
+ */
209
+ export class ArrayModel {
210
+ /**
211
+ * Initializes a new instance of the ArrayModel class.
375
212
  * @constructor
376
213
  * @param {Array} values The array to use as a backing store.
377
214
  * @param {Array} columns The list of display columns.
@@ -428,12 +265,32 @@ declare module "DataViews/jsdv/src/ArrayModel" {
428
265
  */
429
266
  columnSortable(column: number): boolean;
430
267
  /**
268
+ * Gets a value, indicating whether the specified column is currently displayed.
269
+ * @param {Number} column The column index.
270
+ * @returns {Boolean} True if the specified column should not be displayed, otherwise false.
271
+ */
272
+ columnHidden(column: number): boolean;
273
+ /**
431
274
  * Gets the column meta data object.
432
275
  * @param {Number} column The column index.
433
276
  * @returns {Map} A Map instance containing the column meta data.
434
277
  */
435
278
  columnMetaData(column: number): Map<any, any>;
436
279
  /**
280
+ * Gets the cell meta data object.
281
+ * @param {Number} row The row index.
282
+ * @param {Number} column The column index.
283
+ * @returns {Map} A Map instance containing the cell meta data.
284
+ */
285
+ cellMetaData(row: number, column: number): Map<any, any>;
286
+ /**
287
+ * Gets the cell data type.
288
+ * @param {Number} row The row index.
289
+ * @param {Number} column The column index.
290
+ * @returns {DataType} The data type of the cell.
291
+ */
292
+ cellDataType(row: number, column: number): any;
293
+ /**
437
294
  * Sets a value at the specified position.
438
295
  * @param {Number} row The row index.
439
296
  * @param {Number} column The column index.
@@ -474,60 +331,24 @@ declare module "DataViews/jsdv/src/ArrayModel" {
474
331
  deleteRow(row: number): void;
475
332
  /**
476
333
  * Gets the number of array items.
477
- * @returns {Number} The row count.
334
+ * @type {Number}
335
+ * @summary The row count.
478
336
  */
479
337
  get rowCount(): number;
480
338
  /**
481
339
  * Gets the number of display columns.
482
- * @returns {Number} The column count.
340
+ * @type {Number}
341
+ * @summary The column count.
483
342
  */
484
343
  get columnCount(): number;
485
344
  }
486
345
  }
487
- declare module "DataViews/jsdv/src/IntegerType" {
488
- /**
489
- * @class Provides functionality for grid columns, that display integer data.
490
- */
491
- export class IntegerType extends DataType {
492
- static sortFunction(value1: any, value2: any): number;
493
- static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
494
- static parse(text: any): number;
495
- static format(value: any, meta: any): string;
496
- static equals(value1: any, value2: any): boolean;
497
- }
498
- import DataType from "DataViews/jsdv/src/DataType";
499
- }
500
- declare module "DataViews/jsdv/src/RealNumberType" {
501
- /**
502
- * @class Provides functionality for grid columns, that display real number data.
503
- */
504
- export class RealNumberType extends IntegerType {
505
- }
506
- import { IntegerType } from "DataViews/jsdv/src/IntegerType";
507
- }
508
- declare module "DataViews/jsdv/src/CurrencyType" {
509
- /**
510
- * @class Provides functionality for grid columns, that display currency data.
511
- */
512
- export class CurrencyType extends RealNumberType {
513
- }
514
- import { RealNumberType } from "DataViews/jsdv/src/RealNumberType";
515
- }
516
- declare module "DataViews/jsdv/src/DeleteCommand" {
517
- /**
518
- * @class Handles row deletion, triggered by a command grid column.
519
- */
520
- export class DeleteCommand extends Command {
521
- static execute(sender: any, args: any): void;
522
- }
523
- import { Command } from "DataViews/jsdv/src/Command";
524
- }
525
- declare module "DataViews/jsdv/src/DomRenderer" {
346
+ declare module "DataViews/jsdv/src/Command" {
526
347
  /**
527
348
  * @namespace MindFusion.DataViews
528
349
  */
529
350
  /**
530
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
351
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
531
352
  *
532
353
  * This source code is provided to you as part of the MindFusion software components
533
354
  * package you have purchased. You may use the source code to trace and/or fix
@@ -535,193 +356,420 @@ declare module "DataViews/jsdv/src/DomRenderer" {
535
356
  * to use the source code in any other way, please contact us at support@mindfusion.eu.
536
357
  */
537
358
  /**
538
- * @class A base class for grid renderers.
359
+ * @class A base class for grid row commands.
539
360
  */
540
- export class DomRenderer {
361
+ export class Command {
541
362
  /**
542
- * Sets the grid control this renderer is attached to.
363
+ * Override this method in a derived class to customize the command controller.
364
+ * @param {Object} [sender] Optional.
365
+ * @param {Object} [args] Optional.
366
+ * @returns {HTMLElement} The controller.
543
367
  */
544
- set grid(arg: any);
368
+ static createControl(sender?: any, args?: any): HTMLElement;
545
369
  /**
546
- * Gets the grid control this renderer is attached to.
370
+ * Gets the command string identifier.
371
+ * @type {String}
372
+ * @summary Override this property in a derived class to set the command string identifier.
547
373
  */
548
- get grid(): any;
549
- _grid: any;
374
+ static get commandName(): string;
550
375
  /**
551
- * Implement this property in a derived class to provide access to the array of DOM elements of the visible rows.
376
+ * Gets the event, that will trigger the command action.
377
+ * @type {String}
378
+ * @summary Override this property in a derived class to change the trigger event for the command action.
552
379
  */
553
- get visibleRows(): void;
380
+ static get eventName(): string;
554
381
  /**
555
- * Implement this property in a derived class to provide access to the array of DOM elements of the visible cells.
382
+ * Attaches the handler to the controller.
383
+ * @private
556
384
  */
557
- get visibleCells(): void;
385
+ private static attach;
386
+ }
387
+ }
388
+ declare module "DataViews/jsdv/src/EventArgs" {
389
+ /**
390
+ * @class Specifies data for row action validation events.
391
+ * @augments CancelEventArgs
392
+ */
393
+ export class RowModifyingEventArgs extends CancelEventArgs {
558
394
  /**
559
- * Implement this method in a derived class to handle the initial rendering of the grid control.
395
+ * Initializes a new instance of the RowModifyingEventArgs class.
396
+ * @constructor
397
+ * @param {Number} row The index of the row that is being modified.
398
+ * @param {RowAction} action The row action.
399
+ * @param {Object} rowData The row data.
400
+ * @param {Map} oldValues The dictionary of the original field name/value pairs.
401
+ * @param {Map} newValues The dictionary of the new field name/value pairs.
560
402
  */
561
- renderGrid(): void;
403
+ constructor(row: number, action: RowAction, rowData: any, oldValues: Map<any, any>, newValues: Map<any, any>);
404
+ _row: number;
405
+ _action: number;
406
+ _rowData: any;
407
+ _oldValues: Map<any, any>;
408
+ _newValues: Map<any, any>;
562
409
  /**
563
- * Implement this method in a derived class to handle re-rendering of the grid control.
410
+ * Gets the row that is being modified.
411
+ * @type {Number}
412
+ * @summary The index of the row that is being modified.
564
413
  */
565
- invalidate(): void;
414
+ get row(): number;
566
415
  /**
567
- * Implement this method in a derived class to handle re-rendering of a row range.
568
- * @param {Number} index The start index of the range.
569
- * @param {Number} count The length of the range.
416
+ * Gets the row data.
417
+ * @type {Object}
418
+ * @summary An object containing the row data.
570
419
  */
571
- refreshRows(index: number, count: number): void;
420
+ get rowData(): any;
572
421
  /**
573
- * Implement this method in a derived class to handle updates of grid cells after inplace-editing.
574
- * @param {Number} row The row index.
575
- * @param {Number} column The column index.
422
+ * Gets the row action.
423
+ * @type {RowAction}
424
+ * @summary One of the RowAction enumeration values.
576
425
  */
577
- updateCell(row: number, column: number): void;
426
+ get action(): number;
578
427
  /**
579
- * Implement this method in a derived class to handle row creation.
428
+ * Gets the dictionary of the original field name/value pairs.
429
+ * @type {Map}
430
+ * @summary The dictionary of the original field name/value pairs.
580
431
  */
581
- onRowCreated(): void;
432
+ get oldValues(): Map<any, any>;
582
433
  /**
583
- * Implement this method in a derived class to handle row deletion.
434
+ * Gets the dictionary of the new field name/value pairs.
435
+ * @type {Map}
436
+ * @summary The dictionary of the new field name/value pairs.
584
437
  */
585
- onRowDeleted(): void;
438
+ get newValues(): Map<any, any>;
439
+ }
440
+ /**
441
+ * @class Specifies data for row action notification events.
442
+ * @augments EventArgs
443
+ */
444
+ export class RowModifiedEventArgs extends EventArgs {
586
445
  /**
587
- * Implement this method in a derived class to handle scrolling.
446
+ * Initializes a new instance of the RowModifiedEventArgs class.
447
+ * @constructor
448
+ * @param {Number} row The index of the row that was modified.
449
+ * @param {RowAction} action The row action.
450
+ * @param {Object} rowData The row data.
451
+ * @param {Map} oldValues The dictionary of the original field name/value pairs.
452
+ * @param {Map} newValues The dictionary of the new field name/value pairs.
588
453
  */
589
- onScroll(): void;
454
+ constructor(row: number, action: RowAction, rowData: any, oldValues: Map<any, any>, newValues: Map<any, any>);
455
+ _row: number;
456
+ _action: number;
457
+ _rowData: any;
458
+ _oldValues: Map<any, any>;
459
+ _newValues: Map<any, any>;
590
460
  /**
591
- * Implement this method in a derived class to handle selection.
461
+ * Gets the row that was modified.
462
+ * @type {Number}
463
+ * @summary The index of the row that was modified.
592
464
  */
593
- onSelect(): void;
465
+ get row(): number;
594
466
  /**
595
- * Implement this method in a derived class to handle sorting.
467
+ * Gets the row data.
468
+ * @type {Object}
469
+ * @summary An object containing the row data.
596
470
  */
597
- onSort(): void;
471
+ get rowData(): any;
472
+ /**
473
+ * Gets the row action.
474
+ * @type {RowAction}
475
+ * @summary One of the RowAction enumeration values.
476
+ */
477
+ get action(): number;
478
+ /**
479
+ * Gets the dictionary of the original field name/value pairs.
480
+ * @type {Map}
481
+ * @summary The dictionary of the original field name/value pairs.
482
+ */
483
+ get oldValues(): Map<any, any>;
484
+ /**
485
+ * Gets the dictionary of the new field name/value pairs.
486
+ * @type {Map}
487
+ * @summary The dictionary of the new field name/value pairs.
488
+ */
489
+ get newValues(): Map<any, any>;
598
490
  }
599
- }
600
- declare module "DataViews/jsdv/src/UIControl" {
601
491
  /**
602
- * @class A base class for UI controls.
492
+ * @class Specifies data for the rowCommand event.
493
+ * @augments RowModifyingEventArgs
603
494
  */
604
- export class UIControl extends Control {
605
- setLicenseKey(value: any): void;
495
+ export class CommandEventArgs extends RowModifyingEventArgs {
496
+ /**
497
+ * Initializes a new instance of the RowModifiedEventArgs class.
498
+ * @constructor
499
+ * @param {String} commandName The string identifier of the executed command.
500
+ * @param {HTMLElement} control The controller that triggered the command.
501
+ * @param {Number} row The index of the row, for which the command is executed.
502
+ * @param {Object} rowData The row data.
503
+ */
504
+ constructor(commandName: string, control: HTMLElement, row: number, rowData: any);
505
+ _commandName: string;
506
+ _control: HTMLElement;
507
+ /**
508
+ * Gets the string identifier of the executed command.
509
+ * @type {String}
510
+ * @summary The command name.
511
+ */
512
+ get commandName(): string;
513
+ /**
514
+ * Gets the controller that triggered the command.
515
+ * @type {HTMLElement}
516
+ * @summary The HTML control.
517
+ */
518
+ get control(): HTMLElement;
606
519
  }
607
- import { Control } from "@mindfusion/common";
608
- }
609
- declare module "DataViews/jsdv/src/ProxyModel" {
610
- export default ProxyModel;
611
- class ProxyModel {
612
- constructor(sourceModel: any);
613
- sourceModel: any;
614
- _filter: any;
615
- _sortedColumn: number;
616
- _sortAscending: boolean;
617
- indexMap: any[];
618
- getMaxKey(): any;
619
- getKeyRow(key: any): any;
620
- getRowKey(index: any): any;
621
- columnType(column: any): any;
622
- columnName(column: any): any;
623
- columnCaption(column: any): any;
624
- columnEditable(column: any): any;
625
- columnSortable(column: any): any;
626
- columnMetaData(column: any): any;
627
- setValue(row: any, column: any, value: any): void;
628
- value(row: any, column: any): any;
629
- displayValue(row: any, column: any): any;
630
- getRowData(row: any): any;
631
- addRow(rowData: any, index: any): number;
632
- deleteRow(row: any): void;
633
- get rowCount(): any;
634
- get columnCount(): any;
635
- invalidate(): void;
636
- ensureIndexMap(): void;
637
- set filter(arg: any);
638
- get filter(): any;
639
- set sortedColumn(arg: number);
640
- get sortedColumn(): number;
641
- set sortAscending(arg: boolean);
642
- get sortAscending(): boolean;
520
+ /**
521
+ * @class Provides data for the cell related validation events.
522
+ * @augments CancelEventArgs
523
+ */
524
+ export class CellValidateEventArgs extends CancelEventArgs {
525
+ /**
526
+ * Initializes a new instance of the CellValidateEventArgs class.
527
+ * @constructor
528
+ * @param {Number} row The row index of the cell.
529
+ * @param {Number} column The column index of the cell.
530
+ */
531
+ constructor(row: number, column: number, value: any, displayValue: any);
532
+ _row: number;
533
+ _column: number;
534
+ _value: any;
535
+ _displayValue: any;
536
+ /**
537
+ * Gets the row of the cell, associated with the event.
538
+ * @type {Number}
539
+ * @summary The row index.
540
+ */
541
+ get row(): number;
542
+ /**
543
+ * Gets the column of the cell, associated with the event.
544
+ * @type {Number}
545
+ * @summary The column index.
546
+ */
547
+ get column(): number;
548
+ /**
549
+ * Gets the column of the cell, associated with the event.
550
+ * @type {Number}
551
+ * @summary The column index.
552
+ */
553
+ get value(): number;
554
+ /**
555
+ * Gets the column of the cell, associated with the event.
556
+ * @returns {Number} The column index.
557
+ */
558
+ get displayValuelu(): number;
643
559
  }
644
- }
645
- declare module "DataViews/jsdv/src/GridRenderer" {
646
- export default GridRenderer;
647
560
  /**
648
- * @class Contains render methods for a grid control.
561
+ * @class Provides data for the cell related notification events.
562
+ * @augments EventArgs
649
563
  */
650
- class GridRenderer extends DomRenderer {
651
- repaintId: number;
652
- draw(): void;
653
- drawHeader(): HTMLDivElement;
654
- drawContent(): HTMLDivElement;
655
- drawRows(): void;
656
- rowHeight: number;
657
- rowsHeight: number;
658
- drawRow(model: any, r: any): HTMLDivElement;
659
- refreshRow(model: any, r: any): void;
660
- addSelectedFlag(element: any): void;
661
- removeSelectedFlag(element: any): void;
662
- clearSelection(): void;
663
- updateSelection(): void;
564
+ export class CellEventArgs extends EventArgs {
565
+ /**
566
+ * Initializes a new instance of the CellEventArgs class.
567
+ * @constructor
568
+ * @param {Number} row The row index of the cell.
569
+ * @param {Number} column The column index of the cell.
570
+ */
571
+ constructor(row: number, column: number, value: any, displayValue: any);
572
+ _row: number;
573
+ _column: number;
574
+ _value: any;
575
+ _displayValue: any;
576
+ /**
577
+ * Gets the row of the cell, associated with the event.
578
+ * @type {Number}
579
+ * @summary The row index.
580
+ */
581
+ get row(): number;
582
+ /**
583
+ * Gets the column of the cell, associated with the event.
584
+ * @type {Number}
585
+ * @summary The column index.
586
+ */
587
+ get column(): number;
588
+ /**
589
+ * Gets the column of the cell, associated with the event.
590
+ * @returns {Number} The column index.
591
+ */
592
+ get value(): number;
593
+ /**
594
+ * Gets the column of the cell, associated with the event.
595
+ * @returns {Number} The column index.
596
+ */
597
+ get displayValuelu(): number;
664
598
  }
665
- import { DomRenderer } from "DataViews/jsdv/src/DomRenderer";
666
- }
667
- declare module "DataViews/jsdv/src/Selection" {
668
- export default Selection;
669
599
  /**
670
- * @namespace MindFusion.DataViews
600
+ * @class Provides data for custom draw events.
601
+ * @augments CellEventArgs
671
602
  */
603
+ export class CellCustomDrawEventArgs extends CellEventArgs {
604
+ /**
605
+ * Initializes a new instance of the CellCustomDrawEventArgs class.
606
+ * @constructor
607
+ * @param {Number} row The row index of the cell.
608
+ * @param {Number} column The column index of the cell.
609
+ * @param {Node} defaultContent The default content displayed in the cell.
610
+ */
611
+ constructor(row: number, column: number, defaultContent: Node);
612
+ _defaultContent: Node;
613
+ /**
614
+ * Gets the default content, displayed in the cell.
615
+ * @type {Node}
616
+ * @summary The default content.
617
+ */
618
+ get defaultContent(): Node;
619
+ set content(arg: Node);
620
+ /**
621
+ * Gets or sets the new content to be displayed in the cell.
622
+ * @type {Node}
623
+ * @summary The new content.
624
+ */
625
+ get content(): Node;
626
+ _content: Node;
627
+ }
672
628
  /**
673
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
674
- *
675
- * This source code is provided to you as part of the MindFusion software components
676
- * package you have purchased. You may use the source code to trace and/or fix
677
- * problems or customize the library as needed for your application. To get permission
678
- * to use the source code in any other way, please contact us at support@mindfusion.eu.
679
- */
629
+ * @class Provides data for events raised by dynamic columns.
630
+ * @augments EventArgs
631
+ */
632
+ export class CellResolveEventArgs extends EventArgs {
633
+ /**
634
+ * Initializes a new instance of the CellResolveEventArgs class.
635
+ * @constructor
636
+ * @param {Number} row The row index of the cell.
637
+ * @param {Number} column The column index of the cell.
638
+ * @param {Object} value The cell value.
639
+ * @param {Object} result The data, passed back from the event.
640
+ */
641
+ constructor(row: number, column: number, value: any, result: any);
642
+ _row: number;
643
+ _column: number;
644
+ _value: any;
645
+ _result: any;
646
+ /**
647
+ * Gets the row of the cell, associated with the event.
648
+ * @type {Number}
649
+ * @summary The row index.
650
+ */
651
+ get row(): number;
652
+ /**
653
+ * Gets the column of the cell, associated with the event.
654
+ * @type {Number}
655
+ * @summary The column index.
656
+ */
657
+ get column(): number;
658
+ /**
659
+ * Gets the value of the cell, associated with the event.
660
+ * @returns {Object} The cell value.
661
+ */
662
+ get value(): any;
663
+ set result(arg: any);
664
+ /**
665
+ * Gets or sets the data, passed from the event.
666
+ * @returns {Object} The result.
667
+ */
668
+ get result(): any;
669
+ }
680
670
  /**
681
- * @class Represents a selection in a grid control.
682
- * @property {Array} cells The array of selected cells.
683
- * @property {Array} rows The array of selected rows.
684
- * @property {Array} columns The array of selected columns.
671
+ * @class Provides data for events raised by the PropertyGrid control.
672
+ * @augments CancelEventArgs
685
673
  */
686
- class Selection {
674
+ export class PropertyEventArgs extends CancelEventArgs {
687
675
  /**
688
- * Initializes a new instance of the Selection class.
689
- * @constructor
690
- * @param {Grid} grid The associated grid control.
691
- */
692
- constructor(grid: any);
693
- _grid: any;
694
- _cells: any[];
695
- _rows: any[];
676
+ * Initializes a new instance of the PropertyEventArgs class.
677
+ * @constructor
678
+ * @param {RowAction} action The action associated with the event.
679
+ * @param {String} propertyName The name of the property.
680
+ * @param {Object} propertyValue The value of the property.
681
+ * @param {Object} oldValue The value of the property.
682
+ * @param {Number} index The index of the object, associated with the event.
683
+ * @param {Map} meta The metaData of the property.
684
+ */
685
+ constructor(action: RowAction, propertyName: string, index: number, propertyValue: any, oldValue: any, newValue: any, meta: Map<any, any>);
686
+ _action: number;
687
+ _propertyName: string;
688
+ _index: number;
689
+ _propertyValue: any;
690
+ _oldValue: any;
691
+ _newValue: any;
692
+ _meta: Map<any, any>;
696
693
  /**
697
- * Sets the array of selected cells.
698
- * @param {Array} value The array.
694
+ * Gets the action associated with the event.
695
+ * @type {RowAction}
696
+ * @summary One of the RowAction enumeration values.
699
697
  */
700
- set cells(arg: any[]);
698
+ get action(): number;
701
699
  /**
702
- * Gets the array of selected cells.
703
- * @returns {Array} The array of selected cells.
700
+ * Gets the name of the property.
701
+ * @type {String}
702
+ * @summary The property name.
704
703
  */
705
- get cells(): any[];
706
- _columns: any[];
704
+ get propertyName(): string;
707
705
  /**
708
- * Sets the array of selected rows.
709
- * @param {Array} value The array.
706
+ * Gets the index of the object associated with the event.
707
+ * @type {Number}
708
+ * @summary The index.
710
709
  */
711
- set rows(arg: any[]);
710
+ get index(): number;
712
711
  /**
713
- * Gets the array of selected rows.
714
- * @returns {Array} The array of selected rows.
712
+ * Gets the value of the property.
713
+ * @type {Object}
714
+ * @summary The property value.
715
715
  */
716
- get rows(): any[];
716
+ get propertyValue(): any;
717
+ /**
718
+ * Gets the old value of the property.
719
+ * @type {Object}
720
+ * @summary The old property value.
721
+ */
722
+ get oldValue(): any;
723
+ set newValue(arg: any);
724
+ /**
725
+ * Gets or sets the new value of the property.
726
+ * @type {Object}
727
+ * @summary The new property value.
728
+ */
729
+ get newValue(): any;
730
+ /**
731
+ * Gets the metaData of the property.
732
+ * @type {Map}
733
+ * @summary The metaData dictionary.
734
+ */
735
+ get meta(): Map<any, any>;
717
736
  }
737
+ import { CancelEventArgs } from "@mindfusion/controls";
738
+ import { RowAction } from "DataViews/jsdv/src/Enum";
739
+ import { EventArgs } from "@mindfusion/controls";
718
740
  }
719
- declare module "DataViews/jsdv/src/GridModel" {
741
+ declare module "DataViews/jsdv/src/CommandType" {
742
+ /**
743
+ * @class Provides functionality for command columns.
744
+ */
745
+ export class CommandType {
746
+ static createContent(element: any, view: any): void;
747
+ }
748
+ }
749
+ declare module "DataViews/jsdv/src/CurrencyType" {
750
+ /**
751
+ * @class Provides functionality for grid columns that display currency data.
752
+ * @augments RealNumberType
753
+ */
754
+ export class CurrencyType extends RealNumberType {
755
+ }
756
+ import { RealNumberType } from "DataViews/jsdv/src/RealNumberType";
757
+ }
758
+ declare module "DataViews/jsdv/src/DeleteCommand" {
759
+ /**
760
+ * @class Handles row deletion, triggered by a command grid column.
761
+ */
762
+ export class DeleteCommand extends Command {
763
+ static execute(sender: any, args: any): void;
764
+ }
765
+ import { Command } from "DataViews/jsdv/src/Command";
766
+ }
767
+ declare module "DataViews/jsdv/src/DomRenderer" {
720
768
  /**
721
769
  * @namespace MindFusion.DataViews
722
770
  */
723
771
  /**
724
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
772
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
725
773
  *
726
774
  * This source code is provided to you as part of the MindFusion software components
727
775
  * package you have purchased. You may use the source code to trace and/or fix
@@ -729,216 +777,1199 @@ declare module "DataViews/jsdv/src/GridModel" {
729
777
  * to use the source code in any other way, please contact us at support@mindfusion.eu.
730
778
  */
731
779
  /**
732
- * @class The interface for grid models.
780
+ * @class A base class for grid renderers.
733
781
  */
734
- export class GridModel {
782
+ export class DomRenderer {
783
+ set grid(arg: any);
735
784
  /**
736
- * Gets the key of the specified row.
737
- * @returns {Object} The key.
785
+ * Gets or sets the grid control this renderer is attached to.
786
+ * @type {Grid}
787
+ * @summary The grid control.
738
788
  */
739
- getRowKey(row: any): any;
789
+ get grid(): any;
790
+ _grid: any;
740
791
  /**
741
- * Gets the row with the specified key.
742
- * @returns {Number} The row index.
792
+ * Gets the array of DOM elements of the visible rows.
793
+ * @type {HTMLCollection}
794
+ * @summary Implement this property in a derived class to provide access to the array of DOM elements of the visible rows.
743
795
  */
744
- getKeyRow(key: any): number;
796
+ get visibleRows(): HTMLCollection;
745
797
  /**
746
- * Gets the type of the specified column.
798
+ * Gets the array of DOM elements of the visible cells.
799
+ * @type {HTMLCollection}
800
+ * @ summary Implement this property in a derived class to provide access to the array of DOM elements of the visible cells.
801
+ */
802
+ get visibleCells(): HTMLCollection;
803
+ /**
804
+ * Implement this method in a derived class to handle the initial rendering of the grid control.
805
+ */
806
+ renderGrid(): void;
807
+ /**
808
+ * Implement this method in a derived class to handle re-rendering of the grid control.
809
+ */
810
+ invalidate(): void;
811
+ /**
812
+ * Implement this method in a derived class to handle re-rendering of a row range.
813
+ * @param {Number} index The start index of the range.
814
+ * @param {Number} count The length of the range.
815
+ */
816
+ refreshRows(index: number, count: number): void;
817
+ /**
818
+ * Implement this method in a derived class to handle updates of grid cells after inplace-editing.
819
+ * @param {Number} row The row index.
747
820
  * @param {Number} column The column index.
748
- * @returns {DataType} The type.
749
821
  */
750
- columnType(column: number): any;
822
+ updateCell(row: number, column: number): void;
823
+ /**
824
+ * Implement this method in a derived class to handle row creation.
825
+ */
826
+ onRowCreated(): void;
827
+ /**
828
+ * Implement this method in a derived class to handle row deletion.
829
+ */
830
+ onRowDeleted(): void;
831
+ /**
832
+ * Implement this method in a derived class to handle scrolling.
833
+ */
834
+ onScroll(): void;
835
+ /**
836
+ * Implement this method in a derived class to handle selection.
837
+ */
838
+ onSelect(): void;
839
+ /**
840
+ * Implement this method in a derived class to handle sorting.
841
+ */
842
+ onSort(): void;
843
+ }
844
+ }
845
+ declare module "DataViews/jsdv/src/UIControl" {
846
+ /**
847
+ * @class A base class for UI controls.
848
+ */
849
+ export class UIControl extends Control {
850
+ static get tm(): number[];
851
+ static get ns(): string;
852
+ _messenger: {
853
+ message(control: any): void;
854
+ setKey(value: any): void;
855
+ };
856
+ get targetElement(): Element;
857
+ setLicenseKey(value: any): void;
858
+ }
859
+ import { Control } from "@mindfusion/common";
860
+ }
861
+ declare module "DataViews/jsdv/src/ProxyModel" {
862
+ export default ProxyModel;
863
+ class ProxyModel {
864
+ constructor(sourceModel: any);
865
+ sourceModel: any;
866
+ _filter: any;
867
+ _sortedColumn: number;
868
+ _sortAscending: boolean;
869
+ _groupColumn: number;
870
+ indexMap: any[];
871
+ getMaxKey(): any;
872
+ getKeyRow(key: any): any;
873
+ getRowKey(index: any): any;
874
+ columnType(column: any): any;
875
+ columnName(column: any): any;
876
+ columnCaption(column: any): any;
877
+ columnEditable(column: any): any;
878
+ columnSortable(column: any): any;
879
+ columnHidden(column: any): any;
880
+ columnMetaData(column: any): any;
881
+ cellMetaData(row: any, column: any): any;
882
+ cellDataType(row: any, column: any): any;
883
+ setValue(row: any, column: any, value: any): void;
884
+ value(row: any, column: any): any;
885
+ displayValue(row: any, column: any): any;
886
+ getRowData(row: any): any;
887
+ addRow(rowData: any, index: any): number;
888
+ deleteRow(row: any): void;
889
+ get rowCount(): any;
890
+ get columnCount(): any;
891
+ invalidate(): void;
892
+ ensureIndexMap(): void;
893
+ set filter(arg: any);
894
+ get filter(): any;
895
+ set sortedColumn(arg: number);
896
+ get sortedColumn(): number;
897
+ set sortAscending(arg: boolean);
898
+ get sortAscending(): boolean;
899
+ set groupColumn(arg: number);
900
+ get groupColumn(): number;
901
+ isGroupRow(row: any): any;
902
+ }
903
+ }
904
+ declare module "DataViews/jsdv/src/ImageType" {
905
+ /**
906
+ * @class Provides functionality for grid columns that display image data.
907
+ * @augments DataType
908
+ */
909
+ export class ImageType extends DataType {
910
+ static sortFunction(value1: any, value2: any): any;
911
+ static createEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement | ImagePicker;
912
+ static createDefaultEditor(element: any, displayValue: any, value: any, view: any): HTMLInputElement;
913
+ static updateCell(view: any, element: any, r: any, c: any, displayValue: any): void;
914
+ static createCustomEditor(editor: any, options: any, element: any, displayValue: any, value: any, view: any): void;
915
+ static parse(text: any): any;
916
+ static equals(value1: any, value2: any): boolean;
917
+ static format(value: any, meta: any): string;
918
+ static get textAlign(): string;
919
+ }
920
+ import DataType from "DataViews/jsdv/src/DataType";
921
+ import { ImagePicker } from "@mindfusion/common-ui";
922
+ }
923
+ declare module "DataViews/jsdv/src/GridRenderer" {
924
+ export default GridRenderer;
925
+ /**
926
+ * @class Contains render methods for a grid control.
927
+ */
928
+ class GridRenderer extends DomRenderer {
929
+ repaintId: number;
930
+ draw(): void;
931
+ drawHeader(): HTMLDivElement;
932
+ drawContent(): HTMLDivElement;
933
+ drawRows(): void;
934
+ rowHeight: number;
935
+ rowsHeight: number;
936
+ drawRow(model: any, r: any): HTMLDivElement;
937
+ drawFooter(): HTMLDivElement;
938
+ refreshRow(model: any, r: any): void;
939
+ addSelectedFlag(element: any): void;
940
+ removeSelectedFlag(element: any): void;
941
+ clearSelection(): void;
942
+ updateSelection(): void;
943
+ }
944
+ import { DomRenderer } from "DataViews/jsdv/src/DomRenderer";
945
+ }
946
+ declare module "DataViews/jsdv/src/Selection" {
947
+ export default Selection;
948
+ /**
949
+ * @namespace MindFusion.DataViews
950
+ */
951
+ /**
952
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
953
+ *
954
+ * This source code is provided to you as part of the MindFusion software components
955
+ * package you have purchased. You may use the source code to trace and/or fix
956
+ * problems or customize the library as needed for your application. To get permission
957
+ * to use the source code in any other way, please contact us at support@mindfusion.eu.
958
+ */
959
+ /**
960
+ * @class Represents a selection in a grid control.
961
+ */
962
+ class Selection {
963
+ /**
964
+ * Initializes a new instance of the Selection class.
965
+ * @constructor
966
+ * @param {Grid} grid The associated grid control.
967
+ */
968
+ constructor(grid: any);
969
+ _grid: any;
970
+ _cells: any[];
971
+ _rows: any[];
972
+ set cells(arg: any[]);
973
+ /**
974
+ * Gets or sets the array of selected cells.
975
+ * @type {Array}
976
+ * @summary The array of selected cells.
977
+ */
978
+ get cells(): any[];
979
+ _columns: any[];
980
+ set rows(arg: any[]);
981
+ /**
982
+ * Gets or sets the array of selected rows.
983
+ * @type {Array}
984
+ * @summary The array of selected rows.
985
+ */
986
+ get rows(): any[];
987
+ }
988
+ }
989
+ declare module "DataViews/jsdv/src/GridModel" {
990
+ /**
991
+ * @namespace MindFusion.DataViews
992
+ */
993
+ /**
994
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
995
+ *
996
+ * This source code is provided to you as part of the MindFusion software components
997
+ * package you have purchased. You may use the source code to trace and/or fix
998
+ * problems or customize the library as needed for your application. To get permission
999
+ * to use the source code in any other way, please contact us at support@mindfusion.eu.
1000
+ */
1001
+ /**
1002
+ * @class The interface for grid models.
1003
+ */
1004
+ export class GridModel {
1005
+ /**
1006
+ * Gets the key of the specified row.
1007
+ * @returns {Object} The key.
1008
+ */
1009
+ getRowKey(row: any): any;
1010
+ /**
1011
+ * Gets the row with the specified key.
1012
+ * @returns {Number} The row index.
1013
+ */
1014
+ getKeyRow(key: any): number;
1015
+ /**
1016
+ * Gets the type of the specified column.
1017
+ * @param {Number} column The column index.
1018
+ * @returns {DataType} The type.
1019
+ */
1020
+ columnType(column: number): any;
1021
+ /**
1022
+ * Gets the name of the specified column.
1023
+ * @param {Number} column The column index.
1024
+ * @returns {String} The name of the field displayed in this column.
1025
+ */
1026
+ columnName(column: number): string;
1027
+ /**
1028
+ * Gets the display text of the specified column.
1029
+ * @param {Number} column The column index.
1030
+ * @returns {String} The display text.
1031
+ */
1032
+ columnCaption(column: number): string;
1033
+ /**
1034
+ * Gets a value, indicating whether the cells in the specified column can be edited.
1035
+ * @param {Number} column The column index.
1036
+ * @returns {Boolean} True if the cells in this column can be edited, otherwise false.
1037
+ */
1038
+ columnEditable(column: number): boolean;
1039
+ /**
1040
+ * Gets a value, indicating whether the specified column can be sorted.
1041
+ * @param {Number} column The column index.
1042
+ * @returns {Boolean} True if the specified column can be sorted, otherwise false.
1043
+ */
1044
+ columnSortable(column: number): boolean;
1045
+ /**
1046
+ * Gets the column meta data object.
1047
+ * @param {Number} column The column index.
1048
+ * @returns {Map} A Map instance containing the column meta data.
1049
+ */
1050
+ columnMetaData(column: number): Map<any, any>;
1051
+ cellDataType(row: any, column: any): any;
1052
+ /**
1053
+ * Sets a value at the specified position.
1054
+ * @param {Number} row The row index.
1055
+ * @param {Number} column The column index.
1056
+ * @param {Object} value The value.
1057
+ */
1058
+ setValue(row: number, column: number, value: any): void;
1059
+ /**
1060
+ * Gets the value at the specified position.
1061
+ * @param {Number} row The row index.
1062
+ * @param {Number} column The column index.
1063
+ * @returns {Object} The value.
1064
+ */
1065
+ value(row: number, column: number): any;
1066
+ /**
1067
+ * Gets the display value of the cell in the the specified position.
1068
+ * @param {Number} row The row index.
1069
+ * @param {Number} column The column index.
1070
+ * @returns {String} The display value.
1071
+ */
1072
+ displayValue(row: number, column: number): string;
1073
+ /**
1074
+ * Gets the values at the specified row index.
1075
+ * @param {Number} row The row index.
1076
+ * @returns {Object} An object containing the values at the specified row index.
1077
+ */
1078
+ getRowData(row: number): any;
1079
+ /**
1080
+ * Adds a row to the backing store.
1081
+ * @param {Object} [rowData] The values to add.
1082
+ * @param {Number} [index] The index at which to insert the data.
1083
+ * @returns {Number} index The index of the new row.
1084
+ */
1085
+ addRow(rowData?: any, index?: number): number;
1086
+ /**
1087
+ * Removes the row at the specified index from the backing store.
1088
+ * @param {Number} row The row index.
1089
+ */
1090
+ deleteRow(row: number): void;
1091
+ /**
1092
+ * Gets the number of rows in the backing store.
1093
+ * @type {Number}
1094
+ * @summary The row count.
1095
+ */
1096
+ get rowCount(): number;
1097
+ /**
1098
+ * Gets the number of display columns.
1099
+ * @type {Number}
1100
+ * @summary The column count.
1101
+ */
1102
+ get columnCount(): number;
1103
+ }
1104
+ }
1105
+ declare module "DataViews/jsdv/src/GridCell" {
1106
+ /**
1107
+ * @namespace MindFusion.DataViews
1108
+ */
1109
+ /**
1110
+ * Copyright (c) 2022, MindFusion LLC - Bulgaria.
1111
+ *
1112
+ * This source code is provided to you as part of the MindFusion software components
1113
+ * package you have purchased. You may use the source code to trace and/or fix
1114
+ * problems or customize the library as needed for your application. To get permission
1115
+ * to use the source code in any other way, please contact us at support@mindfusion.eu.
1116
+ */
1117
+ /**
1118
+ * @class Represents a data cell in a grid control.
1119
+ */
1120
+ export class GridCell {
1121
+ /**
1122
+ * Initializes a new instance of the GridCell class.
1123
+ * @constructor
1124
+ * @private
1125
+ */
1126
+ private constructor();
1127
+ _parent: any;
1128
+ _row: any;
1129
+ _column: any;
1130
+ _rowKey: any;
1131
+ /**
1132
+ * @private
1133
+ */
1134
+ private focus;
1135
+ /**
1136
+ * @private
1137
+ */
1138
+ private invalidateKey;
1139
+ /**
1140
+ * Gets the row index of this cell.
1141
+ * @type {Number}
1142
+ * @summary The row index.
1143
+ */
1144
+ get row(): number;
1145
+ /**
1146
+ * Gets the column index of this cell.
1147
+ * @type {Number}
1148
+ * @summary The column index.
1149
+ */
1150
+ get column(): number;
1151
+ /**
1152
+ * Gets the DOM element of this cell.
1153
+ * @type {HTMLDivElement}
1154
+ * @summary The DOM element,
1155
+ */
1156
+ get element(): HTMLDivElement;
1157
+ /**
1158
+ * Gets the parent control] of this cell.
1159
+ * @type {Grid}
1160
+ * @summary The parent control.
1161
+ */
1162
+ get parent(): any;
1163
+ }
1164
+ }
1165
+ declare module "DataViews/jsdv/src/Grid" {
1166
+ /**
1167
+ * @class Represents a grid view control.
1168
+ * @augments UIControl
1169
+ */
1170
+ export class Grid extends UIControl {
1171
+ /**
1172
+ * Initializes a new instance of the Grid class.
1173
+ * @constructor
1174
+ * @param {HTMLDivElement} [element] The control's associated Dom element.
1175
+ * @param {Object} [renderer] Optional.
1176
+ */
1177
+ constructor(element?: HTMLDivElement, renderer?: any);
1178
+ _defaultWidth: Unit;
1179
+ _defaultHeight: Unit;
1180
+ _model: any;
1181
+ _proxyModel: ProxyModel;
1182
+ _allowEdit: boolean;
1183
+ _allowAppend: boolean;
1184
+ _allowDelete: boolean;
1185
+ _allowCellSelect: boolean;
1186
+ _allowScroll: boolean;
1187
+ _filter: any;
1188
+ _sortedColumn: number;
1189
+ _sortAscending: boolean;
1190
+ renderer: any;
1191
+ _scrollRow: number;
1192
+ _columnWidths: any[];
1193
+ _rowHeaderWidth: number;
1194
+ _focusedCell: any;
1195
+ _activeEditor: any;
1196
+ _tableShouldFocus: boolean;
1197
+ selection: Selection;
1198
+ queuedEvents: any[];
1199
+ _rowLoading: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1200
+ _rowRendered: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1201
+ _rowCreating: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1202
+ _rowCreated: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1203
+ _rowDeleting: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1204
+ _rowDeleted: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1205
+ _rowUpdating: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1206
+ _rowUpdated: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1207
+ _rowSelecting: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1208
+ _rowSelected: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1209
+ _cellSelecting: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1210
+ _cellSelected: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1211
+ _cellFocusing: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1212
+ _cellFocused: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1213
+ _customDrawCell: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1214
+ _customDrawHeader: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1215
+ _rowCommand: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1216
+ _resolveCellDataType: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1217
+ _resolveCellMetaData: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1218
+ _getCellValue: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1219
+ _formatCellValue: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1220
+ _objectButtonClick: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1221
+ _scrollHandler: (e: any) => boolean;
1222
+ mouseWheelHandler: (e: any) => void;
1223
+ get wrapper(): Element;
1224
+ /**
1225
+ * Returns a reference to the grid header DOM element.
1226
+ * @type {HTMLDivElement}
1227
+ * @summary The header element.
1228
+ */
1229
+ get header(): HTMLDivElement;
1230
+ /**
1231
+ * Returns a reference to the grid data table DOM element.
1232
+ * @type {HTMLDivElement}
1233
+ * @summary The data table element.
1234
+ */
1235
+ get dataTable(): HTMLDivElement;
1236
+ /**
1237
+ * Returns the array of DOM elements of the visible rows.
1238
+ * @type {Array}
1239
+ * @summary An array of row DOM elements.
1240
+ * @private
1241
+ */
1242
+ private get visibleRows();
1243
+ /**
1244
+ * Returns the array of DOM elements of the visible cells.
1245
+ * @type {Array}
1246
+ * @summary A two-dimensional array of cell DOM elements.
1247
+ * @private
1248
+ */
1249
+ private get visibleCells();
1250
+ scroll: Element;
1251
+ resizeHandler: (e: any) => void;
1252
+ /**
1253
+ * Called before the grid contents are rendered by the current renderer.
1254
+ * @private
1255
+ */
1256
+ private onBeforeRender;
1257
+ /**
1258
+ * Called after the grid contents are rendered by the current renderer.
1259
+ * @private
1260
+ */
1261
+ private onAfterRender;
1262
+ rowHeight: number;
1263
+ rowsCount: number;
1264
+ stopEvents: boolean;
1265
+ /**
1266
+ * Repaints the grid contents.
1267
+ * @param {Boolean} [selected] True to repaint only the selected rows.
1268
+ */
1269
+ refresh(selected?: boolean): Promise<any>;
1270
+ /**
1271
+ * Sets the focus to the cell at the specified position.
1272
+ * @param {Number} row The cell row.
1273
+ * @param {Number} column The cell column.
1274
+ * @param {Boolean} [moveBackwards] True to move backwards.
1275
+ * @remarks If the cell at the specified position is not editable, the focus is set
1276
+ * to the next editable cell, if such exists.
1277
+ */
1278
+ focusCell(row: number, column: number, moveBackwards?: boolean): void;
1279
+ /**
1280
+ * Selects the cell at the specified position.
1281
+ * @param {Number} row The cell row.
1282
+ * @param {Number} column The cell column.
1283
+ */
1284
+ selectCell(row: number, column: number): void;
1285
+ /**
1286
+ * Selects the rows in the specified range.
1287
+ * @param {Number} index The start index of the range to select.
1288
+ * @param {Number} [count] The length of the range.
1289
+ */
1290
+ selectRows(index: number, count?: number): void;
1291
+ /**
1292
+ * Gets the indices of selected rows.
1293
+ * @type {Array}
1294
+ * @summary An array of indices.
1295
+ */
1296
+ get selectedRowIndices(): any[];
1297
+ /**
1298
+ * Gets the selected cells.
1299
+ * @type {Array}
1300
+ * @summary An array of GridCell instances.
1301
+ */
1302
+ get selectedCells(): any[];
1303
+ /**
1304
+ * Invalidates the current renderer.
1305
+ * @private
1306
+ */
1307
+ private invalidateDom;
1308
+ /**
1309
+ * Repaints a range of rows.
1310
+ * @param {Number} index The start index of the row range to repaint.
1311
+ * @param {Number} [count] The length of the range.
1312
+ */
1313
+ refreshRows(index: number, count?: number): Promise<any>;
1314
+ /**
1315
+ * Adds a row.
1316
+ * @param {Object} rowData The values to add.
1317
+ * @param {Number} [index] Optional.
1318
+ */
1319
+ addRow(rowData: any, index?: number): Promise<any>;
1320
+ /**
1321
+ * Removes a range of rows.
1322
+ * @param {Number} index The start index of the row range to remove.
1323
+ * @param {Number} [count] The length of the range.
1324
+ */
1325
+ removeRows(index: number, count?: number): Promise<any>;
1326
+ /**
1327
+ * Removes a range of rows from the data table starting from the given index.
1328
+ * @param {Number} index The starting row index.
1329
+ * @param {Number} count The length of the range.
1330
+ * @private
1331
+ */
1332
+ private removeRowRange;
1333
+ scrollRangeInvalid: boolean;
1334
+ /**
1335
+ * Sorts by the specified column and sort direction.
1336
+ * @param {Number} index The index of the column to sort by, or null to clear the sorting.
1337
+ * @param {Boolean} [sortAscending] True to sort ascending, otherwise false.
1338
+ */
1339
+ sortByColumn(index: number, sortAscending?: boolean): void;
1340
+ set sortedColumn(arg: number);
1341
+ /**
1342
+ * Gets or sets the index of the column, by which the data is sorted.
1343
+ * @type {Number}
1344
+ * @summary The column index, or -1 if no sorting is applied to the grid.
1345
+ */
1346
+ get sortedColumn(): number;
1347
+ set sortAscending(arg: boolean);
1348
+ /**
1349
+ * Gets or sets a value, indicating whether the sorting is in Ascending order.
1350
+ * @type {Boolean}
1351
+ * @summary True if the sorting is in Ascending order, otherwise false.
1352
+ */
1353
+ get sortAscending(): boolean;
1354
+ /**
1355
+ * Calculates the scroll fix amount.
1356
+ * @private
1357
+ */
1358
+ private calcScrollFix;
1359
+ scrollFixAmount: number;
1360
+ /**
1361
+ * Updates the scroll range based on current rows count and height.
1362
+ * @private
1363
+ */
1364
+ private updateScrollRange;
1365
+ scrollIncrement: number;
1366
+ /**
1367
+ * Sets equal column widths in pixels based on flex calculations.
1368
+ * @private
1369
+ */
1370
+ private initColumnWidths;
1371
+ /**
1372
+ * For internal use only.
1373
+ * @private
1374
+ */
1375
+ private resizeColumn;
1376
+ set model(arg: GridModel);
1377
+ /**
1378
+ * Gets or sets the data model of this grid.
1379
+ * @type {GridModel}
1380
+ * @summary The model.
1381
+ */
1382
+ get model(): GridModel;
1383
+ /**
1384
+ * Refreshes the grid after external modifications to the grid model.
1385
+ */
1386
+ rebind(): void;
1387
+ set scrollRow(arg: number);
1388
+ /**
1389
+ * Gets or sets the index of the first visible row.
1390
+ * @type {Number}
1391
+ * @summary The row index.
1392
+ */
1393
+ get scrollRow(): number;
1394
+ get effectiveModel(): any;
1395
+ ensureProxyModel(): void;
1396
+ set allowEdit(arg: boolean);
1397
+ /**
1398
+ * Gets or sets a value, indicating whether inplace editing is enabled.
1399
+ * @type {Boolean}
1400
+ * @summary True if inplace editing is enabled, otherwise false.
1401
+ */
1402
+ get allowEdit(): boolean;
1403
+ set allowAppend(arg: boolean);
1404
+ /**
1405
+ * Gets or sets a value, indicating whether to show a new empty row at the bottom of the grid and a 'New row' option in the row context menu.
1406
+ * @type {Boolean}
1407
+ * @summary True to show a new row, otherwise false.
1408
+ */
1409
+ get allowAppend(): boolean;
1410
+ set allowDelete(arg: boolean);
1411
+ /**
1412
+ * Gets or sets a value, indicating whether to show a 'Delete row' option in the row context menu.
1413
+ * @type {Boolean}
1414
+ * @summary True to show the option, otherwise false.
1415
+ */
1416
+ get allowDelete(): boolean;
1417
+ set allowCellSelect(arg: boolean);
1418
+ /**
1419
+ * Gets or sets a value, indicating whether single cell selection is enabled.
1420
+ * @type {Boolean}
1421
+ * @summary True if single cell selection is enabled, otherwise false.
1422
+ */
1423
+ get allowCellSelect(): boolean;
1424
+ set allowScroll(arg: boolean);
1425
+ /**
1426
+ * Gets or sets a value, indicating whether scrolling is enabled.
1427
+ * @type {Boolean}
1428
+ * @summary True if inplace scrolling is enabled, otherwise false.
1429
+ */
1430
+ get allowScroll(): boolean;
1431
+ set filter(arg: any);
1432
+ get filter(): any;
1433
+ onScroll(e: any): boolean;
1434
+ headerMouseOver(e: any): void;
1435
+ headerMouseLeave(e: any): void;
1436
+ columnHeaderContextMenu(e: any): void;
1437
+ contextMenu: import("@mindfusion/common-ui").Menu;
1438
+ columnHeaderMouseDown(e: any): void;
1439
+ columnHeaderClicked(e: any): void;
1440
+ set focusedCell(arg: GridCell);
1441
+ /**
1442
+ * Gets the active grid cell.
1443
+ * @type {GridCell}
1444
+ * @summary the cell.
1445
+ */
1446
+ get focusedCell(): GridCell;
1447
+ rowHeaderMouseDown(e: any): void;
1448
+ rowHeaderContextMenu(e: any): void;
1449
+ contextMenuCallback(item: any): void;
1450
+ tableKeyDown(e: any): void;
1451
+ tableKeyUp(e: any): void;
1452
+ tableCellClicked(e: any): void;
1453
+ /**
1454
+ * Gets the cell at the provided coordinates, if it is focusable, or the nearest focusable cell in the specified direction.
1455
+ * @param {Number} row The cell row.
1456
+ * @param {Number} column The cell column.
1457
+ * @param {Boolean} back True to search backwards.
1458
+ * @private
1459
+ */
1460
+ private getFocusableCell;
1461
+ moveFocusedCell(row: any, column: any, back: any): void;
1462
+ moveFocusedCellLeft(): void;
1463
+ moveFocusedCellRight(): void;
1464
+ get focusedItem(): GridCell | {
1465
+ row: any;
1466
+ column: number;
1467
+ };
1468
+ /**
1469
+ * Gets the DOM element of the cell in the specified coordinates.
1470
+ * @param {Number} row The cell row.
1471
+ * @param {Number} column The cell column.
1472
+ * @returns {HTMLDivElement} the cell's DOM element.
1473
+ */
1474
+ getCellElement(row: number, column: number): HTMLDivElement;
1475
+ /**
1476
+ * Gets the DOM element of the specified row.
1477
+ * @param {Number} row The row index.
1478
+ * @returns {HTMLDivElement} the row's DOM element.
1479
+ */
1480
+ getRowElement(row: number): HTMLDivElement;
1481
+ /**
1482
+ * Checks if the row at the specified index is currently visible.
1483
+ * @param {Number} row The row index.
1484
+ * @returns {Boolean} True if the row is visible, otherwise false.
1485
+ */
1486
+ isRowVisible(row: number): boolean;
1487
+ isCellVisible(row: any, column: any): boolean;
1488
+ /**
1489
+ * Scrolls to the specified row.
1490
+ * @param {Number} row The row.
1491
+ * @private
1492
+ */
1493
+ private bringRowIntoView;
1494
+ isRepainting: boolean;
1495
+ /**
1496
+ * Ensures that the specified row is visible.
1497
+ * @param {Number} row The row.
1498
+ */
1499
+ bringIntoView(row: number): Promise<any>;
1500
+ /**
1501
+ * Applies an additional translate transform to the data table when scrolling
1502
+ * to the first or last row, if the row is partly visible.
1503
+ * @param {Number} row The relative row index.
1504
+ * @private
1505
+ */
1506
+ private scrollFix;
1507
+ /**
1508
+ * Checks if the row at the specified index is a group row.
1509
+ * @param {Number} row The row index.
1510
+ * @private
1511
+ */
1512
+ private isGroupRow;
1513
+ /**
1514
+ * Scrolls to the specified row.
1515
+ * @param {Number} row The row index.
1516
+ * @private
1517
+ */
1518
+ private scrollToRow;
1519
+ /**
1520
+ * Disposes the active grid cell editor.
1521
+ */
1522
+ disposeActiveEditor(): void;
1523
+ set activeEditor(arg: any);
1524
+ /**
1525
+ * Gets the active editor.
1526
+ * @type {Object}
1527
+ * @summary The editor.
1528
+ */
1529
+ get activeEditor(): any;
1530
+ /**
1531
+ * Gets the index of the last grid row.
1532
+ * @private
1533
+ */
1534
+ private get lastRowIndex();
1535
+ /**
1536
+ * Gets the height of rows viewport.
1537
+ * @type {Number}
1538
+ * @summary The height.
1539
+ * @private
1540
+ */
1541
+ private get contentHeight();
1542
+ /**
1543
+ * Gets the height of rows viewport minus the horizontal scrollbar height.
1544
+ * @type {Number}
1545
+ * @summary The height.
1546
+ * @private
1547
+ */
1548
+ private get contentClientHeight();
1549
+ /**
1550
+ * Gets the width of the specified grid column.
1551
+ * @param {Number} column The column index.
1552
+ * @returns {Number} The width in pixels.
1553
+ */
1554
+ getColumnWidth(column: number): number;
1555
+ /**
1556
+ * Sets the width of the specified grid column.
1557
+ * @param {Number} column The column index.
1558
+ * @param {Number} width The width in pixels.
1559
+ */
1560
+ setColumnWidth(column: number, width: number): void;
1561
+ /**
1562
+ * Disposes the current context menu.
1563
+ */
1564
+ disposeContextMenu(): void;
1565
+ /**
1566
+ * Sets selected rows after raising selection events.
1567
+ * @private
1568
+ */
1569
+ private setRowSelection;
1570
+ /**
1571
+ * Gets the row with the specified key.
1572
+ * @param {Object} key The key.
1573
+ * @returns {Number} The row index.
1574
+ */
1575
+ getKeyRow(key: any): number;
1576
+ /**
1577
+ * Gets the key of the row at the specified index.
1578
+ * @param {Number} index The row index.
1579
+ * @returns {Object} The row key.
1580
+ */
1581
+ getRowKey(index: number): any;
1582
+ /**
1583
+ * Recalculates grid's dimensions.
1584
+ * @remarks Use this method to recalculate the grid's dimensions after resizing.
1585
+ */
1586
+ adjust(): void;
1587
+ /**
1588
+ * For internal use only.
1589
+ * @private
1590
+ */
1591
+ private onResize;
1592
+ onMouseWheel(e: any): void;
1593
+ timeStamp: number;
1594
+ /**
1595
+ * Raises the corresponding validation event when a row action is performed.
1596
+ * @private
1597
+ */
1598
+ private onRowValidateAction;
1599
+ /**
1600
+ * Raises the corresponding notification event after a row action is performed.
1601
+ * @private
1602
+ */
1603
+ private onRowAction;
1604
+ onCellAction(row: any, column: any, value: any, displayValue: any): void;
1605
+ /**
1606
+ * Adds an event to the queued events that will be raised after the grid finished repainting.
1607
+ * @private
1608
+ */
1609
+ private queueEvent;
1610
+ /**
1611
+ * Raises all queued events.
1612
+ * @private
1613
+ */
1614
+ private raiseQueuedEvents;
1615
+ /**
1616
+ * Raises the rowCommand event.
1617
+ * @private
1618
+ */
1619
+ private onRowCommand;
1620
+ /**
1621
+ * Raised when a row data is loading.
1622
+ * @event rowLoading
1623
+ * @type {EventDispatcher}
1624
+ * @property {Grid} sender
1625
+ * @property {RowModifyingEventArgs} args
1626
+ */
1627
+ get rowLoading(): EventDispatcher<any>;
1628
+ /**
1629
+ * Raised when a row is rendered.
1630
+ * @event rowRendered
1631
+ * @type {EventDispatcher}
1632
+ * @property {Grid} sender
1633
+ * @property {RowModifiedEventArgs} args
1634
+ */
1635
+ get rowRendered(): EventDispatcher<any>;
1636
+ /**
1637
+ * Raised before a row is selected.
1638
+ * @event rowSelecting
1639
+ * @type {EventDispatcher}
1640
+ * @property {Grid} sender
1641
+ * @property {RowModifyingEventArgs} args
1642
+ */
1643
+ get rowSelecting(): EventDispatcher<any>;
1644
+ /**
1645
+ * Raised when a row is selected.
1646
+ * @event rowSelected
1647
+ * @type {EventDispatcher}
1648
+ * @property {Grid} sender
1649
+ * @property {RowModifiedEventArgs} args
1650
+ */
1651
+ get rowSelected(): EventDispatcher<any>;
1652
+ /**
1653
+ * Raised before a new row is created.
1654
+ * @event rowCreating
1655
+ * @type {EventDispatcher}
1656
+ * @property {Grid} sender
1657
+ * @property {RowModifyingEventArgs} args
1658
+ */
1659
+ get rowCreating(): EventDispatcher<any>;
1660
+ /**
1661
+ * Raised when a new row is created.
1662
+ * @event rowCreated
1663
+ * @type {EventDispatcher}
1664
+ * @property {Grid} sender
1665
+ * @property {RowModifiedEventArgs} args
1666
+ */
1667
+ get rowCreated(): EventDispatcher<any>;
1668
+ /**
1669
+ * Raised before a row is deleted.
1670
+ * @event rowDeleting
1671
+ * @type {EventDispatcher}
1672
+ * @property {Grid} sender
1673
+ * @property {RowModifyingEventArgs} args
1674
+ */
1675
+ get rowDeleting(): EventDispatcher<any>;
1676
+ /**
1677
+ * Raised when a row is deleted.
1678
+ * @event rowDeleted
1679
+ * @type {EventDispatcher}
1680
+ * @property {Grid} sender
1681
+ * @property {RowModifiedEventArgs} args
1682
+ */
1683
+ get rowDeleted(): EventDispatcher<any>;
1684
+ /**
1685
+ * Raised before a row is updated.
1686
+ * @event rowUpdating
1687
+ * @type {EventDispatcher}
1688
+ * @property {Grid} sender
1689
+ * @property {RowModifyingEventArgs} args
1690
+ */
1691
+ get rowUpdating(): EventDispatcher<any>;
1692
+ /**
1693
+ * Raised when a row is updated.
1694
+ * @event rowUpdated
1695
+ * @type {EventDispatcher}
1696
+ * @property {Grid} sender
1697
+ * @property {RowModifiedEventArgs} args
1698
+ */
1699
+ get rowUpdated(): EventDispatcher<any>;
1700
+ /**
1701
+ * Raised before a cell is selected.
1702
+ * @event cellSelecting
1703
+ * @type {EventDispatcher}
1704
+ * @property {Grid} sender
1705
+ * @property {CellEventArgs} args
1706
+ */
1707
+ get cellSelecting(): EventDispatcher<any>;
1708
+ /**
1709
+ * Raises the onCellSelecting event.
1710
+ * @private
1711
+ */
1712
+ private onCellSelecting;
1713
+ /**
1714
+ * Raised when a cell is selected.
1715
+ * @event cellSelected
1716
+ * @type {EventDispatcher}
1717
+ * @property {Grid} sender
1718
+ * @property {CellEventArgs} args
1719
+ */
1720
+ get cellSelected(): EventDispatcher<any>;
1721
+ /**
1722
+ * Raises the cellSelected event.
1723
+ * @private
1724
+ */
1725
+ private onCellSelected;
1726
+ /**
1727
+ * Raised before a cell is focused.
1728
+ * @event cellFocusing
1729
+ * @type {EventDispatcher}
1730
+ * @property {Grid} sender
1731
+ * @property {CellEventArgs} args
1732
+ */
1733
+ get cellFocusing(): EventDispatcher<any>;
751
1734
  /**
752
- * Gets the name of the specified column.
753
- * @param {Number} column The column index.
754
- * @returns {String} The name of the field displayed in this column.
1735
+ * Raises the cellFocusing event.
1736
+ * @private
755
1737
  */
756
- columnName(column: number): string;
1738
+ private onCellFocusing;
757
1739
  /**
758
- * Gets the display text of the specified column.
759
- * @param {Number} column The column index.
760
- * @returns {String} The display text.
761
- */
762
- columnCaption(column: number): string;
1740
+ * Raised when a cell is focused.
1741
+ * @event cellFocused
1742
+ * @type {EventDispatcher}
1743
+ * @property {Grid} sender
1744
+ * @property {CellEventArgs} args
1745
+ */
1746
+ get cellFocused(): EventDispatcher<any>;
763
1747
  /**
764
- * Gets a value, indicating whether the cells in the specified column can be edited.
765
- * @param {Number} column The column index.
766
- * @returns {Boolean} True if the cells in this column can be edited, otherwise false.
1748
+ * Raises the cellFocused event.
1749
+ * @private
767
1750
  */
768
- columnEditable(column: number): boolean;
1751
+ private onCellFocused;
769
1752
  /**
770
- * Gets a value, indicating whether the specified column can be sorted.
771
- * @param {Number} column The column index.
772
- * @returns {Boolean} True if the specified column can be sorted, otherwise false.
1753
+ * Raises the customDrawCell event.
1754
+ * @private
773
1755
  */
774
- columnSortable(column: number): boolean;
1756
+ private onCustomDrawCell;
775
1757
  /**
776
- * Gets the column meta data object.
777
- * @param {Number} column The column index.
778
- * @returns {Map} A Map instance containing the column meta data.
779
- */
780
- columnMetaData(column: number): Map<any, any>;
1758
+ * Raised when a cell's contents are about to be rendered, to allow custom drawing.
1759
+ * @event customDrawCell
1760
+ * @type {EventDispatcher}
1761
+ * @property {Grid} sender
1762
+ * @property {CellCustomDrawEventArgs} args
1763
+ */
1764
+ get customDrawCell(): EventDispatcher<any>;
781
1765
  /**
782
- * Sets a value at the specified position.
783
- * @param {Number} row The row index.
784
- * @param {Number} column The column index.
785
- * @param {Object} value The value.
1766
+ * Raises the customDrawHeader event.
1767
+ * @private
786
1768
  */
787
- setValue(row: number, column: number, value: any): void;
1769
+ private onCustomDrawHeader;
788
1770
  /**
789
- * Gets the value at the specified position.
790
- * @param {Number} row The row index.
791
- * @param {Number} column The column index.
792
- * @returns {Object} The value.
793
- */
794
- value(row: number, column: number): any;
1771
+ * Raised when a header cell's contents are about to be rendered, to allow custom drawing.
1772
+ * @event customDrawHeader
1773
+ * @type {EventDispatcher}
1774
+ * @property {Grid} sender
1775
+ * @property {CellCustomDrawEventArgs} args
1776
+ */
1777
+ get customDrawHeader(): EventDispatcher<any>;
795
1778
  /**
796
- * Gets the display value of the cell in the the specified position.
797
- * @param {Number} row The row index.
798
- * @param {Number} column The column index.
799
- * @returns {String} The display value.
800
- */
801
- displayValue(row: number, column: number): string;
1779
+ * Raised when a command is executed on a row.
1780
+ * @event rowCommand
1781
+ * @type {EventDispatcher}
1782
+ * @property {Grid} sender
1783
+ * @property {RowModifyingEventArgs} args
1784
+ */
1785
+ get rowCommand(): EventDispatcher<any>;
802
1786
  /**
803
- * Gets the values at the specified row index.
804
- * @param {Number} row The row index.
805
- * @returns {Object} An object containing the values at the specified row index.
806
- */
807
- getRowData(row: number): any;
1787
+ * Raised when the data type of a cell in a DynamicType column has to be resolved.
1788
+ * @event resolveCellDataType
1789
+ * @type {EventDispatcher}
1790
+ * @property {Grid} sender
1791
+ * @property {CellResolveEventArgs} args
1792
+ */
1793
+ get resolveCellDataType(): EventDispatcher<any>;
808
1794
  /**
809
- * Adds a row to the backing store.
810
- * @param {Object} [rowData] The values to add.
811
- * @param {Number} [index] The index at which to insert the data.
812
- * @returns {Number} index The index of the new row.
1795
+ * Raised when the value of a cell in a DynamicType column is retrieved.
1796
+ * @event getCellValue
1797
+ * @type {EventDispatcher}
1798
+ * @property {Grid} sender
1799
+ * @property {CellResolveEventArgs} args
813
1800
  */
814
- addRow(rowData?: any, index?: number): number;
1801
+ get getCellValue(): EventDispatcher<any>;
815
1802
  /**
816
- * Removes the row at the specified index from the backing store.
817
- * @param {Number} row The row index.
1803
+ * Raised when the data type of a cell in a DynamicType column has to be resolved.
1804
+ * @event resolveCellDataType
1805
+ * @type {EventDispatcher}
1806
+ * @property {Grid} sender
1807
+ * @property {CellResolveEventArgs} args
818
1808
  */
819
- deleteRow(row: number): void;
1809
+ get resolveCellMetaData(): EventDispatcher<any>;
820
1810
  /**
821
- * Gets the number of rows in the backing store.
822
- * @returns {Number} The row count.
1811
+ * Raised when the value of a cell in a DynamicType column has to be formatted.
1812
+ * @event formatCellValue
1813
+ * @type {EventDispatcher}
1814
+ * @property {Grid} sender
1815
+ * @property {CellResolveEventArgs} args
823
1816
  */
824
- get rowCount(): number;
1817
+ get formatCellValue(): EventDispatcher<any>;
825
1818
  /**
826
- * Gets the number of display columns.
827
- * @returns {Number} The column count.
1819
+ * Raised when an expander button is clicked
1820
+ * @private
828
1821
  */
829
- get columnCount(): number;
1822
+ private get objectButtonClick();
830
1823
  }
1824
+ import { UIControl } from "DataViews/jsdv/src/UIControl";
1825
+ import { Unit } from "@mindfusion/common";
1826
+ import ProxyModel from "DataViews/jsdv/src/ProxyModel";
1827
+ import Selection from "DataViews/jsdv/src/Selection";
1828
+ import { EventDispatcher } from "@mindfusion/common";
1829
+ import { GridModel } from "DataViews/jsdv/src/GridModel";
1830
+ import { GridCell } from "DataViews/jsdv/src/GridCell";
831
1831
  }
832
- declare module "DataViews/jsdv/src/GridCell" {
833
- /**
834
- * @namespace MindFusion.DataViews
835
- */
836
- /**
837
- * Copyright (c) 2020, MindFusion LLC - Bulgaria.
838
- *
839
- * This source code is provided to you as part of the MindFusion software components
840
- * package you have purchased. You may use the source code to trace and/or fix
841
- * problems or customize the library as needed for your application. To get permission
842
- * to use the source code in any other way, please contact us at support@mindfusion.eu.
843
- */
1832
+ declare module "DataViews/jsdv/src/GridColumn" {
844
1833
  /**
845
- * @class Represents a data cell in a grid control.
846
- * @property {Number} row Gets the row index of this cell.
847
- * @property {Number} column Gets the column index of this cell.
848
- * @property {Grid} parent Gets the parent control of this cell.
1834
+ * @class Represents a column in a grid control.
849
1835
  */
850
- export class GridCell {
1836
+ export class GridColumn {
851
1837
  /**
852
- * Initializes a new instance of the GridCell class.
1838
+ * Initializes a new instance of the GridColumn class.
853
1839
  * @constructor
854
- * @private
1840
+ * @param {String} [name] The name of the field, displayed in the column.
1841
+ * @param {DataType} [dataType] The type of the column.
1842
+ * @param {Boolean} [editable] A value indicating whether the cells in this column can be edited.
855
1843
  */
856
- private constructor();
857
- _parent: any;
858
- _row: any;
859
- _column: any;
860
- _rowKey: any;
1844
+ constructor(name?: string, dataType?: any, editable?: boolean);
1845
+ _name: string;
1846
+ _dataType: any;
1847
+ _metaData: Map<any, any>;
1848
+ _editable: boolean;
1849
+ _sortable: boolean;
1850
+ _hidden: boolean;
1851
+ set name(arg: string);
861
1852
  /**
862
- * @private
863
- */
864
- private focus;
1853
+ * Gets or sets the name of the field, displayed in the column.
1854
+ * @type {String}
1855
+ * @summary The field name.
1856
+ */
1857
+ get name(): string;
1858
+ set dataType(arg: any);
865
1859
  /**
866
- * @private
867
- */
868
- private invalidateKey;
1860
+ * Gets or sets the type of this column.
1861
+ * @type {DataType}
1862
+ * @summary The type.
1863
+ */
1864
+ get dataType(): any;
1865
+ set metaData(arg: Map<any, any>);
869
1866
  /**
870
- * Gets the row index of this cell.
871
- * @returns {Number} The row index.
1867
+ * Gets or sets the metadata, associated with this column.
1868
+ * @type {Map}
1869
+ * @summary The metadata.
872
1870
  */
873
- get row(): number;
1871
+ get metaData(): Map<any, any>;
1872
+ set caption(arg: string);
874
1873
  /**
875
- * Gets the column index of this cell.
876
- * @returns {Number} The column index.
1874
+ * Gets or sets the text, diplayed in the header of this column.
1875
+ * @type {String}
1876
+ * @summary The display text.
877
1877
  */
878
- get column(): number;
1878
+ get caption(): string;
1879
+ _caption: string;
1880
+ set editable(arg: boolean);
879
1881
  /**
880
- * Gets the DOM element of this cell.
881
- * @returns {HTMLDivElement} The DOM element,
1882
+ * Gets or sets a value, indicating whether the cells in this column can be edited.
1883
+ * @type {Boolean}
1884
+ * @summary True if the cells in this column can be edited, otherwise false.
882
1885
  */
883
- get element(): HTMLDivElement;
1886
+ get editable(): boolean;
1887
+ set sortable(arg: boolean);
884
1888
  /**
885
- * Gets the parent control] of this cell.
886
- * @returns {Grid} The parent control.
1889
+ * Gets or sets a value, indicating whether this column can be sorted.
1890
+ * @type {Boolean}
1891
+ * @summary True if the column can be sorted, otherwise false.
887
1892
  */
888
- get parent(): any;
1893
+ get sortable(): boolean;
1894
+ set hidden(arg: boolean);
1895
+ /**
1896
+ * Gets or sets a value, indicating whether this column is hidden.
1897
+ * @type {Boolean}
1898
+ * @summary True if the column is hidden, otherwise false.
1899
+ */
1900
+ get hidden(): boolean;
889
1901
  }
890
1902
  }
891
- declare module "DataViews/jsdv/src/Grid" {
1903
+ declare module "DataViews/jsdv/src/PropertyGridModel" {
892
1904
  /**
893
- * @class Represents a grid view control.
1905
+ * @class Represents the grid model of the PropertyGrid control.
1906
+ * @private
1907
+ */
1908
+ export class PropertyGridModel extends ArrayModel {
1909
+ /**
1910
+ * Initializes a new instance of the PropertyGridModel class.
1911
+ * @constructor
1912
+ * @param {Array} values The array to use as a backing store.
1913
+ * @param {Map} meta The meta data dictionary.
1914
+ */
1915
+ constructor(values: any[], meta: Map<any, any>);
1916
+ }
1917
+ import { ArrayModel } from "DataViews/jsdv/src/ArrayModel";
1918
+ }
1919
+ declare module "DataViews/jsdv/src/CollectionType" {
1920
+ /**
1921
+ * @class Provides functionality for grid cells that display collection objects.
1922
+ * @augments ObjectType
1923
+ */
1924
+ export class CollectionType extends ObjectType {
1925
+ static format(value: any, meta: any): string;
1926
+ }
1927
+ import { ObjectType } from "DataViews/jsdv/src/ObjectType";
1928
+ }
1929
+ declare module "DataViews/jsdv/src/PropertyGridContent" {
1930
+ /**
1931
+ * @class Represents a content grid in a PropertyGrid control.
894
1932
  * @augments UIControl
895
- * @property {GridModel} model Gets or sets the data model of this grid.
896
- * @property {Boolean} allowAppend Gets or sets a value, indicating whether to
897
- * show a new empty row at the bottom of the grid and a 'New row' option in the row context menu.
898
- * @property {Boolean} allowEdit Gets or sets a value, indicating whether inplace editing is enabled.
899
- * @property {Boolean} allowDelete Gets or sets a value, indicating whether to show a 'Delete row' option in the row context menu.
900
- * @property {Boolean} allowCellSelect Gets or sets a value, indicating whether single cell selection is enabled.
901
- * @property {Boolean} allowScroll Gets or sets a value, indicating whether scrolling is enabled.
902
- * @property {Array} selectedRowIndices Gets the indices of selected rows.
903
- * @property {Array} selectedCells Gets the selected cells.
904
- * @property {Number} sortedColumn Gets the index of the column, by which the data is sorted.
905
- * @property {Boolean} sortAscending Gets a value, indicating whether the sorting is in Ascending order.
906
- * @property {Number} scrollRow Gets or sets the index of the first visible row.
907
- * @property {GridCell} focusedCell Gets the active grid cell.
908
- * @property {Object} activeEditor Gets the active grid cell editor.
909
- * @property {HTMLDivElement} header Gets a reference to the grid header DOM element.
910
- * @property {HTMLDivElement} dataTable Gets a reference to the grid data table DOM element.
1933
+ * @private
911
1934
  */
912
- export class Grid extends UIControl {
1935
+ export class PropertyGridContent extends UIControl {
913
1936
  /**
914
- * Initializes a new instance of the Grid class.
1937
+ * Initializes a new instance of the PropertyGridContent class.
915
1938
  * @constructor
916
- * @param {HTMLDivElement} [element] The control's associated Dom element.
917
- * @param {Object} [renderer] Optional.
1939
+ * @param {Object} obj The object whose properties will be shown in the grid.
918
1940
  */
919
- constructor(element?: HTMLDivElement, renderer?: any);
1941
+ constructor(obj: any);
920
1942
  _defaultWidth: Unit;
921
1943
  _defaultHeight: Unit;
1944
+ _selectedObject: any;
922
1945
  _model: any;
923
1946
  _proxyModel: ProxyModel;
1947
+ _metaData: Map<any, any>;
1948
+ _excludedProperties: string[];
924
1949
  _allowEdit: boolean;
925
- _allowAppend: boolean;
926
- _allowDelete: boolean;
927
1950
  _allowCellSelect: boolean;
928
1951
  _allowScroll: boolean;
929
1952
  _filter: any;
930
1953
  _sortedColumn: number;
931
1954
  _sortAscending: boolean;
932
- renderer: any;
1955
+ renderer: GridRenderer;
933
1956
  _scrollRow: number;
934
1957
  _columnWidths: any[];
935
1958
  _rowHeaderWidth: number;
936
1959
  _focusedCell: any;
937
1960
  _activeEditor: any;
938
1961
  _tableShouldFocus: boolean;
1962
+ _searchString: string;
1963
+ _scrollBarSize: number;
939
1964
  selection: Selection;
940
1965
  queuedEvents: any[];
1966
+ _expandObject: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1967
+ _columnSorted: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1968
+ _groupingChanged: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1969
+ _rowLoading: EventDispatcher<import("Controls/EventArgs").EventArgs>;
941
1970
  _rowRendered: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1971
+ _rowExpanding: EventDispatcher<import("Controls/EventArgs").EventArgs>;
1972
+ _rowExpanded: EventDispatcher<import("Controls/EventArgs").EventArgs>;
942
1973
  _rowCreating: EventDispatcher<import("Controls/EventArgs").EventArgs>;
943
1974
  _rowCreated: EventDispatcher<import("Controls/EventArgs").EventArgs>;
944
1975
  _rowDeleting: EventDispatcher<import("Controls/EventArgs").EventArgs>;
@@ -951,15 +1982,12 @@ declare module "DataViews/jsdv/src/Grid" {
951
1982
  _cellSelected: EventDispatcher<import("Controls/EventArgs").EventArgs>;
952
1983
  _cellFocusing: EventDispatcher<import("Controls/EventArgs").EventArgs>;
953
1984
  _cellFocused: EventDispatcher<import("Controls/EventArgs").EventArgs>;
954
- _customDrawCell: EventDispatcher<import("Controls/EventArgs").EventArgs>;
955
- _customDrawHeader: EventDispatcher<import("Controls/EventArgs").EventArgs>;
956
- _rowCommand: EventDispatcher<import("Controls/EventArgs").EventArgs>;
957
- _scrollHandler: (e: any) => boolean;
1985
+ scrollHandler: (e: any) => boolean;
958
1986
  mouseWheelHandler: (e: any) => void;
959
1987
  get wrapper(): Element;
960
1988
  /**
961
1989
  * Returns a reference to the grid header DOM element.
962
- * @returns {HTMLDivElement} The header element.
1990
+ * @type {HTMLDivElement} The header element.
963
1991
  */
964
1992
  get header(): HTMLDivElement;
965
1993
  /**
@@ -979,6 +2007,14 @@ declare module "DataViews/jsdv/src/Grid" {
979
2007
  * @private
980
2008
  */
981
2009
  private get visibleCells();
2010
+ rowHeaderMouseDown(e: any): void;
2011
+ set focusedCell(arg: GridCell);
2012
+ /**
2013
+ * Gets the active grid cell.
2014
+ * @type {GridCell}
2015
+ * @summary the cell.
2016
+ */
2017
+ get focusedCell(): GridCell;
982
2018
  scroll: Element;
983
2019
  resizeHandler: (e: any) => void;
984
2020
  /**
@@ -991,9 +2027,8 @@ declare module "DataViews/jsdv/src/Grid" {
991
2027
  * @private
992
2028
  */
993
2029
  private onAfterRender;
994
- rowHeight: number;
995
2030
  rowsCount: number;
996
- stopEvents: boolean;
2031
+ rowHeight: number;
997
2032
  /**
998
2033
  * Repaints the grid contents.
999
2034
  * @param {Boolean} [selected] True to repaint only the selected rows.
@@ -1027,7 +2062,8 @@ declare module "DataViews/jsdv/src/Grid" {
1027
2062
  get selectedRowIndices(): any[];
1028
2063
  /**
1029
2064
  * Gets the selected cells.
1030
- * @returns {Array} An array of GridCell instances.
2065
+ * @type {Array}
2066
+ * @summary An array of GridCell instances.
1031
2067
  */
1032
2068
  get selectedCells(): any[];
1033
2069
  /**
@@ -1041,25 +2077,8 @@ declare module "DataViews/jsdv/src/Grid" {
1041
2077
  * @param {Number} [count] The length of the range.
1042
2078
  */
1043
2079
  refreshRows(index: number, count?: number): Promise<any>;
1044
- /**
1045
- * Adds a row.
1046
- * @param {Object} rowData The values to add.
1047
- * @param {Number} [index] Optional.
1048
- */
1049
- addRow(rowData: any, index?: number): Promise<any>;
1050
- /**
1051
- * Removes a range of rows.
1052
- * @param {Number} index The start index of the row range to remove.
1053
- * @param {Number} [count] The length of the range.
1054
- */
1055
- removeRows(index: number, count?: number): Promise<any>;
1056
- /**
1057
- * Removes a range of rows from the data table starting from the given index.
1058
- * @param {Number} index The starting row index.
1059
- * @param {Number} count The length of the range.
1060
- * @private
1061
- */
1062
- private removeRowRange;
2080
+ addRow(): void;
2081
+ removeRowRange(index: any, count: any): void;
1063
2082
  scrollRangeInvalid: boolean;
1064
2083
  /**
1065
2084
  * Sorts by the specified column and sort direction.
@@ -1069,17 +2088,31 @@ declare module "DataViews/jsdv/src/Grid" {
1069
2088
  sortByColumn(index: number, sortAscending?: boolean): void;
1070
2089
  set sortedColumn(arg: number);
1071
2090
  /**
1072
- * Gets the index of the column, by which the data is sorted.
1073
- * @returns {Number} The column index, or -1 if no sorting is applied to the grid.
2091
+ * Gets or sets the index of the column, by which the data is sorted.
2092
+ * @type {Number}
2093
+ * @summary The column index, or -1 if no sorting is applied to the grid.
1074
2094
  */
1075
2095
  get sortedColumn(): number;
1076
2096
  set sortAscending(arg: boolean);
1077
2097
  /**
1078
- * Gets a value, indicating whether the sorting is in Ascending order.
1079
- * @returns {Boolean} True if the sorting is in Ascending order, otherwise false.
2098
+ * Gets or sets a value, indicating whether the sorting is in Ascending order.
2099
+ * @type {Boolean}
2100
+ * @summary True if the sorting is in Ascending order, otherwise false.
1080
2101
  */
1081
2102
  get sortAscending(): boolean;
1082
2103
  /**
2104
+ * Groups by the specified column.
2105
+ * @param {Number} index The index of the column to group by, or null to clear the grouping.
2106
+ */
2107
+ groupByColumn(index: number): void;
2108
+ private set groupColumn(arg);
2109
+ /**
2110
+ * Gets the index of the column, by which the data is grouped.
2111
+ * @returns {Number} The column index, or -1 if no grouping is applied to the grid.
2112
+ * @private
2113
+ */
2114
+ private get groupColumn();
2115
+ /**
1083
2116
  * Calculates the scroll fix amount.
1084
2117
  * @private
1085
2118
  */
@@ -1101,103 +2134,99 @@ declare module "DataViews/jsdv/src/Grid" {
1101
2134
  * @private
1102
2135
  */
1103
2136
  private resizeColumn;
2137
+ set model(arg: any);
1104
2138
  /**
1105
- * Sets the data model of this grid.
1106
- * @param {GridModel} value The model.
2139
+ * Gets or sets the effective data model of this grid.
2140
+ * @type {GridModel}
2141
+ * @summary The model.
1107
2142
  */
1108
- set model(arg: GridModel);
2143
+ get model(): any;
2144
+ getAllPropertyDescriptors(obj: any): any;
2145
+ set selectedObject(arg: any);
2146
+ get selectedObject(): any;
2147
+ generateData(values: any): void;
1109
2148
  /**
1110
- * Gets the effective data model of this grid.
1111
- * @returns {GridModel} The model.
1112
- */
1113
- get model(): GridModel;
2149
+ * Sets the metadata, associated with this grid.
2150
+ * @param {Map} value The metadata.
2151
+ */
2152
+ set metaData(arg: Map<any, any>);
1114
2153
  /**
1115
- * Refreshes the grid after external modifications to the grid model.
1116
- */
1117
- rebind(): void;
2154
+ * Gets the metadata, associated with this grid.
2155
+ * @returns {Map} The metadata.
2156
+ */
2157
+ get metaData(): Map<any, any>;
1118
2158
  /**
1119
- * Sets the index of the first visible row.
1120
- * @param {Number} row The row index.
2159
+ * Gets a value indicating whether to enumerate the properties that don't have setters.
2160
+ * @type {Boolean}
2161
+ * @summary True to enumerate read-only properties, otherwise false.
2162
+ */
2163
+ get showAllProperties(): boolean;
2164
+ /**
2165
+ * Gets a value indicating whether to enumerate the properties that don't have setters.
2166
+ * @type {Boolean}
2167
+ * @summary True to enumerate read-only properties, otherwise false.
1121
2168
  */
2169
+ get showReadonlyProperties(): boolean;
2170
+ /**
2171
+ * Gets a value indicating whether properties that don't have setters can be edited.
2172
+ * @type {Boolean}
2173
+ * @summary True if read-only properties can be edited, otherwise false.
2174
+ */
2175
+ get editReadonlyProperties(): boolean;
2176
+ /**
2177
+ * Refreshes the grid after external modifications to the grid model.
2178
+ */
2179
+ rebind(): void;
1122
2180
  set scrollRow(arg: number);
1123
2181
  /**
1124
- * Gets the index of the first visible row.
1125
- * @returns {Number} The row index.
2182
+ * Gets or sets the index of the first visible row.
2183
+ * @type {Number}
2184
+ * @summary The row index.
1126
2185
  */
1127
2186
  get scrollRow(): number;
1128
2187
  get effectiveModel(): any;
1129
2188
  ensureProxyModel(): void;
1130
- /**
1131
- * Sets a value, indicating whether inplace editing is enabled.
1132
- * @param {Boolean} value True if inplace editing is enabled, otherwise false.
1133
- */
1134
2189
  set allowEdit(arg: boolean);
1135
2190
  /**
1136
- * Gets a value, indicating whether inplace editing is enabled.
1137
- * @returns {Boolean} True if inplace editing is enabled, otherwise false.
2191
+ * Gets or sets a value, indicating whether inplace editing is enabled.
2192
+ * @type {Boolean}
2193
+ * @summary True if inplace editing is enabled, otherwise false.
1138
2194
  */
1139
2195
  get allowEdit(): boolean;
1140
- /**
1141
- * Sets a value, indicating whether to show a new empty row at the bottom of the grid and a 'New row' option in the row context menu.
1142
- * @param {Boolean} value True to show a new row, otherwise false.
1143
- */
1144
- set allowAppend(arg: boolean);
1145
- /**
1146
- * Gets a value, indicating whether to show a new empty row at the bottom of the grid and a 'New row' option in the row context menu.
1147
- * @returns {Boolean} True to show a new row, otherwise false.
1148
- */
1149
- get allowAppend(): boolean;
1150
- /**
1151
- * Sets a value, indicating whether to show a 'Delete row' option in the row context menu.
1152
- * @param {Boolean} value True to show the option, otherwise false.
1153
- */
1154
- set allowDelete(arg: boolean);
1155
- /**
1156
- * Gets a value, indicating whether to show a 'Delete row' option in the row context menu.
1157
- * @returns {Boolean} True to show the option, otherwise false.
1158
- */
1159
- get allowDelete(): boolean;
1160
- /**
1161
- * Sets a value, indicating whether single cell selection is enabled.
1162
- * @param {Boolean} value True if single cell selection is enabled, otherwise false.
1163
- */
1164
2196
  set allowCellSelect(arg: boolean);
1165
2197
  /**
1166
- * Gets a value, indicating whether single cell selection is enabled.
1167
- * @returns {Boolean} True if single cell selection is enabled, otherwise false.
2198
+ * Gets or sets a value, indicating whether single cell selection is enabled.
2199
+ * @type {Boolean}
2200
+ * @summary True if single cell selection is enabled, otherwise false.
1168
2201
  */
1169
2202
  get allowCellSelect(): boolean;
1170
- /**
1171
- * Sets a value, indicating whether scrolling is enabled.
1172
- * @param {Boolean} value True if scrolling is enabled, otherwise false.
1173
- */
1174
2203
  set allowScroll(arg: boolean);
1175
2204
  /**
1176
- * Gets a value, indicating whether scrolling is enabled.
1177
- * @returns {Boolean} True if inplace scrolling is enabled, otherwise false.
2205
+ * Gets or sets a value, indicating whether scrolling is enabled.
2206
+ * @type {Boolean}
2207
+ * @summary True if inplace scrolling is enabled, otherwise false.
1178
2208
  */
1179
2209
  get allowScroll(): boolean;
1180
2210
  set filter(arg: any);
1181
2211
  get filter(): any;
2212
+ _groupColumn: any;
1182
2213
  onScroll(e: any): boolean;
1183
2214
  headerMouseOver(e: any): void;
1184
2215
  headerMouseLeave(e: any): void;
1185
- columnHeaderContextMenu(e: any): void;
1186
- contextMenu: HTMLDivElement | Menu;
1187
2216
  columnHeaderMouseDown(e: any): void;
1188
- columnHeaderClicked(e: any): void;
1189
- set focusedCell(arg: GridCell);
1190
- /**
1191
- * Gets the active grid cell.
1192
- * @returns {GridCell} the cell.
1193
- */
1194
- get focusedCell(): GridCell;
1195
- rowHeaderMouseDown(e: any): void;
1196
- rowHeaderContextMenu(e: any): void;
2217
+ rowHeaderContextMenu(e: any, selection: any): void;
2218
+ contextMenu: import("@mindfusion/common-ui").Menu;
1197
2219
  contextMenuCallback(item: any): void;
2220
+ /**
2221
+ * Disposes the current context menu.
2222
+ */
2223
+ disposeContextMenu(): void;
1198
2224
  tableKeyDown(e: any): void;
2225
+ _clearSearchTimeout: number;
2226
+ autoSearch(searchString: any): void;
1199
2227
  tableKeyUp(e: any): void;
1200
2228
  tableCellClicked(e: any): void;
2229
+ getNextFocusableRow(row: any, back: any): any;
1201
2230
  /**
1202
2231
  * Gets the cell at the provided coordinates, if it is focusable, or the nearest focusable cell in the specified direction.
1203
2232
  * @param {Number} row The cell row.
@@ -1213,6 +2242,8 @@ declare module "DataViews/jsdv/src/Grid" {
1213
2242
  row: any;
1214
2243
  column: number;
1215
2244
  };
2245
+ get firstFocusableColumn(): number;
2246
+ get lastFocusableColumn(): number;
1216
2247
  /**
1217
2248
  * Gets the DOM element of the cell in the specified coordinates.
1218
2249
  * @param {Number} row The cell row.
@@ -1253,6 +2284,12 @@ declare module "DataViews/jsdv/src/Grid" {
1253
2284
  */
1254
2285
  private scrollFix;
1255
2286
  /**
2287
+ * Checks if the row at the specified index is a group row.
2288
+ * @param {Number} row The row index.
2289
+ * @private
2290
+ */
2291
+ private isGroupRow;
2292
+ /**
1256
2293
  * Scrolls to the specified row.
1257
2294
  * @param {Number} row The row index.
1258
2295
  * @private
@@ -1265,7 +2302,8 @@ declare module "DataViews/jsdv/src/Grid" {
1265
2302
  set activeEditor(arg: any);
1266
2303
  /**
1267
2304
  * Gets the active editor.
1268
- * @returns {Object} The editor.
2305
+ * @type {Object}
2306
+ * @summary The editor.
1269
2307
  */
1270
2308
  get activeEditor(): any;
1271
2309
  /**
@@ -1275,16 +2313,19 @@ declare module "DataViews/jsdv/src/Grid" {
1275
2313
  private get lastRowIndex();
1276
2314
  /**
1277
2315
  * Gets the height of rows viewport.
1278
- * @returns {Number} The height.
2316
+ * @type {Number}
2317
+ * @summary The height.
1279
2318
  * @private
1280
2319
  */
1281
2320
  private get contentHeight();
1282
2321
  /**
1283
2322
  * Gets the height of rows viewport minus the horizontal scrollbar height.
1284
- * @returns {Number} The height.
2323
+ * @type {Number}
2324
+ * @summary The height.
1285
2325
  * @private
1286
2326
  */
1287
2327
  private get contentClientHeight();
2328
+ get parent(): any;
1288
2329
  /**
1289
2330
  * Gets the width of the specified grid column.
1290
2331
  * @param {Number} column The column index.
@@ -1292,16 +2333,10 @@ declare module "DataViews/jsdv/src/Grid" {
1292
2333
  */
1293
2334
  getColumnWidth(column: number): number;
1294
2335
  /**
1295
- * Sets the width of the specified grid column.
1296
- * @param {Number} column The column index.
2336
+ * Sets the width of the first grid column.
1297
2337
  * @param {Number} width The width in pixels.
1298
2338
  */
1299
- setColumnWidth(column: number, width: number): void;
1300
- createContextMenu(x: any, y: any, items: any): void;
1301
- /**
1302
- * Disposes the current context menu.
1303
- */
1304
- disposeContextMenu(): void;
2339
+ setColumnWidth(width: number): void;
1305
2340
  /**
1306
2341
  * Sets selected rows after raising selection events.
1307
2342
  * @private
@@ -1341,26 +2376,36 @@ declare module "DataViews/jsdv/src/Grid" {
1341
2376
  * @private
1342
2377
  */
1343
2378
  private onRowAction;
1344
- /**
1345
- * Adds an event to the queued events that will be raised after the grid finished repainting.
1346
- * @private
1347
- */
1348
- private queueEvent;
1349
- /**
1350
- * Raises all queued events.
1351
- * @private
1352
- */
1353
- private raiseQueuedEvents;
1354
- /**
1355
- * Raises the rowCommand event.
1356
- * @private
1357
- */
1358
- private onRowCommand;
2379
+ onCellAction(row: any, column: any): void;
2380
+ /**
2381
+ * Raised when a column is sorted.
2382
+ * @event columnSorted
2383
+ * @type {EventDispatcher}
2384
+ * @property {PropertyGridContent} sender
2385
+ * @property {Object} args
2386
+ */
2387
+ get columnSorted(): EventDispatcher<any>;
2388
+ /**
2389
+ * Raised when a column is sorted.
2390
+ * @event groupingChanged
2391
+ * @type {EventDispatcher}
2392
+ * @property {PropertyGridContent} sender
2393
+ * @property {Object} args
2394
+ */
2395
+ get groupingChanged(): EventDispatcher<any>;
2396
+ /**
2397
+ * Raised when a row data is loading.
2398
+ * @event rowLoading
2399
+ * @type {EventDispatcher}
2400
+ * @property {PropertyGridContent} sender
2401
+ * @property {RowModifyingEventArgs} args
2402
+ */
2403
+ get rowLoading(): EventDispatcher<any>;
1359
2404
  /**
1360
2405
  * Raised when a row is rendered.
1361
2406
  * @event rowRendered
1362
2407
  * @type {EventDispatcher}
1363
- * @property {Grid} sender
2408
+ * @property {PropertyGridContent} sender
1364
2409
  * @property {RowModifiedEventArgs} args
1365
2410
  */
1366
2411
  get rowRendered(): EventDispatcher<any>;
@@ -1368,7 +2413,7 @@ declare module "DataViews/jsdv/src/Grid" {
1368
2413
  * Raised before a row is selected.
1369
2414
  * @event rowSelecting
1370
2415
  * @type {EventDispatcher}
1371
- * @property {Grid} sender
2416
+ * @property {PropertyGridContent} sender
1372
2417
  * @property {RowModifyingEventArgs} args
1373
2418
  */
1374
2419
  get rowSelecting(): EventDispatcher<any>;
@@ -1376,15 +2421,31 @@ declare module "DataViews/jsdv/src/Grid" {
1376
2421
  * Raised when a row is selected.
1377
2422
  * @event rowSelected
1378
2423
  * @type {EventDispatcher}
1379
- * @property {Grid} sender
2424
+ * @property {PropertyGridContent} sender
1380
2425
  * @property {RowModifiedEventArgs} args
1381
2426
  */
1382
2427
  get rowSelected(): EventDispatcher<any>;
2428
+ /**
2429
+ * Raised before a row is expanded.
2430
+ * @event rowExpanding
2431
+ * @type {EventDispatcher}
2432
+ * @property {PropertyGridContent} sender
2433
+ * @property {RowModifyingEventArgs} args
2434
+ */
2435
+ get rowExpanding(): EventDispatcher<any>;
2436
+ /**
2437
+ * Raised when a row is expanded.
2438
+ * @event rowExpanded
2439
+ * @type {EventDispatcher}
2440
+ * @property {PropertyGridContent} sender
2441
+ * @property {RowModifiedEventArgs} args
2442
+ */
2443
+ get rowExpanded(): EventDispatcher<any>;
1383
2444
  /**
1384
2445
  * Raised before a new row is created.
1385
2446
  * @event rowCreating
1386
2447
  * @type {EventDispatcher}
1387
- * @property {Grid} sender
2448
+ * @property {PropertyGridContent} sender
1388
2449
  * @property {RowModifyingEventArgs} args
1389
2450
  */
1390
2451
  get rowCreating(): EventDispatcher<any>;
@@ -1392,7 +2453,7 @@ declare module "DataViews/jsdv/src/Grid" {
1392
2453
  * Raised when a new row is created.
1393
2454
  * @event rowCreated
1394
2455
  * @type {EventDispatcher}
1395
- * @property {Grid} sender
2456
+ * @property {PropertyGridContent} sender
1396
2457
  * @property {RowModifiedEventArgs} args
1397
2458
  */
1398
2459
  get rowCreated(): EventDispatcher<any>;
@@ -1400,7 +2461,7 @@ declare module "DataViews/jsdv/src/Grid" {
1400
2461
  * Raised before a row is deleted.
1401
2462
  * @event rowDeleting
1402
2463
  * @type {EventDispatcher}
1403
- * @property {Grid} sender
2464
+ * @property {PropertyGridContent} sender
1404
2465
  * @property {RowModifyingEventArgs} args
1405
2466
  */
1406
2467
  get rowDeleting(): EventDispatcher<any>;
@@ -1408,7 +2469,7 @@ declare module "DataViews/jsdv/src/Grid" {
1408
2469
  * Raised when a row is deleted.
1409
2470
  * @event rowDeleted
1410
2471
  * @type {EventDispatcher}
1411
- * @property {Grid} sender
2472
+ * @property {PropertyGridContent} sender
1412
2473
  * @property {RowModifiedEventArgs} args
1413
2474
  */
1414
2475
  get rowDeleted(): EventDispatcher<any>;
@@ -1416,7 +2477,7 @@ declare module "DataViews/jsdv/src/Grid" {
1416
2477
  * Raised before a row is updated.
1417
2478
  * @event rowUpdating
1418
2479
  * @type {EventDispatcher}
1419
- * @property {Grid} sender
2480
+ * @property {PropertyGridContent} sender
1420
2481
  * @property {RowModifyingEventArgs} args
1421
2482
  */
1422
2483
  get rowUpdating(): EventDispatcher<any>;
@@ -1424,7 +2485,7 @@ declare module "DataViews/jsdv/src/Grid" {
1424
2485
  * Raised when a row is updated.
1425
2486
  * @event rowUpdated
1426
2487
  * @type {EventDispatcher}
1427
- * @property {Grid} sender
2488
+ * @property {PropertyGridContent} sender
1428
2489
  * @property {RowModifiedEventArgs} args
1429
2490
  */
1430
2491
  get rowUpdated(): EventDispatcher<any>;
@@ -1432,7 +2493,7 @@ declare module "DataViews/jsdv/src/Grid" {
1432
2493
  * Raised before a cell is selected.
1433
2494
  * @event cellSelecting
1434
2495
  * @type {EventDispatcher}
1435
- * @property {Grid} sender
2496
+ * @property {PropertyGridContent} sender
1436
2497
  * @property {CellEventArgs} args
1437
2498
  */
1438
2499
  get cellSelecting(): EventDispatcher<any>;
@@ -1454,174 +2515,331 @@ declare module "DataViews/jsdv/src/Grid" {
1454
2515
  * @private
1455
2516
  */
1456
2517
  private onCellSelected;
2518
+ onCellFocusing(cell: any): boolean;
2519
+ onCellFocused(): void;
2520
+ onRowRender(row: any): void;
2521
+ cellReadonly(row: any, column: any): boolean;
2522
+ onCustomDrawHeader(row: any, column: any, defaultContent: any): any;
2523
+ onCustomDrawCell(row: any, column: any, defaultContent: any): any;
2524
+ }
2525
+ import { UIControl } from "DataViews/jsdv/src/UIControl";
2526
+ import { Unit } from "@mindfusion/common";
2527
+ import ProxyModel from "DataViews/jsdv/src/ProxyModel";
2528
+ import GridRenderer from "DataViews/jsdv/src/GridRenderer";
2529
+ import Selection from "DataViews/jsdv/src/Selection";
2530
+ import { EventDispatcher } from "@mindfusion/common";
2531
+ import { GridCell } from "DataViews/jsdv/src/GridCell";
2532
+ }
2533
+ declare module "DataViews/jsdv/src/PropertyGridPage" {
2534
+ /**
2535
+ * @class Represents a page in a PropertyGrid control.
2536
+ * @augments ListItem
2537
+ * @private
2538
+ */
2539
+ export class PropertyGridPage extends ListItem {
1457
2540
  /**
1458
- * Raised before a cell is focused.
1459
- * @event cellFocusing
1460
- * @type {EventDispatcher}
1461
- * @property {Grid} sender
1462
- * @property {CellEventArgs} args
2541
+ * Initializes a new instance of the PropertyGridPage class.
2542
+ * @constructor
2543
+ * @param {String} propertyName The property name.
2544
+ * @param {Number} index The index of the oject within its collection.
2545
+ * @param {Object} obj The object which properties will be shown in the page.
2546
+ * @param {Map} meta The meta data dictionary, associated with this object.
2547
+ * @param {Boolean} main Indicates whether this page is the control's main page.
1463
2548
  */
1464
- get cellFocusing(): EventDispatcher<any>;
2549
+ constructor(propertyName: string, index: number, obj: any, meta: Map<any, any>, main: boolean);
2550
+ _propertyName: string;
2551
+ _propertyIndex: number;
2552
+ _selectedObject: any;
2553
+ _mainPage: boolean;
2554
+ _collectionPage: boolean;
2555
+ content: PropertyGridContent;
2556
+ headers: ToolStripItem[];
2557
+ footers: ToolStripItem[];
2558
+ }
2559
+ import { ListItem } from "@mindfusion/common-ui";
2560
+ import { PropertyGridContent } from "DataViews/jsdv/src/PropertyGridContent";
2561
+ import { ToolStripItem } from "@mindfusion/common-ui";
2562
+ }
2563
+ declare module "DataViews/jsdv/src/PropertyGrid" {
2564
+ /**
2565
+ * @class Provides a user interface for browsing and editing the properties of an object.
2566
+ * @augments UIControl
2567
+ */
2568
+ export class PropertyGrid extends UIControl {
1465
2569
  /**
1466
- * Raises the cellFocusing event.
2570
+ * Initializes a new instance of the PropertyGrid class.
2571
+ * @constructor
2572
+ * @param {HTMLDivElement} [element] The control's associated Dom element.
2573
+ */
2574
+ constructor(element?: HTMLDivElement);
2575
+ _defaultWidth: Unit;
2576
+ _defaultHeight: Unit;
2577
+ header: ToolStrip;
2578
+ footer: ToolStrip;
2579
+ _metaData: Map<any, any>;
2580
+ _sortAscending: boolean;
2581
+ _grouped: boolean;
2582
+ _showAllProperties: boolean;
2583
+ _showReadonlyProperties: boolean;
2584
+ _editReadonlyProperties: boolean;
2585
+ _defaultCategoryName: string;
2586
+ _currentProperty: string;
2587
+ _currentIndex: number;
2588
+ _rowLoading: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2589
+ _rowRendered: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2590
+ _currentObjectChanging: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2591
+ _currentObjectChanged: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2592
+ _propertyValueChanging: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2593
+ _propertyValueChanged: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2594
+ _resolveCellDataType: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2595
+ _formatCellValue: EventDispatcher<import("Controls/EventArgs").EventArgs>;
2596
+ _headerButtonClick: (sender: any, args: any) => void;
2597
+ _footerButtonClick: (sender: any, args: any) => void;
2598
+ _rowValidateActionHandler: (sender: any, args: any) => void;
2599
+ _rowActionHandler: (sender: any, args: any) => void;
2600
+ _cellSelectHandler: (sender: any, args: any) => void;
2601
+ _sortedHandler: (sender: any, args: any) => void;
2602
+ getContent(): any;
2603
+ beforeAddItem(item: any, index: any): void;
2604
+ /**
2605
+ * ListContainer.detachItem override.
2606
+ * @private
2607
+ */
2608
+ private detachItem;
2609
+ /**
2610
+ * ListContainer.attachItem override.
1467
2611
  * @private
1468
2612
  */
1469
- private onCellFocusing;
2613
+ private attachItem;
1470
2614
  /**
1471
- * Raised when a cell is focused.
1472
- * @event cellFocused
1473
- * @type {EventDispatcher}
1474
- * @property {Grid} sender
1475
- * @property {CellEventArgs} args
1476
- */
1477
- get cellFocused(): EventDispatcher<any>;
1478
- /**
1479
- * Raises the cellFocused event.
2615
+ * ListContainer.addItem override.
1480
2616
  * @private
1481
2617
  */
1482
- private onCellFocused;
2618
+ private addItem;
2619
+ private set selectedItem(arg);
1483
2620
  /**
1484
- * Raises the customDrawCell event.
2621
+ * Gets or sets the current PropertyGridPage.
2622
+ * @type {PropertyGridPage}
1485
2623
  * @private
1486
2624
  */
1487
- private onCustomDrawCell;
2625
+ private get selectedItem();
1488
2626
  /**
1489
- * Raised when a cell's contents are about to be rendered, to allow custom drawing.
1490
- * @event customDrawCell
1491
- * @type {EventDispatcher}
1492
- * @property {Grid} sender
1493
- * @property {CellCustomDrawEventArgs} args
1494
- */
1495
- get customDrawCell(): EventDispatcher<any>;
2627
+ * ListContainer.removeItem override.
2628
+ * @private
2629
+ */
2630
+ private removeItem;
1496
2631
  /**
1497
- * Raises the customDrawHeader event.
1498
2632
  * @private
1499
2633
  */
1500
- private onCustomDrawHeader;
2634
+ private getTabToSelect;
1501
2635
  /**
1502
- * Raised when a header cell's contents are about to be rendered, to allow custom drawing.
1503
- * @event customDrawHeader
1504
- * @type {EventDispatcher}
1505
- * @property {Grid} sender
1506
- * @property {CellCustomDrawEventArgs} args
1507
- */
1508
- get customDrawHeader(): EventDispatcher<any>;
2636
+ * Refreshes the grid after external modifications to the selected object.
2637
+ */
2638
+ rebind(): void;
1509
2639
  /**
1510
- * Raised when a command is executed on a row.
1511
- * @event rowCommand
1512
- * @type {EventDispatcher}
1513
- * @property {Grid} sender
1514
- * @property {RowModifyingEventArgs} args
1515
- */
1516
- get rowCommand(): EventDispatcher<any>;
1517
- }
1518
- import { UIControl } from "DataViews/jsdv/src/UIControl";
1519
- import { Unit } from "@mindfusion/common";
1520
- import ProxyModel from "DataViews/jsdv/src/ProxyModel";
1521
- import Selection from "DataViews/jsdv/src/Selection";
1522
- import { EventDispatcher } from "@mindfusion/common";
1523
- import { GridModel } from "DataViews/jsdv/src/GridModel";
1524
- import { Menu } from "@mindfusion/common-ui";
1525
- import { GridCell } from "DataViews/jsdv/src/GridCell";
1526
- }
1527
- declare module "DataViews/jsdv/src/GridColumn" {
1528
- /**
1529
- * @class Represents a column in a grid control.
1530
- * @property {String} name Gets or sets the name of the field, displayed in the column.
1531
- * @property {DataType} dataType Gets or sets the type of the column.
1532
- * @property {Map} metaData Gets or sets the metadata object, associated with this column.
1533
- * @property {String} caption Gets or sets the display text of the column.
1534
- * @property {Boolean} editable Gets or sets a value indicating whether the cells in this column can be edited.
1535
- * @property {Boolean} sortable Gets or sets a value indicating whether this column can be sorted.
1536
- */
1537
- export class GridColumn {
2640
+ * Expands the specified property.
2641
+ * @param {String} propertyName The name of the property to expand.
2642
+ * @param {Number} [index] The index of the object, if that object is within a collection property.
2643
+ * @remarks Expands a property of the currently selected object.
2644
+ */
2645
+ expandProperty(propertyName: string, index?: number): Promise<any>;
1538
2646
  /**
1539
- * Initializes a new instance of the GridColumn class.
1540
- * @constructor
1541
- * @param {String} [name] The name of the field, displayed in the column.
1542
- * @param {DataType} [dataType] The type of the column.
1543
- * @param {Boolean} [editable] A value indicating whether the cells in this column can be edited.
1544
- */
1545
- constructor(name?: string, dataType?: any, editable?: boolean);
1546
- _name: string;
1547
- _dataType: any;
1548
- _metaData: Map<any, any>;
1549
- _editable: boolean;
1550
- _sortable: boolean;
2647
+ * Collapses the specified property.
2648
+ * @param {String} propertyName The name of the property to collapse.
2649
+ * @param {Number} [index] The index of the object, if that object is within a collection property.
2650
+ * @remarks Collapses a property of the currently selected object.
2651
+ */
2652
+ collapseProperty(propertyName: string, index?: number): void;
1551
2653
  /**
1552
- * Sets the name of the field, displayed in the column.
1553
- * @param {String} value The field name.
2654
+ * Closes the specified page.
2655
+ * @private
1554
2656
  */
1555
- set name(arg: string);
2657
+ private closeItem;
2658
+ set selectedObject(arg: any);
1556
2659
  /**
1557
- * Gets the name of the field, displayed in the column.
1558
- * @returns {String} The field name.
2660
+ * Gets or sets the object whose properties can be edited by this control.
2661
+ * @type {Object}
2662
+ * @summary The object to edit.
1559
2663
  */
1560
- get name(): string;
2664
+ get selectedObject(): any;
2665
+ _selectedObject: any;
1561
2666
  /**
1562
- * Sets the type of this column.
1563
- * @param {DataType} value The type.
2667
+ * Gets the object whose properties are currently displayed by this control.
2668
+ * @type {Object}
2669
+ * @summary The object whose properties are currently displayed.
1564
2670
  */
1565
- set dataType(arg: any);
2671
+ get currentObject(): any;
1566
2672
  /**
1567
- * Gets the type of this column.
1568
- * @returns {DataType} The type.
2673
+ * Gets the name of the selected property.
2674
+ * @type {String}
2675
+ * @summary The selected property name.
1569
2676
  */
1570
- get dataType(): any;
2677
+ get currentProperty(): string;
1571
2678
  /**
1572
- * Sets the metadata, associated with this column.
1573
- * @param {Map} value The metadata.
2679
+ * Gets the index of the currently selected object, if that object is within a collection property.
2680
+ * @type {Number}
2681
+ * @summary The index of the current object within the collection, or -1.
1574
2682
  */
2683
+ get currentIndex(): number;
1575
2684
  set metaData(arg: Map<any, any>);
1576
2685
  /**
1577
- * Gets the metadata, associated with this column.
1578
- * @returns {Map} The metadata,
2686
+ * Gets or sets the meta data dictionary, associated with this control.
2687
+ * @type {Map}
2688
+ * @summary The meta data dictionary.
1579
2689
  */
1580
2690
  get metaData(): Map<any, any>;
2691
+ set showAllProperties(arg: boolean);
1581
2692
  /**
1582
- * Sets the text, diplayed in the header of this column.
1583
- * @param {String} value The display text.
2693
+ * Gets or sets a value indicating whether to enumerate the properties, that are not included in the meta data dictionary.
2694
+ * @type {Boolean}
2695
+ * @summary True to enumerate all properties, otherwise false.
1584
2696
  */
1585
- set caption(arg: string);
2697
+ get showAllProperties(): boolean;
2698
+ set showReadonlyProperties(arg: boolean);
1586
2699
  /**
1587
- * Gets the text, diplayed in the header of this column.
1588
- * @returns {String} The display text.
2700
+ * Gets or sets a value indicating whether to enumerate the properties that don't have setters.
2701
+ * @type {Boolean}
2702
+ * @summary True to enumerate read-only properties, otherwise false.
1589
2703
  */
1590
- get caption(): string;
1591
- _caption: string;
2704
+ get showReadonlyProperties(): boolean;
2705
+ set editReadonlyProperties(arg: boolean);
1592
2706
  /**
1593
- * Sets a value, indicating whether the cells in this column can be edited.
1594
- * @param {Boolean} value True if the cells in this column can be edited, otherwise false.
2707
+ * Gets or sets a value indicating whether properties that don't have setters can be edited.
2708
+ * @type {Boolean}
2709
+ * @summary True if read-only properties can be edited, otherwise false.
1595
2710
  */
1596
- set editable(arg: boolean);
2711
+ get editReadonlyProperties(): boolean;
2712
+ set allowEdit(arg: boolean);
1597
2713
  /**
1598
- * Gets a value, indicating whether the cells in this column can be edited.
1599
- * @returns {Boolean} True if the cells in this column can be edited, otherwise false.
2714
+ * Gets or sets a value, indicating whether inplace editing is enabled.
2715
+ * @type {Boolean}
2716
+ * @summary True if inplace editing is enabled, otherwise false.
2717
+ */
2718
+ get allowEdit(): boolean;
2719
+ _allowEdit: any;
2720
+ set allowCellSelect(arg: boolean);
2721
+ /**
2722
+ * Gets or sets a value, indicating whether single cell selection is enabled.
2723
+ * @type {Boolean}
2724
+ * @summary True if single cell selection is enabled, otherwise false.
2725
+ */
2726
+ get allowCellSelect(): boolean;
2727
+ _allowCellSelect: any;
2728
+ set allowScroll(arg: boolean);
2729
+ /**
2730
+ * Gets or sets a value, indicating whether scrolling is enabled.
2731
+ * @type {Boolean}
2732
+ * @summary True if scrolling is enabled, otherwise false.
2733
+ */
2734
+ get allowScroll(): boolean;
2735
+ _allowScroll: any;
2736
+ _selectedItem: PropertyGridPage;
2737
+ set allowDrag(arg: boolean);
2738
+ /**
2739
+ * ListContainer.allowDrag override.
2740
+ * @type {Boolean}
2741
+ * @summary false - not applicable.
1600
2742
  */
1601
- get editable(): boolean;
2743
+ get allowDrag(): boolean;
2744
+ set allowDrop(arg: boolean);
1602
2745
  /**
1603
- * Sets a value, indicating whether this column can be sorted.
1604
- * @param {Boolean} value True if the column can be sorted, otherwise false.
2746
+ * ListContainer.allowDrop override.
2747
+ * @type {Boolean}
2748
+ * @summary false - not applicable.
1605
2749
  */
1606
- set sortable(arg: boolean);
2750
+ get allowDrop(): boolean;
2751
+ set acceptDrop(arg: any);
1607
2752
  /**
1608
- * Gets a value, indicating whether this column can be sorted.
1609
- * @returns {Boolean} True if the column can be sorted, otherwise false.
2753
+ * ListContainer.acceptDrop override.
2754
+ * @type {ListItem}
2755
+ * @summary null - not applicable.
1610
2756
  */
1611
- get sortable(): boolean;
1612
- }
1613
- }
1614
- declare module "DataViews/jsdv/src/LookupType" {
1615
- /**
1616
- * @class Provides functionality for grid columns, that display lookup or value lists.
1617
- */
1618
- export class LookupType extends DataType {
1619
- static sortFunction(value1: any, value2: any): any;
1620
- static createEditor(element: any, displayValue: any, value: any, view: any): HTMLSelectElement;
1621
- static format(value: any, meta: any): any;
1622
- static equals(value1: any, value2: any): boolean;
2757
+ get acceptDrop(): any;
2758
+ /**
2759
+ * Raised when a row data is loading.
2760
+ * @event rowLoading
2761
+ * @type {EventDispatcher}
2762
+ * @property {PropertyGrid} sender
2763
+ * @property {PropertyEventArgs} args
2764
+ */
2765
+ get rowLoading(): EventDispatcher<any>;
2766
+ /**
2767
+ * Raised when a row is rendered.
2768
+ * @event rowRendered
2769
+ * @type {EventDispatcher}
2770
+ * @property {PropertyGrid} sender
2771
+ * @property {PropertyEventArgs} args
2772
+ */
2773
+ get rowRendered(): EventDispatcher<any>;
2774
+ /**
2775
+ * Raised when the current object is changing.
2776
+ * @event currentObjectChanging
2777
+ * @type {EventDispatcher}
2778
+ * @property {PropertyGrid} sender
2779
+ * @property {PropertyEventArgs} args
2780
+ */
2781
+ get currentObjectChanging(): EventDispatcher<any>;
2782
+ /**
2783
+ * Raised when the current object is changed.
2784
+ * @event currentObjectChanged
2785
+ * @type {EventDispatcher}
2786
+ * @property {PropertyGrid} sender
2787
+ * @property {PropertyEventArgs} args
2788
+ */
2789
+ get currentObjectChanged(): EventDispatcher<any>;
2790
+ /**
2791
+ * Raised when a property value is changing.
2792
+ * @event propertyValueChanging
2793
+ * @type {EventDispatcher}
2794
+ * @property {PropertyGrid} sender
2795
+ * @property {PropertyEventArgs} args
2796
+ */
2797
+ get propertyValueChanging(): EventDispatcher<any>;
2798
+ /**
2799
+ * Raised when a property value is changed.
2800
+ * @event propertyValueChanged
2801
+ * @type {EventDispatcher}
2802
+ * @property {PropertyGrid} sender
2803
+ * @property {PropertyEventArgs} args
2804
+ */
2805
+ get propertyValueChanged(): EventDispatcher<any>;
2806
+ /**
2807
+ * Handles the click event in the header toolstrip.
2808
+ * @private
2809
+ */
2810
+ private onHeaderButtonClick;
2811
+ /**
2812
+ * Handles the click event in the footer toolstrip.
2813
+ * @private
2814
+ */
2815
+ private onFooterButtonClick;
2816
+ /**
2817
+ * Handles a validating row action event in the grid.
2818
+ * @private
2819
+ */
2820
+ private onRowValidateAction;
2821
+ /**
2822
+ * Handles a row action event in the grid.
2823
+ * @private
2824
+ */
2825
+ private onRowAction;
2826
+ /**
2827
+ * Handles a cell select event in the grid.
2828
+ * @private
2829
+ */
2830
+ private onCellSelect;
2831
+ onSort(sender: any, args: any): void;
2832
+ /**
2833
+ * onItemsChanging override.
2834
+ * @protected
2835
+ */
2836
+ protected onItemsChanging(sender: any, args: any): void;
1623
2837
  }
1624
- import DataType from "DataViews/jsdv/src/DataType";
2838
+ import { UIControl } from "DataViews/jsdv/src/UIControl";
2839
+ import { Unit } from "@mindfusion/common";
2840
+ import { ToolStrip } from "@mindfusion/common-ui";
2841
+ import { EventDispatcher } from "@mindfusion/common";
2842
+ import { PropertyGridPage } from "DataViews/jsdv/src/PropertyGridPage";
1625
2843
  }
1626
2844
  declare module "@mindfusion/dataviews" {
1627
2845
  export { ArrayModel } from "DataViews/jsdv/src/ArrayModel";
@@ -1645,4 +2863,9 @@ declare module "@mindfusion/dataviews" {
1645
2863
  export { RealNumberType } from "DataViews/jsdv/src/RealNumberType";
1646
2864
  export { StringType } from "DataViews/jsdv/src/StringType";
1647
2865
  export { UIControl } from "DataViews/jsdv/src/UIControl";
2866
+ export { PropertyGrid } from "DataViews/jsdv/src/PropertyGrid";
2867
+ export { DynamicType } from "DataViews/jsdv/src/DynamicType";
2868
+ export { BooleanType } from "DataViews/jsdv/src/BooleanType";
2869
+ export { ObjectType } from "DataViews/jsdv/src/ObjectType";
2870
+ export { CollectionType } from "DataViews/jsdv/src/CollectionType";
1648
2871
  }