smart-webcomponents-react 14.2.83 → 14.3.0

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 (376) hide show
  1. package/alertwindow/alertwindow.d.ts +5 -5
  2. package/alertwindow/alertwindow.esm.js +10 -85
  3. package/alertwindow/alertwindow.umd.js +1134 -1209
  4. package/array/array.d.ts +5 -5
  5. package/array/array.esm.js +13 -88
  6. package/array/array.umd.js +752 -827
  7. package/barcode/barcode.d.ts +3 -3
  8. package/barcode/barcode.esm.js +6 -61
  9. package/barcode/barcode.umd.js +311 -366
  10. package/button/dropdownbutton.d.ts +2 -2
  11. package/button/multisplitbutton.d.ts +2 -2
  12. package/calendar/calendar.d.ts +2 -2
  13. package/calendar/calendar.esm.js +4 -49
  14. package/calendar/calendar.umd.js +710 -755
  15. package/card/cardview.d.ts +1 -1
  16. package/cardview/cardview.d.ts +1 -1
  17. package/cardview/cardview.esm.js +2 -37
  18. package/cardview/cardview.umd.js +515 -550
  19. package/chart/chart.d.ts +9 -9
  20. package/chart/chart.esm.js +18 -133
  21. package/chart/chart.umd.js +822 -937
  22. package/chart/ganttchart.d.ts +20 -20
  23. package/combobox/combobox.d.ts +4 -4
  24. package/combobox/combobox.esm.js +8 -73
  25. package/combobox/combobox.umd.js +1341 -1406
  26. package/datetimepicker/datetimepicker.d.ts +1 -1
  27. package/datetimepicker/datetimepicker.esm.js +2 -37
  28. package/datetimepicker/datetimepicker.umd.js +826 -861
  29. package/dialogwindow/dialogwindow.d.ts +5 -5
  30. package/dialogwindow/dialogwindow.esm.js +10 -85
  31. package/dialogwindow/dialogwindow.umd.js +1134 -1209
  32. package/dockinglayout/dockinglayout.d.ts +7 -7
  33. package/dockinglayout/dockinglayout.esm.js +14 -109
  34. package/dockinglayout/dockinglayout.umd.js +765 -860
  35. package/dropdownbutton/dropdownbutton.d.ts +2 -2
  36. package/dropdownbutton/dropdownbutton.esm.js +4 -49
  37. package/dropdownbutton/dropdownbutton.umd.js +527 -572
  38. package/dropdownlist/dropdownlist.d.ts +4 -4
  39. package/dropdownlist/dropdownlist.esm.js +8 -73
  40. package/dropdownlist/dropdownlist.umd.js +1275 -1340
  41. package/editor/editor.d.ts +11 -9
  42. package/editor/editor.esm.js +14 -109
  43. package/editor/editor.umd.js +911 -1006
  44. package/fileupload/fileupload.d.ts +2 -1
  45. package/filterbuilder/filterbuilder.d.ts +1 -1
  46. package/filterbuilder/filterbuilder.esm.js +2 -37
  47. package/filterbuilder/filterbuilder.umd.js +463 -498
  48. package/filterpanel/filterpanel.d.ts +1 -1
  49. package/filterpanel/filterpanel.esm.js +2 -37
  50. package/filterpanel/filterpanel.umd.js +354 -389
  51. package/form/form.d.ts +1 -1
  52. package/form/form.esm.js +4 -49
  53. package/form/form.umd.js +1016 -1061
  54. package/form/formgroup.d.ts +1 -1
  55. package/ganttchart/ganttchart.d.ts +20 -20
  56. package/ganttchart/ganttchart.esm.js +40 -265
  57. package/ganttchart/ganttchart.umd.js +1666 -1891
  58. package/gauge/gauge.d.ts +2 -2
  59. package/gauge/gauge.esm.js +4 -49
  60. package/gauge/gauge.umd.js +664 -709
  61. package/grid/grid.d.ts +56 -51
  62. package/grid/grid.esm.js +96 -460
  63. package/grid/grid.umd.js +2107 -2471
  64. package/index.d.ts +45 -3
  65. package/input/input.d.ts +2 -2
  66. package/input/input.esm.js +4 -49
  67. package/input/input.umd.js +505 -550
  68. package/input/numberinput.d.ts +2 -2
  69. package/input/phoneinput.d.ts +4 -4
  70. package/kanban/kanban.d.ts +6 -6
  71. package/kanban/kanban.esm.js +12 -97
  72. package/kanban/kanban.umd.js +1334 -1419
  73. package/layout/dockinglayout.d.ts +7 -7
  74. package/listbox/listbox.d.ts +5 -5
  75. package/listbox/listbox.esm.js +10 -85
  76. package/listbox/listbox.umd.js +1170 -1245
  77. package/listmenu/listmenu.d.ts +1 -1
  78. package/listmenu/listmenu.esm.js +2 -37
  79. package/listmenu/listmenu.umd.js +1005 -1040
  80. package/menu/listmenu.d.ts +1 -1
  81. package/menu/menu.d.ts +1 -1
  82. package/menu/menu.esm.js +2 -37
  83. package/menu/menu.umd.js +1025 -1060
  84. package/multilinetextbox/multilinetextbox.d.ts +1 -1
  85. package/multilinetextbox/multilinetextbox.esm.js +2 -37
  86. package/multilinetextbox/multilinetextbox.umd.js +907 -942
  87. package/multilinewindow/multilinewindow.d.ts +5 -5
  88. package/multilinewindow/multilinewindow.esm.js +10 -85
  89. package/multilinewindow/multilinewindow.umd.js +1134 -1209
  90. package/multisplitbutton/multisplitbutton.d.ts +2 -2
  91. package/multisplitbutton/multisplitbutton.esm.js +4 -49
  92. package/multisplitbutton/multisplitbutton.umd.js +941 -986
  93. package/numberinput/numberinput.d.ts +2 -2
  94. package/numberinput/numberinput.esm.js +4 -49
  95. package/numberinput/numberinput.umd.js +348 -393
  96. package/numerictextbox/numerictextbox.d.ts +1 -1
  97. package/numerictextbox/numerictextbox.esm.js +2 -37
  98. package/numerictextbox/numerictextbox.umd.js +592 -627
  99. package/package.json +1 -1
  100. package/phoneinput/phoneinput.d.ts +4 -4
  101. package/phoneinput/phoneinput.esm.js +8 -73
  102. package/phoneinput/phoneinput.umd.js +386 -451
  103. package/pivottable/pivottable.d.ts +3 -3
  104. package/pivottable/pivottable.esm.js +6 -61
  105. package/pivottable/pivottable.umd.js +762 -817
  106. package/progresswindow/progresswindow.d.ts +5 -5
  107. package/progresswindow/progresswindow.esm.js +10 -85
  108. package/progresswindow/progresswindow.umd.js +1134 -1209
  109. package/promptwindow/promptwindow.d.ts +5 -5
  110. package/promptwindow/promptwindow.esm.js +10 -85
  111. package/promptwindow/promptwindow.umd.js +1134 -1209
  112. package/qrcode/qrcode.d.ts +3 -3
  113. package/qrcode/qrcode.esm.js +6 -61
  114. package/qrcode/qrcode.umd.js +333 -388
  115. package/querybuilder/querybuilder.d.ts +6 -1
  116. package/querybuilder/querybuilder.esm.js +14 -38
  117. package/querybuilder/querybuilder.umd.js +446 -470
  118. package/rating/rating.d.ts +1 -1
  119. package/rating/rating.esm.js +2 -37
  120. package/rating/rating.umd.js +261 -296
  121. package/scheduler/scheduler.d.ts +17 -17
  122. package/scheduler/scheduler.esm.js +34 -229
  123. package/scheduler/scheduler.umd.js +1782 -1977
  124. package/slider/slider.d.ts +2 -2
  125. package/slider/slider.esm.js +4 -49
  126. package/slider/slider.umd.js +642 -687
  127. package/source/modules/smart.accordion.js +1 -1
  128. package/source/modules/smart.array.js +2 -2
  129. package/source/modules/smart.barcode.js +1 -1
  130. package/source/modules/smart.breadcrumb.js +1 -1
  131. package/source/modules/smart.button.js +1 -1
  132. package/source/modules/smart.buttongroup.js +1 -1
  133. package/source/modules/smart.calendar.js +3 -3
  134. package/source/modules/smart.card.js +1 -1
  135. package/source/modules/smart.cardview.js +4 -4
  136. package/source/modules/smart.carousel.js +1 -1
  137. package/source/modules/smart.chart.js +1 -1
  138. package/source/modules/smart.checkbox.js +1 -1
  139. package/source/modules/smart.checkinput.js +2 -2
  140. package/source/modules/smart.chip.js +1 -1
  141. package/source/modules/smart.colorinput.js +2 -2
  142. package/source/modules/smart.colorpanel.js +2 -2
  143. package/source/modules/smart.colorpicker.js +2 -2
  144. package/source/modules/smart.combobox.js +2 -2
  145. package/source/modules/smart.common.js +1 -1
  146. package/source/modules/smart.countryinput.js +2 -2
  147. package/source/modules/smart.dateinput.js +3 -3
  148. package/source/modules/smart.daterangeinput.js +4 -4
  149. package/source/modules/smart.datetimepicker.js +3 -3
  150. package/source/modules/smart.dockinglayout.js +1 -1
  151. package/source/modules/smart.dropdownbutton.js +1 -1
  152. package/source/modules/smart.dropdownlist.js +2 -2
  153. package/source/modules/smart.editor.js +5 -5
  154. package/source/modules/smart.element.js +1 -1
  155. package/source/modules/smart.fileupload.js +3 -3
  156. package/source/modules/smart.form.js +2 -2
  157. package/source/modules/smart.formulaparser.js +1 -1
  158. package/source/modules/smart.ganttchart.js +5 -5
  159. package/source/modules/smart.gauge.js +1 -1
  160. package/source/modules/smart.grid.js +14 -14
  161. package/source/modules/smart.gridpanel.js +4 -4
  162. package/source/modules/smart.input.js +2 -2
  163. package/source/modules/smart.kanban.js +5 -5
  164. package/source/modules/smart.layout.js +1 -1
  165. package/source/modules/smart.led.js +1 -1
  166. package/source/modules/smart.listbox.js +2 -2
  167. package/source/modules/smart.listmenu.js +1 -1
  168. package/source/modules/smart.map.js +1 -1
  169. package/source/modules/smart.maskedtextbox.js +2 -2
  170. package/source/modules/smart.menu.js +1 -1
  171. package/source/modules/smart.multicomboinput.js +2 -2
  172. package/source/modules/smart.multiinput.js +2 -2
  173. package/source/modules/smart.multilinetextbox.js +2 -2
  174. package/source/modules/smart.multisplitbutton.js +2 -2
  175. package/source/modules/smart.numberinput.js +2 -2
  176. package/source/modules/smart.numerictextbox.js +2 -2
  177. package/source/modules/smart.pager.js +2 -2
  178. package/source/modules/smart.passwordinput.js +2 -2
  179. package/source/modules/smart.passwordtextbox.js +2 -2
  180. package/source/modules/smart.path.js +1 -1
  181. package/source/modules/smart.phoneinput.js +2 -2
  182. package/source/modules/smart.pivottable.js +3 -3
  183. package/source/modules/smart.progressbar.js +1 -1
  184. package/source/modules/smart.qrcode.js +1 -1
  185. package/source/modules/smart.querybuilder.js +5 -5
  186. package/source/modules/smart.radiobutton.js +1 -1
  187. package/source/modules/smart.rating.js +1 -1
  188. package/source/modules/smart.router.js +1 -1
  189. package/source/modules/smart.scheduler.js +4 -4
  190. package/source/modules/smart.scrollbar.js +1 -1
  191. package/source/modules/smart.slider.js +1 -1
  192. package/source/modules/smart.sortable.js +1 -1
  193. package/source/modules/smart.splitter.js +1 -1
  194. package/source/modules/smart.switchbutton.js +1 -1
  195. package/source/modules/smart.table.js +3 -3
  196. package/source/modules/smart.tabs.js +1 -1
  197. package/source/modules/smart.tank.js +1 -1
  198. package/source/modules/smart.textarea.js +2 -2
  199. package/source/modules/smart.textbox.js +2 -2
  200. package/source/modules/smart.timeinput.js +2 -2
  201. package/source/modules/smart.timepicker.js +1 -1
  202. package/source/modules/smart.toast.js +1 -1
  203. package/source/modules/smart.tooltip.js +1 -1
  204. package/source/modules/smart.tree.js +1 -1
  205. package/source/modules/smart.validator.js +1 -1
  206. package/source/modules/smart.window.js +2 -2
  207. package/source/smart.accordion.js +1 -1
  208. package/source/smart.ajax.js +1 -1
  209. package/source/smart.array.js +1 -1
  210. package/source/smart.barcode.js +1 -1
  211. package/source/smart.bootstrap.js +1 -1
  212. package/source/smart.breadcrumb.js +1 -1
  213. package/source/smart.button.js +1 -1
  214. package/source/smart.buttongroup.js +1 -1
  215. package/source/smart.calendar.js +2 -2
  216. package/source/smart.card.js +1 -1
  217. package/source/smart.cardview.js +1 -1
  218. package/source/smart.carousel.js +1 -1
  219. package/source/smart.chart.annotations.js +1 -1
  220. package/source/smart.chart.api.js +1 -1
  221. package/source/smart.chart.core.js +1 -1
  222. package/source/smart.chart.js +1 -1
  223. package/source/smart.chart.rangeselector.js +1 -1
  224. package/source/smart.chart.waterfall.js +1 -1
  225. package/source/smart.checkbox.js +1 -1
  226. package/source/smart.checkinput.js +1 -1
  227. package/source/smart.chip.js +1 -1
  228. package/source/smart.colorinput.js +1 -1
  229. package/source/smart.colorpanel.js +1 -1
  230. package/source/smart.colorpicker.js +1 -1
  231. package/source/smart.combobox.js +1 -1
  232. package/source/smart.complex.js +1 -1
  233. package/source/smart.core.js +1 -1
  234. package/source/smart.countryinput.js +1 -1
  235. package/source/smart.data.js +1 -1
  236. package/source/smart.date.js +1 -1
  237. package/source/smart.dateformatpanel.js +1 -1
  238. package/source/smart.dateinput.js +1 -1
  239. package/source/smart.daterangeinput.js +1 -1
  240. package/source/smart.datetimepicker.js +1 -1
  241. package/source/smart.dockinglayout.js +1 -1
  242. package/source/smart.draw.js +1 -1
  243. package/source/smart.dropdownbutton.js +1 -1
  244. package/source/smart.dropdownlist.js +1 -1
  245. package/source/smart.editor.js +2 -2
  246. package/source/smart.element.js +1 -1
  247. package/source/smart.elements.js +17 -17
  248. package/source/smart.export.js +1 -1
  249. package/source/smart.fileupload.js +2 -2
  250. package/source/smart.filter.js +1 -1
  251. package/source/smart.filterbuilder.js +2 -2
  252. package/source/smart.filterpanel.js +1 -1
  253. package/source/smart.form.js +1 -1
  254. package/source/smart.format.js +1 -1
  255. package/source/smart.formulaparser.js +1 -1
  256. package/source/smart.ganttchart.js +2 -2
  257. package/source/smart.gauge.js +1 -1
  258. package/source/smart.grid.cell.js +2 -2
  259. package/source/smart.grid.chart.js +1 -1
  260. package/source/smart.grid.column.js +1 -1
  261. package/source/smart.grid.core.js +2 -2
  262. package/source/smart.grid.dialog.js +2 -2
  263. package/source/smart.grid.edit.js +2 -2
  264. package/source/smart.grid.export.js +1 -1
  265. package/source/smart.grid.filter.js +1 -1
  266. package/source/smart.grid.group.js +1 -1
  267. package/source/smart.grid.js +1 -1
  268. package/source/smart.grid.menu.js +2 -2
  269. package/source/smart.grid.pager.js +1 -1
  270. package/source/smart.grid.reorder.js +1 -1
  271. package/source/smart.grid.resize.js +2 -2
  272. package/source/smart.grid.row.js +1 -1
  273. package/source/smart.grid.select.js +2 -2
  274. package/source/smart.grid.sort.js +1 -1
  275. package/source/smart.grid.toolbar.js +2 -2
  276. package/source/smart.grid.tree.js +1 -1
  277. package/source/smart.grid.view.js +2 -2
  278. package/source/smart.gridpanel.js +1 -1
  279. package/source/smart.input.js +2 -2
  280. package/source/smart.kanban.js +2 -2
  281. package/source/smart.layout.js +1 -1
  282. package/source/smart.led.js +1 -1
  283. package/source/smart.listbox.js +2 -2
  284. package/source/smart.listmenu.js +1 -1
  285. package/source/smart.map.js +1 -1
  286. package/source/smart.maskedtextbox.js +1 -1
  287. package/source/smart.math.js +1 -1
  288. package/source/smart.menu.js +1 -1
  289. package/source/smart.multicomboinput.js +1 -1
  290. package/source/smart.multiinput.js +1 -1
  291. package/source/smart.multilinetextbox.js +1 -1
  292. package/source/smart.multisplitbutton.js +1 -1
  293. package/source/smart.numberformatpanel.js +1 -1
  294. package/source/smart.numberinput.js +1 -1
  295. package/source/smart.numeric.js +1 -1
  296. package/source/smart.numerictextbox.js +1 -1
  297. package/source/smart.pager.js +1 -1
  298. package/source/smart.passwordinput.js +1 -1
  299. package/source/smart.passwordtextbox.js +1 -1
  300. package/source/smart.path.js +1 -1
  301. package/source/smart.phoneinput.js +1 -1
  302. package/source/smart.pivottable.js +1 -1
  303. package/source/smart.powerbutton.js +1 -1
  304. package/source/smart.progressbar.js +1 -1
  305. package/source/smart.qrcode.js +1 -1
  306. package/source/smart.radiobutton.js +1 -1
  307. package/source/smart.rating.js +1 -1
  308. package/source/smart.router.js +1 -1
  309. package/source/smart.scheduler.js +1 -1
  310. package/source/smart.scrollbar.js +1 -1
  311. package/source/smart.slider.js +1 -1
  312. package/source/smart.sortable.js +1 -1
  313. package/source/smart.splitter.js +1 -1
  314. package/source/smart.switchbutton.js +1 -1
  315. package/source/smart.table.js +1 -1
  316. package/source/smart.tabs.js +1 -1
  317. package/source/smart.tank.js +1 -1
  318. package/source/smart.textarea.js +1 -1
  319. package/source/smart.textbox.js +1 -1
  320. package/source/smart.tickintervalhandler.js +1 -1
  321. package/source/smart.timeinput.js +1 -1
  322. package/source/smart.timepicker.js +1 -1
  323. package/source/smart.toast.js +1 -1
  324. package/source/smart.tooltip.js +1 -1
  325. package/source/smart.tree.js +1 -1
  326. package/source/smart.validationpanel.js +1 -1
  327. package/source/smart.validator.js +1 -1
  328. package/source/smart.window.js +1 -1
  329. package/source/styles/components/smart.grid.css +1 -1
  330. package/source/styles/default/scss/smart.grid.scss +10 -3
  331. package/source/styles/default/smart.grid.css +7 -3
  332. package/source/styles/smart.default.css +1 -1
  333. package/source/typescript/smart.editor.d.ts +4 -2
  334. package/source/typescript/smart.elements.d.ts +45 -3
  335. package/source/typescript/smart.fileupload.d.ts +2 -1
  336. package/source/typescript/smart.grid.d.ts +34 -0
  337. package/source/typescript/smart.querybuilder.d.ts +5 -0
  338. package/splitter/splitter.d.ts +3 -3
  339. package/splitter/splitter.esm.js +6 -61
  340. package/splitter/splitter.umd.js +901 -956
  341. package/table/pivottable.d.ts +3 -3
  342. package/table/table.d.ts +7 -7
  343. package/table/table.esm.js +14 -109
  344. package/table/table.umd.js +1278 -1373
  345. package/tabs/tabs.d.ts +4 -4
  346. package/tabs/tabs.esm.js +8 -73
  347. package/tabs/tabs.umd.js +875 -940
  348. package/tabs/tabswindow.d.ts +5 -5
  349. package/tabswindow/tabswindow.d.ts +5 -5
  350. package/tabswindow/tabswindow.esm.js +10 -85
  351. package/tabswindow/tabswindow.umd.js +1134 -1209
  352. package/tank/tank.d.ts +2 -2
  353. package/tank/tank.esm.js +4 -49
  354. package/tank/tank.umd.js +598 -643
  355. package/textbox/multilinetextbox.d.ts +1 -1
  356. package/textbox/numerictextbox.d.ts +1 -1
  357. package/timepicker/datetimepicker.d.ts +1 -1
  358. package/toast/toast.d.ts +1 -1
  359. package/toast/toast.esm.js +2 -37
  360. package/toast/toast.umd.js +397 -432
  361. package/tree/tree.d.ts +4 -4
  362. package/tree/tree.esm.js +8 -73
  363. package/tree/tree.umd.js +1310 -1375
  364. package/waitwindow/waitwindow.d.ts +5 -5
  365. package/waitwindow/waitwindow.esm.js +10 -85
  366. package/waitwindow/waitwindow.umd.js +1134 -1209
  367. package/window/alertwindow.d.ts +5 -5
  368. package/window/dialogwindow.d.ts +5 -5
  369. package/window/multilinewindow.d.ts +5 -5
  370. package/window/progresswindow.d.ts +5 -5
  371. package/window/promptwindow.d.ts +5 -5
  372. package/window/tabswindow.d.ts +5 -5
  373. package/window/waitwindow.d.ts +5 -5
  374. package/window/window.d.ts +5 -5
  375. package/window/window.esm.js +10 -85
  376. package/window/window.umd.js +1134 -1209
@@ -2,1219 +2,1144 @@
2
2
  require('../source/modules/smart.window');
3
3
 
4
4
  (function (global, factory) {
5
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
6
- typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
7
- (factory((global.tabswindow = {}),global.React));
5
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
6
+ typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
7
+ (factory((global.tabswindow = {}),global.React));
8
8
  }(this, (function (exports,React) { 'use strict';
9
9
 
10
- React = React && React.hasOwnProperty('default') ? React['default'] : React;
10
+ React = React && React.hasOwnProperty('default') ? React['default'] : React;
11
11
 
12
- /*! *****************************************************************************
13
- Copyright (c) Microsoft Corporation. All rights reserved.
14
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
15
- this file except in compliance with the License. You may obtain a copy of the
16
- License at http://www.apache.org/licenses/LICENSE-2.0
17
-
18
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
20
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
21
- MERCHANTABLITY OR NON-INFRINGEMENT.
22
-
23
- See the Apache Version 2.0 License for specific language governing permissions
24
- and limitations under the License.
25
- ***************************************************************************** */
26
-
27
- function __awaiter(thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- }
12
+ const Smart = window.Smart;
13
+ /**
14
+ Window or Dialog displays the interactive custom confirmations, message boxes, alerts, warnings, errors, and modal dialogs.
15
+ */
16
+ class TabsWindow extends React.Component {
17
+ constructor(props) {
18
+ super(props);
19
+ this.componentRef = React.createRef();
20
+ }
21
+ // Gets the id of the React component.
22
+ get id() {
23
+ if (!this._id) {
24
+ this._id = 'TabsWindow' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
25
+ }
26
+ return this._id;
27
+ }
28
+ /** Determines if 'Add New' Tab inside the Tabs element is visible. Applicable only to TabsWindow
29
+ * Property type: boolean
30
+ */
31
+ get addNewTab() {
32
+ return this.nativeElement ? this.nativeElement.addNewTab : undefined;
33
+ }
34
+ set addNewTab(value) {
35
+ if (this.nativeElement) {
36
+ this.nativeElement.addNewTab = value;
37
+ }
38
+ }
39
+ /** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
40
+ * Property type: Animation | string
41
+ */
42
+ get animation() {
43
+ return this.nativeElement ? this.nativeElement.animation : undefined;
44
+ }
45
+ set animation(value) {
46
+ if (this.nativeElement) {
47
+ this.nativeElement.animation = value;
48
+ }
49
+ }
50
+ /** Determines whether and how the value should be automatically capitalized as it is entered/edited by the user. Applicable only to MultilinePromptWindow.
51
+ * Property type: WindowAutoCapitalize | string
52
+ */
53
+ get autoCapitalize() {
54
+ return this.nativeElement ? this.nativeElement.autoCapitalize : undefined;
55
+ }
56
+ set autoCapitalize(value) {
57
+ if (this.nativeElement) {
58
+ this.nativeElement.autoCapitalize = value;
59
+ }
60
+ }
61
+ /** Determines whether element will auto expand when the input overflows vertically. Applicable only to MultilinePromptWindow.
62
+ * Property type: boolean
63
+ */
64
+ get autoExpand() {
65
+ return this.nativeElement ? this.nativeElement.autoExpand : undefined;
66
+ }
67
+ set autoExpand(value) {
68
+ if (this.nativeElement) {
69
+ this.nativeElement.autoExpand = value;
70
+ }
71
+ }
72
+ /** Determines the label for the 'cancel' button inside the Prompt Window.
73
+ * Property type: string
74
+ */
75
+ get cancelLabel() {
76
+ return this.nativeElement ? this.nativeElement.cancelLabel : undefined;
77
+ }
78
+ set cancelLabel(value) {
79
+ if (this.nativeElement) {
80
+ this.nativeElement.cancelLabel = value;
81
+ }
82
+ }
83
+ /** Determines the label for the 'Complete' button insinde the Progress Window.
84
+ * Property type: string
85
+ */
86
+ get completeLabel() {
87
+ return this.nativeElement ? this.nativeElement.completeLabel : undefined;
88
+ }
89
+ set completeLabel(value) {
90
+ if (this.nativeElement) {
91
+ this.nativeElement.completeLabel = value;
92
+ }
93
+ }
94
+ /** Determines the label for the 'Confirm' button insinde the Prompt Window.
95
+ * Property type: string
96
+ */
97
+ get confirmLabel() {
98
+ return this.nativeElement ? this.nativeElement.confirmLabel : undefined;
99
+ }
100
+ set confirmLabel(value) {
101
+ if (this.nativeElement) {
102
+ this.nativeElement.confirmLabel = value;
103
+ }
104
+ }
105
+ /** Determines if the window is collapsed or not. When collapsed the only the header of the window is visible.
106
+ * Property type: boolean
107
+ */
108
+ get collapsed() {
109
+ return this.nativeElement ? this.nativeElement.collapsed : undefined;
110
+ }
111
+ set collapsed(value) {
112
+ if (this.nativeElement) {
113
+ this.nativeElement.collapsed = value;
114
+ }
115
+ }
116
+ /** When a modal window is opened, thid property determines if clicking on the mask closes the window or not.
117
+ * Property type: boolean
118
+ */
119
+ get closeOnMaskClick() {
120
+ return this.nativeElement ? this.nativeElement.closeOnMaskClick : undefined;
121
+ }
122
+ set closeOnMaskClick(value) {
123
+ if (this.nativeElement) {
124
+ this.nativeElement.closeOnMaskClick = value;
125
+ }
126
+ }
127
+ /** Determines the data source that will be loaded to the TabsWindow. Applicable only to TabsWindow.
128
+ * Property type: {label: string, content: string}[]
129
+ */
130
+ get dataSource() {
131
+ return this.nativeElement ? this.nativeElement.dataSource : undefined;
132
+ }
133
+ set dataSource(value) {
134
+ if (this.nativeElement) {
135
+ this.nativeElement.dataSource = value;
136
+ }
137
+ }
138
+ /** Enables or disables the window.
139
+ * Property type: boolean
140
+ */
141
+ get disabled() {
142
+ return this.nativeElement ? this.nativeElement.disabled : undefined;
143
+ }
144
+ set disabled(value) {
145
+ if (this.nativeElement) {
146
+ this.nativeElement.disabled = value;
147
+ }
148
+ }
149
+ /** Enables or disables the window snapping feature.
150
+ * Property type: boolean
151
+ */
152
+ get disableSnap() {
153
+ return this.nativeElement ? this.nativeElement.disableSnap : undefined;
154
+ }
155
+ set disableSnap(value) {
156
+ if (this.nativeElement) {
157
+ this.nativeElement.disableSnap = value;
158
+ }
159
+ }
160
+ /** By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that.
161
+ * Property type: boolean
162
+ */
163
+ get disableEscape() {
164
+ return this.nativeElement ? this.nativeElement.disableEscape : undefined;
165
+ }
166
+ set disableEscape(value) {
167
+ if (this.nativeElement) {
168
+ this.nativeElement.disableEscape = value;
169
+ }
170
+ }
171
+ /** By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that.
172
+ * Property type: boolean
173
+ */
174
+ get disableKeyboard() {
175
+ return this.nativeElement ? this.nativeElement.disableKeyboard : undefined;
176
+ }
177
+ set disableKeyboard(value) {
178
+ if (this.nativeElement) {
179
+ this.nativeElement.disableKeyboard = value;
180
+ }
181
+ }
182
+ /** Determines how the characters are displayed inside the input. Applicable to Prompt Window.
183
+ * Property type: WindowDisplayMode | string
184
+ */
185
+ get displayMode() {
186
+ return this.nativeElement ? this.nativeElement.displayMode : undefined;
187
+ }
188
+ set displayMode(value) {
189
+ if (this.nativeElement) {
190
+ this.nativeElement.displayMode = value;
191
+ }
192
+ }
193
+ /** Applicable to TabsWindow when docked inside a DockingLayout Custom Element. Determines where the window(it's tab items as well) can be dropped inside the DockingLayout. The property is an array that accepts multiple positions. Note: Positions with prefix 'layout-' are applied to the Tab item children of the TabsWidnow owner that is being dragged. The rest of the positions indicate the allowed drop position inside the hovered target(TabsWindow). Used only by jqxDockingLayout custom elements. Determines the possible drop position inside the DockingLayout. The following values are allowed.
194
+ * Property type: WindowDropPosition | string
195
+ */
196
+ get dropPosition() {
197
+ return this.nativeElement ? this.nativeElement.dropPosition : undefined;
198
+ }
199
+ set dropPosition(value) {
200
+ if (this.nativeElement) {
201
+ this.nativeElement.dropPosition = value;
202
+ }
203
+ }
204
+ /** A callback function defining the new format for the label of the Progress Bar. Applicable only to ProgressWindow.
205
+ * Property type: any
206
+ */
207
+ get formatFunction() {
208
+ return this.nativeElement ? this.nativeElement.formatFunction : undefined;
209
+ }
210
+ set formatFunction(value) {
211
+ if (this.nativeElement) {
212
+ this.nativeElement.formatFunction = value;
213
+ }
214
+ }
215
+ /** Determines the position of the footer of the window element.
216
+ * Property type: WindowFooterPosition | string
217
+ */
218
+ get footerPosition() {
219
+ return this.nativeElement ? this.nativeElement.footerPosition : undefined;
220
+ }
221
+ set footerPosition(value) {
222
+ if (this.nativeElement) {
223
+ this.nativeElement.footerPosition = value;
224
+ }
225
+ }
226
+ /** Determines the template for the Dialog section of the window. By default footerTemplate is null.
227
+ * Property type: any
228
+ */
229
+ get footerTemplate() {
230
+ return this.nativeElement ? this.nativeElement.footerTemplate : undefined;
231
+ }
232
+ set footerTemplate(value) {
233
+ if (this.nativeElement) {
234
+ this.nativeElement.footerTemplate = value;
235
+ }
236
+ }
237
+ /** Set's the buttons that will be visible in the header section.
238
+ * Property type: string[]
239
+ */
240
+ get headerButtons() {
241
+ return this.nativeElement ? this.nativeElement.headerButtons : undefined;
242
+ }
243
+ set headerButtons(value) {
244
+ if (this.nativeElement) {
245
+ this.nativeElement.headerButtons = value;
246
+ }
247
+ }
248
+ /** Determines the template for the Dialog section of the window. By default headerTemplate is null.
249
+ * Property type: any
250
+ */
251
+ get headerTemplate() {
252
+ return this.nativeElement ? this.nativeElement.headerTemplate : undefined;
253
+ }
254
+ set headerTemplate(value) {
255
+ if (this.nativeElement) {
256
+ this.nativeElement.headerTemplate = value;
257
+ }
258
+ }
259
+ /** Determines the position of the header of the window element.
260
+ * Property type: TabPosition | string
261
+ */
262
+ get headerPosition() {
263
+ return this.nativeElement ? this.nativeElement.headerPosition : undefined;
264
+ }
265
+ set headerPosition(value) {
266
+ if (this.nativeElement) {
267
+ this.nativeElement.headerPosition = value;
268
+ }
269
+ }
270
+ /** Sets additional helper text below the text box. The hint is visible only when the text box is focued. Applicable to Prompt Window.
271
+ * Property type: any
272
+ */
273
+ get hint() {
274
+ return this.nativeElement ? this.nativeElement.hint : undefined;
275
+ }
276
+ set hint(value) {
277
+ if (this.nativeElement) {
278
+ this.nativeElement.hint = value;
279
+ }
280
+ }
281
+ /** Sets the value of the Progress bar to indeterminate state(null) and starts the animation. Applicable only to ProgressWindow.
282
+ * Property type: boolean
283
+ */
284
+ get indeterminate() {
285
+ return this.nativeElement ? this.nativeElement.indeterminate : undefined;
286
+ }
287
+ set indeterminate(value) {
288
+ if (this.nativeElement) {
289
+ this.nativeElement.indeterminate = value;
290
+ }
291
+ }
292
+ /** Sets the filling direction of the Progress Bar. Applicable only to ProgressWindow.
293
+ * Property type: boolean
294
+ */
295
+ get inverted() {
296
+ return this.nativeElement ? this.nativeElement.inverted : undefined;
297
+ }
298
+ set inverted(value) {
299
+ if (this.nativeElement) {
300
+ this.nativeElement.inverted = value;
301
+ }
302
+ }
303
+ /** The label of the window that appears in the header area.
304
+ * Property type: string
305
+ */
306
+ get label() {
307
+ return this.nativeElement ? this.nativeElement.label : undefined;
308
+ }
309
+ set label(value) {
310
+ if (this.nativeElement) {
311
+ this.nativeElement.label = value;
312
+ }
313
+ }
314
+ /** When enabled the resizing operation happens live. By default it's not enabled and during resizing a highlighter around the edges of the window appears to outline the current size of the element.
315
+ * Property type: boolean
316
+ */
317
+ get liveResize() {
318
+ return this.nativeElement ? this.nativeElement.liveResize : undefined;
319
+ }
320
+ set liveResize(value) {
321
+ if (this.nativeElement) {
322
+ this.nativeElement.liveResize = value;
323
+ }
324
+ }
325
+ /** Applicable only to TabsWindow when used with a DockingLayout custom element.Used only by jqxDockingLayout. Determines the owner jqxDockingLayout that the window belongs to. When the tabsWindow has been removed from a DockingLayout element, the property is used to indicate that it belongs to that particular Dockinglayout. Accepts a string, representing the ID of a jqxDockingLayout on the page, or an instance of jqxDokcingLayout.
326
+ * Property type: any
327
+ */
328
+ get layout() {
329
+ return this.nativeElement ? this.nativeElement.layout : undefined;
330
+ }
331
+ set layout(value) {
332
+ if (this.nativeElement) {
333
+ this.nativeElement.layout = value;
334
+ }
335
+ }
336
+ /** Sets or gets the language. Used in conjunction with the property messages.
337
+ * Property type: string
338
+ */
339
+ get locale() {
340
+ return this.nativeElement ? this.nativeElement.locale : undefined;
341
+ }
342
+ set locale(value) {
343
+ if (this.nativeElement) {
344
+ this.nativeElement.locale = value;
345
+ }
346
+ }
347
+ /** Applicable only to TabsWindow when docked inside a DockingLayout Custom Element.Determines of the item can be resized or not.
348
+ * Property type: boolean
349
+ */
350
+ get locked() {
351
+ return this.nativeElement ? this.nativeElement.locked : undefined;
352
+ }
353
+ set locked(value) {
354
+ if (this.nativeElement) {
355
+ this.nativeElement.locked = value;
356
+ }
357
+ }
358
+ /** Callback, related to localization module.
359
+ * Property type: any
360
+ */
361
+ get localizeFormatFunction() {
362
+ return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
363
+ }
364
+ set localizeFormatFunction(value) {
365
+ if (this.nativeElement) {
366
+ this.nativeElement.localizeFormatFunction = value;
367
+ }
368
+ }
369
+ /** Determines if the window is maximized or not. When maximized the window covers the whole viewport.
370
+ * Property type: boolean
371
+ */
372
+ get maximized() {
373
+ return this.nativeElement ? this.nativeElement.maximized : undefined;
374
+ }
375
+ set maximized(value) {
376
+ if (this.nativeElement) {
377
+ this.nativeElement.maximized = value;
378
+ }
379
+ }
380
+ /** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
381
+ * Property type: any
382
+ */
383
+ get messages() {
384
+ return this.nativeElement ? this.nativeElement.messages : undefined;
385
+ }
386
+ set messages(value) {
387
+ if (this.nativeElement) {
388
+ this.nativeElement.messages = value;
389
+ }
390
+ }
391
+ /** Determines if the window is modal or not. If true the user can only interact with the window and nothing else on the page.
392
+ * Property type: boolean
393
+ */
394
+ get modal() {
395
+ return this.nativeElement ? this.nativeElement.modal : undefined;
396
+ }
397
+ set modal(value) {
398
+ if (this.nativeElement) {
399
+ this.nativeElement.modal = value;
400
+ }
401
+ }
402
+ /** Applicable to TabsWindow when docked inside a DockingLayout Custom Element. Determines the max size of the item. Applicable to Progress Window by allowing the user to specify the maximum of the ProgressBar.
403
+ * Property type: string | number | null
404
+ */
405
+ get max() {
406
+ return this.nativeElement ? this.nativeElement.max : undefined;
407
+ }
408
+ set max(value) {
409
+ if (this.nativeElement) {
410
+ this.nativeElement.max = value;
411
+ }
412
+ }
413
+ /** Applicable to TabsWindow when docked inside DockingLayout Custom Element. Determines the min size of the item. Applicable to Progress Window by allowing the user to specify the minimu of the ProgressBar.
414
+ * Property type: string | number | null
415
+ */
416
+ get min() {
417
+ return this.nativeElement ? this.nativeElement.min : undefined;
418
+ }
419
+ set min(value) {
420
+ if (this.nativeElement) {
421
+ this.nativeElement.min = value;
422
+ }
423
+ }
424
+ /** Determines if the window is minimized or not. When minimized the window is docked at the bottom left corner of the viewport.
425
+ * Property type: boolean
426
+ */
427
+ get minimized() {
428
+ return this.nativeElement ? this.nativeElement.minimized : undefined;
429
+ }
430
+ set minimized(value) {
431
+ if (this.nativeElement) {
432
+ this.nativeElement.minimized = value;
433
+ }
434
+ }
435
+ /** Sets or gets the maximum number of characters that the user can enter. Applicable to Prompt/MultilinePrompt Window.
436
+ * Property type: number
437
+ */
438
+ get maxLength() {
439
+ return this.nativeElement ? this.nativeElement.maxLength : undefined;
440
+ }
441
+ set maxLength(value) {
442
+ if (this.nativeElement) {
443
+ this.nativeElement.maxLength = value;
444
+ }
445
+ }
446
+ /** Sets or gets the minimum number of characters that the user have to enter to trigger the auto complete functionality. Applicable to Prompt/MultilinePrompt Window.
447
+ * Property type: number
448
+ */
449
+ get minLength() {
450
+ return this.nativeElement ? this.nativeElement.minLength : undefined;
451
+ }
452
+ set minLength(value) {
453
+ if (this.nativeElement) {
454
+ this.nativeElement.minLength = value;
455
+ }
456
+ }
457
+ /** Determines if the window is visible or not.
458
+ * Property type: boolean
459
+ */
460
+ get opened() {
461
+ return this.nativeElement ? this.nativeElement.opened : undefined;
462
+ }
463
+ set opened(value) {
464
+ if (this.nativeElement) {
465
+ this.nativeElement.opened = value;
466
+ }
467
+ }
468
+ /** Determines if the window is pinned or not. Pinned window is a window that can't be dragged but can be resized.
469
+ * Property type: boolean
470
+ */
471
+ get pinned() {
472
+ return this.nativeElement ? this.nativeElement.pinned : undefined;
473
+ }
474
+ set pinned(value) {
475
+ if (this.nativeElement) {
476
+ this.nativeElement.pinned = value;
477
+ }
478
+ }
479
+ /** Determines the input's placeholder. Applicable to Prompt Window.
480
+ * Property type: string
481
+ */
482
+ get placeholder() {
483
+ return this.nativeElement ? this.nativeElement.placeholder : undefined;
484
+ }
485
+ set placeholder(value) {
486
+ if (this.nativeElement) {
487
+ this.nativeElement.placeholder = value;
488
+ }
489
+ }
490
+ /** Determines the label for the Input insinde the PromptWindow.
491
+ * Property type: string
492
+ */
493
+ get promptLabel() {
494
+ return this.nativeElement ? this.nativeElement.promptLabel : undefined;
495
+ }
496
+ set promptLabel(value) {
497
+ if (this.nativeElement) {
498
+ this.nativeElement.promptLabel = value;
499
+ }
500
+ }
501
+ /** If the element is readonly, users cannot interact with it.
502
+ * Property type: boolean
503
+ */
504
+ get readonly() {
505
+ return this.nativeElement ? this.nativeElement.readonly : undefined;
506
+ }
507
+ set readonly(value) {
508
+ if (this.nativeElement) {
509
+ this.nativeElement.readonly = value;
510
+ }
511
+ }
512
+ /** When applied a resize indicator is displayed in the bottom right corner of the window and resizing operation can be initiated only from its position.
513
+ * Property type: boolean
514
+ */
515
+ get resizeIndicator() {
516
+ return this.nativeElement ? this.nativeElement.resizeIndicator : undefined;
517
+ }
518
+ set resizeIndicator(value) {
519
+ if (this.nativeElement) {
520
+ this.nativeElement.resizeIndicator = value;
521
+ }
522
+ }
523
+ /** Determines the resizing mode of the window. Several modes are available: none - resizing is disabled. vertical - vertical resizing is allowed. horizontal - horizontal resizing is allowed. both - horizontal and vertical resizing is allowed. top - the window can only be resized from the top side. bottom - the window is resizable only from the bottom side. left - the window can be resized only from the left side. right - the window can be resized only from the right side.
524
+ * Property type: WindowResizeMode | string
525
+ */
526
+ get resizeMode() {
527
+ return this.nativeElement ? this.nativeElement.resizeMode : undefined;
528
+ }
529
+ set resizeMode(value) {
530
+ if (this.nativeElement) {
531
+ this.nativeElement.resizeMode = value;
532
+ }
533
+ }
534
+ /** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
535
+ * Property type: boolean
536
+ */
537
+ get rightToLeft() {
538
+ return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
539
+ }
540
+ set rightToLeft(value) {
541
+ if (this.nativeElement) {
542
+ this.nativeElement.rightToLeft = value;
543
+ }
544
+ }
545
+ /** Specifies that the user must fill the input before submitting a form with the text box.Applicable to Prompt Window.
546
+ * Property type: boolean
547
+ */
548
+ get required() {
549
+ return this.nativeElement ? this.nativeElement.required : undefined;
550
+ }
551
+ set required(value) {
552
+ if (this.nativeElement) {
553
+ this.nativeElement.required = value;
554
+ }
555
+ }
556
+ /** Specifies the message that will appear if required is set and no value is provided in the input. Applicable to Prompt Window.
557
+ * Property type: string
558
+ */
559
+ get requiredMessage() {
560
+ return this.nativeElement ? this.nativeElement.requiredMessage : undefined;
561
+ }
562
+ set requiredMessage(value) {
563
+ if (this.nativeElement) {
564
+ this.nativeElement.requiredMessage = value;
565
+ }
566
+ }
567
+ /** Determines whether the content of the input will be selected on focus or not. Applicable to Prompt Window.
568
+ * Property type: boolean
569
+ */
570
+ get selectAllOnFocus() {
571
+ return this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;
572
+ }
573
+ set selectAllOnFocus(value) {
574
+ if (this.nativeElement) {
575
+ this.nativeElement.selectAllOnFocus = value;
576
+ }
577
+ }
578
+ /** Sets or gets which tab is selected. Applicable only to TabsWindow.
579
+ * Property type: number | null
580
+ */
581
+ get selectedIndex() {
582
+ return this.nativeElement ? this.nativeElement.selectedIndex : undefined;
583
+ }
584
+ set selectedIndex(value) {
585
+ if (this.nativeElement) {
586
+ this.nativeElement.selectedIndex = value;
587
+ }
588
+ }
589
+ /** Determines the way the user can switch between tabs. Applicable only to TabsWindow.
590
+ * Property type: TabSelectionMode | string
591
+ */
592
+ get selectionMode() {
593
+ return this.nativeElement ? this.nativeElement.selectionMode : undefined;
594
+ }
595
+ set selectionMode(value) {
596
+ if (this.nativeElement) {
597
+ this.nativeElement.selectionMode = value;
598
+ }
599
+ }
600
+ /** Indicates the index of the last character in the current selection. Applicable only to MultilinePromptWindow.
601
+ * Property type: number
602
+ */
603
+ get selectionEnd() {
604
+ return this.nativeElement ? this.nativeElement.selectionEnd : undefined;
605
+ }
606
+ set selectionEnd(value) {
607
+ if (this.nativeElement) {
608
+ this.nativeElement.selectionEnd = value;
609
+ }
610
+ }
611
+ /** Indicates the index to the first character in the current selection. Applicable only to MultilinePromptWindow.
612
+ * Property type: number
613
+ */
614
+ get selectionStart() {
615
+ return this.nativeElement ? this.nativeElement.selectionStart : undefined;
616
+ }
617
+ set selectionStart(value) {
618
+ if (this.nativeElement) {
619
+ this.nativeElement.selectionStart = value;
620
+ }
621
+ }
622
+ /** Enables/Disabled the label for the Progress Bar. Applicable only to Progress Window.
623
+ * Property type: boolean
624
+ */
625
+ get showProgressValue() {
626
+ return this.nativeElement ? this.nativeElement.showProgressValue : undefined;
627
+ }
628
+ set showProgressValue(value) {
629
+ if (this.nativeElement) {
630
+ this.nativeElement.showProgressValue = value;
631
+ }
632
+ }
633
+ /** A getter that returns the siblings (that share the same parent) of a LayoutPanel item that is docked inside a DockingLayout. The siblings are also DockingLayout items ( LayoutPanels).Applicable only to TabsWindow when docked inside a DockingLayout.
634
+ * Property type: any
635
+ */
636
+ get siblings() {
637
+ return this.nativeElement ? this.nativeElement.siblings : undefined;
638
+ }
639
+ set siblings(value) {
640
+ if (this.nativeElement) {
641
+ this.nativeElement.siblings = value;
642
+ }
643
+ }
644
+ /** Applicable to TabsWindow when nested inside a DockingLayout Custom Element. Determines the size of the item.
645
+ * Property type: string
646
+ */
647
+ get size() {
648
+ return this.nativeElement ? this.nativeElement.size : undefined;
649
+ }
650
+ set size(value) {
651
+ if (this.nativeElement) {
652
+ this.nativeElement.size = value;
653
+ }
654
+ }
655
+ /** Specifies whether the element is to have its spelling and grammar checked or not. Applicable only to MultilinePromptWindow.
656
+ * Property type: boolean
657
+ */
658
+ get spellCheck() {
659
+ return this.nativeElement ? this.nativeElement.spellCheck : undefined;
660
+ }
661
+ set spellCheck(value) {
662
+ if (this.nativeElement) {
663
+ this.nativeElement.spellCheck = value;
664
+ }
665
+ }
666
+ /** Sets or gets whether close buttons are displayed inside the Tab Strip of the TabsWindow. Applicable only to TabsWindow.
667
+ * Property type: boolean
668
+ */
669
+ get tabCloseButtons() {
670
+ return this.nativeElement ? this.nativeElement.tabCloseButtons : undefined;
671
+ }
672
+ set tabCloseButtons(value) {
673
+ if (this.nativeElement) {
674
+ this.nativeElement.tabCloseButtons = value;
675
+ }
676
+ }
677
+ /** Determines if the close button is visible on select or always. Applicable only to TabsWindow.
678
+ * Property type: WindowTabCloseButtonMode | string
679
+ */
680
+ get tabCloseButtonMode() {
681
+ return this.nativeElement ? this.nativeElement.tabCloseButtonMode : undefined;
682
+ }
683
+ set tabCloseButtonMode(value) {
684
+ if (this.nativeElement) {
685
+ this.nativeElement.tabCloseButtonMode = value;
686
+ }
687
+ }
688
+ /** Sets or gets the Tabs scroll buttons behavior. Applicable only when tabLayout is 'scroll'. Applicable only to TabsWindow.
689
+ * Property type: Overflow | string
690
+ */
691
+ get tabOverflow() {
692
+ return this.nativeElement ? this.nativeElement.tabOverflow : undefined;
693
+ }
694
+ set tabOverflow(value) {
695
+ if (this.nativeElement) {
696
+ this.nativeElement.tabOverflow = value;
697
+ }
698
+ }
699
+ /** Detetmines Tab Strip is positioned of the TabsWindow. Applicable only to TabsWindow.
700
+ * Property type: TabPosition | string
701
+ */
702
+ get tabPosition() {
703
+ return this.nativeElement ? this.nativeElement.tabPosition : undefined;
704
+ }
705
+ set tabPosition(value) {
706
+ if (this.nativeElement) {
707
+ this.nativeElement.tabPosition = value;
708
+ }
709
+ }
710
+ /** Sets or gets the position of the scroll buttons inside the Tab header of the TabsWindow. Applicable only to TabsWindow.
711
+ * Property type: LayoutPosition | string
712
+ */
713
+ get tabScrollButtonsPosition() {
714
+ return this.nativeElement ? this.nativeElement.tabScrollButtonsPosition : undefined;
715
+ }
716
+ set tabScrollButtonsPosition(value) {
717
+ if (this.nativeElement) {
718
+ this.nativeElement.tabScrollButtonsPosition = value;
719
+ }
720
+ }
721
+ /** Sets or gets the orientation of the text in the tabs labels of the TabsWindow. Applicable only to TabsWindow.
722
+ * Property type: Orientation | string
723
+ */
724
+ get tabTextOrientation() {
725
+ return this.nativeElement ? this.nativeElement.tabTextOrientation : undefined;
726
+ }
727
+ set tabTextOrientation(value) {
728
+ if (this.nativeElement) {
729
+ this.nativeElement.tabTextOrientation = value;
730
+ }
731
+ }
732
+ /** Determines the theme. Theme defines the look of the element
733
+ * Property type: string
734
+ */
735
+ get theme() {
736
+ return this.nativeElement ? this.nativeElement.theme : undefined;
737
+ }
738
+ set theme(value) {
739
+ if (this.nativeElement) {
740
+ this.nativeElement.theme = value;
741
+ }
742
+ }
743
+ /** If is set to true, the element cannot be focused.
744
+ * Property type: boolean
745
+ */
746
+ get unfocusable() {
747
+ return this.nativeElement ? this.nativeElement.unfocusable : undefined;
748
+ }
749
+ set unfocusable(value) {
750
+ if (this.nativeElement) {
751
+ this.nativeElement.unfocusable = value;
752
+ }
753
+ }
754
+ /** Determines the value of the TextBox/ProgressBar inside the Dialog/Prompt/Progress Window
755
+ * Property type: string | number
756
+ */
757
+ get value() {
758
+ return this.nativeElement ? this.nativeElement.value : undefined;
759
+ }
760
+ set value(value) {
761
+ if (this.nativeElement) {
762
+ this.nativeElement.value = value;
763
+ }
764
+ }
765
+ /** Determines the actual parent of the element. The window can size and move only in the area of that element.
766
+ * Property type: any
767
+ */
768
+ get windowParent() {
769
+ return this.nativeElement ? this.nativeElement.windowParent : undefined;
770
+ }
771
+ set windowParent(value) {
772
+ if (this.nativeElement) {
773
+ this.nativeElement.windowParent = value;
774
+ }
775
+ }
776
+ /** Indicates how the input wraps text. Applicable only to MultilinePromptWindow.
777
+ * Property type: WindowWrap | string
778
+ */
779
+ get wrap() {
780
+ return this.nativeElement ? this.nativeElement.wrap : undefined;
781
+ }
782
+ set wrap(value) {
783
+ if (this.nativeElement) {
784
+ this.nativeElement.wrap = value;
785
+ }
786
+ }
787
+ // Gets the properties of the React component.
788
+ get properties() {
789
+ return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "disableEscape", "disableKeyboard", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
790
+ }
791
+ // Gets the events of the React component.
792
+ get eventListeners() {
793
+ return ["onOpening", "onOpen", "onClosing", "onClose", "onCollapse", "onDragEnd", "onDragStart", "onExpand", "onMaximize", "onMinimize", "onResizeEnd", "onResizeStart", "onRestore", "onCreate", "onReady"];
794
+ }
795
+ /** Appends a tabitem to the end of the list of tab items inside element.
796
+ * @param {Node} node. A TabItem element that should be added to the rest of the items as the last item.
797
+ * @returns {Node}
798
+ */
799
+ appendChild(node) {
800
+ const result = this.nativeElement.appendChild(node);
801
+ return result;
802
+ }
803
+ /** Sets the window to the top level so the user can interact with it.
804
+ */
805
+ bringToFront() {
806
+ if (this.nativeElement.isRendered) {
807
+ this.nativeElement.bringToFront();
808
+ }
809
+ else {
810
+ this.nativeElement.whenRendered(() => {
811
+ this.nativeElement.bringToFront();
812
+ });
813
+ }
814
+ }
815
+ /** Clears the content of the Window.
816
+ */
817
+ clear() {
818
+ if (this.nativeElement.isRendered) {
819
+ this.nativeElement.clear();
820
+ }
821
+ else {
822
+ this.nativeElement.whenRendered(() => {
823
+ this.nativeElement.clear();
824
+ });
825
+ }
826
+ }
827
+ /** Closes the window.
828
+ */
829
+ close() {
830
+ if (this.nativeElement.isRendered) {
831
+ this.nativeElement.close();
832
+ }
833
+ else {
834
+ this.nativeElement.whenRendered(() => {
835
+ this.nativeElement.close();
836
+ });
837
+ }
838
+ }
839
+ /** Collapses the window.
840
+ * @returns {HTMLElement}
841
+ */
842
+ collapse() {
843
+ const result = this.nativeElement.collapse();
844
+ return result;
845
+ }
846
+ /** Makes sure a tab item is visible by scrolling to it. Applicable only to TabsWindow.
847
+ * @param {number} index. The index of the tab to scroll to.
848
+ */
849
+ ensureVisible(index) {
850
+ if (this.nativeElement.isRendered) {
851
+ this.nativeElement.ensureVisible(index);
852
+ }
853
+ else {
854
+ this.nativeElement.whenRendered(() => {
855
+ this.nativeElement.ensureVisible(index);
856
+ });
857
+ }
858
+ }
859
+ /** Expands the window after being collapsed.
860
+ * @returns {any[]}
861
+ */
862
+ expand() {
863
+ const result = this.nativeElement.expand();
864
+ return result;
865
+ }
866
+ /** Inserts a new tab and an associated content section. Applicable only to TabsWindow.
867
+ * @param {number} index. The index to insert a new tab at.
868
+ * @param {any} details. An Object with the fields "label", "labelSize", "content" and "group".
869
+ */
870
+ insert(index, details) {
871
+ if (this.nativeElement.isRendered) {
872
+ this.nativeElement.insert(index, details);
873
+ }
874
+ else {
875
+ this.nativeElement.whenRendered(() => {
876
+ this.nativeElement.insert(index, details);
877
+ });
878
+ }
879
+ }
880
+ /** Inserts the specified "smart-tab-item" node before the reference "smart-tab-item" node. Applicable only to TabsWindow.
881
+ * @param {Node} newNode. The "jqx-tab-item" node to insert.
882
+ * @param {Node | null} referenceNode?. The "jqx-tab-item" node before which newNode is inserted.
883
+ * @returns {Node}
884
+ */
885
+ insertBefore(newNode, referenceNode) {
886
+ const result = this.nativeElement.insertBefore(newNode, referenceNode);
887
+ return result;
888
+ }
889
+ /** Moves the window to a new position
890
+ * @param {string | number} left. Left position. For example: '100px'.
891
+ * @param {string | number} top. Top position. For example: '100px'.
892
+ */
893
+ move(left, top) {
894
+ if (this.nativeElement.isRendered) {
895
+ this.nativeElement.move(left, top);
896
+ }
897
+ else {
898
+ this.nativeElement.whenRendered(() => {
899
+ this.nativeElement.move(left, top);
900
+ });
901
+ }
902
+ }
903
+ /** Maximizes the window to fill the area.
904
+ */
905
+ maximize() {
906
+ if (this.nativeElement.isRendered) {
907
+ this.nativeElement.maximize();
908
+ }
909
+ else {
910
+ this.nativeElement.whenRendered(() => {
911
+ this.nativeElement.maximize();
912
+ });
913
+ }
914
+ }
915
+ /** Minimizes the window.
916
+ */
917
+ minimize() {
918
+ if (this.nativeElement.isRendered) {
919
+ this.nativeElement.minimize();
920
+ }
921
+ else {
922
+ this.nativeElement.whenRendered(() => {
923
+ this.nativeElement.minimize();
924
+ });
925
+ }
926
+ }
927
+ /** Opens the window
928
+ */
929
+ open() {
930
+ if (this.nativeElement.isRendered) {
931
+ this.nativeElement.open();
932
+ }
933
+ else {
934
+ this.nativeElement.whenRendered(() => {
935
+ this.nativeElement.open();
936
+ });
937
+ }
938
+ }
939
+ /** Pins the window. Disables window dragging.
940
+ */
941
+ pin() {
942
+ if (this.nativeElement.isRendered) {
943
+ this.nativeElement.pin();
944
+ }
945
+ else {
946
+ this.nativeElement.whenRendered(() => {
947
+ this.nativeElement.pin();
948
+ });
949
+ }
950
+ }
951
+ /** Removes a tab and its associated content section. Applicable only to TabsWindow.
952
+ * @param {number} index. The index of the tab to remove.
953
+ */
954
+ removeAt(index) {
955
+ if (this.nativeElement.isRendered) {
956
+ this.nativeElement.removeAt(index);
957
+ }
958
+ else {
959
+ this.nativeElement.whenRendered(() => {
960
+ this.nativeElement.removeAt(index);
961
+ });
962
+ }
963
+ }
964
+ /** Removes a child "smart-tab-item" node. Applicable only to TabsWindow.
965
+ * @param {Node} node. The "jqx-tab-item" node to remove.
966
+ * @returns {Node}
967
+ */
968
+ removeChild(node) {
969
+ const result = this.nativeElement.removeChild(node);
970
+ return result;
971
+ }
972
+ /** Restores the window to it's previous size before maximization/minimization.
973
+ */
974
+ restore() {
975
+ if (this.nativeElement.isRendered) {
976
+ this.nativeElement.restore();
977
+ }
978
+ else {
979
+ this.nativeElement.whenRendered(() => {
980
+ this.nativeElement.restore();
981
+ });
982
+ }
983
+ }
984
+ /** Selects a tab. Applicalbe only to TabsWindow elements.
985
+ * @param {number} index. The index of the tab to select.
986
+ */
987
+ select(index) {
988
+ if (this.nativeElement.isRendered) {
989
+ this.nativeElement.select(index);
990
+ }
991
+ else {
992
+ this.nativeElement.whenRendered(() => {
993
+ this.nativeElement.select(index);
994
+ });
995
+ }
996
+ }
997
+ /** Unpins the window. Enables window dragging.
998
+ */
999
+ unpin() {
1000
+ if (this.nativeElement.isRendered) {
1001
+ this.nativeElement.unpin();
1002
+ }
1003
+ else {
1004
+ this.nativeElement.whenRendered(() => {
1005
+ this.nativeElement.unpin();
1006
+ });
1007
+ }
1008
+ }
1009
+ /** Updates the header label.
1010
+ * @param {string} label. The new label of the Header.
1011
+ */
1012
+ updateLabel(label) {
1013
+ if (this.nativeElement.isRendered) {
1014
+ this.nativeElement.updateLabel(label);
1015
+ }
1016
+ else {
1017
+ this.nativeElement.whenRendered(() => {
1018
+ this.nativeElement.updateLabel(label);
1019
+ });
1020
+ }
1021
+ }
1022
+ /** Updates the content.
1023
+ * @param {string | HTMLElement} content. The new content of the window.
1024
+ */
1025
+ updateContent(content) {
1026
+ if (this.nativeElement.isRendered) {
1027
+ this.nativeElement.updateContent(content);
1028
+ }
1029
+ else {
1030
+ this.nativeElement.whenRendered(() => {
1031
+ this.nativeElement.updateContent(content);
1032
+ });
1033
+ }
1034
+ }
1035
+ /** Updates a TAB in TAB Window and its associated content section. Applies only to TabsWindow elements.
1036
+ * @param {number} index. The index of the tab to update.
1037
+ * @param {string} label. The new label of the tab. The value can be the id of an HTMLTemplateElement
1038
+ * @param {string | HTMLElement} content. The new content of the tab.
1039
+ */
1040
+ update(index, label, content) {
1041
+ if (this.nativeElement.isRendered) {
1042
+ this.nativeElement.update(index, label, content);
1043
+ }
1044
+ else {
1045
+ this.nativeElement.whenRendered(() => {
1046
+ this.nativeElement.update(index, label, content);
1047
+ });
1048
+ }
1049
+ }
1050
+ componentDidRender(initialize) {
1051
+ const that = this;
1052
+ const props = {};
1053
+ const events = {};
1054
+ let styles = null;
1055
+ for (let prop in that.props) {
1056
+ if (prop === 'children') {
1057
+ continue;
1058
+ }
1059
+ if (prop === 'style') {
1060
+ styles = that.props[prop];
1061
+ continue;
1062
+ }
1063
+ if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
1064
+ events[prop] = that.props[prop];
1065
+ continue;
1066
+ }
1067
+ props[prop] = that.props[prop];
1068
+ }
1069
+ if (initialize) {
1070
+ that.nativeElement = this.componentRef.current;
1071
+ }
1072
+ for (let prop in props) {
1073
+ if (prop === 'class' || prop === 'className') {
1074
+ const classNames = props[prop].trim().split(' ');
1075
+ for (let className in classNames) {
1076
+ if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
1077
+ that.nativeElement.classList.add(classNames[className]);
1078
+ }
1079
+ }
1080
+ continue;
1081
+ }
1082
+ if (props[prop] !== that.nativeElement[prop]) {
1083
+ const normalizeProp = (str) => {
1084
+ return str.replace(/-([a-z])/g, function (g) {
1085
+ return g[1].toUpperCase();
1086
+ });
1087
+ };
1088
+ if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
1089
+ that.nativeElement.setAttribute(prop, '');
1090
+ }
1091
+ const normalizedProp = normalizeProp(prop);
1092
+ that.nativeElement[normalizedProp] = props[prop];
1093
+ }
1094
+ }
1095
+ for (let eventName in events) {
1096
+ that[eventName] = events[eventName];
1097
+ that.nativeElement[eventName.toLowerCase()] = events[eventName];
1098
+ }
1099
+ if (initialize) {
1100
+ Smart.Render();
1101
+ if (that.onCreate) {
1102
+ that.onCreate();
1103
+ }
1104
+ that.nativeElement.whenRendered(() => {
1105
+ if (that.onReady) {
1106
+ that.onReady();
1107
+ }
1108
+ });
1109
+ }
1110
+ // setup styles.
1111
+ if (styles) {
1112
+ for (let styleName in styles) {
1113
+ that.nativeElement.style[styleName] = styles[styleName];
1114
+ }
1115
+ }
1116
+ }
1117
+ componentDidMount() {
1118
+ this.componentDidRender(true);
1119
+ }
1120
+ componentDidUpdate() {
1121
+ this.componentDidRender(false);
1122
+ }
1123
+ componentWillUnmount() {
1124
+ const that = this;
1125
+ if (!that.nativeElement) {
1126
+ return;
1127
+ }
1128
+ that.nativeElement.whenRenderedCallbacks = [];
1129
+ for (let i = 0; i < that.eventListeners.length; i++) {
1130
+ const eventName = that.eventListeners[i];
1131
+ that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
1132
+ }
1133
+ }
1134
+ render() {
1135
+ return (React.createElement("smart-tabs-window", { ref: this.componentRef }, this.props.children));
1136
+ }
1137
+ }
36
1138
 
37
- const Smart = window.Smart;
38
- /**
39
- Window or Dialog displays the interactive custom confirmations, message boxes, alerts, warnings, errors, and modal dialogs.
40
- */
41
- class TabsWindow extends React.Component {
42
- constructor(props) {
43
- super(props);
44
- this.componentRef = React.createRef();
45
- }
46
- // Gets the id of the React component.
47
- get id() {
48
- if (!this._id) {
49
- this._id = 'TabsWindow' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
50
- }
51
- return this._id;
52
- }
53
- /** Determines if 'Add New' Tab inside the Tabs element is visible. Applicable only to TabsWindow
54
- * Property type: boolean
55
- */
56
- get addNewTab() {
57
- return this.nativeElement ? this.nativeElement.addNewTab : undefined;
58
- }
59
- set addNewTab(value) {
60
- if (this.nativeElement) {
61
- this.nativeElement.addNewTab = value;
62
- }
63
- }
64
- /** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
65
- * Property type: Animation | string
66
- */
67
- get animation() {
68
- return this.nativeElement ? this.nativeElement.animation : undefined;
69
- }
70
- set animation(value) {
71
- if (this.nativeElement) {
72
- this.nativeElement.animation = value;
73
- }
74
- }
75
- /** Determines whether and how the value should be automatically capitalized as it is entered/edited by the user. Applicable only to MultilinePromptWindow.
76
- * Property type: WindowAutoCapitalize | string
77
- */
78
- get autoCapitalize() {
79
- return this.nativeElement ? this.nativeElement.autoCapitalize : undefined;
80
- }
81
- set autoCapitalize(value) {
82
- if (this.nativeElement) {
83
- this.nativeElement.autoCapitalize = value;
84
- }
85
- }
86
- /** Determines whether element will auto expand when the input overflows vertically. Applicable only to MultilinePromptWindow.
87
- * Property type: boolean
88
- */
89
- get autoExpand() {
90
- return this.nativeElement ? this.nativeElement.autoExpand : undefined;
91
- }
92
- set autoExpand(value) {
93
- if (this.nativeElement) {
94
- this.nativeElement.autoExpand = value;
95
- }
96
- }
97
- /** Determines the label for the 'cancel' button inside the Prompt Window.
98
- * Property type: string
99
- */
100
- get cancelLabel() {
101
- return this.nativeElement ? this.nativeElement.cancelLabel : undefined;
102
- }
103
- set cancelLabel(value) {
104
- if (this.nativeElement) {
105
- this.nativeElement.cancelLabel = value;
106
- }
107
- }
108
- /** Determines the label for the 'Complete' button insinde the Progress Window.
109
- * Property type: string
110
- */
111
- get completeLabel() {
112
- return this.nativeElement ? this.nativeElement.completeLabel : undefined;
113
- }
114
- set completeLabel(value) {
115
- if (this.nativeElement) {
116
- this.nativeElement.completeLabel = value;
117
- }
118
- }
119
- /** Determines the label for the 'Confirm' button insinde the Prompt Window.
120
- * Property type: string
121
- */
122
- get confirmLabel() {
123
- return this.nativeElement ? this.nativeElement.confirmLabel : undefined;
124
- }
125
- set confirmLabel(value) {
126
- if (this.nativeElement) {
127
- this.nativeElement.confirmLabel = value;
128
- }
129
- }
130
- /** Determines if the window is collapsed or not. When collapsed the only the header of the window is visible.
131
- * Property type: boolean
132
- */
133
- get collapsed() {
134
- return this.nativeElement ? this.nativeElement.collapsed : undefined;
135
- }
136
- set collapsed(value) {
137
- if (this.nativeElement) {
138
- this.nativeElement.collapsed = value;
139
- }
140
- }
141
- /** When a modal window is opened, thid property determines if clicking on the mask closes the window or not.
142
- * Property type: boolean
143
- */
144
- get closeOnMaskClick() {
145
- return this.nativeElement ? this.nativeElement.closeOnMaskClick : undefined;
146
- }
147
- set closeOnMaskClick(value) {
148
- if (this.nativeElement) {
149
- this.nativeElement.closeOnMaskClick = value;
150
- }
151
- }
152
- /** Determines the data source that will be loaded to the TabsWindow. Applicable only to TabsWindow.
153
- * Property type: {label: string, content: string}[]
154
- */
155
- get dataSource() {
156
- return this.nativeElement ? this.nativeElement.dataSource : undefined;
157
- }
158
- set dataSource(value) {
159
- if (this.nativeElement) {
160
- this.nativeElement.dataSource = value;
161
- }
162
- }
163
- /** Enables or disables the window.
164
- * Property type: boolean
165
- */
166
- get disabled() {
167
- return this.nativeElement ? this.nativeElement.disabled : undefined;
168
- }
169
- set disabled(value) {
170
- if (this.nativeElement) {
171
- this.nativeElement.disabled = value;
172
- }
173
- }
174
- /** Enables or disables the window snapping feature.
175
- * Property type: boolean
176
- */
177
- get disableSnap() {
178
- return this.nativeElement ? this.nativeElement.disableSnap : undefined;
179
- }
180
- set disableSnap(value) {
181
- if (this.nativeElement) {
182
- this.nativeElement.disableSnap = value;
183
- }
184
- }
185
- /** By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that.
186
- * Property type: boolean
187
- */
188
- get disableEscape() {
189
- return this.nativeElement ? this.nativeElement.disableEscape : undefined;
190
- }
191
- set disableEscape(value) {
192
- if (this.nativeElement) {
193
- this.nativeElement.disableEscape = value;
194
- }
195
- }
196
- /** By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that.
197
- * Property type: boolean
198
- */
199
- get disableKeyboard() {
200
- return this.nativeElement ? this.nativeElement.disableKeyboard : undefined;
201
- }
202
- set disableKeyboard(value) {
203
- if (this.nativeElement) {
204
- this.nativeElement.disableKeyboard = value;
205
- }
206
- }
207
- /** Determines how the characters are displayed inside the input. Applicable to Prompt Window.
208
- * Property type: WindowDisplayMode | string
209
- */
210
- get displayMode() {
211
- return this.nativeElement ? this.nativeElement.displayMode : undefined;
212
- }
213
- set displayMode(value) {
214
- if (this.nativeElement) {
215
- this.nativeElement.displayMode = value;
216
- }
217
- }
218
- /** Applicable to TabsWindow when docked inside a DockingLayout Custom Element. Determines where the window(it's tab items as well) can be dropped inside the DockingLayout. The property is an array that accepts multiple positions. Note: Positions with prefix 'layout-' are applied to the Tab item children of the TabsWidnow owner that is being dragged. The rest of the positions indicate the allowed drop position inside the hovered target(TabsWindow). Used only by jqxDockingLayout custom elements. Determines the possible drop position inside the DockingLayout. The following values are allowed.
219
- * Property type: WindowDropPosition | string
220
- */
221
- get dropPosition() {
222
- return this.nativeElement ? this.nativeElement.dropPosition : undefined;
223
- }
224
- set dropPosition(value) {
225
- if (this.nativeElement) {
226
- this.nativeElement.dropPosition = value;
227
- }
228
- }
229
- /** A callback function defining the new format for the label of the Progress Bar. Applicable only to ProgressWindow.
230
- * Property type: any
231
- */
232
- get formatFunction() {
233
- return this.nativeElement ? this.nativeElement.formatFunction : undefined;
234
- }
235
- set formatFunction(value) {
236
- if (this.nativeElement) {
237
- this.nativeElement.formatFunction = value;
238
- }
239
- }
240
- /** Determines the position of the footer of the window element.
241
- * Property type: WindowFooterPosition | string
242
- */
243
- get footerPosition() {
244
- return this.nativeElement ? this.nativeElement.footerPosition : undefined;
245
- }
246
- set footerPosition(value) {
247
- if (this.nativeElement) {
248
- this.nativeElement.footerPosition = value;
249
- }
250
- }
251
- /** Determines the template for the Dialog section of the window. By default footerTemplate is null.
252
- * Property type: any
253
- */
254
- get footerTemplate() {
255
- return this.nativeElement ? this.nativeElement.footerTemplate : undefined;
256
- }
257
- set footerTemplate(value) {
258
- if (this.nativeElement) {
259
- this.nativeElement.footerTemplate = value;
260
- }
261
- }
262
- /** Set's the buttons that will be visible in the header section.
263
- * Property type: string[]
264
- */
265
- get headerButtons() {
266
- return this.nativeElement ? this.nativeElement.headerButtons : undefined;
267
- }
268
- set headerButtons(value) {
269
- if (this.nativeElement) {
270
- this.nativeElement.headerButtons = value;
271
- }
272
- }
273
- /** Determines the template for the Dialog section of the window. By default headerTemplate is null.
274
- * Property type: any
275
- */
276
- get headerTemplate() {
277
- return this.nativeElement ? this.nativeElement.headerTemplate : undefined;
278
- }
279
- set headerTemplate(value) {
280
- if (this.nativeElement) {
281
- this.nativeElement.headerTemplate = value;
282
- }
283
- }
284
- /** Determines the position of the header of the window element.
285
- * Property type: TabPosition | string
286
- */
287
- get headerPosition() {
288
- return this.nativeElement ? this.nativeElement.headerPosition : undefined;
289
- }
290
- set headerPosition(value) {
291
- if (this.nativeElement) {
292
- this.nativeElement.headerPosition = value;
293
- }
294
- }
295
- /** Sets additional helper text below the text box. The hint is visible only when the text box is focued. Applicable to Prompt Window.
296
- * Property type: any
297
- */
298
- get hint() {
299
- return this.nativeElement ? this.nativeElement.hint : undefined;
300
- }
301
- set hint(value) {
302
- if (this.nativeElement) {
303
- this.nativeElement.hint = value;
304
- }
305
- }
306
- /** Sets the value of the Progress bar to indeterminate state(null) and starts the animation. Applicable only to ProgressWindow.
307
- * Property type: boolean
308
- */
309
- get indeterminate() {
310
- return this.nativeElement ? this.nativeElement.indeterminate : undefined;
311
- }
312
- set indeterminate(value) {
313
- if (this.nativeElement) {
314
- this.nativeElement.indeterminate = value;
315
- }
316
- }
317
- /** Sets the filling direction of the Progress Bar. Applicable only to ProgressWindow.
318
- * Property type: boolean
319
- */
320
- get inverted() {
321
- return this.nativeElement ? this.nativeElement.inverted : undefined;
322
- }
323
- set inverted(value) {
324
- if (this.nativeElement) {
325
- this.nativeElement.inverted = value;
326
- }
327
- }
328
- /** The label of the window that appears in the header area.
329
- * Property type: string
330
- */
331
- get label() {
332
- return this.nativeElement ? this.nativeElement.label : undefined;
333
- }
334
- set label(value) {
335
- if (this.nativeElement) {
336
- this.nativeElement.label = value;
337
- }
338
- }
339
- /** When enabled the resizing operation happens live. By default it's not enabled and during resizing a highlighter around the edges of the window appears to outline the current size of the element.
340
- * Property type: boolean
341
- */
342
- get liveResize() {
343
- return this.nativeElement ? this.nativeElement.liveResize : undefined;
344
- }
345
- set liveResize(value) {
346
- if (this.nativeElement) {
347
- this.nativeElement.liveResize = value;
348
- }
349
- }
350
- /** Applicable only to TabsWindow when used with a DockingLayout custom element.Used only by jqxDockingLayout. Determines the owner jqxDockingLayout that the window belongs to. When the tabsWindow has been removed from a DockingLayout element, the property is used to indicate that it belongs to that particular Dockinglayout. Accepts a string, representing the ID of a jqxDockingLayout on the page, or an instance of jqxDokcingLayout.
351
- * Property type: any
352
- */
353
- get layout() {
354
- return this.nativeElement ? this.nativeElement.layout : undefined;
355
- }
356
- set layout(value) {
357
- if (this.nativeElement) {
358
- this.nativeElement.layout = value;
359
- }
360
- }
361
- /** Sets or gets the language. Used in conjunction with the property messages.
362
- * Property type: string
363
- */
364
- get locale() {
365
- return this.nativeElement ? this.nativeElement.locale : undefined;
366
- }
367
- set locale(value) {
368
- if (this.nativeElement) {
369
- this.nativeElement.locale = value;
370
- }
371
- }
372
- /** Applicable only to TabsWindow when docked inside a DockingLayout Custom Element.Determines of the item can be resized or not.
373
- * Property type: boolean
374
- */
375
- get locked() {
376
- return this.nativeElement ? this.nativeElement.locked : undefined;
377
- }
378
- set locked(value) {
379
- if (this.nativeElement) {
380
- this.nativeElement.locked = value;
381
- }
382
- }
383
- /** Callback, related to localization module.
384
- * Property type: any
385
- */
386
- get localizeFormatFunction() {
387
- return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
388
- }
389
- set localizeFormatFunction(value) {
390
- if (this.nativeElement) {
391
- this.nativeElement.localizeFormatFunction = value;
392
- }
393
- }
394
- /** Determines if the window is maximized or not. When maximized the window covers the whole viewport.
395
- * Property type: boolean
396
- */
397
- get maximized() {
398
- return this.nativeElement ? this.nativeElement.maximized : undefined;
399
- }
400
- set maximized(value) {
401
- if (this.nativeElement) {
402
- this.nativeElement.maximized = value;
403
- }
404
- }
405
- /** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
406
- * Property type: any
407
- */
408
- get messages() {
409
- return this.nativeElement ? this.nativeElement.messages : undefined;
410
- }
411
- set messages(value) {
412
- if (this.nativeElement) {
413
- this.nativeElement.messages = value;
414
- }
415
- }
416
- /** Determines if the window is modal or not. If true the user can only interact with the window and nothing else on the page.
417
- * Property type: boolean
418
- */
419
- get modal() {
420
- return this.nativeElement ? this.nativeElement.modal : undefined;
421
- }
422
- set modal(value) {
423
- if (this.nativeElement) {
424
- this.nativeElement.modal = value;
425
- }
426
- }
427
- /** Applicable to TabsWindow when docked inside a DockingLayout Custom Element. Determines the max size of the item. Applicable to Progress Window by allowing the user to specify the maximum of the ProgressBar.
428
- * Property type: string | number | null
429
- */
430
- get max() {
431
- return this.nativeElement ? this.nativeElement.max : undefined;
432
- }
433
- set max(value) {
434
- if (this.nativeElement) {
435
- this.nativeElement.max = value;
436
- }
437
- }
438
- /** Applicable to TabsWindow when docked inside DockingLayout Custom Element. Determines the min size of the item. Applicable to Progress Window by allowing the user to specify the minimu of the ProgressBar.
439
- * Property type: string | number | null
440
- */
441
- get min() {
442
- return this.nativeElement ? this.nativeElement.min : undefined;
443
- }
444
- set min(value) {
445
- if (this.nativeElement) {
446
- this.nativeElement.min = value;
447
- }
448
- }
449
- /** Determines if the window is minimized or not. When minimized the window is docked at the bottom left corner of the viewport.
450
- * Property type: boolean
451
- */
452
- get minimized() {
453
- return this.nativeElement ? this.nativeElement.minimized : undefined;
454
- }
455
- set minimized(value) {
456
- if (this.nativeElement) {
457
- this.nativeElement.minimized = value;
458
- }
459
- }
460
- /** Sets or gets the maximum number of characters that the user can enter. Applicable to Prompt/MultilinePrompt Window.
461
- * Property type: number
462
- */
463
- get maxLength() {
464
- return this.nativeElement ? this.nativeElement.maxLength : undefined;
465
- }
466
- set maxLength(value) {
467
- if (this.nativeElement) {
468
- this.nativeElement.maxLength = value;
469
- }
470
- }
471
- /** Sets or gets the minimum number of characters that the user have to enter to trigger the auto complete functionality. Applicable to Prompt/MultilinePrompt Window.
472
- * Property type: number
473
- */
474
- get minLength() {
475
- return this.nativeElement ? this.nativeElement.minLength : undefined;
476
- }
477
- set minLength(value) {
478
- if (this.nativeElement) {
479
- this.nativeElement.minLength = value;
480
- }
481
- }
482
- /** Determines if the window is visible or not.
483
- * Property type: boolean
484
- */
485
- get opened() {
486
- return this.nativeElement ? this.nativeElement.opened : undefined;
487
- }
488
- set opened(value) {
489
- if (this.nativeElement) {
490
- this.nativeElement.opened = value;
491
- }
492
- }
493
- /** Determines if the window is pinned or not. Pinned window is a window that can't be dragged but can be resized.
494
- * Property type: boolean
495
- */
496
- get pinned() {
497
- return this.nativeElement ? this.nativeElement.pinned : undefined;
498
- }
499
- set pinned(value) {
500
- if (this.nativeElement) {
501
- this.nativeElement.pinned = value;
502
- }
503
- }
504
- /** Determines the input's placeholder. Applicable to Prompt Window.
505
- * Property type: string
506
- */
507
- get placeholder() {
508
- return this.nativeElement ? this.nativeElement.placeholder : undefined;
509
- }
510
- set placeholder(value) {
511
- if (this.nativeElement) {
512
- this.nativeElement.placeholder = value;
513
- }
514
- }
515
- /** Determines the label for the Input insinde the PromptWindow.
516
- * Property type: string
517
- */
518
- get promptLabel() {
519
- return this.nativeElement ? this.nativeElement.promptLabel : undefined;
520
- }
521
- set promptLabel(value) {
522
- if (this.nativeElement) {
523
- this.nativeElement.promptLabel = value;
524
- }
525
- }
526
- /** If the element is readonly, users cannot interact with it.
527
- * Property type: boolean
528
- */
529
- get readonly() {
530
- return this.nativeElement ? this.nativeElement.readonly : undefined;
531
- }
532
- set readonly(value) {
533
- if (this.nativeElement) {
534
- this.nativeElement.readonly = value;
535
- }
536
- }
537
- /** When applied a resize indicator is displayed in the bottom right corner of the window and resizing operation can be initiated only from its position.
538
- * Property type: boolean
539
- */
540
- get resizeIndicator() {
541
- return this.nativeElement ? this.nativeElement.resizeIndicator : undefined;
542
- }
543
- set resizeIndicator(value) {
544
- if (this.nativeElement) {
545
- this.nativeElement.resizeIndicator = value;
546
- }
547
- }
548
- /** Determines the resizing mode of the window. Several modes are available: none - resizing is disabled. vertical - vertical resizing is allowed. horizontal - horizontal resizing is allowed. both - horizontal and vertical resizing is allowed. top - the window can only be resized from the top side. bottom - the window is resizable only from the bottom side. left - the window can be resized only from the left side. right - the window can be resized only from the right side.
549
- * Property type: WindowResizeMode | string
550
- */
551
- get resizeMode() {
552
- return this.nativeElement ? this.nativeElement.resizeMode : undefined;
553
- }
554
- set resizeMode(value) {
555
- if (this.nativeElement) {
556
- this.nativeElement.resizeMode = value;
557
- }
558
- }
559
- /** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
560
- * Property type: boolean
561
- */
562
- get rightToLeft() {
563
- return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
564
- }
565
- set rightToLeft(value) {
566
- if (this.nativeElement) {
567
- this.nativeElement.rightToLeft = value;
568
- }
569
- }
570
- /** Specifies that the user must fill the input before submitting a form with the text box.Applicable to Prompt Window.
571
- * Property type: boolean
572
- */
573
- get required() {
574
- return this.nativeElement ? this.nativeElement.required : undefined;
575
- }
576
- set required(value) {
577
- if (this.nativeElement) {
578
- this.nativeElement.required = value;
579
- }
580
- }
581
- /** Specifies the message that will appear if required is set and no value is provided in the input. Applicable to Prompt Window.
582
- * Property type: string
583
- */
584
- get requiredMessage() {
585
- return this.nativeElement ? this.nativeElement.requiredMessage : undefined;
586
- }
587
- set requiredMessage(value) {
588
- if (this.nativeElement) {
589
- this.nativeElement.requiredMessage = value;
590
- }
591
- }
592
- /** Determines whether the content of the input will be selected on focus or not. Applicable to Prompt Window.
593
- * Property type: boolean
594
- */
595
- get selectAllOnFocus() {
596
- return this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;
597
- }
598
- set selectAllOnFocus(value) {
599
- if (this.nativeElement) {
600
- this.nativeElement.selectAllOnFocus = value;
601
- }
602
- }
603
- /** Sets or gets which tab is selected. Applicable only to TabsWindow.
604
- * Property type: number | null
605
- */
606
- get selectedIndex() {
607
- return this.nativeElement ? this.nativeElement.selectedIndex : undefined;
608
- }
609
- set selectedIndex(value) {
610
- if (this.nativeElement) {
611
- this.nativeElement.selectedIndex = value;
612
- }
613
- }
614
- /** Determines the way the user can switch between tabs. Applicable only to TabsWindow.
615
- * Property type: TabSelectionMode | string
616
- */
617
- get selectionMode() {
618
- return this.nativeElement ? this.nativeElement.selectionMode : undefined;
619
- }
620
- set selectionMode(value) {
621
- if (this.nativeElement) {
622
- this.nativeElement.selectionMode = value;
623
- }
624
- }
625
- /** Indicates the index of the last character in the current selection. Applicable only to MultilinePromptWindow.
626
- * Property type: number
627
- */
628
- get selectionEnd() {
629
- return this.nativeElement ? this.nativeElement.selectionEnd : undefined;
630
- }
631
- set selectionEnd(value) {
632
- if (this.nativeElement) {
633
- this.nativeElement.selectionEnd = value;
634
- }
635
- }
636
- /** Indicates the index to the first character in the current selection. Applicable only to MultilinePromptWindow.
637
- * Property type: number
638
- */
639
- get selectionStart() {
640
- return this.nativeElement ? this.nativeElement.selectionStart : undefined;
641
- }
642
- set selectionStart(value) {
643
- if (this.nativeElement) {
644
- this.nativeElement.selectionStart = value;
645
- }
646
- }
647
- /** Enables/Disabled the label for the Progress Bar. Applicable only to Progress Window.
648
- * Property type: boolean
649
- */
650
- get showProgressValue() {
651
- return this.nativeElement ? this.nativeElement.showProgressValue : undefined;
652
- }
653
- set showProgressValue(value) {
654
- if (this.nativeElement) {
655
- this.nativeElement.showProgressValue = value;
656
- }
657
- }
658
- /** A getter that returns the siblings (that share the same parent) of a LayoutPanel item that is docked inside a DockingLayout. The siblings are also DockingLayout items ( LayoutPanels).Applicable only to TabsWindow when docked inside a DockingLayout.
659
- * Property type: any
660
- */
661
- get siblings() {
662
- return this.nativeElement ? this.nativeElement.siblings : undefined;
663
- }
664
- set siblings(value) {
665
- if (this.nativeElement) {
666
- this.nativeElement.siblings = value;
667
- }
668
- }
669
- /** Applicable to TabsWindow when nested inside a DockingLayout Custom Element. Determines the size of the item.
670
- * Property type: string
671
- */
672
- get size() {
673
- return this.nativeElement ? this.nativeElement.size : undefined;
674
- }
675
- set size(value) {
676
- if (this.nativeElement) {
677
- this.nativeElement.size = value;
678
- }
679
- }
680
- /** Specifies whether the element is to have its spelling and grammar checked or not. Applicable only to MultilinePromptWindow.
681
- * Property type: boolean
682
- */
683
- get spellCheck() {
684
- return this.nativeElement ? this.nativeElement.spellCheck : undefined;
685
- }
686
- set spellCheck(value) {
687
- if (this.nativeElement) {
688
- this.nativeElement.spellCheck = value;
689
- }
690
- }
691
- /** Sets or gets whether close buttons are displayed inside the Tab Strip of the TabsWindow. Applicable only to TabsWindow.
692
- * Property type: boolean
693
- */
694
- get tabCloseButtons() {
695
- return this.nativeElement ? this.nativeElement.tabCloseButtons : undefined;
696
- }
697
- set tabCloseButtons(value) {
698
- if (this.nativeElement) {
699
- this.nativeElement.tabCloseButtons = value;
700
- }
701
- }
702
- /** Determines if the close button is visible on select or always. Applicable only to TabsWindow.
703
- * Property type: WindowTabCloseButtonMode | string
704
- */
705
- get tabCloseButtonMode() {
706
- return this.nativeElement ? this.nativeElement.tabCloseButtonMode : undefined;
707
- }
708
- set tabCloseButtonMode(value) {
709
- if (this.nativeElement) {
710
- this.nativeElement.tabCloseButtonMode = value;
711
- }
712
- }
713
- /** Sets or gets the Tabs scroll buttons behavior. Applicable only when tabLayout is 'scroll'. Applicable only to TabsWindow.
714
- * Property type: Overflow | string
715
- */
716
- get tabOverflow() {
717
- return this.nativeElement ? this.nativeElement.tabOverflow : undefined;
718
- }
719
- set tabOverflow(value) {
720
- if (this.nativeElement) {
721
- this.nativeElement.tabOverflow = value;
722
- }
723
- }
724
- /** Detetmines Tab Strip is positioned of the TabsWindow. Applicable only to TabsWindow.
725
- * Property type: TabPosition | string
726
- */
727
- get tabPosition() {
728
- return this.nativeElement ? this.nativeElement.tabPosition : undefined;
729
- }
730
- set tabPosition(value) {
731
- if (this.nativeElement) {
732
- this.nativeElement.tabPosition = value;
733
- }
734
- }
735
- /** Sets or gets the position of the scroll buttons inside the Tab header of the TabsWindow. Applicable only to TabsWindow.
736
- * Property type: LayoutPosition | string
737
- */
738
- get tabScrollButtonsPosition() {
739
- return this.nativeElement ? this.nativeElement.tabScrollButtonsPosition : undefined;
740
- }
741
- set tabScrollButtonsPosition(value) {
742
- if (this.nativeElement) {
743
- this.nativeElement.tabScrollButtonsPosition = value;
744
- }
745
- }
746
- /** Sets or gets the orientation of the text in the tabs labels of the TabsWindow. Applicable only to TabsWindow.
747
- * Property type: Orientation | string
748
- */
749
- get tabTextOrientation() {
750
- return this.nativeElement ? this.nativeElement.tabTextOrientation : undefined;
751
- }
752
- set tabTextOrientation(value) {
753
- if (this.nativeElement) {
754
- this.nativeElement.tabTextOrientation = value;
755
- }
756
- }
757
- /** Determines the theme. Theme defines the look of the element
758
- * Property type: string
759
- */
760
- get theme() {
761
- return this.nativeElement ? this.nativeElement.theme : undefined;
762
- }
763
- set theme(value) {
764
- if (this.nativeElement) {
765
- this.nativeElement.theme = value;
766
- }
767
- }
768
- /** If is set to true, the element cannot be focused.
769
- * Property type: boolean
770
- */
771
- get unfocusable() {
772
- return this.nativeElement ? this.nativeElement.unfocusable : undefined;
773
- }
774
- set unfocusable(value) {
775
- if (this.nativeElement) {
776
- this.nativeElement.unfocusable = value;
777
- }
778
- }
779
- /** Determines the value of the TextBox/ProgressBar inside the Dialog/Prompt/Progress Window
780
- * Property type: string | number
781
- */
782
- get value() {
783
- return this.nativeElement ? this.nativeElement.value : undefined;
784
- }
785
- set value(value) {
786
- if (this.nativeElement) {
787
- this.nativeElement.value = value;
788
- }
789
- }
790
- /** Determines the actual parent of the element. The window can size and move only in the area of that element.
791
- * Property type: any
792
- */
793
- get windowParent() {
794
- return this.nativeElement ? this.nativeElement.windowParent : undefined;
795
- }
796
- set windowParent(value) {
797
- if (this.nativeElement) {
798
- this.nativeElement.windowParent = value;
799
- }
800
- }
801
- /** Indicates how the input wraps text. Applicable only to MultilinePromptWindow.
802
- * Property type: WindowWrap | string
803
- */
804
- get wrap() {
805
- return this.nativeElement ? this.nativeElement.wrap : undefined;
806
- }
807
- set wrap(value) {
808
- if (this.nativeElement) {
809
- this.nativeElement.wrap = value;
810
- }
811
- }
812
- // Gets the properties of the React component.
813
- get properties() {
814
- return ["addNewTab", "animation", "autoCapitalize", "autoExpand", "cancelLabel", "completeLabel", "confirmLabel", "collapsed", "closeOnMaskClick", "dataSource", "disabled", "disableSnap", "disableEscape", "disableKeyboard", "displayMode", "dropPosition", "formatFunction", "footerPosition", "footerTemplate", "headerButtons", "headerTemplate", "headerPosition", "hint", "indeterminate", "inverted", "label", "liveResize", "layout", "locale", "locked", "localizeFormatFunction", "maximized", "messages", "modal", "max", "min", "minimized", "maxLength", "minLength", "opened", "pinned", "placeholder", "promptLabel", "readonly", "resizeIndicator", "resizeMode", "rightToLeft", "required", "requiredMessage", "selectAllOnFocus", "selectedIndex", "selectionMode", "selectionEnd", "selectionStart", "showProgressValue", "siblings", "size", "spellCheck", "tabCloseButtons", "tabCloseButtonMode", "tabOverflow", "tabPosition", "tabScrollButtonsPosition", "tabTextOrientation", "theme", "unfocusable", "value", "windowParent", "wrap"];
815
- }
816
- // Gets the events of the React component.
817
- get eventListeners() {
818
- return ["onOpening", "onOpen", "onClosing", "onClose", "onCollapse", "onDragEnd", "onDragStart", "onExpand", "onMaximize", "onMinimize", "onResizeEnd", "onResizeStart", "onRestore", "onCreate", "onReady"];
819
- }
820
- /** Appends a tabitem to the end of the list of tab items inside element.
821
- * @param {Node} node. A TabItem element that should be added to the rest of the items as the last item.
822
- * @returns {Node}
823
- */
824
- appendChild(node) {
825
- return __awaiter(this, void 0, void 0, function* () {
826
- const getResultOnRender = () => {
827
- return new Promise(resolve => {
828
- this.nativeElement.whenRendered(() => {
829
- const result = this.nativeElement.appendChild(node);
830
- resolve(result);
831
- });
832
- });
833
- };
834
- const result = yield getResultOnRender();
835
- return result;
836
- });
837
- }
838
- /** Sets the window to the top level so the user can interact with it.
839
- */
840
- bringToFront() {
841
- if (this.nativeElement.isRendered) {
842
- this.nativeElement.bringToFront();
843
- }
844
- else {
845
- this.nativeElement.whenRendered(() => {
846
- this.nativeElement.bringToFront();
847
- });
848
- }
849
- }
850
- /** Clears the content of the Window.
851
- */
852
- clear() {
853
- if (this.nativeElement.isRendered) {
854
- this.nativeElement.clear();
855
- }
856
- else {
857
- this.nativeElement.whenRendered(() => {
858
- this.nativeElement.clear();
859
- });
860
- }
861
- }
862
- /** Closes the window.
863
- */
864
- close() {
865
- if (this.nativeElement.isRendered) {
866
- this.nativeElement.close();
867
- }
868
- else {
869
- this.nativeElement.whenRendered(() => {
870
- this.nativeElement.close();
871
- });
872
- }
873
- }
874
- /** Collapses the window.
875
- * @returns {HTMLElement}
876
- */
877
- collapse() {
878
- return __awaiter(this, void 0, void 0, function* () {
879
- const getResultOnRender = () => {
880
- return new Promise(resolve => {
881
- this.nativeElement.whenRendered(() => {
882
- const result = this.nativeElement.collapse();
883
- resolve(result);
884
- });
885
- });
886
- };
887
- const result = yield getResultOnRender();
888
- return result;
889
- });
890
- }
891
- /** Makes sure a tab item is visible by scrolling to it. Applicable only to TabsWindow.
892
- * @param {number} index. The index of the tab to scroll to.
893
- */
894
- ensureVisible(index) {
895
- if (this.nativeElement.isRendered) {
896
- this.nativeElement.ensureVisible(index);
897
- }
898
- else {
899
- this.nativeElement.whenRendered(() => {
900
- this.nativeElement.ensureVisible(index);
901
- });
902
- }
903
- }
904
- /** Expands the window after being collapsed.
905
- * @returns {any[]}
906
- */
907
- expand() {
908
- return __awaiter(this, void 0, void 0, function* () {
909
- const getResultOnRender = () => {
910
- return new Promise(resolve => {
911
- this.nativeElement.whenRendered(() => {
912
- const result = this.nativeElement.expand();
913
- resolve(result);
914
- });
915
- });
916
- };
917
- const result = yield getResultOnRender();
918
- return result;
919
- });
920
- }
921
- /** Inserts a new tab and an associated content section. Applicable only to TabsWindow.
922
- * @param {number} index. The index to insert a new tab at.
923
- * @param {any} details. An Object with the fields "label", "labelSize", "content" and "group".
924
- */
925
- insert(index, details) {
926
- if (this.nativeElement.isRendered) {
927
- this.nativeElement.insert(index, details);
928
- }
929
- else {
930
- this.nativeElement.whenRendered(() => {
931
- this.nativeElement.insert(index, details);
932
- });
933
- }
934
- }
935
- /** Inserts the specified "smart-tab-item" node before the reference "smart-tab-item" node. Applicable only to TabsWindow.
936
- * @param {Node} newNode. The "jqx-tab-item" node to insert.
937
- * @param {Node | null} referenceNode?. The "jqx-tab-item" node before which newNode is inserted.
938
- * @returns {Node}
939
- */
940
- insertBefore(newNode, referenceNode) {
941
- return __awaiter(this, void 0, void 0, function* () {
942
- const getResultOnRender = () => {
943
- return new Promise(resolve => {
944
- this.nativeElement.whenRendered(() => {
945
- const result = this.nativeElement.insertBefore(newNode, referenceNode);
946
- resolve(result);
947
- });
948
- });
949
- };
950
- const result = yield getResultOnRender();
951
- return result;
952
- });
953
- }
954
- /** Moves the window to a new position
955
- * @param {string | number} left. Left position. For example: '100px'.
956
- * @param {string | number} top. Top position. For example: '100px'.
957
- */
958
- move(left, top) {
959
- if (this.nativeElement.isRendered) {
960
- this.nativeElement.move(left, top);
961
- }
962
- else {
963
- this.nativeElement.whenRendered(() => {
964
- this.nativeElement.move(left, top);
965
- });
966
- }
967
- }
968
- /** Maximizes the window to fill the area.
969
- */
970
- maximize() {
971
- if (this.nativeElement.isRendered) {
972
- this.nativeElement.maximize();
973
- }
974
- else {
975
- this.nativeElement.whenRendered(() => {
976
- this.nativeElement.maximize();
977
- });
978
- }
979
- }
980
- /** Minimizes the window.
981
- */
982
- minimize() {
983
- if (this.nativeElement.isRendered) {
984
- this.nativeElement.minimize();
985
- }
986
- else {
987
- this.nativeElement.whenRendered(() => {
988
- this.nativeElement.minimize();
989
- });
990
- }
991
- }
992
- /** Opens the window
993
- */
994
- open() {
995
- if (this.nativeElement.isRendered) {
996
- this.nativeElement.open();
997
- }
998
- else {
999
- this.nativeElement.whenRendered(() => {
1000
- this.nativeElement.open();
1001
- });
1002
- }
1003
- }
1004
- /** Pins the window. Disables window dragging.
1005
- */
1006
- pin() {
1007
- if (this.nativeElement.isRendered) {
1008
- this.nativeElement.pin();
1009
- }
1010
- else {
1011
- this.nativeElement.whenRendered(() => {
1012
- this.nativeElement.pin();
1013
- });
1014
- }
1015
- }
1016
- /** Removes a tab and its associated content section. Applicable only to TabsWindow.
1017
- * @param {number} index. The index of the tab to remove.
1018
- */
1019
- removeAt(index) {
1020
- if (this.nativeElement.isRendered) {
1021
- this.nativeElement.removeAt(index);
1022
- }
1023
- else {
1024
- this.nativeElement.whenRendered(() => {
1025
- this.nativeElement.removeAt(index);
1026
- });
1027
- }
1028
- }
1029
- /** Removes a child "smart-tab-item" node. Applicable only to TabsWindow.
1030
- * @param {Node} node. The "jqx-tab-item" node to remove.
1031
- * @returns {Node}
1032
- */
1033
- removeChild(node) {
1034
- return __awaiter(this, void 0, void 0, function* () {
1035
- const getResultOnRender = () => {
1036
- return new Promise(resolve => {
1037
- this.nativeElement.whenRendered(() => {
1038
- const result = this.nativeElement.removeChild(node);
1039
- resolve(result);
1040
- });
1041
- });
1042
- };
1043
- const result = yield getResultOnRender();
1044
- return result;
1045
- });
1046
- }
1047
- /** Restores the window to it's previous size before maximization/minimization.
1048
- */
1049
- restore() {
1050
- if (this.nativeElement.isRendered) {
1051
- this.nativeElement.restore();
1052
- }
1053
- else {
1054
- this.nativeElement.whenRendered(() => {
1055
- this.nativeElement.restore();
1056
- });
1057
- }
1058
- }
1059
- /** Selects a tab. Applicalbe only to TabsWindow elements.
1060
- * @param {number} index. The index of the tab to select.
1061
- */
1062
- select(index) {
1063
- if (this.nativeElement.isRendered) {
1064
- this.nativeElement.select(index);
1065
- }
1066
- else {
1067
- this.nativeElement.whenRendered(() => {
1068
- this.nativeElement.select(index);
1069
- });
1070
- }
1071
- }
1072
- /** Unpins the window. Enables window dragging.
1073
- */
1074
- unpin() {
1075
- if (this.nativeElement.isRendered) {
1076
- this.nativeElement.unpin();
1077
- }
1078
- else {
1079
- this.nativeElement.whenRendered(() => {
1080
- this.nativeElement.unpin();
1081
- });
1082
- }
1083
- }
1084
- /** Updates the header label.
1085
- * @param {string} label. The new label of the Header.
1086
- */
1087
- updateLabel(label) {
1088
- if (this.nativeElement.isRendered) {
1089
- this.nativeElement.updateLabel(label);
1090
- }
1091
- else {
1092
- this.nativeElement.whenRendered(() => {
1093
- this.nativeElement.updateLabel(label);
1094
- });
1095
- }
1096
- }
1097
- /** Updates the content.
1098
- * @param {string | HTMLElement} content. The new content of the window.
1099
- */
1100
- updateContent(content) {
1101
- if (this.nativeElement.isRendered) {
1102
- this.nativeElement.updateContent(content);
1103
- }
1104
- else {
1105
- this.nativeElement.whenRendered(() => {
1106
- this.nativeElement.updateContent(content);
1107
- });
1108
- }
1109
- }
1110
- /** Updates a TAB in TAB Window and its associated content section. Applies only to TabsWindow elements.
1111
- * @param {number} index. The index of the tab to update.
1112
- * @param {string} label. The new label of the tab. The value can be the id of an HTMLTemplateElement
1113
- * @param {string | HTMLElement} content. The new content of the tab.
1114
- */
1115
- update(index, label, content) {
1116
- if (this.nativeElement.isRendered) {
1117
- this.nativeElement.update(index, label, content);
1118
- }
1119
- else {
1120
- this.nativeElement.whenRendered(() => {
1121
- this.nativeElement.update(index, label, content);
1122
- });
1123
- }
1124
- }
1125
- componentDidRender(initialize) {
1126
- const that = this;
1127
- const props = {};
1128
- const events = {};
1129
- let styles = null;
1130
- for (let prop in that.props) {
1131
- if (prop === 'children') {
1132
- continue;
1133
- }
1134
- if (prop === 'style') {
1135
- styles = that.props[prop];
1136
- continue;
1137
- }
1138
- if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
1139
- events[prop] = that.props[prop];
1140
- continue;
1141
- }
1142
- props[prop] = that.props[prop];
1143
- }
1144
- if (initialize) {
1145
- that.nativeElement = this.componentRef.current;
1146
- }
1147
- for (let prop in props) {
1148
- if (prop === 'class' || prop === 'className') {
1149
- const classNames = props[prop].trim().split(' ');
1150
- for (let className in classNames) {
1151
- if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
1152
- that.nativeElement.classList.add(classNames[className]);
1153
- }
1154
- }
1155
- continue;
1156
- }
1157
- if (props[prop] !== that.nativeElement[prop]) {
1158
- const normalizeProp = (str) => {
1159
- return str.replace(/-([a-z])/g, function (g) {
1160
- return g[1].toUpperCase();
1161
- });
1162
- };
1163
- if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
1164
- that.nativeElement.setAttribute(prop, '');
1165
- }
1166
- const normalizedProp = normalizeProp(prop);
1167
- that.nativeElement[normalizedProp] = props[prop];
1168
- }
1169
- }
1170
- for (let eventName in events) {
1171
- that[eventName] = events[eventName];
1172
- that.nativeElement[eventName.toLowerCase()] = events[eventName];
1173
- }
1174
- if (initialize) {
1175
- Smart.Render();
1176
- if (that.onCreate) {
1177
- that.onCreate();
1178
- }
1179
- that.nativeElement.whenRendered(() => {
1180
- if (that.onReady) {
1181
- that.onReady();
1182
- }
1183
- });
1184
- }
1185
- // setup styles.
1186
- if (styles) {
1187
- for (let styleName in styles) {
1188
- that.nativeElement.style[styleName] = styles[styleName];
1189
- }
1190
- }
1191
- }
1192
- componentDidMount() {
1193
- this.componentDidRender(true);
1194
- }
1195
- componentDidUpdate() {
1196
- this.componentDidRender(false);
1197
- }
1198
- componentWillUnmount() {
1199
- const that = this;
1200
- if (!that.nativeElement) {
1201
- return;
1202
- }
1203
- that.nativeElement.whenRenderedCallbacks = [];
1204
- for (let i = 0; i < that.eventListeners.length; i++) {
1205
- const eventName = that.eventListeners[i];
1206
- that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
1207
- }
1208
- }
1209
- render() {
1210
- return (React.createElement("smart-tabs-window", { ref: this.componentRef }, this.props.children));
1211
- }
1212
- }
1139
+ exports.Smart = Smart;
1140
+ exports.TabsWindow = TabsWindow;
1141
+ exports.default = TabsWindow;
1213
1142
 
1214
- exports.Smart = Smart;
1215
- exports.TabsWindow = TabsWindow;
1216
- exports.default = TabsWindow;
1217
-
1218
- Object.defineProperty(exports, '__esModule', { value: true });
1143
+ Object.defineProperty(exports, '__esModule', { value: true });
1219
1144
 
1220
1145
  })));