smart-webcomponents 15.0.1 → 15.0.11

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 (929) hide show
  1. package/bootstrap/source/smart.element.js +1 -1
  2. package/framework/smart.element.js +1 -1
  3. package/package.json +1 -1
  4. package/source/angular/accordion/index.ts +1 -0
  5. package/source/angular/accordion/public_api.ts +5 -0
  6. package/source/angular/accordion/smart.accordion.module.ts +13 -0
  7. package/source/angular/accordion/smart.accordion.ts +370 -0
  8. package/source/angular/accordion/smart.accordionitem.ts +142 -0
  9. package/source/angular/accordion/smart.element.ts +104 -0
  10. package/source/angular/array/index.ts +1 -0
  11. package/source/angular/array/public_api.ts +3 -0
  12. package/source/angular/array/smart.array.module.ts +12 -0
  13. package/source/angular/array/smart.array.ts +817 -0
  14. package/source/angular/array/smart.element.ts +104 -0
  15. package/source/angular/barcode/index.ts +1 -0
  16. package/source/angular/barcode/public_api.ts +3 -0
  17. package/source/angular/barcode/smart.barcode.module.ts +12 -0
  18. package/source/angular/barcode/smart.barcode.ts +288 -0
  19. package/source/angular/barcode/smart.element.ts +104 -0
  20. package/source/angular/bootstrap/bootstrap.button.ts +160 -0
  21. package/source/angular/bootstrap/bootstrap.checkbox.ts +165 -0
  22. package/source/angular/bootstrap/bootstrap.circular.ts +151 -0
  23. package/source/angular/bootstrap/bootstrap.dropdown.ts +253 -0
  24. package/source/angular/bootstrap/bootstrap.fileinput.ts +133 -0
  25. package/source/angular/bootstrap/bootstrap.input.ts +160 -0
  26. package/source/angular/bootstrap/bootstrap.inputgroup.ts +178 -0
  27. package/source/angular/bootstrap/bootstrap.modal.ts +204 -0
  28. package/source/angular/bootstrap/bootstrap.progressbar.ts +151 -0
  29. package/source/angular/bootstrap/bootstrap.radiobutton.ts +156 -0
  30. package/source/angular/bootstrap/bootstrap.range.ts +133 -0
  31. package/source/angular/bootstrap/bootstrap.splitbutton.ts +253 -0
  32. package/source/angular/bootstrap/bootstrap.switchbutton.ts +165 -0
  33. package/source/angular/bootstrap/bootstrap.tabs.ts +175 -0
  34. package/source/angular/bootstrap/bootstrap.textarea.ts +160 -0
  35. package/source/angular/bootstrap/bootstrap.togglebutton.ts +156 -0
  36. package/source/angular/bootstrap/index.ts +1 -0
  37. package/source/angular/bootstrap/public_api.ts +17 -0
  38. package/source/angular/bootstrap/smart.element.ts +104 -0
  39. package/source/angular/breadcrumb/index.ts +1 -0
  40. package/source/angular/breadcrumb/public_api.ts +3 -0
  41. package/source/angular/breadcrumb/smart.breadcrumb.module.ts +12 -0
  42. package/source/angular/breadcrumb/smart.breadcrumb.ts +306 -0
  43. package/source/angular/breadcrumb/smart.element.ts +104 -0
  44. package/source/angular/button/index.ts +1 -0
  45. package/source/angular/button/public_api.ts +9 -0
  46. package/source/angular/button/smart.button.module.ts +15 -0
  47. package/source/angular/button/smart.button.ts +230 -0
  48. package/source/angular/button/smart.element.ts +104 -0
  49. package/source/angular/button/smart.powerbutton.ts +283 -0
  50. package/source/angular/button/smart.repeatbutton.ts +214 -0
  51. package/source/angular/button/smart.togglebutton.ts +235 -0
  52. package/source/angular/buttongroup/index.ts +1 -0
  53. package/source/angular/buttongroup/public_api.ts +3 -0
  54. package/source/angular/buttongroup/smart.buttongroup.module.ts +12 -0
  55. package/source/angular/buttongroup/smart.buttongroup.ts +229 -0
  56. package/source/angular/buttongroup/smart.element.ts +104 -0
  57. package/source/angular/calendar/index.ts +1 -0
  58. package/source/angular/calendar/public_api.ts +3 -0
  59. package/source/angular/calendar/smart.calendar.module.ts +12 -0
  60. package/source/angular/calendar/smart.calendar.ts +787 -0
  61. package/source/angular/calendar/smart.element.ts +104 -0
  62. package/source/angular/card/index.ts +1 -0
  63. package/source/angular/card/public_api.ts +3 -0
  64. package/source/angular/card/smart.card.module.ts +12 -0
  65. package/source/angular/card/smart.card.ts +220 -0
  66. package/source/angular/card/smart.element.ts +104 -0
  67. package/source/angular/cardview/index.ts +1 -0
  68. package/source/angular/cardview/public_api.ts +3 -0
  69. package/source/angular/cardview/smart.cardview.module.ts +12 -0
  70. package/source/angular/cardview/smart.cardview.ts +573 -0
  71. package/source/angular/cardview/smart.element.ts +104 -0
  72. package/source/angular/carousel/index.ts +1 -0
  73. package/source/angular/carousel/public_api.ts +3 -0
  74. package/source/angular/carousel/smart.carousel.module.ts +12 -0
  75. package/source/angular/carousel/smart.carousel.ts +414 -0
  76. package/source/angular/carousel/smart.element.ts +104 -0
  77. package/source/angular/chart/index.ts +1 -0
  78. package/source/angular/chart/public_api.ts +3 -0
  79. package/source/angular/chart/smart.chart.module.ts +12 -0
  80. package/source/angular/chart/smart.chart.ts +930 -0
  81. package/source/angular/chart/smart.element.ts +104 -0
  82. package/source/angular/checkbox/index.ts +1 -0
  83. package/source/angular/checkbox/public_api.ts +3 -0
  84. package/source/angular/checkbox/smart.checkbox.module.ts +12 -0
  85. package/source/angular/checkbox/smart.checkbox.ts +341 -0
  86. package/source/angular/checkbox/smart.element.ts +104 -0
  87. package/source/angular/checkinput/index.ts +1 -0
  88. package/source/angular/checkinput/public_api.ts +3 -0
  89. package/source/angular/checkinput/smart.checkinput.module.ts +12 -0
  90. package/source/angular/checkinput/smart.checkinput.ts +497 -0
  91. package/source/angular/checkinput/smart.element.ts +104 -0
  92. package/source/angular/chip/index.ts +1 -0
  93. package/source/angular/chip/public_api.ts +3 -0
  94. package/source/angular/chip/smart.chip.module.ts +12 -0
  95. package/source/angular/chip/smart.chip.ts +221 -0
  96. package/source/angular/chip/smart.element.ts +104 -0
  97. package/source/angular/colorinput/index.ts +1 -0
  98. package/source/angular/colorinput/public_api.ts +3 -0
  99. package/source/angular/colorinput/smart.colorinput.module.ts +12 -0
  100. package/source/angular/colorinput/smart.colorinput.ts +456 -0
  101. package/source/angular/colorinput/smart.element.ts +104 -0
  102. package/source/angular/colorpanel/index.ts +1 -0
  103. package/source/angular/colorpanel/public_api.ts +3 -0
  104. package/source/angular/colorpanel/smart.colorpanel.module.ts +12 -0
  105. package/source/angular/colorpanel/smart.colorpanel.ts +501 -0
  106. package/source/angular/colorpanel/smart.element.ts +104 -0
  107. package/source/angular/colorpicker/index.ts +1 -0
  108. package/source/angular/colorpicker/public_api.ts +3 -0
  109. package/source/angular/colorpicker/smart.colorpicker.module.ts +12 -0
  110. package/source/angular/colorpicker/smart.colorpicker.ts +756 -0
  111. package/source/angular/colorpicker/smart.element.ts +104 -0
  112. package/source/angular/columnpanel/index.ts +1 -0
  113. package/source/angular/columnpanel/public_api.ts +3 -0
  114. package/source/angular/columnpanel/smart.columnpanel.module.ts +12 -0
  115. package/source/angular/columnpanel/smart.columnpanel.ts +183 -0
  116. package/source/angular/columnpanel/smart.element.ts +104 -0
  117. package/source/angular/combobox/index.ts +1 -0
  118. package/source/angular/combobox/public_api.ts +7 -0
  119. package/source/angular/combobox/smart.combobox.module.ts +14 -0
  120. package/source/angular/combobox/smart.combobox.ts +1125 -0
  121. package/source/angular/combobox/smart.element.ts +104 -0
  122. package/source/angular/combobox/smart.listitem.ts +162 -0
  123. package/source/angular/combobox/smart.listitemsgroup.ts +72 -0
  124. package/source/angular/countryinput/index.ts +1 -0
  125. package/source/angular/countryinput/public_api.ts +3 -0
  126. package/source/angular/countryinput/smart.countryinput.module.ts +12 -0
  127. package/source/angular/countryinput/smart.countryinput.ts +391 -0
  128. package/source/angular/countryinput/smart.element.ts +104 -0
  129. package/source/angular/customizationdialog/index.ts +1 -0
  130. package/source/angular/customizationdialog/public_api.ts +3 -0
  131. package/source/angular/customizationdialog/smart.customizationdialog.module.ts +12 -0
  132. package/source/angular/customizationdialog/smart.customizationdialog.ts +311 -0
  133. package/source/angular/customizationdialog/smart.element.ts +104 -0
  134. package/source/angular/dateinput/index.ts +1 -0
  135. package/source/angular/dateinput/public_api.ts +3 -0
  136. package/source/angular/dateinput/smart.dateinput.module.ts +12 -0
  137. package/source/angular/dateinput/smart.dateinput.ts +465 -0
  138. package/source/angular/dateinput/smart.element.ts +104 -0
  139. package/source/angular/daterangeinput/index.ts +1 -0
  140. package/source/angular/daterangeinput/public_api.ts +3 -0
  141. package/source/angular/daterangeinput/smart.daterangeinput.module.ts +12 -0
  142. package/source/angular/daterangeinput/smart.daterangeinput.ts +456 -0
  143. package/source/angular/daterangeinput/smart.element.ts +104 -0
  144. package/source/angular/datetimepicker/index.ts +1 -0
  145. package/source/angular/datetimepicker/public_api.ts +3 -0
  146. package/source/angular/datetimepicker/smart.datetimepicker.module.ts +12 -0
  147. package/source/angular/datetimepicker/smart.datetimepicker.ts +835 -0
  148. package/source/angular/datetimepicker/smart.element.ts +104 -0
  149. package/source/angular/dockinglayout/index.ts +1 -0
  150. package/source/angular/dockinglayout/public_api.ts +3 -0
  151. package/source/angular/dockinglayout/smart.dockinglayout.module.ts +12 -0
  152. package/source/angular/dockinglayout/smart.dockinglayout.ts +866 -0
  153. package/source/angular/dockinglayout/smart.element.ts +104 -0
  154. package/source/angular/dropdownbutton/index.ts +1 -0
  155. package/source/angular/dropdownbutton/public_api.ts +3 -0
  156. package/source/angular/dropdownbutton/smart.dropdownbutton.module.ts +12 -0
  157. package/source/angular/dropdownbutton/smart.dropdownbutton.ts +542 -0
  158. package/source/angular/dropdownbutton/smart.element.ts +104 -0
  159. package/source/angular/dropdownlist/index.ts +1 -0
  160. package/source/angular/dropdownlist/public_api.ts +7 -0
  161. package/source/angular/dropdownlist/smart.dropdownlist.module.ts +14 -0
  162. package/source/angular/dropdownlist/smart.dropdownlist.ts +1082 -0
  163. package/source/angular/dropdownlist/smart.element.ts +104 -0
  164. package/source/angular/dropdownlist/smart.listitem.ts +162 -0
  165. package/source/angular/dropdownlist/smart.listitemsgroup.ts +72 -0
  166. package/source/angular/editor/index.ts +1 -0
  167. package/source/angular/editor/public_api.ts +3 -0
  168. package/source/angular/editor/smart.editor.module.ts +12 -0
  169. package/source/angular/editor/smart.editor.ts +1307 -0
  170. package/source/angular/editor/smart.element.ts +104 -0
  171. package/source/angular/element/index.ts +1 -0
  172. package/source/angular/element/public_api.ts +3 -0
  173. package/source/angular/element/smart.element.module.ts +10 -0
  174. package/source/angular/element/smart.element.ts +104 -0
  175. package/source/angular/fileupload/index.ts +1 -0
  176. package/source/angular/fileupload/public_api.ts +3 -0
  177. package/source/angular/fileupload/smart.element.ts +104 -0
  178. package/source/angular/fileupload/smart.fileupload.module.ts +12 -0
  179. package/source/angular/fileupload/smart.fileupload.ts +517 -0
  180. package/source/angular/filterbuilder/index.ts +1 -0
  181. package/source/angular/filterbuilder/public_api.ts +3 -0
  182. package/source/angular/filterbuilder/smart.element.ts +104 -0
  183. package/source/angular/filterbuilder/smart.filterbuilder.module.ts +12 -0
  184. package/source/angular/filterbuilder/smart.filterbuilder.ts +506 -0
  185. package/source/angular/filterpanel/index.ts +1 -0
  186. package/source/angular/filterpanel/public_api.ts +3 -0
  187. package/source/angular/filterpanel/smart.element.ts +104 -0
  188. package/source/angular/filterpanel/smart.filterpanel.module.ts +12 -0
  189. package/source/angular/filterpanel/smart.filterpanel.ts +334 -0
  190. package/source/angular/form/index.ts +1 -0
  191. package/source/angular/form/public_api.ts +7 -0
  192. package/source/angular/form/smart.element.ts +104 -0
  193. package/source/angular/form/smart.form.module.ts +14 -0
  194. package/source/angular/form/smart.form.ts +288 -0
  195. package/source/angular/form/smart.formcontrol.ts +336 -0
  196. package/source/angular/form/smart.formgroup.ts +220 -0
  197. package/source/angular/ganttchart/index.ts +1 -0
  198. package/source/angular/ganttchart/public_api.ts +3 -0
  199. package/source/angular/ganttchart/smart.element.ts +104 -0
  200. package/source/angular/ganttchart/smart.ganttchart.module.ts +12 -0
  201. package/source/angular/ganttchart/smart.ganttchart.ts +2142 -0
  202. package/source/angular/gauge/index.ts +1 -0
  203. package/source/angular/gauge/public_api.ts +3 -0
  204. package/source/angular/gauge/smart.element.ts +104 -0
  205. package/source/angular/gauge/smart.gauge.module.ts +12 -0
  206. package/source/angular/gauge/smart.gauge.ts +650 -0
  207. package/source/angular/grid/index.ts +1 -0
  208. package/source/angular/grid/public_api.ts +3 -0
  209. package/source/angular/grid/smart.element.ts +104 -0
  210. package/source/angular/grid/smart.grid.module.ts +12 -0
  211. package/source/angular/grid/smart.grid.ts +3091 -0
  212. package/source/angular/grouppanel/index.ts +1 -0
  213. package/source/angular/grouppanel/public_api.ts +3 -0
  214. package/source/angular/grouppanel/smart.element.ts +104 -0
  215. package/source/angular/grouppanel/smart.grouppanel.module.ts +12 -0
  216. package/source/angular/grouppanel/smart.grouppanel.ts +220 -0
  217. package/source/angular/index.d.ts +32978 -0
  218. package/source/angular/input/index.ts +1 -0
  219. package/source/angular/input/public_api.ts +3 -0
  220. package/source/angular/input/smart.element.ts +104 -0
  221. package/source/angular/input/smart.input.module.ts +12 -0
  222. package/source/angular/input/smart.input.ts +590 -0
  223. package/source/angular/kanban/index.ts +1 -0
  224. package/source/angular/kanban/public_api.ts +3 -0
  225. package/source/angular/kanban/smart.element.ts +104 -0
  226. package/source/angular/kanban/smart.kanban.module.ts +12 -0
  227. package/source/angular/kanban/smart.kanban.ts +1682 -0
  228. package/source/angular/layout/index.ts +1 -0
  229. package/source/angular/layout/public_api.ts +11 -0
  230. package/source/angular/layout/smart.element.ts +104 -0
  231. package/source/angular/layout/smart.layout.module.ts +16 -0
  232. package/source/angular/layout/smart.layout.ts +363 -0
  233. package/source/angular/layout/smart.layoutgroup.ts +140 -0
  234. package/source/angular/layout/smart.layoutitem.ts +129 -0
  235. package/source/angular/layout/smart.tablayoutgroup.ts +147 -0
  236. package/source/angular/layout/smart.tablayoutitem.ts +138 -0
  237. package/source/angular/led/index.ts +1 -0
  238. package/source/angular/led/public_api.ts +3 -0
  239. package/source/angular/led/smart.element.ts +104 -0
  240. package/source/angular/led/smart.led.module.ts +12 -0
  241. package/source/angular/led/smart.led.ts +280 -0
  242. package/source/angular/listbox/index.ts +1 -0
  243. package/source/angular/listbox/public_api.ts +7 -0
  244. package/source/angular/listbox/smart.element.ts +104 -0
  245. package/source/angular/listbox/smart.listbox.module.ts +14 -0
  246. package/source/angular/listbox/smart.listbox.ts +1007 -0
  247. package/source/angular/listbox/smart.listitem.ts +162 -0
  248. package/source/angular/listbox/smart.listitemsgroup.ts +72 -0
  249. package/source/angular/listmenu/index.ts +1 -0
  250. package/source/angular/listmenu/public_api.ts +7 -0
  251. package/source/angular/listmenu/smart.element.ts +104 -0
  252. package/source/angular/listmenu/smart.listmenu.module.ts +14 -0
  253. package/source/angular/listmenu/smart.listmenu.ts +597 -0
  254. package/source/angular/listmenu/smart.menuitem.ts +126 -0
  255. package/source/angular/listmenu/smart.menuitemsgroup.ts +153 -0
  256. package/source/angular/map/index.ts +1 -0
  257. package/source/angular/map/public_api.ts +3 -0
  258. package/source/angular/map/smart.element.ts +104 -0
  259. package/source/angular/map/smart.map.module.ts +12 -0
  260. package/source/angular/map/smart.map.ts +128 -0
  261. package/source/angular/maskedtextbox/index.ts +1 -0
  262. package/source/angular/maskedtextbox/public_api.ts +3 -0
  263. package/source/angular/maskedtextbox/smart.element.ts +104 -0
  264. package/source/angular/maskedtextbox/smart.maskedtextbox.module.ts +12 -0
  265. package/source/angular/maskedtextbox/smart.maskedtextbox.ts +539 -0
  266. package/source/angular/menu/index.ts +1 -0
  267. package/source/angular/menu/public_api.ts +7 -0
  268. package/source/angular/menu/smart.element.ts +104 -0
  269. package/source/angular/menu/smart.menu.module.ts +14 -0
  270. package/source/angular/menu/smart.menu.ts +695 -0
  271. package/source/angular/menu/smart.menuitem.ts +126 -0
  272. package/source/angular/menu/smart.menuitemsgroup.ts +153 -0
  273. package/source/angular/multicolumnfilterpanel/index.ts +1 -0
  274. package/source/angular/multicolumnfilterpanel/public_api.ts +3 -0
  275. package/source/angular/multicolumnfilterpanel/smart.element.ts +104 -0
  276. package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.module.ts +12 -0
  277. package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.ts +256 -0
  278. package/source/angular/multicomboinput/index.ts +1 -0
  279. package/source/angular/multicomboinput/public_api.ts +3 -0
  280. package/source/angular/multicomboinput/smart.element.ts +104 -0
  281. package/source/angular/multicomboinput/smart.multicomboinput.module.ts +12 -0
  282. package/source/angular/multicomboinput/smart.multicomboinput.ts +542 -0
  283. package/source/angular/multiinput/index.ts +1 -0
  284. package/source/angular/multiinput/public_api.ts +3 -0
  285. package/source/angular/multiinput/smart.element.ts +104 -0
  286. package/source/angular/multiinput/smart.multiinput.module.ts +12 -0
  287. package/source/angular/multiinput/smart.multiinput.ts +497 -0
  288. package/source/angular/multilinetextbox/index.ts +1 -0
  289. package/source/angular/multilinetextbox/public_api.ts +7 -0
  290. package/source/angular/multilinetextbox/smart.element.ts +104 -0
  291. package/source/angular/multilinetextbox/smart.listitem.ts +162 -0
  292. package/source/angular/multilinetextbox/smart.listitemsgroup.ts +72 -0
  293. package/source/angular/multilinetextbox/smart.multilinetextbox.module.ts +14 -0
  294. package/source/angular/multilinetextbox/smart.multilinetextbox.ts +561 -0
  295. package/source/angular/multisplitbutton/index.ts +1 -0
  296. package/source/angular/multisplitbutton/public_api.ts +7 -0
  297. package/source/angular/multisplitbutton/smart.element.ts +104 -0
  298. package/source/angular/multisplitbutton/smart.listitem.ts +162 -0
  299. package/source/angular/multisplitbutton/smart.listitemsgroup.ts +72 -0
  300. package/source/angular/multisplitbutton/smart.multisplitbutton.module.ts +14 -0
  301. package/source/angular/multisplitbutton/smart.multisplitbutton.ts +620 -0
  302. package/source/angular/numberinput/index.ts +1 -0
  303. package/source/angular/numberinput/public_api.ts +3 -0
  304. package/source/angular/numberinput/smart.element.ts +104 -0
  305. package/source/angular/numberinput/smart.numberinput.module.ts +12 -0
  306. package/source/angular/numberinput/smart.numberinput.ts +398 -0
  307. package/source/angular/numerictextbox/index.ts +1 -0
  308. package/source/angular/numerictextbox/public_api.ts +3 -0
  309. package/source/angular/numerictextbox/smart.element.ts +104 -0
  310. package/source/angular/numerictextbox/smart.numerictextbox.module.ts +12 -0
  311. package/source/angular/numerictextbox/smart.numerictextbox.ts +644 -0
  312. package/source/angular/pager/index.ts +1 -0
  313. package/source/angular/pager/public_api.ts +3 -0
  314. package/source/angular/pager/smart.element.ts +104 -0
  315. package/source/angular/pager/smart.pager.module.ts +12 -0
  316. package/source/angular/pager/smart.pager.ts +386 -0
  317. package/source/angular/passwordinput/index.ts +1 -0
  318. package/source/angular/passwordinput/public_api.ts +3 -0
  319. package/source/angular/passwordinput/smart.element.ts +104 -0
  320. package/source/angular/passwordinput/smart.passwordinput.module.ts +12 -0
  321. package/source/angular/passwordinput/smart.passwordinput.ts +218 -0
  322. package/source/angular/passwordtextbox/index.ts +1 -0
  323. package/source/angular/passwordtextbox/public_api.ts +3 -0
  324. package/source/angular/passwordtextbox/smart.element.ts +104 -0
  325. package/source/angular/passwordtextbox/smart.passwordtextbox.module.ts +12 -0
  326. package/source/angular/passwordtextbox/smart.passwordtextbox.ts +463 -0
  327. package/source/angular/path/index.ts +1 -0
  328. package/source/angular/path/public_api.ts +3 -0
  329. package/source/angular/path/smart.element.ts +104 -0
  330. package/source/angular/path/smart.path.module.ts +12 -0
  331. package/source/angular/path/smart.path.ts +491 -0
  332. package/source/angular/phoneinput/index.ts +1 -0
  333. package/source/angular/phoneinput/public_api.ts +3 -0
  334. package/source/angular/phoneinput/smart.element.ts +104 -0
  335. package/source/angular/phoneinput/smart.phoneinput.module.ts +12 -0
  336. package/source/angular/phoneinput/smart.phoneinput.ts +493 -0
  337. package/source/angular/pivottable/index.ts +1 -0
  338. package/source/angular/pivottable/public_api.ts +3 -0
  339. package/source/angular/pivottable/smart.element.ts +104 -0
  340. package/source/angular/pivottable/smart.pivottable.module.ts +12 -0
  341. package/source/angular/pivottable/smart.pivottable.ts +840 -0
  342. package/source/angular/progressbar/index.ts +1 -0
  343. package/source/angular/progressbar/public_api.ts +5 -0
  344. package/source/angular/progressbar/smart.circularprogressbar.ts +223 -0
  345. package/source/angular/progressbar/smart.element.ts +104 -0
  346. package/source/angular/progressbar/smart.progressbar.module.ts +13 -0
  347. package/source/angular/progressbar/smart.progressbar.ts +235 -0
  348. package/source/angular/qrcode/index.ts +1 -0
  349. package/source/angular/qrcode/public_api.ts +3 -0
  350. package/source/angular/qrcode/smart.element.ts +104 -0
  351. package/source/angular/qrcode/smart.qrcode.module.ts +12 -0
  352. package/source/angular/qrcode/smart.qrcode.ts +306 -0
  353. package/source/angular/querybuilder/index.ts +1 -0
  354. package/source/angular/querybuilder/public_api.ts +3 -0
  355. package/source/angular/querybuilder/smart.element.ts +104 -0
  356. package/source/angular/querybuilder/smart.querybuilder.module.ts +12 -0
  357. package/source/angular/querybuilder/smart.querybuilder.ts +460 -0
  358. package/source/angular/radiobutton/index.ts +1 -0
  359. package/source/angular/radiobutton/public_api.ts +3 -0
  360. package/source/angular/radiobutton/smart.element.ts +104 -0
  361. package/source/angular/radiobutton/smart.radiobutton.module.ts +12 -0
  362. package/source/angular/radiobutton/smart.radiobutton.ts +350 -0
  363. package/source/angular/rating/index.ts +1 -0
  364. package/source/angular/rating/public_api.ts +3 -0
  365. package/source/angular/rating/smart.element.ts +104 -0
  366. package/source/angular/rating/smart.rating.module.ts +12 -0
  367. package/source/angular/rating/smart.rating.ts +309 -0
  368. package/source/angular/scheduler/index.ts +1 -0
  369. package/source/angular/scheduler/public_api.ts +3 -0
  370. package/source/angular/scheduler/smart.element.ts +104 -0
  371. package/source/angular/scheduler/smart.scheduler.module.ts +12 -0
  372. package/source/angular/scheduler/smart.scheduler.ts +2328 -0
  373. package/source/angular/scrollbar/index.ts +1 -0
  374. package/source/angular/scrollbar/public_api.ts +3 -0
  375. package/source/angular/scrollbar/smart.element.ts +104 -0
  376. package/source/angular/scrollbar/smart.scrollbar.module.ts +12 -0
  377. package/source/angular/scrollbar/smart.scrollbar.ts +260 -0
  378. package/source/angular/slider/index.ts +1 -0
  379. package/source/angular/slider/public_api.ts +3 -0
  380. package/source/angular/slider/smart.element.ts +104 -0
  381. package/source/angular/slider/smart.slider.module.ts +12 -0
  382. package/source/angular/slider/smart.slider.ts +632 -0
  383. package/source/angular/sortable/index.ts +1 -0
  384. package/source/angular/sortable/public_api.ts +3 -0
  385. package/source/angular/sortable/smart.element.ts +104 -0
  386. package/source/angular/sortable/smart.sortable.module.ts +12 -0
  387. package/source/angular/sortable/smart.sortable.ts +217 -0
  388. package/source/angular/sortpanel/index.ts +1 -0
  389. package/source/angular/sortpanel/public_api.ts +3 -0
  390. package/source/angular/sortpanel/smart.element.ts +104 -0
  391. package/source/angular/sortpanel/smart.sortpanel.module.ts +12 -0
  392. package/source/angular/sortpanel/smart.sortpanel.ts +180 -0
  393. package/source/angular/splitter/index.ts +1 -0
  394. package/source/angular/splitter/public_api.ts +7 -0
  395. package/source/angular/splitter/smart.element.ts +104 -0
  396. package/source/angular/splitter/smart.splitter.module.ts +14 -0
  397. package/source/angular/splitter/smart.splitter.ts +530 -0
  398. package/source/angular/splitter/smart.splitterbar.ts +121 -0
  399. package/source/angular/splitter/smart.splitteritem.ts +192 -0
  400. package/source/angular/switchbutton/index.ts +1 -0
  401. package/source/angular/switchbutton/public_api.ts +3 -0
  402. package/source/angular/switchbutton/smart.element.ts +104 -0
  403. package/source/angular/switchbutton/smart.switchbutton.module.ts +12 -0
  404. package/source/angular/switchbutton/smart.switchbutton.ts +386 -0
  405. package/source/angular/table/index.ts +1 -0
  406. package/source/angular/table/public_api.ts +3 -0
  407. package/source/angular/table/smart.element.ts +104 -0
  408. package/source/angular/table/smart.table.module.ts +12 -0
  409. package/source/angular/table/smart.table.ts +1493 -0
  410. package/source/angular/tabs/index.ts +1 -0
  411. package/source/angular/tabs/public_api.ts +7 -0
  412. package/source/angular/tabs/smart.element.ts +104 -0
  413. package/source/angular/tabs/smart.tabitem.ts +126 -0
  414. package/source/angular/tabs/smart.tabitemsgroup.ts +81 -0
  415. package/source/angular/tabs/smart.tabs.module.ts +14 -0
  416. package/source/angular/tabs/smart.tabs.ts +622 -0
  417. package/source/angular/tank/index.ts +1 -0
  418. package/source/angular/tank/public_api.ts +3 -0
  419. package/source/angular/tank/smart.element.ts +104 -0
  420. package/source/angular/tank/smart.tank.module.ts +12 -0
  421. package/source/angular/tank/smart.tank.ts +593 -0
  422. package/source/angular/textarea/index.ts +1 -0
  423. package/source/angular/textarea/public_api.ts +3 -0
  424. package/source/angular/textarea/smart.element.ts +104 -0
  425. package/source/angular/textarea/smart.textarea.module.ts +12 -0
  426. package/source/angular/textarea/smart.textarea.ts +484 -0
  427. package/source/angular/textbox/index.ts +1 -0
  428. package/source/angular/textbox/public_api.ts +7 -0
  429. package/source/angular/textbox/smart.element.ts +104 -0
  430. package/source/angular/textbox/smart.listitem.ts +162 -0
  431. package/source/angular/textbox/smart.listitemsgroup.ts +72 -0
  432. package/source/angular/textbox/smart.textbox.module.ts +14 -0
  433. package/source/angular/textbox/smart.textbox.ts +708 -0
  434. package/source/angular/threedchart/index.ts +1 -0
  435. package/source/angular/threedchart/public_api.ts +3 -0
  436. package/source/angular/threedchart/smart.element.ts +104 -0
  437. package/source/angular/threedchart/smart.threedchart.module.ts +12 -0
  438. package/source/angular/threedchart/smart.threedchart.ts +1043 -0
  439. package/source/angular/timeinput/index.ts +1 -0
  440. package/source/angular/timeinput/public_api.ts +3 -0
  441. package/source/angular/timeinput/smart.element.ts +104 -0
  442. package/source/angular/timeinput/smart.timeinput.module.ts +12 -0
  443. package/source/angular/timeinput/smart.timeinput.ts +427 -0
  444. package/source/angular/timepicker/index.ts +1 -0
  445. package/source/angular/timepicker/public_api.ts +3 -0
  446. package/source/angular/timepicker/smart.element.ts +104 -0
  447. package/source/angular/timepicker/smart.timepicker.module.ts +12 -0
  448. package/source/angular/timepicker/smart.timepicker.ts +370 -0
  449. package/source/angular/toast/index.ts +1 -0
  450. package/source/angular/toast/public_api.ts +3 -0
  451. package/source/angular/toast/smart.element.ts +104 -0
  452. package/source/angular/toast/smart.toast.module.ts +12 -0
  453. package/source/angular/toast/smart.toast.ts +405 -0
  454. package/source/angular/tooltip/index.ts +1 -0
  455. package/source/angular/tooltip/public_api.ts +3 -0
  456. package/source/angular/tooltip/smart.element.ts +104 -0
  457. package/source/angular/tooltip/smart.tooltip.module.ts +12 -0
  458. package/source/angular/tooltip/smart.tooltip.ts +339 -0
  459. package/source/angular/tree/index.ts +1 -0
  460. package/source/angular/tree/public_api.ts +7 -0
  461. package/source/angular/tree/smart.element.ts +104 -0
  462. package/source/angular/tree/smart.tree.module.ts +14 -0
  463. package/source/angular/tree/smart.tree.ts +1042 -0
  464. package/source/angular/tree/smart.treeitem.ts +135 -0
  465. package/source/angular/tree/smart.treeitemsgroup.ts +135 -0
  466. package/source/angular/validator/index.ts +1 -0
  467. package/source/angular/validator/public_api.ts +3 -0
  468. package/source/angular/validator/smart.element.ts +104 -0
  469. package/source/angular/validator/smart.validator.module.ts +12 -0
  470. package/source/angular/validator/smart.validator.ts +124 -0
  471. package/source/angular/window/index.ts +1 -0
  472. package/source/angular/window/public_api.ts +3 -0
  473. package/source/angular/window/smart.element.ts +104 -0
  474. package/source/angular/window/smart.window.module.ts +12 -0
  475. package/source/angular/window/smart.window.ts +1180 -0
  476. package/source/components/smart.ui.chart.js +1 -1
  477. package/source/components/smart.ui.pivottable.js +1 -1
  478. package/source/modules/smart.3dchart.js +1 -1
  479. package/source/modules/smart.accordion.js +1 -1
  480. package/source/modules/smart.array.js +1 -1
  481. package/source/modules/smart.barcode.js +1 -1
  482. package/source/modules/smart.breadcrumb.js +1 -1
  483. package/source/modules/smart.button.js +1 -1
  484. package/source/modules/smart.buttongroup.js +1 -1
  485. package/source/modules/smart.calendar.js +1 -1
  486. package/source/modules/smart.card.js +1 -1
  487. package/source/modules/smart.cardview.js +1 -1
  488. package/source/modules/smart.carousel.js +1 -1
  489. package/source/modules/smart.chart.js +2 -2
  490. package/source/modules/smart.checkbox.js +1 -1
  491. package/source/modules/smart.checkinput.js +1 -1
  492. package/source/modules/smart.chip.js +1 -1
  493. package/source/modules/smart.colorinput.js +1 -1
  494. package/source/modules/smart.colorpanel.js +1 -1
  495. package/source/modules/smart.colorpicker.js +1 -1
  496. package/source/modules/smart.combobox.js +1 -1
  497. package/source/modules/smart.common.js +1 -1
  498. package/source/modules/smart.countryinput.js +1 -1
  499. package/source/modules/smart.dateinput.js +1 -1
  500. package/source/modules/smart.daterangeinput.js +1 -1
  501. package/source/modules/smart.datetimepicker.js +1 -1
  502. package/source/modules/smart.dockinglayout.js +1 -1
  503. package/source/modules/smart.dropdownbutton.js +1 -1
  504. package/source/modules/smart.dropdownlist.js +1 -1
  505. package/source/modules/smart.editor.js +1 -1
  506. package/source/modules/smart.element.js +1 -1
  507. package/source/modules/smart.fileupload.js +1 -1
  508. package/source/modules/smart.form.js +1 -1
  509. package/source/modules/smart.formulaparser.js +1 -1
  510. package/source/modules/smart.ganttchart.js +1 -1
  511. package/source/modules/smart.gauge.js +1 -1
  512. package/source/modules/smart.grid.js +1 -1
  513. package/source/modules/smart.gridpanel.js +1 -1
  514. package/source/modules/smart.input.js +1 -1
  515. package/source/modules/smart.kanban.js +1 -1
  516. package/source/modules/smart.layout.js +1 -1
  517. package/source/modules/smart.led.js +1 -1
  518. package/source/modules/smart.listbox.js +1 -1
  519. package/source/modules/smart.listmenu.js +1 -1
  520. package/source/modules/smart.map.js +1 -1
  521. package/source/modules/smart.maskedtextbox.js +1 -1
  522. package/source/modules/smart.menu.js +1 -1
  523. package/source/modules/smart.multicomboinput.js +1 -1
  524. package/source/modules/smart.multiinput.js +1 -1
  525. package/source/modules/smart.multilinetextbox.js +1 -1
  526. package/source/modules/smart.multisplitbutton.js +1 -1
  527. package/source/modules/smart.numberinput.js +1 -1
  528. package/source/modules/smart.numerictextbox.js +1 -1
  529. package/source/modules/smart.pager.js +1 -1
  530. package/source/modules/smart.passwordinput.js +1 -1
  531. package/source/modules/smart.passwordtextbox.js +1 -1
  532. package/source/modules/smart.path.js +1 -1
  533. package/source/modules/smart.phoneinput.js +1 -1
  534. package/source/modules/smart.pivottable.js +2 -2
  535. package/source/modules/smart.progressbar.js +1 -1
  536. package/source/modules/smart.qrcode.js +1 -1
  537. package/source/modules/smart.querybuilder.js +1 -1
  538. package/source/modules/smart.radiobutton.js +1 -1
  539. package/source/modules/smart.rating.js +1 -1
  540. package/source/modules/smart.router.js +1 -1
  541. package/source/modules/smart.scheduler.js +1 -1
  542. package/source/modules/smart.scrollbar.js +1 -1
  543. package/source/modules/smart.slider.js +1 -1
  544. package/source/modules/smart.sortable.js +1 -1
  545. package/source/modules/smart.splitter.js +1 -1
  546. package/source/modules/smart.switchbutton.js +1 -1
  547. package/source/modules/smart.table.js +1 -1
  548. package/source/modules/smart.tabs.js +1 -1
  549. package/source/modules/smart.tank.js +1 -1
  550. package/source/modules/smart.textarea.js +1 -1
  551. package/source/modules/smart.textbox.js +1 -1
  552. package/source/modules/smart.timeinput.js +1 -1
  553. package/source/modules/smart.timepicker.js +1 -1
  554. package/source/modules/smart.toast.js +1 -1
  555. package/source/modules/smart.tooltip.js +1 -1
  556. package/source/modules/smart.tree.js +1 -1
  557. package/source/modules/smart.validator.js +1 -1
  558. package/source/modules/smart.window.js +1 -1
  559. package/source/react/accordion/accordion.jsx +462 -0
  560. package/source/react/accordion/accordion.tsx +466 -0
  561. package/source/react/accordion/accordionitem.jsx +211 -0
  562. package/source/react/accordion/accordionitem.tsx +229 -0
  563. package/source/react/alertwindow/alertwindow.jsx +1391 -0
  564. package/source/react/alertwindow/alertwindow.tsx +1349 -0
  565. package/source/react/array/array.jsx +907 -0
  566. package/source/react/array/array.tsx +909 -0
  567. package/source/react/barcode/barcode.jsx +372 -0
  568. package/source/react/barcode/barcode.tsx +394 -0
  569. package/source/react/breadcrumb/breadcrumb.jsx +399 -0
  570. package/source/react/breadcrumb/breadcrumb.tsx +405 -0
  571. package/source/react/button/button.jsx +331 -0
  572. package/source/react/button/button.tsx +359 -0
  573. package/source/react/button/powerbutton.jsx +301 -0
  574. package/source/react/button/powerbutton.tsx +323 -0
  575. package/source/react/button/repeatbutton.jsx +325 -0
  576. package/source/react/button/repeatbutton.tsx +347 -0
  577. package/source/react/button/togglebutton.jsx +337 -0
  578. package/source/react/button/togglebutton.tsx +351 -0
  579. package/source/react/buttongroup/buttongroup.jsx +340 -0
  580. package/source/react/buttongroup/buttongroup.tsx +362 -0
  581. package/source/react/calendar/calendar.jsx +868 -0
  582. package/source/react/calendar/calendar.tsx +866 -0
  583. package/source/react/card/card.jsx +313 -0
  584. package/source/react/card/card.tsx +323 -0
  585. package/source/react/cardview/cardview.jsx +664 -0
  586. package/source/react/cardview/cardview.tsx +656 -0
  587. package/source/react/carousel/carousel.jsx +546 -0
  588. package/source/react/carousel/carousel.tsx +556 -0
  589. package/source/react/chart/chart.jsx +1014 -0
  590. package/source/react/chart/chart.tsx +996 -0
  591. package/source/react/checkbox/checkbox.jsx +361 -0
  592. package/source/react/checkbox/checkbox.tsx +375 -0
  593. package/source/react/checkinput/checkinput.jsx +566 -0
  594. package/source/react/checkinput/checkinput.tsx +588 -0
  595. package/source/react/chip/chip.jsx +329 -0
  596. package/source/react/chip/chip.tsx +351 -0
  597. package/source/react/colorinput/colorinput.jsx +516 -0
  598. package/source/react/colorinput/colorinput.tsx +538 -0
  599. package/source/react/colorpanel/colorpanel.jsx +570 -0
  600. package/source/react/colorpanel/colorpanel.tsx +580 -0
  601. package/source/react/colorpicker/colorpicker.jsx +846 -0
  602. package/source/react/colorpicker/colorpicker.tsx +824 -0
  603. package/source/react/columnpanel/columnpanel.jsx +276 -0
  604. package/source/react/columnpanel/columnpanel.tsx +294 -0
  605. package/source/react/combobox/combobox.jsx +1212 -0
  606. package/source/react/combobox/combobox.tsx +1198 -0
  607. package/source/react/combobox/listitem.jsx +279 -0
  608. package/source/react/combobox/listitem.tsx +305 -0
  609. package/source/react/combobox/listitemsgroup.jsx +159 -0
  610. package/source/react/combobox/listitemsgroup.tsx +185 -0
  611. package/source/react/countryinput/countryinput.jsx +409 -0
  612. package/source/react/countryinput/countryinput.tsx +423 -0
  613. package/source/react/customizationdialog/customizationdialog.jsx +425 -0
  614. package/source/react/customizationdialog/customizationdialog.tsx +435 -0
  615. package/source/react/dateinput/dateinput.jsx +513 -0
  616. package/source/react/dateinput/dateinput.tsx +535 -0
  617. package/source/react/daterangeinput/daterangeinput.jsx +516 -0
  618. package/source/react/daterangeinput/daterangeinput.tsx +538 -0
  619. package/source/react/datetimepicker/datetimepicker.jsx +967 -0
  620. package/source/react/datetimepicker/datetimepicker.tsx +973 -0
  621. package/source/react/dialogwindow/dialogwindow.jsx +1391 -0
  622. package/source/react/dialogwindow/dialogwindow.tsx +1349 -0
  623. package/source/react/dockinglayout/dockinglayout.jsx +923 -0
  624. package/source/react/dockinglayout/dockinglayout.tsx +925 -0
  625. package/source/react/dropdownbutton/dropdownbutton.jsx +665 -0
  626. package/source/react/dropdownbutton/dropdownbutton.tsx +659 -0
  627. package/source/react/dropdownlist/dropdownlist.jsx +1148 -0
  628. package/source/react/dropdownlist/dropdownlist.tsx +1130 -0
  629. package/source/react/dropdownlist/listitem.jsx +279 -0
  630. package/source/react/dropdownlist/listitem.tsx +305 -0
  631. package/source/react/dropdownlist/listitemsgroup.jsx +159 -0
  632. package/source/react/dropdownlist/listitemsgroup.tsx +185 -0
  633. package/source/react/editor/editor.jsx +1373 -0
  634. package/source/react/editor/editor.tsx +1287 -0
  635. package/source/react/element/element.jsx +392 -0
  636. package/source/react/element/element.tsx +410 -0
  637. package/source/react/fileupload/fileupload.jsx +643 -0
  638. package/source/react/fileupload/fileupload.tsx +641 -0
  639. package/source/react/filterbuilder/filterbuilder.jsx +608 -0
  640. package/source/react/filterbuilder/filterbuilder.tsx +594 -0
  641. package/source/react/filterpanel/filterpanel.jsx +433 -0
  642. package/source/react/filterpanel/filterpanel.tsx +447 -0
  643. package/source/react/form/form.jsx +383 -0
  644. package/source/react/form/form.tsx +413 -0
  645. package/source/react/form/formcontrol.jsx +495 -0
  646. package/source/react/form/formcontrol.tsx +521 -0
  647. package/source/react/form/formgroup.jsx +310 -0
  648. package/source/react/form/formgroup.tsx +336 -0
  649. package/source/react/ganttchart/ganttchart.jsx +2202 -0
  650. package/source/react/ganttchart/ganttchart.tsx +2116 -0
  651. package/source/react/gauge/gauge.jsx +755 -0
  652. package/source/react/gauge/gauge.tsx +777 -0
  653. package/source/react/grid/grid.jsx +2906 -0
  654. package/source/react/grid/grid.tsx +2782 -0
  655. package/source/react/grouppanel/grouppanel.jsx +313 -0
  656. package/source/react/grouppanel/grouppanel.tsx +323 -0
  657. package/source/react/input/input.jsx +626 -0
  658. package/source/react/input/input.tsx +632 -0
  659. package/source/react/kanban/kanban.jsx +1824 -0
  660. package/source/react/kanban/kanban.tsx +1736 -0
  661. package/source/react/layout/layout.jsx +449 -0
  662. package/source/react/layout/layout.tsx +451 -0
  663. package/source/react/layout/layoutgroup.jsx +233 -0
  664. package/source/react/layout/layoutgroup.tsx +259 -0
  665. package/source/react/layout/layoutitem.jsx +219 -0
  666. package/source/react/layout/layoutitem.tsx +245 -0
  667. package/source/react/layout/tablayoutgroup.jsx +243 -0
  668. package/source/react/layout/tablayoutgroup.tsx +269 -0
  669. package/source/react/layout/tablayoutitem.jsx +231 -0
  670. package/source/react/layout/tablayoutitem.tsx +257 -0
  671. package/source/react/led/led.jsx +412 -0
  672. package/source/react/led/led.tsx +434 -0
  673. package/source/react/listbox/listbox.jsx +1044 -0
  674. package/source/react/listbox/listbox.tsx +1030 -0
  675. package/source/react/listbox/listitem.jsx +279 -0
  676. package/source/react/listbox/listitem.tsx +305 -0
  677. package/source/react/listbox/listitemsgroup.jsx +159 -0
  678. package/source/react/listbox/listitemsgroup.tsx +185 -0
  679. package/source/react/listmenu/listmenu.jsx +740 -0
  680. package/source/react/listmenu/listmenu.tsx +746 -0
  681. package/source/react/listmenu/menuitem.jsx +231 -0
  682. package/source/react/listmenu/menuitem.tsx +257 -0
  683. package/source/react/listmenu/menuitemsgroup.jsx +267 -0
  684. package/source/react/listmenu/menuitemsgroup.tsx +293 -0
  685. package/source/react/map/map.jsx +233 -0
  686. package/source/react/map/map.tsx +259 -0
  687. package/source/react/maskedtextbox/maskedtextbox.jsx +617 -0
  688. package/source/react/maskedtextbox/maskedtextbox.tsx +631 -0
  689. package/source/react/menu/menu.jsx +817 -0
  690. package/source/react/menu/menu.tsx +807 -0
  691. package/source/react/menu/menuitem.jsx +231 -0
  692. package/source/react/menu/menuitem.tsx +257 -0
  693. package/source/react/menu/menuitemsgroup.jsx +267 -0
  694. package/source/react/menu/menuitemsgroup.tsx +293 -0
  695. package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.jsx +361 -0
  696. package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.tsx +371 -0
  697. package/source/react/multicomboinput/multicomboinput.jsx +626 -0
  698. package/source/react/multicomboinput/multicomboinput.tsx +648 -0
  699. package/source/react/multiinput/multiinput.jsx +566 -0
  700. package/source/react/multiinput/multiinput.tsx +588 -0
  701. package/source/react/multilinetextbox/listitem.jsx +279 -0
  702. package/source/react/multilinetextbox/listitem.tsx +305 -0
  703. package/source/react/multilinetextbox/listitemsgroup.jsx +159 -0
  704. package/source/react/multilinetextbox/listitemsgroup.tsx +185 -0
  705. package/source/react/multilinetextbox/multilinetextbox.jsx +638 -0
  706. package/source/react/multilinetextbox/multilinetextbox.tsx +664 -0
  707. package/source/react/multilinewindow/multilinewindow.jsx +1391 -0
  708. package/source/react/multilinewindow/multilinewindow.tsx +1349 -0
  709. package/source/react/multisplitbutton/listitem.jsx +279 -0
  710. package/source/react/multisplitbutton/listitem.tsx +305 -0
  711. package/source/react/multisplitbutton/listitemsgroup.jsx +159 -0
  712. package/source/react/multisplitbutton/listitemsgroup.tsx +185 -0
  713. package/source/react/multisplitbutton/multisplitbutton.jsx +751 -0
  714. package/source/react/multisplitbutton/multisplitbutton.tsx +745 -0
  715. package/source/react/numberinput/numberinput.jsx +413 -0
  716. package/source/react/numberinput/numberinput.tsx +435 -0
  717. package/source/react/numerictextbox/numerictextbox.jsx +721 -0
  718. package/source/react/numerictextbox/numerictextbox.tsx +719 -0
  719. package/source/react/pager/pager.jsx +524 -0
  720. package/source/react/pager/pager.tsx +542 -0
  721. package/source/react/passwordinput/passwordinput.jsx +317 -0
  722. package/source/react/passwordinput/passwordinput.tsx +335 -0
  723. package/source/react/passwordtextbox/passwordtextbox.jsx +523 -0
  724. package/source/react/passwordtextbox/passwordtextbox.tsx +541 -0
  725. package/source/react/path/path.jsx +629 -0
  726. package/source/react/path/path.tsx +623 -0
  727. package/source/react/phoneinput/phoneinput.jsx +481 -0
  728. package/source/react/phoneinput/phoneinput.tsx +495 -0
  729. package/source/react/pivottable/pivottable.jsx +990 -0
  730. package/source/react/pivottable/pivottable.tsx +980 -0
  731. package/source/react/progressbar/circularprogressbar.jsx +337 -0
  732. package/source/react/progressbar/circularprogressbar.tsx +359 -0
  733. package/source/react/progressbar/progressbar.jsx +351 -0
  734. package/source/react/progressbar/progressbar.tsx +375 -0
  735. package/source/react/progresswindow/progresswindow.jsx +1391 -0
  736. package/source/react/progresswindow/progresswindow.tsx +1349 -0
  737. package/source/react/promptwindow/promptwindow.jsx +1391 -0
  738. package/source/react/promptwindow/promptwindow.tsx +1349 -0
  739. package/source/react/qrcode/qrcode.jsx +396 -0
  740. package/source/react/qrcode/qrcode.tsx +418 -0
  741. package/source/react/querybuilder/querybuilder.jsx +589 -0
  742. package/source/react/querybuilder/querybuilder.tsx +587 -0
  743. package/source/react/radiobutton/radiobutton.jsx +373 -0
  744. package/source/react/radiobutton/radiobutton.tsx +387 -0
  745. package/source/react/rating/rating.jsx +315 -0
  746. package/source/react/rating/rating.tsx +337 -0
  747. package/source/react/scheduler/scheduler.jsx +2452 -0
  748. package/source/react/scheduler/scheduler.tsx +2336 -0
  749. package/source/react/scrollbar/scrollbar.jsx +380 -0
  750. package/source/react/scrollbar/scrollbar.tsx +402 -0
  751. package/source/react/slider/slider.jsx +731 -0
  752. package/source/react/slider/slider.tsx +753 -0
  753. package/source/react/sortable/sortable.jsx +319 -0
  754. package/source/react/sortable/sortable.tsx +341 -0
  755. package/source/react/sortpanel/sortpanel.jsx +273 -0
  756. package/source/react/sortpanel/sortpanel.tsx +291 -0
  757. package/source/react/splitter/splitter.jsx +613 -0
  758. package/source/react/splitter/splitter.tsx +627 -0
  759. package/source/react/splitter/splitterbar.jsx +205 -0
  760. package/source/react/splitter/splitterbar.tsx +231 -0
  761. package/source/react/splitter/splitteritem.jsx +288 -0
  762. package/source/react/splitter/splitteritem.tsx +314 -0
  763. package/source/react/switchbutton/switchbutton.jsx +421 -0
  764. package/source/react/switchbutton/switchbutton.tsx +435 -0
  765. package/source/react/table/table.jsx +1628 -0
  766. package/source/react/table/table.tsx +1590 -0
  767. package/source/react/tabs/tabitem.jsx +219 -0
  768. package/source/react/tabs/tabitem.tsx +245 -0
  769. package/source/react/tabs/tabitemsgroup.jsx +171 -0
  770. package/source/react/tabs/tabitemsgroup.tsx +197 -0
  771. package/source/react/tabs/tabs.jsx +720 -0
  772. package/source/react/tabs/tabs.tsx +722 -0
  773. package/source/react/tabswindow/tabswindow.jsx +1391 -0
  774. package/source/react/tabswindow/tabswindow.tsx +1349 -0
  775. package/source/react/tank/tank.jsx +680 -0
  776. package/source/react/tank/tank.tsx +702 -0
  777. package/source/react/textarea/textarea.jsx +541 -0
  778. package/source/react/textarea/textarea.tsx +559 -0
  779. package/source/react/textbox/listitem.jsx +279 -0
  780. package/source/react/textbox/listitem.tsx +305 -0
  781. package/source/react/textbox/listitemsgroup.jsx +159 -0
  782. package/source/react/textbox/listitemsgroup.tsx +185 -0
  783. package/source/react/textbox/textbox.jsx +842 -0
  784. package/source/react/textbox/textbox.tsx +864 -0
  785. package/source/react/threedchart/threedchart.jsx +1124 -0
  786. package/source/react/threedchart/threedchart.tsx +1106 -0
  787. package/source/react/timeinput/timeinput.jsx +463 -0
  788. package/source/react/timeinput/timeinput.tsx +485 -0
  789. package/source/react/timepicker/timepicker.jsx +406 -0
  790. package/source/react/timepicker/timepicker.tsx +428 -0
  791. package/source/react/toast/toast.jsx +510 -0
  792. package/source/react/toast/toast.tsx +508 -0
  793. package/source/react/tooltip/tooltip.jsx +453 -0
  794. package/source/react/tooltip/tooltip.tsx +463 -0
  795. package/source/react/tree/tree.jsx +1176 -0
  796. package/source/react/tree/tree.tsx +1158 -0
  797. package/source/react/tree/treeitem.jsx +243 -0
  798. package/source/react/tree/treeitem.tsx +269 -0
  799. package/source/react/tree/treeitemsgroup.jsx +243 -0
  800. package/source/react/tree/treeitemsgroup.tsx +269 -0
  801. package/source/react/validator/validator.jsx +202 -0
  802. package/source/react/validator/validator.tsx +228 -0
  803. package/source/react/waitwindow/waitwindow.jsx +1391 -0
  804. package/source/react/waitwindow/waitwindow.tsx +1349 -0
  805. package/source/react/window/window.jsx +1375 -0
  806. package/source/react/window/window.tsx +1349 -0
  807. package/source/smart.3dchart.js +6 -0
  808. package/source/smart.accordion.js +6 -0
  809. package/source/smart.ajax.js +5 -0
  810. package/source/smart.array.js +6 -0
  811. package/source/smart.barcode.js +6 -0
  812. package/source/smart.bootstrap.js +6 -0
  813. package/source/smart.breadcrumb.js +6 -0
  814. package/source/smart.button.js +6 -0
  815. package/source/smart.buttongroup.js +6 -0
  816. package/source/smart.calendar.js +6 -0
  817. package/source/smart.card.js +6 -0
  818. package/source/smart.cardview.js +6 -0
  819. package/source/smart.carousel.js +6 -0
  820. package/source/smart.chart.annotations.js +6 -0
  821. package/source/smart.chart.api.js +6 -0
  822. package/source/smart.chart.core.js +6 -0
  823. package/source/smart.chart.js +6 -0
  824. package/source/smart.chart.rangeselector.js +6 -0
  825. package/source/smart.chart.waterfall.js +6 -0
  826. package/source/smart.checkbox.js +6 -0
  827. package/source/smart.checkinput.js +6 -0
  828. package/source/smart.chip.js +6 -0
  829. package/source/smart.colorinput.js +6 -0
  830. package/source/smart.colorpanel.js +6 -0
  831. package/source/smart.colorpicker.js +6 -0
  832. package/source/smart.combobox.js +6 -0
  833. package/source/smart.complex.js +6 -0
  834. package/source/smart.core.js +6 -0
  835. package/source/smart.countryinput.js +6 -0
  836. package/source/smart.data.js +6 -0
  837. package/source/smart.date.js +6 -0
  838. package/source/smart.dateformatpanel.js +6 -0
  839. package/source/smart.dateinput.js +6 -0
  840. package/source/smart.daterangeinput.js +6 -0
  841. package/source/smart.datetimepicker.js +6 -0
  842. package/source/smart.dockinglayout.js +6 -0
  843. package/source/smart.draw.js +6 -0
  844. package/source/smart.dropdownbutton.js +6 -0
  845. package/source/smart.dropdownlist.js +6 -0
  846. package/source/smart.editor.js +6 -0
  847. package/source/smart.element.js +6 -0
  848. package/source/smart.elements.js +3 -3
  849. package/source/smart.export.js +6 -0
  850. package/source/smart.fileupload.js +6 -0
  851. package/source/smart.filter.js +6 -0
  852. package/source/smart.filterbuilder.js +6 -0
  853. package/source/smart.filterpanel.js +6 -0
  854. package/source/smart.form.js +6 -0
  855. package/source/smart.format.js +6 -0
  856. package/source/smart.formulaparser.js +6 -0
  857. package/source/smart.ganttchart.js +6 -0
  858. package/source/smart.gauge.js +6 -0
  859. package/source/smart.grid.cell.js +6 -0
  860. package/source/smart.grid.chart.js +6 -0
  861. package/source/smart.grid.column.js +6 -0
  862. package/source/smart.grid.core.js +6 -0
  863. package/source/smart.grid.dialog.js +6 -0
  864. package/source/smart.grid.edit.js +6 -0
  865. package/source/smart.grid.export.js +6 -0
  866. package/source/smart.grid.filter.js +6 -0
  867. package/source/smart.grid.group.js +6 -0
  868. package/source/smart.grid.js +6 -0
  869. package/source/smart.grid.menu.js +6 -0
  870. package/source/smart.grid.pager.js +6 -0
  871. package/source/smart.grid.reorder.js +6 -0
  872. package/source/smart.grid.resize.js +6 -0
  873. package/source/smart.grid.row.js +6 -0
  874. package/source/smart.grid.select.js +6 -0
  875. package/source/smart.grid.sort.js +6 -0
  876. package/source/smart.grid.toolbar.js +6 -0
  877. package/source/smart.grid.tree.js +6 -0
  878. package/source/smart.grid.view.js +6 -0
  879. package/source/smart.gridpanel.js +6 -0
  880. package/source/smart.input.js +6 -0
  881. package/source/smart.kanban.js +6 -0
  882. package/source/smart.layout.js +6 -0
  883. package/source/smart.led.js +6 -0
  884. package/source/smart.listbox.js +6 -0
  885. package/source/smart.listmenu.js +6 -0
  886. package/source/smart.map.js +6 -0
  887. package/source/smart.maskedtextbox.js +6 -0
  888. package/source/smart.math.js +6 -0
  889. package/source/smart.menu.js +6 -0
  890. package/source/smart.multicomboinput.js +6 -0
  891. package/source/smart.multiinput.js +6 -0
  892. package/source/smart.multilinetextbox.js +6 -0
  893. package/source/smart.multisplitbutton.js +6 -0
  894. package/source/smart.numberformatpanel.js +6 -0
  895. package/source/smart.numberinput.js +6 -0
  896. package/source/smart.numeric.js +6 -0
  897. package/source/smart.numerictextbox.js +6 -0
  898. package/source/smart.pager.js +6 -0
  899. package/source/smart.passwordinput.js +6 -0
  900. package/source/smart.passwordtextbox.js +6 -0
  901. package/source/smart.path.js +6 -0
  902. package/source/smart.phoneinput.js +6 -0
  903. package/source/smart.pivottable.js +6 -0
  904. package/source/smart.powerbutton.js +6 -0
  905. package/source/smart.progressbar.js +6 -0
  906. package/source/smart.qrcode.js +6 -0
  907. package/source/smart.radiobutton.js +6 -0
  908. package/source/smart.rating.js +6 -0
  909. package/source/smart.router.js +6 -0
  910. package/source/smart.scheduler.js +6 -0
  911. package/source/smart.scrollbar.js +6 -0
  912. package/source/smart.slider.js +6 -0
  913. package/source/smart.sortable.js +6 -0
  914. package/source/smart.splitter.js +6 -0
  915. package/source/smart.switchbutton.js +6 -0
  916. package/source/smart.table.js +6 -0
  917. package/source/smart.tabs.js +6 -0
  918. package/source/smart.tank.js +6 -0
  919. package/source/smart.textarea.js +6 -0
  920. package/source/smart.textbox.js +6 -0
  921. package/source/smart.tickintervalhandler.js +6 -0
  922. package/source/smart.timeinput.js +6 -0
  923. package/source/smart.timepicker.js +6 -0
  924. package/source/smart.toast.js +6 -0
  925. package/source/smart.tooltip.js +6 -0
  926. package/source/smart.tree.js +6 -0
  927. package/source/smart.validationpanel.js +6 -0
  928. package/source/smart.validator.js +6 -0
  929. package/source/smart.window.js +6 -0
@@ -0,0 +1,2906 @@
1
+ import React from "react";
2
+ /**
3
+ Data Grid UI Component that covers everything from paging, sorting, grouping, filtering, and editing to row and column virtualization, right-to-left layout, export to Excel and PDF and Accessibility.
4
+ */
5
+ export class Grid extends React.Component {
6
+ // Gets the id of the React component.
7
+ get id() {
8
+ if (!this._id) {
9
+ this._id = 'Grid' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
10
+ }
11
+
12
+ return this._id;
13
+ }
14
+ /** An object containing settings related to the grid's appearance.
15
+ * Property type: GridAppearance
16
+ */
17
+ get appearance() {
18
+ return this.nativeElement ? this.nativeElement.appearance : undefined;
19
+ }
20
+ set appearance(value) {
21
+ if (this.nativeElement) {
22
+ this.nativeElement.appearance = value;
23
+ }
24
+ }
25
+
26
+ /** An object containing settings related to the grid's behavior.
27
+ * Property type: GridBehavior
28
+ */
29
+ get behavior() {
30
+ return this.nativeElement ? this.nativeElement.behavior : undefined;
31
+ }
32
+ set behavior(value) {
33
+ if (this.nativeElement) {
34
+ this.nativeElement.behavior = value;
35
+ }
36
+ }
37
+
38
+ /** An object containing settings related to the grid's layout.
39
+ * Property type: GridLayout
40
+ */
41
+ get layout() {
42
+ return this.nativeElement ? this.nativeElement.layout : undefined;
43
+ }
44
+ set layout(value) {
45
+ if (this.nativeElement) {
46
+ this.nativeElement.layout = value;
47
+ }
48
+ }
49
+
50
+ /** Sets or gets the language. Used in conjunction with the property messages.
51
+ * Property type: string
52
+ */
53
+ get locale() {
54
+ return this.nativeElement ? this.nativeElement.locale : undefined;
55
+ }
56
+ set locale(value) {
57
+ if (this.nativeElement) {
58
+ this.nativeElement.locale = value;
59
+ }
60
+ }
61
+
62
+ /** The clipboard property is used to enable/disable clipboard operations with Ctrl+C, Ctrl+X and Ctrl+V keyboard navigations..
63
+ * Property type: GridClipboard
64
+ */
65
+ get clipboard() {
66
+ return this.nativeElement ? this.nativeElement.clipboard : undefined;
67
+ }
68
+ set clipboard(value) {
69
+ if (this.nativeElement) {
70
+ this.nativeElement.clipboard = value;
71
+ }
72
+ }
73
+
74
+ /** The columns property is used to describe all columns displayed in the grid.
75
+ * Property type: {label: string, dataField: string}[] | string[] | number | GridColumn[]
76
+ */
77
+ get columns() {
78
+ return this.nativeElement ? this.nativeElement.columns : undefined;
79
+ }
80
+ set columns(value) {
81
+ if (this.nativeElement) {
82
+ this.nativeElement.columns = value;
83
+ }
84
+ }
85
+
86
+ /** Context Menu is the drop-down menu displayed after right-clicking a Grid row. It allows you to delete row, edit cell or row depending on the edit mode. The 'contextMenuItemCustom' dataSource option allows you to add custom menu item to the context menu. You can replace the context menu by using the 'selector' property and setting it to ID of a Smart.Menu component.
87
+ * Property type: GridContextMenu
88
+ */
89
+ get contextMenu() {
90
+ return this.nativeElement ? this.nativeElement.contextMenu : undefined;
91
+ }
92
+ set contextMenu(value) {
93
+ if (this.nativeElement) {
94
+ this.nativeElement.contextMenu = value;
95
+ }
96
+ }
97
+
98
+ /** 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.
99
+ * Property type: GridColumnMenu
100
+ */
101
+ get columnMenu() {
102
+ return this.nativeElement ? this.nativeElement.columnMenu : undefined;
103
+ }
104
+ set columnMenu(value) {
105
+ if (this.nativeElement) {
106
+ this.nativeElement.columnMenu = value;
107
+ }
108
+ }
109
+
110
+ /** Describes the settings of the column groups.
111
+ * Property type: GridColumnGroup[]
112
+ */
113
+ get columnGroups() {
114
+ return this.nativeElement ? this.nativeElement.columnGroups : undefined;
115
+ }
116
+ set columnGroups(value) {
117
+ if (this.nativeElement) {
118
+ this.nativeElement.columnGroups = value;
119
+ }
120
+ }
121
+
122
+ /** Sets or gets details about conditional formatting to be applied to the Grid's cells.
123
+ * Property type: GridConditionalFormatting[]
124
+ */
125
+ get conditionalFormatting() {
126
+ return this.nativeElement ? this.nativeElement.conditionalFormatting : undefined;
127
+ }
128
+ set conditionalFormatting(value) {
129
+ if (this.nativeElement) {
130
+ this.nativeElement.conditionalFormatting = value;
131
+ }
132
+ }
133
+
134
+ /** Sets the Grid Charting Data Visualization.
135
+ * Property type: GridCharting
136
+ */
137
+ get charting() {
138
+ return this.nativeElement ? this.nativeElement.charting : undefined;
139
+ }
140
+ set charting(value) {
141
+ if (this.nativeElement) {
142
+ this.nativeElement.charting = value;
143
+ }
144
+ }
145
+
146
+ /** Sets the TreeGrid checkboxes.
147
+ * Property type: GridCheckBoxes
148
+ */
149
+ get checkBoxes() {
150
+ return this.nativeElement ? this.nativeElement.checkBoxes : undefined;
151
+ }
152
+ set checkBoxes(value) {
153
+ if (this.nativeElement) {
154
+ this.nativeElement.checkBoxes = value;
155
+ }
156
+ }
157
+
158
+ /** Sets the Grid Data Export options.
159
+ * Property type: GridDataExport
160
+ */
161
+ get dataExport() {
162
+ return this.nativeElement ? this.nativeElement.dataExport : undefined;
163
+ }
164
+ set dataExport(value) {
165
+ if (this.nativeElement) {
166
+ this.nativeElement.dataExport = value;
167
+ }
168
+ }
169
+
170
+ /** Sets the grid's data source. The value of dataSource can be an instance of JQX.DataAdapter or an Array.
171
+ * Property type: any
172
+ */
173
+ get dataSource() {
174
+ return this.nativeElement ? this.nativeElement.dataSource : undefined;
175
+ }
176
+ set dataSource(value) {
177
+ if (this.nativeElement) {
178
+ this.nativeElement.dataSource = value;
179
+ }
180
+ }
181
+
182
+ /** Sets the grid's data source settings when the dataSource property is set to an Array or URL.
183
+ * Property type: GridDataSourceSettings
184
+ */
185
+ get dataSourceSettings() {
186
+ return this.nativeElement ? this.nativeElement.dataSourceSettings : undefined;
187
+ }
188
+ set dataSourceSettings(value) {
189
+ if (this.nativeElement) {
190
+ this.nativeElement.dataSourceSettings = value;
191
+ }
192
+ }
193
+
194
+ /** Describes the grid's editing settings.
195
+ * Property type: GridEditing
196
+ */
197
+ get editing() {
198
+ return this.nativeElement ? this.nativeElement.editing : undefined;
199
+ }
200
+ set editing(value) {
201
+ if (this.nativeElement) {
202
+ this.nativeElement.editing = value;
203
+ }
204
+ }
205
+
206
+ /** Describes the grid's filtering settings.
207
+ * Property type: GridFiltering
208
+ */
209
+ get filtering() {
210
+ return this.nativeElement ? this.nativeElement.filtering : undefined;
211
+ }
212
+ set filtering(value) {
213
+ if (this.nativeElement) {
214
+ this.nativeElement.filtering = value;
215
+ }
216
+ }
217
+
218
+ /** Describes the grid's grouping settings.
219
+ * Property type: GridGrouping
220
+ */
221
+ get grouping() {
222
+ return this.nativeElement ? this.nativeElement.grouping : undefined;
223
+ }
224
+ set grouping(value) {
225
+ if (this.nativeElement) {
226
+ this.nativeElement.grouping = value;
227
+ }
228
+ }
229
+
230
+ /** Sets the messages values.
231
+ * Property type: any
232
+ */
233
+ get messages() {
234
+ return this.nativeElement ? this.nativeElement.messages : undefined;
235
+ }
236
+ set messages(value) {
237
+ if (this.nativeElement) {
238
+ this.nativeElement.messages = value;
239
+ }
240
+ }
241
+
242
+ /** Callback function(chart: JQX.Chart) called when the chart has been initialized. You can use this function to customize the Chart element settings.
243
+ * Property type: {(cell: GridCell): void}
244
+ */
245
+ get onCellValue() {
246
+ return this.nativeElement ? this.nativeElement.onCellValue : undefined;
247
+ }
248
+ set onCellValue(value) {
249
+ if (this.nativeElement) {
250
+ this.nativeElement.onCellValue = value;
251
+ }
252
+ }
253
+
254
+ /** Callback function() called when the grid has been rendered.
255
+ * Property type: {(cells: GridCell[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}
256
+ */
257
+ get onCellUpdate() {
258
+ return this.nativeElement ? this.nativeElement.onCellUpdate : undefined;
259
+ }
260
+ set onCellUpdate(value) {
261
+ if (this.nativeElement) {
262
+ this.nativeElement.onCellUpdate = value;
263
+ }
264
+ }
265
+
266
+ /** Callback function() called when the grid has been rendered for first time and bindings are completed. The component is ready.
267
+ * Property type: {(cell: GridCell): void}
268
+ */
269
+ get onCellRender() {
270
+ return this.nativeElement ? this.nativeElement.onCellRender : undefined;
271
+ }
272
+ set onCellRender(value) {
273
+ if (this.nativeElement) {
274
+ this.nativeElement.onCellRender = value;
275
+ }
276
+ }
277
+
278
+ /** Sets or gets the rows CSS class rules. Different CSS class names are conditionally applied. Example: rowCSSRules: { 'cell-class-1': settings => settings.data.quantity === 5, 'cell-class-2': settings => settings.data.quantity < 5, 'cell-class-3': settings => settings.data.quantity > 5 }. The settings object contains the following properties: index, data, row, api.
279
+ * Property type: {(): void}
280
+ */
281
+ get onBeforeInit() {
282
+ return this.nativeElement ? this.nativeElement.onBeforeInit : undefined;
283
+ }
284
+ set onBeforeInit(value) {
285
+ if (this.nativeElement) {
286
+ this.nativeElement.onBeforeInit = value;
287
+ }
288
+ }
289
+
290
+ /** Sets or gets the id of the current user. Has to correspond to the id of an item from the users property/array. Depending on the current user, different privileges are enabled. If no current user is set, privileges depend on the element's properties.
291
+ * Property type: {(): void}
292
+ */
293
+ get onInit() {
294
+ return this.nativeElement ? this.nativeElement.onInit : undefined;
295
+ }
296
+ set onInit(value) {
297
+ if (this.nativeElement) {
298
+ this.nativeElement.onInit = value;
299
+ }
300
+ }
301
+
302
+ /** Sets the grid users. Expects an array with 'id', 'name' and optionally 'color' and 'image' properties.
303
+ * Property type: {(): void}
304
+ */
305
+ get onAfterInit() {
306
+ return this.nativeElement ? this.nativeElement.onAfterInit : undefined;
307
+ }
308
+ set onAfterInit(value) {
309
+ if (this.nativeElement) {
310
+ this.nativeElement.onAfterInit = value;
311
+ }
312
+ }
313
+
314
+ /** Sets the grid's image and filter upload settings for the image and attachment columns.
315
+ * Property type: any
316
+ */
317
+ get onChartInit() {
318
+ return this.nativeElement ? this.nativeElement.onChartInit : undefined;
319
+ }
320
+ set onChartInit(value) {
321
+ if (this.nativeElement) {
322
+ this.nativeElement.onChartInit = value;
323
+ }
324
+ }
325
+
326
+ /** Describes the paging settings.
327
+ * Property type: any
328
+ */
329
+ get onRender() {
330
+ return this.nativeElement ? this.nativeElement.onRender : undefined;
331
+ }
332
+ set onRender(value) {
333
+ if (this.nativeElement) {
334
+ this.nativeElement.onRender = value;
335
+ }
336
+ }
337
+
338
+ /** Describes the pager settings.
339
+ * Property type: any
340
+ */
341
+ get onLoad() {
342
+ return this.nativeElement ? this.nativeElement.onLoad : undefined;
343
+ }
344
+ set onLoad(value) {
345
+ if (this.nativeElement) {
346
+ this.nativeElement.onLoad = value;
347
+ }
348
+ }
349
+
350
+ /** Sets the row details.
351
+ * Property type: {(event: KeyboardEvent): void}
352
+ */
353
+ get onKey() {
354
+ return this.nativeElement ? this.nativeElement.onKey : undefined;
355
+ }
356
+ set onKey(value) {
357
+ if (this.nativeElement) {
358
+ this.nativeElement.onKey = value;
359
+ }
360
+ }
361
+
362
+ /** Sets the scroll mode settings.
363
+ * Property type: {(index: number, row: GridRow): void}
364
+ */
365
+ get onRowInit() {
366
+ return this.nativeElement ? this.nativeElement.onRowInit : undefined;
367
+ }
368
+ set onRowInit(value) {
369
+ if (this.nativeElement) {
370
+ this.nativeElement.onRowInit = value;
371
+ }
372
+ }
373
+
374
+ /** Describes the column header settings.
375
+ * Property type: {(index: number, row: GridRow, details: HTMLElement): void}
376
+ */
377
+ get onRowDetailInit() {
378
+ return this.nativeElement ? this.nativeElement.onRowDetailInit : undefined;
379
+ }
380
+ set onRowDetailInit(value) {
381
+ if (this.nativeElement) {
382
+ this.nativeElement.onRowDetailInit = value;
383
+ }
384
+ }
385
+
386
+ /** Describes the summary row settings.
387
+ * Property type: {(index: number, row: GridRow, details: HTMLElement): void}
388
+ */
389
+ get onRowDetailUpdated() {
390
+ return this.nativeElement ? this.nativeElement.onRowDetailUpdated : undefined;
391
+ }
392
+ set onRowDetailUpdated(value) {
393
+ if (this.nativeElement) {
394
+ this.nativeElement.onRowDetailUpdated = value;
395
+ }
396
+ }
397
+
398
+ /** Sets the grid's state settings.
399
+ * Property type: {(index: number, row: GridRow, history: any[]): void}
400
+ */
401
+ get onRowHistory() {
402
+ return this.nativeElement ? this.nativeElement.onRowHistory : undefined;
403
+ }
404
+ set onRowHistory(value) {
405
+ if (this.nativeElement) {
406
+ this.nativeElement.onRowHistory = value;
407
+ }
408
+ }
409
+
410
+ /** Describes the settings for the group header.
411
+ * Property type: {(index: number, row: GridRow, history: any[]): void}
412
+ */
413
+ get onRowStyle() {
414
+ return this.nativeElement ? this.nativeElement.onRowStyle : undefined;
415
+ }
416
+ set onRowStyle(value) {
417
+ if (this.nativeElement) {
418
+ this.nativeElement.onRowStyle = value;
419
+ }
420
+ }
421
+
422
+ /** Describes the header settings of the grid.
423
+ * Property type: {(index: number[], row: GridRow[]): void}
424
+ */
425
+ get onRowInserted() {
426
+ return this.nativeElement ? this.nativeElement.onRowInserted : undefined;
427
+ }
428
+ set onRowInserted(value) {
429
+ if (this.nativeElement) {
430
+ this.nativeElement.onRowInserted = value;
431
+ }
432
+ }
433
+
434
+ /** Describes the footer settings of the grid.
435
+ * Property type: {(indexes: number[], rows: GridRow[]): void}
436
+ */
437
+ get onRowRemoved() {
438
+ return this.nativeElement ? this.nativeElement.onRowRemoved : undefined;
439
+ }
440
+ set onRowRemoved(value) {
441
+ if (this.nativeElement) {
442
+ this.nativeElement.onRowRemoved = value;
443
+ }
444
+ }
445
+
446
+ /** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
447
+ * Property type: {(index: number[], row: GridRow[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}
448
+ */
449
+ get onRowUpdate() {
450
+ return this.nativeElement ? this.nativeElement.onRowUpdate : undefined;
451
+ }
452
+ set onRowUpdate(value) {
453
+ if (this.nativeElement) {
454
+ this.nativeElement.onRowUpdate = value;
455
+ }
456
+ }
457
+
458
+ /** The rows property is used to describe all rows displayed in the grid.
459
+ * Property type: {(index: number[], row: GridRow[]): void}
460
+ */
461
+ get onRowUpdated() {
462
+ return this.nativeElement ? this.nativeElement.onRowUpdated : undefined;
463
+ }
464
+ set onRowUpdated(value) {
465
+ if (this.nativeElement) {
466
+ this.nativeElement.onRowUpdated = value;
467
+ }
468
+ }
469
+
470
+ /** Describes the selection settings.
471
+ * Property type: {(index: number, data: any, row: GridRow[]): void}
472
+ */
473
+ get onRowClass() {
474
+ return this.nativeElement ? this.nativeElement.onRowClass : undefined;
475
+ }
476
+ set onRowClass(value) {
477
+ if (this.nativeElement) {
478
+ this.nativeElement.onRowClass = value;
479
+ }
480
+ }
481
+
482
+ /** Describes sorting settings.
483
+ * Property type: {(index: number, dataField: string, cellValue: any, data: any, row: GridRow[]): void}
484
+ */
485
+ get onCellClass() {
486
+ return this.nativeElement ? this.nativeElement.onCellClass : undefined;
487
+ }
488
+ set onCellClass(value) {
489
+ if (this.nativeElement) {
490
+ this.nativeElement.onCellClass = value;
491
+ }
492
+ }
493
+
494
+ /** undefined
495
+ * Property type: {(index: number, column: GridColumn): void}
496
+ */
497
+ get onColumnInit() {
498
+ return this.nativeElement ? this.nativeElement.onColumnInit : undefined;
499
+ }
500
+ set onColumnInit(value) {
501
+ if (this.nativeElement) {
502
+ this.nativeElement.onColumnInit = value;
503
+ }
504
+ }
505
+
506
+ /** undefined
507
+ * Property type: {(index: number, column: GridColumn): void}
508
+ */
509
+ get onColumnInserted() {
510
+ return this.nativeElement ? this.nativeElement.onColumnInserted : undefined;
511
+ }
512
+ set onColumnInserted(value) {
513
+ if (this.nativeElement) {
514
+ this.nativeElement.onColumnInserted = value;
515
+ }
516
+ }
517
+
518
+ /** undefined
519
+ * Property type: {(index: number, column: GridColumn): void}
520
+ */
521
+ get onColumnRemoved() {
522
+ return this.nativeElement ? this.nativeElement.onColumnRemoved : undefined;
523
+ }
524
+ set onColumnRemoved(value) {
525
+ if (this.nativeElement) {
526
+ this.nativeElement.onColumnRemoved = value;
527
+ }
528
+ }
529
+
530
+ /** undefined
531
+ * Property type: {(index: number, column: GridColumn): void}
532
+ */
533
+ get onColumnUpdated() {
534
+ return this.nativeElement ? this.nativeElement.onColumnUpdated : undefined;
535
+ }
536
+ set onColumnUpdated(value) {
537
+ if (this.nativeElement) {
538
+ this.nativeElement.onColumnUpdated = value;
539
+ }
540
+ }
541
+
542
+ /** undefined
543
+ * Property type: {(dataField: string, cloneColumnDataField: string, index: number, duplicateCells: boolean): void}
544
+ */
545
+ get onColumnClone() {
546
+ return this.nativeElement ? this.nativeElement.onColumnClone : undefined;
547
+ }
548
+ set onColumnClone(value) {
549
+ if (this.nativeElement) {
550
+ this.nativeElement.onColumnClone = value;
551
+ }
552
+ }
553
+
554
+ /** undefined
555
+ * Property type: {(name: string, command: any, details: GridCell, event: Event | KeyboardEvent | PointerEvent, handled: boolean): void}
556
+ */
557
+ get onCommand() {
558
+ return this.nativeElement ? this.nativeElement.onCommand : undefined;
559
+ }
560
+ set onCommand(value) {
561
+ if (this.nativeElement) {
562
+ this.nativeElement.onCommand = value;
563
+ }
564
+ }
565
+
566
+ /** undefined
567
+ * Property type: any
568
+ */
569
+ get rowCSSRules() {
570
+ return this.nativeElement ? this.nativeElement.rowCSSRules : undefined;
571
+ }
572
+ set rowCSSRules(value) {
573
+ if (this.nativeElement) {
574
+ this.nativeElement.rowCSSRules = value;
575
+ }
576
+ }
577
+
578
+ /** undefined
579
+ * Property type: string | number
580
+ */
581
+ get currentUser() {
582
+ return this.nativeElement ? this.nativeElement.currentUser : undefined;
583
+ }
584
+ set currentUser(value) {
585
+ if (this.nativeElement) {
586
+ this.nativeElement.currentUser = value;
587
+ }
588
+ }
589
+
590
+ /** undefined
591
+ * Property type: any[]
592
+ */
593
+ get users() {
594
+ return this.nativeElement ? this.nativeElement.users : undefined;
595
+ }
596
+ set users(value) {
597
+ if (this.nativeElement) {
598
+ this.nativeElement.users = value;
599
+ }
600
+ }
601
+
602
+ /** undefined
603
+ * Property type: GridUploadSettings
604
+ */
605
+ get uploadSettings() {
606
+ return this.nativeElement ? this.nativeElement.uploadSettings : undefined;
607
+ }
608
+ set uploadSettings(value) {
609
+ if (this.nativeElement) {
610
+ this.nativeElement.uploadSettings = value;
611
+ }
612
+ }
613
+
614
+ /** undefined
615
+ * Property type: GridPaging
616
+ */
617
+ get paging() {
618
+ return this.nativeElement ? this.nativeElement.paging : undefined;
619
+ }
620
+ set paging(value) {
621
+ if (this.nativeElement) {
622
+ this.nativeElement.paging = value;
623
+ }
624
+ }
625
+
626
+ /** undefined
627
+ * Property type: GridPager
628
+ */
629
+ get pager() {
630
+ return this.nativeElement ? this.nativeElement.pager : undefined;
631
+ }
632
+ set pager(value) {
633
+ if (this.nativeElement) {
634
+ this.nativeElement.pager = value;
635
+ }
636
+ }
637
+
638
+ /** undefined
639
+ * Property type: GridRowDetail
640
+ */
641
+ get rowDetail() {
642
+ return this.nativeElement ? this.nativeElement.rowDetail : undefined;
643
+ }
644
+ set rowDetail(value) {
645
+ if (this.nativeElement) {
646
+ this.nativeElement.rowDetail = value;
647
+ }
648
+ }
649
+
650
+ /** undefined
651
+ * Property type: Scrolling | string
652
+ */
653
+ get scrolling() {
654
+ return this.nativeElement ? this.nativeElement.scrolling : undefined;
655
+ }
656
+ set scrolling(value) {
657
+ if (this.nativeElement) {
658
+ this.nativeElement.scrolling = value;
659
+ }
660
+ }
661
+
662
+ /** undefined
663
+ * Property type: GridColumnHeader
664
+ */
665
+ get columnHeader() {
666
+ return this.nativeElement ? this.nativeElement.columnHeader : undefined;
667
+ }
668
+ set columnHeader(value) {
669
+ if (this.nativeElement) {
670
+ this.nativeElement.columnHeader = value;
671
+ }
672
+ }
673
+
674
+ /** undefined
675
+ * Property type: GridSummaryRow
676
+ */
677
+ get summaryRow() {
678
+ return this.nativeElement ? this.nativeElement.summaryRow : undefined;
679
+ }
680
+ set summaryRow(value) {
681
+ if (this.nativeElement) {
682
+ this.nativeElement.summaryRow = value;
683
+ }
684
+ }
685
+
686
+ /** undefined
687
+ * Property type: GridStateSettings
688
+ */
689
+ get stateSettings() {
690
+ return this.nativeElement ? this.nativeElement.stateSettings : undefined;
691
+ }
692
+ set stateSettings(value) {
693
+ if (this.nativeElement) {
694
+ this.nativeElement.stateSettings = value;
695
+ }
696
+ }
697
+
698
+ /** undefined
699
+ * Property type: GridGroupHeader
700
+ */
701
+ get groupHeader() {
702
+ return this.nativeElement ? this.nativeElement.groupHeader : undefined;
703
+ }
704
+ set groupHeader(value) {
705
+ if (this.nativeElement) {
706
+ this.nativeElement.groupHeader = value;
707
+ }
708
+ }
709
+
710
+ /** undefined
711
+ * Property type: GridHeader
712
+ */
713
+ get header() {
714
+ return this.nativeElement ? this.nativeElement.header : undefined;
715
+ }
716
+ set header(value) {
717
+ if (this.nativeElement) {
718
+ this.nativeElement.header = value;
719
+ }
720
+ }
721
+
722
+ /** undefined
723
+ * Property type: GridFooter
724
+ */
725
+ get footer() {
726
+ return this.nativeElement ? this.nativeElement.footer : undefined;
727
+ }
728
+ set footer(value) {
729
+ if (this.nativeElement) {
730
+ this.nativeElement.footer = value;
731
+ }
732
+ }
733
+
734
+ /** undefined
735
+ * Property type: boolean
736
+ */
737
+ get rightToLeft() {
738
+ return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
739
+ }
740
+ set rightToLeft(value) {
741
+ if (this.nativeElement) {
742
+ this.nativeElement.rightToLeft = value;
743
+ }
744
+ }
745
+
746
+ /** undefined
747
+ * Property type: GridRow[]
748
+ */
749
+ get rows() {
750
+ return this.nativeElement ? this.nativeElement.rows : undefined;
751
+ }
752
+ set rows(value) {
753
+ if (this.nativeElement) {
754
+ this.nativeElement.rows = value;
755
+ }
756
+ }
757
+
758
+ /** undefined
759
+ * Property type: GridSelection
760
+ */
761
+ get selection() {
762
+ return this.nativeElement ? this.nativeElement.selection : undefined;
763
+ }
764
+ set selection(value) {
765
+ if (this.nativeElement) {
766
+ this.nativeElement.selection = value;
767
+ }
768
+ }
769
+
770
+ /** undefined
771
+ * Property type: GridSorting
772
+ */
773
+ get sorting() {
774
+ return this.nativeElement ? this.nativeElement.sorting : undefined;
775
+ }
776
+ set sorting(value) {
777
+ if (this.nativeElement) {
778
+ this.nativeElement.sorting = value;
779
+ }
780
+ }
781
+
782
+
783
+ // Gets the properties of the React component.
784
+ get properties() {
785
+ return ["appearance","behavior","layout","locale","clipboard","columns","contextMenu","columnMenu","columnGroups","conditionalFormatting","charting","checkBoxes","dataExport","dataSource","dataSourceSettings","editing","filtering","grouping","messages","onCellValue","onCellUpdate","onCellRender","onBeforeInit","onInit","onAfterInit","onChartInit","onRender","onLoad","onKey","onRowInit","onRowDetailInit","onRowDetailUpdated","onRowHistory","onRowStyle","onRowInserted","onRowRemoved","onRowUpdate","onRowUpdated","onRowClass","onCellClass","onColumnInit","onColumnInserted","onColumnRemoved","onColumnUpdated","onColumnClone","onCommand","rowCSSRules","currentUser","users","uploadSettings","paging","pager","rowDetail","scrolling","columnHeader","summaryRow","stateSettings","groupHeader","header","footer","rightToLeft","rows","selection","sorting"];
786
+ }
787
+ /** 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();.
788
+ * @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, column, cell, data, value)
789
+ * id - The edited row id.
790
+ * dataField - The edited column data field.
791
+ * row - The edited row.
792
+ * column - The edited column.
793
+ * cell - The edited cell.
794
+ * data - The edited row's data.
795
+ * value - The edited cell's value.
796
+ */
797
+ _onBeginEdit = null; get onBeginEdit() {
798
+ return this._onBeginEdit;
799
+ }
800
+ set onBeginEdit(value) {
801
+ this._onBeginEdit = value;
802
+ }
803
+ /** This event is triggered, when the Grid's header toolbar is displayed and the 'OK' button of a header dropdown is clicked. For example, when you open the columns customize panel, reorder columns and click the 'OK' button.
804
+ * @param event. The custom event. Custom event was created with: event.detail( type)
805
+ * type - The type of dropdown. Possible values: 'filter', 'sort', 'search', 'group', 'format', 'customize'
806
+ */
807
+ _onBatchChange = null; get onBatchChange() {
808
+ return this._onBatchChange;
809
+ }
810
+ set onBatchChange(value) {
811
+ this._onBatchChange = value;
812
+ }
813
+ /** This event is triggered, when the Grid's header toolbar is displayed and the 'Cancel' button of a header dropdown is clicked.
814
+ * @param event. The custom event. Custom event was created with: event.detail( type)
815
+ * type - The type of dropdown. Possible values: 'filter', 'sort', 'search', 'group', 'format', 'customize'
816
+ */
817
+ _onBatchCancel = null; get onBatchCancel() {
818
+ return this._onBatchCancel;
819
+ }
820
+ set onBatchCancel(value) {
821
+ this._onBatchCancel = value;
822
+ }
823
+ /** This event is triggered, when the selection is changed. When you select with a drag, the event is triggered when the drag starts and ends.
824
+ * @param event. The custom event. Custom event was created with: event.detail( started, finished, originalEvent)
825
+ * started - The flag is <em>true</em>, when the selection starts. The flag is <em>false</em>, when the selection ends and when the user changes the selection by dragging.
826
+ * finished - The flag is <em>true</em>, when the selection ends. The flag is <em>false</em>, when the selection starts and when the user changes the selection by dragging.
827
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
828
+ */
829
+ _onChange = null; get onChange() {
830
+ return this._onChange;
831
+ }
832
+ set onChange(value) {
833
+ this._onChange = value;
834
+ }
835
+ /** This event is triggered, when the user clicks on the header of a column.
836
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, originalEvent)
837
+ * column - The clicked column.
838
+ * dataField - The column's data field.
839
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
840
+ */
841
+ _onColumnClick = null; get onColumnClick() {
842
+ return this._onColumnClick;
843
+ }
844
+ set onColumnClick(value) {
845
+ this._onColumnClick = value;
846
+ }
847
+ /** This event is triggered, when the user double clicks on the header of a column.
848
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, originalEvent)
849
+ * column - The double-clicked column.
850
+ * dataField - The column's data field.
851
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
852
+ */
853
+ _onColumnDoubleClick = null; get onColumnDoubleClick() {
854
+ return this._onColumnDoubleClick;
855
+ }
856
+ set onColumnDoubleClick(value) {
857
+ this._onColumnDoubleClick = value;
858
+ }
859
+ /** This event is triggered, when the user resized a column.
860
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, oldWidth, width)
861
+ * column - The resized column.
862
+ * dataField - The column's data field.
863
+ * oldWidth - The old width of the column.
864
+ * width - The new width of the column.
865
+ */
866
+ _onColumnResize = null; get onColumnResize() {
867
+ return this._onColumnResize;
868
+ }
869
+ set onColumnResize(value) {
870
+ this._onColumnResize = value;
871
+ }
872
+ /** This event is triggered, when the user starts a column drag.
873
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, originalEvent)
874
+ * column - The column.
875
+ * dataField - The column's data field.
876
+ * index - The column's index
877
+ * originalEvent - The origianl Event object.
878
+ */
879
+ _onColumnDragStart = null; get onColumnDragStart() {
880
+ return this._onColumnDragStart;
881
+ }
882
+ set onColumnDragStart(value) {
883
+ this._onColumnDragStart = value;
884
+ }
885
+ /** This event is triggered, when the user drags a column.
886
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, data, originalEvent)
887
+ * column - The column.
888
+ * dataField - The column's data field.
889
+ * index - The column's index
890
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
891
+ * originalEvent - The origianl Event object.
892
+ */
893
+ _onColumnDragging = null; get onColumnDragging() {
894
+ return this._onColumnDragging;
895
+ }
896
+ set onColumnDragging(value) {
897
+ this._onColumnDragging = value;
898
+ }
899
+ /** This event is triggered, when the user drops a column.
900
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, newIndex, data, originalEvent)
901
+ * column - The column.
902
+ * dataField - The column's data field.
903
+ * index - The column's index
904
+ * newIndex - The column's new index
905
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
906
+ * originalEvent - The origianl Event object.
907
+ */
908
+ _onColumnDragEnd = null; get onColumnDragEnd() {
909
+ return this._onColumnDragEnd;
910
+ }
911
+ set onColumnDragEnd(value) {
912
+ this._onColumnDragEnd = value;
913
+ }
914
+ /** This event is triggered, when the user reorders a column.
915
+ * @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, newIndex, data, originalEvent)
916
+ * column - The column.
917
+ * dataField - The column's data field.
918
+ * index - The column's index
919
+ * newIndex - The column's new index
920
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
921
+ * originalEvent - The origianl Event object.
922
+ */
923
+ _onColumnReorder = null; get onColumnReorder() {
924
+ return this._onColumnReorder;
925
+ }
926
+ set onColumnReorder(value) {
927
+ this._onColumnReorder = value;
928
+ }
929
+ /** This event is triggered, when the user enters a comment in the row edit dialog.
930
+ * @param event. The custom event. Custom event was created with: event.detail( id, comment)
931
+ * id - The row's id.
932
+ * comment - The comment object. The comment object has 'text: string', 'id: string', 'userId: string | number', and 'time: date' fields. The 'text' is the comment's text. 'id' is the comment's unique id, 'userId' is the user's id who entered the comment and 'time' is a javascript date object.
933
+ */
934
+ _onCommentAdd = null; get onCommentAdd() {
935
+ return this._onCommentAdd;
936
+ }
937
+ set onCommentAdd(value) {
938
+ this._onCommentAdd = value;
939
+ }
940
+ /** This event is triggered, when the user removes a comment in the row edit dialog.
941
+ * @param event. The custom event. Custom event was created with: event.detail( id, comment)
942
+ * id - The row's id.
943
+ * comment - The comment object. The comment object has 'text: string', 'id: string', 'userId: string | number', and 'time: date' fields. The 'text' is the comment's text. 'id' is the comment's unique id, 'userId' is the user's id who entered the comment and 'time' is a javascript date object.
944
+ */
945
+ _onCommentRemove = null; get onCommentRemove() {
946
+ return this._onCommentRemove;
947
+ }
948
+ set onCommentRemove(value) {
949
+ this._onCommentRemove = value;
950
+ }
951
+ /** This event is triggered, when the user clicks on a context menu item.
952
+ * @param event. The custom event. Custom event was created with: event.detail( id, dataField, command)
953
+ * id - The row's id.
954
+ * dataField - The column's data field.
955
+ * command - Command function.
956
+ */
957
+ _onContextMenuItemClick = null; get onContextMenuItemClick() {
958
+ return this._onContextMenuItemClick;
959
+ }
960
+ set onContextMenuItemClick(value) {
961
+ this._onContextMenuItemClick = value;
962
+ }
963
+ /** This event is triggered, when the user starts a row drag.
964
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, index, originalEvent)
965
+ * row - The row.
966
+ * id - The row's id
967
+ * index - The row's index
968
+ * originalEvent - The origianl Event object.
969
+ */
970
+ _onRowDragStart = null; get onRowDragStart() {
971
+ return this._onRowDragStart;
972
+ }
973
+ set onRowDragStart(value) {
974
+ this._onRowDragStart = value;
975
+ }
976
+ /** This event is triggered, when the user drags a row.
977
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, index, data, originalEvent)
978
+ * row - The row.
979
+ * id - The row's id
980
+ * index - The row's index
981
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
982
+ * originalEvent - The origianl Event object.
983
+ */
984
+ _onRowDragging = null; get onRowDragging() {
985
+ return this._onRowDragging;
986
+ }
987
+ set onRowDragging(value) {
988
+ this._onRowDragging = value;
989
+ }
990
+ /** This event is triggered, when the user drags a row.
991
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, index, newIndex, data, originalEvent)
992
+ * row - The row.
993
+ * id - The row's id
994
+ * index - The row's index
995
+ * newIndex - The row's new index
996
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
997
+ * originalEvent - The origianl Event object.
998
+ */
999
+ _onRowDragEnd = null; get onRowDragEnd() {
1000
+ return this._onRowDragEnd;
1001
+ }
1002
+ set onRowDragEnd(value) {
1003
+ this._onRowDragEnd = value;
1004
+ }
1005
+ /** This event is triggered, when the user reorders a row.
1006
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, index, newIndex, data, originalEvent)
1007
+ * row - The row.
1008
+ * id - The row's id
1009
+ * index - The row's index
1010
+ * newIndex - The row's new index
1011
+ * data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
1012
+ * originalEvent - The origianl Event object.
1013
+ */
1014
+ _onRowReorder = null; get onRowReorder() {
1015
+ return this._onRowReorder;
1016
+ }
1017
+ set onRowReorder(value) {
1018
+ this._onRowReorder = value;
1019
+ }
1020
+ /** This event is triggered, when the user expands a row of the grid. The Grid is in TreeGrid/Grouping mode.
1021
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, originalEvent)
1022
+ * row - The expanded row.
1023
+ * id - The row's id
1024
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1025
+ */
1026
+ _onRowExpand = null; get onRowExpand() {
1027
+ return this._onRowExpand;
1028
+ }
1029
+ set onRowExpand(value) {
1030
+ this._onRowExpand = value;
1031
+ }
1032
+ /** This event is triggered, when the user collapsed a row of the grid. The Grid is in TreeGrid/Grouping mode.
1033
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, originalEvent)
1034
+ * row - The collapsed row.
1035
+ * id - The row's id
1036
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1037
+ */
1038
+ _onRowCollapse = null; get onRowCollapse() {
1039
+ return this._onRowCollapse;
1040
+ }
1041
+ set onRowCollapse(value) {
1042
+ this._onRowCollapse = value;
1043
+ }
1044
+ /** This event is triggered, when the user clicks on a row of the grid.
1045
+ * @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, isRightClick, pageX, pageY)
1046
+ * row - The clicked row.
1047
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1048
+ * id - Gets the row id.
1049
+ * isRightClick - Gets whether the pointing device's right button is clicked.
1050
+ * pageX - Gets the click's X position.
1051
+ * pageY - Gets the click's Y position.
1052
+ */
1053
+ _onRowClick = null; get onRowClick() {
1054
+ return this._onRowClick;
1055
+ }
1056
+ set onRowClick(value) {
1057
+ this._onRowClick = value;
1058
+ }
1059
+ /** This event is triggered, when the user double clicks on a row of the grid.
1060
+ * @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, isRightClick, pageX, pageY)
1061
+ * row - The double-clicked row.
1062
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1063
+ * id - Gets the row id.
1064
+ * isRightClick - Gets whether the pointing device's right button is clicked.
1065
+ * pageX - Gets the click's X position.
1066
+ * pageY - Gets the click's Y position.
1067
+ */
1068
+ _onRowDoubleClick = null; get onRowDoubleClick() {
1069
+ return this._onRowDoubleClick;
1070
+ }
1071
+ set onRowDoubleClick(value) {
1072
+ this._onRowDoubleClick = value;
1073
+ }
1074
+ /** This event is triggered, when the user resized a row.
1075
+ * @param event. The custom event. Custom event was created with: event.detail( row, id, oldHeight, height)
1076
+ * row - The resized row.
1077
+ * id - Gets the row id.
1078
+ * oldHeight - The old height of the row.
1079
+ * height - The new height of the row.
1080
+ */
1081
+ _onRowResize = null; get onRowResize() {
1082
+ return this._onRowResize;
1083
+ }
1084
+ set onRowResize(value) {
1085
+ this._onRowResize = value;
1086
+ }
1087
+ /** This event is triggered, when the user clicks on the row header's star.
1088
+ * @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, value)
1089
+ * row - The clicked row.
1090
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1091
+ * id - Gets the row id.
1092
+ * value - Gets whether the row is starred or not.
1093
+ */
1094
+ _onRowStarred = null; get onRowStarred() {
1095
+ return this._onRowStarred;
1096
+ }
1097
+ set onRowStarred(value) {
1098
+ this._onRowStarred = value;
1099
+ }
1100
+ /** This event is triggered, when the user clicks on a cell of the grid.
1101
+ * @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent, id, dataField, isRightClick, pageX, pageY)
1102
+ * cell - The clicked cell.
1103
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1104
+ * id - Gets the row id.
1105
+ * dataField - Gets the column dataField.
1106
+ * isRightClick - Gets whether the pointing device's right button is clicked.
1107
+ * pageX - Gets the click's X position.
1108
+ * pageY - Gets the click's Y position.
1109
+ */
1110
+ _onCellClick = null; get onCellClick() {
1111
+ return this._onCellClick;
1112
+ }
1113
+ set onCellClick(value) {
1114
+ this._onCellClick = value;
1115
+ }
1116
+ /** This event is triggered, when the user double clicks on a cell of the grid.
1117
+ * @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent, id, dataField, isRightClick, pageX, pageY)
1118
+ * cell - The double-clicked cell.
1119
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1120
+ * id - Gets the row id.
1121
+ * dataField - Gets the column dataField.
1122
+ * isRightClick - Gets whether the pointing device's right button is clicked.
1123
+ * pageX - Gets the click's X position.
1124
+ * pageY - Gets the click's Y position.
1125
+ */
1126
+ _onCellDoubleClick = null; get onCellDoubleClick() {
1127
+ return this._onCellDoubleClick;
1128
+ }
1129
+ set onCellDoubleClick(value) {
1130
+ this._onCellDoubleClick = value;
1131
+ }
1132
+ /** This event is triggered, when the edit ends.
1133
+ * @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, column, cell, data, value)
1134
+ * id - The edited row id.
1135
+ * dataField - The edited column data field.
1136
+ * row - The edited row.
1137
+ * column - The edited column.
1138
+ * cell - The edited cell.
1139
+ * data - The edited row's data.
1140
+ * value - The edited cell's value.
1141
+ */
1142
+ _onEndEdit = null; get onEndEdit() {
1143
+ return this._onEndEdit;
1144
+ }
1145
+ set onEndEdit(value) {
1146
+ this._onEndEdit = value;
1147
+ }
1148
+ /** This event is triggered, when a filter is added or removed.
1149
+ * @param event. The custom event. Custom event was created with: event.detail( columns, data, expressions)
1150
+ * columns - Array of columns.
1151
+ * data - Array of {dataField: string, filter: object}. <em>dataField</em> is the column's data field. <em>filter</em> is a FilterGroup object.
1152
+ * expressions - Array of {dataField: string, filter: string}. <em>dataField</em> is the column's data field. <em>filter</em> is a filter expression like 'startsWith B'. In each array item, you will have an object with column's name and filter string. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '&lt;= 3 and &gt;= 8']], [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']], [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions used in the filter expressions: '=', 'EQUAL','&lt;&gt;', 'NOT_EQUAL', '!=', '&lt;', 'LESS_THAN','&gt;', 'GREATER_THAN', '&lt;=', 'LESS_THAN_OR_EQUAL', '&gt;=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
1153
+ */
1154
+ _onFilter = null; get onFilter() {
1155
+ return this._onFilter;
1156
+ }
1157
+ set onFilter(value) {
1158
+ this._onFilter = value;
1159
+ }
1160
+ /** This event is triggered, when the rows grouping is changed.
1161
+ * @param event. The custom event. Custom event was created with: event.detail( groups)
1162
+ * groups - Array of column data fields.
1163
+ */
1164
+ _onGroup = null; get onGroup() {
1165
+ return this._onGroup;
1166
+ }
1167
+ set onGroup(value) {
1168
+ this._onGroup = value;
1169
+ }
1170
+ /** This event is triggered, when the add new column dialog is opened.
1171
+ * @param event. The custom event. Custom event was created with: event.detail( dataField)
1172
+ * dataField - The column data field.
1173
+ */
1174
+ _onOpenColumnDialog = null; get onOpenColumnDialog() {
1175
+ return this._onOpenColumnDialog;
1176
+ }
1177
+ set onOpenColumnDialog(value) {
1178
+ this._onOpenColumnDialog = value;
1179
+ }
1180
+ /** This event is triggered, when the add new column dialog is closed.
1181
+ * @param event. The custom event. Custom event was created with: event.detail( dataField)
1182
+ * dataField - The column data field.
1183
+ */
1184
+ _onCloseColumnDialog = null; get onCloseColumnDialog() {
1185
+ return this._onCloseColumnDialog;
1186
+ }
1187
+ set onCloseColumnDialog(value) {
1188
+ this._onCloseColumnDialog = value;
1189
+ }
1190
+ /** This event is triggered, when the grid is resized.
1191
+ * @param event. The custom event. */
1192
+ _onResize = null; get onResize() {
1193
+ return this._onResize;
1194
+ }
1195
+ set onResize(value) {
1196
+ this._onResize = value;
1197
+ }
1198
+ /** This event is triggered when the user touches and holds on the row for at least 300ms.
1199
+ * @param event. The custom event. Custom event was created with: event.detail( row, originalEvent)
1200
+ * row - The tapped row.
1201
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1202
+ */
1203
+ _onRowTap = null; get onRowTap() {
1204
+ return this._onRowTap;
1205
+ }
1206
+ set onRowTap(value) {
1207
+ this._onRowTap = value;
1208
+ }
1209
+ /** This event is triggered when the user touches and holds on the cell for at least 300ms.
1210
+ * @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent)
1211
+ * cell - The tapped row.
1212
+ * originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
1213
+ */
1214
+ _onCellTap = null; get onCellTap() {
1215
+ return this._onCellTap;
1216
+ }
1217
+ set onCellTap(value) {
1218
+ this._onCellTap = value;
1219
+ }
1220
+ /** This event is triggered, when the user changes the pages.
1221
+ * @param event. The custom event. */
1222
+ _onPage = null; get onPage() {
1223
+ return this._onPage;
1224
+ }
1225
+ set onPage(value) {
1226
+ this._onPage = value;
1227
+ }
1228
+ /** This event is triggered, when a sorting column is added or removed.
1229
+ * @param event. The custom event. Custom event was created with: event.detail( columns, data, sortDataFields, sortDataTypes, sortOrders, sortIndexes)
1230
+ * columns - Array of columns.
1231
+ * data - Array of {dataField: string, sortOrder: string, sortIndex: number}. <em>dataField</em> is the column's data field. <em>sortOrder</em> is 'asc' or 'desc', <em>sortIndex</em> is the index of the column in multi column sorting.
1232
+ * sortDataFields - Array of column data fields.
1233
+ * sortDataTypes - Array of column data types. The values in the array would be 'string', 'date', 'boolean' or 'number'.
1234
+ * sortOrders - Array of column orders. The values in the array would be 'asc' or 'desc'.
1235
+ * sortIndexes - Array of column sort indexes. When multiple sorting is applied the sort index is an important parameter as it specifies the priority of sorting.
1236
+ */
1237
+ _onSort = null; get onSort() {
1238
+ return this._onSort;
1239
+ }
1240
+ set onSort(value) {
1241
+ this._onSort = value;
1242
+ }
1243
+ /** This event is triggered, when the user reaches the bottom of the grid.
1244
+ * @param event. The custom event. */
1245
+ _onScrollBottomReached = null; get onScrollBottomReached() {
1246
+ return this._onScrollBottomReached;
1247
+ }
1248
+ set onScrollBottomReached(value) {
1249
+ this._onScrollBottomReached = value;
1250
+ }
1251
+ /** This event is triggered, when the user reaches the top of the grid.
1252
+ * @param event. The custom event. */
1253
+ _onScrollTopReached = null; get onScrollTopReached() {
1254
+ return this._onScrollTopReached;
1255
+ }
1256
+ set onScrollTopReached(value) {
1257
+ this._onScrollTopReached = value;
1258
+ }
1259
+
1260
+ // Gets the events of the React component.
1261
+ get eventListeners() {
1262
+ return ["onBeginEdit","onBatchChange","onBatchCancel","onChange","onColumnClick","onColumnDoubleClick","onColumnResize","onColumnDragStart","onColumnDragging","onColumnDragEnd","onColumnReorder","onCommentAdd","onCommentRemove","onContextMenuItemClick","onRowDragStart","onRowDragging","onRowDragEnd","onRowReorder","onRowExpand","onRowCollapse","onRowClick","onRowDoubleClick","onRowResize","onRowStarred","onCellClick","onCellDoubleClick","onEndEdit","onFilter","onGroup","onOpenColumnDialog","onCloseColumnDialog","onResize","onRowTap","onCellTap","onPage","onSort","onScrollBottomReached","onScrollTopReached"];
1263
+ }
1264
+ /** Adds a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
1265
+ * @param {any} data. row data matching the data source
1266
+ * @param {boolean} insertAtBottom?. Determines whether to add the new row to the bottom or top of the collection. The default value is 'true'
1267
+ * @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
1268
+ */
1269
+ addRow(data, insertAtBottom, callback){
1270
+ if (this.nativeElement.isRendered) {
1271
+ this.nativeElement.addRow(data, insertAtBottom, callback);
1272
+ }
1273
+ else
1274
+ {
1275
+ this.nativeElement.whenRendered(() => {
1276
+ this.nativeElement.addRow(data, insertAtBottom, callback);
1277
+ });
1278
+ }
1279
+ }
1280
+
1281
+ /** 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.
1282
+ * @param {string} position?. 'near' or 'far'
1283
+ * @returns {boolean}
1284
+ */
1285
+ addNewRow(position) {
1286
+ const result = this.nativeElement.addNewRow(position);
1287
+ return result;
1288
+ }
1289
+
1290
+ /** Adds a new column.
1291
+ * @param {any} column. A Grid column object. See 'columns' property.
1292
+ * @returns {boolean}
1293
+ */
1294
+ addNewColumn(column) {
1295
+ const result = this.nativeElement.addNewColumn(column);
1296
+ return result;
1297
+ }
1298
+
1299
+ /** Adds a new unbound row to the top or bottom. Unbound rows are not part of the Grid's dataSource. They become part of the dataSource, after an unbound row is edited.
1300
+ * @param {number} count. The count of unbound rows.
1301
+ * @param {string} position?. 'near' or 'far'
1302
+ * @returns {boolean}
1303
+ */
1304
+ addUnboundRow(count, position) {
1305
+ const result = this.nativeElement.addUnboundRow(count, position);
1306
+ return result;
1307
+ }
1308
+
1309
+ /** 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', '&lt;= 5')
1310
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1311
+ * @param {string} filter. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '&lt;= 3 and &gt;= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','&lt;&gt;', 'NOT_EQUAL', '!=', '&lt;', 'LESS_THAN','&gt;', 'GREATER_THAN', '&lt;=', 'LESS_THAN_OR_EQUAL', '&gt;=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
1312
+ * @param {boolean} refreshFilters?. Set this to false, if you will use multiple 'addFilter' calls. By doing this, you will avoid unnecessary renders.
1313
+ */
1314
+ addFilter(dataField, filter, refreshFilters){
1315
+ if (this.nativeElement.isRendered) {
1316
+ this.nativeElement.addFilter(dataField, filter, refreshFilters);
1317
+ }
1318
+ else
1319
+ {
1320
+ this.nativeElement.whenRendered(() => {
1321
+ this.nativeElement.addFilter(dataField, filter, refreshFilters);
1322
+ });
1323
+ }
1324
+ }
1325
+
1326
+ /** Groups the Grid by a data field. This method will add a group to the Grid when grouping is enabled.
1327
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1328
+ */
1329
+ addGroup(dataField){
1330
+ if (this.nativeElement.isRendered) {
1331
+ this.nativeElement.addGroup(dataField);
1332
+ }
1333
+ else
1334
+ {
1335
+ this.nativeElement.whenRendered(() => {
1336
+ this.nativeElement.addGroup(dataField);
1337
+ });
1338
+ }
1339
+ }
1340
+
1341
+ /** Sorts the Grid by a data field. This method will add a sorting to the Grid when sorting is enabled.
1342
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1343
+ * @param {string} sortOrder. column's sort order. Use 'asc' or 'desc'.
1344
+ */
1345
+ addSort(dataField, sortOrder){
1346
+ if (this.nativeElement.isRendered) {
1347
+ this.nativeElement.addSort(dataField, sortOrder);
1348
+ }
1349
+ else
1350
+ {
1351
+ this.nativeElement.whenRendered(() => {
1352
+ this.nativeElement.addSort(dataField, sortOrder);
1353
+ });
1354
+ }
1355
+ }
1356
+
1357
+ /** Auto-sizes grid rows. This method will update the height of all Grid rows.
1358
+ */
1359
+ autoSizeRows(){
1360
+ if (this.nativeElement.isRendered) {
1361
+ this.nativeElement.autoSizeRows();
1362
+ }
1363
+ else
1364
+ {
1365
+ this.nativeElement.whenRendered(() => {
1366
+ this.nativeElement.autoSizeRows();
1367
+ });
1368
+ }
1369
+ }
1370
+
1371
+ /** Auto-sizes grid columns. This method will update the width of all Grid columns.
1372
+ */
1373
+ autoSizeColumns(){
1374
+ if (this.nativeElement.isRendered) {
1375
+ this.nativeElement.autoSizeColumns();
1376
+ }
1377
+ else
1378
+ {
1379
+ this.nativeElement.whenRendered(() => {
1380
+ this.nativeElement.autoSizeColumns();
1381
+ });
1382
+ }
1383
+ }
1384
+
1385
+ /** Auto-sizes grid column. This method will update the width of a Grid column by measuring the cells and column header label width.
1386
+ * @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1387
+ */
1388
+ autoSizeColumn(dataField){
1389
+ if (this.nativeElement.isRendered) {
1390
+ this.nativeElement.autoSizeColumn(dataField);
1391
+ }
1392
+ else
1393
+ {
1394
+ this.nativeElement.whenRendered(() => {
1395
+ this.nativeElement.autoSizeColumn(dataField);
1396
+ });
1397
+ }
1398
+ }
1399
+
1400
+ /** This method returns true, if all rows in the Grid are selected.
1401
+ * @returns {boolean}
1402
+ */
1403
+ areAllRowsSelected() {
1404
+ const result = this.nativeElement.areAllRowsSelected();
1405
+ return result;
1406
+ }
1407
+
1408
+ /** Starts an update operation. This is appropriate when calling multiple methods or set multiple properties at once.
1409
+ */
1410
+ beginUpdate(){
1411
+ if (this.nativeElement.isRendered) {
1412
+ this.nativeElement.beginUpdate();
1413
+ }
1414
+ else
1415
+ {
1416
+ this.nativeElement.whenRendered(() => {
1417
+ this.nativeElement.beginUpdate();
1418
+ });
1419
+ }
1420
+ }
1421
+
1422
+ /** Begins row, cell or column. This method allows you to programmatically start a cell, row or column editing. After calling it, an editor HTMLElement will be created and displayed in the Grid.
1423
+ * @param {string | number} rowId. row bound id
1424
+ * @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1425
+ */
1426
+ beginEdit(rowId, dataField){
1427
+ if (this.nativeElement.isRendered) {
1428
+ this.nativeElement.beginEdit(rowId, dataField);
1429
+ }
1430
+ else
1431
+ {
1432
+ this.nativeElement.whenRendered(() => {
1433
+ this.nativeElement.beginEdit(rowId, dataField);
1434
+ });
1435
+ }
1436
+ }
1437
+
1438
+ /** Clears all filters. Refreshes the view and updates all filter input components.
1439
+ */
1440
+ clearFilter(){
1441
+ if (this.nativeElement.isRendered) {
1442
+ this.nativeElement.clearFilter();
1443
+ }
1444
+ else
1445
+ {
1446
+ this.nativeElement.whenRendered(() => {
1447
+ this.nativeElement.clearFilter();
1448
+ });
1449
+ }
1450
+ }
1451
+
1452
+ /** Clears all data groups. Refreshes the view and updates the DataGrid component.
1453
+ */
1454
+ clearGroups(){
1455
+ if (this.nativeElement.isRendered) {
1456
+ this.nativeElement.clearGroups();
1457
+ }
1458
+ else
1459
+ {
1460
+ this.nativeElement.whenRendered(() => {
1461
+ this.nativeElement.clearGroups();
1462
+ });
1463
+ }
1464
+ }
1465
+
1466
+ /** Clears all sorting. Refreshes the view and updates the DataGrid component.
1467
+ */
1468
+ clearSort(){
1469
+ if (this.nativeElement.isRendered) {
1470
+ this.nativeElement.clearSort();
1471
+ }
1472
+ else
1473
+ {
1474
+ this.nativeElement.whenRendered(() => {
1475
+ this.nativeElement.clearSort();
1476
+ });
1477
+ }
1478
+ }
1479
+
1480
+ /** Clears the selection that user have made. All row, cell and column selection highlights will be removed.
1481
+ */
1482
+ clearSelection(){
1483
+ if (this.nativeElement.isRendered) {
1484
+ this.nativeElement.clearSelection();
1485
+ }
1486
+ else
1487
+ {
1488
+ this.nativeElement.whenRendered(() => {
1489
+ this.nativeElement.clearSelection();
1490
+ });
1491
+ }
1492
+ }
1493
+
1494
+ /** Cancels the editing. This method closes the cell editor and cancels the changes.
1495
+ */
1496
+ cancelEdit(){
1497
+ if (this.nativeElement.isRendered) {
1498
+ this.nativeElement.cancelEdit();
1499
+ }
1500
+ else
1501
+ {
1502
+ this.nativeElement.whenRendered(() => {
1503
+ this.nativeElement.cancelEdit();
1504
+ });
1505
+ }
1506
+ }
1507
+
1508
+ /** Checks a TreeGrid row. This method updates the row's check-box.
1509
+ * @param {string | number} rowId. row bound id
1510
+ */
1511
+ checkRow(rowId){
1512
+ if (this.nativeElement.isRendered) {
1513
+ this.nativeElement.checkRow(rowId);
1514
+ }
1515
+ else
1516
+ {
1517
+ this.nativeElement.whenRendered(() => {
1518
+ this.nativeElement.checkRow(rowId);
1519
+ });
1520
+ }
1521
+ }
1522
+
1523
+ /** Checks all TreeGrid or Grouping rows. This method updates all check-boxes in the TreeGrid or Grouping rows.
1524
+ */
1525
+ checkAllRows(){
1526
+ if (this.nativeElement.isRendered) {
1527
+ this.nativeElement.checkAllRows();
1528
+ }
1529
+ else
1530
+ {
1531
+ this.nativeElement.whenRendered(() => {
1532
+ this.nativeElement.checkAllRows();
1533
+ });
1534
+ }
1535
+ }
1536
+
1537
+ /** Clears the user selection and empties the data source. The Grid will display 'No Rows' in the view.
1538
+ */
1539
+ clearRows(){
1540
+ if (this.nativeElement.isRendered) {
1541
+ this.nativeElement.clearRows();
1542
+ }
1543
+ else
1544
+ {
1545
+ this.nativeElement.whenRendered(() => {
1546
+ this.nativeElement.clearRows();
1547
+ });
1548
+ }
1549
+ }
1550
+
1551
+ /** Closes the column drop-down menu.
1552
+ */
1553
+ closeMenu(){
1554
+ if (this.nativeElement.isRendered) {
1555
+ this.nativeElement.closeMenu();
1556
+ }
1557
+ else
1558
+ {
1559
+ this.nativeElement.whenRendered(() => {
1560
+ this.nativeElement.closeMenu();
1561
+ });
1562
+ }
1563
+ }
1564
+
1565
+ /** Collapses a TreeGrid or Grouping row.
1566
+ * @param {string | number} rowId. row bound id
1567
+ */
1568
+ collapseRow(rowId){
1569
+ if (this.nativeElement.isRendered) {
1570
+ this.nativeElement.collapseRow(rowId);
1571
+ }
1572
+ else
1573
+ {
1574
+ this.nativeElement.whenRendered(() => {
1575
+ this.nativeElement.collapseRow(rowId);
1576
+ });
1577
+ }
1578
+ }
1579
+
1580
+ /** Collapses all TreeGrid or Grouping rows.
1581
+ */
1582
+ collapseAllRows(){
1583
+ if (this.nativeElement.isRendered) {
1584
+ this.nativeElement.collapseAllRows();
1585
+ }
1586
+ else
1587
+ {
1588
+ this.nativeElement.whenRendered(() => {
1589
+ this.nativeElement.collapseAllRows();
1590
+ });
1591
+ }
1592
+ }
1593
+
1594
+ /** Creates a Chart, when charting is enabled.
1595
+ * @param {string} type. Chart's type
1596
+ * @param {any} dataSource?. Chart's data source
1597
+ */
1598
+ createChart(type, dataSource){
1599
+ if (this.nativeElement.isRendered) {
1600
+ this.nativeElement.createChart(type, dataSource);
1601
+ }
1602
+ else
1603
+ {
1604
+ this.nativeElement.whenRendered(() => {
1605
+ this.nativeElement.createChart(type, dataSource);
1606
+ });
1607
+ }
1608
+ }
1609
+
1610
+ /** Delete a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
1611
+ * @param {string | number} rowId. row bound id
1612
+ * @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
1613
+ */
1614
+ deleteRow(rowId, callback){
1615
+ if (this.nativeElement.isRendered) {
1616
+ this.nativeElement.deleteRow(rowId, callback);
1617
+ }
1618
+ else
1619
+ {
1620
+ this.nativeElement.whenRendered(() => {
1621
+ this.nativeElement.deleteRow(rowId, callback);
1622
+ });
1623
+ }
1624
+ }
1625
+
1626
+ /** 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.
1627
+ * @param {string | number} rowId. row bound id
1628
+ * @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
1629
+ * @returns {boolean}
1630
+ */
1631
+ ensureVisible(rowId, dataField) {
1632
+ const result = this.nativeElement.ensureVisible(rowId, dataField);
1633
+ return result;
1634
+ }
1635
+
1636
+ /** Ends the editing. This method confirms all changes and closes the opened cell editor(s).
1637
+ */
1638
+ endEdit(){
1639
+ if (this.nativeElement.isRendered) {
1640
+ this.nativeElement.endEdit();
1641
+ }
1642
+ else
1643
+ {
1644
+ this.nativeElement.whenRendered(() => {
1645
+ this.nativeElement.endEdit();
1646
+ });
1647
+ }
1648
+ }
1649
+
1650
+ /** Ends the update operation. This method will resume the rendering and will refresh the Grid.
1651
+ * @param {boolean} refresh?. The flag that control the calls of the refresh method.
1652
+ */
1653
+ endUpdate(refresh){
1654
+ if (this.nativeElement.isRendered) {
1655
+ this.nativeElement.endUpdate(refresh);
1656
+ }
1657
+ else
1658
+ {
1659
+ this.nativeElement.whenRendered(() => {
1660
+ this.nativeElement.endUpdate(refresh);
1661
+ });
1662
+ }
1663
+ }
1664
+
1665
+ /** Expands a TreeGrid or Grouping row. For example, if you want to expand the first group, then its second sub grup, then the first sub sub group, you can use: grid.expandRow('0.1.0');
1666
+ * @param {string | number} rowId. row bound id
1667
+ */
1668
+ expandRow(rowId){
1669
+ if (this.nativeElement.isRendered) {
1670
+ this.nativeElement.expandRow(rowId);
1671
+ }
1672
+ else
1673
+ {
1674
+ this.nativeElement.whenRendered(() => {
1675
+ this.nativeElement.expandRow(rowId);
1676
+ });
1677
+ }
1678
+ }
1679
+
1680
+ /** Expands rows to a given group level. For example 'grid.expandRowsToGroupLevel(1);' means that all groups at the root level will be expanded.
1681
+ * @param {number} level. row group level
1682
+ */
1683
+ expandRowsToGroupLevel(level){
1684
+ if (this.nativeElement.isRendered) {
1685
+ this.nativeElement.expandRowsToGroupLevel(level);
1686
+ }
1687
+ else
1688
+ {
1689
+ this.nativeElement.whenRendered(() => {
1690
+ this.nativeElement.expandRowsToGroupLevel(level);
1691
+ });
1692
+ }
1693
+ }
1694
+
1695
+ /** Expands all TreeGrid or Grouping rows.
1696
+ */
1697
+ expandAllRows(){
1698
+ if (this.nativeElement.isRendered) {
1699
+ this.nativeElement.expandAllRows();
1700
+ }
1701
+ else
1702
+ {
1703
+ this.nativeElement.whenRendered(() => {
1704
+ this.nativeElement.expandAllRows();
1705
+ });
1706
+ }
1707
+ }
1708
+
1709
+ /** Exports the Grid data to .XLSX, .PDF, .JSON, .XML, .CSV, .TSV, .HTML, .JPEG or .PNG. The method uses the options of the dataExport property.
1710
+ * @param {string} Dataformat. 'xlsx', 'pdf', 'json', 'xml', 'csv', 'tsv', 'html', 'png', 'jpeg'.
1711
+ */
1712
+ exportData(Dataformat){
1713
+ if (this.nativeElement.isRendered) {
1714
+ this.nativeElement.exportData(Dataformat);
1715
+ }
1716
+ else
1717
+ {
1718
+ this.nativeElement.whenRendered(() => {
1719
+ this.nativeElement.exportData(Dataformat);
1720
+ });
1721
+ }
1722
+ }
1723
+
1724
+ /** Finds entries by using a query and returns an array of row ids. Example: const rows = grid.find('nancy'); returns all rows that have 'nancy' value. Example 2: const rows = grid.find('nancy, davolio'); returns all rows that have 'nancy' and 'davolio' values in the same row. Example 3: const rows = grid.find(5, 'quantity', '>'); returns all rows where the value of the 'quantity' field is > 5.
1725
+ * @param {string} query. Search query
1726
+ * @param {string} dataField?. Column data field.
1727
+ * @param {string} condition?. Conditions which you can use in the expressions: '=', 'EQUAL','&lt;&gt;', 'NOT_EQUAL', '!=', '&lt;', 'LESS_THAN','&gt;', 'GREATER_THAN', '&lt;=', 'LESS_THAN_OR_EQUAL', '&gt;=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
1728
+ * @returns {any[]}
1729
+ */
1730
+ find(query, dataField, condition) {
1731
+ const result = this.nativeElement.find(query, dataField, condition);
1732
+ return result;
1733
+ }
1734
+
1735
+ /** Finds entries by using a query and returns an array of cells. Each cell in the array is also an array in this format: [id, dataField, value]. Example: const cells = grid.findCells('nancy'); returns all cells that have 'nancy' value. Example 2: const cells = grid.findCells('nancy, davolio'); returns all cells that have 'nancy' and 'davolio' values.
1736
+ * @param {string} query. Search query. You can enter multiple search strings, by using ','. Example: 'nancy, davolio'
1737
+ * @returns {any[]}
1738
+ */
1739
+ findCells(query) {
1740
+ const result = this.nativeElement.findCells(query);
1741
+ return result;
1742
+ }
1743
+
1744
+ /** Navigates to a page, when paging is enabled.
1745
+ * @param {number} index. page index
1746
+ */
1747
+ goToPage(index){
1748
+ if (this.nativeElement.isRendered) {
1749
+ this.nativeElement.goToPage(index);
1750
+ }
1751
+ else
1752
+ {
1753
+ this.nativeElement.whenRendered(() => {
1754
+ this.nativeElement.goToPage(index);
1755
+ });
1756
+ }
1757
+ }
1758
+
1759
+ /** Navigates to the next page, when grid paging is enabled.
1760
+ */
1761
+ nextPage(){
1762
+ if (this.nativeElement.isRendered) {
1763
+ this.nativeElement.nextPage();
1764
+ }
1765
+ else
1766
+ {
1767
+ this.nativeElement.whenRendered(() => {
1768
+ this.nativeElement.nextPage();
1769
+ });
1770
+ }
1771
+ }
1772
+
1773
+ /** Navigates to the prev page, when grid paging is enabled.
1774
+ */
1775
+ prevPage(){
1776
+ if (this.nativeElement.isRendered) {
1777
+ this.nativeElement.prevPage();
1778
+ }
1779
+ else
1780
+ {
1781
+ this.nativeElement.whenRendered(() => {
1782
+ this.nativeElement.prevPage();
1783
+ });
1784
+ }
1785
+ }
1786
+
1787
+ /** Navigates to the first page, when grid paging is enabled.
1788
+ */
1789
+ firstPage(){
1790
+ if (this.nativeElement.isRendered) {
1791
+ this.nativeElement.firstPage();
1792
+ }
1793
+ else
1794
+ {
1795
+ this.nativeElement.whenRendered(() => {
1796
+ this.nativeElement.firstPage();
1797
+ });
1798
+ }
1799
+ }
1800
+
1801
+ /** Navigates to the last page, when grid paging is enabled.
1802
+ */
1803
+ lastPage(){
1804
+ if (this.nativeElement.isRendered) {
1805
+ this.nativeElement.lastPage();
1806
+ }
1807
+ else
1808
+ {
1809
+ this.nativeElement.whenRendered(() => {
1810
+ this.nativeElement.lastPage();
1811
+ });
1812
+ }
1813
+ }
1814
+
1815
+ /** Focuses and selects a cell or row. The keyboard navigation starts from the focused cell or row. Any previously applied selection will be cleared after calling this method.
1816
+ * @param {string | number} rowId. row bound id
1817
+ * @param {string} dataField?. column bound data field
1818
+ */
1819
+ focusAndSelect(rowId, dataField){
1820
+ if (this.nativeElement.isRendered) {
1821
+ this.nativeElement.focusAndSelect(rowId, dataField);
1822
+ }
1823
+ else
1824
+ {
1825
+ this.nativeElement.whenRendered(() => {
1826
+ this.nativeElement.focusAndSelect(rowId, dataField);
1827
+ });
1828
+ }
1829
+ }
1830
+
1831
+ /** Iterates through each row in the grid and calls the callback for each row. This is similar to the forEach method on a JavaScript array. This is called for each row, ignoring grouping, filtering or sorting applied in the Grid.
1832
+ * @param {any} rowCallback. Callback function with a row object as parameter. Example: grid.forEachRow((row) => { console.log(row.id) });
1833
+ */
1834
+ forEachRow(rowCallback){
1835
+ if (this.nativeElement.isRendered) {
1836
+ this.nativeElement.forEachRow(rowCallback);
1837
+ }
1838
+ else
1839
+ {
1840
+ this.nativeElement.whenRendered(() => {
1841
+ this.nativeElement.forEachRow(rowCallback);
1842
+ });
1843
+ }
1844
+ }
1845
+
1846
+ /** Similar to forEachRow. Iterates through each row in the grid and calls the callback for each row. This method takes into account filtering and sorting applied to the Grid.
1847
+ * @param {any} rowCallback. Callback function with a row object as parameter. Example: grid.forEachRow((row) => { console.log(row.id) });
1848
+ */
1849
+ forEachRowAfterFilterAndSort(rowCallback){
1850
+ if (this.nativeElement.isRendered) {
1851
+ this.nativeElement.forEachRowAfterFilterAndSort(rowCallback);
1852
+ }
1853
+ else
1854
+ {
1855
+ this.nativeElement.whenRendered(() => {
1856
+ this.nativeElement.forEachRowAfterFilterAndSort(rowCallback);
1857
+ });
1858
+ }
1859
+ }
1860
+
1861
+ /** Gets the maximum position of the vertical scrollbar. You can use this method in combination with the setVerticalScrollValue to apply a new scroll position.
1862
+ * @returns {number}
1863
+ */
1864
+ getVerticalScrollMax() {
1865
+ const result = this.nativeElement.getVerticalScrollMax();
1866
+ return result;
1867
+ }
1868
+
1869
+ /** Gets the position of the vertical scrollbar.
1870
+ * @returns {number}
1871
+ */
1872
+ getVerticalScrollValue() {
1873
+ const result = this.nativeElement.getVerticalScrollValue();
1874
+ return result;
1875
+ }
1876
+
1877
+ /** Gets the maximum position of the horizontal scrollbar. You can use this method in combination with the setHorizontalScrollValue to apply a new scroll position.
1878
+ * @returns {number}
1879
+ */
1880
+ getHorizontalScrollMax() {
1881
+ const result = this.nativeElement.getHorizontalScrollMax();
1882
+ return result;
1883
+ }
1884
+
1885
+ /** Gets the position of the horizontal scrollbar.
1886
+ * @returns {number}
1887
+ */
1888
+ getHorizontalScrollValue() {
1889
+ const result = this.nativeElement.getHorizontalScrollValue();
1890
+ return result;
1891
+ }
1892
+
1893
+ /** Gets the columns array. Each item in the array contains the column properties which are dynamically set by the user interaction and the columns initialization data properties such as: 'label', 'dataField', 'dataType', 'visible'.
1894
+ * @returns {any}
1895
+ */
1896
+ getColumns() {
1897
+ const result = this.nativeElement.getColumns();
1898
+ return result;
1899
+ }
1900
+
1901
+ /** Gets the editing cell(s), when the grid is editing.
1902
+ * @returns {any[]}
1903
+ */
1904
+ getEditCells() {
1905
+ const result = this.nativeElement.getEditCells();
1906
+ return result;
1907
+ }
1908
+
1909
+ /** Gets the groups array.
1910
+ * @returns {any[]}
1911
+ */
1912
+ getGroups() {
1913
+ const result = this.nativeElement.getGroups();
1914
+ return result;
1915
+ }
1916
+
1917
+ /** Gets an array of columns with applied sorting. Each member in the array is with column's data field used as a key and 'sortOrder' and 'sortIndex' as a value.
1918
+ * @returns {{[dataField: string]: { sortOrder: string, sortIndex: number }}}
1919
+ */
1920
+ getSortedColumns() {
1921
+ const result = this.nativeElement.getSortedColumns();
1922
+ return result;
1923
+ }
1924
+
1925
+ /** Gets the selection.
1926
+ * @returns {any}
1927
+ */
1928
+ getSelection() {
1929
+ const result = this.nativeElement.getSelection();
1930
+ return result;
1931
+ }
1932
+
1933
+ /** 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.
1934
+ * @returns {any[]}
1935
+ */
1936
+ getSelectedRows() {
1937
+ const result = this.nativeElement.getSelectedRows();
1938
+ return result;
1939
+ }
1940
+
1941
+ /** Gets the selected row ids.
1942
+ * @returns {any[]}
1943
+ */
1944
+ getSelectedRowIds() {
1945
+ const result = this.nativeElement.getSelectedRowIds();
1946
+ return result;
1947
+ }
1948
+
1949
+ /** Gets the selected row indexes.
1950
+ * @returns {any[]}
1951
+ */
1952
+ getSelectedRowIndexes() {
1953
+ const result = this.nativeElement.getSelectedRowIndexes();
1954
+ return result;
1955
+ }
1956
+
1957
+ /** 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.
1958
+ * @returns {any[]}
1959
+ */
1960
+ getSelectedCells() {
1961
+ const result = this.nativeElement.getSelectedCells();
1962
+ return result;
1963
+ }
1964
+
1965
+ /** Gets an array of columns with applied filters.
1966
+ * @returns {any}
1967
+ */
1968
+ getFilteredColumns() {
1969
+ const result = this.nativeElement.getFilteredColumns();
1970
+ return result;
1971
+ }
1972
+
1973
+ /** Gets an array of rows, which are visible and match the applied filter.
1974
+ * @returns {any}
1975
+ */
1976
+ getVisibleRows() {
1977
+ const result = this.nativeElement.getVisibleRows();
1978
+ return result;
1979
+ }
1980
+
1981
+ /** Gets the result of the getVisibleRows or the rows hierarchy, when the Grid is in TreeGrid/Grouping mode.
1982
+ * @returns {any}
1983
+ */
1984
+ getViewRows() {
1985
+ const result = this.nativeElement.getViewRows();
1986
+ return result;
1987
+ }
1988
+
1989
+ /** Gets a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
1990
+ * @returns {any}
1991
+ */
1992
+ getState() {
1993
+ const result = this.nativeElement.getState();
1994
+ return result;
1995
+ }
1996
+
1997
+ /** Saves the Grid state and returns a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
1998
+ * @param {string} name?. state name
1999
+ * @returns {any}
2000
+ */
2001
+ saveState(name) {
2002
+ const result = this.nativeElement.saveState(name);
2003
+ return result;
2004
+ }
2005
+
2006
+ /** Loads a previously saved Grid state. You can pass a state name when there is a state which was previously saved with the saveState(stateName) method call or a state object returned by the saveState or getState method calls. The state object is required to be a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
2007
+ * @param {any} state. state name or state object
2008
+ * @returns {any}
2009
+ */
2010
+ loadState(state) {
2011
+ const result = this.nativeElement.loadState(state);
2012
+ return result;
2013
+ }
2014
+
2015
+ /** Resets the Grid state.
2016
+ */
2017
+ resetState(){
2018
+ if (this.nativeElement.isRendered) {
2019
+ this.nativeElement.resetState();
2020
+ }
2021
+ else
2022
+ {
2023
+ this.nativeElement.whenRendered(() => {
2024
+ this.nativeElement.resetState();
2025
+ });
2026
+ }
2027
+ }
2028
+
2029
+ /** Gets the changes from the batch edit.
2030
+ * @returns {{ upDated: [{ id: string, dataField: string, oldValue: Object, newValue: Object }], deleted: [{id: string, data: Object}], added: [{id: string, data: Object}] }}
2031
+ */
2032
+ getBatchEditChanges() {
2033
+ const result = this.nativeElement.getBatchEditChanges();
2034
+ return result;
2035
+ }
2036
+
2037
+ /** Gets a value of a cell.
2038
+ * @param {string | number} rowId. row bound id
2039
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2040
+ * @returns {any}
2041
+ */
2042
+ getCellValue(rowId, dataField) {
2043
+ const result = this.nativeElement.getCellValue(rowId, dataField);
2044
+ return result;
2045
+ }
2046
+
2047
+ /** Gets a column. Returns a Grid column object.
2048
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2049
+ * @returns {GridColumn}
2050
+ */
2051
+ getColumn(dataField) {
2052
+ const result = this.nativeElement.getColumn(dataField);
2053
+ return result;
2054
+ }
2055
+
2056
+ /** Gets a value of a column.
2057
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2058
+ * @param {string} propertyName. The property name.
2059
+ * @returns {any}
2060
+ */
2061
+ getColumnProperty(dataField, propertyName) {
2062
+ const result = this.nativeElement.getColumnProperty(dataField, propertyName);
2063
+ return result;
2064
+ }
2065
+
2066
+ /** Gets a value of a row.
2067
+ * @param {string | number} rowId. row bound id
2068
+ * @param {string} propertyName. The property name.
2069
+ * @returns {any}
2070
+ */
2071
+ getRowProperty(rowId, propertyName) {
2072
+ const result = this.nativeElement.getRowProperty(rowId, propertyName);
2073
+ return result;
2074
+ }
2075
+
2076
+ /** Gets a row. Returns a Grid row object.
2077
+ * @param {string | number} rowId. row bound id
2078
+ * @returns {GridRow}
2079
+ */
2080
+ getRow(rowId) {
2081
+ const result = this.nativeElement.getRow(rowId);
2082
+ return result;
2083
+ }
2084
+
2085
+ /** Gets a row by its index. Returns a Grid row object.
2086
+ * @param {number} rowIndex. row bound index
2087
+ * @returns {GridRow}
2088
+ */
2089
+ getRowByIndex(rowIndex) {
2090
+ const result = this.nativeElement.getRowByIndex(rowIndex);
2091
+ return result;
2092
+ }
2093
+
2094
+ /** Gets the Data source data associated to the row.
2095
+ * @param {string | number} rowId. row bound id
2096
+ * @returns {any}
2097
+ */
2098
+ getRowData(rowId) {
2099
+ const result = this.nativeElement.getRowData(rowId);
2100
+ return result;
2101
+ }
2102
+
2103
+ /** Gets the Row's id by a row index.
2104
+ * @param {number} rowIndex. row index
2105
+ * @returns {string | number}
2106
+ */
2107
+ getRowId(rowIndex) {
2108
+ const result = this.nativeElement.getRowId(rowIndex);
2109
+ return result;
2110
+ }
2111
+
2112
+ /** Gets whether a column's drop-down menu is opened.
2113
+ * @returns {boolean}
2114
+ */
2115
+ hasMenu() {
2116
+ const result = this.nativeElement.hasMenu();
2117
+ return result;
2118
+ }
2119
+
2120
+ /** This method returns true, if any rows in the Grid are selected.
2121
+ * @returns {boolean}
2122
+ */
2123
+ hasSelectedRows() {
2124
+ const result = this.nativeElement.hasSelectedRows();
2125
+ return result;
2126
+ }
2127
+
2128
+ /** Hides the Details of a Row, when row details are enabled.
2129
+ * @param {string | number} rowId. row bound id
2130
+ */
2131
+ hideDetail(rowId){
2132
+ if (this.nativeElement.isRendered) {
2133
+ this.nativeElement.hideDetail(rowId);
2134
+ }
2135
+ else
2136
+ {
2137
+ this.nativeElement.whenRendered(() => {
2138
+ this.nativeElement.hideDetail(rowId);
2139
+ });
2140
+ }
2141
+ }
2142
+
2143
+ /** Highlights a column. Highlights a Grid column.
2144
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2145
+ */
2146
+ highlightColumn(dataField){
2147
+ if (this.nativeElement.isRendered) {
2148
+ this.nativeElement.highlightColumn(dataField);
2149
+ }
2150
+ else
2151
+ {
2152
+ this.nativeElement.whenRendered(() => {
2153
+ this.nativeElement.highlightColumn(dataField);
2154
+ });
2155
+ }
2156
+ }
2157
+
2158
+ /** Highlights a cell. Calling the method a second time toggle the highlight state.
2159
+ * @param {string | number} rowId. row bound id
2160
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2161
+ * @param {string} className?. CSS Class Name
2162
+ */
2163
+ highlightCell(rowId, dataField, className){
2164
+ if (this.nativeElement.isRendered) {
2165
+ this.nativeElement.highlightCell(rowId, dataField, className);
2166
+ }
2167
+ else
2168
+ {
2169
+ this.nativeElement.whenRendered(() => {
2170
+ this.nativeElement.highlightCell(rowId, dataField, className);
2171
+ });
2172
+ }
2173
+ }
2174
+
2175
+ /** Highlights a row. Calling the method a second time toggle the highlight state.
2176
+ * @param {string | number} rowId. row bound id
2177
+ * @param {string} className?. CSS Class Name
2178
+ */
2179
+ highlightRow(rowId, className){
2180
+ if (this.nativeElement.isRendered) {
2181
+ this.nativeElement.highlightRow(rowId, className);
2182
+ }
2183
+ else
2184
+ {
2185
+ this.nativeElement.whenRendered(() => {
2186
+ this.nativeElement.highlightRow(rowId, className);
2187
+ });
2188
+ }
2189
+ }
2190
+
2191
+ /** Inserts a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
2192
+ * @param {any} data. row data matching the data source
2193
+ * @param {number} index?. Determines the insert index. The default value is the last index.
2194
+ * @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
2195
+ */
2196
+ insertRow(data, index, callback){
2197
+ if (this.nativeElement.isRendered) {
2198
+ this.nativeElement.insertRow(data, index, callback);
2199
+ }
2200
+ else
2201
+ {
2202
+ this.nativeElement.whenRendered(() => {
2203
+ this.nativeElement.insertRow(data, index, callback);
2204
+ });
2205
+ }
2206
+ }
2207
+
2208
+ /** Opens a column drop-down menu.
2209
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2210
+ */
2211
+ openMenu(dataField){
2212
+ if (this.nativeElement.isRendered) {
2213
+ this.nativeElement.openMenu(dataField);
2214
+ }
2215
+ else
2216
+ {
2217
+ this.nativeElement.whenRendered(() => {
2218
+ this.nativeElement.openMenu(dataField);
2219
+ });
2220
+ }
2221
+ }
2222
+
2223
+ /** Opens a context menu. Note that context menu should be enabled.
2224
+ * @param {number} left. Left Position.
2225
+ * @param {number} top. Top Position.
2226
+ */
2227
+ openContextMenu(left, top){
2228
+ if (this.nativeElement.isRendered) {
2229
+ this.nativeElement.openContextMenu(left, top);
2230
+ }
2231
+ else
2232
+ {
2233
+ this.nativeElement.whenRendered(() => {
2234
+ this.nativeElement.openContextMenu(left, top);
2235
+ });
2236
+ }
2237
+ }
2238
+
2239
+ /** Prints the Grid data. The method uses the options of the dataExport property. When printed, the Grid will not display any scrollbars so all rows and columns will be displayed. The grid will auto resize width and height to fit all contents. To customize the printing options, you can use the dataExport property.
2240
+ */
2241
+ print(){
2242
+ if (this.nativeElement.isRendered) {
2243
+ this.nativeElement.print();
2244
+ }
2245
+ else
2246
+ {
2247
+ this.nativeElement.whenRendered(() => {
2248
+ this.nativeElement.print();
2249
+ });
2250
+ }
2251
+ }
2252
+
2253
+ /** Renders the grid. This method will make a full-refresh like in the initial Grid creation. It will create Rows, Columns and Cells HTML Elements and then refresh the Grid layout.
2254
+ */
2255
+ refresh(){
2256
+ if (this.nativeElement.isRendered) {
2257
+ this.nativeElement.refresh();
2258
+ }
2259
+ else
2260
+ {
2261
+ this.nativeElement.whenRendered(() => {
2262
+ this.nativeElement.refresh();
2263
+ });
2264
+ }
2265
+ }
2266
+
2267
+ /** Refreshes the grid with the current property values. This method will refresh the Grid layout.
2268
+ */
2269
+ refreshView(){
2270
+ if (this.nativeElement.isRendered) {
2271
+ this.nativeElement.refreshView();
2272
+ }
2273
+ else
2274
+ {
2275
+ this.nativeElement.whenRendered(() => {
2276
+ this.nativeElement.refreshView();
2277
+ });
2278
+ }
2279
+ }
2280
+
2281
+ /** Refreshes the grid cells in view. The method is useful for live-updates of cell values.
2282
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2283
+ * @param {boolean} refreshFilters?. Set this to false, if you need to make multiple removeFilter calls.
2284
+ */
2285
+ removeFilter(dataField, refreshFilters){
2286
+ if (this.nativeElement.isRendered) {
2287
+ this.nativeElement.removeFilter(dataField, refreshFilters);
2288
+ }
2289
+ else
2290
+ {
2291
+ this.nativeElement.whenRendered(() => {
2292
+ this.nativeElement.removeFilter(dataField, refreshFilters);
2293
+ });
2294
+ }
2295
+ }
2296
+
2297
+ /** Removes a column filter.
2298
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2299
+ */
2300
+ removeGroup(dataField){
2301
+ if (this.nativeElement.isRendered) {
2302
+ this.nativeElement.removeGroup(dataField);
2303
+ }
2304
+ else
2305
+ {
2306
+ this.nativeElement.whenRendered(() => {
2307
+ this.nativeElement.removeGroup(dataField);
2308
+ });
2309
+ }
2310
+ }
2311
+
2312
+ /** Removes a group by data field. This method will remove a group to the Grid when grouping is enabled.
2313
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2314
+ */
2315
+ removeSort(dataField){
2316
+ if (this.nativeElement.isRendered) {
2317
+ this.nativeElement.removeSort(dataField);
2318
+ }
2319
+ else
2320
+ {
2321
+ this.nativeElement.whenRendered(() => {
2322
+ this.nativeElement.removeSort(dataField);
2323
+ });
2324
+ }
2325
+ }
2326
+
2327
+ /** Removes a sorting by data field. This method will remove a sorting from a Grid column.
2328
+ */
2329
+ refreshSort(){
2330
+ if (this.nativeElement.isRendered) {
2331
+ this.nativeElement.refreshSort();
2332
+ }
2333
+ else
2334
+ {
2335
+ this.nativeElement.whenRendered(() => {
2336
+ this.nativeElement.refreshSort();
2337
+ });
2338
+ }
2339
+ }
2340
+
2341
+ /** Re-sorts the Grid by using the already applied column sortings and re-renders the Grid.
2342
+ */
2343
+ revertBatchEdit(){
2344
+ if (this.nativeElement.isRendered) {
2345
+ this.nativeElement.revertBatchEdit();
2346
+ }
2347
+ else
2348
+ {
2349
+ this.nativeElement.whenRendered(() => {
2350
+ this.nativeElement.revertBatchEdit();
2351
+ });
2352
+ }
2353
+ }
2354
+
2355
+ /** Reverts the batch edit changes. This method cancels all changes made by the end-user.
2356
+ * @param {string | number} dataField. The data field or column index of the first grid column.
2357
+ * @param {string | number} referenceDataField. The data field or column index of the second grid column.
2358
+ * @param {boolean} insertAfter?. Determines whether to insert the first column after the reference column.
2359
+ */
2360
+ reorderColumns(dataField, referenceDataField, insertAfter){
2361
+ if (this.nativeElement.isRendered) {
2362
+ this.nativeElement.reorderColumns(dataField, referenceDataField, insertAfter);
2363
+ }
2364
+ else
2365
+ {
2366
+ this.nativeElement.whenRendered(() => {
2367
+ this.nativeElement.reorderColumns(dataField, referenceDataField, insertAfter);
2368
+ });
2369
+ }
2370
+ }
2371
+
2372
+ /** Reorders two DataGrid columns.
2373
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2374
+ * @param {string | null} sortOrder. column's sort order. Use 'asc', 'desc' or null.
2375
+ */
2376
+ sortBy(dataField, sortOrder){
2377
+ if (this.nativeElement.isRendered) {
2378
+ this.nativeElement.sortBy(dataField, sortOrder);
2379
+ }
2380
+ else
2381
+ {
2382
+ this.nativeElement.whenRendered(() => {
2383
+ this.nativeElement.sortBy(dataField, sortOrder);
2384
+ });
2385
+ }
2386
+ }
2387
+
2388
+ /** Sorts the Grid by a data field. This method will add or remove sorting, when sorting is enabled. To remove the sorting, use 'null' for the sortOrder parameter.
2389
+ * @param {string | number} dataField. The data field or column index of the first grid column.
2390
+ * @param {string | number} referenceDataField. The data field or column index of the second grid column.
2391
+ */
2392
+ swapColumns(dataField, referenceDataField){
2393
+ if (this.nativeElement.isRendered) {
2394
+ this.nativeElement.swapColumns(dataField, referenceDataField);
2395
+ }
2396
+ else
2397
+ {
2398
+ this.nativeElement.whenRendered(() => {
2399
+ this.nativeElement.swapColumns(dataField, referenceDataField);
2400
+ });
2401
+ }
2402
+ }
2403
+
2404
+ /** Swaps two DataGrid columns.
2405
+ */
2406
+ saveBatchEdit(){
2407
+ if (this.nativeElement.isRendered) {
2408
+ this.nativeElement.saveBatchEdit();
2409
+ }
2410
+ else
2411
+ {
2412
+ this.nativeElement.whenRendered(() => {
2413
+ this.nativeElement.saveBatchEdit();
2414
+ });
2415
+ }
2416
+ }
2417
+
2418
+ /** Saves the batch edit changes. This method confirms the editing changes made by the end-user.
2419
+ * @param {string | number} rowId. row bound id
2420
+ * @param {string} dataField?. column bound data field
2421
+ */
2422
+ select(rowId, dataField){
2423
+ if (this.nativeElement.isRendered) {
2424
+ this.nativeElement.select(rowId, dataField);
2425
+ }
2426
+ else
2427
+ {
2428
+ this.nativeElement.whenRendered(() => {
2429
+ this.nativeElement.select(rowId, dataField);
2430
+ });
2431
+ }
2432
+ }
2433
+
2434
+ /** Selects a row, cell or column.
2435
+ * @param {string | number} rowId. row bound id
2436
+ * @param {string} dataField. column bound data field
2437
+ * @param {string | number} endRowId. row bound id
2438
+ * @param {string} endDataField. column bound data field
2439
+ */
2440
+ selectRange(rowId, dataField, endRowId, endDataField){
2441
+ if (this.nativeElement.isRendered) {
2442
+ this.nativeElement.selectRange(rowId, dataField, endRowId, endDataField);
2443
+ }
2444
+ else
2445
+ {
2446
+ this.nativeElement.whenRendered(() => {
2447
+ this.nativeElement.selectRange(rowId, dataField, endRowId, endDataField);
2448
+ });
2449
+ }
2450
+ }
2451
+
2452
+ /** Selects a range of rows, cells or columns. The result of the method depends on the selection configuration of the Grid.
2453
+ * @param {string | number} rowId. row bound id
2454
+ * @param {string | number} endRowId. row bound id
2455
+ */
2456
+ selectRowsRange(rowId, endRowId){
2457
+ if (this.nativeElement.isRendered) {
2458
+ this.nativeElement.selectRowsRange(rowId, endRowId);
2459
+ }
2460
+ else
2461
+ {
2462
+ this.nativeElement.whenRendered(() => {
2463
+ this.nativeElement.selectRowsRange(rowId, endRowId);
2464
+ });
2465
+ }
2466
+ }
2467
+
2468
+ /** Selects a range of rows.
2469
+ * @param {(string | number)[]} rowId. Array of row ids
2470
+ */
2471
+ selectRows(rowId){
2472
+ if (this.nativeElement.isRendered) {
2473
+ this.nativeElement.selectRows(rowId);
2474
+ }
2475
+ else
2476
+ {
2477
+ this.nativeElement.whenRendered(() => {
2478
+ this.nativeElement.selectRows(rowId);
2479
+ });
2480
+ }
2481
+ }
2482
+
2483
+ /** Selects multiple rows by their ids.
2484
+ */
2485
+ selectAllRows(){
2486
+ if (this.nativeElement.isRendered) {
2487
+ this.nativeElement.selectAllRows();
2488
+ }
2489
+ else
2490
+ {
2491
+ this.nativeElement.whenRendered(() => {
2492
+ this.nativeElement.selectAllRows();
2493
+ });
2494
+ }
2495
+ }
2496
+
2497
+ /** Selects all rows.
2498
+ * @param {number[]} rowIndex. Array of row indexes
2499
+ */
2500
+ selectRowsByIndex(rowIndex){
2501
+ if (this.nativeElement.isRendered) {
2502
+ this.nativeElement.selectRowsByIndex(rowIndex);
2503
+ }
2504
+ else
2505
+ {
2506
+ this.nativeElement.whenRendered(() => {
2507
+ this.nativeElement.selectRowsByIndex(rowIndex);
2508
+ });
2509
+ }
2510
+ }
2511
+
2512
+ /** Selects multiple rows by their index.
2513
+ * @param {string} query. Search query
2514
+ * @param {string} dataField?. Column data field.
2515
+ * @param {string} condition?. Conditions which you can use in the expressions: '=', 'EQUAL','&lt;&gt;', 'NOT_EQUAL', '!=', '&lt;', 'LESS_THAN','&gt;', 'GREATER_THAN', '&lt;=', 'LESS_THAN_OR_EQUAL', '&gt;=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
2516
+ */
2517
+ selectRowsByQuery(query, dataField, condition){
2518
+ if (this.nativeElement.isRendered) {
2519
+ this.nativeElement.selectRowsByQuery(query, dataField, condition);
2520
+ }
2521
+ else
2522
+ {
2523
+ this.nativeElement.whenRendered(() => {
2524
+ this.nativeElement.selectRowsByQuery(query, dataField, condition);
2525
+ });
2526
+ }
2527
+ }
2528
+
2529
+ /** Selects rows by using a query. Example: grid.selectRowsByQuery('nancy'); selects all rows that have 'nancy' value. Example 2: grid.selectRowsByQuery('nancy, davolio'); selects all rows that have 'nancy' and 'davolio' values in the same row. Example 3: grid.selectRowsByQuery(5, 'quantity', '>'); selects all rows where the value of the 'quantity' field is > 5.
2530
+ * @param {(string | number)[]} rowIds. Array of row ids
2531
+ * @param {string[]} dataFields. Array of data fields.
2532
+ */
2533
+ selectCells(rowIds, dataFields){
2534
+ if (this.nativeElement.isRendered) {
2535
+ this.nativeElement.selectCells(rowIds, dataFields);
2536
+ }
2537
+ else
2538
+ {
2539
+ this.nativeElement.whenRendered(() => {
2540
+ this.nativeElement.selectCells(rowIds, dataFields);
2541
+ });
2542
+ }
2543
+ }
2544
+
2545
+ /** Selects multiple cells by their ids and dataFields. Example: grid.selectCells([0, 1, 2], ['firstName', 'quantity', 'date']); - selects the 'firstName', 'quantity' and 'date' cells from the first, second and third rows.
2546
+ * @param {string} query. Search query
2547
+ */
2548
+ selectCellsByQuery(query){
2549
+ if (this.nativeElement.isRendered) {
2550
+ this.nativeElement.selectCellsByQuery(query);
2551
+ }
2552
+ else
2553
+ {
2554
+ this.nativeElement.whenRendered(() => {
2555
+ this.nativeElement.selectCellsByQuery(query);
2556
+ });
2557
+ }
2558
+ }
2559
+
2560
+ /** Selects cells by using a query. Example: grid.selectCellsByQuery('nancy'); selects all cells that have 'nancy' value. Example 2: grid.selectCellsByQuery('nancy, davolio'); selects all cells that have 'nancy' and 'davolio' values in the same row.
2561
+ * @param {string | number} rowId. row bound id
2562
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2563
+ * @param {string | number | Date | boolean} value. New Cell value.
2564
+ */
2565
+ setCellValue(rowId, dataField, value){
2566
+ if (this.nativeElement.isRendered) {
2567
+ this.nativeElement.setCellValue(rowId, dataField, value);
2568
+ }
2569
+ else
2570
+ {
2571
+ this.nativeElement.whenRendered(() => {
2572
+ this.nativeElement.setCellValue(rowId, dataField, value);
2573
+ });
2574
+ }
2575
+ }
2576
+
2577
+ /** Sets a new value to a cell.
2578
+ * @param {GridColumn[]} columns. Columns array.
2579
+ */
2580
+ setColumns(columns){
2581
+ if (this.nativeElement.isRendered) {
2582
+ this.nativeElement.setColumns(columns);
2583
+ }
2584
+ else
2585
+ {
2586
+ this.nativeElement.whenRendered(() => {
2587
+ this.nativeElement.setColumns(columns);
2588
+ });
2589
+ }
2590
+ }
2591
+
2592
+ /** Sets new columns to the Grid. The grid will redraw all the column headers, and then redraw all of the rows. By using 'setColumns', the grid will compare the new columns passed as argument to the method with existing columns. The Grid will automatically create new columns, keep old columns if they already exist and remove columns which are not in the 'setColumns' method argument. The benefit of that is that the state of the column like(sort, filter, width or other) will be kept, if the column exsits after the new columns are applied.
2593
+ * @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2594
+ * @param {string} propertyName. The column property's name.
2595
+ * @param {any} value. The new property value.
2596
+ */
2597
+ setColumnProperty(dataField, propertyName, value){
2598
+ if (this.nativeElement.isRendered) {
2599
+ this.nativeElement.setColumnProperty(dataField, propertyName, value);
2600
+ }
2601
+ else
2602
+ {
2603
+ this.nativeElement.whenRendered(() => {
2604
+ this.nativeElement.setColumnProperty(dataField, propertyName, value);
2605
+ });
2606
+ }
2607
+ }
2608
+
2609
+ /** Sets a property to a column.
2610
+ * @param {string | number} rowId. row bound id
2611
+ * @param {string} propertyName. The row property's name.
2612
+ * @param {any} value. The new property value.
2613
+ */
2614
+ setRowProperty(rowId, propertyName, value){
2615
+ if (this.nativeElement.isRendered) {
2616
+ this.nativeElement.setRowProperty(rowId, propertyName, value);
2617
+ }
2618
+ else
2619
+ {
2620
+ this.nativeElement.whenRendered(() => {
2621
+ this.nativeElement.setRowProperty(rowId, propertyName, value);
2622
+ });
2623
+ }
2624
+ }
2625
+
2626
+ /** Sets a property to a row.
2627
+ * @param {string | number} rowId. row bound id
2628
+ * @param {{background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}} rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
2629
+ */
2630
+ setRowStyle(rowId, rowStyle){
2631
+ if (this.nativeElement.isRendered) {
2632
+ this.nativeElement.setRowStyle(rowId, rowStyle);
2633
+ }
2634
+ else
2635
+ {
2636
+ this.nativeElement.whenRendered(() => {
2637
+ this.nativeElement.setRowStyle(rowId, rowStyle);
2638
+ });
2639
+ }
2640
+ }
2641
+
2642
+ /** Sets a style to a row.
2643
+ * @param {string | number} rowId. row bound id
2644
+ * @param {string} dataField. Column bound field name.
2645
+ * @param {{background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}} rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
2646
+ */
2647
+ setCellStyle(rowId, dataField, rowStyle){
2648
+ if (this.nativeElement.isRendered) {
2649
+ this.nativeElement.setCellStyle(rowId, dataField, rowStyle);
2650
+ }
2651
+ else
2652
+ {
2653
+ this.nativeElement.whenRendered(() => {
2654
+ this.nativeElement.setCellStyle(rowId, dataField, rowStyle);
2655
+ });
2656
+ }
2657
+ }
2658
+
2659
+ /** Sets a style to a row.
2660
+ * @param {number} value. The new scroll position
2661
+ */
2662
+ setVerticalScrollValue(value){
2663
+ if (this.nativeElement.isRendered) {
2664
+ this.nativeElement.setVerticalScrollValue(value);
2665
+ }
2666
+ else
2667
+ {
2668
+ this.nativeElement.whenRendered(() => {
2669
+ this.nativeElement.setVerticalScrollValue(value);
2670
+ });
2671
+ }
2672
+ }
2673
+
2674
+ /** Sets the position of the vertical scrollbar. You can use this method in combination with the getVerticalScrollValue and getVerticalScrollMax.
2675
+ * @param {number} value. The new scroll position
2676
+ */
2677
+ setHorizontalScrollValue(value){
2678
+ if (this.nativeElement.isRendered) {
2679
+ this.nativeElement.setHorizontalScrollValue(value);
2680
+ }
2681
+ else
2682
+ {
2683
+ this.nativeElement.whenRendered(() => {
2684
+ this.nativeElement.setHorizontalScrollValue(value);
2685
+ });
2686
+ }
2687
+ }
2688
+
2689
+ /** Sets the position of the horizontal scrollbar. You can use this method in combination with the getHorizontalScrollValue and getHorizontalScrollMax.
2690
+ * @param {string | number} rowId. row bound id
2691
+ */
2692
+ showDetail(rowId){
2693
+ if (this.nativeElement.isRendered) {
2694
+ this.nativeElement.showDetail(rowId);
2695
+ }
2696
+ else
2697
+ {
2698
+ this.nativeElement.whenRendered(() => {
2699
+ this.nativeElement.showDetail(rowId);
2700
+ });
2701
+ }
2702
+ }
2703
+
2704
+ /** Shows the Details of a Row, when row details are enabled.
2705
+ * @param {string | number} rowId. row bound id
2706
+ * @param {any} data. row data matching the data source
2707
+ * @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
2708
+ */
2709
+ updateRow(rowId, data, callback){
2710
+ if (this.nativeElement.isRendered) {
2711
+ this.nativeElement.updateRow(rowId, data, callback);
2712
+ }
2713
+ else
2714
+ {
2715
+ this.nativeElement.whenRendered(() => {
2716
+ this.nativeElement.updateRow(rowId, data, callback);
2717
+ });
2718
+ }
2719
+ }
2720
+
2721
+ /** Updates a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
2722
+ * @param {string | number} rowId. row bound id
2723
+ * @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
2724
+ */
2725
+ unselect(rowId, dataField){
2726
+ if (this.nativeElement.isRendered) {
2727
+ this.nativeElement.unselect(rowId, dataField);
2728
+ }
2729
+ else
2730
+ {
2731
+ this.nativeElement.whenRendered(() => {
2732
+ this.nativeElement.unselect(rowId, dataField);
2733
+ });
2734
+ }
2735
+ }
2736
+
2737
+ /** Unselects a row, cell or column.
2738
+ * @param {string | number} rowId. row bound id
2739
+ */
2740
+ uncheckRow(rowId){
2741
+ if (this.nativeElement.isRendered) {
2742
+ this.nativeElement.uncheckRow(rowId);
2743
+ }
2744
+ else
2745
+ {
2746
+ this.nativeElement.whenRendered(() => {
2747
+ this.nativeElement.uncheckRow(rowId);
2748
+ });
2749
+ }
2750
+ }
2751
+
2752
+ /** Unchecks a TreeGrid row. Sets its check-box to false.
2753
+ */
2754
+ uncheckAllRows(){
2755
+ if (this.nativeElement.isRendered) {
2756
+ this.nativeElement.uncheckAllRows();
2757
+ }
2758
+ else
2759
+ {
2760
+ this.nativeElement.whenRendered(() => {
2761
+ this.nativeElement.uncheckAllRows();
2762
+ });
2763
+ }
2764
+ }
2765
+
2766
+ /** Unchecks all TreeGrid or Grouping rows. Sets all check-boxes to false.
2767
+ * @param {string | number} rowId. row bound id
2768
+ */
2769
+ toggleRow(rowId){
2770
+ if (this.nativeElement.isRendered) {
2771
+ this.nativeElement.toggleRow(rowId);
2772
+ }
2773
+ else
2774
+ {
2775
+ this.nativeElement.whenRendered(() => {
2776
+ this.nativeElement.toggleRow(rowId);
2777
+ });
2778
+ }
2779
+ }
2780
+
2781
+
2782
+
2783
+ constructor(props) {
2784
+ super(props);
2785
+ this.componentRef = React.createRef();
2786
+ }
2787
+
2788
+ componentDidRender(initialize) {
2789
+ const that = this;
2790
+ const props = {};
2791
+ const events = {};
2792
+ let styles = null;
2793
+
2794
+ for(let prop in that.props) {
2795
+ if (prop === 'children') {
2796
+ continue;
2797
+ }
2798
+
2799
+ if (prop === 'style') {
2800
+ styles = that.props[prop];
2801
+ continue;
2802
+ }
2803
+
2804
+ if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
2805
+ events[prop] = that.props[prop];
2806
+ continue;
2807
+ }
2808
+
2809
+ props[prop] = that.props[prop];
2810
+ }
2811
+
2812
+ if (initialize) {
2813
+ that.nativeElement = this.componentRef.current;
2814
+ }
2815
+
2816
+ for(let prop in props) {
2817
+ if (prop === 'class' || prop === 'className') {
2818
+ const classNames = props[prop].trim().split(' ');
2819
+
2820
+ for(let className in classNames) {
2821
+ if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
2822
+ that.nativeElement.classList.add(classNames[className]);
2823
+ }
2824
+ }
2825
+
2826
+ continue;
2827
+ }
2828
+
2829
+ if (props[prop] !== that.nativeElement[prop]) {
2830
+ const normalizeProp = (str) => {
2831
+ return str.replace(/-([a-z])/g, function (g) {
2832
+ return g[1].toUpperCase();
2833
+ });
2834
+ }
2835
+
2836
+ if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
2837
+ that.nativeElement.setAttribute(prop, '');
2838
+ }
2839
+
2840
+ const normalizedProp = normalizeProp(prop);
2841
+
2842
+ that.nativeElement[normalizedProp] = props[prop];
2843
+ }
2844
+ }
2845
+
2846
+
2847
+ for(let eventName in events) {
2848
+ that[eventName] = events[eventName];
2849
+ that.nativeElement[eventName.toLowerCase()] = events[eventName];
2850
+ }
2851
+
2852
+ if (initialize) {
2853
+ Smart.Render();
2854
+
2855
+ if (that.onCreate) {
2856
+ that.onCreate();
2857
+ }
2858
+
2859
+ that.nativeElement.whenRendered(() => {
2860
+ if (that.onReady) {
2861
+ that.onReady();
2862
+ }
2863
+ });
2864
+ }
2865
+
2866
+ // setup styles.
2867
+
2868
+ if (styles) {
2869
+ for(let styleName in styles) {
2870
+ that.nativeElement.style[styleName] = styles[styleName];
2871
+ }
2872
+ }
2873
+ }
2874
+
2875
+ componentDidMount() {
2876
+ this.componentDidRender(true);
2877
+ }
2878
+
2879
+ componentDidUpdate() {
2880
+ this.componentDidRender(false);
2881
+ }
2882
+
2883
+ componentWillUnmount() {
2884
+ const that = this;
2885
+
2886
+ if (!that.nativeElement) {
2887
+ return;
2888
+ }
2889
+
2890
+ that.nativeElement.whenRenderedCallbacks = [];
2891
+
2892
+ for(let i = 0; i < that.eventListeners.length; i++){
2893
+ const eventName = that.eventListeners[i];
2894
+
2895
+ that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
2896
+ }
2897
+ }
2898
+
2899
+ render() {
2900
+ return (
2901
+ React.createElement("smart-grid", { ref: this.componentRef }, this.props.children)
2902
+ )
2903
+ }
2904
+ }
2905
+
2906
+ export default Grid;