dhx-chart 8.2.3 → 8.2.5

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 (368) hide show
  1. package/codebase/chart.d.ts +1 -1
  2. package/codebase/chart.min.css +1 -1
  3. package/codebase/chart.min.js +3 -3
  4. package/codebase/types/ts-all/sources/entry.d.ts +27 -0
  5. package/codebase/types/ts-all/sources/entry_pro.d.ts +17 -0
  6. package/codebase/types/ts-calendar/sources/entry.d.ts +7 -0
  7. package/codebase/types/ts-calendar/sources/types.d.ts +2 -2
  8. package/codebase/types/ts-calendar/tests/calendar/calendar.d.ts +1 -0
  9. package/codebase/types/ts-calendar/tests/suite.d.ts +1 -0
  10. package/codebase/types/ts-chart/index.d.ts +3 -0
  11. package/codebase/types/ts-chart/sources/ProChart.d.ts +7 -0
  12. package/codebase/types/ts-chart/sources/entry_pro.d.ts +2 -0
  13. package/codebase/types/ts-chart/sources/helpers/circle.d.ts +2 -2
  14. package/codebase/types/ts-chart/sources/helpers/common.d.ts +1 -1
  15. package/codebase/types/ts-chart/sources/scales/SvgScales.d.ts +1 -1
  16. package/codebase/types/ts-chart/sources/shapes/line.d.ts +1 -1
  17. package/codebase/types/ts-chart/sources/types.d.ts +20 -20
  18. package/codebase/types/ts-chart/tests/Chart.d.ts +1 -0
  19. package/codebase/types/ts-chart/tests/suite.d.ts +1 -0
  20. package/codebase/types/ts-colorpicker/index.d.ts +5 -0
  21. package/codebase/types/ts-colorpicker/sources/Colorpicker.d.ts +40 -0
  22. package/codebase/types/ts-colorpicker/sources/colors.d.ts +2 -0
  23. package/codebase/types/ts-colorpicker/sources/entry.d.ts +4 -0
  24. package/codebase/types/ts-colorpicker/sources/helpers/calculations.d.ts +8 -0
  25. package/codebase/types/ts-colorpicker/sources/helpers/color.d.ts +16 -0
  26. package/codebase/types/ts-colorpicker/sources/locales/en.d.ts +8 -0
  27. package/codebase/types/ts-colorpicker/sources/picker.d.ts +4 -0
  28. package/codebase/types/ts-colorpicker/sources/types.d.ts +66 -0
  29. package/codebase/types/ts-colorpicker/tests/suite.d.ts +0 -0
  30. package/codebase/types/ts-combobox/sources/entry.d.ts +4 -0
  31. package/codebase/types/ts-combobox/sources/entry_pro.d.ts +2 -0
  32. package/codebase/types/ts-combobox/sources/types.d.ts +2 -2
  33. package/codebase/types/ts-combobox/tests/suite.d.ts +0 -0
  34. package/codebase/types/ts-common/CssManager.d.ts +26 -0
  35. package/codebase/types/ts-common/core.d.ts +2 -2
  36. package/codebase/types/ts-common/dom.d.ts +2 -2
  37. package/codebase/types/ts-common/events.d.ts +2 -2
  38. package/codebase/types/ts-common/html.d.ts +4 -4
  39. package/codebase/types/ts-common/tests/core.d.ts +1 -0
  40. package/codebase/types/ts-common/tests/events.d.ts +1 -0
  41. package/codebase/types/ts-common/tests/html.d.ts +1 -0
  42. package/codebase/types/ts-common/tests/suite.d.ts +3 -0
  43. package/codebase/types/ts-common/types.d.ts +8 -8
  44. package/codebase/types/ts-data/sources/dataproxy.d.ts +1 -1
  45. package/codebase/types/ts-data/sources/entry.d.ts +5 -0
  46. package/codebase/types/ts-data/sources/types.d.ts +14 -14
  47. package/codebase/types/ts-data/tests/ajax.d.ts +1 -0
  48. package/codebase/types/ts-data/tests/drivers.d.ts +1 -0
  49. package/codebase/types/ts-data/tests/filter.d.ts +1 -0
  50. package/codebase/types/ts-data/tests/main.d.ts +1 -0
  51. package/codebase/types/ts-data/tests/move.d.ts +1 -0
  52. package/codebase/types/ts-data/tests/sort.d.ts +1 -0
  53. package/codebase/types/ts-data/tests/suite.d.ts +7 -0
  54. package/codebase/types/ts-data/tests/treecollection.d.ts +1 -0
  55. package/codebase/types/ts-dataview/index.d.ts +3 -0
  56. package/codebase/types/ts-dataview/sources/DataView.d.ts +41 -0
  57. package/codebase/types/ts-dataview/sources/ProDataView.d.ts +11 -0
  58. package/codebase/types/ts-dataview/sources/editors/InputEditor.d.ts +16 -0
  59. package/codebase/types/ts-dataview/sources/editors/editors.d.ts +4 -0
  60. package/codebase/types/ts-dataview/sources/entry.d.ts +3 -0
  61. package/codebase/types/ts-dataview/sources/entry_pro.d.ts +2 -0
  62. package/codebase/types/ts-dataview/sources/types.d.ts +62 -0
  63. package/codebase/types/ts-dataview/tests/selections/Selections.d.ts +1 -0
  64. package/codebase/types/ts-dataview/tests/selections/stubs.d.ts +3 -0
  65. package/codebase/types/ts-dataview/tests/suite.d.ts +1 -0
  66. package/codebase/types/ts-diagram/index.d.ts +5 -0
  67. package/codebase/types/ts-diagram/sources/Diagram.d.ts +32 -0
  68. package/codebase/types/ts-diagram/sources/ShapesCollection.d.ts +16 -0
  69. package/codebase/types/ts-diagram/sources/Toolbar.d.ts +16 -0
  70. package/codebase/types/ts-diagram/sources/entry.d.ts +4 -0
  71. package/codebase/types/ts-diagram/sources/helpers/Export.d.ts +10 -0
  72. package/codebase/types/ts-diagram/sources/helpers/Selection.d.ts +14 -0
  73. package/codebase/types/ts-diagram/sources/helpers/linkPaths.d.ts +8 -0
  74. package/codebase/types/ts-diagram/sources/helpers/placement.d.ts +6 -0
  75. package/codebase/types/ts-diagram/sources/locales/en.d.ts +9 -0
  76. package/codebase/types/ts-diagram/sources/shapes/Base.d.ts +31 -0
  77. package/codebase/types/ts-diagram/sources/shapes/Connector/Line.d.ts +21 -0
  78. package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramCard.d.ts +13 -0
  79. package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramImgCard.d.ts +12 -0
  80. package/codebase/types/ts-diagram/sources/shapes/Diagram/DiagramSvgCard.d.ts +12 -0
  81. package/codebase/types/ts-diagram/sources/shapes/Diagram/templates.d.ts +4 -0
  82. package/codebase/types/ts-diagram/sources/shapes/FlowShape.d.ts +90 -0
  83. package/codebase/types/ts-diagram/sources/shapes/TextShape.d.ts +19 -0
  84. package/codebase/types/ts-diagram/sources/shapes/factory.d.ts +7 -0
  85. package/codebase/types/ts-diagram/sources/types.d.ts +161 -0
  86. package/codebase/types/ts-diagram/tests/stubs.d.ts +25 -0
  87. package/codebase/types/ts-diagram/tests/suite.d.ts +0 -0
  88. package/codebase/types/ts-form/index.d.ts +3 -0
  89. package/codebase/types/ts-form/sources/Form.d.ts +55 -0
  90. package/codebase/types/ts-form/sources/ProForm.d.ts +7 -0
  91. package/codebase/types/ts-form/sources/elements/ToggleButton.d.ts +77 -0
  92. package/codebase/types/ts-form/sources/elements/ToggleGroup.d.ts +95 -0
  93. package/codebase/types/ts-form/sources/elements/avatar.d.ts +119 -0
  94. package/codebase/types/ts-form/sources/elements/button.d.ts +70 -0
  95. package/codebase/types/ts-form/sources/elements/checkbox.d.ts +84 -0
  96. package/codebase/types/ts-form/sources/elements/checkboxGroup.d.ts +103 -0
  97. package/codebase/types/ts-form/sources/elements/colorpicker.d.ts +101 -0
  98. package/codebase/types/ts-form/sources/elements/combo.d.ts +101 -0
  99. package/codebase/types/ts-form/sources/elements/container.d.ts +52 -0
  100. package/codebase/types/ts-form/sources/elements/dateinput.d.ts +107 -0
  101. package/codebase/types/ts-form/sources/elements/fieldset.d.ts +64 -0
  102. package/codebase/types/ts-form/sources/elements/helper/label.d.ts +18 -0
  103. package/codebase/types/ts-form/sources/elements/input.d.ts +106 -0
  104. package/codebase/types/ts-form/sources/elements/proCombo.d.ts +5 -0
  105. package/codebase/types/ts-form/sources/elements/radioGroup.d.ts +99 -0
  106. package/codebase/types/ts-form/sources/elements/radiobutton.d.ts +41 -0
  107. package/codebase/types/ts-form/sources/elements/select.d.ts +94 -0
  108. package/codebase/types/ts-form/sources/elements/simplevault.d.ts +124 -0
  109. package/codebase/types/ts-form/sources/elements/sliderform.d.ts +84 -0
  110. package/codebase/types/ts-form/sources/elements/spacer.d.ts +40 -0
  111. package/codebase/types/ts-form/sources/elements/textarea.d.ts +69 -0
  112. package/codebase/types/ts-form/sources/elements/textinput.d.ts +39 -0
  113. package/codebase/types/ts-form/sources/elements/timeinput.d.ts +102 -0
  114. package/codebase/types/ts-form/sources/entry.d.ts +5 -0
  115. package/codebase/types/ts-form/sources/entry_pro.d.ts +2 -0
  116. package/codebase/types/ts-form/sources/helper.d.ts +12 -0
  117. package/codebase/types/ts-form/sources/locales/en.d.ts +5 -0
  118. package/codebase/types/ts-form/sources/types.d.ts +180 -0
  119. package/codebase/types/ts-form/tests/elements/button.d.ts +1 -0
  120. package/codebase/types/ts-form/tests/elements/checkbox.d.ts +1 -0
  121. package/codebase/types/ts-form/tests/elements/colorpicker.d.ts +1 -0
  122. package/codebase/types/ts-form/tests/elements/combo.d.ts +1 -0
  123. package/codebase/types/ts-form/tests/elements/container.d.ts +1 -0
  124. package/codebase/types/ts-form/tests/elements/datepicker.d.ts +1 -0
  125. package/codebase/types/ts-form/tests/elements/input.d.ts +1 -0
  126. package/codebase/types/ts-form/tests/elements/radiogroup.d.ts +1 -0
  127. package/codebase/types/ts-form/tests/elements/select.d.ts +1 -0
  128. package/codebase/types/ts-form/tests/elements/simplevault.d.ts +1 -0
  129. package/codebase/types/ts-form/tests/elements/slider.d.ts +1 -0
  130. package/codebase/types/ts-form/tests/elements/textarea.d.ts +1 -0
  131. package/codebase/types/ts-form/tests/elements/timepicker.d.ts +1 -0
  132. package/codebase/types/ts-form/tests/form.d.ts +1 -0
  133. package/codebase/types/ts-form/tests/stubs/stubs.d.ts +4 -0
  134. package/codebase/types/ts-form/tests/stubs/stubsCheckbox.d.ts +3 -0
  135. package/codebase/types/ts-form/tests/stubs/stubsColorpicker.d.ts +3 -0
  136. package/codebase/types/ts-form/tests/stubs/stubsCombo.d.ts +4 -0
  137. package/codebase/types/ts-form/tests/stubs/stubsDatepicker.d.ts +3 -0
  138. package/codebase/types/ts-form/tests/stubs/stubsInput.d.ts +3 -0
  139. package/codebase/types/ts-form/tests/stubs/stubsRadiogroup.d.ts +3 -0
  140. package/codebase/types/ts-form/tests/stubs/stubsSelect.d.ts +3 -0
  141. package/codebase/types/ts-form/tests/stubs/stubsSlider.d.ts +4 -0
  142. package/codebase/types/ts-form/tests/stubs/stubsTimepicker.d.ts +4 -0
  143. package/codebase/types/ts-form/tests/suite.d.ts +14 -0
  144. package/codebase/types/ts-grid/sources/Grid.d.ts +1 -1
  145. package/codebase/types/ts-grid/sources/entry.d.ts +7 -0
  146. package/codebase/types/ts-grid/sources/entry_pro.d.ts +3 -0
  147. package/codebase/types/ts-grid/sources/helpers/data.d.ts +2 -2
  148. package/codebase/types/ts-grid/sources/types.d.ts +15 -14
  149. package/codebase/types/ts-grid/sources/ui/Cells.d.ts +3 -3
  150. package/codebase/types/ts-grid/sources/ui/content/ComboFilter.d.ts +1 -0
  151. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +1 -1
  152. package/codebase/types/ts-grid/tests/Grid.d.ts +1 -0
  153. package/codebase/types/ts-grid/tests/TreeGrid.d.ts +1 -0
  154. package/codebase/types/ts-grid/tests/stubs.d.ts +84 -0
  155. package/codebase/types/ts-grid/tests/suite.d.ts +2 -0
  156. package/codebase/types/ts-helpers/entry.d.ts +0 -0
  157. package/codebase/types/ts-layout/sources/entry.d.ts +2 -0
  158. package/codebase/types/ts-layout/sources/entry_pro.d.ts +2 -0
  159. package/codebase/types/ts-layout/sources/types.d.ts +3 -3
  160. package/codebase/types/ts-layout/tests/Layout.d.ts +1 -0
  161. package/codebase/types/ts-layout/tests/suite.d.ts +1 -0
  162. package/codebase/types/ts-list/sources/List.d.ts +1 -0
  163. package/codebase/types/ts-list/sources/entry.d.ts +3 -0
  164. package/codebase/types/ts-list/sources/entry_pro.d.ts +2 -0
  165. package/codebase/types/ts-list/sources/helpers.d.ts +2 -0
  166. package/codebase/types/ts-list/sources/types.d.ts +1 -1
  167. package/codebase/types/ts-list/tests/selections/Selections.d.ts +1 -0
  168. package/codebase/types/ts-list/tests/selections/stubs.d.ts +3 -0
  169. package/codebase/types/ts-list/tests/suite.d.ts +1 -0
  170. package/codebase/types/ts-menu/index.d.ts +2 -0
  171. package/codebase/types/ts-menu/sources/ContextMenu.d.ts +11 -0
  172. package/codebase/types/ts-menu/sources/Menu.d.ts +6 -0
  173. package/codebase/types/ts-menu/sources/entry.d.ts +4 -0
  174. package/codebase/types/ts-menu/tests/suite.d.ts +0 -0
  175. package/codebase/types/ts-message/sources/entry.d.ts +6 -0
  176. package/codebase/types/ts-message/sources/tooltip.d.ts +1 -1
  177. package/codebase/types/ts-message/tests/suite.d.ts +0 -0
  178. package/codebase/types/ts-navbar/index.d.ts +3 -0
  179. package/codebase/types/ts-navbar/sources/Navbar.d.ts +62 -0
  180. package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
  181. package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
  182. package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
  183. package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
  184. package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
  185. package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
  186. package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
  187. package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
  188. package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
  189. package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
  190. package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
  191. package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
  192. package/codebase/types/ts-navbar/sources/types.d.ts +206 -0
  193. package/codebase/types/ts-navbar/tests/suite.d.ts +0 -0
  194. package/codebase/types/ts-optimus/index.d.ts +2 -0
  195. package/codebase/types/ts-optimus/sources/DHXApp.d.ts +12 -0
  196. package/codebase/types/ts-optimus/sources/DHXView.d.ts +11 -0
  197. package/codebase/types/ts-optimus/sources/EventSystem.d.ts +9 -0
  198. package/codebase/types/ts-optimus/sources/HTMLCell.d.ts +8 -0
  199. package/codebase/types/ts-optimus/sources/LocalSession.d.ts +5 -0
  200. package/codebase/types/ts-optimus/sources/types.d.ts +36 -0
  201. package/codebase/types/ts-pagination/index.d.ts +2 -0
  202. package/codebase/types/ts-pagination/sources/Pagination.d.ts +26 -0
  203. package/codebase/types/ts-pagination/sources/entry.d.ts +3 -0
  204. package/codebase/types/ts-pagination/sources/types.d.ts +27 -0
  205. package/codebase/types/ts-pagination/tests/suite.d.ts +0 -0
  206. package/codebase/types/ts-pivot/index.d.ts +1 -0
  207. package/codebase/types/ts-pivot/sources/DataPreprocessor.d.ts +29 -0
  208. package/codebase/types/ts-pivot/sources/DateFormatter.d.ts +29 -0
  209. package/codebase/types/ts-pivot/sources/Pivot.d.ts +52 -0
  210. package/codebase/types/ts-pivot/sources/configurator/Configurator.d.ts +40 -0
  211. package/codebase/types/ts-pivot/sources/entry.d.ts +9 -0
  212. package/codebase/types/ts-pivot/sources/filters/DateFilter.d.ts +17 -0
  213. package/codebase/types/ts-pivot/sources/filters/Filter.d.ts +72 -0
  214. package/codebase/types/ts-pivot/sources/filters/Filters.d.ts +13 -0
  215. package/codebase/types/ts-pivot/sources/filters/helpers.d.ts +2 -0
  216. package/codebase/types/ts-pivot/sources/group-module/DataGroup.d.ts +13 -0
  217. package/codebase/types/ts-pivot/sources/group-module/groupfuncs.d.ts +10 -0
  218. package/codebase/types/ts-pivot/sources/group-module/types.d.ts +19 -0
  219. package/codebase/types/ts-pivot/sources/helpers.d.ts +28 -0
  220. package/codebase/types/ts-pivot/sources/locales/en.d.ts +38 -0
  221. package/codebase/types/ts-pivot/sources/templates.d.ts +4 -0
  222. package/codebase/types/ts-pivot/sources/types.d.ts +180 -0
  223. package/codebase/types/ts-pivot/tests/DataPreprocessor.d.ts +1 -0
  224. package/codebase/types/ts-pivot/tests/Pivot.d.ts +1 -0
  225. package/codebase/types/ts-pivot/tests/config-module/Config.d.ts +1 -0
  226. package/codebase/types/ts-pivot/tests/config-module/stubs.d.ts +80 -0
  227. package/codebase/types/ts-pivot/tests/filter-module/Filter.d.ts +1 -0
  228. package/codebase/types/ts-pivot/tests/group-module/DataGroup.d.ts +1 -0
  229. package/codebase/types/ts-pivot/tests/group-module/groupfuncs.d.ts +1 -0
  230. package/codebase/types/ts-pivot/tests/group-module/stubs.d.ts +54 -0
  231. package/codebase/types/ts-pivot/tests/stubs.d.ts +107 -0
  232. package/codebase/types/ts-pivot/tests/suite.d.ts +6 -0
  233. package/codebase/types/ts-popup/sources/entry.d.ts +2 -0
  234. package/codebase/types/ts-popup/tests/suite.d.ts +0 -0
  235. package/codebase/types/ts-property/index.d.ts +2 -0
  236. package/codebase/types/ts-property/sources/Property.d.ts +16 -0
  237. package/codebase/types/ts-property/sources/entry.d.ts +2 -0
  238. package/codebase/types/ts-property/sources/items/BaseItem.d.ts +16 -0
  239. package/codebase/types/ts-property/sources/items/Checkbox.d.ts +7 -0
  240. package/codebase/types/ts-property/sources/items/Colorpicker.d.ts +10 -0
  241. package/codebase/types/ts-property/sources/items/Combo.d.ts +9 -0
  242. package/codebase/types/ts-property/sources/items/Label.d.ts +4 -0
  243. package/codebase/types/ts-property/sources/items/Select.d.ts +5 -0
  244. package/codebase/types/ts-property/sources/items/Text.d.ts +4 -0
  245. package/codebase/types/ts-property/sources/items/Textarea.d.ts +4 -0
  246. package/codebase/types/ts-property/sources/items/helpers.d.ts +2 -0
  247. package/codebase/types/ts-property/sources/items/index.d.ts +19 -0
  248. package/codebase/types/ts-property/sources/types.d.ts +47 -0
  249. package/codebase/types/ts-property/tests/suite.d.ts +0 -0
  250. package/codebase/types/ts-ribbon/index.d.ts +2 -0
  251. package/codebase/types/ts-ribbon/sources/ProRibbon.d.ts +10 -0
  252. package/codebase/types/ts-ribbon/sources/Ribbon.d.ts +43 -0
  253. package/codebase/types/ts-ribbon/sources/entry.d.ts +3 -0
  254. package/codebase/types/ts-ribbon/sources/entry_pro.d.ts +2 -0
  255. package/codebase/types/ts-ribbon/tests/suite.d.ts +0 -0
  256. package/codebase/types/ts-richtext/index.d.ts +1 -0
  257. package/codebase/types/ts-richtext/sources/Manager.d.ts +16 -0
  258. package/codebase/types/ts-richtext/sources/Richtext.d.ts +36 -0
  259. package/codebase/types/ts-richtext/sources/SelectionHelper.d.ts +30 -0
  260. package/codebase/types/ts-richtext/sources/constants.d.ts +44 -0
  261. package/codebase/types/ts-richtext/sources/entry.d.ts +3 -0
  262. package/codebase/types/ts-richtext/sources/helpers/buffer.d.ts +10 -0
  263. package/codebase/types/ts-richtext/sources/helpers/composition.d.ts +2 -0
  264. package/codebase/types/ts-richtext/sources/helpers/link.d.ts +40 -0
  265. package/codebase/types/ts-richtext/sources/helpers/markdown.d.ts +2 -0
  266. package/codebase/types/ts-richtext/sources/helpers/minimizer.d.ts +19 -0
  267. package/codebase/types/ts-richtext/sources/helpers/other.d.ts +13 -0
  268. package/codebase/types/ts-richtext/sources/helpers/parser.d.ts +1 -0
  269. package/codebase/types/ts-richtext/sources/helpers/scroll.d.ts +10 -0
  270. package/codebase/types/ts-richtext/sources/helpers/selection.d.ts +10 -0
  271. package/codebase/types/ts-richtext/sources/helpers/serializer.d.ts +2 -0
  272. package/codebase/types/ts-richtext/sources/helpers/statistics.d.ts +7 -0
  273. package/codebase/types/ts-richtext/sources/helpers/styles.d.ts +10 -0
  274. package/codebase/types/ts-richtext/sources/helpers/toolbar.d.ts +21 -0
  275. package/codebase/types/ts-richtext/sources/keyhandler.d.ts +26 -0
  276. package/codebase/types/ts-richtext/sources/locales/en.d.ts +35 -0
  277. package/codebase/types/ts-richtext/sources/models/Block.d.ts +27 -0
  278. package/codebase/types/ts-richtext/sources/models/Editor.d.ts +61 -0
  279. package/codebase/types/ts-richtext/sources/models/TextNode.d.ts +16 -0
  280. package/codebase/types/ts-richtext/sources/types.d.ts +143 -0
  281. package/codebase/types/ts-richtext/tests/block.d.ts +1 -0
  282. package/codebase/types/ts-richtext/tests/editor.d.ts +1 -0
  283. package/codebase/types/ts-richtext/tests/suite.d.ts +3 -0
  284. package/codebase/types/ts-richtext/tests/textnode.d.ts +1 -0
  285. package/codebase/types/ts-samplegen/index.d.ts +1 -0
  286. package/codebase/types/ts-samplegen/sources/SampleGenerator.d.ts +20 -0
  287. package/codebase/types/ts-samplegen/sources/entry.d.ts +2 -0
  288. package/codebase/types/ts-samplegen/tests/suite.d.ts +0 -0
  289. package/codebase/types/ts-scheduler/index.d.ts +1 -0
  290. package/codebase/types/ts-scheduler/sources/Scheduler.d.ts +18 -0
  291. package/codebase/types/ts-scheduler/sources/entry.d.ts +2 -0
  292. package/codebase/types/ts-scheduler/sources/helpers/scales.d.ts +1 -0
  293. package/codebase/types/ts-scheduler/sources/helpers/topbar.d.ts +1 -0
  294. package/codebase/types/ts-scheduler/sources/views/Agenda.d.ts +6 -0
  295. package/codebase/types/ts-scheduler/sources/views/Base.d.ts +3 -0
  296. package/codebase/types/ts-scheduler/sources/views/Cols.d.ts +8 -0
  297. package/codebase/types/ts-scheduler/sources/views/Day.d.ts +4 -0
  298. package/codebase/types/ts-scheduler/sources/views/Month.d.ts +8 -0
  299. package/codebase/types/ts-scheduler/sources/views/Week.d.ts +4 -0
  300. package/codebase/types/ts-scheduler/sources/views/index.d.ts +11 -0
  301. package/codebase/types/ts-scheduler/tests/suite.d.ts +0 -0
  302. package/codebase/types/ts-sidebar/index.d.ts +3 -0
  303. package/codebase/types/ts-sidebar/sources/ProSidebar.d.ts +8 -0
  304. package/codebase/types/ts-sidebar/sources/Sidebar.d.ts +24 -0
  305. package/codebase/types/ts-sidebar/sources/entry.d.ts +3 -0
  306. package/codebase/types/ts-sidebar/sources/entry_pro.d.ts +2 -0
  307. package/codebase/types/ts-sidebar/sources/types.d.ts +40 -0
  308. package/codebase/types/ts-sidebar/tests/suite.d.ts +0 -0
  309. package/codebase/types/ts-slider/sources/entry.d.ts +2 -0
  310. package/codebase/types/ts-slider/sources/types.d.ts +3 -3
  311. package/codebase/types/ts-slider/tests/suite.d.ts +0 -0
  312. package/codebase/types/ts-tabbar/index.d.ts +2 -0
  313. package/codebase/types/ts-tabbar/sources/Tabbar.d.ts +38 -0
  314. package/codebase/types/ts-tabbar/sources/entry.d.ts +2 -0
  315. package/codebase/types/ts-tabbar/sources/types.d.ts +64 -0
  316. package/codebase/types/ts-tabbar/tests/suite.d.ts +0 -0
  317. package/codebase/types/ts-theme/entry.d.ts +0 -0
  318. package/codebase/types/ts-timepicker/sources/entry.d.ts +3 -0
  319. package/codebase/types/ts-timepicker/tests/suite.d.ts +0 -0
  320. package/codebase/types/ts-toolbar/index.d.ts +2 -0
  321. package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
  322. package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +32 -0
  323. package/codebase/types/ts-toolbar/sources/entry.d.ts +4 -0
  324. package/codebase/types/ts-toolbar/sources/entry_pro.d.ts +2 -0
  325. package/codebase/types/ts-toolbar/tests/suite.d.ts +0 -0
  326. package/codebase/types/ts-tree/index.d.ts +3 -0
  327. package/codebase/types/ts-tree/sources/Editor.d.ts +42 -0
  328. package/codebase/types/ts-tree/sources/Tree.d.ts +58 -0
  329. package/codebase/types/ts-tree/sources/entry.d.ts +6 -0
  330. package/codebase/types/ts-tree/sources/entry_pro.d.ts +2 -0
  331. package/codebase/types/ts-tree/sources/types.d.ts +119 -0
  332. package/codebase/types/ts-tree/tests/suite.d.ts +0 -0
  333. package/codebase/types/ts-treegrid/index.d.ts +3 -0
  334. package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +30 -0
  335. package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +20 -0
  336. package/codebase/types/ts-treegrid/sources/entry.d.ts +7 -0
  337. package/codebase/types/ts-treegrid/sources/entry_pro.d.ts +2 -0
  338. package/codebase/types/ts-treegrid/sources/types.d.ts +32 -0
  339. package/codebase/types/ts-treegrid/tests/Grid.d.ts +1 -0
  340. package/codebase/types/ts-treegrid/tests/TreeGrid.d.ts +1 -0
  341. package/codebase/types/ts-treegrid/tests/stubs.d.ts +84 -0
  342. package/codebase/types/ts-treegrid/tests/suite.d.ts +2 -0
  343. package/codebase/types/ts-ui-kit/index.d.ts +0 -0
  344. package/codebase/types/ts-ui-kit/sources/entry.d.ts +1 -0
  345. package/codebase/types/ts-ui-kit/tests/suite.d.ts +0 -0
  346. package/codebase/types/ts-vault/index.d.ts +3 -0
  347. package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
  348. package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
  349. package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
  350. package/codebase/types/ts-vault/sources/Vault.d.ts +33 -0
  351. package/codebase/types/ts-vault/sources/configs.d.ts +14 -0
  352. package/codebase/types/ts-vault/sources/entry.d.ts +6 -0
  353. package/codebase/types/ts-vault/sources/helper.d.ts +30 -0
  354. package/codebase/types/ts-vault/sources/locales/en.d.ts +18 -0
  355. package/codebase/types/ts-vault/sources/types.d.ts +107 -0
  356. package/codebase/types/ts-vault/tests/suite.d.ts +0 -0
  357. package/codebase/types/ts-window/index.d.ts +2 -0
  358. package/codebase/types/ts-window/sources/ProWindow.d.ts +11 -0
  359. package/codebase/types/ts-window/sources/Window.d.ts +55 -0
  360. package/codebase/types/ts-window/sources/WindowController.d.ts +10 -0
  361. package/codebase/types/ts-window/sources/entry.d.ts +2 -0
  362. package/codebase/types/ts-window/sources/entry_pro.d.ts +2 -0
  363. package/codebase/types/ts-window/sources/helpers.d.ts +1 -0
  364. package/codebase/types/ts-window/sources/types.d.ts +82 -0
  365. package/codebase/types/ts-window/tests/suite.d.ts +0 -0
  366. package/package.json +1 -1
  367. package/readme.txt +1 -1
  368. package/whatsnew.txt +6 -0
@@ -0,0 +1,40 @@
1
+ import { ISpacer, ISeparator, IMenuItem, NavigationBarEvents, DataEvents, INavbar, INavbarEventHandlersMap, ITitle, ICustomHTML, INavItem } from "../../ts-navbar";
2
+ import { IEventSystem } from "../../ts-common/events";
3
+ import { IDataEventsHandlersMap, TreeCollection } from "../../ts-data";
4
+ import { ScrollView } from "../../ts-common/ScrollView";
5
+ export interface ISidebarConfig {
6
+ css?: string;
7
+ menuCss?: string;
8
+ data?: any[] | TreeCollection<ISidebarElement>;
9
+ width?: number | string;
10
+ minWidth?: number | string;
11
+ collapsed?: boolean;
12
+ }
13
+ export type ISidebarElement = ISeparator | ISpacer | ITitle | INavItem | IMenuItem | ICustomHTML;
14
+ export interface ISidebar extends INavbar {
15
+ config: ISidebarConfig;
16
+ events: IEventSystem<DataEvents | NavigationBarEvents, IDataEventsHandlersMap & INavbarEventHandlersMap & SidebarEvents & ISidebarEventHandlersMap>;
17
+ toggle(): void;
18
+ isCollapsed(): boolean;
19
+ expand(): void;
20
+ collapse(): void;
21
+ }
22
+ export interface IProSidebar extends ISidebar {
23
+ scrollView: ScrollView;
24
+ }
25
+ export declare enum SidebarEvents {
26
+ beforeCollapse = "beforeCollapse",
27
+ afterCollapse = "afterCollapse",
28
+ beforeExpand = "beforeExpand",
29
+ afterExpand = "afterExpand",
30
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
31
+ toggle = "toggle"
32
+ }
33
+ export interface ISidebarEventHandlersMap {
34
+ [key: string]: (...args: any[]) => any;
35
+ [SidebarEvents.beforeCollapse]: () => boolean | void;
36
+ [SidebarEvents.afterCollapse]: () => void;
37
+ [SidebarEvents.beforeExpand]: () => boolean | void;
38
+ [SidebarEvents.afterExpand]: () => void;
39
+ [SidebarEvents.toggle]: () => any;
40
+ }
File without changes
@@ -0,0 +1,2 @@
1
+ import "../../styles/slider.scss";
2
+ export { Slider } from "./Slider";
@@ -1,5 +1,5 @@
1
- export declare type Direction = "vertical" | "horizontal";
2
- export declare type ActiveSlider = "tooltip" | "extraTooltip" | "none";
1
+ export type Direction = "vertical" | "horizontal";
2
+ export type ActiveSlider = "tooltip" | "extraTooltip" | "none";
3
3
  export interface ISlider {
4
4
  config: ISliderConfig;
5
5
  paint(): void;
@@ -31,7 +31,7 @@ export interface ISliderEventHandlersMap {
31
31
  [SliderEvents.mousedown]: (event: Event) => void;
32
32
  [SliderEvents.mouseup]: (event: Event) => void;
33
33
  }
34
- export declare type ILabelPosition = "left" | "top";
34
+ export type ILabelPosition = "left" | "top";
35
35
  export interface ISliderConfig {
36
36
  min?: number;
37
37
  max?: number;
File without changes
@@ -0,0 +1,2 @@
1
+ export * from "./sources/Tabbar";
2
+ export * from "./sources/types";
@@ -0,0 +1,38 @@
1
+ import { EventSystem } from "../../ts-common/events";
2
+ import { Layout, LayoutEvents, ILayoutEventHandlersMap } from "../../ts-layout";
3
+ import { ITabbarConfig, TabbarEvents, ITabbarEventHandlersMap, ITabbar, ITab } from "./types";
4
+ export declare class Tabbar extends Layout implements ITabbar {
5
+ config: ITabbarConfig;
6
+ events: EventSystem<TabbarEvents | LayoutEvents, ITabbarEventHandlersMap | ILayoutEventHandlersMap>;
7
+ private _tabsContainer;
8
+ protected _cells: ITab[];
9
+ private _beforeScrollSize;
10
+ private _afterScrollSize;
11
+ private _keyManager;
12
+ private _tabFontSize;
13
+ constructor(container: any, config: ITabbarConfig);
14
+ toVDOM(): any;
15
+ destructor(): void;
16
+ getWidget(): any;
17
+ setActive(id: string): void;
18
+ getActive(): string;
19
+ addTab(config: ITabbarConfig, index: number): void;
20
+ removeTab(id: string): void;
21
+ disableTab(id: string): boolean;
22
+ enableTab(id: string): void;
23
+ isDisabled(id?: string): boolean;
24
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
25
+ removeCell(id: string): void;
26
+ protected _initHandlers(): void;
27
+ private _isHorizontalMode;
28
+ private _focusTab;
29
+ private _getEnableTabs;
30
+ private _getIndicatorPosition;
31
+ private _drawTabs;
32
+ private _getSizes;
33
+ private _normalizeSize;
34
+ private _getTabAutoWidth;
35
+ private _getTabAutoHeight;
36
+ private _getTabContainer;
37
+ private _initHotkeys;
38
+ }
@@ -0,0 +1,2 @@
1
+ import "../../styles/tabbar.scss";
2
+ export { Tabbar } from "./Tabbar";
@@ -0,0 +1,64 @@
1
+ import { ILayoutConfig, LayoutEvents, ILayoutEventHandlersMap, ICellConfig, ICell } from "../../ts-layout";
2
+ import { EventSystem } from "../../ts-common/events";
3
+ import { Position } from "../../ts-common/html";
4
+ export interface ITabbarConfig extends ILayoutConfig {
5
+ mode?: Position;
6
+ noContent?: boolean;
7
+ css?: string;
8
+ disabled?: string | string[];
9
+ closable?: boolean | string[];
10
+ activeTab?: string;
11
+ tabAutoWidth?: boolean;
12
+ tabAutoHeight?: boolean;
13
+ tabWidth?: number | string;
14
+ tabHeight?: number | string;
15
+ tabAlign?: "left" | "start" | "center" | "middle" | "right" | "end";
16
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
17
+ closeButtons?: boolean;
18
+ }
19
+ export interface ITab extends ICell {
20
+ config: ITabConfig;
21
+ }
22
+ export interface ITabConfig extends ICellConfig {
23
+ tabAutoWidth?: boolean;
24
+ tabAutoHeight?: boolean;
25
+ tabWidth?: number | string;
26
+ tabHeight?: number | string;
27
+ }
28
+ export declare enum TabbarEvents {
29
+ beforeChange = "beforeChange",
30
+ change = "change",
31
+ beforeClose = "beforeClose",
32
+ afterClose = "afterClose",
33
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
34
+ close = "close"
35
+ }
36
+ export interface ITabbar {
37
+ config: ITabbarConfig;
38
+ events: EventSystem<TabbarEvents | LayoutEvents, ITabbarEventHandlersMap | ILayoutEventHandlersMap>;
39
+ toVDOM(nodes?: any[]): any;
40
+ paint(): void;
41
+ destructor(): void;
42
+ getId(index: number): string;
43
+ getCell(id: string): ICell;
44
+ setActive(id: string): void;
45
+ getWidget(): any;
46
+ getActive(): string;
47
+ removeTab(id: string): void;
48
+ addTab(config: ITabbarConfig, index: number): void;
49
+ disableTab(id: string): boolean;
50
+ enableTab(id: string): void;
51
+ isDisabled(id?: string): boolean;
52
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
53
+ removeCell(id: string): void;
54
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
55
+ addCell(config: ITabbarConfig, index: number): any;
56
+ }
57
+ export interface ITabbarEventHandlersMap {
58
+ [key: string]: (...args: any[]) => any;
59
+ [TabbarEvents.beforeChange]: (id: string, prev: string) => boolean | void;
60
+ [TabbarEvents.change]: (id: string, prev: string) => void;
61
+ [TabbarEvents.beforeClose]: (id: string) => boolean | void;
62
+ [TabbarEvents.afterClose]: (id: string) => void;
63
+ [TabbarEvents.close]: (id: string) => any;
64
+ }
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import "../../styles/timepicker.scss";
2
+ export { Timepicker } from "./Timepicker";
3
+ export declare const i18n: any;
File without changes
@@ -0,0 +1,2 @@
1
+ export * from "./sources/Toolbar";
2
+ export * from "./sources/ProToolbar";
@@ -0,0 +1,10 @@
1
+ import { Toolbar, IToolbar } from "./Toolbar";
2
+ import { ScrollView } from "../../ts-common/ScrollView";
3
+ export interface IProToolbar extends IToolbar {
4
+ scrollView: ScrollView;
5
+ }
6
+ export declare class ProToolbar extends Toolbar implements IProToolbar {
7
+ scrollView: ScrollView;
8
+ constructor(element?: string | HTMLElement, config?: any);
9
+ protected _draw(element: any): any;
10
+ }
@@ -0,0 +1,32 @@
1
+ import { Id } from "../../ts-common/types";
2
+ import { TreeCollection } from "../../ts-data";
3
+ import { IState, Navbar, INavbar, IButton, IImageButton, ISelectButton, IInput, ISeparator, ISpacer, ITitle, ICustomHTML, INavItem, IMenuItem, IDatePicker } from "../../ts-navbar";
4
+ export interface IToolbarConfig {
5
+ css?: string;
6
+ menuCss?: string;
7
+ data?: any[] | TreeCollection<IToolbarElement>;
8
+ }
9
+ export interface IToolbar extends INavbar {
10
+ data: TreeCollection<IToolbarElement>;
11
+ config: IToolbarConfig;
12
+ getState(id?: Id): IState;
13
+ setState(state: IState): void;
14
+ }
15
+ export type IToolbarElement = IButton | IImageButton | ISelectButton | IInput | ISeparator | ISpacer | ITitle | ICustomHTML | INavItem | IMenuItem | IDatePicker;
16
+ export declare class Toolbar extends Navbar<IToolbarElement> implements IToolbar {
17
+ data: TreeCollection<IToolbarElement>;
18
+ config: IToolbarConfig;
19
+ constructor(element?: string | HTMLElement, config?: any);
20
+ getState(id?: Id): IState;
21
+ setState(state: IState): void;
22
+ setFocus(id: Id): void;
23
+ protected _customHandlers(): {
24
+ input: (e: Event) => void;
25
+ tooltip: (e: MouseEvent) => void;
26
+ };
27
+ protected _getFactory(): any;
28
+ protected _draw(element: any): any;
29
+ protected _getMode(item: any, root: any): "right" | "bottom";
30
+ protected _close(e: MouseEvent): void;
31
+ protected _setRoot(id: Id): void;
32
+ }
@@ -0,0 +1,4 @@
1
+ import "../../styles/toolbar.scss";
2
+ import "../../styles/calendar.scss";
3
+ export { TreeCollection } from "../../ts-data";
4
+ export { Toolbar } from "./Toolbar";
@@ -0,0 +1,2 @@
1
+ export * from "./entry";
2
+ export { ProToolbar as Toolbar } from "./ProToolbar";
File without changes
@@ -0,0 +1,3 @@
1
+ export * from "./sources/Tree";
2
+ export * from "./sources/Editor";
3
+ export * from "./sources/types";
@@ -0,0 +1,42 @@
1
+ import { VNode } from "../../ts-common/dom";
2
+ import { IEventSystem } from "../../ts-common/events";
3
+ export declare enum EditorMode {
4
+ editText = "text",
5
+ selectItem = "select"
6
+ }
7
+ export declare enum EditorEvents {
8
+ begin = "begin",
9
+ end = "end"
10
+ }
11
+ export interface IEditorConfig {
12
+ item?: any;
13
+ mode: EditorMode;
14
+ options?: string[];
15
+ }
16
+ export interface IEditor {
17
+ config: IEditorConfig;
18
+ events: IEventSystem<EditorEvents>;
19
+ edit(targetId: string, config: IEditorConfig): VNode;
20
+ isEditable(): boolean;
21
+ }
22
+ export declare class Editor implements IEditor {
23
+ config: IEditorConfig;
24
+ events: IEventSystem<EditorEvents>;
25
+ private _item;
26
+ private _handlers;
27
+ private _currentValue;
28
+ private _active;
29
+ private _targetId;
30
+ private _documentClick;
31
+ private _keyManager;
32
+ constructor();
33
+ edit(targetId: string, config: IEditorConfig): any;
34
+ isEditable(): boolean;
35
+ private _draw;
36
+ private _addHotkeys;
37
+ private _removeHotkeys;
38
+ private _finishEdit;
39
+ private _clear;
40
+ private _initOuterClick;
41
+ private _removeClickListener;
42
+ }
@@ -0,0 +1,58 @@
1
+ import { IEventSystem } from "../../ts-common/events";
2
+ import { Id } from "../../ts-common/types";
3
+ import { View } from "../../ts-common/view";
4
+ import { Selection, TreeCollection, DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap } from "../../ts-data";
5
+ import { IEditorConfig } from "./Editor";
6
+ import { ITree, ITreeConfig, ITreeState, TreeEvents, ITreeEventHandlersMap, ITreeItem } from "./types";
7
+ export declare class Tree<T extends object = object> extends View implements ITree {
8
+ config: ITreeConfig;
9
+ data: TreeCollection<T & ITreeItem>;
10
+ events: IEventSystem<DataEvents | TreeEvents | DragEvents, IDataEventsHandlersMap & ITreeEventHandlersMap & IDragEventsHandlersMap>;
11
+ selection: Selection;
12
+ private _editor;
13
+ private _handlers;
14
+ private _isSelectionActive;
15
+ private _root;
16
+ private _focusId;
17
+ private _right;
18
+ private _keyManager;
19
+ private _touch;
20
+ private _isDraget;
21
+ constructor(container: HTMLElement | string, config?: ITreeConfig);
22
+ focusItem(id: Id): void;
23
+ destructor(): void;
24
+ editItem(id: Id, config?: IEditorConfig): void;
25
+ getState(): ITreeState;
26
+ setState(state: ITreeState): void;
27
+ toggle(id: Id): void;
28
+ getChecked(): Id[];
29
+ checkItem(id: Id): void;
30
+ collapse(id: Id): void;
31
+ collapseAll(): void;
32
+ expand(id: Id): void;
33
+ expandAll(): void;
34
+ uncheckItem(id: Id): void;
35
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
36
+ close(id: Id): void;
37
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
38
+ closeAll(): void;
39
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
40
+ open(id: Id): void;
41
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
42
+ openAll(): void;
43
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
44
+ unCheckItem(id: Id): void;
45
+ private _draw;
46
+ private _initEvents;
47
+ private _autoScroll;
48
+ private _scrollTo;
49
+ private _initHandlers;
50
+ private _dblClick;
51
+ private _clearTouchTimer;
52
+ private _dragStart;
53
+ private _getRightPos;
54
+ private _drawItems;
55
+ private _updateItemCheck;
56
+ private _updateParents;
57
+ private _initHotkeys;
58
+ }
@@ -0,0 +1,6 @@
1
+ import "../../styles/tree.scss";
2
+ import "../../styles/themes.scss";
3
+ export { awaitRedraw, setTheme } from "../../ts-common/dom";
4
+ export { TreeCollection } from "../../ts-data";
5
+ export { Tree } from "./Tree";
6
+ export { ContextMenu } from "../../ts-menu";
@@ -0,0 +1,2 @@
1
+ export * from "./entry";
2
+ export { dataDriversPro as dataDrivers } from "../../ts-data";
@@ -0,0 +1,119 @@
1
+ import { IEventSystem } from "../../ts-common/events";
2
+ import { Id } from "../../ts-common/types";
3
+ import { TreeCollection, DataEvents, DragEvents, IDragConfig, IDataItem, IDragEventsHandlersMap, Selection } from "../../ts-data";
4
+ import { IEditorConfig } from "./Editor";
5
+ export interface ITreeState {
6
+ [id: string]: {
7
+ selected: SelectStatus;
8
+ open: boolean;
9
+ };
10
+ }
11
+ export interface ITreeItem extends IDataItem {
12
+ parent: string;
13
+ opened?: boolean;
14
+ $mark?: SelectStatus;
15
+ checkbox?: boolean;
16
+ $autoload?: boolean;
17
+ $selected?: boolean;
18
+ $editor?: boolean;
19
+ }
20
+ export interface ITreeCustomIcon {
21
+ file?: string;
22
+ folder?: string;
23
+ openFolder?: string;
24
+ }
25
+ export declare enum SelectStatus {
26
+ unselected = 0,
27
+ selected = 1,
28
+ indeterminate = 2
29
+ }
30
+ export type ItemIcon = "file" | "folder" | "openFolder";
31
+ export interface ITreeConfig extends IDragConfig {
32
+ data?: TreeCollection<any> | any[];
33
+ css?: string;
34
+ keyNavigation?: boolean;
35
+ autoload?: string;
36
+ checkbox?: boolean;
37
+ isFolder?: (obj: any) => boolean;
38
+ icon?: ITreeCustomIcon;
39
+ editable?: boolean;
40
+ selection?: boolean;
41
+ rootId?: Id;
42
+ itemHeight?: number | string;
43
+ template?: (item: ITreeItem, isFolder: boolean) => string;
44
+ eventHandlers?: {
45
+ [eventName: string]: {
46
+ [className: string]: (event: Event, item: ITree) => void | boolean;
47
+ };
48
+ };
49
+ collapsed?: boolean;
50
+ $editable?: boolean;
51
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
52
+ editing?: boolean;
53
+ }
54
+ export interface ITree {
55
+ data: TreeCollection;
56
+ events: IEventSystem<DataEvents | DragEvents | TreeEvents>;
57
+ selection: Selection;
58
+ config: ITreeConfig;
59
+ paint(): void;
60
+ destructor(): void;
61
+ editItem(id: Id, config: IEditorConfig): void;
62
+ getState(): ITreeState;
63
+ setState(state: ITreeState): void;
64
+ focusItem(id: Id): void;
65
+ toggle(id: Id): void;
66
+ getChecked(): Id[];
67
+ checkItem(id: Id): void;
68
+ collapse(id: Id): void;
69
+ collapseAll(): void;
70
+ expand(id: Id): void;
71
+ expandAll(): void;
72
+ uncheckItem(id: Id): void;
73
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
74
+ close(id: Id): void;
75
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
76
+ closeAll(): void;
77
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
78
+ open(id: Id): void;
79
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
80
+ openAll(): void;
81
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
82
+ unCheckItem(id: Id): void;
83
+ }
84
+ export declare enum TreeEvents {
85
+ itemClick = "itemclick",
86
+ itemDblClick = "itemdblclick",
87
+ itemRightClick = "itemrightclick",
88
+ beforeCollapse = "beforeCollapse",
89
+ afterCollapse = "afterCollapse",
90
+ beforeExpand = "beforeExpand",
91
+ afterExpand = "afterExpand",
92
+ beforeEditStart = "beforeEditStart",
93
+ afterEditStart = "afterEditStart",
94
+ beforeEditEnd = "beforeEditEnd",
95
+ afterEditEnd = "afterEditEnd",
96
+ focusChange = "focusChange",
97
+ beforeCheck = "beforeCheck",
98
+ afterCheck = "afterCheck",
99
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
100
+ itemContextMenu = "itemcontextmenu"
101
+ }
102
+ export interface ITreeEventHandlersMap extends IDragEventsHandlersMap {
103
+ [key: string]: (...args: any[]) => any;
104
+ [TreeEvents.itemClick]: (id: Id, e: Event) => any;
105
+ [TreeEvents.itemRightClick]: (id: Id, e: Event) => void;
106
+ [TreeEvents.itemDblClick]: (id: Id, e: Event) => void;
107
+ [TreeEvents.beforeCollapse]: (id: Id) => boolean | void;
108
+ [TreeEvents.afterCollapse]: (id: Id) => void;
109
+ [TreeEvents.beforeExpand]: (id: Id) => boolean | void;
110
+ [TreeEvents.afterExpand]: (id: Id) => void;
111
+ [TreeEvents.beforeEditStart]: (value: string, id: Id) => boolean | void;
112
+ [TreeEvents.afterEditStart]: (value: string, id: Id) => void;
113
+ [TreeEvents.beforeEditEnd]: (value: string, id: Id) => boolean | void;
114
+ [TreeEvents.afterEditEnd]: (value: string, id: Id) => void;
115
+ [TreeEvents.focusChange]: (index: number, id: Id) => void;
116
+ [TreeEvents.beforeCheck]: (index: number, id: Id) => boolean | void;
117
+ [TreeEvents.afterCheck]: (index: number, id: Id, value: boolean) => void;
118
+ [TreeEvents.itemContextMenu]: (id: Id, e: Event) => any;
119
+ }
File without changes
@@ -0,0 +1,3 @@
1
+ export * from "./sources/TreeGrid";
2
+ export * from "./sources/types";
3
+ export * from "./sources/TreeGridCollection";
@@ -0,0 +1,30 @@
1
+ import { GridEvents, IEventHandlersMap, ProGrid, ICellRect, IColumnsWidth, ISpan, IAdjustColumns } from "../../ts-grid";
2
+ import { IEventSystem } from "../../ts-common/events";
3
+ import { DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap, IDataItem } from "../../ts-data";
4
+ import { TreeGridCollection } from "./TreeGridCollection";
5
+ import { ITreeEventHandlersMap, ITreeGrid, ITreeGridConfig, TreeGridEvents } from "./types";
6
+ import { Id } from "../../ts-common/types";
7
+ export declare class TreeGrid extends ProGrid implements ITreeGrid {
8
+ config: ITreeGridConfig;
9
+ data: TreeGridCollection;
10
+ events: IEventSystem<DataEvents | GridEvents | DragEvents | TreeGridEvents, IEventHandlersMap & IDataEventsHandlersMap & IDragEventsHandlersMap & ITreeEventHandlersMap>;
11
+ private _pregroupData;
12
+ constructor(container: HTMLElement, config: ITreeGridConfig);
13
+ scrollTo(rowId: Id, colId: Id): void;
14
+ expand(rowId: Id): void;
15
+ collapse(rowId: Id): void;
16
+ expandAll(): void;
17
+ collapseAll(): void;
18
+ groupBy(property: string | ((item: IDataItem) => string)): void;
19
+ ungroup(): void;
20
+ showRow(rowId: Id): void;
21
+ hideRow(rowId: Id): void;
22
+ getCellRect(rowId: Id, colId: Id): ICellRect;
23
+ getSpan(rowId: Id, colId: Id): ISpan;
24
+ protected _adjustColumnsWidth({ rows, cols, totalCols, adjust, }: IAdjustColumns): IColumnsWidth;
25
+ protected _createCollection(prep: (data: any[]) => any[]): void;
26
+ protected _getRowIndex(rowId: Id): number;
27
+ protected _setEventHandlers(): void;
28
+ private _groupBy;
29
+ private _serialize;
30
+ }
@@ -0,0 +1,20 @@
1
+ import { IEventSystem } from "../../ts-common/events";
2
+ import { DataCallback, DataDriver, DataEvents, IDataItem, TreeCollection } from "../../ts-data";
3
+ import { TreeGridEvents } from "./types";
4
+ import { Id } from "../../ts-common/types";
5
+ export declare class TreeGridCollection extends TreeCollection {
6
+ constructor(config?: any, events?: IEventSystem<DataEvents | TreeGridEvents>);
7
+ eachChild(id: Id, cb: any, direct?: boolean, checkItem?: (item: IDataItem) => boolean): void;
8
+ getMaxLevel(): number;
9
+ getLevel(id: Id): number;
10
+ serialize(driver?: DataDriver): any[];
11
+ getPlainIndex(id: Id): number;
12
+ map(cb: DataCallback<IDataItem>, parent?: Id, direct?: boolean): IDataItem[];
13
+ mapVisible(cb: DataCallback<IDataItem>, parent?: Id, direct?: boolean): IDataItem[];
14
+ protected _parse_data(data: any, parent?: Id): void;
15
+ protected _copy(id: Id, index: number, target?: TreeGridCollection, targetId?: Id, key?: number): Id;
16
+ protected _addToOrder(_order: any, obj: any, index: number): void;
17
+ protected _removeCore(id: Id): void;
18
+ protected _setParent(item: IDataItem, parent: Id): void;
19
+ private _checkItems;
20
+ }
@@ -0,0 +1,7 @@
1
+ import "../../styles/grid.scss";
2
+ import "../../styles/themes.scss";
3
+ export { cssManager } from "../../ts-common/CssManager";
4
+ export { awaitRedraw, setTheme } from "../../ts-common/dom";
5
+ export { TreeGridCollection } from "./TreeGridCollection";
6
+ export { TreeGrid } from "./TreeGrid";
7
+ export declare const i18n: any;
@@ -0,0 +1,2 @@
1
+ export * from "./entry";
2
+ export { dataDriversPro as dataDrivers } from "../../ts-data";
@@ -0,0 +1,32 @@
1
+ import { DataEvents, DragEvents, IDataEventsHandlersMap, IDragEventsHandlersMap, IDataItem } from "../../ts-data";
2
+ import { GridEvents, IEventHandlersMap, IGrid, IGridConfig } from "../../ts-grid";
3
+ import { IEventSystem } from "../../ts-common/events";
4
+ import { Id } from "../../ts-common/types";
5
+ export interface ITreeGridConfig extends IGridConfig {
6
+ rootParent?: Id;
7
+ dragExpand?: boolean;
8
+ collapsed?: boolean;
9
+ }
10
+ export interface ITreeGrid extends IGrid {
11
+ events: IEventSystem<DataEvents | GridEvents | DragEvents | TreeGridEvents, IEventHandlersMap & IDataEventsHandlersMap & IDragEventsHandlersMap & ITreeEventHandlersMap>;
12
+ scrollTo(rowId: Id, colId: Id): void;
13
+ expand(rowId: Id): void;
14
+ collapse(rowId: Id): void;
15
+ expandAll(): void;
16
+ collapseAll(): void;
17
+ groupBy(property: string | ((item: IDataItem) => string)): void;
18
+ ungroup(): void;
19
+ }
20
+ export declare enum TreeGridEvents {
21
+ beforeCollapse = "beforeCollapse",
22
+ afterCollapse = "afterCollapse",
23
+ beforeExpand = "beforeExpand",
24
+ afterExpand = "afterExpand"
25
+ }
26
+ export interface ITreeEventHandlersMap {
27
+ [key: string]: (...args: any[]) => any;
28
+ [TreeGridEvents.beforeCollapse]: (rowId: Id) => boolean | void;
29
+ [TreeGridEvents.afterCollapse]: (rowId: Id) => any;
30
+ [TreeGridEvents.beforeExpand]: (rowId: Id) => boolean | void;
31
+ [TreeGridEvents.afterExpand]: (rowId: Id) => any;
32
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};