smart-webcomponents-react 14.0.0 → 14.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/alertwindow/alertwindow.umd.js +1 -1
  2. package/combobox/combobox.d.ts +5 -0
  3. package/combobox/combobox.esm.js +12 -1
  4. package/combobox/combobox.umd.js +12 -1
  5. package/dialogwindow/dialogwindow.umd.js +1 -1
  6. package/grid/grid.d.ts +74 -38
  7. package/grid/grid.esm.js +60 -26
  8. package/grid/grid.umd.js +60 -26
  9. package/index.d.ts +99 -30
  10. package/kanban/kanban.d.ts +10 -0
  11. package/kanban/kanban.esm.js +23 -1
  12. package/kanban/kanban.umd.js +23 -1
  13. package/multilinewindow/multilinewindow.umd.js +1 -1
  14. package/package.json +1 -1
  15. package/progresswindow/progresswindow.umd.js +1 -1
  16. package/promptwindow/promptwindow.umd.js +1 -1
  17. package/source/modules/smart.accordion.js +1 -1
  18. package/source/modules/smart.array.js +2 -2
  19. package/source/modules/smart.barcode.js +1 -1
  20. package/source/modules/smart.breadcrumb.js +1 -1
  21. package/source/modules/smart.button.js +1 -1
  22. package/source/modules/smart.buttongroup.js +1 -1
  23. package/source/modules/smart.calendar.js +1 -1
  24. package/source/modules/smart.card.js +1 -1
  25. package/source/modules/smart.cardview.js +2 -2
  26. package/source/modules/smart.carousel.js +1 -1
  27. package/source/modules/smart.chart.js +2 -2
  28. package/source/modules/smart.checkbox.js +1 -1
  29. package/source/modules/smart.checkinput.js +1 -1
  30. package/source/modules/smart.chip.js +1 -1
  31. package/source/modules/smart.colorinput.js +1 -1
  32. package/source/modules/smart.colorpanel.js +1 -1
  33. package/source/modules/smart.colorpicker.js +1 -1
  34. package/source/modules/smart.combobox.js +2 -2
  35. package/source/modules/smart.common.js +2 -2
  36. package/source/modules/smart.countryinput.js +1 -1
  37. package/source/modules/smart.dateinput.js +2 -2
  38. package/source/modules/smart.daterangeinput.js +2 -2
  39. package/source/modules/smart.datetimepicker.js +1 -1
  40. package/source/modules/smart.dockinglayout.js +1 -1
  41. package/source/modules/smart.dropdownbutton.js +1 -1
  42. package/source/modules/smart.dropdownlist.js +1 -1
  43. package/source/modules/smart.editor.js +1 -1
  44. package/source/modules/smart.element.js +1 -1
  45. package/source/modules/smart.fileupload.js +1 -1
  46. package/source/modules/smart.form.js +1 -1
  47. package/source/modules/smart.formulaparser.js +1 -1
  48. package/source/modules/smart.ganttchart.js +4 -4
  49. package/source/modules/smart.gauge.js +1 -1
  50. package/source/modules/smart.grid.js +15 -15
  51. package/source/modules/smart.gridpanel.js +3 -3
  52. package/source/modules/smart.input.js +1 -1
  53. package/source/modules/smart.kanban.js +4 -4
  54. package/source/modules/smart.layout.js +1 -1
  55. package/source/modules/smart.led.js +1 -1
  56. package/source/modules/smart.listbox.js +1 -1
  57. package/source/modules/smart.listmenu.js +1 -1
  58. package/source/modules/smart.map.js +1 -1
  59. package/source/modules/smart.maskedtextbox.js +1 -1
  60. package/source/modules/smart.menu.js +1 -1
  61. package/source/modules/smart.multicomboinput.js +1 -1
  62. package/source/modules/smart.multiinput.js +1 -1
  63. package/source/modules/smart.multilinetextbox.js +2 -2
  64. package/source/modules/smart.multisplitbutton.js +1 -1
  65. package/source/modules/smart.numberinput.js +1 -1
  66. package/source/modules/smart.numerictextbox.js +2 -2
  67. package/source/modules/smart.pager.js +1 -1
  68. package/source/modules/smart.passwordinput.js +1 -1
  69. package/source/modules/smart.passwordtextbox.js +1 -1
  70. package/source/modules/smart.path.js +1 -1
  71. package/source/modules/smart.phoneinput.js +1 -1
  72. package/source/modules/smart.pivottable.js +4 -4
  73. package/source/modules/smart.progressbar.js +1 -1
  74. package/source/modules/smart.qrcode.js +1 -1
  75. package/source/modules/smart.querybuilder.js +2 -2
  76. package/source/modules/smart.radiobutton.js +1 -1
  77. package/source/modules/smart.rating.js +1 -1
  78. package/source/modules/smart.router.js +2 -2
  79. package/source/modules/smart.scheduler.js +2 -2
  80. package/source/modules/smart.scrollbar.js +1 -1
  81. package/source/modules/smart.slider.js +1 -1
  82. package/source/modules/smart.sortable.js +1 -1
  83. package/source/modules/smart.splitter.js +1 -1
  84. package/source/modules/smart.switchbutton.js +1 -1
  85. package/source/modules/smart.table.js +3 -3
  86. package/source/modules/smart.tabs.js +1 -1
  87. package/source/modules/smart.tank.js +1 -1
  88. package/source/modules/smart.textarea.js +1 -1
  89. package/source/modules/smart.textbox.js +2 -2
  90. package/source/modules/smart.timeinput.js +1 -1
  91. package/source/modules/smart.timepicker.js +1 -1
  92. package/source/modules/smart.toast.js +1 -1
  93. package/source/modules/smart.tooltip.js +1 -1
  94. package/source/modules/smart.tree.js +2 -2
  95. package/source/modules/smart.validator.js +1 -1
  96. package/source/modules/smart.window.js +2 -2
  97. package/source/smart.accordion.js +1 -1
  98. package/source/smart.ajax.js +1 -1
  99. package/source/smart.array.js +1 -1
  100. package/source/smart.barcode.js +1 -1
  101. package/source/smart.bootstrap.js +1 -1
  102. package/source/smart.breadcrumb.js +1 -1
  103. package/source/smart.button.js +1 -1
  104. package/source/smart.buttongroup.js +1 -1
  105. package/source/smart.calendar.js +1 -1
  106. package/source/smart.card.js +1 -1
  107. package/source/smart.cardview.js +1 -1
  108. package/source/smart.carousel.js +1 -1
  109. package/source/smart.chart.annotations.js +1 -1
  110. package/source/smart.chart.api.js +1 -1
  111. package/source/smart.chart.core.js +1 -1
  112. package/source/smart.chart.js +1 -1
  113. package/source/smart.chart.rangeselector.js +1 -1
  114. package/source/smart.chart.waterfall.js +1 -1
  115. package/source/smart.checkbox.js +1 -1
  116. package/source/smart.checkinput.js +1 -1
  117. package/source/smart.chip.js +1 -1
  118. package/source/smart.colorinput.js +1 -1
  119. package/source/smart.colorpanel.js +1 -1
  120. package/source/smart.colorpicker.js +1 -1
  121. package/source/smart.combobox.js +2 -2
  122. package/source/smart.complex.js +1 -1
  123. package/source/smart.core.js +1 -1
  124. package/source/smart.countryinput.js +1 -1
  125. package/source/smart.data.js +2 -2
  126. package/source/smart.date.js +1 -1
  127. package/source/smart.dateformatpanel.js +1 -1
  128. package/source/smart.dateinput.js +2 -2
  129. package/source/smart.daterangeinput.js +1 -1
  130. package/source/smart.datetimepicker.js +1 -1
  131. package/source/smart.dockinglayout.js +1 -1
  132. package/source/smart.draw.js +1 -1
  133. package/source/smart.dropdownbutton.js +1 -1
  134. package/source/smart.dropdownlist.js +1 -1
  135. package/source/smart.editor.js +1 -1
  136. package/source/smart.element.js +1 -1
  137. package/source/smart.elements.js +18 -18
  138. package/source/smart.export.js +1 -1
  139. package/source/smart.fileupload.js +1 -1
  140. package/source/smart.filter.js +1 -1
  141. package/source/smart.filterbuilder.js +1 -1
  142. package/source/smart.filterpanel.js +1 -1
  143. package/source/smart.form.js +1 -1
  144. package/source/smart.format.js +1 -1
  145. package/source/smart.formulaparser.js +1 -1
  146. package/source/smart.ganttchart.js +2 -2
  147. package/source/smart.gauge.js +1 -1
  148. package/source/smart.grid.cell.js +2 -2
  149. package/source/smart.grid.chart.js +1 -1
  150. package/source/smart.grid.column.js +2 -2
  151. package/source/smart.grid.core.js +2 -2
  152. package/source/smart.grid.dialog.js +2 -2
  153. package/source/smart.grid.edit.js +2 -2
  154. package/source/smart.grid.export.js +1 -1
  155. package/source/smart.grid.filter.js +2 -2
  156. package/source/smart.grid.group.js +1 -1
  157. package/source/smart.grid.js +1 -1
  158. package/source/smart.grid.menu.js +2 -2
  159. package/source/smart.grid.pager.js +1 -1
  160. package/source/smart.grid.reorder.js +1 -1
  161. package/source/smart.grid.resize.js +1 -1
  162. package/source/smart.grid.row.js +2 -2
  163. package/source/smart.grid.select.js +2 -2
  164. package/source/smart.grid.sort.js +1 -1
  165. package/source/smart.grid.toolbar.js +2 -2
  166. package/source/smart.grid.tree.js +1 -1
  167. package/source/smart.grid.view.js +2 -2
  168. package/source/smart.gridpanel.js +1 -1
  169. package/source/smart.input.js +1 -1
  170. package/source/smart.kanban.js +2 -2
  171. package/source/smart.layout.js +1 -1
  172. package/source/smart.led.js +1 -1
  173. package/source/smart.listbox.js +1 -1
  174. package/source/smart.listmenu.js +1 -1
  175. package/source/smart.map.js +1 -1
  176. package/source/smart.maskedtextbox.js +1 -1
  177. package/source/smart.math.js +1 -1
  178. package/source/smart.menu.js +1 -1
  179. package/source/smart.multicomboinput.js +1 -1
  180. package/source/smart.multiinput.js +1 -1
  181. package/source/smart.multilinetextbox.js +1 -1
  182. package/source/smart.multisplitbutton.js +1 -1
  183. package/source/smart.numberformatpanel.js +1 -1
  184. package/source/smart.numberinput.js +1 -1
  185. package/source/smart.numeric.js +1 -1
  186. package/source/smart.numerictextbox.js +1 -1
  187. package/source/smart.pager.js +1 -1
  188. package/source/smart.passwordinput.js +1 -1
  189. package/source/smart.passwordtextbox.js +1 -1
  190. package/source/smart.path.js +1 -1
  191. package/source/smart.phoneinput.js +1 -1
  192. package/source/smart.pivottable.js +1 -1
  193. package/source/smart.powerbutton.js +1 -1
  194. package/source/smart.progressbar.js +1 -1
  195. package/source/smart.qrcode.js +1 -1
  196. package/source/smart.radiobutton.js +1 -1
  197. package/source/smart.rating.js +1 -1
  198. package/source/smart.router.js +1 -1
  199. package/source/smart.scheduler.js +1 -1
  200. package/source/smart.scrollbar.js +1 -1
  201. package/source/smart.slider.js +1 -1
  202. package/source/smart.sortable.js +1 -1
  203. package/source/smart.splitter.js +1 -1
  204. package/source/smart.switchbutton.js +1 -1
  205. package/source/smart.table.js +2 -2
  206. package/source/smart.tabs.js +1 -1
  207. package/source/smart.tank.js +1 -1
  208. package/source/smart.textarea.js +1 -1
  209. package/source/smart.textbox.js +1 -1
  210. package/source/smart.tickintervalhandler.js +1 -1
  211. package/source/smart.timeinput.js +1 -1
  212. package/source/smart.timepicker.js +1 -1
  213. package/source/smart.toast.js +1 -1
  214. package/source/smart.tooltip.js +1 -1
  215. package/source/smart.tree.js +2 -2
  216. package/source/smart.validationpanel.js +1 -1
  217. package/source/smart.validator.js +1 -1
  218. package/source/smart.window.js +1 -1
  219. package/source/styles/components/smart.ganttchart.css +1 -1
  220. package/source/styles/components/smart.kanban.css +1 -1
  221. package/source/styles/components/smart.pivottable.css +1 -1
  222. package/source/styles/components/smart.table.css +1 -1
  223. package/source/styles/default/scss/smart.kanban.scss +20 -3
  224. package/source/styles/default/scss/smart.table.scss +22 -4
  225. package/source/styles/default/scss/textbox/_check-input.scss +1 -0
  226. package/source/styles/default/scss/textbox/_multi-combo-input.scss +1 -1
  227. package/source/styles/default/smart.kanban.css +17 -1
  228. package/source/styles/default/smart.table.css +30 -12
  229. package/source/styles/smart.default.css +2 -2
  230. package/source/typescript/smart.combobox.d.ts +5 -0
  231. package/source/typescript/smart.elements.d.ts +99 -30
  232. package/source/typescript/smart.grid.d.ts +77 -28
  233. package/source/typescript/smart.kanban.d.ts +10 -0
  234. package/source/typescript/smart.scheduler.d.ts +1 -1
  235. package/source/typescript/smart.table.d.ts +1 -1
  236. package/source/typescript/smart.tree.d.ts +5 -0
  237. package/table/table.d.ts +1 -1
  238. package/table/table.esm.js +1 -1
  239. package/table/table.umd.js +1 -1
  240. package/tabswindow/tabswindow.umd.js +1 -1
  241. package/tree/tree.d.ts +5 -0
  242. package/tree/tree.esm.js +12 -1
  243. package/tree/tree.umd.js +12 -1
  244. package/waitwindow/waitwindow.umd.js +1 -1
@@ -228,6 +228,11 @@ export interface ComboBoxProperties {
228
228
  * Default value: 2
229
229
  */
230
230
  minLength?: number;
231
+ /**
232
+ * Determines the maximum number of characters inside the input.
233
+ * Default value: -1
234
+ */
235
+ maxLength?: number;
231
236
  /**
232
237
  * Sets or gets the name attribute for the element. Name is used when submiting HTML forms.
233
238
  * Default value: ""
@@ -5752,6 +5752,11 @@ export interface ComboBoxProperties {
5752
5752
  * Default value: 2
5753
5753
  */
5754
5754
  minLength?: number;
5755
+ /**
5756
+ * Determines the maximum number of characters inside the input.
5757
+ * Default value: -1
5758
+ */
5759
+ maxLength?: number;
5755
5760
  /**
5756
5761
  * Sets or gets the name attribute for the element. Name is used when submiting HTML forms.
5757
5762
  * Default value: ""
@@ -13860,7 +13865,7 @@ export interface GridProperties {
13860
13865
  * Callback function() called when the grid has been rendered.
13861
13866
  * Default value: null
13862
13867
  */
13863
- onRender?: any;
13868
+ onRender?: {(): void};
13864
13869
  /**
13865
13870
  * Callback function(event: KeyboardEvent) called when the grid is on focus and a keyboard key is pressed.
13866
13871
  * Default value: null
@@ -14010,7 +14015,7 @@ export interface Grid extends BaseElement, GridProperties {
14010
14015
  /* Get a member by its name */
14011
14016
  [name: string]: any;
14012
14017
  /**
14013
- * This event is triggered, when the edit begins.
14018
+ * This event is triggered, when the edit begins. After the event occurs, editing starts. If you need to prevent the editing for specific cells, rows or columns, you can call event.preventDefault();.
14014
14019
  * @param event. The custom event. Custom data event was created with: ev.detail(id, dataField, row, column, cell)
14015
14020
  * id - The edited row id.
14016
14021
  * dataField - The edited column data field.
@@ -14321,9 +14326,9 @@ export interface Grid extends BaseElement, GridProperties {
14321
14326
  * Adds a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
14322
14327
  * @param {any} data. row data matching the data source
14323
14328
  * @param {boolean} insertAtBottom?. Determines whether to add the new row to the bottom or top of the collection. The default value is 'true'
14324
- * @param {any} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
14329
+ * @param callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
14325
14330
  */
14326
- addRow(data: any, insertAtBottom?: boolean, callback?: any): void;
14331
+ addRow(data: any, insertAtBottom?: boolean, callback?: {(row: GridRow): void}): void;
14327
14332
  /**
14328
14333
  * Adds a new row and puts it into edit mode. When batch editing is enabled, the row is not saved until the batch edit is saved.
14329
14334
  * @param {string} position?. 'near' or 'far'
@@ -14344,7 +14349,7 @@ export interface Grid extends BaseElement, GridProperties {
14344
14349
  */
14345
14350
  addUnboundRow(count: number, position?: string): boolean;
14346
14351
  /**
14347
- * Adds a filter to a column. This method will apply a filter to the Grid data.
14352
+ * Adds a filter to a column. This method will apply a filter to the Grid data. Example for adding multiple filters to a column: grid.addFilter('lastName', ['CONTAINS "burke"', 'or', 'CONTAINS "peterson"']). Example for adding single filter to a column: grid.addFilter('lastName', 'CONTAINS "burke"'). Example for adding numeric filter: grid.addFilter('quantity', '<= 5')
14348
14353
  * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
14349
14354
  * @param {string} filter. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
14350
14355
  * @param {boolean} refreshFilters?. Set this to false, if you will use multiple 'addFilter' calls. By doing this, you will avoid unnecessary renders.
@@ -14439,9 +14444,9 @@ export interface Grid extends BaseElement, GridProperties {
14439
14444
  /**
14440
14445
  * Delete a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
14441
14446
  * @param {string | number} rowId. row bound id
14442
- * @param {any} callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
14447
+ * @param callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
14443
14448
  */
14444
- deleteRow(rowId: string | number, callback?: any): void;
14449
+ deleteRow(rowId: string | number, callback?: {(row: GridRow): void}): void;
14445
14450
  /**
14446
14451
  * Scrolls to a row or cell. This method scrolls to a row or cell, when scrolling is necessary. If pagination is enabled, it will automatically change the page.
14447
14452
  * @param {string | number} rowId. row bound id
@@ -14534,10 +14539,20 @@ export interface Grid extends BaseElement, GridProperties {
14534
14539
  */
14535
14540
  getSelection(): any;
14536
14541
  /**
14537
- * Gets the selected row ids.
14542
+ * Gets an Array where each item is an Array of row id and row data. If the Grid is used in virtual mode, the row data parameter is empty object, because the data is loaded on demand.
14538
14543
  * @returns {any[]}
14539
14544
  */
14540
14545
  getSelectedRows(): any[];
14546
+ /**
14547
+ * Gets the selected row ids.
14548
+ * @returns {any[]}
14549
+ */
14550
+ getSelectedRowIds(): any[];
14551
+ /**
14552
+ * Gets the selected row indexes.
14553
+ * @returns {any[]}
14554
+ */
14555
+ getSelectedRowIndexes(): any[];
14541
14556
  /**
14542
14557
  * Gets the selected cells. The method returns an array of cell. Each cell is an array with row id, column data field and cell value.
14543
14558
  * @returns {any[]}
@@ -14598,9 +14613,9 @@ export interface Grid extends BaseElement, GridProperties {
14598
14613
  /**
14599
14614
  * Gets the Row's id.
14600
14615
  * @param {number} rowIndex. row index
14601
- * @returns {any}
14616
+ * @returns {string | number}
14602
14617
  */
14603
- getRowId(rowIndex: number): any;
14618
+ getRowId(rowIndex: number): string | number;
14604
14619
  /**
14605
14620
  * Gets whether a column's drop-down menu is opened.
14606
14621
  * @returns {boolean}
@@ -14638,9 +14653,9 @@ export interface Grid extends BaseElement, GridProperties {
14638
14653
  * Inserts a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
14639
14654
  * @param {any} data. row data matching the data source
14640
14655
  * @param {number} index?. Determines the insert index. The default value is the last index.
14641
- * @param {any} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
14656
+ * @param callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
14642
14657
  */
14643
- insertRow(data: any, index?: number, callback?: any): void;
14658
+ insertRow(data: any, index?: number, callback?: {(row: GridRow): void}): void;
14644
14659
  /**
14645
14660
  * Opens a column drop-down menu.
14646
14661
  * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
@@ -14767,16 +14782,16 @@ export interface Grid extends BaseElement, GridProperties {
14767
14782
  /**
14768
14783
  * Sets a style to a row.
14769
14784
  * @param {string | number} rowId. row bound id
14770
- * @param {any} rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
14785
+ * @param rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
14771
14786
  */
14772
- setRowStyle(rowId: string | number, rowStyle: any): void;
14787
+ setRowStyle(rowId: string | number, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void;
14773
14788
  /**
14774
14789
  * Sets a style to a row.
14775
14790
  * @param {string | number} rowId. row bound id
14776
14791
  * @param {string} dataField. Column bound field name.
14777
- * @param {any} rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
14792
+ * @param rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
14778
14793
  */
14779
- setCellStyle(rowId: string | number, dataField: string, rowStyle: any): void;
14794
+ setCellStyle(rowId: string | number, dataField: string, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void;
14780
14795
  /**
14781
14796
  * Sets the position of the vertical scrollbar. You can use this method in combination with the getVerticalScrollValue and getVerticalScrollMax.
14782
14797
  * @param {number} value. The new scroll position
@@ -14796,9 +14811,9 @@ export interface Grid extends BaseElement, GridProperties {
14796
14811
  * Updates a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
14797
14812
  * @param {string | number} rowId. row bound id
14798
14813
  * @param {any} data. row data matching the data source
14799
- * @param {any} callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
14814
+ * @param callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
14800
14815
  */
14801
- updateRow(rowId: string | number, data: any, callback?: any): void;
14816
+ updateRow(rowId: string | number, data: any, callback?: {(row: GridRow): void}): void;
14802
14817
  /**
14803
14818
  * Unselects a row, cell or column.
14804
14819
  * @param {string | number} rowId. row bound id
@@ -15154,7 +15169,7 @@ export interface GridClipboard {
15154
15169
  * Sets or gets a callback on paste.
15155
15170
  * Default value: null
15156
15171
  */
15157
- onPasteValue?: any;
15172
+ onPasteValue?: {(args: {value: any, oldValue: any, dataField: string, id: string | number}): void};
15158
15173
  }
15159
15174
 
15160
15175
  export interface GridColumn {
@@ -15279,7 +15294,7 @@ export interface GridColumn {
15279
15294
  */
15280
15295
  element?: HTMLElement;
15281
15296
  /**
15282
- * Sets or gets the column's editor. The property expects 'input', 'autoComplete', 'comboBox', 'dropDownList', 'image', 'numberInput', 'checkBox', 'multiInput', 'multiComboInput', 'checkInput', 'slider', 'dateTimePicker', 'timeInput', 'dateInput', 'dateRangeInput', 'maskedTextBox', 'textArea' or a custom object with 'template' property which defines the editor type, 'settings' property which defines the custom editor's properties, 'onInit(int row, string column, object editor, object rowData): object', 'onRender(int row, string column, object editor, object rowData): object', 'setValue(object value): void' and 'getValue(object value): object' callback functions.
15297
+ * Sets or gets the column's editor. The property expects 'input', 'autoComplete', 'comboBox', 'dropDownList', 'image', 'numberInput', 'checkBox', 'multiInput', 'multiComboInput', 'checkInput', 'slider', 'dateTimePicker', 'timeInput', 'dateInput', 'dateRangeInput', 'maskedTextBox', 'textArea' or a custom object with 'template' property which defines the editor type, 'settings' property which defines the custom editor's properties, 'onInit(int row, string column, object editor, object rowData): void', 'onRender(int row, string column, object editor, object rowData): void', 'setValue(object value): void' and 'getValue(object value): any' callback functions.
15283
15298
  * Default value: null
15284
15299
  */
15285
15300
  editor?: any;
@@ -15302,12 +15317,12 @@ export interface GridColumn {
15302
15317
  * Sets or gets the column's format function.
15303
15318
  * Default value: null
15304
15319
  */
15305
- formatFunction?: any;
15320
+ formatFunction?: {(formatObject: {row?: GridRow, column?: GridColumn, cell?: GridCell, oldValue?: any, value?: any, template?: any}): void};
15306
15321
  /**
15307
15322
  * Sets or gets the column's format settings. You can use any of the build in formatting options or to NumberFormat object like that: 'Intl: { NumberFormat: { style: \'currency\', currency: \'EUR\' }}' or DateTimeFormat object like that: 'Intl: { DateTimeFormat: { dateStyle: \'full\' }}''
15308
15323
  * Default value: [object Object]
15309
15324
  */
15310
- formatSettings?: any;
15325
+ formatSettings?: GridColumnFormatSettings;
15311
15326
  /**
15312
15327
  * Sets or gets the column's group.
15313
15328
  * Default value: ""
@@ -15385,6 +15400,40 @@ export interface GridColumn {
15385
15400
  visible?: boolean;
15386
15401
  }
15387
15402
 
15403
+ /**Sets or gets the column's format settings. You can use any of the build in formatting options or to NumberFormat object like that: 'Intl: { NumberFormat: { style: \'currency\', currency: \'EUR\' }}' or DateTimeFormat object like that: 'Intl: { DateTimeFormat: { dateStyle: \'full\' }}'' */
15404
+ export interface GridColumnFormatSettings {
15405
+ /**
15406
+ * Sets the decimal places.
15407
+ * Default value:
15408
+ */
15409
+ decimalPlaces?: number;
15410
+ /**
15411
+ * Sets the negativeWithBrackets property. Displays brackets around negative numbers
15412
+ * Default value: false
15413
+ */
15414
+ negativeWithBrackets?: boolean;
15415
+ /**
15416
+ * Sets the prefix of the formatted value.
15417
+ * Default value: ""
15418
+ */
15419
+ prefix?: string;
15420
+ /**
15421
+ * Sets the sufix of the formatted value.
15422
+ * Default value: ""
15423
+ */
15424
+ sufix?: string;
15425
+ /**
15426
+ * Sets the thousands separator.
15427
+ * Default value:
15428
+ */
15429
+ thousandsSeparator?: number;
15430
+ /**
15431
+ * Sets the date format string.
15432
+ * Default value: ""
15433
+ */
15434
+ dateFormat?: string;
15435
+ }
15436
+
15388
15437
  /**Column Menu is the drop-down menu displayed after clicking the column header's drop-down button, which is displayed when you hover the column header. It allows you to customize column settings. For example: Sort, Filter or Group the Grid by the current column. */
15389
15438
  export interface GridColumnMenu {
15390
15439
  /**
@@ -15614,7 +15663,7 @@ export interface GridCharting {
15614
15663
  * Sets or gets the chart's container.
15615
15664
  * Default value: null
15616
15665
  */
15617
- appendTo?: any;
15666
+ appendTo?: string | HTMLElement;
15618
15667
  /**
15619
15668
  * Sets or gets the charting dialog.
15620
15669
  * Default value: [object Object]
@@ -15802,12 +15851,12 @@ export interface GridDataSourceSettings {
15802
15851
  */
15803
15852
  mapChar?: string;
15804
15853
  /**
15805
- * Sets the virtual data source function which is called each time the Grid requests data. Demos using 'virtualDataSource' are available on the Grid demos page.
15854
+ * Sets the virtual data source function which is called each time the Grid requests data. Example for calling the callback function with the new data set: resultCallbackFunction({dataSource: data}); Demos using 'virtualDataSource' are available on the Grid demos page. Example: https://www.htmlelements.com/demos/grid/virtualscroll/
15806
15855
  * Default value: null
15807
15856
  */
15808
- virtualDataSource?: any;
15857
+ virtualDataSource?: {(resultCallbackFunction: any, details: DataAdapterVirtualDataSourceDetails): void};
15809
15858
  /**
15810
- * Sets the virtual data source on expand function. This function is called when we load data on demand in Tree or TreeGrid and virtualDataSource in these components is set, too
15859
+ * Sets the virtual data source on expand function. This function is called when we load data on demand in Tree or TreeGrid and virtualDataSource in these components is set, too. Example: https://www.htmlelements.com/demos/grid/virtual-tree-grid/
15811
15860
  * Default value: null
15812
15861
  */
15813
15862
  virtualDataSourceOnExpand?: any;
@@ -16114,6 +16163,11 @@ export interface GridFiltering {
16114
16163
  * Default value: false
16115
16164
  */
16116
16165
  enabled?: boolean;
16166
+ /**
16167
+ * Determines the filtering operator used in the Grid. By default filters are applied with 'and' operator i.e returns a set of rows matching the filter expressions of columnA AND columnB. The other option is to return a set of rows matching the filter expressions of columnA OR columnB. For example: grid.filtering.operator = 'or'; grid.addFilter('lastName', 'contains "davolio"') grid.addFilter('firstName', 'contains "Antoni"'); - that code will apply two filters to the Grid and will return all rows where firstName is 'Antoni' or the lastName is 'Davolio'
16168
+ * Default value: "and"
16169
+ */
16170
+ operator?: string;
16117
16171
  /**
16118
16172
  * An array of filtering conditions to apply to the DataGrid. Each member of the filter array is an array with two members. The first one is the column dataField to apply the filter to. The second one is the filtering condition. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']]. Additional example with filter which we want to apply to a column with filterMenuMode='excel' - [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']]. Example with a string filter applied to a string column - [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
16119
16173
  * Default value:
@@ -16520,7 +16574,7 @@ export interface GridRowDetail {
16520
16574
  * Sets the template of the row details.
16521
16575
  * Default value:
16522
16576
  */
16523
- template?: any;
16577
+ template?: string | HTMLTemplateElement;
16524
16578
  /**
16525
16579
  * Sets the visibility of the Column which allows you to dynamically expand/collapse the row details.
16526
16580
  * Default value: true
@@ -16586,7 +16640,7 @@ export interface GridHeader {
16586
16640
  * This callback function can be used for customization of the Header toolbar. The Toolbar HTML Element is passed as an argument.
16587
16641
  * Default value: null
16588
16642
  */
16589
- onInit?: any;
16643
+ onInit?: {(element: HTMLElement): void};
16590
16644
  /**
16591
16645
  * Determines the buttons displayed in the Grid header. 'columns' displays a button opening the columns chooser panel. 'filter' displays a button opening the filtering panel. 'group' displays a button opening the grouping panel. 'sort' displays a button opening the sorting panel. 'format' displays a button opening the conditional formatting panel. 'search' displays a button opening the search panel.
16592
16646
  * Default value: [ "columns", "filter", "group", "sort", "format", "search" ]
@@ -17470,6 +17524,11 @@ export interface KanbanProperties {
17470
17524
  * Default value: true
17471
17525
  */
17472
17526
  allowDrop?: boolean;
17527
+ /**
17528
+ * This property changes the visual appeal of the Kanban columns and tasks. When set to true and the Kanban columns have their 'color' property set, the color is also applied to the tasks and edit dialog.
17529
+ * Default value: false
17530
+ */
17531
+ applyColumnColorToTasks?: boolean;
17473
17532
  /**
17474
17533
  * Enables or disables auto load state from the browser's localStorage. Information about tasks and their position and selected state, filtering, sorting, collapsed columns, as well as the values of the properties taskActions, taskComments, taskDue, taskPriority, taskProgress, taskTags, and taskUserIcon is loaded.
17475
17534
  * Default value: true
@@ -17480,6 +17539,11 @@ export interface KanbanProperties {
17480
17539
  * Default value: false
17481
17540
  */
17482
17541
  autoSaveState?: boolean;
17542
+ /**
17543
+ * Automatically updates the columns height depending on the tasks inside the column. The effect of this property is observed when 'columnColorEntireSurface' is true.
17544
+ * Default value: false
17545
+ */
17546
+ autoColumnHeight?: boolean;
17483
17547
  /**
17484
17548
  * Allows collapsing the card content.
17485
17549
  * Default value: false
@@ -24814,7 +24878,7 @@ export interface SchedulerProperties {
24814
24878
  timeRulerTicks?: boolean;
24815
24879
  /**
24816
24880
  * Determines the timeZone for the element. By default if the local time zone is used if the property is not set.
24817
- * Default value:
24881
+ * Default value: Local
24818
24882
  */
24819
24883
  timeZone?: SchedulerTimeZone | string;
24820
24884
  /**
@@ -27496,7 +27560,7 @@ export interface Table extends BaseElement, TableProperties {
27496
27560
  /**
27497
27561
  * Adds a filter to a specific column.
27498
27562
  * @param {string} dataField. The column's data field.
27499
- * @param {any} filter. FilterGroup object.
27563
+ * @param {any} filter. FilterGroup object or a Filter expression. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
27500
27564
  */
27501
27565
  addFilter(dataField: string, filter: any): void;
27502
27566
  /**
@@ -29970,6 +30034,11 @@ export interface TreeProperties {
29970
30034
  * Default value: false
29971
30035
  */
29972
30036
  filterable?: boolean;
30037
+ /**
30038
+ * Applies a filter only after the 'Enter' key is pressed.
30039
+ * Default value: false
30040
+ */
30041
+ filterOnEnter?: boolean;
29973
30042
  /**
29974
30043
  * Sets custom text for placeholder in the filter input.
29975
30044
  * Default value: ""
@@ -132,7 +132,7 @@ export interface GridProperties {
132
132
  * Callback function() called when the grid has been rendered.
133
133
  * Default value: null
134
134
  */
135
- onRender?: any;
135
+ onRender?: {(): void};
136
136
  /**
137
137
  * Callback function(event: KeyboardEvent) called when the grid is on focus and a keyboard key is pressed.
138
138
  * Default value: null
@@ -282,7 +282,7 @@ export interface Grid extends BaseElement, GridProperties {
282
282
  /* Get a member by its name */
283
283
  [name: string]: any;
284
284
  /**
285
- * This event is triggered, when the edit begins.
285
+ * This event is triggered, when the edit begins. After the event occurs, editing starts. If you need to prevent the editing for specific cells, rows or columns, you can call event.preventDefault();.
286
286
  * @param event. The custom event. Custom data event was created with: ev.detail(id, dataField, row, column, cell)
287
287
  * id - The edited row id.
288
288
  * dataField - The edited column data field.
@@ -593,9 +593,9 @@ export interface Grid extends BaseElement, GridProperties {
593
593
  * Adds a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
594
594
  * @param {any} data. row data matching the data source
595
595
  * @param {boolean} insertAtBottom?. Determines whether to add the new row to the bottom or top of the collection. The default value is 'true'
596
- * @param {any} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
596
+ * @param callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
597
597
  */
598
- addRow(data: any, insertAtBottom?: boolean, callback?: any): void;
598
+ addRow(data: any, insertAtBottom?: boolean, callback?: {(row: GridRow): void}): void;
599
599
  /**
600
600
  * Adds a new row and puts it into edit mode. When batch editing is enabled, the row is not saved until the batch edit is saved.
601
601
  * @param {string} position?. 'near' or 'far'
@@ -616,7 +616,7 @@ export interface Grid extends BaseElement, GridProperties {
616
616
  */
617
617
  addUnboundRow(count: number, position?: string): boolean;
618
618
  /**
619
- * Adds a filter to a column. This method will apply a filter to the Grid data.
619
+ * Adds a filter to a column. This method will apply a filter to the Grid data. Example for adding multiple filters to a column: grid.addFilter('lastName', ['CONTAINS "burke"', 'or', 'CONTAINS "peterson"']). Example for adding single filter to a column: grid.addFilter('lastName', 'CONTAINS "burke"'). Example for adding numeric filter: grid.addFilter('quantity', '<= 5')
620
620
  * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
621
621
  * @param {string} filter. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
622
622
  * @param {boolean} refreshFilters?. Set this to false, if you will use multiple 'addFilter' calls. By doing this, you will avoid unnecessary renders.
@@ -711,9 +711,9 @@ export interface Grid extends BaseElement, GridProperties {
711
711
  /**
712
712
  * Delete a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
713
713
  * @param {string | number} rowId. row bound id
714
- * @param {any} callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
714
+ * @param callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
715
715
  */
716
- deleteRow(rowId: string | number, callback?: any): void;
716
+ deleteRow(rowId: string | number, callback?: {(row: GridRow): void}): void;
717
717
  /**
718
718
  * Scrolls to a row or cell. This method scrolls to a row or cell, when scrolling is necessary. If pagination is enabled, it will automatically change the page.
719
719
  * @param {string | number} rowId. row bound id
@@ -806,10 +806,20 @@ export interface Grid extends BaseElement, GridProperties {
806
806
  */
807
807
  getSelection(): any;
808
808
  /**
809
- * Gets the selected row ids.
809
+ * Gets an Array where each item is an Array of row id and row data. If the Grid is used in virtual mode, the row data parameter is empty object, because the data is loaded on demand.
810
810
  * @returns {any[]}
811
811
  */
812
812
  getSelectedRows(): any[];
813
+ /**
814
+ * Gets the selected row ids.
815
+ * @returns {any[]}
816
+ */
817
+ getSelectedRowIds(): any[];
818
+ /**
819
+ * Gets the selected row indexes.
820
+ * @returns {any[]}
821
+ */
822
+ getSelectedRowIndexes(): any[];
813
823
  /**
814
824
  * Gets the selected cells. The method returns an array of cell. Each cell is an array with row id, column data field and cell value.
815
825
  * @returns {any[]}
@@ -870,9 +880,9 @@ export interface Grid extends BaseElement, GridProperties {
870
880
  /**
871
881
  * Gets the Row's id.
872
882
  * @param {number} rowIndex. row index
873
- * @returns {any}
883
+ * @returns {string | number}
874
884
  */
875
- getRowId(rowIndex: number): any;
885
+ getRowId(rowIndex: number): string | number;
876
886
  /**
877
887
  * Gets whether a column's drop-down menu is opened.
878
888
  * @returns {boolean}
@@ -910,9 +920,9 @@ export interface Grid extends BaseElement, GridProperties {
910
920
  * Inserts a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
911
921
  * @param {any} data. row data matching the data source
912
922
  * @param {number} index?. Determines the insert index. The default value is the last index.
913
- * @param {any} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
923
+ * @param callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
914
924
  */
915
- insertRow(data: any, index?: number, callback?: any): void;
925
+ insertRow(data: any, index?: number, callback?: {(row: GridRow): void}): void;
916
926
  /**
917
927
  * Opens a column drop-down menu.
918
928
  * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
@@ -1039,16 +1049,16 @@ export interface Grid extends BaseElement, GridProperties {
1039
1049
  /**
1040
1050
  * Sets a style to a row.
1041
1051
  * @param {string | number} rowId. row bound id
1042
- * @param {any} rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
1052
+ * @param rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
1043
1053
  */
1044
- setRowStyle(rowId: string | number, rowStyle: any): void;
1054
+ setRowStyle(rowId: string | number, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void;
1045
1055
  /**
1046
1056
  * Sets a style to a row.
1047
1057
  * @param {string | number} rowId. row bound id
1048
1058
  * @param {string} dataField. Column bound field name.
1049
- * @param {any} rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
1059
+ * @param rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
1050
1060
  */
1051
- setCellStyle(rowId: string | number, dataField: string, rowStyle: any): void;
1061
+ setCellStyle(rowId: string | number, dataField: string, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void;
1052
1062
  /**
1053
1063
  * Sets the position of the vertical scrollbar. You can use this method in combination with the getVerticalScrollValue and getVerticalScrollMax.
1054
1064
  * @param {number} value. The new scroll position
@@ -1068,9 +1078,9 @@ export interface Grid extends BaseElement, GridProperties {
1068
1078
  * Updates a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
1069
1079
  * @param {string | number} rowId. row bound id
1070
1080
  * @param {any} data. row data matching the data source
1071
- * @param {any} callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
1081
+ * @param callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
1072
1082
  */
1073
- updateRow(rowId: string | number, data: any, callback?: any): void;
1083
+ updateRow(rowId: string | number, data: any, callback?: {(row: GridRow): void}): void;
1074
1084
  /**
1075
1085
  * Unselects a row, cell or column.
1076
1086
  * @param {string | number} rowId. row bound id
@@ -1426,7 +1436,7 @@ export interface GridClipboard {
1426
1436
  * Sets or gets a callback on paste.
1427
1437
  * Default value: null
1428
1438
  */
1429
- onPasteValue?: any;
1439
+ onPasteValue?: {(args: {value: any, oldValue: any, dataField: string, id: string | number}): void};
1430
1440
  }
1431
1441
 
1432
1442
  export interface GridColumn {
@@ -1551,7 +1561,7 @@ export interface GridColumn {
1551
1561
  */
1552
1562
  element?: HTMLElement;
1553
1563
  /**
1554
- * Sets or gets the column's editor. The property expects 'input', 'autoComplete', 'comboBox', 'dropDownList', 'image', 'numberInput', 'checkBox', 'multiInput', 'multiComboInput', 'checkInput', 'slider', 'dateTimePicker', 'timeInput', 'dateInput', 'dateRangeInput', 'maskedTextBox', 'textArea' or a custom object with 'template' property which defines the editor type, 'settings' property which defines the custom editor's properties, 'onInit(int row, string column, object editor, object rowData): object', 'onRender(int row, string column, object editor, object rowData): object', 'setValue(object value): void' and 'getValue(object value): object' callback functions.
1564
+ * Sets or gets the column's editor. The property expects 'input', 'autoComplete', 'comboBox', 'dropDownList', 'image', 'numberInput', 'checkBox', 'multiInput', 'multiComboInput', 'checkInput', 'slider', 'dateTimePicker', 'timeInput', 'dateInput', 'dateRangeInput', 'maskedTextBox', 'textArea' or a custom object with 'template' property which defines the editor type, 'settings' property which defines the custom editor's properties, 'onInit(int row, string column, object editor, object rowData): void', 'onRender(int row, string column, object editor, object rowData): void', 'setValue(object value): void' and 'getValue(object value): any' callback functions.
1555
1565
  * Default value: null
1556
1566
  */
1557
1567
  editor?: any;
@@ -1574,12 +1584,12 @@ export interface GridColumn {
1574
1584
  * Sets or gets the column's format function.
1575
1585
  * Default value: null
1576
1586
  */
1577
- formatFunction?: any;
1587
+ formatFunction?: {(formatObject: {row?: GridRow, column?: GridColumn, cell?: GridCell, oldValue?: any, value?: any, template?: any}): void};
1578
1588
  /**
1579
1589
  * Sets or gets the column's format settings. You can use any of the build in formatting options or to NumberFormat object like that: 'Intl: { NumberFormat: { style: \'currency\', currency: \'EUR\' }}' or DateTimeFormat object like that: 'Intl: { DateTimeFormat: { dateStyle: \'full\' }}''
1580
1590
  * Default value: [object Object]
1581
1591
  */
1582
- formatSettings?: any;
1592
+ formatSettings?: GridColumnFormatSettings;
1583
1593
  /**
1584
1594
  * Sets or gets the column's group.
1585
1595
  * Default value: ""
@@ -1657,6 +1667,40 @@ export interface GridColumn {
1657
1667
  visible?: boolean;
1658
1668
  }
1659
1669
 
1670
+ /**Sets or gets the column's format settings. You can use any of the build in formatting options or to NumberFormat object like that: 'Intl: { NumberFormat: { style: \'currency\', currency: \'EUR\' }}' or DateTimeFormat object like that: 'Intl: { DateTimeFormat: { dateStyle: \'full\' }}'' */
1671
+ export interface GridColumnFormatSettings {
1672
+ /**
1673
+ * Sets the decimal places.
1674
+ * Default value:
1675
+ */
1676
+ decimalPlaces?: number;
1677
+ /**
1678
+ * Sets the negativeWithBrackets property. Displays brackets around negative numbers
1679
+ * Default value: false
1680
+ */
1681
+ negativeWithBrackets?: boolean;
1682
+ /**
1683
+ * Sets the prefix of the formatted value.
1684
+ * Default value: ""
1685
+ */
1686
+ prefix?: string;
1687
+ /**
1688
+ * Sets the sufix of the formatted value.
1689
+ * Default value: ""
1690
+ */
1691
+ sufix?: string;
1692
+ /**
1693
+ * Sets the thousands separator.
1694
+ * Default value:
1695
+ */
1696
+ thousandsSeparator?: number;
1697
+ /**
1698
+ * Sets the date format string.
1699
+ * Default value: ""
1700
+ */
1701
+ dateFormat?: string;
1702
+ }
1703
+
1660
1704
  /**Column Menu is the drop-down menu displayed after clicking the column header's drop-down button, which is displayed when you hover the column header. It allows you to customize column settings. For example: Sort, Filter or Group the Grid by the current column. */
1661
1705
  export interface GridColumnMenu {
1662
1706
  /**
@@ -1886,7 +1930,7 @@ export interface GridCharting {
1886
1930
  * Sets or gets the chart's container.
1887
1931
  * Default value: null
1888
1932
  */
1889
- appendTo?: any;
1933
+ appendTo?: string | HTMLElement;
1890
1934
  /**
1891
1935
  * Sets or gets the charting dialog.
1892
1936
  * Default value: [object Object]
@@ -2074,12 +2118,12 @@ export interface GridDataSourceSettings {
2074
2118
  */
2075
2119
  mapChar?: string;
2076
2120
  /**
2077
- * Sets the virtual data source function which is called each time the Grid requests data. Demos using 'virtualDataSource' are available on the Grid demos page.
2121
+ * Sets the virtual data source function which is called each time the Grid requests data. Example for calling the callback function with the new data set: resultCallbackFunction({dataSource: data}); Demos using 'virtualDataSource' are available on the Grid demos page. Example: https://www.htmlelements.com/demos/grid/virtualscroll/
2078
2122
  * Default value: null
2079
2123
  */
2080
- virtualDataSource?: any;
2124
+ virtualDataSource?: {(resultCallbackFunction: any, details: DataAdapterVirtualDataSourceDetails): void};
2081
2125
  /**
2082
- * Sets the virtual data source on expand function. This function is called when we load data on demand in Tree or TreeGrid and virtualDataSource in these components is set, too
2126
+ * Sets the virtual data source on expand function. This function is called when we load data on demand in Tree or TreeGrid and virtualDataSource in these components is set, too. Example: https://www.htmlelements.com/demos/grid/virtual-tree-grid/
2083
2127
  * Default value: null
2084
2128
  */
2085
2129
  virtualDataSourceOnExpand?: any;
@@ -2386,6 +2430,11 @@ export interface GridFiltering {
2386
2430
  * Default value: false
2387
2431
  */
2388
2432
  enabled?: boolean;
2433
+ /**
2434
+ * Determines the filtering operator used in the Grid. By default filters are applied with 'and' operator i.e returns a set of rows matching the filter expressions of columnA AND columnB. The other option is to return a set of rows matching the filter expressions of columnA OR columnB. For example: grid.filtering.operator = 'or'; grid.addFilter('lastName', 'contains "davolio"') grid.addFilter('firstName', 'contains "Antoni"'); - that code will apply two filters to the Grid and will return all rows where firstName is 'Antoni' or the lastName is 'Davolio'
2435
+ * Default value: "and"
2436
+ */
2437
+ operator?: string;
2389
2438
  /**
2390
2439
  * An array of filtering conditions to apply to the DataGrid. Each member of the filter array is an array with two members. The first one is the column dataField to apply the filter to. The second one is the filtering condition. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']]. Additional example with filter which we want to apply to a column with filterMenuMode='excel' - [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']]. Example with a string filter applied to a string column - [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
2391
2440
  * Default value:
@@ -2792,7 +2841,7 @@ export interface GridRowDetail {
2792
2841
  * Sets the template of the row details.
2793
2842
  * Default value:
2794
2843
  */
2795
- template?: any;
2844
+ template?: string | HTMLTemplateElement;
2796
2845
  /**
2797
2846
  * Sets the visibility of the Column which allows you to dynamically expand/collapse the row details.
2798
2847
  * Default value: true
@@ -2858,7 +2907,7 @@ export interface GridHeader {
2858
2907
  * This callback function can be used for customization of the Header toolbar. The Toolbar HTML Element is passed as an argument.
2859
2908
  * Default value: null
2860
2909
  */
2861
- onInit?: any;
2910
+ onInit?: {(element: HTMLElement): void};
2862
2911
  /**
2863
2912
  * Determines the buttons displayed in the Grid header. 'columns' displays a button opening the columns chooser panel. 'filter' displays a button opening the filtering panel. 'group' displays a button opening the grouping panel. 'sort' displays a button opening the sorting panel. 'format' displays a button opening the conditional formatting panel. 'search' displays a button opening the search panel.
2864
2913
  * Default value: [ "columns", "filter", "group", "sort", "format", "search" ]
@@ -51,6 +51,11 @@ export interface KanbanProperties {
51
51
  * Default value: true
52
52
  */
53
53
  allowDrop?: boolean;
54
+ /**
55
+ * This property changes the visual appeal of the Kanban columns and tasks. When set to true and the Kanban columns have their 'color' property set, the color is also applied to the tasks and edit dialog.
56
+ * Default value: false
57
+ */
58
+ applyColumnColorToTasks?: boolean;
54
59
  /**
55
60
  * Enables or disables auto load state from the browser's localStorage. Information about tasks and their position and selected state, filtering, sorting, collapsed columns, as well as the values of the properties taskActions, taskComments, taskDue, taskPriority, taskProgress, taskTags, and taskUserIcon is loaded.
56
61
  * Default value: true
@@ -61,6 +66,11 @@ export interface KanbanProperties {
61
66
  * Default value: false
62
67
  */
63
68
  autoSaveState?: boolean;
69
+ /**
70
+ * Automatically updates the columns height depending on the tasks inside the column. The effect of this property is observed when 'columnColorEntireSurface' is true.
71
+ * Default value: false
72
+ */
73
+ autoColumnHeight?: boolean;
64
74
  /**
65
75
  * Allows collapsing the card content.
66
76
  * Default value: false
@@ -428,7 +428,7 @@ export interface SchedulerProperties {
428
428
  timeRulerTicks?: boolean;
429
429
  /**
430
430
  * Determines the timeZone for the element. By default if the local time zone is used if the property is not set.
431
- * Default value:
431
+ * Default value: Local
432
432
  */
433
433
  timeZone?: SchedulerTimeZone | string;
434
434
  /**
@@ -472,7 +472,7 @@ export interface Table extends BaseElement, TableProperties {
472
472
  /**
473
473
  * Adds a filter to a specific column.
474
474
  * @param {string} dataField. The column's data field.
475
- * @param {any} filter. FilterGroup object.
475
+ * @param {any} filter. FilterGroup object or a Filter expression. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
476
476
  */
477
477
  addFilter(dataField: string, filter: any): void;
478
478
  /**