@visactor/vtable 0.9.0-alpha.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1210) hide show
  1. package/README.md +152 -0
  2. package/cjs/ListTable.d.ts +38 -0
  3. package/cjs/ListTable.js +258 -0
  4. package/cjs/ListTable.js.map +1 -0
  5. package/cjs/PivotTable.d.ts +50 -0
  6. package/cjs/PivotTable.js +275 -0
  7. package/cjs/PivotTable.js.map +1 -0
  8. package/cjs/body-helper/body-helper.d.ts +14 -0
  9. package/cjs/body-helper/body-helper.js +99 -0
  10. package/cjs/body-helper/body-helper.js.map +1 -0
  11. package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
  12. package/cjs/body-helper/style/ImageStyle.js +24 -0
  13. package/cjs/body-helper/style/ImageStyle.js.map +1 -0
  14. package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
  15. package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
  16. package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
  17. package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
  18. package/cjs/body-helper/style/NumberStyle.js +24 -0
  19. package/cjs/body-helper/style/NumberStyle.js.map +1 -0
  20. package/cjs/body-helper/style/ProgressBarStyle.d.ts +52 -0
  21. package/cjs/body-helper/style/ProgressBarStyle.js +126 -0
  22. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
  23. package/cjs/body-helper/style/Style.d.ts +85 -0
  24. package/cjs/body-helper/style/Style.js +200 -0
  25. package/cjs/body-helper/style/Style.js.map +1 -0
  26. package/cjs/body-helper/style.d.ts +10 -0
  27. package/cjs/body-helper/style.js +52 -0
  28. package/cjs/body-helper/style.js.map +1 -0
  29. package/cjs/chartType.d.ts +3 -0
  30. package/cjs/chartType.js +14 -0
  31. package/cjs/chartType.js.map +1 -0
  32. package/cjs/core/BaseTable.d.ts +287 -0
  33. package/cjs/core/BaseTable.js +1272 -0
  34. package/cjs/core/BaseTable.js.map +1 -0
  35. package/cjs/core/FouseInput.d.ts +11 -0
  36. package/cjs/core/FouseInput.js +38 -0
  37. package/cjs/core/FouseInput.js.map +1 -0
  38. package/cjs/core/TABLE_EVENT_TYPE.d.ts +30 -0
  39. package/cjs/core/TABLE_EVENT_TYPE.js +34 -0
  40. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
  41. package/cjs/core/tableHelper.d.ts +28 -0
  42. package/cjs/core/tableHelper.js +141 -0
  43. package/cjs/core/tableHelper.js.map +1 -0
  44. package/cjs/core.d.ts +3 -0
  45. package/cjs/core.js +24 -0
  46. package/cjs/core.js.map +1 -0
  47. package/cjs/data/CachedDataSource.d.ts +16 -0
  48. package/cjs/data/CachedDataSource.js +54 -0
  49. package/cjs/data/CachedDataSource.js.map +1 -0
  50. package/cjs/data/DataSource.d.ts +64 -0
  51. package/cjs/data/DataSource.js +294 -0
  52. package/cjs/data/DataSource.js.map +1 -0
  53. package/cjs/data/FilterDataSource.d.ts +1 -0
  54. package/cjs/data/FilterDataSource.js +1 -0
  55. package/cjs/data/FilterDataSource.js.map +1 -0
  56. package/cjs/data.d.ts +4 -0
  57. package/cjs/data.js +24 -0
  58. package/cjs/data.js.map +1 -0
  59. package/cjs/dataset/DataStatistics.d.ts +10 -0
  60. package/cjs/dataset/DataStatistics.js +81 -0
  61. package/cjs/dataset/DataStatistics.js.map +1 -0
  62. package/cjs/dataset/dataset.d.ts +72 -0
  63. package/cjs/dataset/dataset.js +490 -0
  64. package/cjs/dataset/dataset.js.map +1 -0
  65. package/cjs/dataset/flatDataToObject.d.ts +31 -0
  66. package/cjs/dataset/flatDataToObject.js +71 -0
  67. package/cjs/dataset/flatDataToObject.js.map +1 -0
  68. package/cjs/event/EventHandler.d.ts +45 -0
  69. package/cjs/event/EventHandler.js +120 -0
  70. package/cjs/event/EventHandler.js.map +1 -0
  71. package/cjs/event/EventTarget.d.ts +11 -0
  72. package/cjs/event/EventTarget.js +59 -0
  73. package/cjs/event/EventTarget.js.map +1 -0
  74. package/cjs/event/chart.d.ts +2 -0
  75. package/cjs/event/chart.js +24 -0
  76. package/cjs/event/chart.js.map +1 -0
  77. package/cjs/event/drill.d.ts +3 -0
  78. package/cjs/event/drill.js +23 -0
  79. package/cjs/event/drill.js.map +1 -0
  80. package/cjs/event/event.d.ts +35 -0
  81. package/cjs/event/event.js +426 -0
  82. package/cjs/event/event.js.map +1 -0
  83. package/cjs/event/media-click.d.ts +2 -0
  84. package/cjs/event/media-click.js +58 -0
  85. package/cjs/event/media-click.js.map +1 -0
  86. package/cjs/event/scroll.d.ts +2 -0
  87. package/cjs/event/scroll.js +23 -0
  88. package/cjs/event/scroll.js.map +1 -0
  89. package/cjs/header-helper/header-helper.d.ts +26 -0
  90. package/cjs/header-helper/header-helper.js +214 -0
  91. package/cjs/header-helper/header-helper.js.map +1 -0
  92. package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
  93. package/cjs/header-helper/style/ImageStyle.js +25 -0
  94. package/cjs/header-helper/style/ImageStyle.js.map +1 -0
  95. package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  96. package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
  97. package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  98. package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
  99. package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
  100. package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
  101. package/cjs/header-helper/style/Style.d.ts +88 -0
  102. package/cjs/header-helper/style/Style.js +208 -0
  103. package/cjs/header-helper/style/Style.js.map +1 -0
  104. package/cjs/header-helper/style.d.ts +5 -0
  105. package/cjs/header-helper/style.js +30 -0
  106. package/cjs/header-helper/style.js.map +1 -0
  107. package/cjs/icons.d.ts +4 -0
  108. package/cjs/icons.js +241 -0
  109. package/cjs/icons.js.map +1 -0
  110. package/cjs/index.d.ts +17 -0
  111. package/cjs/index.js +95 -0
  112. package/cjs/index.js.map +1 -0
  113. package/cjs/layout/index.d.ts +1 -0
  114. package/cjs/layout/index.js +15 -0
  115. package/cjs/layout/index.js.map +1 -0
  116. package/cjs/layout/pivot-header-layout.d.ts +155 -0
  117. package/cjs/layout/pivot-header-layout.js +897 -0
  118. package/cjs/layout/pivot-header-layout.js.map +1 -0
  119. package/cjs/layout/pivot-layout.d.ts +86 -0
  120. package/cjs/layout/pivot-layout.js +422 -0
  121. package/cjs/layout/pivot-layout.js.map +1 -0
  122. package/cjs/layout/simple-header-layout.d.ts +67 -0
  123. package/cjs/layout/simple-header-layout.js +413 -0
  124. package/cjs/layout/simple-header-layout.js.map +1 -0
  125. package/cjs/menu/dom/BaseMenu.d.ts +15 -0
  126. package/cjs/menu/dom/BaseMenu.js +30 -0
  127. package/cjs/menu/dom/BaseMenu.js.map +1 -0
  128. package/cjs/menu/dom/Menu.d.ts +9 -0
  129. package/cjs/menu/dom/Menu.js +24 -0
  130. package/cjs/menu/dom/Menu.js.map +1 -0
  131. package/cjs/menu/dom/MenuHandler.d.ts +20 -0
  132. package/cjs/menu/dom/MenuHandler.js +134 -0
  133. package/cjs/menu/dom/MenuHandler.js.map +1 -0
  134. package/cjs/menu/dom/logic/MenuContainer.d.ts +22 -0
  135. package/cjs/menu/dom/logic/MenuContainer.js +110 -0
  136. package/cjs/menu/dom/logic/MenuContainer.js.map +1 -0
  137. package/cjs/menu/dom/logic/MenuElement.css +86 -0
  138. package/cjs/menu/dom/logic/MenuElement.d.ts +27 -0
  139. package/cjs/menu/dom/logic/MenuElement.js +278 -0
  140. package/cjs/menu/dom/logic/MenuElement.js.map +1 -0
  141. package/cjs/plugins/chartTypes.d.ts +3 -0
  142. package/cjs/plugins/chartTypes.js +6 -0
  143. package/cjs/plugins/chartTypes.js.map +1 -0
  144. package/cjs/plugins/icons.d.ts +12 -0
  145. package/cjs/plugins/icons.js +26 -0
  146. package/cjs/plugins/icons.js.map +1 -0
  147. package/cjs/plugins/themes.d.ts +4 -0
  148. package/cjs/plugins/themes.js +6 -0
  149. package/cjs/plugins/themes.js.map +1 -0
  150. package/cjs/register.d.ts +5 -0
  151. package/cjs/register.js +35 -0
  152. package/cjs/register.js.map +1 -0
  153. package/cjs/render/layout/arc.d.ts +23 -0
  154. package/cjs/render/layout/arc.js +20 -0
  155. package/cjs/render/layout/arc.js.map +1 -0
  156. package/cjs/render/layout/circle.d.ts +19 -0
  157. package/cjs/render/layout/circle.js +19 -0
  158. package/cjs/render/layout/circle.js.map +1 -0
  159. package/cjs/render/layout/container.d.ts +52 -0
  160. package/cjs/render/layout/container.js +99 -0
  161. package/cjs/render/layout/container.js.map +1 -0
  162. package/cjs/render/layout/direction.d.ts +22 -0
  163. package/cjs/render/layout/direction.js +35 -0
  164. package/cjs/render/layout/direction.js.map +1 -0
  165. package/cjs/render/layout/element.d.ts +47 -0
  166. package/cjs/render/layout/element.js +27 -0
  167. package/cjs/render/layout/element.js.map +1 -0
  168. package/cjs/render/layout/group-element.d.ts +25 -0
  169. package/cjs/render/layout/group-element.js +52 -0
  170. package/cjs/render/layout/group-element.js.map +1 -0
  171. package/cjs/render/layout/icon.d.ts +21 -0
  172. package/cjs/render/layout/icon.js +48 -0
  173. package/cjs/render/layout/icon.js.map +1 -0
  174. package/cjs/render/layout/image.d.ts +21 -0
  175. package/cjs/render/layout/image.js +20 -0
  176. package/cjs/render/layout/image.js.map +1 -0
  177. package/cjs/render/layout/index.d.ts +9 -0
  178. package/cjs/render/layout/index.js +25 -0
  179. package/cjs/render/layout/index.js.map +1 -0
  180. package/cjs/render/layout/line.d.ts +32 -0
  181. package/cjs/render/layout/line.js +88 -0
  182. package/cjs/render/layout/line.js.map +1 -0
  183. package/cjs/render/layout/percent-calc.d.ts +8 -0
  184. package/cjs/render/layout/percent-calc.js +13 -0
  185. package/cjs/render/layout/percent-calc.js.map +1 -0
  186. package/cjs/render/layout/rect.d.ts +22 -0
  187. package/cjs/render/layout/rect.js +19 -0
  188. package/cjs/render/layout/rect.js.map +1 -0
  189. package/cjs/render/layout/text.d.ts +22 -0
  190. package/cjs/render/layout/text.js +26 -0
  191. package/cjs/render/layout/text.js.map +1 -0
  192. package/cjs/scenegraph/component/cell-content.d.ts +36 -0
  193. package/cjs/scenegraph/component/cell-content.js +100 -0
  194. package/cjs/scenegraph/component/cell-content.js.map +1 -0
  195. package/cjs/scenegraph/component/cell-mover.d.ts +15 -0
  196. package/cjs/scenegraph/component/cell-mover.js +107 -0
  197. package/cjs/scenegraph/component/cell-mover.js.map +1 -0
  198. package/cjs/scenegraph/component/custom.d.ts +7 -0
  199. package/cjs/scenegraph/component/custom.js +212 -0
  200. package/cjs/scenegraph/component/custom.js.map +1 -0
  201. package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
  202. package/cjs/scenegraph/component/drill-icon.js +70 -0
  203. package/cjs/scenegraph/component/drill-icon.js.map +1 -0
  204. package/cjs/scenegraph/component/menu.d.ts +41 -0
  205. package/cjs/scenegraph/component/menu.js +214 -0
  206. package/cjs/scenegraph/component/menu.js.map +1 -0
  207. package/cjs/scenegraph/component/table-component.d.ts +37 -0
  208. package/cjs/scenegraph/component/table-component.js +302 -0
  209. package/cjs/scenegraph/component/table-component.js.map +1 -0
  210. package/cjs/scenegraph/component/util.d.ts +2 -0
  211. package/cjs/scenegraph/component/util.js +11 -0
  212. package/cjs/scenegraph/component/util.js.map +1 -0
  213. package/cjs/scenegraph/debug-tool/debug-tool.d.ts +36 -0
  214. package/cjs/scenegraph/debug-tool/debug-tool.js +138 -0
  215. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
  216. package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
  217. package/cjs/scenegraph/debug-tool/index.js +14 -0
  218. package/cjs/scenegraph/debug-tool/index.js.map +1 -0
  219. package/cjs/scenegraph/graphic/chart.d.ts +30 -0
  220. package/cjs/scenegraph/graphic/chart.js +66 -0
  221. package/cjs/scenegraph/graphic/chart.js.map +1 -0
  222. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
  223. package/cjs/scenegraph/graphic/contributions/chart-render.js +46 -0
  224. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  225. package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
  226. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +195 -0
  227. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  228. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
  229. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +46 -0
  230. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  231. package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
  232. package/cjs/scenegraph/graphic/contributions/index.js +36 -0
  233. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
  234. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
  235. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +47 -0
  236. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  237. package/cjs/scenegraph/graphic/group.d.ts +23 -0
  238. package/cjs/scenegraph/graphic/group.js +94 -0
  239. package/cjs/scenegraph/graphic/group.js.map +1 -0
  240. package/cjs/scenegraph/graphic/icon.d.ts +24 -0
  241. package/cjs/scenegraph/graphic/icon.js +25 -0
  242. package/cjs/scenegraph/graphic/icon.js.map +1 -0
  243. package/cjs/scenegraph/graphic/text.d.ts +16 -0
  244. package/cjs/scenegraph/graphic/text.js +146 -0
  245. package/cjs/scenegraph/graphic/text.js.map +1 -0
  246. package/cjs/scenegraph/group-creater/cell-helper.d.ts +7 -0
  247. package/cjs/scenegraph/group-creater/cell-helper.js +84 -0
  248. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
  249. package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
  250. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +78 -0
  251. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  252. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
  253. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +123 -0
  254. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  255. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
  256. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +342 -0
  257. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  258. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
  259. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +163 -0
  260. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  261. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
  262. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +64 -0
  263. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  264. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
  265. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +100 -0
  266. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  267. package/cjs/scenegraph/group-creater/column-helper.d.ts +24 -0
  268. package/cjs/scenegraph/group-creater/column-helper.js +136 -0
  269. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
  270. package/cjs/scenegraph/group-creater/column.d.ts +14 -0
  271. package/cjs/scenegraph/group-creater/column.js +57 -0
  272. package/cjs/scenegraph/group-creater/column.js.map +1 -0
  273. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +45 -0
  274. package/cjs/scenegraph/group-creater/progress/proxy.js +267 -0
  275. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
  276. package/cjs/scenegraph/header-icon/layout.d.ts +3 -0
  277. package/cjs/scenegraph/header-icon/layout.js +75 -0
  278. package/cjs/scenegraph/header-icon/layout.js.map +1 -0
  279. package/cjs/scenegraph/hover-state.d.ts +14 -0
  280. package/cjs/scenegraph/hover-state.js +27 -0
  281. package/cjs/scenegraph/hover-state.js.map +1 -0
  282. package/cjs/scenegraph/layout/auto-height.d.ts +2 -0
  283. package/cjs/scenegraph/layout/auto-height.js +50 -0
  284. package/cjs/scenegraph/layout/auto-height.js.map +1 -0
  285. package/cjs/scenegraph/layout/auto-width.d.ts +2 -0
  286. package/cjs/scenegraph/layout/auto-width.js +85 -0
  287. package/cjs/scenegraph/layout/auto-width.js.map +1 -0
  288. package/cjs/scenegraph/layout/compute-col-width.d.ts +3 -0
  289. package/cjs/scenegraph/layout/compute-col-width.js +194 -0
  290. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
  291. package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
  292. package/cjs/scenegraph/layout/move-cell.js +61 -0
  293. package/cjs/scenegraph/layout/move-cell.js.map +1 -0
  294. package/cjs/scenegraph/layout/update-cell.d.ts +3 -0
  295. package/cjs/scenegraph/layout/update-cell.js +55 -0
  296. package/cjs/scenegraph/layout/update-cell.js.map +1 -0
  297. package/cjs/scenegraph/layout/update-height.d.ts +6 -0
  298. package/cjs/scenegraph/layout/update-height.js +90 -0
  299. package/cjs/scenegraph/layout/update-height.js.map +1 -0
  300. package/cjs/scenegraph/layout/update-width.d.ts +2 -0
  301. package/cjs/scenegraph/layout/update-width.js +103 -0
  302. package/cjs/scenegraph/layout/update-width.js.map +1 -0
  303. package/cjs/scenegraph/scenegraph.d.ts +109 -0
  304. package/cjs/scenegraph/scenegraph.js +798 -0
  305. package/cjs/scenegraph/scenegraph.js.map +1 -0
  306. package/cjs/scenegraph/style/frame-border.d.ts +3 -0
  307. package/cjs/scenegraph/style/frame-border.js +43 -0
  308. package/cjs/scenegraph/style/frame-border.js.map +1 -0
  309. package/cjs/scenegraph/utils/border-line.d.ts +8 -0
  310. package/cjs/scenegraph/utils/border-line.js +51 -0
  311. package/cjs/scenegraph/utils/border-line.js.map +1 -0
  312. package/cjs/scenegraph/utils/break-string.d.ts +1 -0
  313. package/cjs/scenegraph/utils/break-string.js +37 -0
  314. package/cjs/scenegraph/utils/break-string.js.map +1 -0
  315. package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
  316. package/cjs/scenegraph/utils/cell-pos.js +18 -0
  317. package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
  318. package/cjs/scenegraph/utils/font.d.ts +1 -0
  319. package/cjs/scenegraph/utils/font.js +20 -0
  320. package/cjs/scenegraph/utils/font.js.map +1 -0
  321. package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
  322. package/cjs/scenegraph/utils/get-cell-merge.js +11 -0
  323. package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
  324. package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
  325. package/cjs/scenegraph/utils/get-prop.js +44 -0
  326. package/cjs/scenegraph/utils/get-prop.js.map +1 -0
  327. package/cjs/scenegraph/utils/icon.d.ts +12 -0
  328. package/cjs/scenegraph/utils/icon.js +35 -0
  329. package/cjs/scenegraph/utils/icon.js.map +1 -0
  330. package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  331. package/cjs/scenegraph/utils/keep-aspect-ratio.js +16 -0
  332. package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  333. package/cjs/scenegraph/utils/measure-text.d.ts +20 -0
  334. package/cjs/scenegraph/utils/measure-text.js +111 -0
  335. package/cjs/scenegraph/utils/measure-text.js.map +1 -0
  336. package/cjs/scenegraph/utils/padding.d.ts +1 -0
  337. package/cjs/scenegraph/utils/padding.js +16 -0
  338. package/cjs/scenegraph/utils/padding.js.map +1 -0
  339. package/cjs/scenegraph/utils/text-icon-layout.d.ts +9 -0
  340. package/cjs/scenegraph/utils/text-icon-layout.js +237 -0
  341. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
  342. package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
  343. package/cjs/scenegraph/utils/text-pos.js +27 -0
  344. package/cjs/scenegraph/utils/text-pos.js.map +1 -0
  345. package/cjs/state/cell-move/adjust-header.d.ts +3 -0
  346. package/cjs/state/cell-move/adjust-header.js +20 -0
  347. package/cjs/state/cell-move/adjust-header.js.map +1 -0
  348. package/cjs/state/cell-move/index.d.ts +4 -0
  349. package/cjs/state/cell-move/index.js +60 -0
  350. package/cjs/state/cell-move/index.js.map +1 -0
  351. package/cjs/state/common/check-in-select.d.ts +8 -0
  352. package/cjs/state/common/check-in-select.js +63 -0
  353. package/cjs/state/common/check-in-select.js.map +1 -0
  354. package/cjs/state/drill/index.d.ts +2 -0
  355. package/cjs/state/drill/index.js +15 -0
  356. package/cjs/state/drill/index.js.map +1 -0
  357. package/cjs/state/hover/col.d.ts +5 -0
  358. package/cjs/state/hover/col.js +24 -0
  359. package/cjs/state/hover/col.js.map +1 -0
  360. package/cjs/state/hover/is-cell-hover.d.ts +5 -0
  361. package/cjs/state/hover/is-cell-hover.js +36 -0
  362. package/cjs/state/hover/is-cell-hover.js.map +1 -0
  363. package/cjs/state/hover/row.d.ts +5 -0
  364. package/cjs/state/hover/row.js +22 -0
  365. package/cjs/state/hover/row.js.map +1 -0
  366. package/cjs/state/hover/single.d.ts +5 -0
  367. package/cjs/state/hover/single.js +18 -0
  368. package/cjs/state/hover/single.js.map +1 -0
  369. package/cjs/state/hover/update-cell.d.ts +2 -0
  370. package/cjs/state/hover/update-cell.js +13 -0
  371. package/cjs/state/hover/update-cell.js.map +1 -0
  372. package/cjs/state/hover/update-position.d.ts +2 -0
  373. package/cjs/state/hover/update-position.js +44 -0
  374. package/cjs/state/hover/update-position.js.map +1 -0
  375. package/cjs/state/pin/index.d.ts +2 -0
  376. package/cjs/state/pin/index.js +10 -0
  377. package/cjs/state/pin/index.js.map +1 -0
  378. package/cjs/state/select/update-position.d.ts +4 -0
  379. package/cjs/state/select/update-position.js +111 -0
  380. package/cjs/state/select/update-position.js.map +1 -0
  381. package/cjs/state/sort/index.d.ts +2 -0
  382. package/cjs/state/sort/index.js +41 -0
  383. package/cjs/state/sort/index.js.map +1 -0
  384. package/cjs/state/spark-line/index.d.ts +3 -0
  385. package/cjs/state/spark-line/index.js +98 -0
  386. package/cjs/state/spark-line/index.js.map +1 -0
  387. package/cjs/state/state.d.ts +155 -0
  388. package/cjs/state/state.js +431 -0
  389. package/cjs/state/state.js.map +1 -0
  390. package/cjs/themes/ARCO.d.ts +3 -0
  391. package/cjs/themes/ARCO.js +114 -0
  392. package/cjs/themes/ARCO.js.map +1 -0
  393. package/cjs/themes/BRIGHT.d.ts +3 -0
  394. package/cjs/themes/BRIGHT.js +71 -0
  395. package/cjs/themes/BRIGHT.js.map +1 -0
  396. package/cjs/themes/DARK.d.ts +3 -0
  397. package/cjs/themes/DARK.js +90 -0
  398. package/cjs/themes/DARK.js.map +1 -0
  399. package/cjs/themes/DEFAULT.d.ts +3 -0
  400. package/cjs/themes/DEFAULT.js +89 -0
  401. package/cjs/themes/DEFAULT.js.map +1 -0
  402. package/cjs/themes/SIMPLIFY.d.ts +3 -0
  403. package/cjs/themes/SIMPLIFY.js +46 -0
  404. package/cjs/themes/SIMPLIFY.js.map +1 -0
  405. package/cjs/themes/theme.d.ts +34 -0
  406. package/cjs/themes/theme.js +520 -0
  407. package/cjs/themes/theme.js.map +1 -0
  408. package/cjs/themes.d.ts +28 -0
  409. package/cjs/themes.js +52 -0
  410. package/cjs/themes.js.map +1 -0
  411. package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
  412. package/cjs/tools/LimitPromiseQueue.js +29 -0
  413. package/cjs/tools/LimitPromiseQueue.js.map +1 -0
  414. package/cjs/tools/NumberMap.d.ts +16 -0
  415. package/cjs/tools/NumberMap.js +76 -0
  416. package/cjs/tools/NumberMap.js.map +1 -0
  417. package/cjs/tools/Rect.d.ts +24 -0
  418. package/cjs/tools/Rect.js +69 -0
  419. package/cjs/tools/Rect.js.map +1 -0
  420. package/cjs/tools/calc.d.ts +5 -0
  421. package/cjs/tools/calc.js +197 -0
  422. package/cjs/tools/calc.js.map +1 -0
  423. package/cjs/tools/debounce.d.ts +1 -0
  424. package/cjs/tools/debounce.js +51 -0
  425. package/cjs/tools/debounce.js.map +1 -0
  426. package/cjs/tools/dom.d.ts +1 -0
  427. package/cjs/tools/dom.js +11 -0
  428. package/cjs/tools/dom.js.map +1 -0
  429. package/cjs/tools/env.d.ts +19 -0
  430. package/cjs/tools/env.js +48 -0
  431. package/cjs/tools/env.js.map +1 -0
  432. package/cjs/tools/global.d.ts +13 -0
  433. package/cjs/tools/global.js +12 -0
  434. package/cjs/tools/global.js.map +1 -0
  435. package/cjs/tools/helper.d.ts +60 -0
  436. package/cjs/tools/helper.js +216 -0
  437. package/cjs/tools/helper.js.map +1 -0
  438. package/cjs/tools/icons.d.ts +4 -0
  439. package/cjs/tools/icons.js +10 -0
  440. package/cjs/tools/icons.js.map +1 -0
  441. package/cjs/tools/isx.d.ts +16 -0
  442. package/cjs/tools/isx.js +117 -0
  443. package/cjs/tools/isx.js.map +1 -0
  444. package/cjs/tools/sort.d.ts +1 -0
  445. package/cjs/tools/sort.js +18 -0
  446. package/cjs/tools/sort.js.map +1 -0
  447. package/cjs/tools/style.css +60 -0
  448. package/cjs/tools/style.d.ts +2 -0
  449. package/cjs/tools/style.js +11 -0
  450. package/cjs/tools/style.js.map +1 -0
  451. package/cjs/tools/text-width.d.ts +1 -0
  452. package/cjs/tools/text-width.js +17 -0
  453. package/cjs/tools/text-width.js.map +1 -0
  454. package/cjs/tools/util.d.ts +45 -0
  455. package/cjs/tools/util.js +299 -0
  456. package/cjs/tools/util.js.map +1 -0
  457. package/cjs/tooltip/BaseTooltip.d.ts +22 -0
  458. package/cjs/tooltip/BaseTooltip.js +35 -0
  459. package/cjs/tooltip/BaseTooltip.js.map +1 -0
  460. package/cjs/tooltip/Tooltip.d.ts +5 -0
  461. package/cjs/tooltip/Tooltip.js +16 -0
  462. package/cjs/tooltip/Tooltip.js.map +1 -0
  463. package/cjs/tooltip/TooltipHandler.d.ts +27 -0
  464. package/cjs/tooltip/TooltipHandler.js +129 -0
  465. package/cjs/tooltip/TooltipHandler.js.map +1 -0
  466. package/cjs/tooltip/logic/BubbleTooltipElement.css +63 -0
  467. package/cjs/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
  468. package/cjs/tooltip/logic/BubbleTooltipElement.js +152 -0
  469. package/cjs/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  470. package/cjs/ts-types/base-table.d.ts +313 -0
  471. package/cjs/ts-types/base-table.js +6 -0
  472. package/cjs/ts-types/base-table.js.map +1 -0
  473. package/cjs/ts-types/chartType.d.ts +53 -0
  474. package/cjs/ts-types/chartType.js +6 -0
  475. package/cjs/ts-types/chartType.js.map +1 -0
  476. package/cjs/ts-types/column/index.d.ts +2 -0
  477. package/cjs/ts-types/column/index.js +21 -0
  478. package/cjs/ts-types/column/index.js.map +1 -0
  479. package/cjs/ts-types/column/style.d.ts +78 -0
  480. package/cjs/ts-types/column/style.js +6 -0
  481. package/cjs/ts-types/column/style.js.map +1 -0
  482. package/cjs/ts-types/column/type.d.ts +2 -0
  483. package/cjs/ts-types/column/type.js +6 -0
  484. package/cjs/ts-types/column/type.js.map +1 -0
  485. package/cjs/ts-types/common.d.ts +72 -0
  486. package/cjs/ts-types/common.js +6 -0
  487. package/cjs/ts-types/common.js.map +1 -0
  488. package/cjs/ts-types/customElement.d.ts +111 -0
  489. package/cjs/ts-types/customElement.js +6 -0
  490. package/cjs/ts-types/customElement.js.map +1 -0
  491. package/cjs/ts-types/customLayout.d.ts +8 -0
  492. package/cjs/ts-types/customLayout.js +6 -0
  493. package/cjs/ts-types/customLayout.js.map +1 -0
  494. package/cjs/ts-types/events.d.ts +182 -0
  495. package/cjs/ts-types/events.js +6 -0
  496. package/cjs/ts-types/events.js.map +1 -0
  497. package/cjs/ts-types/icon.d.ts +86 -0
  498. package/cjs/ts-types/icon.js +26 -0
  499. package/cjs/ts-types/icon.js.map +1 -0
  500. package/cjs/ts-types/index.d.ts +15 -0
  501. package/cjs/ts-types/index.js +28 -0
  502. package/cjs/ts-types/index.js.map +1 -0
  503. package/cjs/ts-types/list-table/define/basic-define.d.ts +36 -0
  504. package/cjs/ts-types/list-table/define/basic-define.js +6 -0
  505. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
  506. package/cjs/ts-types/list-table/define/chart-define.d.ts +10 -0
  507. package/cjs/ts-types/list-table/define/chart-define.js +6 -0
  508. package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
  509. package/cjs/ts-types/list-table/define/image-define.d.ts +15 -0
  510. package/cjs/ts-types/list-table/define/image-define.js +6 -0
  511. package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
  512. package/cjs/ts-types/list-table/define/index.d.ts +21 -0
  513. package/cjs/ts-types/list-table/define/index.js +6 -0
  514. package/cjs/ts-types/list-table/define/index.js.map +1 -0
  515. package/cjs/ts-types/list-table/define/link-define.d.ts +17 -0
  516. package/cjs/ts-types/list-table/define/link-define.js +6 -0
  517. package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
  518. package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
  519. package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
  520. package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  521. package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  522. package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
  523. package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
  524. package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  525. package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
  526. package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
  527. package/cjs/ts-types/list-table/index.d.ts +2 -0
  528. package/cjs/ts-types/list-table/index.js +21 -0
  529. package/cjs/ts-types/list-table/index.js.map +1 -0
  530. package/cjs/ts-types/list-table/layout-map/api.d.ts +92 -0
  531. package/cjs/ts-types/list-table/layout-map/api.js +6 -0
  532. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
  533. package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
  534. package/cjs/ts-types/list-table/layout-map/index.js +6 -0
  535. package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
  536. package/cjs/ts-types/menu.d.ts +73 -0
  537. package/cjs/ts-types/menu.js +6 -0
  538. package/cjs/ts-types/menu.js.map +1 -0
  539. package/cjs/ts-types/new-data-set.d.ts +95 -0
  540. package/cjs/ts-types/new-data-set.js +14 -0
  541. package/cjs/ts-types/new-data-set.js.map +1 -0
  542. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
  543. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
  544. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  545. package/cjs/ts-types/pivot-table/corner.d.ts +19 -0
  546. package/cjs/ts-types/pivot-table/corner.js +6 -0
  547. package/cjs/ts-types/pivot-table/corner.js.map +1 -0
  548. package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
  549. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
  550. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  551. package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
  552. package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
  553. package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  554. package/cjs/ts-types/pivot-table/dimension/index.d.ts +4 -0
  555. package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
  556. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
  557. package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
  558. package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
  559. package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  560. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  561. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
  562. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  563. package/cjs/ts-types/pivot-table/index.d.ts +4 -0
  564. package/cjs/ts-types/pivot-table/index.js +22 -0
  565. package/cjs/ts-types/pivot-table/index.js.map +1 -0
  566. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
  567. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
  568. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  569. package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
  570. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
  571. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  572. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
  573. package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
  574. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  575. package/cjs/ts-types/pivot-table/indicator/index.d.ts +10 -0
  576. package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
  577. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
  578. package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
  579. package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
  580. package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  581. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  582. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
  583. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  584. package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  585. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
  586. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  587. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  588. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
  589. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  590. package/cjs/ts-types/pivot-table/title.d.ts +18 -0
  591. package/cjs/ts-types/pivot-table/title.js +6 -0
  592. package/cjs/ts-types/pivot-table/title.js.map +1 -0
  593. package/cjs/ts-types/style-define.d.ts +60 -0
  594. package/cjs/ts-types/style-define.js +6 -0
  595. package/cjs/ts-types/style-define.js.map +1 -0
  596. package/cjs/ts-types/table-engine.d.ts +169 -0
  597. package/cjs/ts-types/table-engine.js +12 -0
  598. package/cjs/ts-types/table-engine.js.map +1 -0
  599. package/cjs/ts-types/theme.d.ts +88 -0
  600. package/cjs/ts-types/theme.js +6 -0
  601. package/cjs/ts-types/theme.js.map +1 -0
  602. package/cjs/ts-types/tooltip.d.ts +22 -0
  603. package/cjs/ts-types/tooltip.js +6 -0
  604. package/cjs/ts-types/tooltip.js.map +1 -0
  605. package/dist/vtable.js +72964 -0
  606. package/dist/vtable.min.js +17 -0
  607. package/es/ListTable.d.ts +38 -0
  608. package/es/ListTable.js +256 -0
  609. package/es/ListTable.js.map +1 -0
  610. package/es/PivotTable.d.ts +50 -0
  611. package/es/PivotTable.js +282 -0
  612. package/es/PivotTable.js.map +1 -0
  613. package/es/body-helper/body-helper.d.ts +14 -0
  614. package/es/body-helper/body-helper.js +80 -0
  615. package/es/body-helper/body-helper.js.map +1 -0
  616. package/es/body-helper/style/ImageStyle.d.ts +7 -0
  617. package/es/body-helper/style/ImageStyle.js +16 -0
  618. package/es/body-helper/style/ImageStyle.js.map +1 -0
  619. package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
  620. package/es/body-helper/style/MultilineTextStyle.js +30 -0
  621. package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
  622. package/es/body-helper/style/NumberStyle.d.ts +7 -0
  623. package/es/body-helper/style/NumberStyle.js +16 -0
  624. package/es/body-helper/style/NumberStyle.js.map +1 -0
  625. package/es/body-helper/style/ProgressBarStyle.d.ts +52 -0
  626. package/es/body-helper/style/ProgressBarStyle.js +118 -0
  627. package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
  628. package/es/body-helper/style/Style.d.ts +85 -0
  629. package/es/body-helper/style/Style.js +194 -0
  630. package/es/body-helper/style/Style.js.map +1 -0
  631. package/es/body-helper/style.d.ts +10 -0
  632. package/es/body-helper/style.js +20 -0
  633. package/es/body-helper/style.js.map +1 -0
  634. package/es/chartType.d.ts +3 -0
  635. package/es/chartType.js +10 -0
  636. package/es/chartType.js.map +1 -0
  637. package/es/core/BaseTable.d.ts +287 -0
  638. package/es/core/BaseTable.js +1281 -0
  639. package/es/core/BaseTable.js.map +1 -0
  640. package/es/core/FouseInput.d.ts +11 -0
  641. package/es/core/FouseInput.js +30 -0
  642. package/es/core/FouseInput.js.map +1 -0
  643. package/es/core/TABLE_EVENT_TYPE.d.ts +30 -0
  644. package/es/core/TABLE_EVENT_TYPE.js +30 -0
  645. package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
  646. package/es/core/tableHelper.d.ts +28 -0
  647. package/es/core/tableHelper.js +107 -0
  648. package/es/core/tableHelper.js.map +1 -0
  649. package/es/core.d.ts +3 -0
  650. package/es/core.js +6 -0
  651. package/es/core.js.map +1 -0
  652. package/es/data/CachedDataSource.d.ts +16 -0
  653. package/es/data/CachedDataSource.js +48 -0
  654. package/es/data/CachedDataSource.js.map +1 -0
  655. package/es/data/DataSource.d.ts +64 -0
  656. package/es/data/DataSource.js +267 -0
  657. package/es/data/DataSource.js.map +1 -0
  658. package/es/data/FilterDataSource.d.ts +1 -0
  659. package/es/data/FilterDataSource.js +1 -0
  660. package/es/data/FilterDataSource.js.map +1 -0
  661. package/es/data.d.ts +4 -0
  662. package/es/data.js +6 -0
  663. package/es/data.js.map +1 -0
  664. package/es/dataset/DataStatistics.d.ts +10 -0
  665. package/es/dataset/DataStatistics.js +74 -0
  666. package/es/dataset/DataStatistics.js.map +1 -0
  667. package/es/dataset/dataset.d.ts +72 -0
  668. package/es/dataset/dataset.js +482 -0
  669. package/es/dataset/dataset.js.map +1 -0
  670. package/es/dataset/flatDataToObject.d.ts +31 -0
  671. package/es/dataset/flatDataToObject.js +63 -0
  672. package/es/dataset/flatDataToObject.js.map +1 -0
  673. package/es/event/EventHandler.d.ts +45 -0
  674. package/es/event/EventHandler.js +111 -0
  675. package/es/event/EventHandler.js.map +1 -0
  676. package/es/event/EventTarget.d.ts +11 -0
  677. package/es/event/EventTarget.js +50 -0
  678. package/es/event/EventTarget.js.map +1 -0
  679. package/es/event/chart.d.ts +2 -0
  680. package/es/event/chart.js +16 -0
  681. package/es/event/chart.js.map +1 -0
  682. package/es/event/drill.d.ts +3 -0
  683. package/es/event/drill.js +17 -0
  684. package/es/event/drill.js.map +1 -0
  685. package/es/event/event.d.ts +35 -0
  686. package/es/event/event.js +438 -0
  687. package/es/event/event.js.map +1 -0
  688. package/es/event/media-click.d.ts +2 -0
  689. package/es/event/media-click.js +54 -0
  690. package/es/event/media-click.js.map +1 -0
  691. package/es/event/scroll.d.ts +2 -0
  692. package/es/event/scroll.js +17 -0
  693. package/es/event/scroll.js.map +1 -0
  694. package/es/header-helper/header-helper.d.ts +26 -0
  695. package/es/header-helper/header-helper.js +189 -0
  696. package/es/header-helper/header-helper.js.map +1 -0
  697. package/es/header-helper/style/ImageStyle.d.ts +7 -0
  698. package/es/header-helper/style/ImageStyle.js +17 -0
  699. package/es/header-helper/style/ImageStyle.js.map +1 -0
  700. package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  701. package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
  702. package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  703. package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
  704. package/es/header-helper/style/SortHeaderStyle.js +3 -0
  705. package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
  706. package/es/header-helper/style/Style.d.ts +88 -0
  707. package/es/header-helper/style/Style.js +202 -0
  708. package/es/header-helper/style/Style.js.map +1 -0
  709. package/es/header-helper/style.d.ts +5 -0
  710. package/es/header-helper/style.js +14 -0
  711. package/es/header-helper/style.js.map +1 -0
  712. package/es/icons.d.ts +4 -0
  713. package/es/icons.js +241 -0
  714. package/es/icons.js.map +1 -0
  715. package/es/index.d.ts +17 -0
  716. package/es/index.js +34 -0
  717. package/es/index.js.map +1 -0
  718. package/es/layout/index.d.ts +1 -0
  719. package/es/layout/index.js +2 -0
  720. package/es/layout/index.js.map +1 -0
  721. package/es/layout/pivot-header-layout.d.ts +155 -0
  722. package/es/layout/pivot-header-layout.js +888 -0
  723. package/es/layout/pivot-header-layout.js.map +1 -0
  724. package/es/layout/pivot-layout.d.ts +86 -0
  725. package/es/layout/pivot-layout.js +416 -0
  726. package/es/layout/pivot-layout.js.map +1 -0
  727. package/es/layout/simple-header-layout.d.ts +67 -0
  728. package/es/layout/simple-header-layout.js +405 -0
  729. package/es/layout/simple-header-layout.js.map +1 -0
  730. package/es/menu/dom/BaseMenu.d.ts +15 -0
  731. package/es/menu/dom/BaseMenu.js +22 -0
  732. package/es/menu/dom/BaseMenu.js.map +1 -0
  733. package/es/menu/dom/Menu.d.ts +9 -0
  734. package/es/menu/dom/Menu.js +18 -0
  735. package/es/menu/dom/Menu.js.map +1 -0
  736. package/es/menu/dom/MenuHandler.d.ts +20 -0
  737. package/es/menu/dom/MenuHandler.js +132 -0
  738. package/es/menu/dom/MenuHandler.js.map +1 -0
  739. package/es/menu/dom/logic/MenuContainer.d.ts +22 -0
  740. package/es/menu/dom/logic/MenuContainer.js +105 -0
  741. package/es/menu/dom/logic/MenuContainer.js.map +1 -0
  742. package/es/menu/dom/logic/MenuElement.css +86 -0
  743. package/es/menu/dom/logic/MenuElement.d.ts +27 -0
  744. package/es/menu/dom/logic/MenuElement.js +277 -0
  745. package/es/menu/dom/logic/MenuElement.js.map +1 -0
  746. package/es/plugins/chartTypes.d.ts +3 -0
  747. package/es/plugins/chartTypes.js +2 -0
  748. package/es/plugins/chartTypes.js.map +1 -0
  749. package/es/plugins/icons.d.ts +12 -0
  750. package/es/plugins/icons.js +22 -0
  751. package/es/plugins/icons.js.map +1 -0
  752. package/es/plugins/themes.d.ts +4 -0
  753. package/es/plugins/themes.js +2 -0
  754. package/es/plugins/themes.js.map +1 -0
  755. package/es/register.d.ts +5 -0
  756. package/es/register.js +31 -0
  757. package/es/register.js.map +1 -0
  758. package/es/render/layout/arc.d.ts +23 -0
  759. package/es/render/layout/arc.js +12 -0
  760. package/es/render/layout/arc.js.map +1 -0
  761. package/es/render/layout/circle.d.ts +19 -0
  762. package/es/render/layout/circle.js +11 -0
  763. package/es/render/layout/circle.js.map +1 -0
  764. package/es/render/layout/container.d.ts +52 -0
  765. package/es/render/layout/container.js +99 -0
  766. package/es/render/layout/container.js.map +1 -0
  767. package/es/render/layout/direction.d.ts +22 -0
  768. package/es/render/layout/direction.js +31 -0
  769. package/es/render/layout/direction.js.map +1 -0
  770. package/es/render/layout/element.d.ts +47 -0
  771. package/es/render/layout/element.js +19 -0
  772. package/es/render/layout/element.js.map +1 -0
  773. package/es/render/layout/group-element.d.ts +25 -0
  774. package/es/render/layout/group-element.js +46 -0
  775. package/es/render/layout/group-element.js.map +1 -0
  776. package/es/render/layout/icon.d.ts +21 -0
  777. package/es/render/layout/icon.js +19 -0
  778. package/es/render/layout/icon.js.map +1 -0
  779. package/es/render/layout/image.d.ts +21 -0
  780. package/es/render/layout/image.js +12 -0
  781. package/es/render/layout/image.js.map +1 -0
  782. package/es/render/layout/index.d.ts +9 -0
  783. package/es/render/layout/index.js +18 -0
  784. package/es/render/layout/index.js.map +1 -0
  785. package/es/render/layout/line.d.ts +32 -0
  786. package/es/render/layout/line.js +80 -0
  787. package/es/render/layout/line.js.map +1 -0
  788. package/es/render/layout/percent-calc.d.ts +8 -0
  789. package/es/render/layout/percent-calc.js +7 -0
  790. package/es/render/layout/percent-calc.js.map +1 -0
  791. package/es/render/layout/rect.d.ts +22 -0
  792. package/es/render/layout/rect.js +11 -0
  793. package/es/render/layout/rect.js.map +1 -0
  794. package/es/render/layout/text.d.ts +22 -0
  795. package/es/render/layout/text.js +18 -0
  796. package/es/render/layout/text.js.map +1 -0
  797. package/es/scenegraph/component/cell-content.d.ts +36 -0
  798. package/es/scenegraph/component/cell-content.js +98 -0
  799. package/es/scenegraph/component/cell-content.js.map +1 -0
  800. package/es/scenegraph/component/cell-mover.d.ts +15 -0
  801. package/es/scenegraph/component/cell-mover.js +101 -0
  802. package/es/scenegraph/component/cell-mover.js.map +1 -0
  803. package/es/scenegraph/component/custom.d.ts +7 -0
  804. package/es/scenegraph/component/custom.js +211 -0
  805. package/es/scenegraph/component/custom.js.map +1 -0
  806. package/es/scenegraph/component/drill-icon.d.ts +9 -0
  807. package/es/scenegraph/component/drill-icon.js +41 -0
  808. package/es/scenegraph/component/drill-icon.js.map +1 -0
  809. package/es/scenegraph/component/menu.d.ts +41 -0
  810. package/es/scenegraph/component/menu.js +212 -0
  811. package/es/scenegraph/component/menu.js.map +1 -0
  812. package/es/scenegraph/component/table-component.d.ts +37 -0
  813. package/es/scenegraph/component/table-component.js +304 -0
  814. package/es/scenegraph/component/table-component.js.map +1 -0
  815. package/es/scenegraph/component/util.d.ts +2 -0
  816. package/es/scenegraph/component/util.js +5 -0
  817. package/es/scenegraph/component/util.js.map +1 -0
  818. package/es/scenegraph/debug-tool/debug-tool.d.ts +36 -0
  819. package/es/scenegraph/debug-tool/debug-tool.js +126 -0
  820. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
  821. package/es/scenegraph/debug-tool/index.d.ts +4 -0
  822. package/es/scenegraph/debug-tool/index.js +6 -0
  823. package/es/scenegraph/debug-tool/index.js.map +1 -0
  824. package/es/scenegraph/graphic/chart.d.ts +30 -0
  825. package/es/scenegraph/graphic/chart.js +59 -0
  826. package/es/scenegraph/graphic/chart.js.map +1 -0
  827. package/es/scenegraph/graphic/contributions/chart-render.d.ts +10 -0
  828. package/es/scenegraph/graphic/contributions/chart-render.js +47 -0
  829. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  830. package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +70 -0
  831. package/es/scenegraph/graphic/contributions/group-contribution-render.js +192 -0
  832. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  833. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +20 -0
  834. package/es/scenegraph/graphic/contributions/image-contribution-render.js +42 -0
  835. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  836. package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
  837. package/es/scenegraph/graphic/contributions/index.js +29 -0
  838. package/es/scenegraph/graphic/contributions/index.js.map +1 -0
  839. package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +17 -0
  840. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +45 -0
  841. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  842. package/es/scenegraph/graphic/group.d.ts +23 -0
  843. package/es/scenegraph/graphic/group.js +86 -0
  844. package/es/scenegraph/graphic/group.js.map +1 -0
  845. package/es/scenegraph/graphic/icon.d.ts +24 -0
  846. package/es/scenegraph/graphic/icon.js +17 -0
  847. package/es/scenegraph/graphic/icon.js.map +1 -0
  848. package/es/scenegraph/graphic/text.d.ts +16 -0
  849. package/es/scenegraph/graphic/text.js +142 -0
  850. package/es/scenegraph/graphic/text.js.map +1 -0
  851. package/es/scenegraph/group-creater/cell-helper.d.ts +7 -0
  852. package/es/scenegraph/group-creater/cell-helper.js +93 -0
  853. package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
  854. package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +3 -0
  855. package/es/scenegraph/group-creater/cell-type/chart-cell.js +54 -0
  856. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  857. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +7 -0
  858. package/es/scenegraph/group-creater/cell-type/image-cell.js +102 -0
  859. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  860. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +9 -0
  861. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +337 -0
  862. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  863. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +3 -0
  864. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +165 -0
  865. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  866. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +5 -0
  867. package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  868. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  869. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +4 -0
  870. package/es/scenegraph/group-creater/cell-type/video-cell.js +86 -0
  871. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  872. package/es/scenegraph/group-creater/column-helper.d.ts +24 -0
  873. package/es/scenegraph/group-creater/column-helper.js +135 -0
  874. package/es/scenegraph/group-creater/column-helper.js.map +1 -0
  875. package/es/scenegraph/group-creater/column.d.ts +14 -0
  876. package/es/scenegraph/group-creater/column.js +49 -0
  877. package/es/scenegraph/group-creater/column.js.map +1 -0
  878. package/es/scenegraph/group-creater/progress/proxy.d.ts +45 -0
  879. package/es/scenegraph/group-creater/progress/proxy.js +268 -0
  880. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
  881. package/es/scenegraph/header-icon/layout.d.ts +3 -0
  882. package/es/scenegraph/header-icon/layout.js +69 -0
  883. package/es/scenegraph/header-icon/layout.js.map +1 -0
  884. package/es/scenegraph/hover-state.d.ts +14 -0
  885. package/es/scenegraph/hover-state.js +19 -0
  886. package/es/scenegraph/hover-state.js.map +1 -0
  887. package/es/scenegraph/layout/auto-height.d.ts +2 -0
  888. package/es/scenegraph/layout/auto-height.js +44 -0
  889. package/es/scenegraph/layout/auto-height.js.map +1 -0
  890. package/es/scenegraph/layout/auto-width.d.ts +2 -0
  891. package/es/scenegraph/layout/auto-width.js +82 -0
  892. package/es/scenegraph/layout/auto-width.js.map +1 -0
  893. package/es/scenegraph/layout/compute-col-width.d.ts +3 -0
  894. package/es/scenegraph/layout/compute-col-width.js +167 -0
  895. package/es/scenegraph/layout/compute-col-width.js.map +1 -0
  896. package/es/scenegraph/layout/move-cell.d.ts +2 -0
  897. package/es/scenegraph/layout/move-cell.js +55 -0
  898. package/es/scenegraph/layout/move-cell.js.map +1 -0
  899. package/es/scenegraph/layout/update-cell.d.ts +3 -0
  900. package/es/scenegraph/layout/update-cell.js +55 -0
  901. package/es/scenegraph/layout/update-cell.js.map +1 -0
  902. package/es/scenegraph/layout/update-height.d.ts +6 -0
  903. package/es/scenegraph/layout/update-height.js +91 -0
  904. package/es/scenegraph/layout/update-height.js.map +1 -0
  905. package/es/scenegraph/layout/update-width.d.ts +2 -0
  906. package/es/scenegraph/layout/update-width.js +105 -0
  907. package/es/scenegraph/layout/update-width.js.map +1 -0
  908. package/es/scenegraph/scenegraph.d.ts +109 -0
  909. package/es/scenegraph/scenegraph.js +818 -0
  910. package/es/scenegraph/scenegraph.js.map +1 -0
  911. package/es/scenegraph/style/frame-border.d.ts +3 -0
  912. package/es/scenegraph/style/frame-border.js +35 -0
  913. package/es/scenegraph/style/frame-border.js.map +1 -0
  914. package/es/scenegraph/utils/border-line.d.ts +8 -0
  915. package/es/scenegraph/utils/border-line.js +45 -0
  916. package/es/scenegraph/utils/border-line.js.map +1 -0
  917. package/es/scenegraph/utils/break-string.d.ts +1 -0
  918. package/es/scenegraph/utils/break-string.js +31 -0
  919. package/es/scenegraph/utils/break-string.js.map +1 -0
  920. package/es/scenegraph/utils/cell-pos.d.ts +4 -0
  921. package/es/scenegraph/utils/cell-pos.js +12 -0
  922. package/es/scenegraph/utils/cell-pos.js.map +1 -0
  923. package/es/scenegraph/utils/font.d.ts +1 -0
  924. package/es/scenegraph/utils/font.js +6 -0
  925. package/es/scenegraph/utils/font.js.map +1 -0
  926. package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
  927. package/es/scenegraph/utils/get-cell-merge.js +5 -0
  928. package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
  929. package/es/scenegraph/utils/get-prop.d.ts +4 -0
  930. package/es/scenegraph/utils/get-prop.js +36 -0
  931. package/es/scenegraph/utils/get-prop.js.map +1 -0
  932. package/es/scenegraph/utils/icon.d.ts +12 -0
  933. package/es/scenegraph/utils/icon.js +29 -0
  934. package/es/scenegraph/utils/icon.js.map +1 -0
  935. package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  936. package/es/scenegraph/utils/keep-aspect-ratio.js +10 -0
  937. package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  938. package/es/scenegraph/utils/measure-text.d.ts +20 -0
  939. package/es/scenegraph/utils/measure-text.js +114 -0
  940. package/es/scenegraph/utils/measure-text.js.map +1 -0
  941. package/es/scenegraph/utils/padding.d.ts +1 -0
  942. package/es/scenegraph/utils/padding.js +8 -0
  943. package/es/scenegraph/utils/padding.js.map +1 -0
  944. package/es/scenegraph/utils/text-icon-layout.d.ts +9 -0
  945. package/es/scenegraph/utils/text-icon-layout.js +239 -0
  946. package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
  947. package/es/scenegraph/utils/text-pos.d.ts +8 -0
  948. package/es/scenegraph/utils/text-pos.js +20 -0
  949. package/es/scenegraph/utils/text-pos.js.map +1 -0
  950. package/es/state/cell-move/adjust-header.d.ts +3 -0
  951. package/es/state/cell-move/adjust-header.js +14 -0
  952. package/es/state/cell-move/adjust-header.js.map +1 -0
  953. package/es/state/cell-move/index.d.ts +4 -0
  954. package/es/state/cell-move/index.js +52 -0
  955. package/es/state/cell-move/index.js.map +1 -0
  956. package/es/state/common/check-in-select.d.ts +8 -0
  957. package/es/state/common/check-in-select.js +53 -0
  958. package/es/state/common/check-in-select.js.map +1 -0
  959. package/es/state/drill/index.d.ts +2 -0
  960. package/es/state/drill/index.js +9 -0
  961. package/es/state/drill/index.js.map +1 -0
  962. package/es/state/hover/col.d.ts +5 -0
  963. package/es/state/hover/col.js +16 -0
  964. package/es/state/hover/col.js.map +1 -0
  965. package/es/state/hover/is-cell-hover.d.ts +5 -0
  966. package/es/state/hover/is-cell-hover.js +30 -0
  967. package/es/state/hover/is-cell-hover.js.map +1 -0
  968. package/es/state/hover/row.d.ts +5 -0
  969. package/es/state/hover/row.js +14 -0
  970. package/es/state/hover/row.js.map +1 -0
  971. package/es/state/hover/single.d.ts +5 -0
  972. package/es/state/hover/single.js +10 -0
  973. package/es/state/hover/single.js.map +1 -0
  974. package/es/state/hover/update-cell.d.ts +2 -0
  975. package/es/state/hover/update-cell.js +7 -0
  976. package/es/state/hover/update-cell.js.map +1 -0
  977. package/es/state/hover/update-position.d.ts +2 -0
  978. package/es/state/hover/update-position.js +36 -0
  979. package/es/state/hover/update-position.js.map +1 -0
  980. package/es/state/pin/index.d.ts +2 -0
  981. package/es/state/pin/index.js +4 -0
  982. package/es/state/pin/index.js.map +1 -0
  983. package/es/state/select/update-position.d.ts +4 -0
  984. package/es/state/select/update-position.js +103 -0
  985. package/es/state/select/update-position.js.map +1 -0
  986. package/es/state/sort/index.d.ts +2 -0
  987. package/es/state/sort/index.js +35 -0
  988. package/es/state/sort/index.js.map +1 -0
  989. package/es/state/spark-line/index.d.ts +3 -0
  990. package/es/state/spark-line/index.js +92 -0
  991. package/es/state/spark-line/index.js.map +1 -0
  992. package/es/state/state.d.ts +155 -0
  993. package/es/state/state.js +458 -0
  994. package/es/state/state.js.map +1 -0
  995. package/es/themes/ARCO.d.ts +3 -0
  996. package/es/themes/ARCO.js +110 -0
  997. package/es/themes/ARCO.js.map +1 -0
  998. package/es/themes/BRIGHT.d.ts +3 -0
  999. package/es/themes/BRIGHT.js +67 -0
  1000. package/es/themes/BRIGHT.js.map +1 -0
  1001. package/es/themes/DARK.d.ts +3 -0
  1002. package/es/themes/DARK.js +86 -0
  1003. package/es/themes/DARK.js.map +1 -0
  1004. package/es/themes/DEFAULT.d.ts +3 -0
  1005. package/es/themes/DEFAULT.js +85 -0
  1006. package/es/themes/DEFAULT.js.map +1 -0
  1007. package/es/themes/SIMPLIFY.d.ts +3 -0
  1008. package/es/themes/SIMPLIFY.js +42 -0
  1009. package/es/themes/SIMPLIFY.js.map +1 -0
  1010. package/es/themes/theme.d.ts +34 -0
  1011. package/es/themes/theme.js +505 -0
  1012. package/es/themes/theme.js.map +1 -0
  1013. package/es/themes.d.ts +28 -0
  1014. package/es/themes.js +62 -0
  1015. package/es/themes.js.map +1 -0
  1016. package/es/tools/LimitPromiseQueue.d.ts +8 -0
  1017. package/es/tools/LimitPromiseQueue.js +21 -0
  1018. package/es/tools/LimitPromiseQueue.js.map +1 -0
  1019. package/es/tools/NumberMap.d.ts +16 -0
  1020. package/es/tools/NumberMap.js +70 -0
  1021. package/es/tools/NumberMap.js.map +1 -0
  1022. package/es/tools/Rect.d.ts +24 -0
  1023. package/es/tools/Rect.js +61 -0
  1024. package/es/tools/Rect.js.map +1 -0
  1025. package/es/tools/calc.d.ts +5 -0
  1026. package/es/tools/calc.js +191 -0
  1027. package/es/tools/calc.js.map +1 -0
  1028. package/es/tools/debounce.d.ts +1 -0
  1029. package/es/tools/debounce.js +43 -0
  1030. package/es/tools/debounce.js.map +1 -0
  1031. package/es/tools/dom.d.ts +1 -0
  1032. package/es/tools/dom.js +5 -0
  1033. package/es/tools/dom.js.map +1 -0
  1034. package/es/tools/env.d.ts +19 -0
  1035. package/es/tools/env.js +42 -0
  1036. package/es/tools/env.js.map +1 -0
  1037. package/es/tools/global.d.ts +13 -0
  1038. package/es/tools/global.js +26 -0
  1039. package/es/tools/global.js.map +1 -0
  1040. package/es/tools/helper.d.ts +60 -0
  1041. package/es/tools/helper.js +216 -0
  1042. package/es/tools/helper.js.map +1 -0
  1043. package/es/tools/icons.d.ts +4 -0
  1044. package/es/tools/icons.js +4 -0
  1045. package/es/tools/icons.js.map +1 -0
  1046. package/es/tools/isx.d.ts +16 -0
  1047. package/es/tools/isx.js +79 -0
  1048. package/es/tools/isx.js.map +1 -0
  1049. package/es/tools/sort.d.ts +1 -0
  1050. package/es/tools/sort.js +12 -0
  1051. package/es/tools/sort.js.map +1 -0
  1052. package/es/tools/style.css +60 -0
  1053. package/es/tools/style.d.ts +2 -0
  1054. package/es/tools/style.js +5 -0
  1055. package/es/tools/style.js.map +1 -0
  1056. package/es/tools/text-width.d.ts +1 -0
  1057. package/es/tools/text-width.js +9 -0
  1058. package/es/tools/text-width.js.map +1 -0
  1059. package/es/tools/util.d.ts +45 -0
  1060. package/es/tools/util.js +250 -0
  1061. package/es/tools/util.js.map +1 -0
  1062. package/es/tooltip/BaseTooltip.d.ts +22 -0
  1063. package/es/tooltip/BaseTooltip.js +27 -0
  1064. package/es/tooltip/BaseTooltip.js.map +1 -0
  1065. package/es/tooltip/Tooltip.d.ts +5 -0
  1066. package/es/tooltip/Tooltip.js +10 -0
  1067. package/es/tooltip/Tooltip.js.map +1 -0
  1068. package/es/tooltip/TooltipHandler.d.ts +27 -0
  1069. package/es/tooltip/TooltipHandler.js +131 -0
  1070. package/es/tooltip/TooltipHandler.js.map +1 -0
  1071. package/es/tooltip/logic/BubbleTooltipElement.css +63 -0
  1072. package/es/tooltip/logic/BubbleTooltipElement.d.ts +33 -0
  1073. package/es/tooltip/logic/BubbleTooltipElement.js +149 -0
  1074. package/es/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  1075. package/es/ts-types/base-table.d.ts +313 -0
  1076. package/es/ts-types/base-table.js +2 -0
  1077. package/es/ts-types/base-table.js.map +1 -0
  1078. package/es/ts-types/chartType.d.ts +53 -0
  1079. package/es/ts-types/chartType.js +2 -0
  1080. package/es/ts-types/chartType.js.map +1 -0
  1081. package/es/ts-types/column/index.d.ts +2 -0
  1082. package/es/ts-types/column/index.js +4 -0
  1083. package/es/ts-types/column/index.js.map +1 -0
  1084. package/es/ts-types/column/style.d.ts +78 -0
  1085. package/es/ts-types/column/style.js +2 -0
  1086. package/es/ts-types/column/style.js.map +1 -0
  1087. package/es/ts-types/column/type.d.ts +2 -0
  1088. package/es/ts-types/column/type.js +2 -0
  1089. package/es/ts-types/column/type.js.map +1 -0
  1090. package/es/ts-types/common.d.ts +72 -0
  1091. package/es/ts-types/common.js +2 -0
  1092. package/es/ts-types/common.js.map +1 -0
  1093. package/es/ts-types/customElement.d.ts +111 -0
  1094. package/es/ts-types/customElement.js +2 -0
  1095. package/es/ts-types/customElement.js.map +1 -0
  1096. package/es/ts-types/customLayout.d.ts +8 -0
  1097. package/es/ts-types/customLayout.js +2 -0
  1098. package/es/ts-types/customLayout.js.map +1 -0
  1099. package/es/ts-types/events.d.ts +182 -0
  1100. package/es/ts-types/events.js +2 -0
  1101. package/es/ts-types/events.js.map +1 -0
  1102. package/es/ts-types/icon.d.ts +86 -0
  1103. package/es/ts-types/icon.js +28 -0
  1104. package/es/ts-types/icon.js.map +1 -0
  1105. package/es/ts-types/index.d.ts +15 -0
  1106. package/es/ts-types/index.js +30 -0
  1107. package/es/ts-types/index.js.map +1 -0
  1108. package/es/ts-types/list-table/define/basic-define.d.ts +36 -0
  1109. package/es/ts-types/list-table/define/basic-define.js +2 -0
  1110. package/es/ts-types/list-table/define/basic-define.js.map +1 -0
  1111. package/es/ts-types/list-table/define/chart-define.d.ts +10 -0
  1112. package/es/ts-types/list-table/define/chart-define.js +2 -0
  1113. package/es/ts-types/list-table/define/chart-define.js.map +1 -0
  1114. package/es/ts-types/list-table/define/image-define.d.ts +15 -0
  1115. package/es/ts-types/list-table/define/image-define.js +2 -0
  1116. package/es/ts-types/list-table/define/image-define.js.map +1 -0
  1117. package/es/ts-types/list-table/define/index.d.ts +21 -0
  1118. package/es/ts-types/list-table/define/index.js +2 -0
  1119. package/es/ts-types/list-table/define/index.js.map +1 -0
  1120. package/es/ts-types/list-table/define/link-define.d.ts +17 -0
  1121. package/es/ts-types/list-table/define/link-define.js +2 -0
  1122. package/es/ts-types/list-table/define/link-define.js.map +1 -0
  1123. package/es/ts-types/list-table/define/multilinetext-define.d.ts +12 -0
  1124. package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
  1125. package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  1126. package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  1127. package/es/ts-types/list-table/define/progressbar-define.js +2 -0
  1128. package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
  1129. package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  1130. package/es/ts-types/list-table/define/sparkline-define.js +2 -0
  1131. package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
  1132. package/es/ts-types/list-table/index.d.ts +2 -0
  1133. package/es/ts-types/list-table/index.js +4 -0
  1134. package/es/ts-types/list-table/index.js.map +1 -0
  1135. package/es/ts-types/list-table/layout-map/api.d.ts +92 -0
  1136. package/es/ts-types/list-table/layout-map/api.js +2 -0
  1137. package/es/ts-types/list-table/layout-map/api.js.map +1 -0
  1138. package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
  1139. package/es/ts-types/list-table/layout-map/index.js +2 -0
  1140. package/es/ts-types/list-table/layout-map/index.js.map +1 -0
  1141. package/es/ts-types/menu.d.ts +73 -0
  1142. package/es/ts-types/menu.js +2 -0
  1143. package/es/ts-types/menu.js.map +1 -0
  1144. package/es/ts-types/new-data-set.d.ts +95 -0
  1145. package/es/ts-types/new-data-set.js +13 -0
  1146. package/es/ts-types/new-data-set.js.map +1 -0
  1147. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +6 -0
  1148. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +9 -0
  1149. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  1150. package/es/ts-types/pivot-table/corner.d.ts +19 -0
  1151. package/es/ts-types/pivot-table/corner.js +2 -0
  1152. package/es/ts-types/pivot-table/corner.js.map +1 -0
  1153. package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +25 -0
  1154. package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
  1155. package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  1156. package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +9 -0
  1157. package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
  1158. package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  1159. package/es/ts-types/pivot-table/dimension/index.d.ts +4 -0
  1160. package/es/ts-types/pivot-table/dimension/index.js +2 -0
  1161. package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
  1162. package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +10 -0
  1163. package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
  1164. package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  1165. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  1166. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
  1167. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  1168. package/es/ts-types/pivot-table/index.d.ts +4 -0
  1169. package/es/ts-types/pivot-table/index.js +8 -0
  1170. package/es/ts-types/pivot-table/index.js.map +1 -0
  1171. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +26 -0
  1172. package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
  1173. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  1174. package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +10 -0
  1175. package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
  1176. package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  1177. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +15 -0
  1178. package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
  1179. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  1180. package/es/ts-types/pivot-table/indicator/index.d.ts +10 -0
  1181. package/es/ts-types/pivot-table/indicator/index.js +2 -0
  1182. package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
  1183. package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +17 -0
  1184. package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
  1185. package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  1186. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  1187. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
  1188. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  1189. package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  1190. package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
  1191. package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  1192. package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  1193. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
  1194. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  1195. package/es/ts-types/pivot-table/title.d.ts +18 -0
  1196. package/es/ts-types/pivot-table/title.js +2 -0
  1197. package/es/ts-types/pivot-table/title.js.map +1 -0
  1198. package/es/ts-types/style-define.d.ts +60 -0
  1199. package/es/ts-types/style-define.js +2 -0
  1200. package/es/ts-types/style-define.js.map +1 -0
  1201. package/es/ts-types/table-engine.d.ts +169 -0
  1202. package/es/ts-types/table-engine.js +12 -0
  1203. package/es/ts-types/table-engine.js.map +1 -0
  1204. package/es/ts-types/theme.d.ts +88 -0
  1205. package/es/ts-types/theme.js +2 -0
  1206. package/es/ts-types/theme.js.map +1 -0
  1207. package/es/ts-types/tooltip.d.ts +22 -0
  1208. package/es/ts-types/tooltip.js +2 -0
  1209. package/es/ts-types/tooltip.js.map +1 -0
  1210. package/package.json +95 -0
@@ -0,0 +1,1272 @@
1
+ "use strict";
2
+
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function(o, m, k, k2) {
4
+ void 0 === k2 && (k2 = k);
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ desc && !("get" in desc ? !m.__esModule : desc.writable || desc.configurable) || (desc = {
7
+ enumerable: !0,
8
+ get: function() {
9
+ return m[k];
10
+ }
11
+ }), Object.defineProperty(o, k2, desc);
12
+ } : function(o, m, k, k2) {
13
+ void 0 === k2 && (k2 = k), o[k2] = m[k];
14
+ }), __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function(o, v) {
15
+ Object.defineProperty(o, "default", {
16
+ enumerable: !0,
17
+ value: v
18
+ });
19
+ } : function(o, v) {
20
+ o.default = v;
21
+ }), __importStar = this && this.__importStar || function(mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k);
25
+ return __setModuleDefault(result, mod), result;
26
+ }, __importDefault = this && this.__importDefault || function(mod) {
27
+ return mod && mod.__esModule ? mod : {
28
+ default: mod
29
+ };
30
+ };
31
+
32
+ Object.defineProperty(exports, "__esModule", {
33
+ value: !0
34
+ }), exports.BaseTable = void 0;
35
+
36
+ const columnStyleContents = __importStar(require("../body-helper/style")), headerStyleContents = __importStar(require("../header-helper/style"));
37
+
38
+ require("../tools/style.css");
39
+
40
+ const style = __importStar(require("../tools/style")), helper_1 = require("../tools/helper"), TABLE_EVENT_TYPE_1 = require("./TABLE_EVENT_TYPE"), EventHandler_1 = require("../event/EventHandler"), EventTarget_1 = require("../event/EventTarget"), NumberMap_1 = require("../tools/NumberMap"), Rect_1 = require("../tools/Rect"), util_1 = require("../tools/util"), themes_1 = __importDefault(require("../themes")), env_1 = require("../tools/env"), scenegraph_1 = require("../scenegraph/scenegraph"), state_1 = require("../state/state"), event_1 = require("../event/event"), body_helper_1 = require("../body-helper/body-helper"), header_helper_1 = require("../header-helper/header-helper"), TooltipHandler_1 = require("../tooltip/TooltipHandler"), text_1 = require("../scenegraph/graphic/text"), measure_text_1 = require("../scenegraph/utils/measure-text"), column_helper_1 = require("../scenegraph/group-creater/column-helper"), get_prop_1 = require("../scenegraph/utils/get-prop"), icons_1 = require("../plugins/icons"), tableHelper_1 = require("./tableHelper"), MenuHandler_1 = require("../menu/dom/MenuHandler"), FouseInput_1 = require("./FouseInput"), {toBoxArray: toBoxArray} = helper_1.style, {isTouchEvent: isTouchEvent} = helper_1.event, rangeReg = /^\$(\d+)\$(\d+)$/;
41
+
42
+ class BaseTable extends EventTarget_1.EventTarget {
43
+ static get EVENT_TYPE() {
44
+ return TABLE_EVENT_TYPE_1.TABLE_EVENT_TYPE;
45
+ }
46
+ constructor(options = {}) {
47
+ var _a, _b, _c, _d, _e, _f, _g, _h;
48
+ super(), this.showPin = !0, this.showSort = !0, this.id = `VTable${Date.now()}`,
49
+ this.throttleInvalidate = (0, util_1.throttle2)(this.invalidate.bind(this), 200);
50
+ const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", keyboardOptions: keyboardOptions, parentElement: parentElement, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showPin: showPin, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = 1} = options;
51
+ this.options = options, this._widthMode = widthMode, this.customRender = customRender,
52
+ this.padding = {
53
+ top: 0,
54
+ right: 0,
55
+ left: 0,
56
+ bottom: 0
57
+ }, padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
58
+ this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
59
+ padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
60
+ padding.right && (this.padding.right = padding.right))), this.tableNoFrameWidth = 0,
61
+ this.tableNoFrameHeight = 0;
62
+ const internalProps = this.internalProps = {};
63
+ void 0 !== showPin && (this.showPin = showPin), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showPin = !1),
64
+ internalProps.autoRowHeight = null !== (_a = options.autoRowHeight) && void 0 !== _a && _a,
65
+ internalProps.handler = new EventHandler_1.EventHandler, internalProps.element = (0,
66
+ tableHelper_1.createRootElement)(this.padding), internalProps.focusControl = new FouseInput_1.FocusInput(this, internalProps.element),
67
+ internalProps.pixelRatio = pixelRatio, internalProps.canvas = document.createElement("canvas"),
68
+ internalProps.element.appendChild(internalProps.canvas), internalProps.context = internalProps.canvas.getContext("2d"),
69
+ internalProps.frozenColCount = frozenColCount, internalProps.defaultRowHeight = defaultRowHeight,
70
+ internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
71
+ internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
72
+ internalProps.keyboardOptions = keyboardOptions, internalProps.columnResizeMode = columnResizeMode,
73
+ internalProps.dragHeaderMode = dragHeaderMode, internalProps._rowHeightsMap = new NumberMap_1.NumberMap,
74
+ internalProps._rowRangeHeightsMap = new Map, internalProps._colRangeWidthsMap = new Map,
75
+ this.colWidthsMap = new NumberMap_1.NumberMap, this.colContentWidthsMap = new NumberMap_1.NumberMap,
76
+ this.colWidthsLimit = {}, internalProps.calcWidthContext = {
77
+ _: internalProps,
78
+ get full() {
79
+ var _a;
80
+ return this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
81
+ }
82
+ }, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes_1.default.of(null !== (_b = options.theme) && void 0 !== _b ? _b : themes_1.default.DEFAULT),
83
+ parentElement ? (parentElement.innerHTML = "", parentElement.appendChild(internalProps.element),
84
+ this._updateSize()) : this._updateSize(), this._cellToBeInvalidatedNextFrame = new Set,
85
+ this._willNextFrameInvalidate = !1, this.options = options, internalProps.theme = themes_1.default.of(null !== (_c = options.theme) && void 0 !== _c ? _c : themes_1.default.DEFAULT),
86
+ internalProps.bodyHelper = new body_helper_1.BodyHelper(this), internalProps.headerHelper = new header_helper_1.HeaderHelper(this),
87
+ internalProps.autoWrapText = options.autoWrapText, internalProps.allowFrozenColCount = null !== (_d = options.allowFrozenColCount) && void 0 !== _d ? _d : internalProps.colCount,
88
+ internalProps.limitMaxAutoWidth = null !== (_e = options.limitMaxAutoWidth) && void 0 !== _e ? _e : 450,
89
+ this.scenegraph = new scenegraph_1.Scenegraph(this), this.stateManeger = new state_1.StateManeger(this),
90
+ this.eventManeger = new event_1.EventManeger(this), internalProps.tooltip = Object.assign({
91
+ renderMode: "html",
92
+ isShowOverflowTextTooltip: !1,
93
+ confine: !0
94
+ }, options.tooltip), "html" === internalProps.tooltip.renderMode && (internalProps.tooltipHandler = new TooltipHandler_1.TooltipHandler(this, internalProps.tooltip.confine)),
95
+ internalProps.menu = Object.assign({
96
+ renderMode: "html"
97
+ }, options.menu), Array.isArray(null === (_f = options.menu) || void 0 === _f ? void 0 : _f.dropDownMenuHighlight) && this.setDropDownMenuHighlight(null === (_g = options.menu) || void 0 === _g ? void 0 : _g.dropDownMenuHighlight),
98
+ Array.isArray(null === (_h = options.menu) || void 0 === _h ? void 0 : _h.defaultHeaderMenuItems) && (this.globalDropDownMenu = options.menu.defaultHeaderMenuItems),
99
+ "html" === internalProps.menu.renderMode && (internalProps.menuHandler = new MenuHandler_1.MenuHandler(this)),
100
+ this.headerStyleCache = new Map, this.bodyStyleCache = new Map;
101
+ }
102
+ getParentElement() {
103
+ return this.options.parentElement;
104
+ }
105
+ getElement() {
106
+ return this.internalProps.element;
107
+ }
108
+ get canvas() {
109
+ return this.internalProps.canvas;
110
+ }
111
+ get rowCount() {
112
+ return this.internalProps.rowCount;
113
+ }
114
+ set rowCount(rowCount) {
115
+ this.internalProps.rowCount = rowCount;
116
+ }
117
+ get colCount() {
118
+ var _a;
119
+ return null !== (_a = this.internalProps.colCount) && void 0 !== _a ? _a : 0;
120
+ }
121
+ set colCount(colCount) {
122
+ this.internalProps.colCount = colCount;
123
+ }
124
+ get frozenColCount() {
125
+ var _a;
126
+ return null !== (_a = this.internalProps.frozenColCount) && void 0 !== _a ? _a : 0;
127
+ }
128
+ set frozenColCount(frozenColCount) {
129
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
130
+ this.options.frozenColCount = frozenColCount, this.tableNoFrameWidth - this.getColsWidth(0, frozenColCount - 1) <= 120 && (this.internalProps.frozenColCount = 0),
131
+ this.stateManeger.setFrozenCol(this.internalProps.frozenColCount);
132
+ }
133
+ setFrozenColCount(frozenColCount) {
134
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount,
135
+ this.options.frozenColCount = frozenColCount, this.tableNoFrameWidth - this.getColsWidth(0, frozenColCount - 1) <= 120 && (this.internalProps.frozenColCount = 0),
136
+ this.stateManeger.setFrozenCol(this.internalProps.frozenColCount);
137
+ }
138
+ _setFrozenColCount(frozenColCount) {
139
+ frozenColCount >= this.colCount && (frozenColCount = 0), this.internalProps.frozenColCount = frozenColCount;
140
+ }
141
+ _resetFrozenColCount() {
142
+ this.options.frozenColCount && (this.tableNoFrameWidth - this.getColsWidth(0, this.options.frozenColCount - 1) <= 120 ? this._setFrozenColCount(0) : this.frozenColCount !== this.options.frozenColCount && this._setFrozenColCount(this.options.frozenColCount));
143
+ }
144
+ get frozenRowCount() {
145
+ var _a;
146
+ return null !== (_a = this.internalProps.frozenRowCount) && void 0 !== _a ? _a : 0;
147
+ }
148
+ set frozenRowCount(frozenRowCount) {
149
+ this.internalProps.frozenRowCount = frozenRowCount;
150
+ }
151
+ get defaultRowHeight() {
152
+ return this.internalProps.defaultRowHeight;
153
+ }
154
+ set defaultRowHeight(defaultRowHeight) {
155
+ this.internalProps.defaultRowHeight = defaultRowHeight, this.options.defaultRowHeight = defaultRowHeight;
156
+ }
157
+ get defaultHeaderRowHeight() {
158
+ return this.internalProps.defaultHeaderRowHeight;
159
+ }
160
+ set defaultHeaderRowHeight(defaultHeaderRowHeight) {
161
+ this.internalProps.defaultHeaderRowHeight = defaultHeaderRowHeight, this.options.defaultHeaderRowHeight = defaultHeaderRowHeight;
162
+ }
163
+ get defaultColWidth() {
164
+ return this.internalProps.defaultColWidth;
165
+ }
166
+ set defaultColWidth(defaultColWidth) {
167
+ this.internalProps.defaultColWidth = defaultColWidth, this.options.defaultColWidth = defaultColWidth;
168
+ }
169
+ get defaultHeaderColWidth() {
170
+ return this.internalProps.defaultHeaderColWidth;
171
+ }
172
+ set defaultHeaderColWidth(defaultHeaderColWidth) {
173
+ this.internalProps.defaultHeaderColWidth = defaultHeaderColWidth, this.options.defaultHeaderColWidth = defaultHeaderColWidth;
174
+ }
175
+ get colWidthsMap() {
176
+ return this.internalProps._colWidthsMap;
177
+ }
178
+ set colWidthsMap(colWidthsMap) {
179
+ this.internalProps._colWidthsMap = colWidthsMap;
180
+ }
181
+ get colContentWidthsMap() {
182
+ return this.internalProps._colContentWidthsMap;
183
+ }
184
+ set colContentWidthsMap(colContentWidthsMap) {
185
+ this.internalProps._colContentWidthsMap = colContentWidthsMap;
186
+ }
187
+ get _colRangeWidthsMap() {
188
+ return this.internalProps._colRangeWidthsMap;
189
+ }
190
+ set _colRangeWidthsMap(_colRangeWidthsMap) {
191
+ this.internalProps._colRangeWidthsMap = _colRangeWidthsMap;
192
+ }
193
+ get _rowRangeHeightsMap() {
194
+ return this.internalProps._rowRangeHeightsMap;
195
+ }
196
+ set _rowRangeHeightsMap(_rowRangeHeightsMap) {
197
+ this.internalProps._rowRangeHeightsMap = _rowRangeHeightsMap;
198
+ }
199
+ get rowHeightsMap() {
200
+ return this.internalProps._rowHeightsMap;
201
+ }
202
+ set rowHeightsMap(rowHeightsMap) {
203
+ this.internalProps._rowHeightsMap = rowHeightsMap;
204
+ }
205
+ get colWidthsLimit() {
206
+ return this.internalProps._colWidthsLimit;
207
+ }
208
+ set colWidthsLimit(colWidthsLimit) {
209
+ this.internalProps._colWidthsLimit = colWidthsLimit;
210
+ }
211
+ get keyboardOptions() {
212
+ var _a;
213
+ return null !== (_a = this.internalProps.keyboardOptions) && void 0 !== _a ? _a : null;
214
+ }
215
+ set keyboardOptions(keyboardOptions) {
216
+ this.internalProps.keyboardOptions = null != keyboardOptions ? keyboardOptions : void 0;
217
+ }
218
+ get widthMode() {
219
+ return this._widthMode;
220
+ }
221
+ set widthMode(widthMode) {
222
+ widthMode !== this._widthMode && (this._widthMode = widthMode);
223
+ }
224
+ _colWidthDefineToPxWidth(width) {
225
+ return (0, tableHelper_1.isAutoDefine)(width) ? (0, tableHelper_1._toPxWidth)(this, this._calculateAutoColWidthExpr()) : (0,
226
+ tableHelper_1._toPxWidth)(this, width);
227
+ }
228
+ _calculateAutoColWidthExpr() {
229
+ const fullWidth = this.internalProps.calcWidthContext.full;
230
+ let sumMin = 0;
231
+ const others = [];
232
+ let autoCount = 0;
233
+ const hasLimitsOnAuto = [];
234
+ for (let col = 0; col < this.internalProps.colCount; col++) {
235
+ const def = this.getColWidthDefine(col), limits = this._getColWidthLimits(col);
236
+ if ((0, tableHelper_1.isAutoDefine)(def)) limits && (hasLimitsOnAuto.push(limits),
237
+ limits.min && (sumMin += limits.min)), autoCount++; else {
238
+ let expr = def;
239
+ if (limits) {
240
+ const orgWidth = (0, tableHelper_1._toPxWidth)(this, expr), newWidth = (0, tableHelper_1._applyColWidthLimits)(limits, orgWidth);
241
+ orgWidth !== newWidth && (expr = `${newWidth}px`), sumMin += newWidth;
242
+ }
243
+ others.push(expr);
244
+ }
245
+ if (sumMin > fullWidth) return "0px";
246
+ }
247
+ if (hasLimitsOnAuto.length && others.length) {
248
+ const autoPx = (fullWidth - (0, tableHelper_1._toPxWidth)(this, `calc(${others.map((c => "number" == typeof c ? `${c}px` : c)).join(" + ")})`)) / autoCount;
249
+ if (hasLimitsOnAuto.forEach((limits => {
250
+ limits.min && autoPx < limits.min ? (others.push(limits.minDef), autoCount--) : limits.max && limits.max < autoPx && (others.push(limits.maxDef),
251
+ autoCount--);
252
+ })), autoCount <= 0) return `${autoPx}px`;
253
+ }
254
+ if (others.length) {
255
+ const strDefs = [];
256
+ let num = 0;
257
+ return others.forEach((c => {
258
+ "number" == typeof c ? num += c : strDefs.push(c);
259
+ })), strDefs.push(`${num}px`), `calc((100% - (${strDefs.join(" + ")})) / ${autoCount})`;
260
+ }
261
+ return 100 / autoCount + "%";
262
+ }
263
+ _getColWidthLimits(col) {
264
+ const limit = this.colWidthsLimit[col];
265
+ if (!limit) return null;
266
+ const result = {};
267
+ return limit.min && (result.min = (0, tableHelper_1._toPxWidth)(this, limit.min),
268
+ result.minDef = limit.min), limit.max && (result.max = (0, tableHelper_1._toPxWidth)(this, limit.max),
269
+ result.maxDef = limit.max), result;
270
+ }
271
+ _adjustColWidth(col, orgWidth) {
272
+ const limits = this._getColWidthLimits(col);
273
+ return Math.max((0, tableHelper_1._applyColWidthLimits)(limits, orgWidth), 0);
274
+ }
275
+ setPixelRatio(pixelRatio) {}
276
+ _updateSize() {
277
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
278
+ const {padding: padding} = this;
279
+ let widthP = 0, heightP = 0;
280
+ if ("browser" === env_1.Env.mode) {
281
+ const element = this.getElement(), width1 = null !== (_b = null === (_a = element.parentElement) || void 0 === _a ? void 0 : _a.offsetWidth) && void 0 !== _b ? _b : 0, height1 = null !== (_d = null === (_c = element.parentElement) || void 0 === _c ? void 0 : _c.offsetHeight) && void 0 !== _d ? _d : 0;
282
+ element.style.width = width1 && width1 - padding.left - padding.right + "px" || "0px",
283
+ element.style.height = height1 && height1 - padding.top - padding.bottom + "px" || "0px";
284
+ const {canvas: canvas} = this.internalProps;
285
+ canvas.style.width = "", canvas.style.height = "", widthP = null !== (_f = null === (_e = canvas.parentElement) || void 0 === _e ? void 0 : _e.offsetWidth) && void 0 !== _f ? _f : 0,
286
+ heightP = null !== (_h = null === (_g = canvas.parentElement) || void 0 === _g ? void 0 : _g.offsetHeight) && void 0 !== _h ? _h : 0,
287
+ canvas.width = widthP, canvas.height = heightP, canvas.style.width = `${widthP}px`,
288
+ canvas.style.height = `${heightP}px`;
289
+ } else "node" === env_1.Env.mode && (widthP = this.canvasWidth - 1, heightP = this.canvasHeight - 1);
290
+ const width = Math.floor(widthP - style.getScrollBarSize(this.getTheme().scrollStyle)), height = Math.floor(heightP - style.getScrollBarSize(this.getTheme().scrollStyle));
291
+ if (null === (_j = this.internalProps.theme) || void 0 === _j ? void 0 : _j.frameStyle) {
292
+ const lineWidths = toBoxArray(null !== (_l = null === (_k = this.internalProps.theme.frameStyle) || void 0 === _k ? void 0 : _k.borderLineWidth) && void 0 !== _l ? _l : [ null ]), shadowWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.shadowBlur) && void 0 !== _o ? _o : [ 0 ]);
293
+ this.tableX = (null !== (_p = lineWidths[3]) && void 0 !== _p ? _p : 0) + (null !== (_q = shadowWidths[3]) && void 0 !== _q ? _q : 0),
294
+ this.tableY = (null !== (_r = lineWidths[0]) && void 0 !== _r ? _r : 0) + (null !== (_s = shadowWidths[0]) && void 0 !== _s ? _s : 0),
295
+ this.tableNoFrameWidth = width - ((null !== (_t = lineWidths[1]) && void 0 !== _t ? _t : 0) + (null !== (_u = shadowWidths[1]) && void 0 !== _u ? _u : 0)) - ((null !== (_v = lineWidths[3]) && void 0 !== _v ? _v : 0) + (null !== (_w = shadowWidths[3]) && void 0 !== _w ? _w : 0)),
296
+ this.tableNoFrameHeight = height - ((null !== (_x = lineWidths[0]) && void 0 !== _x ? _x : 0) + (null !== (_y = shadowWidths[0]) && void 0 !== _y ? _y : 0)) - ((null !== (_z = lineWidths[2]) && void 0 !== _z ? _z : 0) + (null !== (_0 = shadowWidths[2]) && void 0 !== _0 ? _0 : 0));
297
+ }
298
+ }
299
+ get rowHierarchyType() {
300
+ return "grid";
301
+ }
302
+ setColWidths(widths) {
303
+ widths.forEach(((value, index) => this.setColWidth(index, value)));
304
+ }
305
+ getColsWidth(startCol, endCol) {
306
+ var _a;
307
+ endCol = Math.min(endCol, this.colCount - 1);
308
+ const cachedColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol}`);
309
+ if (null != cachedColWidth) return cachedColWidth;
310
+ const cachedLowerColWidth = this._colRangeWidthsMap.get(`$${startCol}$${endCol - 1}`);
311
+ if (null != cachedLowerColWidth) {
312
+ const width = this.colWidthsMap.get(endCol);
313
+ let adjustW;
314
+ adjustW = width ? "adaptive" === this.widthMode || this.transpose ? Number(width) : this._adjustColWidth(endCol, this._colWidthDefineToPxWidth(width)) : 0;
315
+ const addWidth = cachedLowerColWidth + adjustW;
316
+ return startCol >= 0 && endCol >= 0 && !Number.isNaN(addWidth) && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(addWidth)),
317
+ Math.round(addWidth);
318
+ }
319
+ let w = 0;
320
+ for (let col = startCol; col <= endCol; col++) w += this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_a = this.defaultHeaderColWidth[col]) && void 0 !== _a ? _a : this.internalProps.defaultColWidth : this.defaultHeaderColWidth : this.internalProps.defaultColWidth;
321
+ this.colWidthsMap.each(startCol, endCol, ((width, col) => {
322
+ var _a;
323
+ w += ("adaptive" === this.widthMode || this.transpose ? Number(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width))) - (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_a = this.defaultHeaderColWidth[col]) && void 0 !== _a ? _a : this.internalProps.defaultColWidth : this.defaultHeaderColWidth : this.internalProps.defaultColWidth);
324
+ }));
325
+ for (let col = startCol; col <= endCol; col++) {
326
+ if (this.colWidthsMap.has(col)) continue;
327
+ const adj = this._adjustColWidth(col, this.internalProps.defaultColWidth);
328
+ adj !== this.internalProps.defaultColWidth && (w += adj - this.internalProps.defaultColWidth);
329
+ }
330
+ return startCol >= 0 && endCol >= 0 && this._colRangeWidthsMap.set(`$${startCol}$${endCol}`, Math.round(w)),
331
+ Math.round(w);
332
+ }
333
+ getRowHeight(row) {
334
+ var _a;
335
+ return this.rowHeightsMap.get(row) || (this.isColumnHeader(0, row) || this.isCornerHeader(0, row) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_a = this.defaultHeaderRowHeight[row]) && void 0 !== _a ? _a : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.internalProps.defaultRowHeight);
336
+ }
337
+ setRowHeight(row, height, clearCache) {
338
+ this.rowHeightsMap.put(row, Math.round(height)), clearCache && this._clearRowRangeHeightsMap(row);
339
+ }
340
+ fillRowsHeight(rowStart, rowEnd, rowHeight) {
341
+ var _a;
342
+ for (let row = rowStart; row <= rowEnd; row++) this.rowHeightsMap.put(row, Math.round(rowHeight)),
343
+ this._rowRangeHeightsMap.set(`$0$${row}`, Math.round((null !== (_a = this._rowRangeHeightsMap.get("$0$" + (row - 1))) && void 0 !== _a ? _a : 0) + rowHeight));
344
+ }
345
+ getRowsHeight(startRow, endRow) {
346
+ var _a, _b, _c;
347
+ const cachedRowHeight = this._rowRangeHeightsMap.get(`$${startRow}$${endRow}`);
348
+ if (null != cachedRowHeight) return cachedRowHeight;
349
+ const cachedLowerRowHeight = this._rowRangeHeightsMap.get(`$${startRow}$${endRow - 1}`);
350
+ if (null != cachedLowerRowHeight) {
351
+ const height = Math.round(cachedLowerRowHeight + (null !== (_a = this.rowHeightsMap.get(endRow)) && void 0 !== _a ? _a : this.isColumnHeader(0, endRow) || this.isCornerHeader(0, endRow) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_b = this.defaultHeaderRowHeight[endRow]) && void 0 !== _b ? _b : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.internalProps.defaultRowHeight));
352
+ return startRow >= 0 && endRow >= 0 && this._rowRangeHeightsMap.set(`$${startRow}$${endRow}`, Math.round(height)),
353
+ height;
354
+ }
355
+ let h = 0;
356
+ for (let i = startRow; i <= endRow; i++) h += this.rowHeightsMap.get(i) || (this.isColumnHeader(0, i) || this.isCornerHeader(0, i) ? Array.isArray(this.defaultHeaderRowHeight) ? null !== (_c = this.defaultHeaderRowHeight[i]) && void 0 !== _c ? _c : this.internalProps.defaultRowHeight : this.defaultHeaderRowHeight : this.internalProps.defaultRowHeight);
357
+ return startRow >= 0 && endRow >= 0 && h > 0 && this._rowRangeHeightsMap.set(`$${startRow}$${endRow}`, Math.round(h)),
358
+ Math.round(h);
359
+ }
360
+ getColWidthDefine(col) {
361
+ var _a;
362
+ const width = this.colWidthsMap.get(col);
363
+ return "number" == typeof width && width <= 0 ? 0 : width || (this.isRowHeader(col, 0) || this.isCornerHeader(col, 0) ? Array.isArray(this.defaultHeaderColWidth) ? null !== (_a = this.defaultHeaderColWidth[col]) && void 0 !== _a ? _a : this.defaultColWidth : this.defaultHeaderColWidth : this.defaultColWidth);
364
+ }
365
+ getColWidth(col) {
366
+ const width = this.getColWidthDefine(col);
367
+ return "adaptive" === this.widthMode && "number" == typeof width || this.transpose && "number" == typeof width ? this._colWidthDefineToPxWidth(width) : this._adjustColWidth(col, this._colWidthDefineToPxWidth(width));
368
+ }
369
+ setColWidth(col, width, clearCache, skipCheckFrozen) {
370
+ this.colWidthsMap.put(col, "number" == typeof width ? Math.round(width) : width),
371
+ clearCache && this._clearColRangeWidthsMap(col), skipCheckFrozen || this.stateManeger.checkFrozen();
372
+ }
373
+ _clearColRangeWidthsMap(col) {
374
+ if ("number" != typeof col) this._colRangeWidthsMap.clear(); else {
375
+ const keys = this._colRangeWidthsMap.keys();
376
+ for (const key of keys) {
377
+ const reg = rangeReg.exec(key);
378
+ if (reg) {
379
+ const start = Number(reg[1]), end = Number(reg[2]);
380
+ col >= start && col <= end && this._colRangeWidthsMap.delete(key);
381
+ }
382
+ }
383
+ }
384
+ }
385
+ _clearRowRangeHeightsMap(row) {
386
+ const keys = this._rowRangeHeightsMap.keys();
387
+ for (const key of keys) {
388
+ const reg = rangeReg.exec(key);
389
+ if (reg) {
390
+ const start = Number(reg[1]), end = Number(reg[2]);
391
+ row >= start && row <= end && this._rowRangeHeightsMap.delete(key);
392
+ }
393
+ }
394
+ }
395
+ _getColContentWidth(col) {
396
+ return Number(this.colContentWidthsMap.get(col));
397
+ }
398
+ _setColContentWidth(col, width) {
399
+ this.colContentWidthsMap.put(col, width);
400
+ }
401
+ getAllRowsHeight() {
402
+ if (this.internalProps.rowCount <= 0) return 0;
403
+ return this.getRowsHeight(0, this.internalProps.rowCount - 1);
404
+ }
405
+ getAllColsWidth() {
406
+ if (this.internalProps.colCount <= 0) return 0;
407
+ return this.getColsWidth(0, this.internalProps.colCount - 1);
408
+ }
409
+ getMaxColWidth(col) {
410
+ var _a;
411
+ const obj = this.colWidthsLimit[col];
412
+ let max = null !== (_a = obj && obj.max) && void 0 !== _a ? _a : 1 / 0;
413
+ return "string" == typeof max && (max = (0, tableHelper_1._toPxWidth)(this, max)),
414
+ max;
415
+ }
416
+ setMaxColWidth(col, maxwidth) {
417
+ (this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).max = maxwidth;
418
+ }
419
+ getMinColWidth(col) {
420
+ var _a;
421
+ const obj = this.colWidthsLimit[col];
422
+ let min = null !== (_a = obj && obj.min) && void 0 !== _a ? _a : 0;
423
+ return "string" == typeof min && (min = (0, tableHelper_1._toPxWidth)(this, min)),
424
+ min;
425
+ }
426
+ setMinColWidth(col, minwidth) {
427
+ (this.colWidthsLimit[col] || (this.colWidthsLimit[col] = {})).min = minwidth;
428
+ }
429
+ getCellRect(col, row) {
430
+ const isFrozenCell = this.isFrozenCell(col, row);
431
+ let absoluteLeft = this.getColsWidth(0, col - 1) || 0;
432
+ const width = this.getColWidth(col);
433
+ isFrozenCell && isFrozenCell.col && (absoluteLeft += this.scrollLeft);
434
+ let absoluteTop = this.getRowsHeight(0, row - 1);
435
+ const height = this.getRowHeight(row);
436
+ return isFrozenCell && isFrozenCell.row && (absoluteTop += this.scrollTop), new Rect_1.Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
437
+ }
438
+ getMergeCellRect(col, row) {
439
+ const cellRange = this.getCellRange(col, row), absoluteLeft = this.getColsWidth(0, cellRange.start.col - 1) || 0, width = this.getColsWidth(cellRange.start.col, cellRange.end.col), absoluteTop = this.getRowsHeight(0, cellRange.start.row - 1) || 0, height = this.getRowsHeight(cellRange.start.row, cellRange.end.row);
440
+ return new Rect_1.Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
441
+ }
442
+ getCellRelativeRect(col, row) {
443
+ return this._toRelativeRect(this.getCellRect(col, row));
444
+ }
445
+ getCellRangeRelativeRect(range) {
446
+ if (range.start) return this._toRelativeRect(this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row));
447
+ const cellRange = this.getCellRange(range.col, range.row);
448
+ return this._toRelativeRect(this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row));
449
+ }
450
+ getVisibleCellRangeRelativeRect(range) {
451
+ let cellRange;
452
+ return cellRange = range.start ? range : this.getCellRange(range.col, range.row),
453
+ this._getVisiableRect(this.getCellRangeRelativeRect(range), cellRange);
454
+ }
455
+ _getVisiableRect(relativeRectObj, cellRange) {
456
+ const targetLeft = cellRange.start.col >= this.frozenColCount ? Math.max(relativeRectObj.left, this.frozenColCount >= 1 ? this.getColsWidth(0, this.frozenColCount - 1) : 0) : relativeRectObj.left, targetRight = Math.min(relativeRectObj.right, this.tableNoFrameWidth), rect = relativeRectObj.copy();
457
+ rect.left = targetLeft, rect.right = targetRight;
458
+ const targetTop = cellRange.start.row >= this.frozenRowCount ? Math.max(relativeRectObj.top, this.frozenRowCount >= 1 ? this.getRowsHeight(0, this.frozenRowCount - 1) : 0) : relativeRectObj.top, targetBottom = Math.min(relativeRectObj.bottom, this.tableNoFrameHeight);
459
+ return rect.top = targetTop, rect.bottom = targetBottom, rect;
460
+ }
461
+ getCellsRect(startCol, startRow, endCol, endRow) {
462
+ const isFrozenStartCell = this.isFrozenCell(startCol, startRow), isFrozenEndCell = this.isFrozenCell(endCol, endRow);
463
+ let absoluteLeft = this.getColsWidth(0, startCol - 1) || 0, width = this.getColsWidth(startCol, endCol);
464
+ if (isFrozenStartCell && isFrozenStartCell.col) {
465
+ const scrollLeft = this.scrollLeft;
466
+ absoluteLeft += scrollLeft, isFrozenEndCell && isFrozenEndCell.col || (width -= scrollLeft,
467
+ width = Math.max(width, this.getColsWidth(startCol, this.frozenColCount - 1)));
468
+ }
469
+ let absoluteTop = this.getRowsHeight(0, startRow - 1), height = this.getRowsHeight(startRow, endRow);
470
+ if (isFrozenStartCell && isFrozenStartCell.row) {
471
+ const scrollTop = this.scrollTop;
472
+ absoluteTop += scrollTop, isFrozenEndCell && isFrozenEndCell.row || (height -= scrollTop,
473
+ height = Math.max(height, this.getRowsHeight(startRow, this.frozenRowCount - 1)));
474
+ }
475
+ return new Rect_1.Rect(Math.round(absoluteLeft), Math.round(absoluteTop), Math.round(width), Math.round(height));
476
+ }
477
+ getCellsRectWidth(startCol, startRow, endCol, endRow) {
478
+ const isFrozenStartCell = this.isFrozenCell(startCol, startRow), isFrozenEndCell = this.isFrozenCell(endCol, endRow);
479
+ let width = this.getColsWidth(startCol, endCol);
480
+ if (isFrozenStartCell && isFrozenStartCell.col) {
481
+ const scrollLeft = this.scrollLeft;
482
+ isFrozenEndCell && isFrozenEndCell.col || (width -= scrollLeft, width = Math.max(width, this.getColsWidth(startCol, this.frozenColCount - 1)));
483
+ }
484
+ return width;
485
+ }
486
+ getCellRangeRect(range) {
487
+ if (range.start) return this.getCellsRect(range.start.col, range.start.row, range.end.col, range.end.row);
488
+ const cellRange = this.getCellRange(range.col, range.row);
489
+ return this.getCellsRect(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
490
+ }
491
+ getCellRangeRectWidth(range) {
492
+ if (range.start) return this.getCellsRectWidth(range.start.col, range.start.row, range.end.col, range.end.row);
493
+ const cellRange = this.getCellRange(range.col, range.row);
494
+ return this.getCellsRectWidth(cellRange.start.col, cellRange.start.row, cellRange.end.col, cellRange.end.row);
495
+ }
496
+ isFrozenCell(col, row) {
497
+ const {frozenRowCount: frozenRowCount, frozenColCount: frozenColCount} = this.internalProps, isFrozenRow = frozenRowCount > 0 && row < frozenRowCount, isFrozenCol = frozenColCount > 0 && col < frozenColCount;
498
+ return isFrozenRow || isFrozenCol ? {
499
+ row: isFrozenRow,
500
+ col: isFrozenCol
501
+ } : null;
502
+ }
503
+ getRowAt(absoluteY) {
504
+ const frozen = (0, tableHelper_1._getTargetFrozenRowAt)(this, absoluteY);
505
+ if (frozen) return frozen;
506
+ let row = this.getTargetRowAt(absoluteY);
507
+ return row || (row = {
508
+ top: -1,
509
+ row: -1,
510
+ bottom: -1,
511
+ height: -1
512
+ }), row;
513
+ }
514
+ getColAt(absoluteX) {
515
+ const frozen = (0, tableHelper_1._getTargetFrozenColAt)(this, absoluteX);
516
+ if (frozen) return frozen;
517
+ let col = this.getTargetColAt(absoluteX);
518
+ return col || (col = {
519
+ left: -1,
520
+ col: -1,
521
+ right: -1,
522
+ width: 1
523
+ }), col;
524
+ }
525
+ getCellAt(absoluteX, absoluteY) {
526
+ const rowInfo = this.getRowAt(absoluteY), {row: row, top: top, bottom: bottom, height: height} = rowInfo, colInfo = this.getColAt(absoluteX), {col: col, left: left, right: right, width: width} = colInfo;
527
+ return {
528
+ row: row,
529
+ col: col,
530
+ rect: {
531
+ left: left,
532
+ right: right,
533
+ top: top,
534
+ bottom: bottom,
535
+ width: width,
536
+ height: height
537
+ }
538
+ };
539
+ }
540
+ _checkRowCol(col, row) {
541
+ return col >= 0 && col < this.colCount && row >= 0 && row < this.rowCount;
542
+ }
543
+ _makeVisibleCell(col, row) {
544
+ if (this._checkRowCol(col, row)) {
545
+ const isFrozenCell = this.isFrozenCell(col, row);
546
+ if (isFrozenCell && isFrozenCell.col && isFrozenCell.row) return;
547
+ const rect = this.getCellRect(col, row), visibleRect = (0, tableHelper_1._getScrollableVisibleRect)(this);
548
+ if (visibleRect.contains(rect)) return;
549
+ isFrozenCell && isFrozenCell.col || this.getColsWidth(0, this.frozenColCount - 1) + rect.width > this.canvas.width || (rect.left < visibleRect.left ? this.scrollLeft -= visibleRect.left - rect.left : visibleRect.right < rect.right && (this.scrollLeft -= visibleRect.right - rect.right)),
550
+ isFrozenCell && isFrozenCell.row || this.getRowsHeight(0, this.frozenRowCount - 1) + rect.height > this.canvas.height || (rect.top < visibleRect.top ? this.scrollTop -= visibleRect.top - rect.top : visibleRect.bottom < rect.bottom && (this.scrollTop -= visibleRect.bottom - rect.bottom));
551
+ }
552
+ }
553
+ invalidate() {
554
+ this.scenegraph.renderSceneGraph();
555
+ }
556
+ _toRelativeRect(absoluteRect) {
557
+ const rect = absoluteRect.copy(), visibleRect = this.getVisibleRect();
558
+ return rect.offsetLeft(-visibleRect.left), rect.offsetTop(-visibleRect.top), rect;
559
+ }
560
+ getVisibleRect() {
561
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, width = this.tableNoFrameWidth, height = this.tableNoFrameHeight;
562
+ return new Rect_1.Rect(scrollLeft, scrollTop, width, height);
563
+ }
564
+ get visibleRowCount() {
565
+ const {frozenRowCount: frozenRowCount} = this, visibleRect = this.getVisibleRect(), visibleTop = frozenRowCount > 0 ? visibleRect.top + this.getRowsHeight(0, frozenRowCount - 1) : visibleRect.top, initRow = this.getTargetRowAt(visibleTop);
566
+ if (!initRow) return 0;
567
+ const startRow = Math.max(initRow.top >= visibleTop ? initRow.row : initRow.row + 1, frozenRowCount);
568
+ let absoluteTop = this.getRowsHeight(0, startRow - 1), count = 0;
569
+ const {rowCount: rowCount} = this;
570
+ for (let row = startRow; row < rowCount; row++) {
571
+ const bottom = absoluteTop + this.getRowHeight(row);
572
+ if (visibleRect.bottom < bottom) break;
573
+ count++, absoluteTop = bottom;
574
+ }
575
+ return count;
576
+ }
577
+ get visibleColCount() {
578
+ const {frozenColCount: frozenColCount} = this, visibleRect = this.getVisibleRect(), visibleLeft = frozenColCount > 0 ? visibleRect.left + this.getColsWidth(0, frozenColCount - 1) : visibleRect.left, initCol = this.getTargetColAt(visibleLeft);
579
+ if (!initCol) return 0;
580
+ const startCol = Math.max(initCol.left >= visibleLeft ? initCol.col : initCol.col + 1, frozenColCount);
581
+ let absoluteLeft = this.getColsWidth(0, startCol - 1), count = 0;
582
+ const {colCount: colCount} = this;
583
+ for (let col = startCol; col < colCount; col++) {
584
+ const right = absoluteLeft + this.getColWidth(col);
585
+ if (visibleRect.right < right) break;
586
+ count++, absoluteLeft = right;
587
+ }
588
+ return count;
589
+ }
590
+ get scrollTop() {
591
+ return this.stateManeger.scroll.verticalBarPos;
592
+ }
593
+ set scrollTop(scrollTop) {
594
+ this.stateManeger.setScrollTop(scrollTop);
595
+ }
596
+ get scrollLeft() {
597
+ return this.stateManeger.scroll.horizontalBarPos;
598
+ }
599
+ set scrollLeft(scrollLeft) {
600
+ this.stateManeger.setScrollLeft(scrollLeft);
601
+ }
602
+ getScrollLeft() {
603
+ return this.scrollLeft;
604
+ }
605
+ getScrollTop() {
606
+ return this.scrollTop;
607
+ }
608
+ setScrollLeft(num) {
609
+ this.scrollLeft = num;
610
+ }
611
+ setScrollTop(num) {
612
+ this.scrollTop = num;
613
+ }
614
+ getCellOverflowText(col, row) {
615
+ return this.scenegraph.getCellOverflowText(col, row);
616
+ }
617
+ addDisposable(disposable) {
618
+ if (!disposable || !disposable.dispose || "function" != typeof disposable.dispose) throw new Error("not disposable!");
619
+ (this.internalProps.disposables = this.internalProps.disposables || []).push(disposable);
620
+ }
621
+ dispose() {
622
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
623
+ const internalProps = this.internalProps;
624
+ null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.dispose) || void 0 === _b || _b.call(_a),
625
+ null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.dispose) || void 0 === _d || _d.call(_c),
626
+ icons_1.IconCache.clearAll(), null === (_e = super.dispose) || void 0 === _e || _e.call(this),
627
+ null === (_g = null === (_f = internalProps.handler) || void 0 === _f ? void 0 : _f.dispose) || void 0 === _g || _g.call(_f),
628
+ null === (_j = null === (_h = internalProps.focusControl) || void 0 === _h ? void 0 : _h.dispose) || void 0 === _j || _j.call(_h),
629
+ internalProps.disposables && (internalProps.disposables.forEach((disposable => {
630
+ var _a;
631
+ return null === (_a = null == disposable ? void 0 : disposable.dispose) || void 0 === _a ? void 0 : _a.call(disposable);
632
+ })), internalProps.disposables = null), this.scenegraph.stage.release();
633
+ const {parentElement: parentElement} = internalProps.element;
634
+ parentElement && parentElement.removeChild(internalProps.element);
635
+ }
636
+ fireListeners(type, ...event) {
637
+ return super.fireListeners(type, ...event);
638
+ }
639
+ updateOption(options) {
640
+ var _a, _b, _c, _d;
641
+ this.options = options;
642
+ const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth = 80, keyboardOptions: keyboardOptions, columnResizeMode: columnResizeMode, dragHeaderMode: dragHeaderMode, showPin: showPin, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, pixelRatio: pixelRatio, widthMode: widthMode} = options;
643
+ pixelRatio && pixelRatio !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = pixelRatio),
644
+ padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
645
+ this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
646
+ padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
647
+ padding.right && (this.padding.right = padding.right))), this.showPin = "boolean" != typeof showPin || showPin,
648
+ "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showPin = !1),
649
+ this.widthMode = null != widthMode ? widthMode : "standard";
650
+ const internalProps = this.internalProps;
651
+ "node" !== env_1.Env.mode && (0, tableHelper_1.updateRootElementPadding)(internalProps.element, this.padding),
652
+ internalProps.frozenColCount = frozenColCount, internalProps.defaultRowHeight = defaultRowHeight,
653
+ internalProps.defaultHeaderRowHeight = null != defaultHeaderRowHeight ? defaultHeaderRowHeight : defaultRowHeight,
654
+ internalProps.defaultColWidth = defaultColWidth, internalProps.defaultHeaderColWidth = null != defaultHeaderColWidth ? defaultHeaderColWidth : defaultColWidth,
655
+ internalProps.keyboardOptions = keyboardOptions, internalProps.columnResizeMode = columnResizeMode,
656
+ internalProps.dragHeaderMode = dragHeaderMode, internalProps.cellTextOverflows = {},
657
+ internalProps.theme = themes_1.default.of(null !== (_a = options.theme) && void 0 !== _a ? _a : themes_1.default.DEFAULT),
658
+ internalProps.autoRowHeight = null !== (_b = options.autoRowHeight) && void 0 !== _b && _b,
659
+ internalProps.autoWrapText = options.autoWrapText, internalProps.allowFrozenColCount = null !== (_c = options.allowFrozenColCount) && void 0 !== _c ? _c : internalProps.colCount,
660
+ internalProps.limitMaxAutoWidth = null !== (_d = options.limitMaxAutoWidth) && void 0 !== _d ? _d : 450,
661
+ internalProps.tooltip = Object.assign({
662
+ renderMode: "html",
663
+ isShowOverflowTextTooltip: !1,
664
+ confine: !0
665
+ }, options.tooltip), "html" !== internalProps.tooltip.renderMode || internalProps.tooltipHandler || (internalProps.tooltipHandler = new TooltipHandler_1.TooltipHandler(this, internalProps.tooltip.confine)),
666
+ internalProps.menu = Object.assign({
667
+ renderMode: "html"
668
+ }, options.menu), "html" !== internalProps.menu.renderMode || internalProps.menuHandler || (internalProps.menuHandler = new MenuHandler_1.MenuHandler(this));
669
+ }
670
+ getFrozenRowsHeight() {
671
+ return this.getRowsHeight(0, this.frozenRowCount - 1);
672
+ }
673
+ getFrozenColsWidth() {
674
+ return this.getColsWidth(0, this.frozenColCount - 1);
675
+ }
676
+ getDrawRange() {
677
+ const width = Math.min(this.tableNoFrameWidth, this.getAllColsWidth()), height = Math.min(this.tableNoFrameHeight, this.getAllRowsHeight());
678
+ return new Rect_1.Rect(this.tableX, this.tableY, width, height);
679
+ }
680
+ _getMouseAbstractPoint(evt, isAddScroll = !0) {
681
+ let e;
682
+ if (!evt) return null;
683
+ e = isTouchEvent(evt) ? evt.changedTouches[0] : evt;
684
+ const clientX = e.clientX || e.pageX + window.scrollX, clientY = e.clientY || e.pageY + window.scrollY, rect = this.internalProps.canvas.getBoundingClientRect();
685
+ if (rect.right <= clientX) return null;
686
+ if (rect.bottom <= clientY) return null;
687
+ const currentWidth = rect.width, widthRatio = currentWidth / (this.canvas.offsetWidth || currentWidth), currentHeight = rect.height, heightRatio = currentHeight / (this.canvas.offsetHeight || currentHeight);
688
+ return {
689
+ x: (clientX - rect.left) / widthRatio + (isAddScroll ? this.scrollLeft : 0) - this.tableX,
690
+ y: (clientY - rect.top) / heightRatio + (isAddScroll ? this.scrollTop : 0) - this.tableY
691
+ };
692
+ }
693
+ _getCellEventArgsSet(e) {
694
+ const abstractPos = this._getMouseAbstractPoint(e);
695
+ if (!abstractPos) return {};
696
+ const cell = this.getCellAt(abstractPos.x, abstractPos.y);
697
+ if (cell.col < 0 || cell.row < 0) return {
698
+ abstractPos: abstractPos,
699
+ cell: cell
700
+ };
701
+ return {
702
+ abstractPos: abstractPos,
703
+ cell: cell,
704
+ eventArgs: {
705
+ col: cell.col,
706
+ row: cell.row,
707
+ event: e,
708
+ rect: cell.rect
709
+ }
710
+ };
711
+ }
712
+ getTheme() {
713
+ return this.internalProps.theme;
714
+ }
715
+ getTargetColAt(absoluteX) {
716
+ if (0 === absoluteX) return {
717
+ left: 0,
718
+ col: 0,
719
+ right: 0,
720
+ width: 0
721
+ };
722
+ const findAfter = (startCol, startRight) => {
723
+ let left = startRight - this.getColWidth(startCol);
724
+ const {colCount: colCount} = this.internalProps;
725
+ for (let col = startCol; col < colCount; col++) {
726
+ const width = this.getColWidth(col), right = left + width;
727
+ if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) return {
728
+ left: left,
729
+ col: col,
730
+ right: right,
731
+ width: width
732
+ };
733
+ left = right;
734
+ }
735
+ return null;
736
+ }, candCol = this.computeTargetColByX(absoluteX), right = this.getColsWidth(0, candCol);
737
+ return absoluteX >= right ? findAfter(candCol, right) : ((startCol, startRight) => {
738
+ let right = startRight;
739
+ for (let col = startCol; col >= 0; col--) {
740
+ const width = this.getColWidth(col), left = right - width;
741
+ if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) return {
742
+ left: left,
743
+ col: col,
744
+ right: right,
745
+ width: width
746
+ };
747
+ right = left;
748
+ }
749
+ return null;
750
+ })(candCol, right);
751
+ }
752
+ getTargetRowAt(absoluteY) {
753
+ if (0 === absoluteY) return {
754
+ top: 0,
755
+ row: 0,
756
+ bottom: 0,
757
+ height: 0
758
+ };
759
+ const findAfter = (startRow, startBottom) => {
760
+ let top = startBottom - this.getRowHeight(startRow);
761
+ const {rowCount: rowCount} = this.internalProps;
762
+ for (let row = startRow; row < rowCount; row++) {
763
+ const height = this.getRowHeight(row), bottom = top + height;
764
+ if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
765
+ top: top,
766
+ row: row,
767
+ bottom: bottom,
768
+ height: height
769
+ };
770
+ top = bottom;
771
+ }
772
+ return null;
773
+ }, candRow = this.computeTargetRowByY(absoluteY), bottom = this.getRowsHeight(0, candRow);
774
+ return absoluteY >= bottom ? findAfter(candRow, bottom) : ((startRow, startBottom) => {
775
+ let bottom = startBottom;
776
+ for (let row = startRow; row >= 0; row--) {
777
+ const height = this.getRowHeight(row), top = bottom - height;
778
+ if (Math.round(top) <= Math.round(absoluteY) && Math.round(absoluteY) < Math.round(bottom)) return {
779
+ top: top,
780
+ row: row,
781
+ bottom: bottom,
782
+ height: height
783
+ };
784
+ bottom = top;
785
+ }
786
+ return null;
787
+ })(candRow, bottom);
788
+ }
789
+ computeTargetRowByY(absoluteY) {
790
+ if (this._rowRangeHeightsMap.get("$0$" + (this.rowCount - 1))) {
791
+ let startRow = 0, endRow = this.rowCount - 1;
792
+ for (;endRow - startRow > 1; ) {
793
+ const midRow = Math.floor((startRow + endRow) / 2);
794
+ if (absoluteY < this._rowRangeHeightsMap.get(`$0$${midRow}`)) endRow = midRow; else {
795
+ if (!(absoluteY > this._rowRangeHeightsMap.get(`$0$${midRow}`))) return midRow;
796
+ startRow = midRow;
797
+ }
798
+ }
799
+ return endRow;
800
+ }
801
+ return Math.min(Math.ceil(absoluteY / this.internalProps.defaultRowHeight), this.rowCount - 1);
802
+ }
803
+ computeTargetColByX(absoluteX) {
804
+ if (this._colRangeWidthsMap.get("$0$" + (this.colCount - 1))) {
805
+ let startCol = 0, endCol = this.colCount - 1;
806
+ for (;endCol - startCol > 1; ) {
807
+ const midCol = Math.floor((startCol + endCol) / 2);
808
+ if (absoluteX < this._colRangeWidthsMap.get(`$0$${midCol}`)) endCol = midCol; else {
809
+ if (!(absoluteX > this._colRangeWidthsMap.get(`$0$${midCol}`))) return midCol;
810
+ startCol = midCol;
811
+ }
812
+ }
813
+ return endCol;
814
+ }
815
+ return Math.min(Math.ceil(absoluteX / this.internalProps.defaultColWidth), this.colCount - 1);
816
+ }
817
+ clearSelected() {}
818
+ selectCell(col, row) {}
819
+ updatePager(cof) {
820
+ this.pagerConf && ("number" == typeof cof.currentPage && cof.currentPage >= 0 && (this.pagerConf.currentPage = cof.currentPage),
821
+ cof.perPageCount && (this.pagerConf.perPageCount = cof.perPageCount || this.pagerConf.perPageCount),
822
+ this.scenegraph.clearCells(), this.dataSource.updatePager(this.pagerConf), this.refreshRowColCount(),
823
+ this.scenegraph.createSceneGraph(), this.invalidate());
824
+ }
825
+ get allowFrozenColCount() {
826
+ return this.internalProps.allowFrozenColCount;
827
+ }
828
+ get rowHeaderLevelCount() {
829
+ return this.internalProps.layoutMap.rowHeaderLevelCount;
830
+ }
831
+ get columnHeaderLevelCount() {
832
+ return this.internalProps.layoutMap.columnHeaderLevelCount;
833
+ }
834
+ get records() {
835
+ return this.internalProps.records || null;
836
+ }
837
+ get dataSource() {
838
+ return this.internalProps.dataSource;
839
+ }
840
+ set dataSource(dataSource) {
841
+ this.scenegraph.clearCells(), (0, tableHelper_1._setDataSource)(this, dataSource),
842
+ this.refreshRowColCount(), this.scenegraph.createSceneGraph(), this.invalidate();
843
+ }
844
+ get autoWrapText() {
845
+ return this.internalProps.autoWrapText;
846
+ }
847
+ set autoWrapText(autoWrapText) {
848
+ this.internalProps.autoWrapText !== autoWrapText && (this.internalProps.autoWrapText = autoWrapText,
849
+ this.options.autoWrapText = autoWrapText, this.internalProps.layoutMap && (this.refreshHeader(),
850
+ this.invalidate()));
851
+ }
852
+ get theme() {
853
+ return this.internalProps.theme;
854
+ }
855
+ set theme(theme) {
856
+ const t = themes_1.default.of(theme);
857
+ this.internalProps.theme = t || themes_1.default.DEFAULT, this.options.theme = theme,
858
+ this._updateSize(), this._resetFrozenColCount(), this.invalidate();
859
+ }
860
+ getBodyField(col, row) {
861
+ return this.internalProps.layoutMap.getBody(col, row).field;
862
+ }
863
+ getBodyColumnDefine(col, row) {
864
+ const body = this.internalProps.layoutMap.getBody(col, row);
865
+ return null == body ? void 0 : body.define;
866
+ }
867
+ getBodyColumnType(col, row) {
868
+ return this.internalProps.layoutMap.getBody(col, row).columnType;
869
+ }
870
+ getHeaderField(col, row) {
871
+ return this.internalProps.layoutMap.getHeaderField(col, row);
872
+ }
873
+ getHeaderFieldKey(col, row) {
874
+ return this.internalProps.layoutMap.getHeaderFieldKey(col, row);
875
+ }
876
+ getHeaderDefine(col, row) {
877
+ const hd = this.internalProps.layoutMap.getHeader(col, row);
878
+ return null == hd ? void 0 : hd.define;
879
+ }
880
+ getCellType(col, row) {
881
+ return this.internalProps.layoutMap.getCellType(col, row);
882
+ }
883
+ getCellHeaderPaths(col, row) {
884
+ return this.internalProps.layoutMap.getCellHeaderPaths(col, row);
885
+ }
886
+ getHeadersDefine(col, row) {
887
+ const headers = [];
888
+ for (;;) {
889
+ const header = this.getHeaderDefine(col, row);
890
+ if (!header || !header.field && !header.columns) break;
891
+ headers.push(header), row++;
892
+ }
893
+ return headers;
894
+ }
895
+ _getHeaderLayoutMap(col, row) {
896
+ return this.internalProps.layoutMap.getHeader(col, row);
897
+ }
898
+ _getBodyLayoutMap(col, row) {
899
+ return this.internalProps.layoutMap.getBody(col, row);
900
+ }
901
+ getContext() {
902
+ return this.internalProps.context;
903
+ }
904
+ getRecordByRowCol(col, row) {
905
+ var _a;
906
+ if (!this.internalProps.layoutMap.isHeader(col, row)) return null === (_a = this.internalProps.dataSource) || void 0 === _a ? void 0 : _a.get(this.getRecordIndexByRow(col, row));
907
+ }
908
+ getRecordStartRowByRecordIndex(index) {
909
+ return this.internalProps.layoutMap.getRecordStartRowByRecordIndex(index);
910
+ }
911
+ _getHeaderCellBySortState(sortState) {
912
+ const {layoutMap: layoutMap} = this.internalProps;
913
+ let hd;
914
+ if (hd = sortState.fieldKey ? layoutMap.headerObjects.find((col => col && col.fieldKey === sortState.fieldKey)) : layoutMap.headerObjects.find((col => col && col.field === sortState.field)),
915
+ hd) {
916
+ return layoutMap.getHeaderCellAdress(hd.id);
917
+ }
918
+ }
919
+ getCellRange(col, row) {
920
+ return this.internalProps.layoutMap.getCellRange(col, row);
921
+ }
922
+ isCellRangeEqual(col, row, targetCol, targetRow) {
923
+ return this.internalProps.layoutMap.isCellRangeEqual(col, row, targetCol, targetRow);
924
+ }
925
+ _getLayoutCellId(col, row) {
926
+ return this.internalProps.layoutMap.getCellId(col, row);
927
+ }
928
+ getHeaderDescription(col, row) {
929
+ var _a;
930
+ const field = this._getHeaderLayoutMap(col, row), fieldDef = null == field ? void 0 : field.define, description = null !== (_a = null == fieldDef ? void 0 : fieldDef.description) && void 0 !== _a ? _a : null == field ? void 0 : field.description;
931
+ if ("function" == typeof description) {
932
+ return description({
933
+ col: col,
934
+ row: row,
935
+ value: this.getCellValue(col, row),
936
+ dataValue: this.getCellOriginValue(col, row)
937
+ });
938
+ }
939
+ return description;
940
+ }
941
+ setRecords(records, sort) {
942
+ var _a, _b;
943
+ const time = "undefined" != typeof window ? window.performance.now() : 0;
944
+ if (this.scenegraph.clearCells(), void 0 !== sort && (this.sortState = sort, this.stateManeger.setSortState(this.sortState)),
945
+ records) {
946
+ if ((0, tableHelper_1._setRecords)(this, records), this.sortState) {
947
+ let order, field, fieldKey;
948
+ if (Array.isArray(this.sortState) ? 0 !== this.sortState.length && ({order: order, field: field, fieldKey: fieldKey} = null === (_a = this.sortState) || void 0 === _a ? void 0 : _a[0]) : ({order: order, field: field, fieldKey: fieldKey} = this.sortState),
949
+ order && field && "normal" !== order) {
950
+ const sortFunc = this.getSortFuncFromHeaderOption(void 0, field, fieldKey);
951
+ let hd;
952
+ hd = fieldKey ? this.internalProps.layoutMap.headerObjects.find((col => col && col.fieldKey === fieldKey)) : this.internalProps.layoutMap.headerObjects.find((col => col && col.field === field)),
953
+ (null === (_b = null == hd ? void 0 : hd.define) || void 0 === _b ? void 0 : _b.sort) && this.dataSource.sort(hd.field, order, null != sortFunc ? sortFunc : util_1.defaultOrderFn);
954
+ }
955
+ }
956
+ this.refreshRowColCount();
957
+ } else (0, tableHelper_1._setRecords)(this, records);
958
+ this.scenegraph.createSceneGraph(), this.invalidate(), console.log("setRecords cost time:", ("undefined" != typeof window ? window.performance.now() : 0) - time);
959
+ }
960
+ setDropDownMenuHighlight(cells) {
961
+ this.stateManeger.setDropDownMenuHighlight(cells);
962
+ }
963
+ _dropDownMenuIsHighlight(colNow, rowNow, index) {
964
+ return this.stateManeger.dropDownMenuIsHighlight(colNow, rowNow, index);
965
+ }
966
+ isHeader(col, row) {
967
+ return this.internalProps.layoutMap && this.internalProps.layoutMap.isHeader(col, row);
968
+ }
969
+ isColumnHeader(col, row) {
970
+ var _a;
971
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isColumnHeader(col, row);
972
+ }
973
+ isRowHeader(col, row) {
974
+ var _a;
975
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isRowHeader(col, row);
976
+ }
977
+ isCornerHeader(col, row) {
978
+ var _a;
979
+ return null === (_a = this.internalProps.layoutMap) || void 0 === _a ? void 0 : _a.isCornerHeader(col, row);
980
+ }
981
+ getCellInfo(col, row) {
982
+ const colDef = this.isHeader(col, row) ? this.getHeaderDefine(col, row) : this.getBodyColumnDefine(col, row);
983
+ return {
984
+ col: col,
985
+ row: row,
986
+ field: this.getHeaderField(col, row),
987
+ cellHeaderPaths: this.internalProps.layoutMap.getCellHeaderPaths(col, row),
988
+ caption: colDef.caption,
989
+ columnType: colDef.columnType ? "string" == typeof colDef.columnType ? colDef.columnType : "progressbar" : "text",
990
+ originData: this.getCellOriginRecord(col, row),
991
+ cellRange: this.getCellRangeRelativeRect({
992
+ col: col,
993
+ row: row
994
+ }),
995
+ value: this.getCellValue(col, row),
996
+ dataValue: this.getCellOriginValue(col, row),
997
+ cellType: this.getCellType(col, row),
998
+ scaleRatio: this.canvas.getBoundingClientRect().width / this.canvas.offsetWidth
999
+ };
1000
+ }
1001
+ _hasField(field, col, row) {
1002
+ if (null == field) return !1;
1003
+ if (this.internalProps.layoutMap.isHeader(col, row)) return !1;
1004
+ const index = this.getRecordIndexByRow(col, row);
1005
+ return this.internalProps.dataSource.hasField(index, field);
1006
+ }
1007
+ _getCellStyle(col, row) {
1008
+ const {layoutMap: layoutMap} = this.internalProps;
1009
+ if (layoutMap.isHeader(col, row)) {
1010
+ let cacheStyle = this.headerStyleCache.get(`${col}-${row}`);
1011
+ if (cacheStyle) return cacheStyle;
1012
+ const hd = layoutMap.getHeader(col, row), styleClass = this.internalProps.headerHelper.getStyleClass(hd.headerType), {style: style} = hd;
1013
+ return cacheStyle = headerStyleContents.of(style, layoutMap.isColumnHeader(col, row) ? this.theme.headerStyle : layoutMap.isRowHeader(col, row) ? this.theme.rowHeaderStyle : this.theme.cornerHeaderStyle, {
1014
+ col: col,
1015
+ row: row,
1016
+ table: this,
1017
+ value: this.getCellValue(col, row),
1018
+ dataValue: this.getCellOriginValue(col, row),
1019
+ cellHeaderPaths: this.getCellHeaderPaths(col, row)
1020
+ }, styleClass, this.options.autoWrapText), this.headerStyleCache.set(`${col}-${row}`, cacheStyle),
1021
+ cacheStyle;
1022
+ }
1023
+ let cacheKey;
1024
+ cacheKey = this.isListTable() && !this.transpose || this.isPivotTable() && this.internalProps.layoutMap.indicatorsAsCol ? col : row;
1025
+ let cacheStyle = this.bodyStyleCache.get(cacheKey);
1026
+ if (cacheStyle) return cacheStyle;
1027
+ const column = layoutMap.getBody(col, row), styleClass = this.internalProps.bodyHelper.getStyleClass(column.columnType), style = null == column ? void 0 : column.style;
1028
+ return cacheStyle = columnStyleContents.of(style, this.theme.bodyStyle, {
1029
+ col: col,
1030
+ row: row,
1031
+ table: this,
1032
+ value: this.getCellValue(col, row),
1033
+ dataValue: this.getCellOriginValue(col, row),
1034
+ cellHeaderPaths: this.getCellHeaderPaths(col, row)
1035
+ }, styleClass, this.options.autoWrapText), this.bodyStyleCache.set(cacheKey, cacheStyle),
1036
+ cacheStyle;
1037
+ }
1038
+ _canResizeColumn(col, row) {
1039
+ if (!(col >= 0 && row >= 0)) return !1;
1040
+ if (this.isCellRangeEqual(col, row, col + 1, row)) return !1;
1041
+ if ("none" === this.internalProps.columnResizeMode) return !1;
1042
+ if ("header" === this.internalProps.columnResizeMode) {
1043
+ if (!this.isHeader(col, row)) return !1;
1044
+ } else if ("body" === this.internalProps.columnResizeMode && this.isHeader(col, row)) return !1;
1045
+ const limit = this.colWidthsLimit[col];
1046
+ return !(limit && limit.min && limit.max) || limit.max !== limit.min;
1047
+ }
1048
+ _canDragHeaderPosition(col, row) {
1049
+ if (this.isHeader(col, row) && this.stateManeger.isSelected(col, row)) {
1050
+ const selectRange = this.stateManeger.select.ranges[0];
1051
+ if (this.isColumnHeader(col, row)) {
1052
+ if (selectRange.end.row !== this.rowCount - 1) return !1;
1053
+ } else {
1054
+ if (!this.isRowHeader(col, row)) return !1;
1055
+ if (selectRange.end.col !== this.colCount - 1) return !1;
1056
+ }
1057
+ const define = this.getHeaderDefine(col, row);
1058
+ if (void 0 === define.dragHeader) {
1059
+ if ("all" === this.internalProps.dragHeaderMode) return !0;
1060
+ if ("column" === this.internalProps.dragHeaderMode) {
1061
+ if (this.isColumnHeader(col, row)) return !0;
1062
+ } else if ("row" === this.internalProps.dragHeaderMode && this.isRowHeader(col, row)) return !0;
1063
+ return !1;
1064
+ }
1065
+ return define.dragHeader;
1066
+ }
1067
+ return !1;
1068
+ }
1069
+ getCellIcons(col, row) {
1070
+ let icons;
1071
+ if (this.isHeader(col, row)) icons = this.internalProps.headerHelper.getIcons(col, row); else {
1072
+ const cellValue = this.getCellValue(col, row), dataValue = this.getCellOriginValue(col, row), ctx = this.internalProps.context;
1073
+ icons = this.internalProps.bodyHelper.getIcons(col, row, cellValue, dataValue, ctx);
1074
+ }
1075
+ return icons;
1076
+ }
1077
+ showDropDownMenu(col, row, dropDownMenuOptions) {
1078
+ let menuType = "dropdown-menu";
1079
+ dropDownMenuOptions && (menuType = Array.isArray(dropDownMenuOptions.content) ? "dropdown-menu" : "container"),
1080
+ "html" === this.internalProps.menu.renderMode && (this.stateManeger.menu.isShow = !0,
1081
+ this.internalProps.menuHandler._bindToCell(col, row, menuType, dropDownMenuOptions));
1082
+ }
1083
+ showTooltip(col, row, tooltipOptions) {
1084
+ "html" === this.internalProps.tooltip.renderMode && this.internalProps.tooltipHandler._bindToCell(col, row, tooltipOptions);
1085
+ }
1086
+ getCellStyle(col, row) {
1087
+ const actStyle = this._getCellStyle(col, row), theme = (0, column_helper_1.getStyleTheme)(actStyle, this, col, row, get_prop_1.getProp).theme, {autoWrapText: autoWrapText, lineClamp: lineClamp, textOverflow: textOverflow} = actStyle;
1088
+ return {
1089
+ textAlign: theme.text.textAlign,
1090
+ textBaseline: theme.text.textBaseline,
1091
+ bgColor: theme.group.fillColor,
1092
+ color: theme.text.fillColor,
1093
+ fontFamily: theme.text.fontFamily,
1094
+ fontSize: theme.text.fontSize,
1095
+ fontWeight: theme.text.fontWeight,
1096
+ fontVariant: theme.text.fontVariant,
1097
+ fontStyle: theme.text.fontStyle,
1098
+ lineHeight: theme.text.lineHeight,
1099
+ autoWrapText: null != autoWrapText && autoWrapText,
1100
+ lineClamp: null != lineClamp ? lineClamp : "auto",
1101
+ textOverflow: textOverflow,
1102
+ borderColor: theme.group.strokeColor,
1103
+ borderLineWidth: theme.group.lineWidth,
1104
+ borderLineDash: theme.group.lineDash,
1105
+ underline: theme.text.underline,
1106
+ underlineDash: theme.text.underlineDash,
1107
+ lineThrough: theme.text.lineThrough,
1108
+ lineThroughDash: theme.text.lineThroughDash
1109
+ };
1110
+ }
1111
+ getAllBodyCells(colMaxCount, rowMaxCount) {
1112
+ const start_col = this.rowHeaderLevelCount, start_row = this.columnHeaderLevelCount, end_col = this.colCount - 1, end_row = this.rowCount - 1;
1113
+ return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1114
+ }
1115
+ getAllCells(colMaxCount, rowMaxCount) {
1116
+ const start_col = 0, start_row = 0, end_col = this.colCount - 1, end_row = this.rowCount - 1;
1117
+ return Array(Math.min(null != rowMaxCount ? rowMaxCount : 2e3, end_row - start_row + 1, this.rowCount)).fill(0).map(((_, i) => Array(Math.min(null != colMaxCount ? colMaxCount : 2e3, end_col - start_col + 1, this.colCount)).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1118
+ }
1119
+ getAllColumnHeaderCells() {
1120
+ const start_col = this.rowHeaderLevelCount, start_row = 0, end_col = this.colCount - 1, end_row = this.columnHeaderLevelCount - 1;
1121
+ return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1122
+ }
1123
+ getAllRowHeaderCells() {
1124
+ const start_col = 0, start_row = this.columnHeaderLevelCount, end_col = this.rowHeaderLevelCount - 1, end_row = this.rowCount - 1;
1125
+ return Array(end_row - start_row + 1).fill(0).map(((_, i) => Array(end_col - start_col + 1).fill(0).map(((_, j) => this.getCellInfo(j + start_col, i + start_row)))));
1126
+ }
1127
+ scrollToCell(cellAddr) {
1128
+ const drawRange = this.getDrawRange();
1129
+ if ((0, util_1.isValid)(cellAddr.col) && cellAddr.col >= this.frozenColCount) {
1130
+ const frozenWidth = this.getFrozenColsWidth(), left = this.getColsWidth(0, cellAddr.col - 1);
1131
+ this.scrollLeft = Math.min(left - frozenWidth, this.getAllColsWidth() - drawRange.width);
1132
+ }
1133
+ if ((0, util_1.isValid)(cellAddr.row) && cellAddr.row >= this.frozenRowCount) {
1134
+ const frozenHeight = this.getFrozenRowsHeight(), top = this.getRowsHeight(0, cellAddr.row - 1);
1135
+ this.scrollTop = Math.min(top - frozenHeight, this.getAllRowsHeight() - drawRange.height);
1136
+ }
1137
+ this.invalidate();
1138
+ }
1139
+ getCopyValue() {
1140
+ const ranges = this.stateManeger.select.ranges;
1141
+ let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
1142
+ ranges.forEach((a => {
1143
+ minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
1144
+ minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
1145
+ }));
1146
+ const isExistDataInRow = r => {
1147
+ let isExist = !1;
1148
+ return ranges.forEach((range => {
1149
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
1150
+ minRow <= r && maxRow >= r && (isExist = !0);
1151
+ })), isExist;
1152
+ }, isExistDataInCol = c => {
1153
+ let isExist = !1;
1154
+ return ranges.forEach((range => {
1155
+ const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1156
+ minCol <= c && maxCol >= c && (isExist = !0);
1157
+ })), isExist;
1158
+ }, getRangeExistDataInCell = (c, r) => {
1159
+ let isExistRange;
1160
+ return ranges.forEach((range => {
1161
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1162
+ minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
1163
+ })), isExistRange;
1164
+ }, getCopyCellValue = (col, row, range) => {
1165
+ const cellRange = this.getCellRange(col, row);
1166
+ let copyStartCol = cellRange.start.col, copyStartRow = cellRange.start.row;
1167
+ if (range) {
1168
+ const rangeMinCol = Math.min(range.start.col, range.end.col), rangeMinRow = Math.min(range.start.row, range.end.row);
1169
+ copyStartCol = Math.max(rangeMinCol, cellRange.start.col), copyStartRow = Math.max(rangeMinRow, cellRange.start.row);
1170
+ }
1171
+ if (copyStartCol !== col || copyStartRow !== row) return "";
1172
+ return this.getCellValue(col, row);
1173
+ };
1174
+ let copyValue = "";
1175
+ for (let r = minRow; r <= maxRow; r++) {
1176
+ if (isExistDataInRow(r)) {
1177
+ for (let c = minCol; c <= maxCol; c++) {
1178
+ if (isExistDataInCol(c)) {
1179
+ const range = getRangeExistDataInCell(c, r);
1180
+ if (range) {
1181
+ const copyCellValue = getCopyCellValue(c, r, range);
1182
+ if ("undefined" != typeof Promise && copyCellValue instanceof Promise) ; else {
1183
+ const strCellValue = `${copyCellValue}`;
1184
+ /^\[object .*\]$/.exec(strCellValue) || (copyValue += strCellValue);
1185
+ }
1186
+ (c < range.end.col || c < maxCol) && (copyValue += "\t");
1187
+ } else copyValue += "\t";
1188
+ }
1189
+ }
1190
+ copyValue += "\n";
1191
+ }
1192
+ }
1193
+ return copyValue;
1194
+ }
1195
+ getSelectedCellInfos() {
1196
+ const ranges = this.stateManeger.select.ranges;
1197
+ let minCol = Math.min(ranges[0].start.col, ranges[0].end.col), maxCol = Math.max(ranges[0].start.col, ranges[0].end.col), minRow = Math.min(ranges[0].start.row, ranges[0].end.row), maxRow = Math.max(ranges[0].start.row, ranges[0].end.row);
1198
+ ranges.forEach((a => {
1199
+ minCol = Math.min(minCol, a.start.col, a.end.col), maxCol = Math.max(maxCol, a.start.col, a.end.col),
1200
+ minRow = Math.min(minRow, a.start.row, a.end.row), maxRow = Math.max(maxRow, a.start.row, a.end.row);
1201
+ }));
1202
+ const isExistDataInRow = r => {
1203
+ let isExist = !1;
1204
+ return ranges.forEach((range => {
1205
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row);
1206
+ minRow <= r && maxRow >= r && (isExist = !0);
1207
+ })), isExist;
1208
+ }, isExistDataInCol = c => {
1209
+ let isExist = !1;
1210
+ return ranges.forEach((range => {
1211
+ const minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1212
+ minCol <= c && maxCol >= c && (isExist = !0);
1213
+ })), isExist;
1214
+ }, getRangeExistDataInCell = (c, r) => {
1215
+ let isExistRange;
1216
+ return ranges.forEach((range => {
1217
+ const minRow = Math.min(range.start.row, range.end.row), maxRow = Math.max(range.start.row, range.end.row), minCol = Math.min(range.start.col, range.end.col), maxCol = Math.max(range.start.col, range.end.col);
1218
+ minCol <= c && maxCol >= c && minRow <= r && maxRow >= r && (isExistRange = range);
1219
+ })), isExistRange;
1220
+ }, cellInfoArray = [];
1221
+ for (let r = minRow; r <= maxRow; r++) {
1222
+ if (isExistDataInRow(r)) {
1223
+ const cellInfoRow = [];
1224
+ for (let c = minCol; c <= maxCol; c++) {
1225
+ if (isExistDataInCol(c)) {
1226
+ if (getRangeExistDataInCell(c, r)) {
1227
+ const cellInfo = this.getCellInfo(c, r);
1228
+ cellInfoRow.push(cellInfo);
1229
+ }
1230
+ }
1231
+ }
1232
+ cellInfoArray.push(cellInfoRow);
1233
+ }
1234
+ }
1235
+ return cellInfoArray;
1236
+ }
1237
+ measureText(text, font) {
1238
+ return measure_text_1.textMeasure.measureText(text, font);
1239
+ }
1240
+ measureTextBounds(attributes) {
1241
+ const text = new text_1.WrapText(attributes);
1242
+ return {
1243
+ width: text.AABBBounds.width(),
1244
+ height: text.AABBBounds.height()
1245
+ };
1246
+ }
1247
+ getCustomRender(col, row) {
1248
+ let customRender;
1249
+ if ("body" !== this.getCellType(col, row)) {
1250
+ const define = this.getHeaderDefine(col, row);
1251
+ customRender = null == define ? void 0 : define.headerCustomRender;
1252
+ } else {
1253
+ const define = this.getBodyColumnDefine(col, row);
1254
+ customRender = (null == define ? void 0 : define.customRender) || this.customRender;
1255
+ }
1256
+ return customRender;
1257
+ }
1258
+ getCustomLayout(col, row) {
1259
+ let customLayout;
1260
+ if ("body" !== this.getCellType(col, row)) {
1261
+ const define = this.getHeaderDefine(col, row);
1262
+ customLayout = null == define ? void 0 : define.headerCustomLayout;
1263
+ } else {
1264
+ const define = this.getBodyColumnDefine(col, row);
1265
+ customLayout = null == define ? void 0 : define.customLayout;
1266
+ }
1267
+ return customLayout;
1268
+ }
1269
+ }
1270
+
1271
+ exports.BaseTable = BaseTable;
1272
+ //# sourceMappingURL=BaseTable.js.map