dhx-chart 8.2.4 → 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 (366) 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 +14 -14
  149. package/codebase/types/ts-grid/sources/ui/Cells.d.ts +3 -3
  150. package/codebase/types/ts-grid/sources/ui/editors/DateEditor.d.ts +1 -1
  151. package/codebase/types/ts-grid/tests/Grid.d.ts +1 -0
  152. package/codebase/types/ts-grid/tests/TreeGrid.d.ts +1 -0
  153. package/codebase/types/ts-grid/tests/stubs.d.ts +84 -0
  154. package/codebase/types/ts-grid/tests/suite.d.ts +2 -0
  155. package/codebase/types/ts-helpers/entry.d.ts +0 -0
  156. package/codebase/types/ts-layout/sources/entry.d.ts +2 -0
  157. package/codebase/types/ts-layout/sources/entry_pro.d.ts +2 -0
  158. package/codebase/types/ts-layout/sources/types.d.ts +3 -3
  159. package/codebase/types/ts-layout/tests/Layout.d.ts +1 -0
  160. package/codebase/types/ts-layout/tests/suite.d.ts +1 -0
  161. package/codebase/types/ts-list/sources/entry.d.ts +3 -0
  162. package/codebase/types/ts-list/sources/entry_pro.d.ts +2 -0
  163. package/codebase/types/ts-list/sources/helpers.d.ts +2 -0
  164. package/codebase/types/ts-list/sources/types.d.ts +1 -1
  165. package/codebase/types/ts-list/tests/selections/Selections.d.ts +1 -0
  166. package/codebase/types/ts-list/tests/selections/stubs.d.ts +3 -0
  167. package/codebase/types/ts-list/tests/suite.d.ts +1 -0
  168. package/codebase/types/ts-menu/index.d.ts +2 -0
  169. package/codebase/types/ts-menu/sources/ContextMenu.d.ts +11 -0
  170. package/codebase/types/ts-menu/sources/Menu.d.ts +6 -0
  171. package/codebase/types/ts-menu/sources/entry.d.ts +4 -0
  172. package/codebase/types/ts-menu/tests/suite.d.ts +0 -0
  173. package/codebase/types/ts-message/sources/entry.d.ts +6 -0
  174. package/codebase/types/ts-message/sources/tooltip.d.ts +1 -1
  175. package/codebase/types/ts-message/tests/suite.d.ts +0 -0
  176. package/codebase/types/ts-navbar/index.d.ts +3 -0
  177. package/codebase/types/ts-navbar/sources/Navbar.d.ts +62 -0
  178. package/codebase/types/ts-navbar/sources/elements/button.d.ts +1 -0
  179. package/codebase/types/ts-navbar/sources/elements/customHTMLButton.d.ts +1 -0
  180. package/codebase/types/ts-navbar/sources/elements/datePicker.d.ts +1 -0
  181. package/codebase/types/ts-navbar/sources/elements/helpers.d.ts +17 -0
  182. package/codebase/types/ts-navbar/sources/elements/imageButton.d.ts +1 -0
  183. package/codebase/types/ts-navbar/sources/elements/input.d.ts +1 -0
  184. package/codebase/types/ts-navbar/sources/elements/menuItem.d.ts +1 -0
  185. package/codebase/types/ts-navbar/sources/elements/navItem.d.ts +1 -0
  186. package/codebase/types/ts-navbar/sources/elements/separator.d.ts +1 -0
  187. package/codebase/types/ts-navbar/sources/elements/spacer.d.ts +1 -0
  188. package/codebase/types/ts-navbar/sources/elements/title.d.ts +1 -0
  189. package/codebase/types/ts-navbar/sources/itemfactory.d.ts +10 -0
  190. package/codebase/types/ts-navbar/sources/types.d.ts +206 -0
  191. package/codebase/types/ts-navbar/tests/suite.d.ts +0 -0
  192. package/codebase/types/ts-optimus/index.d.ts +2 -0
  193. package/codebase/types/ts-optimus/sources/DHXApp.d.ts +12 -0
  194. package/codebase/types/ts-optimus/sources/DHXView.d.ts +11 -0
  195. package/codebase/types/ts-optimus/sources/EventSystem.d.ts +9 -0
  196. package/codebase/types/ts-optimus/sources/HTMLCell.d.ts +8 -0
  197. package/codebase/types/ts-optimus/sources/LocalSession.d.ts +5 -0
  198. package/codebase/types/ts-optimus/sources/types.d.ts +36 -0
  199. package/codebase/types/ts-pagination/index.d.ts +2 -0
  200. package/codebase/types/ts-pagination/sources/Pagination.d.ts +26 -0
  201. package/codebase/types/ts-pagination/sources/entry.d.ts +3 -0
  202. package/codebase/types/ts-pagination/sources/types.d.ts +27 -0
  203. package/codebase/types/ts-pagination/tests/suite.d.ts +0 -0
  204. package/codebase/types/ts-pivot/index.d.ts +1 -0
  205. package/codebase/types/ts-pivot/sources/DataPreprocessor.d.ts +29 -0
  206. package/codebase/types/ts-pivot/sources/DateFormatter.d.ts +29 -0
  207. package/codebase/types/ts-pivot/sources/Pivot.d.ts +52 -0
  208. package/codebase/types/ts-pivot/sources/configurator/Configurator.d.ts +40 -0
  209. package/codebase/types/ts-pivot/sources/entry.d.ts +9 -0
  210. package/codebase/types/ts-pivot/sources/filters/DateFilter.d.ts +17 -0
  211. package/codebase/types/ts-pivot/sources/filters/Filter.d.ts +72 -0
  212. package/codebase/types/ts-pivot/sources/filters/Filters.d.ts +13 -0
  213. package/codebase/types/ts-pivot/sources/filters/helpers.d.ts +2 -0
  214. package/codebase/types/ts-pivot/sources/group-module/DataGroup.d.ts +13 -0
  215. package/codebase/types/ts-pivot/sources/group-module/groupfuncs.d.ts +10 -0
  216. package/codebase/types/ts-pivot/sources/group-module/types.d.ts +19 -0
  217. package/codebase/types/ts-pivot/sources/helpers.d.ts +28 -0
  218. package/codebase/types/ts-pivot/sources/locales/en.d.ts +38 -0
  219. package/codebase/types/ts-pivot/sources/templates.d.ts +4 -0
  220. package/codebase/types/ts-pivot/sources/types.d.ts +180 -0
  221. package/codebase/types/ts-pivot/tests/DataPreprocessor.d.ts +1 -0
  222. package/codebase/types/ts-pivot/tests/Pivot.d.ts +1 -0
  223. package/codebase/types/ts-pivot/tests/config-module/Config.d.ts +1 -0
  224. package/codebase/types/ts-pivot/tests/config-module/stubs.d.ts +80 -0
  225. package/codebase/types/ts-pivot/tests/filter-module/Filter.d.ts +1 -0
  226. package/codebase/types/ts-pivot/tests/group-module/DataGroup.d.ts +1 -0
  227. package/codebase/types/ts-pivot/tests/group-module/groupfuncs.d.ts +1 -0
  228. package/codebase/types/ts-pivot/tests/group-module/stubs.d.ts +54 -0
  229. package/codebase/types/ts-pivot/tests/stubs.d.ts +107 -0
  230. package/codebase/types/ts-pivot/tests/suite.d.ts +6 -0
  231. package/codebase/types/ts-popup/sources/entry.d.ts +2 -0
  232. package/codebase/types/ts-popup/tests/suite.d.ts +0 -0
  233. package/codebase/types/ts-property/index.d.ts +2 -0
  234. package/codebase/types/ts-property/sources/Property.d.ts +16 -0
  235. package/codebase/types/ts-property/sources/entry.d.ts +2 -0
  236. package/codebase/types/ts-property/sources/items/BaseItem.d.ts +16 -0
  237. package/codebase/types/ts-property/sources/items/Checkbox.d.ts +7 -0
  238. package/codebase/types/ts-property/sources/items/Colorpicker.d.ts +10 -0
  239. package/codebase/types/ts-property/sources/items/Combo.d.ts +9 -0
  240. package/codebase/types/ts-property/sources/items/Label.d.ts +4 -0
  241. package/codebase/types/ts-property/sources/items/Select.d.ts +5 -0
  242. package/codebase/types/ts-property/sources/items/Text.d.ts +4 -0
  243. package/codebase/types/ts-property/sources/items/Textarea.d.ts +4 -0
  244. package/codebase/types/ts-property/sources/items/helpers.d.ts +2 -0
  245. package/codebase/types/ts-property/sources/items/index.d.ts +19 -0
  246. package/codebase/types/ts-property/sources/types.d.ts +47 -0
  247. package/codebase/types/ts-property/tests/suite.d.ts +0 -0
  248. package/codebase/types/ts-ribbon/index.d.ts +2 -0
  249. package/codebase/types/ts-ribbon/sources/ProRibbon.d.ts +10 -0
  250. package/codebase/types/ts-ribbon/sources/Ribbon.d.ts +43 -0
  251. package/codebase/types/ts-ribbon/sources/entry.d.ts +3 -0
  252. package/codebase/types/ts-ribbon/sources/entry_pro.d.ts +2 -0
  253. package/codebase/types/ts-ribbon/tests/suite.d.ts +0 -0
  254. package/codebase/types/ts-richtext/index.d.ts +1 -0
  255. package/codebase/types/ts-richtext/sources/Manager.d.ts +16 -0
  256. package/codebase/types/ts-richtext/sources/Richtext.d.ts +36 -0
  257. package/codebase/types/ts-richtext/sources/SelectionHelper.d.ts +30 -0
  258. package/codebase/types/ts-richtext/sources/constants.d.ts +44 -0
  259. package/codebase/types/ts-richtext/sources/entry.d.ts +3 -0
  260. package/codebase/types/ts-richtext/sources/helpers/buffer.d.ts +10 -0
  261. package/codebase/types/ts-richtext/sources/helpers/composition.d.ts +2 -0
  262. package/codebase/types/ts-richtext/sources/helpers/link.d.ts +40 -0
  263. package/codebase/types/ts-richtext/sources/helpers/markdown.d.ts +2 -0
  264. package/codebase/types/ts-richtext/sources/helpers/minimizer.d.ts +19 -0
  265. package/codebase/types/ts-richtext/sources/helpers/other.d.ts +13 -0
  266. package/codebase/types/ts-richtext/sources/helpers/parser.d.ts +1 -0
  267. package/codebase/types/ts-richtext/sources/helpers/scroll.d.ts +10 -0
  268. package/codebase/types/ts-richtext/sources/helpers/selection.d.ts +10 -0
  269. package/codebase/types/ts-richtext/sources/helpers/serializer.d.ts +2 -0
  270. package/codebase/types/ts-richtext/sources/helpers/statistics.d.ts +7 -0
  271. package/codebase/types/ts-richtext/sources/helpers/styles.d.ts +10 -0
  272. package/codebase/types/ts-richtext/sources/helpers/toolbar.d.ts +21 -0
  273. package/codebase/types/ts-richtext/sources/keyhandler.d.ts +26 -0
  274. package/codebase/types/ts-richtext/sources/locales/en.d.ts +35 -0
  275. package/codebase/types/ts-richtext/sources/models/Block.d.ts +27 -0
  276. package/codebase/types/ts-richtext/sources/models/Editor.d.ts +61 -0
  277. package/codebase/types/ts-richtext/sources/models/TextNode.d.ts +16 -0
  278. package/codebase/types/ts-richtext/sources/types.d.ts +143 -0
  279. package/codebase/types/ts-richtext/tests/block.d.ts +1 -0
  280. package/codebase/types/ts-richtext/tests/editor.d.ts +1 -0
  281. package/codebase/types/ts-richtext/tests/suite.d.ts +3 -0
  282. package/codebase/types/ts-richtext/tests/textnode.d.ts +1 -0
  283. package/codebase/types/ts-samplegen/index.d.ts +1 -0
  284. package/codebase/types/ts-samplegen/sources/SampleGenerator.d.ts +20 -0
  285. package/codebase/types/ts-samplegen/sources/entry.d.ts +2 -0
  286. package/codebase/types/ts-samplegen/tests/suite.d.ts +0 -0
  287. package/codebase/types/ts-scheduler/index.d.ts +1 -0
  288. package/codebase/types/ts-scheduler/sources/Scheduler.d.ts +18 -0
  289. package/codebase/types/ts-scheduler/sources/entry.d.ts +2 -0
  290. package/codebase/types/ts-scheduler/sources/helpers/scales.d.ts +1 -0
  291. package/codebase/types/ts-scheduler/sources/helpers/topbar.d.ts +1 -0
  292. package/codebase/types/ts-scheduler/sources/views/Agenda.d.ts +6 -0
  293. package/codebase/types/ts-scheduler/sources/views/Base.d.ts +3 -0
  294. package/codebase/types/ts-scheduler/sources/views/Cols.d.ts +8 -0
  295. package/codebase/types/ts-scheduler/sources/views/Day.d.ts +4 -0
  296. package/codebase/types/ts-scheduler/sources/views/Month.d.ts +8 -0
  297. package/codebase/types/ts-scheduler/sources/views/Week.d.ts +4 -0
  298. package/codebase/types/ts-scheduler/sources/views/index.d.ts +11 -0
  299. package/codebase/types/ts-scheduler/tests/suite.d.ts +0 -0
  300. package/codebase/types/ts-sidebar/index.d.ts +3 -0
  301. package/codebase/types/ts-sidebar/sources/ProSidebar.d.ts +8 -0
  302. package/codebase/types/ts-sidebar/sources/Sidebar.d.ts +24 -0
  303. package/codebase/types/ts-sidebar/sources/entry.d.ts +3 -0
  304. package/codebase/types/ts-sidebar/sources/entry_pro.d.ts +2 -0
  305. package/codebase/types/ts-sidebar/sources/types.d.ts +40 -0
  306. package/codebase/types/ts-sidebar/tests/suite.d.ts +0 -0
  307. package/codebase/types/ts-slider/sources/entry.d.ts +2 -0
  308. package/codebase/types/ts-slider/sources/types.d.ts +3 -3
  309. package/codebase/types/ts-slider/tests/suite.d.ts +0 -0
  310. package/codebase/types/ts-tabbar/index.d.ts +2 -0
  311. package/codebase/types/ts-tabbar/sources/Tabbar.d.ts +38 -0
  312. package/codebase/types/ts-tabbar/sources/entry.d.ts +2 -0
  313. package/codebase/types/ts-tabbar/sources/types.d.ts +64 -0
  314. package/codebase/types/ts-tabbar/tests/suite.d.ts +0 -0
  315. package/codebase/types/ts-theme/entry.d.ts +0 -0
  316. package/codebase/types/ts-timepicker/sources/entry.d.ts +3 -0
  317. package/codebase/types/ts-timepicker/tests/suite.d.ts +0 -0
  318. package/codebase/types/ts-toolbar/index.d.ts +2 -0
  319. package/codebase/types/ts-toolbar/sources/ProToolbar.d.ts +10 -0
  320. package/codebase/types/ts-toolbar/sources/Toolbar.d.ts +32 -0
  321. package/codebase/types/ts-toolbar/sources/entry.d.ts +4 -0
  322. package/codebase/types/ts-toolbar/sources/entry_pro.d.ts +2 -0
  323. package/codebase/types/ts-toolbar/tests/suite.d.ts +0 -0
  324. package/codebase/types/ts-tree/index.d.ts +3 -0
  325. package/codebase/types/ts-tree/sources/Editor.d.ts +42 -0
  326. package/codebase/types/ts-tree/sources/Tree.d.ts +58 -0
  327. package/codebase/types/ts-tree/sources/entry.d.ts +6 -0
  328. package/codebase/types/ts-tree/sources/entry_pro.d.ts +2 -0
  329. package/codebase/types/ts-tree/sources/types.d.ts +119 -0
  330. package/codebase/types/ts-tree/tests/suite.d.ts +0 -0
  331. package/codebase/types/ts-treegrid/index.d.ts +3 -0
  332. package/codebase/types/ts-treegrid/sources/TreeGrid.d.ts +30 -0
  333. package/codebase/types/ts-treegrid/sources/TreeGridCollection.d.ts +20 -0
  334. package/codebase/types/ts-treegrid/sources/entry.d.ts +7 -0
  335. package/codebase/types/ts-treegrid/sources/entry_pro.d.ts +2 -0
  336. package/codebase/types/ts-treegrid/sources/types.d.ts +32 -0
  337. package/codebase/types/ts-treegrid/tests/Grid.d.ts +1 -0
  338. package/codebase/types/ts-treegrid/tests/TreeGrid.d.ts +1 -0
  339. package/codebase/types/ts-treegrid/tests/stubs.d.ts +84 -0
  340. package/codebase/types/ts-treegrid/tests/suite.d.ts +2 -0
  341. package/codebase/types/ts-ui-kit/index.d.ts +0 -0
  342. package/codebase/types/ts-ui-kit/sources/entry.d.ts +1 -0
  343. package/codebase/types/ts-ui-kit/tests/suite.d.ts +0 -0
  344. package/codebase/types/ts-vault/index.d.ts +3 -0
  345. package/codebase/types/ts-vault/sources/ProgressBar.d.ts +12 -0
  346. package/codebase/types/ts-vault/sources/ReadStackPreview.d.ts +11 -0
  347. package/codebase/types/ts-vault/sources/Uploader.d.ts +26 -0
  348. package/codebase/types/ts-vault/sources/Vault.d.ts +33 -0
  349. package/codebase/types/ts-vault/sources/configs.d.ts +14 -0
  350. package/codebase/types/ts-vault/sources/entry.d.ts +6 -0
  351. package/codebase/types/ts-vault/sources/helper.d.ts +30 -0
  352. package/codebase/types/ts-vault/sources/locales/en.d.ts +18 -0
  353. package/codebase/types/ts-vault/sources/types.d.ts +107 -0
  354. package/codebase/types/ts-vault/tests/suite.d.ts +0 -0
  355. package/codebase/types/ts-window/index.d.ts +2 -0
  356. package/codebase/types/ts-window/sources/ProWindow.d.ts +11 -0
  357. package/codebase/types/ts-window/sources/Window.d.ts +55 -0
  358. package/codebase/types/ts-window/sources/WindowController.d.ts +10 -0
  359. package/codebase/types/ts-window/sources/entry.d.ts +2 -0
  360. package/codebase/types/ts-window/sources/entry_pro.d.ts +2 -0
  361. package/codebase/types/ts-window/sources/helpers.d.ts +1 -0
  362. package/codebase/types/ts-window/sources/types.d.ts +82 -0
  363. package/codebase/types/ts-window/tests/suite.d.ts +0 -0
  364. package/package.json +1 -1
  365. package/readme.txt +1 -1
  366. package/whatsnew.txt +3 -0
@@ -0,0 +1,161 @@
1
+ import { Id } from "../../ts-common/types";
2
+ type textAlign = "left" | "center" | "right";
3
+ type textVerticalAlign = "top" | "center" | "bottom";
4
+ type strokeType = "line" | "dash" | any;
5
+ type arrows = "filled" | any;
6
+ type connectType = "straight" | "curved" | "elbow";
7
+ type fontStyle = "normal" | "italic" | "oblique";
8
+ export { SelectionEvents } from "../../ts-common/types";
9
+ export interface IItemConfig {
10
+ id?: Id;
11
+ type?: string;
12
+ parent?: string;
13
+ img?: string;
14
+ x?: number;
15
+ y?: number;
16
+ dx?: number;
17
+ dy?: number;
18
+ height?: number;
19
+ width?: number;
20
+ angle?: number;
21
+ text?: string;
22
+ title?: string;
23
+ css?: string;
24
+ color?: string;
25
+ hidden?: boolean;
26
+ from?: string;
27
+ to?: string;
28
+ points?: ICoords[];
29
+ fill?: string;
30
+ stroke?: string;
31
+ extraLinesStroke?: string;
32
+ strokeWidth?: number;
33
+ strokeType?: strokeType;
34
+ strokeDash?: string;
35
+ fontColor?: string;
36
+ fontStyle?: fontStyle;
37
+ fontWeight?: string;
38
+ fontSize?: number;
39
+ textAlign?: textAlign;
40
+ textVerticalAlign?: textVerticalAlign;
41
+ lineHeight?: number;
42
+ open?: boolean;
43
+ dir?: string;
44
+ $count?: number;
45
+ $kids?: any[];
46
+ $selected?: boolean;
47
+ $expandColor?: string;
48
+ $parent?: string;
49
+ $shape?: IShape;
50
+ $move?: boolean;
51
+ $connectMode?: boolean;
52
+ }
53
+ export interface IButtonConfig {
54
+ content: any;
55
+ check?: any;
56
+ id: Id;
57
+ css?: any;
58
+ }
59
+ export interface IDiagramConfig {
60
+ toolbar?: IButtonConfig[];
61
+ type?: string;
62
+ select?: boolean;
63
+ defaultShapeType?: string;
64
+ defaultLinkType?: string;
65
+ scale?: number;
66
+ scroll?: boolean;
67
+ dragMode?: boolean;
68
+ showGrid?: boolean;
69
+ gridStep?: number;
70
+ margin?: {
71
+ x?: number;
72
+ y?: number;
73
+ itemX?: number;
74
+ itemY?: number;
75
+ };
76
+ lineGap?: number;
77
+ $svg?: any;
78
+ }
79
+ export interface IBoxSize {
80
+ left: number;
81
+ right: number;
82
+ top: number;
83
+ bottom: number;
84
+ }
85
+ export interface IShape {
86
+ config: IItemConfig;
87
+ id: Id;
88
+ move(x: number, y: number): any;
89
+ resize(width: number, height: number): any;
90
+ rotate(angle: number): any;
91
+ update(config: IItemConfig): any;
92
+ getPoint(x: number, y: number): ICoords;
93
+ toSVG(): string;
94
+ getCenter(): ICoords;
95
+ setCss(value: string): any;
96
+ getMetaInfo(): any[];
97
+ isConnector(): boolean;
98
+ getBox(): IBoxSize;
99
+ canResize(): boolean;
100
+ }
101
+ export interface ICoords {
102
+ x: number;
103
+ y: number;
104
+ side?: string;
105
+ $custom?: boolean;
106
+ }
107
+ export interface ILinkConfig extends IItemConfig {
108
+ id?: string;
109
+ from: string;
110
+ to: string;
111
+ type?: strokeType;
112
+ arrow?: string;
113
+ backArrow?: arrows;
114
+ forwardArrow?: arrows;
115
+ fromSide?: string;
116
+ toSide?: string;
117
+ cornersRadius?: number;
118
+ points?: ICoords[];
119
+ connectType?: connectType;
120
+ $selected?: boolean;
121
+ $move?: boolean;
122
+ $selectedPoint?: string;
123
+ }
124
+ export type FilterHandler = (item: IItemConfig) => boolean;
125
+ export interface IDiagram {
126
+ config: IDiagramConfig;
127
+ collapseItem(id: string): any;
128
+ expandItem(id: string): any;
129
+ paint(): any;
130
+ getScrollState(): ICoords;
131
+ scrollTo(x: number, y: number): any;
132
+ showItem(id: string): any;
133
+ }
134
+ export interface IContent {
135
+ shapes?: string;
136
+ width?: number;
137
+ height?: number;
138
+ minX?: number;
139
+ minY?: number;
140
+ gap?: number;
141
+ container?: any;
142
+ root?: string;
143
+ scroll?: any;
144
+ }
145
+ export type SelectShape = (item: IItemConfig) => boolean;
146
+ export type ActionShape = (item: IItemConfig) => void;
147
+ export declare enum DiagramEvents {
148
+ scroll = "scroll",
149
+ beforeCollapse = "beforecollapse",
150
+ afterCollapse = "aftercollapse",
151
+ beforeExpand = "beforeexpand",
152
+ afterExpand = "afterexpand",
153
+ shapeMouseDown = "shapemousedown",
154
+ shapeClick = "shapeclick",
155
+ shapedDblClick = "shapedblclick",
156
+ shapeIconClick = "shapeiconclick",
157
+ beforeRender = "beforerender",
158
+ shapeHover = "shapeHover",
159
+ emptyAreaClick = "emptyAreaClick",
160
+ load = "load"
161
+ }
@@ -0,0 +1,25 @@
1
+ export declare const diagramWithImgData: ({
2
+ id: string;
3
+ text: string;
4
+ title: string;
5
+ img: string;
6
+ from?: undefined;
7
+ to?: undefined;
8
+ type?: undefined;
9
+ } | {
10
+ id: string;
11
+ text: string;
12
+ img: string;
13
+ title?: undefined;
14
+ from?: undefined;
15
+ to?: undefined;
16
+ type?: undefined;
17
+ } | {
18
+ id: string;
19
+ from: string;
20
+ to: string;
21
+ type: string;
22
+ text?: undefined;
23
+ title?: undefined;
24
+ img?: undefined;
25
+ })[];
File without changes
@@ -0,0 +1,3 @@
1
+ export * from "./sources/Form";
2
+ export * from "./sources/ProForm";
3
+ export * from "./sources/types";
@@ -0,0 +1,55 @@
1
+ import { IEventSystem } from "../../ts-common/events";
2
+ import { View } from "../../ts-common/view";
3
+ import { Layout, ILayoutConfig, ICellConfig } from "../../ts-layout";
4
+ import { IAnyObj } from "../../ts-common/types";
5
+ import { FormEvents, IItemConfig, IFormEventHandlersMap, IForm, ClearMethod, IFormConfig, TFormDataCallback, TProps } from "./types";
6
+ export declare class Form extends View implements IForm {
7
+ config: IFormConfig;
8
+ events: IEventSystem<FormEvents, IFormEventHandlersMap>;
9
+ layout: Layout;
10
+ private _isValid;
11
+ protected _attachments: {
12
+ [name: string]: any;
13
+ };
14
+ protected _state: {
15
+ [key: string]: any;
16
+ };
17
+ private container;
18
+ constructor(container: HTMLElement | string, config: IFormConfig);
19
+ paint(): void;
20
+ send(url: string, method?: string, asFormData?: boolean): Promise<any> | void;
21
+ clear(method?: ClearMethod): void;
22
+ setValue(obj: IAnyObj): void;
23
+ getValue<T extends boolean = false>(asFormData?: boolean): T extends true ? FormData : IAnyObj;
24
+ getItem(name: string): any;
25
+ validate(silent?: boolean): boolean;
26
+ setProperties(arg: string | {
27
+ [name: string]: TProps;
28
+ }, props?: TProps): void;
29
+ getProperties(name?: string): {
30
+ [name: string]: TProps;
31
+ } | TProps;
32
+ show(): void;
33
+ hide(init?: boolean): void;
34
+ setFocus(name: string): void;
35
+ blur(name: string): void;
36
+ isVisible(name?: string): boolean;
37
+ disable(): void;
38
+ enable(): void;
39
+ isDisabled(name?: string): boolean;
40
+ forEach(callback: TFormDataCallback): void;
41
+ destructor(): void;
42
+ getRootView(): any;
43
+ protected _addLayoutItem(item: IItemConfig): ICellConfig;
44
+ protected _initItemHandlers(item: IItemConfig, name: string): void;
45
+ protected _changeProps(name: any, props: any): void;
46
+ private _addLayoutItems;
47
+ private _checkLayoutConfig;
48
+ protected _createLayoutConfig(config: IFormConfig, layoutConfig: ILayoutConfig): void;
49
+ protected _initUI(container: HTMLElement | string): void;
50
+ private _clear;
51
+ private _clearValidate;
52
+ private _formContainerShow;
53
+ private _formContainerHide;
54
+ private _send;
55
+ }
@@ -0,0 +1,7 @@
1
+ import { Form } from "./Form";
2
+ import { IFormConfig, IItemConfig } from "./types";
3
+ export declare class ProForm extends Form {
4
+ constructor(container: HTMLElement | string, config: IFormConfig);
5
+ protected _initItemHandlers(item: IItemConfig, name: string): void;
6
+ protected _initUI(container: HTMLElement | string): void;
7
+ }
@@ -0,0 +1,77 @@
1
+ import { IBaseLayoutItem, IBaseItem, IBaseState, IBaseHandlersMap, ItemEvent } from "../types";
2
+ import { View } from "../../../ts-common/view";
3
+ import { IFieldset } from "./fieldset";
4
+ import { IEventSystem } from "../../../ts-common/events";
5
+ export type IToggleValue = number | string;
6
+ export interface IToggleButtonProps extends IBaseLayoutItem {
7
+ full?: boolean;
8
+ text?: string;
9
+ icon?: string;
10
+ offText?: string;
11
+ offIcon?: string;
12
+ value?: IToggleValue;
13
+ }
14
+ export interface IToggleButtonConfig extends IBaseItem, IBaseState, IToggleButtonProps {
15
+ type: "toggle";
16
+ selected?: boolean;
17
+ $group?: boolean;
18
+ $gap?: number;
19
+ $extraCss?: string;
20
+ }
21
+ export interface IToggleButton {
22
+ parent?: IFieldset;
23
+ config: IToggleButtonConfig;
24
+ events: IEventSystem<ItemEvent, IToggleButtonHandlersMap>;
25
+ setValue(selected: boolean, silent?: boolean): void;
26
+ getValue(): IToggleValue | boolean;
27
+ isSelected(): boolean;
28
+ show(): void;
29
+ hide(init?: boolean): void;
30
+ isVisible(): boolean;
31
+ focus(): void;
32
+ blur(): void;
33
+ disable(): void;
34
+ enable(): void;
35
+ isDisabled(): boolean;
36
+ setProperties(config: IToggleButtonProps): void;
37
+ getProperties(): IToggleButtonProps;
38
+ destructor(): void;
39
+ paint(): void;
40
+ }
41
+ export interface IToggleButtonHandlersMap extends IBaseHandlersMap {
42
+ [ItemEvent.beforeChange]: (value: IToggleValue | boolean) => boolean | void;
43
+ [ItemEvent.change]: (value: IToggleValue | boolean) => void;
44
+ [ItemEvent.focus]: (value: IToggleValue | boolean) => void;
45
+ [ItemEvent.blur]: (value: IToggleValue | boolean) => void;
46
+ [ItemEvent.keydown]: (event: KeyboardEvent) => void;
47
+ [ItemEvent.beforeHide]: (value: IToggleValue | boolean, init: boolean) => boolean | void;
48
+ [ItemEvent.beforeShow]: (value: IToggleValue | boolean) => boolean | void;
49
+ [ItemEvent.afterHide]: (value: IToggleValue | boolean, init: boolean) => void;
50
+ [ItemEvent.afterShow]: (value: IToggleValue | boolean) => void;
51
+ [ItemEvent.beforeChangeProperties]: (config: IToggleButtonProps) => boolean | void;
52
+ [ItemEvent.afterChangeProperties]: (config: IToggleButtonProps) => void;
53
+ }
54
+ export declare class ToggleButton extends View implements IToggleButton {
55
+ parent?: IFieldset;
56
+ config: IToggleButtonConfig;
57
+ events: IEventSystem<ItemEvent, IToggleButtonHandlersMap>;
58
+ private props;
59
+ private handlers;
60
+ constructor(container: HTMLElement | string | null, config: IToggleButtonConfig);
61
+ setValue(selected?: boolean, silent?: boolean): void;
62
+ getValue(): IToggleValue | boolean;
63
+ isSelected(): boolean;
64
+ show(): void;
65
+ hide(init?: boolean): void;
66
+ isVisible(): boolean;
67
+ focus(): void;
68
+ blur(): void;
69
+ disable(): void;
70
+ enable(): void;
71
+ isDisabled(): boolean;
72
+ setProperties(config: IToggleButtonProps): void;
73
+ getProperties(): IToggleButtonProps;
74
+ destructor(): void;
75
+ protected draw(): any;
76
+ private initHandlers;
77
+ }
@@ -0,0 +1,95 @@
1
+ import { IBaseItem, IBaseState, IBaseLayoutItem, IBaseHandlersMap, ItemEvent } from "../types";
2
+ import { IToggleButtonConfig, IToggleValue, IToggleButtonProps } from "./ToggleButton";
3
+ import { View } from "../../../ts-common/view";
4
+ import { IFieldset } from "./fieldset";
5
+ import { IEventSystem } from "../../../ts-common/events";
6
+ export interface IToggleGroupValue {
7
+ [id: string]: IToggleValue | boolean;
8
+ }
9
+ export interface IToggleGroupProps extends IBaseLayoutItem {
10
+ options?: IToggleButtonConfig[];
11
+ full?: boolean;
12
+ gap?: number;
13
+ multiselection?: boolean;
14
+ }
15
+ export interface IToggleGroupConfig extends IBaseItem, IBaseState, IToggleGroupProps {
16
+ type: "togglegroup";
17
+ options: IToggleButtonConfig[];
18
+ value?: IToggleGroupValue;
19
+ }
20
+ export interface IToggleGroup {
21
+ parent?: IFieldset;
22
+ config: IToggleGroupConfig;
23
+ events: IEventSystem<ItemEvent, IToggleGroupHandlersMap>;
24
+ setValue(value: IToggleGroupValue): void | boolean;
25
+ getValue(): IToggleGroupValue;
26
+ getValue(id: string): IToggleValue | boolean;
27
+ getValue(id?: string): IToggleGroupValue | IToggleValue | boolean;
28
+ isSelected(): {
29
+ [id: string]: boolean;
30
+ };
31
+ isSelected(id: string): boolean;
32
+ isSelected(id?: string): boolean | {
33
+ [id: string]: boolean;
34
+ };
35
+ show(id?: string): void;
36
+ hide(id?: string, init?: boolean): void;
37
+ isVisible(id?: string): boolean;
38
+ focus(id?: string): void;
39
+ blur(): void;
40
+ disable(id?: string): void;
41
+ enable(id?: string): void;
42
+ isDisabled(id?: string): boolean;
43
+ setProperties(config: IToggleGroupProps): void;
44
+ setProperties(config: IToggleButtonProps, id: string): void;
45
+ setProperties(config: IToggleGroupProps | IToggleButtonProps, id?: string): void;
46
+ getProperties(): IToggleGroupProps;
47
+ getProperties(id: string): IToggleButtonProps;
48
+ getProperties(id?: string): IToggleGroupProps | IToggleButtonProps;
49
+ destructor(): void;
50
+ }
51
+ export interface IToggleGroupHandlersMap extends IBaseHandlersMap {
52
+ [ItemEvent.beforeChange]: (value: IToggleGroupValue) => boolean | void;
53
+ [ItemEvent.change]: (value: IToggleGroupValue) => void;
54
+ [ItemEvent.focus]: (value: IToggleGroupValue, id: string) => void;
55
+ [ItemEvent.blur]: (value: IToggleGroupValue, id: string) => void;
56
+ [ItemEvent.keydown]: (event: KeyboardEvent, id: string) => void;
57
+ [ItemEvent.beforeHide]: (value: IToggleGroupValue, id?: string, init?: boolean) => boolean | void;
58
+ [ItemEvent.beforeShow]: (value: IToggleGroupValue, id?: string) => boolean | void;
59
+ [ItemEvent.afterHide]: (value: IToggleGroupValue, id?: string, init?: boolean) => void;
60
+ [ItemEvent.afterShow]: (value: IToggleGroupValue, id?: string) => void;
61
+ [ItemEvent.beforeChangeProperties]: (config: IToggleGroupProps | IToggleButtonProps, id?: string) => boolean | void;
62
+ [ItemEvent.afterChangeProperties]: (config: IToggleGroupProps | IToggleButtonProps, id?: string) => void;
63
+ }
64
+ export declare class ToggleGroup extends View implements IToggleGroup {
65
+ parent?: IFieldset;
66
+ config: IToggleGroupConfig;
67
+ events: IEventSystem<ItemEvent, IToggleGroupHandlersMap>;
68
+ private items;
69
+ private props;
70
+ constructor(container: HTMLElement | string | null, config: IToggleGroupConfig);
71
+ setValue(value: IToggleGroupValue): void | boolean;
72
+ getValue(): IToggleGroupValue;
73
+ getValue(id: string): IToggleValue | boolean;
74
+ isSelected(): {
75
+ [id: string]: boolean;
76
+ };
77
+ isSelected(id: string): boolean;
78
+ show(id?: string): void;
79
+ hide(id?: string, init?: boolean): void;
80
+ isVisible(id?: string): boolean;
81
+ focus(id?: string): void;
82
+ blur(): void;
83
+ disable(id?: string): void;
84
+ enable(id?: string): void;
85
+ isDisabled(id?: string): boolean;
86
+ setProperties(config: IToggleGroupProps): void;
87
+ setProperties(config: IToggleButtonProps, id: string): void;
88
+ getProperties(): IToggleGroupProps;
89
+ getProperties(id: string): IToggleButtonProps;
90
+ destructor(): void;
91
+ private initView;
92
+ private initHandlers;
93
+ private draw;
94
+ private checkVisibleOrder;
95
+ }
@@ -0,0 +1,119 @@
1
+ import { VNode } from "../../../ts-common/dom";
2
+ import { IHandlers } from "../../../ts-common/types";
3
+ import { IEventSystem } from "../../../ts-common/events";
4
+ import { Label } from "./helper/label";
5
+ import { ItemEvent, IBaseHandlersMap, IBaseItem, IBaseState, IBaseLayoutItem, ILabel, IMessage } from "../types";
6
+ import { FileStatus, IParams } from "./simplevault";
7
+ import { IFieldset } from "./fieldset";
8
+ export interface IUploadValue {
9
+ id?: string;
10
+ file?: File;
11
+ src?: string;
12
+ path?: string;
13
+ status?: FileStatus;
14
+ progress?: number;
15
+ request?: XMLHttpRequest;
16
+ }
17
+ export interface IAvatarProps extends IBaseLayoutItem, ILabel, IMessage {
18
+ validation?: (value: IUploadValue) => boolean;
19
+ readOnly?: boolean;
20
+ removeIcon?: boolean;
21
+ size?: "small" | "medium" | "large" | number;
22
+ circle?: boolean;
23
+ alt?: string;
24
+ icon?: string;
25
+ placeholder?: string;
26
+ preview?: string;
27
+ accept?: string;
28
+ target?: string;
29
+ fieldName?: string;
30
+ autosend?: boolean;
31
+ params?: IParams;
32
+ headerParams?: IParams;
33
+ updateFromResponse?: boolean;
34
+ }
35
+ export interface IAvatarConfig extends IBaseItem, IBaseState, IAvatarProps {
36
+ type: "avatar";
37
+ value?: IUploadValue;
38
+ }
39
+ export interface IAvatar {
40
+ parent?: IFieldset;
41
+ config: IAvatarConfig;
42
+ events: IEventSystem<ItemEvent, IAvatarEventHandlersMap>;
43
+ send(params?: IParams): void;
44
+ selectFile(): void;
45
+ setValue(value: IUploadValue): void;
46
+ getValue(): IUploadValue;
47
+ clear(): void;
48
+ disable(): void;
49
+ enable(): void;
50
+ isDisabled(): boolean;
51
+ show(): void;
52
+ hide(init?: boolean): void;
53
+ isVisible(): boolean;
54
+ validate(silent?: boolean, validateValue?: IUploadValue): boolean;
55
+ clearValidate(): void;
56
+ setProperties(propertyConfig: IAvatarProps): void;
57
+ getProperties(): IAvatarProps;
58
+ focus(): void;
59
+ blur(): void;
60
+ destructor(): void;
61
+ }
62
+ export interface IAvatarEventHandlersMap extends IBaseHandlersMap {
63
+ [ItemEvent.beforeChange]: (value: IUploadValue) => boolean | void;
64
+ [ItemEvent.change]: (value: IUploadValue) => void;
65
+ [ItemEvent.beforeHide]: (value: IUploadValue, init: boolean) => boolean | void;
66
+ [ItemEvent.beforeShow]: (value: IUploadValue) => boolean | void;
67
+ [ItemEvent.afterHide]: (value: IUploadValue, init: boolean) => void;
68
+ [ItemEvent.afterShow]: (value: IUploadValue) => void;
69
+ [ItemEvent.beforeValidate]: (value: IUploadValue) => boolean | void;
70
+ [ItemEvent.afterValidate]: (value: IUploadValue, isValidate: boolean) => void;
71
+ [ItemEvent.beforeUploadFile]: (value: IUploadValue) => boolean | void;
72
+ [ItemEvent.uploadBegin]: (value: IUploadValue) => void;
73
+ [ItemEvent.uploadProgress]: (progress: number, value: IUploadValue) => void;
74
+ [ItemEvent.uploadComplete]: (value: IUploadValue) => void;
75
+ [ItemEvent.uploadFail]: (value: IUploadValue) => void;
76
+ [ItemEvent.uploadFile]: (value: IUploadValue, extra?: {
77
+ [key: string]: string;
78
+ }) => void;
79
+ [ItemEvent.beforeChangeProperties]: (properties: IAvatarProps) => boolean | void;
80
+ [ItemEvent.afterChangeProperties]: (properties: IAvatarProps) => void;
81
+ }
82
+ export declare class Avatar extends Label implements IAvatar {
83
+ parent: IFieldset;
84
+ config: IAvatarConfig;
85
+ events: IEventSystem<ItemEvent, IAvatarEventHandlersMap>;
86
+ protected _handlers: IHandlers;
87
+ protected _propsItem: string[];
88
+ protected _props: string[];
89
+ private _isUpload;
90
+ private _dragover;
91
+ private _dragoverTimeout;
92
+ constructor(container: null | string | HTMLElement, config: IAvatarConfig);
93
+ send(params?: IParams): void;
94
+ selectFile(): void;
95
+ setValue(value: IUploadValue): void;
96
+ private _setValue;
97
+ getValue(): IUploadValue;
98
+ clear(): void;
99
+ disable(): void;
100
+ enable(): void;
101
+ isDisabled(): boolean;
102
+ show(): void;
103
+ hide(init?: boolean): void;
104
+ isVisible(): boolean;
105
+ validate(silent?: boolean, value?: IUploadValue): boolean;
106
+ clearValidate(): void;
107
+ setProperties(propertyConfig: IAvatarProps): void;
108
+ getProperties(): IAvatarProps;
109
+ focus(): void;
110
+ blur(): void;
111
+ destructor(): void;
112
+ protected _initView(config: IAvatarConfig): void;
113
+ protected _initHandlers(): void;
114
+ protected _draw(): VNode;
115
+ private _drawImage;
116
+ private _drawPreview;
117
+ private _drawCover;
118
+ private _createFormData;
119
+ }
@@ -0,0 +1,70 @@
1
+ import { View } from "../../../ts-common/view";
2
+ import { ItemEvent, IBaseLayoutItem, IBaseItem, IBaseState, IBaseHandlersMap } from "../types";
3
+ import { IEventSystem } from "../../../ts-common/events";
4
+ import { IFieldset } from "./fieldset";
5
+ export interface IButtonProps extends IBaseLayoutItem {
6
+ submit?: boolean;
7
+ url?: string;
8
+ text?: string;
9
+ icon?: string;
10
+ view?: "flat" | "link";
11
+ size?: "small" | "medium";
12
+ color?: "danger" | "secondary" | "primary" | "success";
13
+ full?: boolean;
14
+ circle?: boolean;
15
+ loading?: boolean;
16
+ }
17
+ export interface IButtonConfig extends IButtonProps, IBaseItem, IBaseState {
18
+ type: "button";
19
+ /** @deprecated See a documentation: https://docs.dhtmlx.com/ */
20
+ value?: string;
21
+ }
22
+ export interface IButton {
23
+ parent?: IFieldset;
24
+ config: IButtonConfig;
25
+ events: IEventSystem<ItemEvent, IButtonHandlersMap>;
26
+ destructor(): void;
27
+ show(): void;
28
+ hide(init?: boolean): void;
29
+ isVisible(): boolean;
30
+ disable(): void;
31
+ enable(): void;
32
+ isDisabled(): boolean;
33
+ setProperties(propertyConfig: IButtonProps): void;
34
+ getProperties(): IButtonProps;
35
+ focus(): void;
36
+ blur(): void;
37
+ }
38
+ export interface IButtonHandlersMap extends IBaseHandlersMap {
39
+ [ItemEvent.click]: (events: Event) => void;
40
+ [ItemEvent.focus]: (text: string) => void;
41
+ [ItemEvent.blur]: (text: string) => void;
42
+ [ItemEvent.keydown]: (event: KeyboardEvent) => void;
43
+ [ItemEvent.beforeHide]: (text: string, init: boolean) => boolean | void;
44
+ [ItemEvent.beforeShow]: (text: string) => boolean | void;
45
+ [ItemEvent.afterHide]: (text: string, init: boolean) => void;
46
+ [ItemEvent.afterShow]: (text: string) => void;
47
+ [ItemEvent.beforeChangeProperties]: (properties: IButtonProps) => boolean | void;
48
+ [ItemEvent.afterChangeProperties]: (properties: IButtonProps) => void;
49
+ }
50
+ export declare class Button extends View implements IButton {
51
+ parent: IFieldset;
52
+ config: IButtonConfig;
53
+ events: IEventSystem<ItemEvent, IButtonHandlersMap>;
54
+ private _handlers;
55
+ private _propsItem;
56
+ private _props;
57
+ constructor(container: HTMLElement | string | null, config: any);
58
+ destructor(): void;
59
+ setProperties(propertyConfig: IButtonProps): void;
60
+ getProperties(): IButtonProps;
61
+ show(): void;
62
+ hide(init?: boolean): void;
63
+ isVisible(): boolean;
64
+ disable(): void;
65
+ enable(): void;
66
+ isDisabled(): boolean;
67
+ focus(): void;
68
+ blur(): void;
69
+ protected _draw(): any;
70
+ }