k-vtable 1.0.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 (2044) hide show
  1. package/README.md +151 -0
  2. package/cjs/ListTable-all.d.ts +3 -0
  3. package/cjs/ListTable-all.js +20 -0
  4. package/cjs/ListTable-all.js.map +1 -0
  5. package/cjs/ListTable-simple.d.ts +3 -0
  6. package/cjs/ListTable-simple.js +14 -0
  7. package/cjs/ListTable-simple.js.map +1 -0
  8. package/cjs/ListTable.d.ts +101 -0
  9. package/cjs/ListTable.js +682 -0
  10. package/cjs/ListTable.js.map +1 -0
  11. package/cjs/PivotChart.d.ts +100 -0
  12. package/cjs/PivotChart.js +755 -0
  13. package/cjs/PivotChart.js.map +1 -0
  14. package/cjs/PivotTable-all.d.ts +3 -0
  15. package/cjs/PivotTable-all.js +19 -0
  16. package/cjs/PivotTable-all.js.map +1 -0
  17. package/cjs/PivotTable-simple.d.ts +3 -0
  18. package/cjs/PivotTable-simple.js +14 -0
  19. package/cjs/PivotTable-simple.js.map +1 -0
  20. package/cjs/PivotTable.d.ts +112 -0
  21. package/cjs/PivotTable.js +992 -0
  22. package/cjs/PivotTable.js.map +1 -0
  23. package/cjs/body-helper/body-helper.d.ts +20 -0
  24. package/cjs/body-helper/body-helper.js +121 -0
  25. package/cjs/body-helper/body-helper.js.map +1 -0
  26. package/cjs/body-helper/style/ButtonStyle.d.ts +45 -0
  27. package/cjs/body-helper/style/ButtonStyle.js +110 -0
  28. package/cjs/body-helper/style/ButtonStyle.js.map +1 -0
  29. package/cjs/body-helper/style/CheckboxStyle.d.ts +42 -0
  30. package/cjs/body-helper/style/CheckboxStyle.js +104 -0
  31. package/cjs/body-helper/style/CheckboxStyle.js.map +1 -0
  32. package/cjs/body-helper/style/ImageStyle.d.ts +7 -0
  33. package/cjs/body-helper/style/ImageStyle.js +24 -0
  34. package/cjs/body-helper/style/ImageStyle.js.map +1 -0
  35. package/cjs/body-helper/style/MultilineTextStyle.d.ts +13 -0
  36. package/cjs/body-helper/style/MultilineTextStyle.js +38 -0
  37. package/cjs/body-helper/style/MultilineTextStyle.js.map +1 -0
  38. package/cjs/body-helper/style/NumberStyle.d.ts +7 -0
  39. package/cjs/body-helper/style/NumberStyle.js +24 -0
  40. package/cjs/body-helper/style/NumberStyle.js.map +1 -0
  41. package/cjs/body-helper/style/ProgressBarStyle.d.ts +55 -0
  42. package/cjs/body-helper/style/ProgressBarStyle.js +139 -0
  43. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -0
  44. package/cjs/body-helper/style/RadioStyle.d.ts +45 -0
  45. package/cjs/body-helper/style/RadioStyle.js +111 -0
  46. package/cjs/body-helper/style/RadioStyle.js.map +1 -0
  47. package/cjs/body-helper/style/Style.d.ts +95 -0
  48. package/cjs/body-helper/style/Style.js +225 -0
  49. package/cjs/body-helper/style/Style.js.map +1 -0
  50. package/cjs/body-helper/style/SwitchStyle.d.ts +36 -0
  51. package/cjs/body-helper/style/SwitchStyle.js +90 -0
  52. package/cjs/body-helper/style/SwitchStyle.js.map +1 -0
  53. package/cjs/body-helper/style.d.ts +11 -0
  54. package/cjs/body-helper/style.js +52 -0
  55. package/cjs/body-helper/style.js.map +1 -0
  56. package/cjs/chartModule.d.ts +3 -0
  57. package/cjs/chartModule.js +14 -0
  58. package/cjs/chartModule.js.map +1 -0
  59. package/cjs/components/axis/axis.d.ts +52 -0
  60. package/cjs/components/axis/axis.js +190 -0
  61. package/cjs/components/axis/axis.js.map +1 -0
  62. package/cjs/components/axis/band-scale.d.ts +18 -0
  63. package/cjs/components/axis/band-scale.js +54 -0
  64. package/cjs/components/axis/band-scale.js.map +1 -0
  65. package/cjs/components/axis/get-axis-attributes.d.ts +146 -0
  66. package/cjs/components/axis/get-axis-attributes.js +199 -0
  67. package/cjs/components/axis/get-axis-attributes.js.map +1 -0
  68. package/cjs/components/axis/get-axis-component-size.d.ts +6 -0
  69. package/cjs/components/axis/get-axis-component-size.js +138 -0
  70. package/cjs/components/axis/get-axis-component-size.js.map +1 -0
  71. package/cjs/components/axis/label-overlap.d.ts +3 -0
  72. package/cjs/components/axis/label-overlap.js +64 -0
  73. package/cjs/components/axis/label-overlap.js.map +1 -0
  74. package/cjs/components/axis/linear-scale.d.ts +48 -0
  75. package/cjs/components/axis/linear-scale.js +136 -0
  76. package/cjs/components/axis/linear-scale.js.map +1 -0
  77. package/cjs/components/empty-tip/empty-tip.d.ts +25 -0
  78. package/cjs/components/empty-tip/empty-tip.js +102 -0
  79. package/cjs/components/empty-tip/empty-tip.js.map +1 -0
  80. package/cjs/components/index.d.ts +6 -0
  81. package/cjs/components/index.js +44 -0
  82. package/cjs/components/index.js.map +1 -0
  83. package/cjs/components/legend/continue-legend/continue-legend.d.ts +24 -0
  84. package/cjs/components/legend/continue-legend/continue-legend.js +98 -0
  85. package/cjs/components/legend/continue-legend/continue-legend.js.map +1 -0
  86. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
  87. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js +139 -0
  88. package/cjs/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
  89. package/cjs/components/legend/create-legend.d.ts +6 -0
  90. package/cjs/components/legend/create-legend.js +14 -0
  91. package/cjs/components/legend/create-legend.js.map +1 -0
  92. package/cjs/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
  93. package/cjs/components/legend/discrete-legend/discrete-legend.js +115 -0
  94. package/cjs/components/legend/discrete-legend/discrete-legend.js.map +1 -0
  95. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
  96. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js +90 -0
  97. package/cjs/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
  98. package/cjs/components/menu/dom/BaseMenu.d.ts +16 -0
  99. package/cjs/components/menu/dom/BaseMenu.js +33 -0
  100. package/cjs/components/menu/dom/BaseMenu.js.map +1 -0
  101. package/cjs/components/menu/dom/Menu.d.ts +9 -0
  102. package/cjs/components/menu/dom/Menu.js +24 -0
  103. package/cjs/components/menu/dom/Menu.js.map +1 -0
  104. package/cjs/components/menu/dom/MenuHandler.d.ts +24 -0
  105. package/cjs/components/menu/dom/MenuHandler.js +148 -0
  106. package/cjs/components/menu/dom/MenuHandler.js.map +1 -0
  107. package/cjs/components/menu/dom/logic/MenuContainer.d.ts +21 -0
  108. package/cjs/components/menu/dom/logic/MenuContainer.js +105 -0
  109. package/cjs/components/menu/dom/logic/MenuContainer.js.map +1 -0
  110. package/cjs/components/menu/dom/logic/MenuElement.d.ts +26 -0
  111. package/cjs/components/menu/dom/logic/MenuElement.js +287 -0
  112. package/cjs/components/menu/dom/logic/MenuElement.js.map +1 -0
  113. package/cjs/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
  114. package/cjs/components/menu/dom/logic/MenuElementStyle.js +17 -0
  115. package/cjs/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  116. package/cjs/components/react/react-custom-layout.d.ts +27 -0
  117. package/cjs/components/react/react-custom-layout.js +179 -0
  118. package/cjs/components/react/react-custom-layout.js.map +1 -0
  119. package/cjs/components/title/title.d.ts +21 -0
  120. package/cjs/components/title/title.js +89 -0
  121. package/cjs/components/title/title.js.map +1 -0
  122. package/cjs/components/tooltip/BaseTooltip.d.ts +22 -0
  123. package/cjs/components/tooltip/BaseTooltip.js +35 -0
  124. package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
  125. package/cjs/components/tooltip/Tooltip.d.ts +5 -0
  126. package/cjs/components/tooltip/Tooltip.js +16 -0
  127. package/cjs/components/tooltip/Tooltip.js.map +1 -0
  128. package/cjs/components/tooltip/TooltipHandler.d.ts +31 -0
  129. package/cjs/components/tooltip/TooltipHandler.js +132 -0
  130. package/cjs/components/tooltip/TooltipHandler.js.map +1 -0
  131. package/cjs/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
  132. package/cjs/components/tooltip/logic/BubbleTooltipElement.js +163 -0
  133. package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  134. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
  135. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +17 -0
  136. package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  137. package/cjs/components/util/orient.d.ts +3 -0
  138. package/cjs/components/util/orient.js +14 -0
  139. package/cjs/components/util/orient.js.map +1 -0
  140. package/cjs/components/util/register.d.ts +3 -0
  141. package/cjs/components/util/register.js +15 -0
  142. package/cjs/components/util/register.js.map +1 -0
  143. package/cjs/components/util/transform.d.ts +5 -0
  144. package/cjs/components/util/transform.js +45 -0
  145. package/cjs/components/util/transform.js.map +1 -0
  146. package/cjs/core/BaseTable.d.ts +436 -0
  147. package/cjs/core/BaseTable.js +1866 -0
  148. package/cjs/core/BaseTable.js.map +1 -0
  149. package/cjs/core/FouseInput.d.ts +12 -0
  150. package/cjs/core/FouseInput.js +41 -0
  151. package/cjs/core/FouseInput.js.map +1 -0
  152. package/cjs/core/TABLE_EVENT_TYPE.d.ts +61 -0
  153. package/cjs/core/TABLE_EVENT_TYPE.js +65 -0
  154. package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -0
  155. package/cjs/core/animation.d.ts +17 -0
  156. package/cjs/core/animation.js +61 -0
  157. package/cjs/core/animation.js.map +1 -0
  158. package/cjs/core/factory.d.ts +11 -0
  159. package/cjs/core/factory.js +29 -0
  160. package/cjs/core/factory.js.map +1 -0
  161. package/cjs/core/group-helper.d.ts +6 -0
  162. package/cjs/core/group-helper.js +22 -0
  163. package/cjs/core/group-helper.js.map +1 -0
  164. package/cjs/core/record-helper.d.ts +8 -0
  165. package/cjs/core/record-helper.js +428 -0
  166. package/cjs/core/record-helper.js.map +1 -0
  167. package/cjs/core/row-series-number-helper.d.ts +8 -0
  168. package/cjs/core/row-series-number-helper.js +46 -0
  169. package/cjs/core/row-series-number-helper.js.map +1 -0
  170. package/cjs/core/style-helper.d.ts +3 -0
  171. package/cjs/core/style-helper.js +110 -0
  172. package/cjs/core/style-helper.js.map +1 -0
  173. package/cjs/core/style.d.ts +1 -0
  174. package/cjs/core/style.js +17 -0
  175. package/cjs/core/style.js.map +1 -0
  176. package/cjs/core/tableHelper.d.ts +45 -0
  177. package/cjs/core/tableHelper.js +287 -0
  178. package/cjs/core/tableHelper.js.map +1 -0
  179. package/cjs/core/utils/get-cell-position.d.ts +12 -0
  180. package/cjs/core/utils/get-cell-position.js +214 -0
  181. package/cjs/core/utils/get-cell-position.js.map +1 -0
  182. package/cjs/core/utils/get-custom-merge-cell-func.d.ts +2 -0
  183. package/cjs/core/utils/get-custom-merge-cell-func.js +14 -0
  184. package/cjs/core/utils/get-custom-merge-cell-func.js.map +1 -0
  185. package/cjs/core.d.ts +3 -0
  186. package/cjs/core.js +15 -0
  187. package/cjs/core.js.map +1 -0
  188. package/cjs/data/CachedDataSource.d.ts +36 -0
  189. package/cjs/data/CachedDataSource.js +259 -0
  190. package/cjs/data/CachedDataSource.js.map +1 -0
  191. package/cjs/data/DataSource.d.ts +129 -0
  192. package/cjs/data/DataSource.js +758 -0
  193. package/cjs/data/DataSource.js.map +1 -0
  194. package/cjs/data.d.ts +4 -0
  195. package/cjs/data.js +24 -0
  196. package/cjs/data.js.map +1 -0
  197. package/cjs/dataset/DataStatistics.d.ts +10 -0
  198. package/cjs/dataset/DataStatistics.js +81 -0
  199. package/cjs/dataset/DataStatistics.js.map +1 -0
  200. package/cjs/dataset/dataset-pivot-table.d.ts +60 -0
  201. package/cjs/dataset/dataset-pivot-table.js +349 -0
  202. package/cjs/dataset/dataset-pivot-table.js.map +1 -0
  203. package/cjs/dataset/dataset.d.ts +108 -0
  204. package/cjs/dataset/dataset.js +810 -0
  205. package/cjs/dataset/dataset.js.map +1 -0
  206. package/cjs/dataset/flatDataToObject.d.ts +46 -0
  207. package/cjs/dataset/flatDataToObject.js +133 -0
  208. package/cjs/dataset/flatDataToObject.js.map +1 -0
  209. package/cjs/edit/edit-manager.d.ts +19 -0
  210. package/cjs/edit/edit-manager.js +124 -0
  211. package/cjs/edit/edit-manager.js.map +1 -0
  212. package/cjs/edit/editors.d.ts +5 -0
  213. package/cjs/edit/editors.js +10 -0
  214. package/cjs/edit/editors.js.map +1 -0
  215. package/cjs/event/EventHandler.d.ts +47 -0
  216. package/cjs/event/EventHandler.js +128 -0
  217. package/cjs/event/EventHandler.js.map +1 -0
  218. package/cjs/event/EventTarget.d.ts +12 -0
  219. package/cjs/event/EventTarget.js +67 -0
  220. package/cjs/event/EventTarget.js.map +1 -0
  221. package/cjs/event/component/button.d.ts +2 -0
  222. package/cjs/event/component/button.js +21 -0
  223. package/cjs/event/component/button.js.map +1 -0
  224. package/cjs/event/drill.d.ts +5 -0
  225. package/cjs/event/drill.js +38 -0
  226. package/cjs/event/drill.js.map +1 -0
  227. package/cjs/event/event.d.ts +63 -0
  228. package/cjs/event/event.js +208 -0
  229. package/cjs/event/event.js.map +1 -0
  230. package/cjs/event/helper.d.ts +2 -0
  231. package/cjs/event/helper.js +35 -0
  232. package/cjs/event/helper.js.map +1 -0
  233. package/cjs/event/listener/container-dom.d.ts +2 -0
  234. package/cjs/event/listener/container-dom.js +343 -0
  235. package/cjs/event/listener/container-dom.js.map +1 -0
  236. package/cjs/event/listener/scroll-bar.d.ts +2 -0
  237. package/cjs/event/listener/scroll-bar.js +80 -0
  238. package/cjs/event/listener/scroll-bar.js.map +1 -0
  239. package/cjs/event/listener/table-group.d.ts +6 -0
  240. package/cjs/event/listener/table-group.js +519 -0
  241. package/cjs/event/listener/table-group.js.map +1 -0
  242. package/cjs/event/listener/touch.d.ts +2 -0
  243. package/cjs/event/listener/touch.js +84 -0
  244. package/cjs/event/listener/touch.js.map +1 -0
  245. package/cjs/event/media-click.d.ts +2 -0
  246. package/cjs/event/media-click.js +85 -0
  247. package/cjs/event/media-click.js.map +1 -0
  248. package/cjs/event/scroll.d.ts +20 -0
  249. package/cjs/event/scroll.js +92 -0
  250. package/cjs/event/scroll.js.map +1 -0
  251. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
  252. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js +31 -0
  253. package/cjs/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
  254. package/cjs/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
  255. package/cjs/event/self-event-listener/base-table/dropdown-menu.js +16 -0
  256. package/cjs/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
  257. package/cjs/event/self-event-listener/base-table/icon.d.ts +2 -0
  258. package/cjs/event/self-event-listener/base-table/icon.js +23 -0
  259. package/cjs/event/self-event-listener/base-table/icon.js.map +1 -0
  260. package/cjs/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
  261. package/cjs/event/self-event-listener/base-table/right-button-click.js +25 -0
  262. package/cjs/event/self-event-listener/base-table/right-button-click.js.map +1 -0
  263. package/cjs/event/self-event-listener/list-table/checkbox.d.ts +3 -0
  264. package/cjs/event/self-event-listener/list-table/checkbox.js +124 -0
  265. package/cjs/event/self-event-listener/list-table/checkbox.js.map +1 -0
  266. package/cjs/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
  267. package/cjs/event/self-event-listener/pivot-chart/axis-click.js +43 -0
  268. package/cjs/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
  269. package/cjs/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
  270. package/cjs/event/self-event-listener/pivot-chart/axis-hover.js +41 -0
  271. package/cjs/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
  272. package/cjs/event/self-event-listener/pivot-table/drill.d.ts +1 -0
  273. package/cjs/event/self-event-listener/pivot-table/drill.js +3 -0
  274. package/cjs/event/self-event-listener/pivot-table/drill.js.map +1 -0
  275. package/cjs/event/sparkline-event.d.ts +2 -0
  276. package/cjs/event/sparkline-event.js +27 -0
  277. package/cjs/event/sparkline-event.js.map +1 -0
  278. package/cjs/event/util.d.ts +20 -0
  279. package/cjs/event/util.js +46 -0
  280. package/cjs/event/util.js.map +1 -0
  281. package/cjs/header-helper/header-helper.d.ts +29 -0
  282. package/cjs/header-helper/header-helper.js +272 -0
  283. package/cjs/header-helper/header-helper.js.map +1 -0
  284. package/cjs/header-helper/style/CheckboxStyle.d.ts +42 -0
  285. package/cjs/header-helper/style/CheckboxStyle.js +104 -0
  286. package/cjs/header-helper/style/CheckboxStyle.js.map +1 -0
  287. package/cjs/header-helper/style/ImageStyle.d.ts +7 -0
  288. package/cjs/header-helper/style/ImageStyle.js +25 -0
  289. package/cjs/header-helper/style/ImageStyle.js.map +1 -0
  290. package/cjs/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  291. package/cjs/header-helper/style/MultilineTextHeaderStyle.js +38 -0
  292. package/cjs/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  293. package/cjs/header-helper/style/SortHeaderStyle.d.ts +1 -0
  294. package/cjs/header-helper/style/SortHeaderStyle.js +3 -0
  295. package/cjs/header-helper/style/SortHeaderStyle.js.map +1 -0
  296. package/cjs/header-helper/style/Style.d.ts +95 -0
  297. package/cjs/header-helper/style/Style.js +226 -0
  298. package/cjs/header-helper/style/Style.js.map +1 -0
  299. package/cjs/header-helper/style.d.ts +6 -0
  300. package/cjs/header-helper/style.js +35 -0
  301. package/cjs/header-helper/style.js.map +1 -0
  302. package/cjs/icons.d.ts +5 -0
  303. package/cjs/icons.js +299 -0
  304. package/cjs/icons.js.map +1 -0
  305. package/cjs/index.d.ts +33 -0
  306. package/cjs/index.js +215 -0
  307. package/cjs/index.js.map +1 -0
  308. package/cjs/layout/cell-range/simple-cell-range.d.ts +4 -0
  309. package/cjs/layout/cell-range/simple-cell-range.js +148 -0
  310. package/cjs/layout/cell-range/simple-cell-range.js.map +1 -0
  311. package/cjs/layout/chart-helper/get-axis-config.d.ts +39 -0
  312. package/cjs/layout/chart-helper/get-axis-config.js +398 -0
  313. package/cjs/layout/chart-helper/get-axis-config.js.map +1 -0
  314. package/cjs/layout/chart-helper/get-axis-domain.d.ts +11 -0
  315. package/cjs/layout/chart-helper/get-axis-domain.js +49 -0
  316. package/cjs/layout/chart-helper/get-axis-domain.js.map +1 -0
  317. package/cjs/layout/chart-helper/get-chart-spec.d.ts +13 -0
  318. package/cjs/layout/chart-helper/get-chart-spec.js +287 -0
  319. package/cjs/layout/chart-helper/get-chart-spec.js.map +1 -0
  320. package/cjs/layout/chart-helper/tick-align.d.ts +12 -0
  321. package/cjs/layout/chart-helper/tick-align.js +23 -0
  322. package/cjs/layout/chart-helper/tick-align.js.map +1 -0
  323. package/cjs/layout/chart-helper/zero-align.d.ts +10 -0
  324. package/cjs/layout/chart-helper/zero-align.js +119 -0
  325. package/cjs/layout/chart-helper/zero-align.js.map +1 -0
  326. package/cjs/layout/index.d.ts +1 -0
  327. package/cjs/layout/index.js +14 -0
  328. package/cjs/layout/index.js.map +1 -0
  329. package/cjs/layout/layout-helper.d.ts +20 -0
  330. package/cjs/layout/layout-helper.js +154 -0
  331. package/cjs/layout/layout-helper.js.map +1 -0
  332. package/cjs/layout/pivot-header-layout.d.ts +279 -0
  333. package/cjs/layout/pivot-header-layout.js +1845 -0
  334. package/cjs/layout/pivot-header-layout.js.map +1 -0
  335. package/cjs/layout/pivot-layout.d.ts +1 -0
  336. package/cjs/layout/pivot-layout.js +1 -0
  337. package/cjs/layout/pivot-layout.js.map +1 -0
  338. package/cjs/layout/row-height-map.d.ts +34 -0
  339. package/cjs/layout/row-height-map.js +176 -0
  340. package/cjs/layout/row-height-map.js.map +1 -0
  341. package/cjs/layout/simple-header-layout.d.ts +153 -0
  342. package/cjs/layout/simple-header-layout.js +779 -0
  343. package/cjs/layout/simple-header-layout.js.map +1 -0
  344. package/cjs/layout/tree-helper.d.ts +71 -0
  345. package/cjs/layout/tree-helper.js +405 -0
  346. package/cjs/layout/tree-helper.js.map +1 -0
  347. package/cjs/plugins/chartModules.d.ts +3 -0
  348. package/cjs/plugins/chartModules.js +6 -0
  349. package/cjs/plugins/chartModules.js.map +1 -0
  350. package/cjs/plugins/custom-cell-style.d.ts +26 -0
  351. package/cjs/plugins/custom-cell-style.js +113 -0
  352. package/cjs/plugins/custom-cell-style.js.map +1 -0
  353. package/cjs/plugins/icons.d.ts +12 -0
  354. package/cjs/plugins/icons.js +26 -0
  355. package/cjs/plugins/icons.js.map +1 -0
  356. package/cjs/plugins/invert-highlight.d.ts +1 -0
  357. package/cjs/plugins/invert-highlight.js +23 -0
  358. package/cjs/plugins/invert-highlight.js.map +1 -0
  359. package/cjs/plugins/list-tree-stick-cell.d.ts +18 -0
  360. package/cjs/plugins/list-tree-stick-cell.js +180 -0
  361. package/cjs/plugins/list-tree-stick-cell.js.map +1 -0
  362. package/cjs/plugins/themes.d.ts +4 -0
  363. package/cjs/plugins/themes.js +6 -0
  364. package/cjs/plugins/themes.js.map +1 -0
  365. package/cjs/register.d.ts +15 -0
  366. package/cjs/register.js +45 -0
  367. package/cjs/register.js.map +1 -0
  368. package/cjs/render/jsx/index.d.ts +8 -0
  369. package/cjs/render/jsx/index.js +91 -0
  370. package/cjs/render/jsx/index.js.map +1 -0
  371. package/cjs/render/layout/arc.d.ts +12 -0
  372. package/cjs/render/layout/arc.js +18 -0
  373. package/cjs/render/layout/arc.js.map +1 -0
  374. package/cjs/render/layout/circle.d.ts +12 -0
  375. package/cjs/render/layout/circle.js +18 -0
  376. package/cjs/render/layout/circle.js.map +1 -0
  377. package/cjs/render/layout/container.d.ts +14 -0
  378. package/cjs/render/layout/container.js +27 -0
  379. package/cjs/render/layout/container.js.map +1 -0
  380. package/cjs/render/layout/direction.d.ts +22 -0
  381. package/cjs/render/layout/direction.js +35 -0
  382. package/cjs/render/layout/direction.js.map +1 -0
  383. package/cjs/render/layout/element.d.ts +43 -0
  384. package/cjs/render/layout/element.js +27 -0
  385. package/cjs/render/layout/element.js.map +1 -0
  386. package/cjs/render/layout/group-element.d.ts +5 -0
  387. package/cjs/render/layout/group-element.js +16 -0
  388. package/cjs/render/layout/group-element.js.map +1 -0
  389. package/cjs/render/layout/group.d.ts +12 -0
  390. package/cjs/render/layout/group.js +18 -0
  391. package/cjs/render/layout/group.js.map +1 -0
  392. package/cjs/render/layout/icon.d.ts +21 -0
  393. package/cjs/render/layout/icon.js +50 -0
  394. package/cjs/render/layout/icon.js.map +1 -0
  395. package/cjs/render/layout/image.d.ts +14 -0
  396. package/cjs/render/layout/image.js +19 -0
  397. package/cjs/render/layout/image.js.map +1 -0
  398. package/cjs/render/layout/index.d.ts +13 -0
  399. package/cjs/render/layout/index.js +41 -0
  400. package/cjs/render/layout/index.js.map +1 -0
  401. package/cjs/render/layout/line.d.ts +1 -0
  402. package/cjs/render/layout/line.js +15 -0
  403. package/cjs/render/layout/line.js.map +1 -0
  404. package/cjs/render/layout/percent-calc.d.ts +5 -0
  405. package/cjs/render/layout/percent-calc.js +13 -0
  406. package/cjs/render/layout/percent-calc.js.map +1 -0
  407. package/cjs/render/layout/rect.d.ts +12 -0
  408. package/cjs/render/layout/rect.js +18 -0
  409. package/cjs/render/layout/rect.js.map +1 -0
  410. package/cjs/render/layout/tag.d.ts +14 -0
  411. package/cjs/render/layout/tag.js +21 -0
  412. package/cjs/render/layout/tag.js.map +1 -0
  413. package/cjs/render/layout/text.d.ts +13 -0
  414. package/cjs/render/layout/text.js +23 -0
  415. package/cjs/render/layout/text.js.map +1 -0
  416. package/cjs/scenegraph/animation/appear.d.ts +2 -0
  417. package/cjs/scenegraph/animation/appear.js +26 -0
  418. package/cjs/scenegraph/animation/appear.js.map +1 -0
  419. package/cjs/scenegraph/component/cell-content.d.ts +36 -0
  420. package/cjs/scenegraph/component/cell-content.js +109 -0
  421. package/cjs/scenegraph/component/cell-content.js.map +1 -0
  422. package/cjs/scenegraph/component/cell-mover.d.ts +21 -0
  423. package/cjs/scenegraph/component/cell-mover.js +119 -0
  424. package/cjs/scenegraph/component/cell-mover.js.map +1 -0
  425. package/cjs/scenegraph/component/custom.d.ts +16 -0
  426. package/cjs/scenegraph/component/custom.js +309 -0
  427. package/cjs/scenegraph/component/custom.js.map +1 -0
  428. package/cjs/scenegraph/component/drill-icon.d.ts +9 -0
  429. package/cjs/scenegraph/component/drill-icon.js +70 -0
  430. package/cjs/scenegraph/component/drill-icon.js.map +1 -0
  431. package/cjs/scenegraph/component/menu.d.ts +41 -0
  432. package/cjs/scenegraph/component/menu.js +217 -0
  433. package/cjs/scenegraph/component/menu.js.map +1 -0
  434. package/cjs/scenegraph/component/table-component.d.ts +52 -0
  435. package/cjs/scenegraph/component/table-component.js +560 -0
  436. package/cjs/scenegraph/component/table-component.js.map +1 -0
  437. package/cjs/scenegraph/component/util.d.ts +3 -0
  438. package/cjs/scenegraph/component/util.js +18 -0
  439. package/cjs/scenegraph/component/util.js.map +1 -0
  440. package/cjs/scenegraph/debug-tool/debug-tool.d.ts +34 -0
  441. package/cjs/scenegraph/debug-tool/debug-tool.js +125 -0
  442. package/cjs/scenegraph/debug-tool/debug-tool.js.map +1 -0
  443. package/cjs/scenegraph/debug-tool/index.d.ts +4 -0
  444. package/cjs/scenegraph/debug-tool/index.js +14 -0
  445. package/cjs/scenegraph/debug-tool/index.js.map +1 -0
  446. package/cjs/scenegraph/graphic/chart.d.ts +47 -0
  447. package/cjs/scenegraph/graphic/chart.js +129 -0
  448. package/cjs/scenegraph/graphic/chart.js.map +1 -0
  449. package/cjs/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
  450. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +166 -0
  451. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
  452. package/cjs/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
  453. package/cjs/scenegraph/graphic/contributions/chart-render.js +74 -0
  454. package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  455. package/cjs/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
  456. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js +92 -0
  457. package/cjs/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
  458. package/cjs/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
  459. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js +341 -0
  460. package/cjs/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  461. package/cjs/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
  462. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js +75 -0
  463. package/cjs/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  464. package/cjs/scenegraph/graphic/contributions/index.d.ts +3 -0
  465. package/cjs/scenegraph/graphic/contributions/index.js +46 -0
  466. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -0
  467. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
  468. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js +91 -0
  469. package/cjs/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  470. package/cjs/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
  471. package/cjs/scenegraph/graphic/contributions/text-contribution-render.js +72 -0
  472. package/cjs/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
  473. package/cjs/scenegraph/graphic/group.d.ts +37 -0
  474. package/cjs/scenegraph/graphic/group.js +135 -0
  475. package/cjs/scenegraph/graphic/group.js.map +1 -0
  476. package/cjs/scenegraph/graphic/icon.d.ts +47 -0
  477. package/cjs/scenegraph/graphic/icon.js +78 -0
  478. package/cjs/scenegraph/graphic/icon.js.map +1 -0
  479. package/cjs/scenegraph/graphic/mark.d.ts +4 -0
  480. package/cjs/scenegraph/graphic/mark.js +74 -0
  481. package/cjs/scenegraph/graphic/mark.js.map +1 -0
  482. package/cjs/scenegraph/graphic/text.d.ts +2 -0
  483. package/cjs/scenegraph/graphic/text.js +15 -0
  484. package/cjs/scenegraph/graphic/text.js.map +1 -0
  485. package/cjs/scenegraph/group-creater/cell-helper.d.ts +16 -0
  486. package/cjs/scenegraph/group-creater/cell-helper.js +325 -0
  487. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -0
  488. package/cjs/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  489. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +146 -0
  490. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  491. package/cjs/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
  492. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js +100 -0
  493. package/cjs/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  494. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
  495. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js +143 -0
  496. package/cjs/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
  497. package/cjs/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
  498. package/cjs/scenegraph/group-creater/cell-type/image-cell.js +234 -0
  499. package/cjs/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  500. package/cjs/scenegraph/group-creater/cell-type/index.d.ts +10 -0
  501. package/cjs/scenegraph/group-creater/cell-type/index.js +67 -0
  502. package/cjs/scenegraph/group-creater/cell-type/index.js.map +1 -0
  503. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
  504. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +390 -0
  505. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  506. package/cjs/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
  507. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js +150 -0
  508. package/cjs/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
  509. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
  510. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js +201 -0
  511. package/cjs/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  512. package/cjs/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  513. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js +152 -0
  514. package/cjs/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  515. package/cjs/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
  516. package/cjs/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  517. package/cjs/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  518. package/cjs/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
  519. package/cjs/scenegraph/group-creater/cell-type/video-cell.js +139 -0
  520. package/cjs/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  521. package/cjs/scenegraph/group-creater/column-helper.d.ts +14 -0
  522. package/cjs/scenegraph/group-creater/column-helper.js +142 -0
  523. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -0
  524. package/cjs/scenegraph/group-creater/column.d.ts +4 -0
  525. package/cjs/scenegraph/group-creater/column.js +31 -0
  526. package/cjs/scenegraph/group-creater/column.js.map +1 -0
  527. package/cjs/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
  528. package/cjs/scenegraph/group-creater/init-scenegraph.js +58 -0
  529. package/cjs/scenegraph/group-creater/init-scenegraph.js.map +1 -0
  530. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  531. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js +53 -0
  532. package/cjs/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  533. package/cjs/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  534. package/cjs/scenegraph/group-creater/progress/default-width-height.js +24 -0
  535. package/cjs/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  536. package/cjs/scenegraph/group-creater/progress/proxy.d.ts +79 -0
  537. package/cjs/scenegraph/group-creater/progress/proxy.js +341 -0
  538. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -0
  539. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
  540. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +173 -0
  541. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
  542. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
  543. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +190 -0
  544. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
  545. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
  546. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js +62 -0
  547. package/cjs/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
  548. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
  549. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js +75 -0
  550. package/cjs/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
  551. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
  552. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js +37 -0
  553. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
  554. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
  555. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js +47 -0
  556. package/cjs/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
  557. package/cjs/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
  558. package/cjs/scenegraph/group-creater/progress/update-position/util.js +98 -0
  559. package/cjs/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
  560. package/cjs/scenegraph/icon/icon-update.d.ts +28 -0
  561. package/cjs/scenegraph/icon/icon-update.js +188 -0
  562. package/cjs/scenegraph/icon/icon-update.js.map +1 -0
  563. package/cjs/scenegraph/layout/compute-col-width.d.ts +4 -0
  564. package/cjs/scenegraph/layout/compute-col-width.js +344 -0
  565. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -0
  566. package/cjs/scenegraph/layout/compute-row-height.d.ts +3 -0
  567. package/cjs/scenegraph/layout/compute-row-height.js +335 -0
  568. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -0
  569. package/cjs/scenegraph/layout/frozen-react.d.ts +5 -0
  570. package/cjs/scenegraph/layout/frozen-react.js +91 -0
  571. package/cjs/scenegraph/layout/frozen-react.js.map +1 -0
  572. package/cjs/scenegraph/layout/frozen.d.ts +6 -0
  573. package/cjs/scenegraph/layout/frozen.js +330 -0
  574. package/cjs/scenegraph/layout/frozen.js.map +1 -0
  575. package/cjs/scenegraph/layout/height-util.d.ts +7 -0
  576. package/cjs/scenegraph/layout/height-util.js +127 -0
  577. package/cjs/scenegraph/layout/height-util.js.map +1 -0
  578. package/cjs/scenegraph/layout/move-cell.d.ts +2 -0
  579. package/cjs/scenegraph/layout/move-cell.js +50 -0
  580. package/cjs/scenegraph/layout/move-cell.js.map +1 -0
  581. package/cjs/scenegraph/layout/update-col.d.ts +3 -0
  582. package/cjs/scenegraph/layout/update-col.js +207 -0
  583. package/cjs/scenegraph/layout/update-col.js.map +1 -0
  584. package/cjs/scenegraph/layout/update-height.d.ts +6 -0
  585. package/cjs/scenegraph/layout/update-height.js +146 -0
  586. package/cjs/scenegraph/layout/update-height.js.map +1 -0
  587. package/cjs/scenegraph/layout/update-row.d.ts +3 -0
  588. package/cjs/scenegraph/layout/update-row.js +284 -0
  589. package/cjs/scenegraph/layout/update-row.js.map +1 -0
  590. package/cjs/scenegraph/layout/update-width.d.ts +2 -0
  591. package/cjs/scenegraph/layout/update-width.js +238 -0
  592. package/cjs/scenegraph/layout/update-width.js.map +1 -0
  593. package/cjs/scenegraph/refresh-node/update-chart.d.ts +7 -0
  594. package/cjs/scenegraph/refresh-node/update-chart.js +201 -0
  595. package/cjs/scenegraph/refresh-node/update-chart.js.map +1 -0
  596. package/cjs/scenegraph/scenegraph.d.ts +182 -0
  597. package/cjs/scenegraph/scenegraph.js +898 -0
  598. package/cjs/scenegraph/scenegraph.js.map +1 -0
  599. package/cjs/scenegraph/select/create-select-border.d.ts +3 -0
  600. package/cjs/scenegraph/select/create-select-border.js +60 -0
  601. package/cjs/scenegraph/select/create-select-border.js.map +1 -0
  602. package/cjs/scenegraph/select/delete-select-border.d.ts +5 -0
  603. package/cjs/scenegraph/select/delete-select-border.js +37 -0
  604. package/cjs/scenegraph/select/delete-select-border.js.map +1 -0
  605. package/cjs/scenegraph/select/move-select-border.d.ts +2 -0
  606. package/cjs/scenegraph/select/move-select-border.js +15 -0
  607. package/cjs/scenegraph/select/move-select-border.js.map +1 -0
  608. package/cjs/scenegraph/select/update-select-border.d.ts +8 -0
  609. package/cjs/scenegraph/select/update-select-border.js +272 -0
  610. package/cjs/scenegraph/select/update-select-border.js.map +1 -0
  611. package/cjs/scenegraph/select/update-select-style.d.ts +3 -0
  612. package/cjs/scenegraph/select/update-select-style.js +13 -0
  613. package/cjs/scenegraph/select/update-select-style.js.map +1 -0
  614. package/cjs/scenegraph/stick-text/index.d.ts +3 -0
  615. package/cjs/scenegraph/stick-text/index.js +189 -0
  616. package/cjs/scenegraph/stick-text/index.js.map +1 -0
  617. package/cjs/scenegraph/style/corner-cell.d.ts +3 -0
  618. package/cjs/scenegraph/style/corner-cell.js +28 -0
  619. package/cjs/scenegraph/style/corner-cell.js.map +1 -0
  620. package/cjs/scenegraph/style/frame-border.d.ts +8 -0
  621. package/cjs/scenegraph/style/frame-border.js +144 -0
  622. package/cjs/scenegraph/style/frame-border.js.map +1 -0
  623. package/cjs/scenegraph/utils/border-line.d.ts +8 -0
  624. package/cjs/scenegraph/utils/border-line.js +51 -0
  625. package/cjs/scenegraph/utils/border-line.js.map +1 -0
  626. package/cjs/scenegraph/utils/break-string.d.ts +5 -0
  627. package/cjs/scenegraph/utils/break-string.js +24 -0
  628. package/cjs/scenegraph/utils/break-string.js.map +1 -0
  629. package/cjs/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  630. package/cjs/scenegraph/utils/cell-border-stroke-width.js +21 -0
  631. package/cjs/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  632. package/cjs/scenegraph/utils/cell-pos.d.ts +4 -0
  633. package/cjs/scenegraph/utils/cell-pos.js +18 -0
  634. package/cjs/scenegraph/utils/cell-pos.js.map +1 -0
  635. package/cjs/scenegraph/utils/deal-promise-data.d.ts +2 -0
  636. package/cjs/scenegraph/utils/deal-promise-data.js +12 -0
  637. package/cjs/scenegraph/utils/deal-promise-data.js.map +1 -0
  638. package/cjs/scenegraph/utils/empty-group.d.ts +2 -0
  639. package/cjs/scenegraph/utils/empty-group.js +10 -0
  640. package/cjs/scenegraph/utils/empty-group.js.map +1 -0
  641. package/cjs/scenegraph/utils/font.d.ts +1 -0
  642. package/cjs/scenegraph/utils/font.js +20 -0
  643. package/cjs/scenegraph/utils/font.js.map +1 -0
  644. package/cjs/scenegraph/utils/get-cell-merge.d.ts +3 -0
  645. package/cjs/scenegraph/utils/get-cell-merge.js +17 -0
  646. package/cjs/scenegraph/utils/get-cell-merge.js.map +1 -0
  647. package/cjs/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  648. package/cjs/scenegraph/utils/get-hierarchy-offset.js +27 -0
  649. package/cjs/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  650. package/cjs/scenegraph/utils/get-prop.d.ts +4 -0
  651. package/cjs/scenegraph/utils/get-prop.js +44 -0
  652. package/cjs/scenegraph/utils/get-prop.js.map +1 -0
  653. package/cjs/scenegraph/utils/icon.d.ts +12 -0
  654. package/cjs/scenegraph/utils/icon.js +35 -0
  655. package/cjs/scenegraph/utils/icon.js.map +1 -0
  656. package/cjs/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
  657. package/cjs/scenegraph/utils/is-merge-cell-group.js +16 -0
  658. package/cjs/scenegraph/utils/is-merge-cell-group.js.map +1 -0
  659. package/cjs/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  660. package/cjs/scenegraph/utils/keep-aspect-ratio.js +17 -0
  661. package/cjs/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  662. package/cjs/scenegraph/utils/padding.d.ts +6 -0
  663. package/cjs/scenegraph/utils/padding.js +21 -0
  664. package/cjs/scenegraph/utils/padding.js.map +1 -0
  665. package/cjs/scenegraph/utils/render-service.d.ts +7 -0
  666. package/cjs/scenegraph/utils/render-service.js +27 -0
  667. package/cjs/scenegraph/utils/render-service.js.map +1 -0
  668. package/cjs/scenegraph/utils/text-icon-layout.d.ts +29 -0
  669. package/cjs/scenegraph/utils/text-icon-layout.js +335 -0
  670. package/cjs/scenegraph/utils/text-icon-layout.js.map +1 -0
  671. package/cjs/scenegraph/utils/text-measure.d.ts +38 -0
  672. package/cjs/scenegraph/utils/text-measure.js +166 -0
  673. package/cjs/scenegraph/utils/text-measure.js.map +1 -0
  674. package/cjs/scenegraph/utils/text-pos.d.ts +8 -0
  675. package/cjs/scenegraph/utils/text-pos.js +27 -0
  676. package/cjs/scenegraph/utils/text-pos.js.map +1 -0
  677. package/cjs/scenegraph/utils/update-container.d.ts +2 -0
  678. package/cjs/scenegraph/utils/update-container.js +12 -0
  679. package/cjs/scenegraph/utils/update-container.js.map +1 -0
  680. package/cjs/state/cell-move/adjust-header.d.ts +3 -0
  681. package/cjs/state/cell-move/adjust-header.js +26 -0
  682. package/cjs/state/cell-move/adjust-header.js.map +1 -0
  683. package/cjs/state/cell-move/index.d.ts +4 -0
  684. package/cjs/state/cell-move/index.js +112 -0
  685. package/cjs/state/cell-move/index.js.map +1 -0
  686. package/cjs/state/checkbox/checkbox.d.ts +12 -0
  687. package/cjs/state/checkbox/checkbox.js +210 -0
  688. package/cjs/state/checkbox/checkbox.js.map +1 -0
  689. package/cjs/state/common/check-in-select.d.ts +7 -0
  690. package/cjs/state/common/check-in-select.js +63 -0
  691. package/cjs/state/common/check-in-select.js.map +1 -0
  692. package/cjs/state/drill/index.d.ts +2 -0
  693. package/cjs/state/drill/index.js +15 -0
  694. package/cjs/state/drill/index.js.map +1 -0
  695. package/cjs/state/frozen/index.d.ts +2 -0
  696. package/cjs/state/frozen/index.js +10 -0
  697. package/cjs/state/frozen/index.js.map +1 -0
  698. package/cjs/state/hover/col.d.ts +4 -0
  699. package/cjs/state/hover/col.js +24 -0
  700. package/cjs/state/hover/col.js.map +1 -0
  701. package/cjs/state/hover/is-cell-hover.d.ts +5 -0
  702. package/cjs/state/hover/is-cell-hover.js +49 -0
  703. package/cjs/state/hover/is-cell-hover.js.map +1 -0
  704. package/cjs/state/hover/row.d.ts +4 -0
  705. package/cjs/state/hover/row.js +22 -0
  706. package/cjs/state/hover/row.js.map +1 -0
  707. package/cjs/state/hover/single.d.ts +4 -0
  708. package/cjs/state/hover/single.js +18 -0
  709. package/cjs/state/hover/single.js.map +1 -0
  710. package/cjs/state/hover/update-cell.d.ts +2 -0
  711. package/cjs/state/hover/update-cell.js +24 -0
  712. package/cjs/state/hover/update-cell.js.map +1 -0
  713. package/cjs/state/hover/update-position.d.ts +2 -0
  714. package/cjs/state/hover/update-position.js +44 -0
  715. package/cjs/state/hover/update-position.js.map +1 -0
  716. package/cjs/state/radio/radio.d.ts +7 -0
  717. package/cjs/state/radio/radio.js +96 -0
  718. package/cjs/state/radio/radio.js.map +1 -0
  719. package/cjs/state/resize/update-resize-column.d.ts +2 -0
  720. package/cjs/state/resize/update-resize-column.js +85 -0
  721. package/cjs/state/resize/update-resize-column.js.map +1 -0
  722. package/cjs/state/resize/update-resize-row.d.ts +2 -0
  723. package/cjs/state/resize/update-resize-row.js +64 -0
  724. package/cjs/state/resize/update-resize-row.js.map +1 -0
  725. package/cjs/state/select/custom-select.d.ts +7 -0
  726. package/cjs/state/select/custom-select.js +36 -0
  727. package/cjs/state/select/custom-select.js.map +1 -0
  728. package/cjs/state/select/is-cell-select-highlight.d.ts +6 -0
  729. package/cjs/state/select/is-cell-select-highlight.js +88 -0
  730. package/cjs/state/select/is-cell-select-highlight.js.map +1 -0
  731. package/cjs/state/select/update-position.d.ts +4 -0
  732. package/cjs/state/select/update-position.js +308 -0
  733. package/cjs/state/select/update-position.js.map +1 -0
  734. package/cjs/state/sort/index.d.ts +2 -0
  735. package/cjs/state/sort/index.js +56 -0
  736. package/cjs/state/sort/index.js.map +1 -0
  737. package/cjs/state/spark-line/index.d.ts +3 -0
  738. package/cjs/state/spark-line/index.js +102 -0
  739. package/cjs/state/spark-line/index.js.map +1 -0
  740. package/cjs/state/state.d.ts +206 -0
  741. package/cjs/state/state.js +796 -0
  742. package/cjs/state/state.js.map +1 -0
  743. package/cjs/themes/ARCO.d.ts +3 -0
  744. package/cjs/themes/ARCO.js +113 -0
  745. package/cjs/themes/ARCO.js.map +1 -0
  746. package/cjs/themes/BRIGHT.d.ts +3 -0
  747. package/cjs/themes/BRIGHT.js +70 -0
  748. package/cjs/themes/BRIGHT.js.map +1 -0
  749. package/cjs/themes/DARK.d.ts +3 -0
  750. package/cjs/themes/DARK.js +103 -0
  751. package/cjs/themes/DARK.js.map +1 -0
  752. package/cjs/themes/DEFAULT.d.ts +3 -0
  753. package/cjs/themes/DEFAULT.js +86 -0
  754. package/cjs/themes/DEFAULT.js.map +1 -0
  755. package/cjs/themes/SIMPLIFY.d.ts +3 -0
  756. package/cjs/themes/SIMPLIFY.js +53 -0
  757. package/cjs/themes/SIMPLIFY.js.map +1 -0
  758. package/cjs/themes/component.d.ts +35 -0
  759. package/cjs/themes/component.js +47 -0
  760. package/cjs/themes/component.js.map +1 -0
  761. package/cjs/themes/theme.d.ts +67 -0
  762. package/cjs/themes/theme.js +777 -0
  763. package/cjs/themes/theme.js.map +1 -0
  764. package/cjs/themes.d.ts +28 -0
  765. package/cjs/themes.js +57 -0
  766. package/cjs/themes.js.map +1 -0
  767. package/cjs/tools/LimitPromiseQueue.d.ts +8 -0
  768. package/cjs/tools/LimitPromiseQueue.js +29 -0
  769. package/cjs/tools/LimitPromiseQueue.js.map +1 -0
  770. package/cjs/tools/NumberMap.d.ts +23 -0
  771. package/cjs/tools/NumberMap.js +123 -0
  772. package/cjs/tools/NumberMap.js.map +1 -0
  773. package/cjs/tools/Rect.d.ts +24 -0
  774. package/cjs/tools/Rect.js +70 -0
  775. package/cjs/tools/Rect.js.map +1 -0
  776. package/cjs/tools/calc.d.ts +8 -0
  777. package/cjs/tools/calc.js +205 -0
  778. package/cjs/tools/calc.js.map +1 -0
  779. package/cjs/tools/cell-range.d.ts +2 -0
  780. package/cjs/tools/cell-range.js +10 -0
  781. package/cjs/tools/cell-range.js.map +1 -0
  782. package/cjs/tools/debounce.d.ts +1 -0
  783. package/cjs/tools/debounce.js +51 -0
  784. package/cjs/tools/debounce.js.map +1 -0
  785. package/cjs/tools/diff-cell.d.ts +72 -0
  786. package/cjs/tools/diff-cell.js +170 -0
  787. package/cjs/tools/diff-cell.js.map +1 -0
  788. package/cjs/tools/dom.d.ts +1 -0
  789. package/cjs/tools/dom.js +11 -0
  790. package/cjs/tools/dom.js.map +1 -0
  791. package/cjs/tools/env.d.ts +19 -0
  792. package/cjs/tools/env.js +48 -0
  793. package/cjs/tools/env.js.map +1 -0
  794. package/cjs/tools/get-data-path/create-dataset.d.ts +11 -0
  795. package/cjs/tools/get-data-path/create-dataset.js +149 -0
  796. package/cjs/tools/get-data-path/create-dataset.js.map +1 -0
  797. package/cjs/tools/get-data-path/index.d.ts +2 -0
  798. package/cjs/tools/get-data-path/index.js +51 -0
  799. package/cjs/tools/get-data-path/index.js.map +1 -0
  800. package/cjs/tools/global.d.ts +15 -0
  801. package/cjs/tools/global.js +15 -0
  802. package/cjs/tools/global.js.map +1 -0
  803. package/cjs/tools/helper.d.ts +72 -0
  804. package/cjs/tools/helper.js +228 -0
  805. package/cjs/tools/helper.js.map +1 -0
  806. package/cjs/tools/icons.d.ts +4 -0
  807. package/cjs/tools/icons.js +10 -0
  808. package/cjs/tools/icons.js.map +1 -0
  809. package/cjs/tools/isx.d.ts +16 -0
  810. package/cjs/tools/isx.js +117 -0
  811. package/cjs/tools/isx.js.map +1 -0
  812. package/cjs/tools/join.d.ts +1 -0
  813. package/cjs/tools/join.js +12 -0
  814. package/cjs/tools/join.js.map +1 -0
  815. package/cjs/tools/merge-range.d.ts +11 -0
  816. package/cjs/tools/merge-range.js +35 -0
  817. package/cjs/tools/merge-range.js.map +1 -0
  818. package/cjs/tools/pixel-ratio.d.ts +2 -0
  819. package/cjs/tools/pixel-ratio.js +16 -0
  820. package/cjs/tools/pixel-ratio.js.map +1 -0
  821. package/cjs/tools/sort.d.ts +2 -0
  822. package/cjs/tools/sort.js +18 -0
  823. package/cjs/tools/sort.js.map +1 -0
  824. package/cjs/tools/style.d.ts +5 -0
  825. package/cjs/tools/style.js +30 -0
  826. package/cjs/tools/style.js.map +1 -0
  827. package/cjs/tools/update-row.d.ts +19 -0
  828. package/cjs/tools/update-row.js +38 -0
  829. package/cjs/tools/update-row.js.map +1 -0
  830. package/cjs/tools/util.d.ts +46 -0
  831. package/cjs/tools/util.js +279 -0
  832. package/cjs/tools/util.js.map +1 -0
  833. package/cjs/ts-types/animation/appear.d.ts +11 -0
  834. package/cjs/ts-types/animation/appear.js +6 -0
  835. package/cjs/ts-types/animation/appear.js.map +1 -0
  836. package/cjs/ts-types/animation/index.d.ts +1 -0
  837. package/cjs/ts-types/animation/index.js +21 -0
  838. package/cjs/ts-types/animation/index.js.map +1 -0
  839. package/cjs/ts-types/base-table.d.ts +641 -0
  840. package/cjs/ts-types/base-table.js +6 -0
  841. package/cjs/ts-types/base-table.js.map +1 -0
  842. package/cjs/ts-types/column/index.d.ts +2 -0
  843. package/cjs/ts-types/column/index.js +21 -0
  844. package/cjs/ts-types/column/index.js.map +1 -0
  845. package/cjs/ts-types/column/style.d.ts +151 -0
  846. package/cjs/ts-types/column/style.js +6 -0
  847. package/cjs/ts-types/column/style.js.map +1 -0
  848. package/cjs/ts-types/column/type.d.ts +2 -0
  849. package/cjs/ts-types/column/type.js +6 -0
  850. package/cjs/ts-types/column/type.js.map +1 -0
  851. package/cjs/ts-types/common.d.ts +114 -0
  852. package/cjs/ts-types/common.js +14 -0
  853. package/cjs/ts-types/common.js.map +1 -0
  854. package/cjs/ts-types/component/axis.d.ts +2 -0
  855. package/cjs/ts-types/component/axis.js +6 -0
  856. package/cjs/ts-types/component/axis.js.map +1 -0
  857. package/cjs/ts-types/component/empty-tip.d.ts +20 -0
  858. package/cjs/ts-types/component/empty-tip.js +6 -0
  859. package/cjs/ts-types/component/empty-tip.js.map +1 -0
  860. package/cjs/ts-types/component/index.d.ts +1 -0
  861. package/cjs/ts-types/component/index.js +21 -0
  862. package/cjs/ts-types/component/index.js.map +1 -0
  863. package/cjs/ts-types/component/legend.d.ts +18 -0
  864. package/cjs/ts-types/component/legend.js +6 -0
  865. package/cjs/ts-types/component/legend.js.map +1 -0
  866. package/cjs/ts-types/component/title.d.ts +49 -0
  867. package/cjs/ts-types/component/title.js +6 -0
  868. package/cjs/ts-types/component/title.js.map +1 -0
  869. package/cjs/ts-types/component/util.d.ts +1 -0
  870. package/cjs/ts-types/component/util.js +6 -0
  871. package/cjs/ts-types/component/util.js.map +1 -0
  872. package/cjs/ts-types/customElement.d.ts +128 -0
  873. package/cjs/ts-types/customElement.js +6 -0
  874. package/cjs/ts-types/customElement.js.map +1 -0
  875. package/cjs/ts-types/customLayout.d.ts +9 -0
  876. package/cjs/ts-types/customLayout.js +6 -0
  877. package/cjs/ts-types/customLayout.js.map +1 -0
  878. package/cjs/ts-types/dataset/aggregation.d.ts +192 -0
  879. package/cjs/ts-types/dataset/aggregation.js +423 -0
  880. package/cjs/ts-types/dataset/aggregation.js.map +1 -0
  881. package/cjs/ts-types/dataset/index.d.ts +1 -0
  882. package/cjs/ts-types/dataset/index.js +21 -0
  883. package/cjs/ts-types/dataset/index.js.map +1 -0
  884. package/cjs/ts-types/events.d.ts +363 -0
  885. package/cjs/ts-types/events.js +6 -0
  886. package/cjs/ts-types/events.js.map +1 -0
  887. package/cjs/ts-types/icon.d.ts +93 -0
  888. package/cjs/ts-types/icon.js +28 -0
  889. package/cjs/ts-types/icon.js.map +1 -0
  890. package/cjs/ts-types/index.d.ts +17 -0
  891. package/cjs/ts-types/index.js +29 -0
  892. package/cjs/ts-types/index.js.map +1 -0
  893. package/cjs/ts-types/list-table/define/basic-define.d.ts +50 -0
  894. package/cjs/ts-types/list-table/define/basic-define.js +6 -0
  895. package/cjs/ts-types/list-table/define/basic-define.js.map +1 -0
  896. package/cjs/ts-types/list-table/define/button-define.d.ts +9 -0
  897. package/cjs/ts-types/list-table/define/button-define.js +6 -0
  898. package/cjs/ts-types/list-table/define/button-define.js.map +1 -0
  899. package/cjs/ts-types/list-table/define/chart-define.d.ts +11 -0
  900. package/cjs/ts-types/list-table/define/chart-define.js +6 -0
  901. package/cjs/ts-types/list-table/define/chart-define.js.map +1 -0
  902. package/cjs/ts-types/list-table/define/checkbox-define.d.ts +15 -0
  903. package/cjs/ts-types/list-table/define/checkbox-define.js +6 -0
  904. package/cjs/ts-types/list-table/define/checkbox-define.js.map +1 -0
  905. package/cjs/ts-types/list-table/define/composite-define.d.ts +26 -0
  906. package/cjs/ts-types/list-table/define/composite-define.js +6 -0
  907. package/cjs/ts-types/list-table/define/composite-define.js.map +1 -0
  908. package/cjs/ts-types/list-table/define/image-define.d.ts +17 -0
  909. package/cjs/ts-types/list-table/define/image-define.js +6 -0
  910. package/cjs/ts-types/list-table/define/image-define.js.map +1 -0
  911. package/cjs/ts-types/list-table/define/index.d.ts +31 -0
  912. package/cjs/ts-types/list-table/define/index.js +6 -0
  913. package/cjs/ts-types/list-table/define/index.js.map +1 -0
  914. package/cjs/ts-types/list-table/define/link-define.d.ts +22 -0
  915. package/cjs/ts-types/list-table/define/link-define.js +6 -0
  916. package/cjs/ts-types/list-table/define/link-define.js.map +1 -0
  917. package/cjs/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
  918. package/cjs/ts-types/list-table/define/multilinetext-define.js +6 -0
  919. package/cjs/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  920. package/cjs/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  921. package/cjs/ts-types/list-table/define/progressbar-define.js +6 -0
  922. package/cjs/ts-types/list-table/define/progressbar-define.js.map +1 -0
  923. package/cjs/ts-types/list-table/define/radio-define.d.ts +11 -0
  924. package/cjs/ts-types/list-table/define/radio-define.js +6 -0
  925. package/cjs/ts-types/list-table/define/radio-define.js.map +1 -0
  926. package/cjs/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  927. package/cjs/ts-types/list-table/define/sparkline-define.js +6 -0
  928. package/cjs/ts-types/list-table/define/sparkline-define.js.map +1 -0
  929. package/cjs/ts-types/list-table/define/switch-define.d.ts +11 -0
  930. package/cjs/ts-types/list-table/define/switch-define.js +6 -0
  931. package/cjs/ts-types/list-table/define/switch-define.js.map +1 -0
  932. package/cjs/ts-types/list-table/index.d.ts +2 -0
  933. package/cjs/ts-types/list-table/index.js +21 -0
  934. package/cjs/ts-types/list-table/index.js.map +1 -0
  935. package/cjs/ts-types/list-table/layout-map/api.d.ts +126 -0
  936. package/cjs/ts-types/list-table/layout-map/api.js +6 -0
  937. package/cjs/ts-types/list-table/layout-map/api.js.map +1 -0
  938. package/cjs/ts-types/list-table/layout-map/index.d.ts +1 -0
  939. package/cjs/ts-types/list-table/layout-map/index.js +6 -0
  940. package/cjs/ts-types/list-table/layout-map/index.js.map +1 -0
  941. package/cjs/ts-types/menu.d.ts +74 -0
  942. package/cjs/ts-types/menu.js +6 -0
  943. package/cjs/ts-types/menu.js.map +1 -0
  944. package/cjs/ts-types/new-data-set.d.ts +158 -0
  945. package/cjs/ts-types/new-data-set.js +16 -0
  946. package/cjs/ts-types/new-data-set.js.map +1 -0
  947. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
  948. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +15 -0
  949. package/cjs/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  950. package/cjs/ts-types/pivot-table/corner.d.ts +37 -0
  951. package/cjs/ts-types/pivot-table/corner.js +6 -0
  952. package/cjs/ts-types/pivot-table/corner.js.map +1 -0
  953. package/cjs/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
  954. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js +6 -0
  955. package/cjs/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  956. package/cjs/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
  957. package/cjs/ts-types/pivot-table/dimension/image-dimension.js +6 -0
  958. package/cjs/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  959. package/cjs/ts-types/pivot-table/dimension/index.d.ts +6 -0
  960. package/cjs/ts-types/pivot-table/dimension/index.js +6 -0
  961. package/cjs/ts-types/pivot-table/dimension/index.js.map +1 -0
  962. package/cjs/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
  963. package/cjs/ts-types/pivot-table/dimension/link-dimension.js +6 -0
  964. package/cjs/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  965. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  966. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js +6 -0
  967. package/cjs/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  968. package/cjs/ts-types/pivot-table/index.d.ts +4 -0
  969. package/cjs/ts-types/pivot-table/index.js +22 -0
  970. package/cjs/ts-types/pivot-table/index.js.map +1 -0
  971. package/cjs/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
  972. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js +6 -0
  973. package/cjs/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  974. package/cjs/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
  975. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js +6 -0
  976. package/cjs/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  977. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
  978. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js +6 -0
  979. package/cjs/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
  980. package/cjs/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
  981. package/cjs/ts-types/pivot-table/indicator/composite-indicator.js +6 -0
  982. package/cjs/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
  983. package/cjs/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
  984. package/cjs/ts-types/pivot-table/indicator/image-indicator.js +6 -0
  985. package/cjs/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  986. package/cjs/ts-types/pivot-table/indicator/index.d.ts +12 -0
  987. package/cjs/ts-types/pivot-table/indicator/index.js +6 -0
  988. package/cjs/ts-types/pivot-table/indicator/index.js.map +1 -0
  989. package/cjs/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
  990. package/cjs/ts-types/pivot-table/indicator/link-indicator.js +6 -0
  991. package/cjs/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  992. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  993. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js +6 -0
  994. package/cjs/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  995. package/cjs/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  996. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js +6 -0
  997. package/cjs/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  998. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  999. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js +6 -0
  1000. package/cjs/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  1001. package/cjs/ts-types/pivot-table/title.d.ts +20 -0
  1002. package/cjs/ts-types/pivot-table/title.js +6 -0
  1003. package/cjs/ts-types/pivot-table/title.js.map +1 -0
  1004. package/cjs/ts-types/sparkline.d.ts +37 -0
  1005. package/cjs/ts-types/sparkline.js +6 -0
  1006. package/cjs/ts-types/sparkline.js.map +1 -0
  1007. package/cjs/ts-types/style-define.d.ts +72 -0
  1008. package/cjs/ts-types/style-define.js +6 -0
  1009. package/cjs/ts-types/style-define.js.map +1 -0
  1010. package/cjs/ts-types/table-engine.d.ts +405 -0
  1011. package/cjs/ts-types/table-engine.js +13 -0
  1012. package/cjs/ts-types/table-engine.js.map +1 -0
  1013. package/cjs/ts-types/theme.d.ts +164 -0
  1014. package/cjs/ts-types/theme.js +6 -0
  1015. package/cjs/ts-types/theme.js.map +1 -0
  1016. package/cjs/ts-types/tooltip.d.ts +26 -0
  1017. package/cjs/ts-types/tooltip.js +6 -0
  1018. package/cjs/ts-types/tooltip.js.map +1 -0
  1019. package/cjs/vrender.d.ts +8 -0
  1020. package/cjs/vrender.js +61 -0
  1021. package/cjs/vrender.js.map +1 -0
  1022. package/dist/vtable.js +83482 -0
  1023. package/dist/vtable.min.js +15 -0
  1024. package/es/ListTable-all.d.ts +3 -0
  1025. package/es/ListTable-all.js +17 -0
  1026. package/es/ListTable-all.js.map +1 -0
  1027. package/es/ListTable-simple.d.ts +3 -0
  1028. package/es/ListTable-simple.js +8 -0
  1029. package/es/ListTable-simple.js.map +1 -0
  1030. package/es/ListTable.d.ts +101 -0
  1031. package/es/ListTable.js +675 -0
  1032. package/es/ListTable.js.map +1 -0
  1033. package/es/PivotChart.d.ts +100 -0
  1034. package/es/PivotChart.js +773 -0
  1035. package/es/PivotChart.js.map +1 -0
  1036. package/es/PivotTable-all.d.ts +3 -0
  1037. package/es/PivotTable-all.js +13 -0
  1038. package/es/PivotTable-all.js.map +1 -0
  1039. package/es/PivotTable-simple.d.ts +3 -0
  1040. package/es/PivotTable-simple.js +8 -0
  1041. package/es/PivotTable-simple.js.map +1 -0
  1042. package/es/PivotTable.d.ts +112 -0
  1043. package/es/PivotTable.js +985 -0
  1044. package/es/PivotTable.js.map +1 -0
  1045. package/es/body-helper/body-helper.d.ts +20 -0
  1046. package/es/body-helper/body-helper.js +112 -0
  1047. package/es/body-helper/body-helper.js.map +1 -0
  1048. package/es/body-helper/style/ButtonStyle.d.ts +45 -0
  1049. package/es/body-helper/style/ButtonStyle.js +102 -0
  1050. package/es/body-helper/style/ButtonStyle.js.map +1 -0
  1051. package/es/body-helper/style/CheckboxStyle.d.ts +42 -0
  1052. package/es/body-helper/style/CheckboxStyle.js +96 -0
  1053. package/es/body-helper/style/CheckboxStyle.js.map +1 -0
  1054. package/es/body-helper/style/ImageStyle.d.ts +7 -0
  1055. package/es/body-helper/style/ImageStyle.js +16 -0
  1056. package/es/body-helper/style/ImageStyle.js.map +1 -0
  1057. package/es/body-helper/style/MultilineTextStyle.d.ts +13 -0
  1058. package/es/body-helper/style/MultilineTextStyle.js +30 -0
  1059. package/es/body-helper/style/MultilineTextStyle.js.map +1 -0
  1060. package/es/body-helper/style/NumberStyle.d.ts +7 -0
  1061. package/es/body-helper/style/NumberStyle.js +16 -0
  1062. package/es/body-helper/style/NumberStyle.js.map +1 -0
  1063. package/es/body-helper/style/ProgressBarStyle.d.ts +55 -0
  1064. package/es/body-helper/style/ProgressBarStyle.js +131 -0
  1065. package/es/body-helper/style/ProgressBarStyle.js.map +1 -0
  1066. package/es/body-helper/style/RadioStyle.d.ts +45 -0
  1067. package/es/body-helper/style/RadioStyle.js +103 -0
  1068. package/es/body-helper/style/RadioStyle.js.map +1 -0
  1069. package/es/body-helper/style/Style.d.ts +95 -0
  1070. package/es/body-helper/style/Style.js +219 -0
  1071. package/es/body-helper/style/Style.js.map +1 -0
  1072. package/es/body-helper/style/SwitchStyle.d.ts +36 -0
  1073. package/es/body-helper/style/SwitchStyle.js +82 -0
  1074. package/es/body-helper/style/SwitchStyle.js.map +1 -0
  1075. package/es/body-helper/style.d.ts +11 -0
  1076. package/es/body-helper/style.js +28 -0
  1077. package/es/body-helper/style.js.map +1 -0
  1078. package/es/chartModule.d.ts +3 -0
  1079. package/es/chartModule.js +10 -0
  1080. package/es/chartModule.js.map +1 -0
  1081. package/es/components/axis/axis.d.ts +52 -0
  1082. package/es/components/axis/axis.js +198 -0
  1083. package/es/components/axis/axis.js.map +1 -0
  1084. package/es/components/axis/band-scale.d.ts +18 -0
  1085. package/es/components/axis/band-scale.js +46 -0
  1086. package/es/components/axis/band-scale.js.map +1 -0
  1087. package/es/components/axis/get-axis-attributes.d.ts +146 -0
  1088. package/es/components/axis/get-axis-attributes.js +200 -0
  1089. package/es/components/axis/get-axis-attributes.js.map +1 -0
  1090. package/es/components/axis/get-axis-component-size.d.ts +6 -0
  1091. package/es/components/axis/get-axis-component-size.js +128 -0
  1092. package/es/components/axis/get-axis-component-size.js.map +1 -0
  1093. package/es/components/axis/label-overlap.d.ts +3 -0
  1094. package/es/components/axis/label-overlap.js +57 -0
  1095. package/es/components/axis/label-overlap.js.map +1 -0
  1096. package/es/components/axis/linear-scale.d.ts +48 -0
  1097. package/es/components/axis/linear-scale.js +115 -0
  1098. package/es/components/axis/linear-scale.js.map +1 -0
  1099. package/es/components/empty-tip/empty-tip.d.ts +25 -0
  1100. package/es/components/empty-tip/empty-tip.js +98 -0
  1101. package/es/components/empty-tip/empty-tip.js.map +1 -0
  1102. package/es/components/index.d.ts +6 -0
  1103. package/es/components/index.js +44 -0
  1104. package/es/components/index.js.map +1 -0
  1105. package/es/components/legend/continue-legend/continue-legend.d.ts +24 -0
  1106. package/es/components/legend/continue-legend/continue-legend.js +96 -0
  1107. package/es/components/legend/continue-legend/continue-legend.js.map +1 -0
  1108. package/es/components/legend/continue-legend/get-continue-legend-attributes.d.ts +5 -0
  1109. package/es/components/legend/continue-legend/get-continue-legend-attributes.js +132 -0
  1110. package/es/components/legend/continue-legend/get-continue-legend-attributes.js.map +1 -0
  1111. package/es/components/legend/create-legend.d.ts +6 -0
  1112. package/es/components/legend/create-legend.js +8 -0
  1113. package/es/components/legend/create-legend.js.map +1 -0
  1114. package/es/components/legend/discrete-legend/discrete-legend.d.ts +25 -0
  1115. package/es/components/legend/discrete-legend/discrete-legend.js +112 -0
  1116. package/es/components/legend/discrete-legend/discrete-legend.js.map +1 -0
  1117. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.d.ts +5 -0
  1118. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js +84 -0
  1119. package/es/components/legend/discrete-legend/get-discrete-legend-attributes.js.map +1 -0
  1120. package/es/components/menu/dom/BaseMenu.d.ts +16 -0
  1121. package/es/components/menu/dom/BaseMenu.js +25 -0
  1122. package/es/components/menu/dom/BaseMenu.js.map +1 -0
  1123. package/es/components/menu/dom/Menu.d.ts +9 -0
  1124. package/es/components/menu/dom/Menu.js +18 -0
  1125. package/es/components/menu/dom/Menu.js.map +1 -0
  1126. package/es/components/menu/dom/MenuHandler.d.ts +24 -0
  1127. package/es/components/menu/dom/MenuHandler.js +146 -0
  1128. package/es/components/menu/dom/MenuHandler.js.map +1 -0
  1129. package/es/components/menu/dom/logic/MenuContainer.d.ts +21 -0
  1130. package/es/components/menu/dom/logic/MenuContainer.js +102 -0
  1131. package/es/components/menu/dom/logic/MenuContainer.js.map +1 -0
  1132. package/es/components/menu/dom/logic/MenuElement.d.ts +26 -0
  1133. package/es/components/menu/dom/logic/MenuElement.js +288 -0
  1134. package/es/components/menu/dom/logic/MenuElement.js.map +1 -0
  1135. package/es/components/menu/dom/logic/MenuElementStyle.d.ts +1 -0
  1136. package/es/components/menu/dom/logic/MenuElementStyle.js +9 -0
  1137. package/es/components/menu/dom/logic/MenuElementStyle.js.map +1 -0
  1138. package/es/components/react/react-custom-layout.d.ts +27 -0
  1139. package/es/components/react/react-custom-layout.js +169 -0
  1140. package/es/components/react/react-custom-layout.js.map +1 -0
  1141. package/es/components/title/title.d.ts +21 -0
  1142. package/es/components/title/title.js +84 -0
  1143. package/es/components/title/title.js.map +1 -0
  1144. package/es/components/tooltip/BaseTooltip.d.ts +22 -0
  1145. package/es/components/tooltip/BaseTooltip.js +27 -0
  1146. package/es/components/tooltip/BaseTooltip.js.map +1 -0
  1147. package/es/components/tooltip/Tooltip.d.ts +5 -0
  1148. package/es/components/tooltip/Tooltip.js +10 -0
  1149. package/es/components/tooltip/Tooltip.js.map +1 -0
  1150. package/es/components/tooltip/TooltipHandler.d.ts +31 -0
  1151. package/es/components/tooltip/TooltipHandler.js +134 -0
  1152. package/es/components/tooltip/TooltipHandler.js.map +1 -0
  1153. package/es/components/tooltip/logic/BubbleTooltipElement.d.ts +34 -0
  1154. package/es/components/tooltip/logic/BubbleTooltipElement.js +162 -0
  1155. package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -0
  1156. package/es/components/tooltip/logic/BubbleTooltipElementStyle.d.ts +1 -0
  1157. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +9 -0
  1158. package/es/components/tooltip/logic/BubbleTooltipElementStyle.js.map +1 -0
  1159. package/es/components/util/orient.d.ts +3 -0
  1160. package/es/components/util/orient.js +8 -0
  1161. package/es/components/util/orient.js.map +1 -0
  1162. package/es/components/util/register.d.ts +3 -0
  1163. package/es/components/util/register.js +8 -0
  1164. package/es/components/util/register.js.map +1 -0
  1165. package/es/components/util/transform.d.ts +5 -0
  1166. package/es/components/util/transform.js +34 -0
  1167. package/es/components/util/transform.js.map +1 -0
  1168. package/es/core/BaseTable.d.ts +436 -0
  1169. package/es/core/BaseTable.js +1900 -0
  1170. package/es/core/BaseTable.js.map +1 -0
  1171. package/es/core/FouseInput.d.ts +12 -0
  1172. package/es/core/FouseInput.js +33 -0
  1173. package/es/core/FouseInput.js.map +1 -0
  1174. package/es/core/TABLE_EVENT_TYPE.d.ts +61 -0
  1175. package/es/core/TABLE_EVENT_TYPE.js +61 -0
  1176. package/es/core/TABLE_EVENT_TYPE.js.map +1 -0
  1177. package/es/core/animation.d.ts +17 -0
  1178. package/es/core/animation.js +54 -0
  1179. package/es/core/animation.js.map +1 -0
  1180. package/es/core/factory.d.ts +11 -0
  1181. package/es/core/factory.js +23 -0
  1182. package/es/core/factory.js.map +1 -0
  1183. package/es/core/group-helper.d.ts +6 -0
  1184. package/es/core/group-helper.js +14 -0
  1185. package/es/core/group-helper.js.map +1 -0
  1186. package/es/core/record-helper.d.ts +8 -0
  1187. package/es/core/record-helper.js +425 -0
  1188. package/es/core/record-helper.js.map +1 -0
  1189. package/es/core/row-series-number-helper.d.ts +8 -0
  1190. package/es/core/row-series-number-helper.js +15 -0
  1191. package/es/core/row-series-number-helper.js.map +1 -0
  1192. package/es/core/style-helper.d.ts +3 -0
  1193. package/es/core/style-helper.js +86 -0
  1194. package/es/core/style-helper.js.map +1 -0
  1195. package/es/core/style.d.ts +1 -0
  1196. package/es/core/style.js +9 -0
  1197. package/es/core/style.js.map +1 -0
  1198. package/es/core/tableHelper.d.ts +45 -0
  1199. package/es/core/tableHelper.js +253 -0
  1200. package/es/core/tableHelper.js.map +1 -0
  1201. package/es/core/utils/get-cell-position.d.ts +12 -0
  1202. package/es/core/utils/get-cell-position.js +202 -0
  1203. package/es/core/utils/get-cell-position.js.map +1 -0
  1204. package/es/core/utils/get-custom-merge-cell-func.d.ts +2 -0
  1205. package/es/core/utils/get-custom-merge-cell-func.js +6 -0
  1206. package/es/core/utils/get-custom-merge-cell-func.js.map +1 -0
  1207. package/es/core.d.ts +3 -0
  1208. package/es/core.js +4 -0
  1209. package/es/core.js.map +1 -0
  1210. package/es/data/CachedDataSource.d.ts +36 -0
  1211. package/es/data/CachedDataSource.js +249 -0
  1212. package/es/data/CachedDataSource.js.map +1 -0
  1213. package/es/data/DataSource.d.ts +129 -0
  1214. package/es/data/DataSource.js +732 -0
  1215. package/es/data/DataSource.js.map +1 -0
  1216. package/es/data.d.ts +4 -0
  1217. package/es/data.js +6 -0
  1218. package/es/data.js.map +1 -0
  1219. package/es/dataset/DataStatistics.d.ts +10 -0
  1220. package/es/dataset/DataStatistics.js +74 -0
  1221. package/es/dataset/DataStatistics.js.map +1 -0
  1222. package/es/dataset/dataset-pivot-table.d.ts +60 -0
  1223. package/es/dataset/dataset-pivot-table.js +340 -0
  1224. package/es/dataset/dataset-pivot-table.js.map +1 -0
  1225. package/es/dataset/dataset.d.ts +108 -0
  1226. package/es/dataset/dataset.js +803 -0
  1227. package/es/dataset/dataset.js.map +1 -0
  1228. package/es/dataset/flatDataToObject.d.ts +46 -0
  1229. package/es/dataset/flatDataToObject.js +124 -0
  1230. package/es/dataset/flatDataToObject.js.map +1 -0
  1231. package/es/edit/edit-manager.d.ts +19 -0
  1232. package/es/edit/edit-manager.js +121 -0
  1233. package/es/edit/edit-manager.js.map +1 -0
  1234. package/es/edit/editors.d.ts +5 -0
  1235. package/es/edit/editors.js +6 -0
  1236. package/es/edit/editors.js.map +1 -0
  1237. package/es/event/EventHandler.d.ts +47 -0
  1238. package/es/event/EventHandler.js +119 -0
  1239. package/es/event/EventHandler.js.map +1 -0
  1240. package/es/event/EventTarget.d.ts +12 -0
  1241. package/es/event/EventTarget.js +58 -0
  1242. package/es/event/EventTarget.js.map +1 -0
  1243. package/es/event/component/button.d.ts +2 -0
  1244. package/es/event/component/button.js +13 -0
  1245. package/es/event/component/button.js.map +1 -0
  1246. package/es/event/drill.d.ts +5 -0
  1247. package/es/event/drill.js +32 -0
  1248. package/es/event/drill.js.map +1 -0
  1249. package/es/event/event.d.ts +63 -0
  1250. package/es/event/event.js +240 -0
  1251. package/es/event/event.js.map +1 -0
  1252. package/es/event/helper.d.ts +2 -0
  1253. package/es/event/helper.js +27 -0
  1254. package/es/event/helper.js.map +1 -0
  1255. package/es/event/listener/container-dom.d.ts +2 -0
  1256. package/es/event/listener/container-dom.js +348 -0
  1257. package/es/event/listener/container-dom.js.map +1 -0
  1258. package/es/event/listener/scroll-bar.d.ts +2 -0
  1259. package/es/event/listener/scroll-bar.js +75 -0
  1260. package/es/event/listener/scroll-bar.js.map +1 -0
  1261. package/es/event/listener/table-group.d.ts +6 -0
  1262. package/es/event/listener/table-group.js +522 -0
  1263. package/es/event/listener/table-group.js.map +1 -0
  1264. package/es/event/listener/touch.d.ts +2 -0
  1265. package/es/event/listener/touch.js +76 -0
  1266. package/es/event/listener/touch.js.map +1 -0
  1267. package/es/event/media-click.d.ts +2 -0
  1268. package/es/event/media-click.js +85 -0
  1269. package/es/event/media-click.js.map +1 -0
  1270. package/es/event/scroll.d.ts +20 -0
  1271. package/es/event/scroll.js +81 -0
  1272. package/es/event/scroll.js.map +1 -0
  1273. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.d.ts +2 -0
  1274. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js +25 -0
  1275. package/es/event/self-event-listener/base-table/dbclick-auto-column-width.js.map +1 -0
  1276. package/es/event/self-event-listener/base-table/dropdown-menu.d.ts +2 -0
  1277. package/es/event/self-event-listener/base-table/dropdown-menu.js +8 -0
  1278. package/es/event/self-event-listener/base-table/dropdown-menu.js.map +1 -0
  1279. package/es/event/self-event-listener/base-table/icon.d.ts +2 -0
  1280. package/es/event/self-event-listener/base-table/icon.js +18 -0
  1281. package/es/event/self-event-listener/base-table/icon.js.map +1 -0
  1282. package/es/event/self-event-listener/base-table/right-button-click.d.ts +2 -0
  1283. package/es/event/self-event-listener/base-table/right-button-click.js +17 -0
  1284. package/es/event/self-event-listener/base-table/right-button-click.js.map +1 -0
  1285. package/es/event/self-event-listener/list-table/checkbox.d.ts +3 -0
  1286. package/es/event/self-event-listener/list-table/checkbox.js +117 -0
  1287. package/es/event/self-event-listener/list-table/checkbox.js.map +1 -0
  1288. package/es/event/self-event-listener/pivot-chart/axis-click.d.ts +2 -0
  1289. package/es/event/self-event-listener/pivot-chart/axis-click.js +37 -0
  1290. package/es/event/self-event-listener/pivot-chart/axis-click.js.map +1 -0
  1291. package/es/event/self-event-listener/pivot-chart/axis-hover.d.ts +2 -0
  1292. package/es/event/self-event-listener/pivot-chart/axis-hover.js +33 -0
  1293. package/es/event/self-event-listener/pivot-chart/axis-hover.js.map +1 -0
  1294. package/es/event/self-event-listener/pivot-table/drill.d.ts +1 -0
  1295. package/es/event/self-event-listener/pivot-table/drill.js +3 -0
  1296. package/es/event/self-event-listener/pivot-table/drill.js.map +1 -0
  1297. package/es/event/sparkline-event.d.ts +2 -0
  1298. package/es/event/sparkline-event.js +19 -0
  1299. package/es/event/sparkline-event.js.map +1 -0
  1300. package/es/event/util.d.ts +20 -0
  1301. package/es/event/util.js +38 -0
  1302. package/es/event/util.js.map +1 -0
  1303. package/es/header-helper/header-helper.d.ts +29 -0
  1304. package/es/header-helper/header-helper.js +252 -0
  1305. package/es/header-helper/header-helper.js.map +1 -0
  1306. package/es/header-helper/style/CheckboxStyle.d.ts +42 -0
  1307. package/es/header-helper/style/CheckboxStyle.js +96 -0
  1308. package/es/header-helper/style/CheckboxStyle.js.map +1 -0
  1309. package/es/header-helper/style/ImageStyle.d.ts +7 -0
  1310. package/es/header-helper/style/ImageStyle.js +17 -0
  1311. package/es/header-helper/style/ImageStyle.js.map +1 -0
  1312. package/es/header-helper/style/MultilineTextHeaderStyle.d.ts +13 -0
  1313. package/es/header-helper/style/MultilineTextHeaderStyle.js +30 -0
  1314. package/es/header-helper/style/MultilineTextHeaderStyle.js.map +1 -0
  1315. package/es/header-helper/style/SortHeaderStyle.d.ts +1 -0
  1316. package/es/header-helper/style/SortHeaderStyle.js +3 -0
  1317. package/es/header-helper/style/SortHeaderStyle.js.map +1 -0
  1318. package/es/header-helper/style/Style.d.ts +95 -0
  1319. package/es/header-helper/style/Style.js +220 -0
  1320. package/es/header-helper/style/Style.js.map +1 -0
  1321. package/es/header-helper/style.d.ts +6 -0
  1322. package/es/header-helper/style.js +17 -0
  1323. package/es/header-helper/style.js.map +1 -0
  1324. package/es/icons.d.ts +5 -0
  1325. package/es/icons.js +295 -0
  1326. package/es/icons.js.map +1 -0
  1327. package/es/index.d.ts +33 -0
  1328. package/es/index.js +68 -0
  1329. package/es/index.js.map +1 -0
  1330. package/es/layout/cell-range/simple-cell-range.d.ts +4 -0
  1331. package/es/layout/cell-range/simple-cell-range.js +141 -0
  1332. package/es/layout/cell-range/simple-cell-range.js.map +1 -0
  1333. package/es/layout/chart-helper/get-axis-config.d.ts +39 -0
  1334. package/es/layout/chart-helper/get-axis-config.js +391 -0
  1335. package/es/layout/chart-helper/get-axis-config.js.map +1 -0
  1336. package/es/layout/chart-helper/get-axis-domain.d.ts +11 -0
  1337. package/es/layout/chart-helper/get-axis-domain.js +44 -0
  1338. package/es/layout/chart-helper/get-axis-domain.js.map +1 -0
  1339. package/es/layout/chart-helper/get-chart-spec.d.ts +13 -0
  1340. package/es/layout/chart-helper/get-chart-spec.js +281 -0
  1341. package/es/layout/chart-helper/get-chart-spec.js.map +1 -0
  1342. package/es/layout/chart-helper/tick-align.d.ts +12 -0
  1343. package/es/layout/chart-helper/tick-align.js +16 -0
  1344. package/es/layout/chart-helper/tick-align.js.map +1 -0
  1345. package/es/layout/chart-helper/zero-align.d.ts +10 -0
  1346. package/es/layout/chart-helper/zero-align.js +111 -0
  1347. package/es/layout/chart-helper/zero-align.js.map +1 -0
  1348. package/es/layout/index.d.ts +1 -0
  1349. package/es/layout/index.js +1 -0
  1350. package/es/layout/index.js.map +1 -0
  1351. package/es/layout/layout-helper.d.ts +20 -0
  1352. package/es/layout/layout-helper.js +146 -0
  1353. package/es/layout/layout-helper.js.map +1 -0
  1354. package/es/layout/pivot-header-layout.d.ts +279 -0
  1355. package/es/layout/pivot-header-layout.js +1832 -0
  1356. package/es/layout/pivot-header-layout.js.map +1 -0
  1357. package/es/layout/pivot-layout.d.ts +1 -0
  1358. package/es/layout/pivot-layout.js +1 -0
  1359. package/es/layout/pivot-layout.js.map +1 -0
  1360. package/es/layout/row-height-map.d.ts +34 -0
  1361. package/es/layout/row-height-map.js +168 -0
  1362. package/es/layout/row-height-map.js.map +1 -0
  1363. package/es/layout/simple-header-layout.d.ts +153 -0
  1364. package/es/layout/simple-header-layout.js +780 -0
  1365. package/es/layout/simple-header-layout.js.map +1 -0
  1366. package/es/layout/tree-helper.d.ts +71 -0
  1367. package/es/layout/tree-helper.js +401 -0
  1368. package/es/layout/tree-helper.js.map +1 -0
  1369. package/es/plugins/chartModules.d.ts +3 -0
  1370. package/es/plugins/chartModules.js +2 -0
  1371. package/es/plugins/chartModules.js.map +1 -0
  1372. package/es/plugins/custom-cell-style.d.ts +26 -0
  1373. package/es/plugins/custom-cell-style.js +107 -0
  1374. package/es/plugins/custom-cell-style.js.map +1 -0
  1375. package/es/plugins/icons.d.ts +12 -0
  1376. package/es/plugins/icons.js +22 -0
  1377. package/es/plugins/icons.js.map +1 -0
  1378. package/es/plugins/invert-highlight.d.ts +1 -0
  1379. package/es/plugins/invert-highlight.js +14 -0
  1380. package/es/plugins/invert-highlight.js.map +1 -0
  1381. package/es/plugins/list-tree-stick-cell.d.ts +18 -0
  1382. package/es/plugins/list-tree-stick-cell.js +178 -0
  1383. package/es/plugins/list-tree-stick-cell.js.map +1 -0
  1384. package/es/plugins/themes.d.ts +4 -0
  1385. package/es/plugins/themes.js +2 -0
  1386. package/es/plugins/themes.js.map +1 -0
  1387. package/es/register.d.ts +15 -0
  1388. package/es/register.js +44 -0
  1389. package/es/register.js.map +1 -0
  1390. package/es/render/jsx/index.d.ts +8 -0
  1391. package/es/render/jsx/index.js +16 -0
  1392. package/es/render/jsx/index.js.map +1 -0
  1393. package/es/render/layout/arc.d.ts +12 -0
  1394. package/es/render/layout/arc.js +12 -0
  1395. package/es/render/layout/arc.js.map +1 -0
  1396. package/es/render/layout/circle.d.ts +12 -0
  1397. package/es/render/layout/circle.js +12 -0
  1398. package/es/render/layout/circle.js.map +1 -0
  1399. package/es/render/layout/container.d.ts +14 -0
  1400. package/es/render/layout/container.js +21 -0
  1401. package/es/render/layout/container.js.map +1 -0
  1402. package/es/render/layout/direction.d.ts +22 -0
  1403. package/es/render/layout/direction.js +31 -0
  1404. package/es/render/layout/direction.js.map +1 -0
  1405. package/es/render/layout/element.d.ts +43 -0
  1406. package/es/render/layout/element.js +19 -0
  1407. package/es/render/layout/element.js.map +1 -0
  1408. package/es/render/layout/group-element.d.ts +5 -0
  1409. package/es/render/layout/group-element.js +8 -0
  1410. package/es/render/layout/group-element.js.map +1 -0
  1411. package/es/render/layout/group.d.ts +12 -0
  1412. package/es/render/layout/group.js +12 -0
  1413. package/es/render/layout/group.js.map +1 -0
  1414. package/es/render/layout/icon.d.ts +21 -0
  1415. package/es/render/layout/icon.js +21 -0
  1416. package/es/render/layout/icon.js.map +1 -0
  1417. package/es/render/layout/image.d.ts +14 -0
  1418. package/es/render/layout/image.js +13 -0
  1419. package/es/render/layout/image.js.map +1 -0
  1420. package/es/render/layout/index.d.ts +13 -0
  1421. package/es/render/layout/index.js +26 -0
  1422. package/es/render/layout/index.js.map +1 -0
  1423. package/es/render/layout/line.d.ts +1 -0
  1424. package/es/render/layout/line.js +2 -0
  1425. package/es/render/layout/line.js.map +1 -0
  1426. package/es/render/layout/percent-calc.d.ts +5 -0
  1427. package/es/render/layout/percent-calc.js +7 -0
  1428. package/es/render/layout/percent-calc.js.map +1 -0
  1429. package/es/render/layout/rect.d.ts +12 -0
  1430. package/es/render/layout/rect.js +12 -0
  1431. package/es/render/layout/rect.js.map +1 -0
  1432. package/es/render/layout/tag.d.ts +14 -0
  1433. package/es/render/layout/tag.js +15 -0
  1434. package/es/render/layout/tag.js.map +1 -0
  1435. package/es/render/layout/text.d.ts +13 -0
  1436. package/es/render/layout/text.js +17 -0
  1437. package/es/render/layout/text.js.map +1 -0
  1438. package/es/scenegraph/animation/appear.d.ts +2 -0
  1439. package/es/scenegraph/animation/appear.js +20 -0
  1440. package/es/scenegraph/animation/appear.js.map +1 -0
  1441. package/es/scenegraph/component/cell-content.d.ts +36 -0
  1442. package/es/scenegraph/component/cell-content.js +105 -0
  1443. package/es/scenegraph/component/cell-content.js.map +1 -0
  1444. package/es/scenegraph/component/cell-mover.d.ts +21 -0
  1445. package/es/scenegraph/component/cell-mover.js +113 -0
  1446. package/es/scenegraph/component/cell-mover.js.map +1 -0
  1447. package/es/scenegraph/component/custom.d.ts +16 -0
  1448. package/es/scenegraph/component/custom.js +311 -0
  1449. package/es/scenegraph/component/custom.js.map +1 -0
  1450. package/es/scenegraph/component/drill-icon.d.ts +9 -0
  1451. package/es/scenegraph/component/drill-icon.js +41 -0
  1452. package/es/scenegraph/component/drill-icon.js.map +1 -0
  1453. package/es/scenegraph/component/menu.d.ts +41 -0
  1454. package/es/scenegraph/component/menu.js +215 -0
  1455. package/es/scenegraph/component/menu.js.map +1 -0
  1456. package/es/scenegraph/component/table-component.d.ts +52 -0
  1457. package/es/scenegraph/component/table-component.js +564 -0
  1458. package/es/scenegraph/component/table-component.js.map +1 -0
  1459. package/es/scenegraph/component/util.d.ts +3 -0
  1460. package/es/scenegraph/component/util.js +12 -0
  1461. package/es/scenegraph/component/util.js.map +1 -0
  1462. package/es/scenegraph/debug-tool/debug-tool.d.ts +34 -0
  1463. package/es/scenegraph/debug-tool/debug-tool.js +113 -0
  1464. package/es/scenegraph/debug-tool/debug-tool.js.map +1 -0
  1465. package/es/scenegraph/debug-tool/index.d.ts +4 -0
  1466. package/es/scenegraph/debug-tool/index.js +6 -0
  1467. package/es/scenegraph/debug-tool/index.js.map +1 -0
  1468. package/es/scenegraph/graphic/chart.d.ts +47 -0
  1469. package/es/scenegraph/graphic/chart.js +123 -0
  1470. package/es/scenegraph/graphic/chart.js.map +1 -0
  1471. package/es/scenegraph/graphic/contributions/chart-render-helper.d.ts +11 -0
  1472. package/es/scenegraph/graphic/contributions/chart-render-helper.js +159 -0
  1473. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -0
  1474. package/es/scenegraph/graphic/contributions/chart-render.d.ts +11 -0
  1475. package/es/scenegraph/graphic/contributions/chart-render.js +76 -0
  1476. package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -0
  1477. package/es/scenegraph/graphic/contributions/draw-interceptor.d.ts +13 -0
  1478. package/es/scenegraph/graphic/contributions/draw-interceptor.js +66 -0
  1479. package/es/scenegraph/graphic/contributions/draw-interceptor.js.map +1 -0
  1480. package/es/scenegraph/graphic/contributions/group-contribution-render.d.ts +79 -0
  1481. package/es/scenegraph/graphic/contributions/group-contribution-render.js +346 -0
  1482. package/es/scenegraph/graphic/contributions/group-contribution-render.js.map +1 -0
  1483. package/es/scenegraph/graphic/contributions/image-contribution-render.d.ts +38 -0
  1484. package/es/scenegraph/graphic/contributions/image-contribution-render.js +69 -0
  1485. package/es/scenegraph/graphic/contributions/image-contribution-render.js.map +1 -0
  1486. package/es/scenegraph/graphic/contributions/index.d.ts +3 -0
  1487. package/es/scenegraph/graphic/contributions/index.js +38 -0
  1488. package/es/scenegraph/graphic/contributions/index.js.map +1 -0
  1489. package/es/scenegraph/graphic/contributions/rect-contribution-render.d.ts +18 -0
  1490. package/es/scenegraph/graphic/contributions/rect-contribution-render.js +90 -0
  1491. package/es/scenegraph/graphic/contributions/rect-contribution-render.js.map +1 -0
  1492. package/es/scenegraph/graphic/contributions/text-contribution-render.d.ts +12 -0
  1493. package/es/scenegraph/graphic/contributions/text-contribution-render.js +69 -0
  1494. package/es/scenegraph/graphic/contributions/text-contribution-render.js.map +1 -0
  1495. package/es/scenegraph/graphic/group.d.ts +37 -0
  1496. package/es/scenegraph/graphic/group.js +127 -0
  1497. package/es/scenegraph/graphic/group.js.map +1 -0
  1498. package/es/scenegraph/graphic/icon.d.ts +47 -0
  1499. package/es/scenegraph/graphic/icon.js +70 -0
  1500. package/es/scenegraph/graphic/icon.js.map +1 -0
  1501. package/es/scenegraph/graphic/mark.d.ts +4 -0
  1502. package/es/scenegraph/graphic/mark.js +66 -0
  1503. package/es/scenegraph/graphic/mark.js.map +1 -0
  1504. package/es/scenegraph/graphic/text.d.ts +2 -0
  1505. package/es/scenegraph/graphic/text.js +2 -0
  1506. package/es/scenegraph/graphic/text.js.map +1 -0
  1507. package/es/scenegraph/group-creater/cell-helper.d.ts +16 -0
  1508. package/es/scenegraph/group-creater/cell-helper.js +325 -0
  1509. package/es/scenegraph/group-creater/cell-helper.js.map +1 -0
  1510. package/es/scenegraph/group-creater/cell-type/button-cell.d.ts +6 -0
  1511. package/es/scenegraph/group-creater/cell-type/button-cell.js +137 -0
  1512. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -0
  1513. package/es/scenegraph/group-creater/cell-type/chart-cell.d.ts +5 -0
  1514. package/es/scenegraph/group-creater/cell-type/chart-cell.js +76 -0
  1515. package/es/scenegraph/group-creater/cell-type/chart-cell.js.map +1 -0
  1516. package/es/scenegraph/group-creater/cell-type/checkbox-cell.d.ts +6 -0
  1517. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js +138 -0
  1518. package/es/scenegraph/group-creater/cell-type/checkbox-cell.js.map +1 -0
  1519. package/es/scenegraph/group-creater/cell-type/image-cell.d.ts +15 -0
  1520. package/es/scenegraph/group-creater/cell-type/image-cell.js +206 -0
  1521. package/es/scenegraph/group-creater/cell-type/image-cell.js.map +1 -0
  1522. package/es/scenegraph/group-creater/cell-type/index.d.ts +10 -0
  1523. package/es/scenegraph/group-creater/cell-type/index.js +64 -0
  1524. package/es/scenegraph/group-creater/cell-type/index.js.map +1 -0
  1525. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.d.ts +11 -0
  1526. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +389 -0
  1527. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -0
  1528. package/es/scenegraph/group-creater/cell-type/radio-cell.d.ts +6 -0
  1529. package/es/scenegraph/group-creater/cell-type/radio-cell.js +143 -0
  1530. package/es/scenegraph/group-creater/cell-type/radio-cell.js.map +1 -0
  1531. package/es/scenegraph/group-creater/cell-type/spark-line-cell.d.ts +5 -0
  1532. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js +202 -0
  1533. package/es/scenegraph/group-creater/cell-type/spark-line-cell.js.map +1 -0
  1534. package/es/scenegraph/group-creater/cell-type/switch-cell.d.ts +6 -0
  1535. package/es/scenegraph/group-creater/cell-type/switch-cell.js +150 -0
  1536. package/es/scenegraph/group-creater/cell-type/switch-cell.js.map +1 -0
  1537. package/es/scenegraph/group-creater/cell-type/text-cell.d.ts +6 -0
  1538. package/es/scenegraph/group-creater/cell-type/text-cell.js +66 -0
  1539. package/es/scenegraph/group-creater/cell-type/text-cell.js.map +1 -0
  1540. package/es/scenegraph/group-creater/cell-type/video-cell.d.ts +6 -0
  1541. package/es/scenegraph/group-creater/cell-type/video-cell.js +127 -0
  1542. package/es/scenegraph/group-creater/cell-type/video-cell.js.map +1 -0
  1543. package/es/scenegraph/group-creater/column-helper.d.ts +14 -0
  1544. package/es/scenegraph/group-creater/column-helper.js +141 -0
  1545. package/es/scenegraph/group-creater/column-helper.js.map +1 -0
  1546. package/es/scenegraph/group-creater/column.d.ts +4 -0
  1547. package/es/scenegraph/group-creater/column.js +26 -0
  1548. package/es/scenegraph/group-creater/column.js.map +1 -0
  1549. package/es/scenegraph/group-creater/init-scenegraph.d.ts +2 -0
  1550. package/es/scenegraph/group-creater/init-scenegraph.js +50 -0
  1551. package/es/scenegraph/group-creater/init-scenegraph.js.map +1 -0
  1552. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.d.ts +3 -0
  1553. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js +46 -0
  1554. package/es/scenegraph/group-creater/progress/create-group-for-first-screen.js.map +1 -0
  1555. package/es/scenegraph/group-creater/progress/default-width-height.d.ts +3 -0
  1556. package/es/scenegraph/group-creater/progress/default-width-height.js +18 -0
  1557. package/es/scenegraph/group-creater/progress/default-width-height.js.map +1 -0
  1558. package/es/scenegraph/group-creater/progress/proxy.d.ts +79 -0
  1559. package/es/scenegraph/group-creater/progress/proxy.js +357 -0
  1560. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -0
  1561. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.d.ts +4 -0
  1562. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +168 -0
  1563. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -0
  1564. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.d.ts +4 -0
  1565. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +185 -0
  1566. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -0
  1567. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.d.ts +2 -0
  1568. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js +56 -0
  1569. package/es/scenegraph/group-creater/progress/update-position/sort-horizontal.js.map +1 -0
  1570. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.d.ts +2 -0
  1571. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js +70 -0
  1572. package/es/scenegraph/group-creater/progress/update-position/sort-vertical.js.map +1 -0
  1573. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.d.ts +2 -0
  1574. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js +29 -0
  1575. package/es/scenegraph/group-creater/progress/update-position/update-auto-column.js.map +1 -0
  1576. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.d.ts +2 -0
  1577. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js +39 -0
  1578. package/es/scenegraph/group-creater/progress/update-position/update-auto-row.js.map +1 -0
  1579. package/es/scenegraph/group-creater/progress/update-position/util.d.ts +8 -0
  1580. package/es/scenegraph/group-creater/progress/update-position/util.js +88 -0
  1581. package/es/scenegraph/group-creater/progress/update-position/util.js.map +1 -0
  1582. package/es/scenegraph/icon/icon-update.d.ts +28 -0
  1583. package/es/scenegraph/icon/icon-update.js +178 -0
  1584. package/es/scenegraph/icon/icon-update.js.map +1 -0
  1585. package/es/scenegraph/layout/compute-col-width.d.ts +4 -0
  1586. package/es/scenegraph/layout/compute-col-width.js +320 -0
  1587. package/es/scenegraph/layout/compute-col-width.js.map +1 -0
  1588. package/es/scenegraph/layout/compute-row-height.d.ts +3 -0
  1589. package/es/scenegraph/layout/compute-row-height.js +340 -0
  1590. package/es/scenegraph/layout/compute-row-height.js.map +1 -0
  1591. package/es/scenegraph/layout/frozen-react.d.ts +5 -0
  1592. package/es/scenegraph/layout/frozen-react.js +82 -0
  1593. package/es/scenegraph/layout/frozen-react.js.map +1 -0
  1594. package/es/scenegraph/layout/frozen.d.ts +6 -0
  1595. package/es/scenegraph/layout/frozen.js +328 -0
  1596. package/es/scenegraph/layout/frozen.js.map +1 -0
  1597. package/es/scenegraph/layout/height-util.d.ts +7 -0
  1598. package/es/scenegraph/layout/height-util.js +118 -0
  1599. package/es/scenegraph/layout/height-util.js.map +1 -0
  1600. package/es/scenegraph/layout/move-cell.d.ts +2 -0
  1601. package/es/scenegraph/layout/move-cell.js +44 -0
  1602. package/es/scenegraph/layout/move-cell.js.map +1 -0
  1603. package/es/scenegraph/layout/update-col.d.ts +3 -0
  1604. package/es/scenegraph/layout/update-col.js +204 -0
  1605. package/es/scenegraph/layout/update-col.js.map +1 -0
  1606. package/es/scenegraph/layout/update-height.d.ts +6 -0
  1607. package/es/scenegraph/layout/update-height.js +149 -0
  1608. package/es/scenegraph/layout/update-height.js.map +1 -0
  1609. package/es/scenegraph/layout/update-row.d.ts +3 -0
  1610. package/es/scenegraph/layout/update-row.js +278 -0
  1611. package/es/scenegraph/layout/update-row.js.map +1 -0
  1612. package/es/scenegraph/layout/update-width.d.ts +2 -0
  1613. package/es/scenegraph/layout/update-width.js +247 -0
  1614. package/es/scenegraph/layout/update-width.js.map +1 -0
  1615. package/es/scenegraph/refresh-node/update-chart.d.ts +7 -0
  1616. package/es/scenegraph/refresh-node/update-chart.js +196 -0
  1617. package/es/scenegraph/refresh-node/update-chart.js.map +1 -0
  1618. package/es/scenegraph/scenegraph.d.ts +182 -0
  1619. package/es/scenegraph/scenegraph.js +908 -0
  1620. package/es/scenegraph/scenegraph.js.map +1 -0
  1621. package/es/scenegraph/select/create-select-border.d.ts +3 -0
  1622. package/es/scenegraph/select/create-select-border.js +51 -0
  1623. package/es/scenegraph/select/create-select-border.js.map +1 -0
  1624. package/es/scenegraph/select/delete-select-border.d.ts +5 -0
  1625. package/es/scenegraph/select/delete-select-border.js +29 -0
  1626. package/es/scenegraph/select/delete-select-border.js.map +1 -0
  1627. package/es/scenegraph/select/move-select-border.d.ts +2 -0
  1628. package/es/scenegraph/select/move-select-border.js +9 -0
  1629. package/es/scenegraph/select/move-select-border.js.map +1 -0
  1630. package/es/scenegraph/select/update-select-border.d.ts +8 -0
  1631. package/es/scenegraph/select/update-select-border.js +263 -0
  1632. package/es/scenegraph/select/update-select-border.js.map +1 -0
  1633. package/es/scenegraph/select/update-select-style.d.ts +3 -0
  1634. package/es/scenegraph/select/update-select-style.js +7 -0
  1635. package/es/scenegraph/select/update-select-style.js.map +1 -0
  1636. package/es/scenegraph/stick-text/index.d.ts +3 -0
  1637. package/es/scenegraph/stick-text/index.js +179 -0
  1638. package/es/scenegraph/stick-text/index.js.map +1 -0
  1639. package/es/scenegraph/style/corner-cell.d.ts +3 -0
  1640. package/es/scenegraph/style/corner-cell.js +22 -0
  1641. package/es/scenegraph/style/corner-cell.js.map +1 -0
  1642. package/es/scenegraph/style/frame-border.d.ts +8 -0
  1643. package/es/scenegraph/style/frame-border.js +138 -0
  1644. package/es/scenegraph/style/frame-border.js.map +1 -0
  1645. package/es/scenegraph/utils/border-line.d.ts +8 -0
  1646. package/es/scenegraph/utils/border-line.js +45 -0
  1647. package/es/scenegraph/utils/border-line.js.map +1 -0
  1648. package/es/scenegraph/utils/break-string.d.ts +5 -0
  1649. package/es/scenegraph/utils/break-string.js +16 -0
  1650. package/es/scenegraph/utils/break-string.js.map +1 -0
  1651. package/es/scenegraph/utils/cell-border-stroke-width.d.ts +3 -0
  1652. package/es/scenegraph/utils/cell-border-stroke-width.js +12 -0
  1653. package/es/scenegraph/utils/cell-border-stroke-width.js.map +1 -0
  1654. package/es/scenegraph/utils/cell-pos.d.ts +4 -0
  1655. package/es/scenegraph/utils/cell-pos.js +12 -0
  1656. package/es/scenegraph/utils/cell-pos.js.map +1 -0
  1657. package/es/scenegraph/utils/deal-promise-data.d.ts +2 -0
  1658. package/es/scenegraph/utils/deal-promise-data.js +6 -0
  1659. package/es/scenegraph/utils/deal-promise-data.js.map +1 -0
  1660. package/es/scenegraph/utils/empty-group.d.ts +2 -0
  1661. package/es/scenegraph/utils/empty-group.js +6 -0
  1662. package/es/scenegraph/utils/empty-group.js.map +1 -0
  1663. package/es/scenegraph/utils/font.d.ts +1 -0
  1664. package/es/scenegraph/utils/font.js +6 -0
  1665. package/es/scenegraph/utils/font.js.map +1 -0
  1666. package/es/scenegraph/utils/get-cell-merge.d.ts +3 -0
  1667. package/es/scenegraph/utils/get-cell-merge.js +11 -0
  1668. package/es/scenegraph/utils/get-cell-merge.js.map +1 -0
  1669. package/es/scenegraph/utils/get-hierarchy-offset.d.ts +2 -0
  1670. package/es/scenegraph/utils/get-hierarchy-offset.js +21 -0
  1671. package/es/scenegraph/utils/get-hierarchy-offset.js.map +1 -0
  1672. package/es/scenegraph/utils/get-prop.d.ts +4 -0
  1673. package/es/scenegraph/utils/get-prop.js +36 -0
  1674. package/es/scenegraph/utils/get-prop.js.map +1 -0
  1675. package/es/scenegraph/utils/icon.d.ts +12 -0
  1676. package/es/scenegraph/utils/icon.js +29 -0
  1677. package/es/scenegraph/utils/icon.js.map +1 -0
  1678. package/es/scenegraph/utils/is-merge-cell-group.d.ts +2 -0
  1679. package/es/scenegraph/utils/is-merge-cell-group.js +6 -0
  1680. package/es/scenegraph/utils/is-merge-cell-group.js.map +1 -0
  1681. package/es/scenegraph/utils/keep-aspect-ratio.d.ts +4 -0
  1682. package/es/scenegraph/utils/keep-aspect-ratio.js +11 -0
  1683. package/es/scenegraph/utils/keep-aspect-ratio.js.map +1 -0
  1684. package/es/scenegraph/utils/padding.d.ts +6 -0
  1685. package/es/scenegraph/utils/padding.js +14 -0
  1686. package/es/scenegraph/utils/padding.js.map +1 -0
  1687. package/es/scenegraph/utils/render-service.d.ts +7 -0
  1688. package/es/scenegraph/utils/render-service.js +19 -0
  1689. package/es/scenegraph/utils/render-service.js.map +1 -0
  1690. package/es/scenegraph/utils/text-icon-layout.d.ts +29 -0
  1691. package/es/scenegraph/utils/text-icon-layout.js +334 -0
  1692. package/es/scenegraph/utils/text-icon-layout.js.map +1 -0
  1693. package/es/scenegraph/utils/text-measure.d.ts +38 -0
  1694. package/es/scenegraph/utils/text-measure.js +163 -0
  1695. package/es/scenegraph/utils/text-measure.js.map +1 -0
  1696. package/es/scenegraph/utils/text-pos.d.ts +8 -0
  1697. package/es/scenegraph/utils/text-pos.js +20 -0
  1698. package/es/scenegraph/utils/text-pos.js.map +1 -0
  1699. package/es/scenegraph/utils/update-container.d.ts +2 -0
  1700. package/es/scenegraph/utils/update-container.js +6 -0
  1701. package/es/scenegraph/utils/update-container.js.map +1 -0
  1702. package/es/state/cell-move/adjust-header.d.ts +3 -0
  1703. package/es/state/cell-move/adjust-header.js +20 -0
  1704. package/es/state/cell-move/adjust-header.js.map +1 -0
  1705. package/es/state/cell-move/index.d.ts +4 -0
  1706. package/es/state/cell-move/index.js +106 -0
  1707. package/es/state/cell-move/index.js.map +1 -0
  1708. package/es/state/checkbox/checkbox.d.ts +12 -0
  1709. package/es/state/checkbox/checkbox.js +199 -0
  1710. package/es/state/checkbox/checkbox.js.map +1 -0
  1711. package/es/state/common/check-in-select.d.ts +7 -0
  1712. package/es/state/common/check-in-select.js +53 -0
  1713. package/es/state/common/check-in-select.js.map +1 -0
  1714. package/es/state/drill/index.d.ts +2 -0
  1715. package/es/state/drill/index.js +9 -0
  1716. package/es/state/drill/index.js.map +1 -0
  1717. package/es/state/frozen/index.d.ts +2 -0
  1718. package/es/state/frozen/index.js +4 -0
  1719. package/es/state/frozen/index.js.map +1 -0
  1720. package/es/state/hover/col.d.ts +4 -0
  1721. package/es/state/hover/col.js +16 -0
  1722. package/es/state/hover/col.js.map +1 -0
  1723. package/es/state/hover/is-cell-hover.d.ts +5 -0
  1724. package/es/state/hover/is-cell-hover.js +44 -0
  1725. package/es/state/hover/is-cell-hover.js.map +1 -0
  1726. package/es/state/hover/row.d.ts +4 -0
  1727. package/es/state/hover/row.js +14 -0
  1728. package/es/state/hover/row.js.map +1 -0
  1729. package/es/state/hover/single.d.ts +4 -0
  1730. package/es/state/hover/single.js +10 -0
  1731. package/es/state/hover/single.js.map +1 -0
  1732. package/es/state/hover/update-cell.d.ts +2 -0
  1733. package/es/state/hover/update-cell.js +15 -0
  1734. package/es/state/hover/update-cell.js.map +1 -0
  1735. package/es/state/hover/update-position.d.ts +2 -0
  1736. package/es/state/hover/update-position.js +36 -0
  1737. package/es/state/hover/update-position.js.map +1 -0
  1738. package/es/state/radio/radio.d.ts +7 -0
  1739. package/es/state/radio/radio.js +80 -0
  1740. package/es/state/radio/radio.js.map +1 -0
  1741. package/es/state/resize/update-resize-column.d.ts +2 -0
  1742. package/es/state/resize/update-resize-column.js +79 -0
  1743. package/es/state/resize/update-resize-column.js.map +1 -0
  1744. package/es/state/resize/update-resize-row.d.ts +2 -0
  1745. package/es/state/resize/update-resize-row.js +58 -0
  1746. package/es/state/resize/update-resize-row.js.map +1 -0
  1747. package/es/state/select/custom-select.d.ts +7 -0
  1748. package/es/state/select/custom-select.js +30 -0
  1749. package/es/state/select/custom-select.js.map +1 -0
  1750. package/es/state/select/is-cell-select-highlight.d.ts +6 -0
  1751. package/es/state/select/is-cell-select-highlight.js +81 -0
  1752. package/es/state/select/is-cell-select-highlight.js.map +1 -0
  1753. package/es/state/select/update-position.d.ts +4 -0
  1754. package/es/state/select/update-position.js +300 -0
  1755. package/es/state/select/update-position.js.map +1 -0
  1756. package/es/state/sort/index.d.ts +2 -0
  1757. package/es/state/sort/index.js +50 -0
  1758. package/es/state/sort/index.js.map +1 -0
  1759. package/es/state/spark-line/index.d.ts +3 -0
  1760. package/es/state/spark-line/index.js +96 -0
  1761. package/es/state/spark-line/index.js.map +1 -0
  1762. package/es/state/state.d.ts +206 -0
  1763. package/es/state/state.js +834 -0
  1764. package/es/state/state.js.map +1 -0
  1765. package/es/themes/ARCO.d.ts +3 -0
  1766. package/es/themes/ARCO.js +109 -0
  1767. package/es/themes/ARCO.js.map +1 -0
  1768. package/es/themes/BRIGHT.d.ts +3 -0
  1769. package/es/themes/BRIGHT.js +66 -0
  1770. package/es/themes/BRIGHT.js.map +1 -0
  1771. package/es/themes/DARK.d.ts +3 -0
  1772. package/es/themes/DARK.js +99 -0
  1773. package/es/themes/DARK.js.map +1 -0
  1774. package/es/themes/DEFAULT.d.ts +3 -0
  1775. package/es/themes/DEFAULT.js +82 -0
  1776. package/es/themes/DEFAULT.js.map +1 -0
  1777. package/es/themes/SIMPLIFY.d.ts +3 -0
  1778. package/es/themes/SIMPLIFY.js +49 -0
  1779. package/es/themes/SIMPLIFY.js.map +1 -0
  1780. package/es/themes/component.d.ts +35 -0
  1781. package/es/themes/component.js +42 -0
  1782. package/es/themes/component.js.map +1 -0
  1783. package/es/themes/theme.d.ts +67 -0
  1784. package/es/themes/theme.js +752 -0
  1785. package/es/themes/theme.js.map +1 -0
  1786. package/es/themes.d.ts +28 -0
  1787. package/es/themes.js +64 -0
  1788. package/es/themes.js.map +1 -0
  1789. package/es/tools/LimitPromiseQueue.d.ts +8 -0
  1790. package/es/tools/LimitPromiseQueue.js +21 -0
  1791. package/es/tools/LimitPromiseQueue.js.map +1 -0
  1792. package/es/tools/NumberMap.d.ts +23 -0
  1793. package/es/tools/NumberMap.js +117 -0
  1794. package/es/tools/NumberMap.js.map +1 -0
  1795. package/es/tools/Rect.d.ts +24 -0
  1796. package/es/tools/Rect.js +62 -0
  1797. package/es/tools/Rect.js.map +1 -0
  1798. package/es/tools/calc.d.ts +8 -0
  1799. package/es/tools/calc.js +201 -0
  1800. package/es/tools/calc.js.map +1 -0
  1801. package/es/tools/cell-range.d.ts +2 -0
  1802. package/es/tools/cell-range.js +4 -0
  1803. package/es/tools/cell-range.js.map +1 -0
  1804. package/es/tools/debounce.d.ts +1 -0
  1805. package/es/tools/debounce.js +43 -0
  1806. package/es/tools/debounce.js.map +1 -0
  1807. package/es/tools/diff-cell.d.ts +72 -0
  1808. package/es/tools/diff-cell.js +160 -0
  1809. package/es/tools/diff-cell.js.map +1 -0
  1810. package/es/tools/dom.d.ts +1 -0
  1811. package/es/tools/dom.js +5 -0
  1812. package/es/tools/dom.js.map +1 -0
  1813. package/es/tools/env.d.ts +19 -0
  1814. package/es/tools/env.js +42 -0
  1815. package/es/tools/env.js.map +1 -0
  1816. package/es/tools/get-data-path/create-dataset.d.ts +11 -0
  1817. package/es/tools/get-data-path/create-dataset.js +147 -0
  1818. package/es/tools/get-data-path/create-dataset.js.map +1 -0
  1819. package/es/tools/get-data-path/index.d.ts +2 -0
  1820. package/es/tools/get-data-path/index.js +51 -0
  1821. package/es/tools/get-data-path/index.js.map +1 -0
  1822. package/es/tools/global.d.ts +15 -0
  1823. package/es/tools/global.js +30 -0
  1824. package/es/tools/global.js.map +1 -0
  1825. package/es/tools/helper.d.ts +72 -0
  1826. package/es/tools/helper.js +226 -0
  1827. package/es/tools/helper.js.map +1 -0
  1828. package/es/tools/icons.d.ts +4 -0
  1829. package/es/tools/icons.js +4 -0
  1830. package/es/tools/icons.js.map +1 -0
  1831. package/es/tools/isx.d.ts +16 -0
  1832. package/es/tools/isx.js +79 -0
  1833. package/es/tools/isx.js.map +1 -0
  1834. package/es/tools/join.d.ts +1 -0
  1835. package/es/tools/join.js +6 -0
  1836. package/es/tools/join.js.map +1 -0
  1837. package/es/tools/merge-range.d.ts +11 -0
  1838. package/es/tools/merge-range.js +28 -0
  1839. package/es/tools/merge-range.js.map +1 -0
  1840. package/es/tools/pixel-ratio.d.ts +2 -0
  1841. package/es/tools/pixel-ratio.js +12 -0
  1842. package/es/tools/pixel-ratio.js.map +1 -0
  1843. package/es/tools/sort.d.ts +2 -0
  1844. package/es/tools/sort.js +12 -0
  1845. package/es/tools/sort.js.map +1 -0
  1846. package/es/tools/style.d.ts +5 -0
  1847. package/es/tools/style.js +20 -0
  1848. package/es/tools/style.js.map +1 -0
  1849. package/es/tools/update-row.d.ts +19 -0
  1850. package/es/tools/update-row.js +32 -0
  1851. package/es/tools/update-row.js.map +1 -0
  1852. package/es/tools/util.d.ts +46 -0
  1853. package/es/tools/util.js +231 -0
  1854. package/es/tools/util.js.map +1 -0
  1855. package/es/ts-types/animation/appear.d.ts +11 -0
  1856. package/es/ts-types/animation/appear.js +2 -0
  1857. package/es/ts-types/animation/appear.js.map +1 -0
  1858. package/es/ts-types/animation/index.d.ts +1 -0
  1859. package/es/ts-types/animation/index.js +2 -0
  1860. package/es/ts-types/animation/index.js.map +1 -0
  1861. package/es/ts-types/base-table.d.ts +641 -0
  1862. package/es/ts-types/base-table.js +2 -0
  1863. package/es/ts-types/base-table.js.map +1 -0
  1864. package/es/ts-types/column/index.d.ts +2 -0
  1865. package/es/ts-types/column/index.js +4 -0
  1866. package/es/ts-types/column/index.js.map +1 -0
  1867. package/es/ts-types/column/style.d.ts +151 -0
  1868. package/es/ts-types/column/style.js +2 -0
  1869. package/es/ts-types/column/style.js.map +1 -0
  1870. package/es/ts-types/column/type.d.ts +2 -0
  1871. package/es/ts-types/column/type.js +2 -0
  1872. package/es/ts-types/column/type.js.map +1 -0
  1873. package/es/ts-types/common.d.ts +114 -0
  1874. package/es/ts-types/common.js +13 -0
  1875. package/es/ts-types/common.js.map +1 -0
  1876. package/es/ts-types/component/axis.d.ts +2 -0
  1877. package/es/ts-types/component/axis.js +2 -0
  1878. package/es/ts-types/component/axis.js.map +1 -0
  1879. package/es/ts-types/component/empty-tip.d.ts +20 -0
  1880. package/es/ts-types/component/empty-tip.js +2 -0
  1881. package/es/ts-types/component/empty-tip.js.map +1 -0
  1882. package/es/ts-types/component/index.d.ts +1 -0
  1883. package/es/ts-types/component/index.js +2 -0
  1884. package/es/ts-types/component/index.js.map +1 -0
  1885. package/es/ts-types/component/legend.d.ts +18 -0
  1886. package/es/ts-types/component/legend.js +2 -0
  1887. package/es/ts-types/component/legend.js.map +1 -0
  1888. package/es/ts-types/component/title.d.ts +49 -0
  1889. package/es/ts-types/component/title.js +2 -0
  1890. package/es/ts-types/component/title.js.map +1 -0
  1891. package/es/ts-types/component/util.d.ts +1 -0
  1892. package/es/ts-types/component/util.js +2 -0
  1893. package/es/ts-types/component/util.js.map +1 -0
  1894. package/es/ts-types/customElement.d.ts +128 -0
  1895. package/es/ts-types/customElement.js +2 -0
  1896. package/es/ts-types/customElement.js.map +1 -0
  1897. package/es/ts-types/customLayout.d.ts +9 -0
  1898. package/es/ts-types/customLayout.js +2 -0
  1899. package/es/ts-types/customLayout.js.map +1 -0
  1900. package/es/ts-types/dataset/aggregation.d.ts +192 -0
  1901. package/es/ts-types/dataset/aggregation.js +397 -0
  1902. package/es/ts-types/dataset/aggregation.js.map +1 -0
  1903. package/es/ts-types/dataset/index.d.ts +1 -0
  1904. package/es/ts-types/dataset/index.js +2 -0
  1905. package/es/ts-types/dataset/index.js.map +1 -0
  1906. package/es/ts-types/events.d.ts +363 -0
  1907. package/es/ts-types/events.js +2 -0
  1908. package/es/ts-types/events.js.map +1 -0
  1909. package/es/ts-types/icon.d.ts +93 -0
  1910. package/es/ts-types/icon.js +30 -0
  1911. package/es/ts-types/icon.js.map +1 -0
  1912. package/es/ts-types/index.d.ts +17 -0
  1913. package/es/ts-types/index.js +34 -0
  1914. package/es/ts-types/index.js.map +1 -0
  1915. package/es/ts-types/list-table/define/basic-define.d.ts +50 -0
  1916. package/es/ts-types/list-table/define/basic-define.js +2 -0
  1917. package/es/ts-types/list-table/define/basic-define.js.map +1 -0
  1918. package/es/ts-types/list-table/define/button-define.d.ts +9 -0
  1919. package/es/ts-types/list-table/define/button-define.js +2 -0
  1920. package/es/ts-types/list-table/define/button-define.js.map +1 -0
  1921. package/es/ts-types/list-table/define/chart-define.d.ts +11 -0
  1922. package/es/ts-types/list-table/define/chart-define.js +2 -0
  1923. package/es/ts-types/list-table/define/chart-define.js.map +1 -0
  1924. package/es/ts-types/list-table/define/checkbox-define.d.ts +15 -0
  1925. package/es/ts-types/list-table/define/checkbox-define.js +2 -0
  1926. package/es/ts-types/list-table/define/checkbox-define.js.map +1 -0
  1927. package/es/ts-types/list-table/define/composite-define.d.ts +26 -0
  1928. package/es/ts-types/list-table/define/composite-define.js +2 -0
  1929. package/es/ts-types/list-table/define/composite-define.js.map +1 -0
  1930. package/es/ts-types/list-table/define/image-define.d.ts +17 -0
  1931. package/es/ts-types/list-table/define/image-define.js +2 -0
  1932. package/es/ts-types/list-table/define/image-define.js.map +1 -0
  1933. package/es/ts-types/list-table/define/index.d.ts +31 -0
  1934. package/es/ts-types/list-table/define/index.js +2 -0
  1935. package/es/ts-types/list-table/define/index.js.map +1 -0
  1936. package/es/ts-types/list-table/define/link-define.d.ts +22 -0
  1937. package/es/ts-types/list-table/define/link-define.js +2 -0
  1938. package/es/ts-types/list-table/define/link-define.js.map +1 -0
  1939. package/es/ts-types/list-table/define/multilinetext-define.d.ts +11 -0
  1940. package/es/ts-types/list-table/define/multilinetext-define.js +2 -0
  1941. package/es/ts-types/list-table/define/multilinetext-define.js.map +1 -0
  1942. package/es/ts-types/list-table/define/progressbar-define.d.ts +11 -0
  1943. package/es/ts-types/list-table/define/progressbar-define.js +2 -0
  1944. package/es/ts-types/list-table/define/progressbar-define.js.map +1 -0
  1945. package/es/ts-types/list-table/define/radio-define.d.ts +11 -0
  1946. package/es/ts-types/list-table/define/radio-define.js +2 -0
  1947. package/es/ts-types/list-table/define/radio-define.js.map +1 -0
  1948. package/es/ts-types/list-table/define/sparkline-define.d.ts +10 -0
  1949. package/es/ts-types/list-table/define/sparkline-define.js +2 -0
  1950. package/es/ts-types/list-table/define/sparkline-define.js.map +1 -0
  1951. package/es/ts-types/list-table/define/switch-define.d.ts +11 -0
  1952. package/es/ts-types/list-table/define/switch-define.js +2 -0
  1953. package/es/ts-types/list-table/define/switch-define.js.map +1 -0
  1954. package/es/ts-types/list-table/index.d.ts +2 -0
  1955. package/es/ts-types/list-table/index.js +4 -0
  1956. package/es/ts-types/list-table/index.js.map +1 -0
  1957. package/es/ts-types/list-table/layout-map/api.d.ts +126 -0
  1958. package/es/ts-types/list-table/layout-map/api.js +2 -0
  1959. package/es/ts-types/list-table/layout-map/api.js.map +1 -0
  1960. package/es/ts-types/list-table/layout-map/index.d.ts +1 -0
  1961. package/es/ts-types/list-table/layout-map/index.js +2 -0
  1962. package/es/ts-types/list-table/layout-map/index.js.map +1 -0
  1963. package/es/ts-types/menu.d.ts +74 -0
  1964. package/es/ts-types/menu.js +2 -0
  1965. package/es/ts-types/menu.js.map +1 -0
  1966. package/es/ts-types/new-data-set.d.ts +158 -0
  1967. package/es/ts-types/new-data-set.js +15 -0
  1968. package/es/ts-types/new-data-set.js.map +1 -0
  1969. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.d.ts +10 -0
  1970. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js +13 -0
  1971. package/es/ts-types/pivot-table/PIVOT_TABLE_EVENT_TYPE.js.map +1 -0
  1972. package/es/ts-types/pivot-table/corner.d.ts +37 -0
  1973. package/es/ts-types/pivot-table/corner.js +2 -0
  1974. package/es/ts-types/pivot-table/corner.js.map +1 -0
  1975. package/es/ts-types/pivot-table/dimension/basic-dimension.d.ts +43 -0
  1976. package/es/ts-types/pivot-table/dimension/basic-dimension.js +2 -0
  1977. package/es/ts-types/pivot-table/dimension/basic-dimension.js.map +1 -0
  1978. package/es/ts-types/pivot-table/dimension/image-dimension.d.ts +10 -0
  1979. package/es/ts-types/pivot-table/dimension/image-dimension.js +2 -0
  1980. package/es/ts-types/pivot-table/dimension/image-dimension.js.map +1 -0
  1981. package/es/ts-types/pivot-table/dimension/index.d.ts +6 -0
  1982. package/es/ts-types/pivot-table/dimension/index.js +2 -0
  1983. package/es/ts-types/pivot-table/dimension/index.js.map +1 -0
  1984. package/es/ts-types/pivot-table/dimension/link-dimension.d.ts +13 -0
  1985. package/es/ts-types/pivot-table/dimension/link-dimension.js +2 -0
  1986. package/es/ts-types/pivot-table/dimension/link-dimension.js.map +1 -0
  1987. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.d.ts +7 -0
  1988. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js +2 -0
  1989. package/es/ts-types/pivot-table/dimension/multilinetext-dimension.js.map +1 -0
  1990. package/es/ts-types/pivot-table/index.d.ts +4 -0
  1991. package/es/ts-types/pivot-table/index.js +8 -0
  1992. package/es/ts-types/pivot-table/index.js.map +1 -0
  1993. package/es/ts-types/pivot-table/indicator/basic-indicator.d.ts +51 -0
  1994. package/es/ts-types/pivot-table/indicator/basic-indicator.js +2 -0
  1995. package/es/ts-types/pivot-table/indicator/basic-indicator.js.map +1 -0
  1996. package/es/ts-types/pivot-table/indicator/chart-indicator.d.ts +11 -0
  1997. package/es/ts-types/pivot-table/indicator/chart-indicator.js +2 -0
  1998. package/es/ts-types/pivot-table/indicator/chart-indicator.js.map +1 -0
  1999. package/es/ts-types/pivot-table/indicator/checkbox-indicator.d.ts +9 -0
  2000. package/es/ts-types/pivot-table/indicator/checkbox-indicator.js +2 -0
  2001. package/es/ts-types/pivot-table/indicator/checkbox-indicator.js.map +1 -0
  2002. package/es/ts-types/pivot-table/indicator/composite-indicator.d.ts +24 -0
  2003. package/es/ts-types/pivot-table/indicator/composite-indicator.js +2 -0
  2004. package/es/ts-types/pivot-table/indicator/composite-indicator.js.map +1 -0
  2005. package/es/ts-types/pivot-table/indicator/image-indicator.d.ts +17 -0
  2006. package/es/ts-types/pivot-table/indicator/image-indicator.js +2 -0
  2007. package/es/ts-types/pivot-table/indicator/image-indicator.js.map +1 -0
  2008. package/es/ts-types/pivot-table/indicator/index.d.ts +12 -0
  2009. package/es/ts-types/pivot-table/indicator/index.js +2 -0
  2010. package/es/ts-types/pivot-table/indicator/index.js.map +1 -0
  2011. package/es/ts-types/pivot-table/indicator/link-indicator.d.ts +22 -0
  2012. package/es/ts-types/pivot-table/indicator/link-indicator.js +2 -0
  2013. package/es/ts-types/pivot-table/indicator/link-indicator.js.map +1 -0
  2014. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.d.ts +11 -0
  2015. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js +2 -0
  2016. package/es/ts-types/pivot-table/indicator/multilinetext-indicator.js.map +1 -0
  2017. package/es/ts-types/pivot-table/indicator/progress-indicator.d.ts +11 -0
  2018. package/es/ts-types/pivot-table/indicator/progress-indicator.js +2 -0
  2019. package/es/ts-types/pivot-table/indicator/progress-indicator.js.map +1 -0
  2020. package/es/ts-types/pivot-table/indicator/sparkline-indicator.d.ts +10 -0
  2021. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js +2 -0
  2022. package/es/ts-types/pivot-table/indicator/sparkline-indicator.js.map +1 -0
  2023. package/es/ts-types/pivot-table/title.d.ts +20 -0
  2024. package/es/ts-types/pivot-table/title.js +2 -0
  2025. package/es/ts-types/pivot-table/title.js.map +1 -0
  2026. package/es/ts-types/sparkline.d.ts +37 -0
  2027. package/es/ts-types/sparkline.js +2 -0
  2028. package/es/ts-types/sparkline.js.map +1 -0
  2029. package/es/ts-types/style-define.d.ts +72 -0
  2030. package/es/ts-types/style-define.js +2 -0
  2031. package/es/ts-types/style-define.js.map +1 -0
  2032. package/es/ts-types/table-engine.d.ts +405 -0
  2033. package/es/ts-types/table-engine.js +13 -0
  2034. package/es/ts-types/table-engine.js.map +1 -0
  2035. package/es/ts-types/theme.d.ts +164 -0
  2036. package/es/ts-types/theme.js +2 -0
  2037. package/es/ts-types/theme.js.map +1 -0
  2038. package/es/ts-types/tooltip.d.ts +26 -0
  2039. package/es/ts-types/tooltip.js +2 -0
  2040. package/es/ts-types/tooltip.js.map +1 -0
  2041. package/es/vrender.d.ts +8 -0
  2042. package/es/vrender.js +27 -0
  2043. package/es/vrender.js.map +1 -0
  2044. package/package.json +132 -0
@@ -0,0 +1,202 @@
1
+ import { _getTargetFrozenColAt, _getTargetFrozenRowAt } from "../tableHelper";
2
+
3
+ export function getRowAt(absoluteY, _this) {
4
+ var _a;
5
+ const frozen = _getTargetFrozenRowAt(_this, absoluteY);
6
+ return frozen || (null !== (_a = getTargetRowAt(absoluteY, _this)) && void 0 !== _a ? _a : {
7
+ top: -1,
8
+ row: -1,
9
+ bottom: -1,
10
+ height: -1
11
+ });
12
+ }
13
+
14
+ export function getColAt(absoluteX, _this) {
15
+ var _a;
16
+ const frozen = _getTargetFrozenColAt(_this, absoluteX);
17
+ return frozen || (null !== (_a = getTargetColAt(absoluteX, _this)) && void 0 !== _a ? _a : {
18
+ left: -1,
19
+ col: -1,
20
+ right: -1,
21
+ width: 1
22
+ });
23
+ }
24
+
25
+ export function getCellAt(absoluteX, absoluteY, _this) {
26
+ const rowInfo = getRowAt(absoluteY, _this), {row: row, top: top, bottom: bottom, height: height} = rowInfo, colInfo = getColAt(absoluteX, _this), {col: col, left: left, right: right, width: width} = colInfo;
27
+ return {
28
+ row: row,
29
+ col: col,
30
+ rect: {
31
+ left: left,
32
+ right: right,
33
+ top: top,
34
+ bottom: bottom,
35
+ width: width,
36
+ height: height
37
+ }
38
+ };
39
+ }
40
+
41
+ export function getTargetColAt(absoluteX, _this) {
42
+ if (0 === absoluteX) return {
43
+ left: 0,
44
+ col: 0,
45
+ right: 0,
46
+ width: 0
47
+ };
48
+ const candCol = computeTargetColByX(absoluteX, _this), right = _this.getColsWidth(0, candCol);
49
+ return absoluteX >= right ? ((startCol, startRight) => {
50
+ let left = startRight - _this.getColWidth(startCol);
51
+ const {colCount: colCount} = _this.internalProps;
52
+ for (let col = startCol; col < colCount; col++) {
53
+ const width = _this.getColWidth(col), right = left + width;
54
+ if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) return {
55
+ left: left,
56
+ col: col,
57
+ right: right,
58
+ width: width
59
+ };
60
+ left = right;
61
+ }
62
+ return null;
63
+ })(candCol, right) : ((startCol, startRight) => {
64
+ let right = startRight;
65
+ for (let col = startCol; col >= 0; col--) {
66
+ const width = _this.getColWidth(col), left = right - width;
67
+ if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) return {
68
+ left: left,
69
+ col: col,
70
+ right: right,
71
+ width: width
72
+ };
73
+ right = left;
74
+ }
75
+ return null;
76
+ })(candCol, right);
77
+ }
78
+
79
+ export function getTargetRowAt(absoluteY, _this) {
80
+ var _a;
81
+ if (0 === absoluteY) return {
82
+ top: 0,
83
+ row: 0,
84
+ bottom: 0,
85
+ height: 0
86
+ };
87
+ const floorOrRound = !0 === (null === (_a = _this.options.customConfig) || void 0 === _a ? void 0 : _a._disableColumnAndRowSizeRound) ? Math.floor : Math.round, candRow = computeTargetRowByY(absoluteY, _this), bottom = _this.getRowsHeight(0, candRow);
88
+ return absoluteY >= bottom ? ((startRow, startBottom) => {
89
+ let top = startBottom - _this.getRowHeight(startRow);
90
+ const {rowCount: rowCount} = _this.internalProps;
91
+ for (let row = startRow; row < rowCount; row++) {
92
+ const height = _this.getRowHeight(row), bottom = top + height;
93
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
94
+ top: top,
95
+ row: row,
96
+ bottom: bottom,
97
+ height: height
98
+ };
99
+ top = bottom;
100
+ }
101
+ return null;
102
+ })(candRow, bottom) : ((startRow, startBottom) => {
103
+ let bottom = startBottom;
104
+ for (let row = startRow; row >= 0; row--) {
105
+ const height = _this.getRowHeight(row), top = bottom - height;
106
+ if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) return {
107
+ top: top,
108
+ row: row,
109
+ bottom: bottom,
110
+ height: height
111
+ };
112
+ bottom = top;
113
+ }
114
+ return null;
115
+ })(candRow, bottom);
116
+ }
117
+
118
+ export function getTargetColAtConsiderRightFrozen(absoluteX, isConsider, _this) {
119
+ if (0 === absoluteX) return {
120
+ left: 0,
121
+ col: 0,
122
+ right: 0,
123
+ width: 0
124
+ };
125
+ if (absoluteX -= _this.tableX, isConsider && absoluteX > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() && absoluteX < _this.tableNoFrameWidth && absoluteX <= _this.getAllColsWidth()) for (let i = 0; i < _this.rightFrozenColCount; i++) if (absoluteX > _this.tableNoFrameWidth - _this.getColsWidth(_this.colCount - i - 1, _this.colCount - 1)) return {
126
+ col: _this.colCount - i - 1,
127
+ left: void 0,
128
+ right: void 0,
129
+ width: void 0
130
+ };
131
+ return getTargetColAt(absoluteX, _this);
132
+ }
133
+
134
+ export function getTargetRowAtConsiderBottomFrozen(absoluteY, isConsider, _this) {
135
+ if (0 === absoluteY) return {
136
+ top: 0,
137
+ row: 0,
138
+ bottom: 0,
139
+ height: 0
140
+ };
141
+ if (absoluteY -= _this.tableY, isConsider && absoluteY > _this.tableNoFrameHeight - _this.getBottomFrozenRowsHeight() && absoluteY < _this.tableNoFrameHeight) for (let i = 0; i < _this.rightFrozenColCount; i++) if (absoluteY > _this.tableNoFrameHeight - _this.getRowsHeight(_this.rowCount - i - 1, _this.rowCount - 1)) return {
142
+ row: _this.rowCount - i - 1,
143
+ top: void 0,
144
+ bottom: void 0,
145
+ height: void 0
146
+ };
147
+ return getTargetRowAt(absoluteY, _this);
148
+ }
149
+
150
+ export function computeTargetRowByY(absoluteY, _this) {
151
+ let defaultRowHeight = _this.defaultRowHeight;
152
+ return _this._rowRangeHeightsMap.get("$0$" + (_this.rowCount - 1)) && (defaultRowHeight = _this._rowRangeHeightsMap.get("$0$" + (_this.rowCount - 1)) / _this.rowCount),
153
+ Math.min(Math.ceil(absoluteY / defaultRowHeight), _this.rowCount - 1);
154
+ }
155
+
156
+ export function computeTargetColByX(absoluteX, _this) {
157
+ if (_this._colRangeWidthsMap.get("$0$" + (_this.colCount - 1))) {
158
+ let startCol = 0, endCol = _this.colCount - 1;
159
+ for (;endCol - startCol > 1; ) {
160
+ const midCol = Math.floor((startCol + endCol) / 2);
161
+ if (absoluteX < _this._colRangeWidthsMap.get(`$0$${midCol}`)) endCol = midCol; else {
162
+ if (!(absoluteX > _this._colRangeWidthsMap.get(`$0$${midCol}`))) return midCol;
163
+ startCol = midCol;
164
+ }
165
+ }
166
+ return endCol;
167
+ }
168
+ return Math.min(Math.ceil(absoluteX / _this.internalProps.defaultColWidth), _this.colCount - 1);
169
+ }
170
+
171
+ export function getCellAtRelativePosition(x, y, _this) {
172
+ x -= _this.tableX;
173
+ let topFrozen = !1;
174
+ (y -= _this.tableY) > 0 && y < _this.getFrozenRowsHeight() && (topFrozen = !0);
175
+ let leftFrozen = !1;
176
+ x > 0 && x < _this.getFrozenColsWidth() && (leftFrozen = !0);
177
+ let bottomFrozen = !1;
178
+ y > _this.tableNoFrameHeight - _this.getBottomFrozenRowsHeight() && y < _this.tableNoFrameHeight && y <= _this.getAllRowsHeight() && (bottomFrozen = !0);
179
+ let rightFrozen = !1;
180
+ x > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() && x < _this.tableNoFrameWidth && x <= _this.getAllColsWidth() && (rightFrozen = !0);
181
+ const colInfo = getTargetColAtConsiderRightFrozen((leftFrozen || rightFrozen ? x : x + _this.scrollLeft) + _this.tableX, rightFrozen, _this), rowInfo = getTargetRowAtConsiderBottomFrozen((topFrozen || bottomFrozen ? y : y + _this.scrollTop) + _this.tableY, bottomFrozen, _this);
182
+ if (colInfo && rowInfo) {
183
+ const {row: row, top: top, bottom: bottom, height: height} = rowInfo, {col: col, left: left, right: right, width: width} = colInfo;
184
+ return {
185
+ row: row,
186
+ col: col,
187
+ rect: {
188
+ left: left,
189
+ right: right,
190
+ top: top,
191
+ bottom: bottom,
192
+ width: width,
193
+ height: height
194
+ }
195
+ };
196
+ }
197
+ return {
198
+ col: -1,
199
+ row: -1
200
+ };
201
+ }
202
+ //# sourceMappingURL=get-cell-position.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/utils/get-cell-position.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAO9E,MAAM,UAAU,QAAQ,CAAC,SAAiB,EAAE,KAAmB;;IAC7D,MAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACvD,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAC;KACf;IACD,OAAO,MAAA,cAAc,CAAC,SAAS,EA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;YACH,MAAM;YACN,KAAK;YACL,MAAM;SACP,CAAC;QACF,OAAO;YACL,GAAG;YACH,GAAG;YACH,IAAI;SACL,CAAC;KACH;IACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;AAC9B,CAAC","file":"get-cell-position.js","sourcesContent":["import type { CellAddressWithBound, ColumnInfo, RowInfo } from '../../ts-types';\nimport type { BaseTableAPI } from '../../ts-types/base-table';\nimport { _getTargetFrozenColAt, _getTargetFrozenRowAt } from '../tableHelper';\n\n/**\n * 根据y值计算所在行\n * @param absoluteY 相对于表格左上角的y坐标(无滚动)\n * @returns\n */\nexport function getRowAt(absoluteY: number, _this: BaseTableAPI): RowInfo {\n const frozen = _getTargetFrozenRowAt(_this, absoluteY);\n if (frozen) {\n return frozen;\n }\n return getTargetRowAt(absoluteY, _this) ?? { top: -1, row: -1, bottom: -1, height: -1 };\n}\n\n/**\n * 根据x值计算所在列\n * @param absoluteX 相对于表格左上角的x坐标(无滚动)\n * @returns\n */\nexport function getColAt(absoluteX: number, _this: BaseTableAPI): ColumnInfo {\n const frozen = _getTargetFrozenColAt(_this, absoluteX);\n if (frozen) {\n return frozen;\n }\n return getTargetColAt(absoluteX, _this) ?? { left: -1, col: -1, right: -1, width: 1 };\n}\n/**\n * 根据坐标值获取行列位置,index和rect范围\n * @param absoluteX 表格左上角的x坐标(无滚动)\n * @param absoluteY 表格左上角的y坐标(无滚动)\n * @returns\n */\nexport function getCellAt(absoluteX: number, absoluteY: number, _this: BaseTableAPI): CellAddressWithBound {\n const rowInfo = getRowAt(absoluteY, _this);\n const { row, top, bottom, height } = rowInfo;\n const colInfo = getColAt(absoluteX, _this);\n const { col, left, right, width } = colInfo;\n const rect = {\n left,\n right,\n top,\n bottom,\n width,\n height\n };\n return {\n row,\n col,\n rect\n };\n}\n\n/**\n * 根据x获取该位置所处列值\n * @param table\n * @param absoluteX 表格左上角的x坐标(无滚动)\n * @returns\n */\nexport function getTargetColAt(absoluteX: number, _this: BaseTableAPI): ColumnInfo | null {\n if (absoluteX === 0) {\n return { left: 0, col: 0, right: 0, width: 0 };\n }\n const findBefore = (startCol: number, startRight: number): ColumnInfo | null => {\n let right = startRight;\n for (let col = startCol; col >= 0; col--) {\n const width = _this.getColWidth(col);\n const left = right - width;\n if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) {\n return {\n left,\n col,\n right,\n width\n };\n }\n right = left;\n }\n return null;\n };\n const findAfter = (startCol: number, startRight: number): ColumnInfo | null => {\n let left = startRight - _this.getColWidth(startCol);\n const { colCount } = _this.internalProps;\n for (let col = startCol; col < colCount; col++) {\n const width = _this.getColWidth(col);\n const right = left + width;\n if (Math.round(left) <= Math.round(absoluteX) && Math.round(absoluteX) < Math.round(right)) {\n return {\n left,\n col,\n right,\n width\n };\n }\n left = right;\n }\n return null;\n };\n //计算这个位置处是第几行\n const candCol = computeTargetColByX(absoluteX, _this);\n const right = _this.getColsWidth(0, candCol);\n if (absoluteX >= right) {\n return findAfter(candCol, right);\n }\n return findBefore(candCol, right);\n}\n\n/**\n * 根据y获取该位置所处行值\n * @param table\n * @param absoluteX 表格左上角的y坐标(无滚动)\n * @returns\n */\nexport function getTargetRowAt(absoluteY: number, _this: BaseTableAPI): RowInfo | null {\n if (absoluteY === 0) {\n return { top: 0, row: 0, bottom: 0, height: 0 };\n }\n\n const floorOrRound = _this.options.customConfig?._disableColumnAndRowSizeRound === true ? Math.floor : Math.round;\n\n const findBefore = (startRow: number, startBottom: number): RowInfo | null => {\n let bottom = startBottom;\n for (let row = startRow; row >= 0; row--) {\n const height = _this.getRowHeight(row);\n const top = bottom - height;\n if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) {\n return {\n top,\n row,\n bottom,\n height\n };\n }\n bottom = top;\n }\n return null;\n };\n const findAfter = (startRow: number, startBottom: number): RowInfo | null => {\n let top = startBottom - _this.getRowHeight(startRow);\n const { rowCount } = _this.internalProps;\n for (let row = startRow; row < rowCount; row++) {\n const height = _this.getRowHeight(row);\n const bottom = top + height;\n if (floorOrRound(top) <= floorOrRound(absoluteY) && floorOrRound(absoluteY) < floorOrRound(bottom)) {\n return {\n top,\n row,\n bottom,\n height\n };\n }\n top = bottom;\n }\n return null;\n };\n // const candRow = Math.min(\n // Math.ceil(absoluteY / this.internalProps.defaultRowHeight),\n // this.rowCount - 1\n // );\n //计算这个位置处是第几行\n const candRow = computeTargetRowByY(absoluteY, _this);\n const bottom = _this.getRowsHeight(0, candRow);\n if (absoluteY >= bottom) {\n return findAfter(candRow, bottom);\n }\n return findBefore(candRow, bottom);\n}\n\n/**\n * 根据x获取右侧冻结中该位置所处列值\n * @param table\n * @param absoluteX 屏幕坐标x值\n * @returns\n */\nexport function getTargetColAtConsiderRightFrozen(\n absoluteX: number,\n isConsider: boolean,\n _this: BaseTableAPI\n): ColumnInfo | null {\n if (absoluteX === 0) {\n return { left: 0, col: 0, right: 0, width: 0 };\n }\n absoluteX = absoluteX - _this.tableX;\n if (\n isConsider &&\n absoluteX > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() &&\n absoluteX < _this.tableNoFrameWidth &&\n absoluteX <= _this.getAllColsWidth()\n ) {\n for (let i = 0; i < _this.rightFrozenColCount; i++) {\n if (absoluteX > _this.tableNoFrameWidth - _this.getColsWidth(_this.colCount - i - 1, _this.colCount - 1)) {\n return {\n col: _this.colCount - i - 1,\n left: undefined,\n right: undefined,\n width: undefined\n };\n }\n }\n }\n return getTargetColAt(absoluteX, _this);\n}\n\n/**\n * 根据y获取底部冻结该位置所处行值\n * @param table\n * @param absoluteX 屏幕坐标y值\n * @param isConsider 是否考Y值是否在底部冻结区域内\n * @returns\n */\nexport function getTargetRowAtConsiderBottomFrozen(\n absoluteY: number,\n isConsider: boolean,\n _this: BaseTableAPI\n): RowInfo | null {\n if (absoluteY === 0) {\n return { top: 0, row: 0, bottom: 0, height: 0 };\n }\n absoluteY = absoluteY - _this.tableY;\n if (\n isConsider &&\n absoluteY > _this.tableNoFrameHeight - _this.getBottomFrozenRowsHeight() &&\n absoluteY < _this.tableNoFrameHeight\n ) {\n for (let i = 0; i < _this.rightFrozenColCount; i++) {\n if (absoluteY > _this.tableNoFrameHeight - _this.getRowsHeight(_this.rowCount - i - 1, _this.rowCount - 1)) {\n return {\n row: _this.rowCount - i - 1,\n top: undefined,\n bottom: undefined,\n height: undefined\n };\n }\n }\n }\n return getTargetRowAt(absoluteY, _this);\n}\n\n/**\n * 根据y值(包括了scroll的)计算所在行\n * @param this\n * @param absoluteY 左边y值,包含了scroll滚动距离\n * @returns\n */\nexport function computeTargetRowByY(absoluteY: number, _this: BaseTableAPI): number {\n let defaultRowHeight = _this.defaultRowHeight;\n\n //使用二分法计算出row\n if (_this._rowRangeHeightsMap.get(`$0$${_this.rowCount - 1}`)) {\n defaultRowHeight = _this._rowRangeHeightsMap.get(`$0$${_this.rowCount - 1}`) / _this.rowCount;\n // let startRow = 0;\n // let endRow = this.rowCount - 1;\n // while (endRow - startRow > 1) {\n // const midRow = Math.floor((startRow + endRow) / 2);\n // if (absoluteY < this._rowRangeHeightsMap.get(`$0$${midRow}`)) {\n // endRow = midRow;\n // } else if (absoluteY > this._rowRangeHeightsMap.get(`$0$${midRow}`)) {\n // startRow = midRow;\n // } else {\n // return midRow;\n // }\n // }\n // return endRow;\n }\n //否则使用defaultRowHeight大约计算一个row\n return Math.min(Math.ceil(absoluteY / defaultRowHeight), _this.rowCount - 1);\n}\n\n/**\n * 根据x值(包括了scroll的)计算所在列 主要借助colRangeWidthsMap缓存来提高计算效率\n * @param this\n * @param absoluteX 左边x值,包含了scroll滚动距离\n * @returns\n */\nexport function computeTargetColByX(absoluteX: number, _this: BaseTableAPI): number {\n //使用二分法计算出col\n if (_this._colRangeWidthsMap.get(`$0$${_this.colCount - 1}`)) {\n let startCol = 0;\n let endCol = _this.colCount - 1;\n while (endCol - startCol > 1) {\n const midCol = Math.floor((startCol + endCol) / 2);\n if (absoluteX < _this._colRangeWidthsMap.get(`$0$${midCol}`)) {\n endCol = midCol;\n } else if (absoluteX > _this._colRangeWidthsMap.get(`$0$${midCol}`)) {\n startCol = midCol;\n } else {\n return midCol;\n }\n }\n return endCol;\n }\n //否则使用defaultColWidth大约计算一个col\n return Math.min(Math.ceil(absoluteX / _this.internalProps.defaultColWidth), _this.colCount - 1);\n}\n\n/**\n * 获取屏幕坐标对应的单元格信息,考虑滚动\n * @param this\n * @param relativeX 左边x值,相对于容器左上角,考虑表格滚动\n * @param relativeY 左边y值,相对于容器左上角,考虑表格滚动\n * @returns\n */\nexport function getCellAtRelativePosition(x: number, y: number, _this: BaseTableAPI): CellAddressWithBound {\n // table border and outer component\n x -= _this.tableX;\n y -= _this.tableY;\n\n // top frozen\n let topFrozen = false;\n if (y > 0 && y < _this.getFrozenRowsHeight()) {\n topFrozen = true;\n }\n\n // left frozen\n let leftFrozen = false;\n if (x > 0 && x < _this.getFrozenColsWidth()) {\n leftFrozen = true;\n }\n\n // bottom frozen\n let bottomFrozen = false;\n if (\n y > _this.tableNoFrameHeight - _this.getBottomFrozenRowsHeight() &&\n y < _this.tableNoFrameHeight &&\n y <= _this.getAllRowsHeight()\n ) {\n bottomFrozen = true;\n }\n // right frozen\n let rightFrozen = false;\n if (\n x > _this.tableNoFrameWidth - _this.getRightFrozenColsWidth() &&\n x < _this.tableNoFrameWidth &&\n x <= _this.getAllColsWidth()\n ) {\n rightFrozen = true;\n }\n\n // 加上 tableX 和 tableY 是因为在考虑冻结列和冻结行时,需要将坐标转换为相对于表格左上角的坐标\n const colInfo = getTargetColAtConsiderRightFrozen(\n (leftFrozen || rightFrozen ? x : x + _this.scrollLeft) + _this.tableX,\n rightFrozen,\n _this\n );\n const rowInfo = getTargetRowAtConsiderBottomFrozen(\n (topFrozen || bottomFrozen ? y : y + _this.scrollTop) + _this.tableY,\n bottomFrozen,\n _this\n );\n\n if (colInfo && rowInfo) {\n const { row, top, bottom, height } = rowInfo;\n const { col, left, right, width } = colInfo;\n const rect = {\n left,\n right,\n top,\n bottom,\n width,\n height\n };\n return {\n row,\n col,\n rect\n };\n }\n return { col: -1, row: -1 };\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CustomMergeCell } from '../../ts-types';
2
+ export declare function getCustomMergeCellFunc(customMergeCell?: CustomMergeCell): import("../../ts-types").CustomMergeCellFunc;
@@ -0,0 +1,6 @@
1
+ import { isArray, isFunction } from "@visactor/vutils";
2
+
3
+ export function getCustomMergeCellFunc(customMergeCell) {
4
+ return isFunction(customMergeCell) ? customMergeCell : isArray(customMergeCell) ? (col, row) => customMergeCell.find((item => item.range.start.col <= col && item.range.end.col >= col && item.range.start.row <= row && item.range.end.row >= row)) : void 0;
5
+ }
6
+ //# sourceMappingURL=get-custom-merge-cell-func.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/utils/get-custom-merge-cell-func.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,UAAU,sBAAsB,CAAC,eAAiC;IACtE,IAAI,UAAU,CAAC,eAAe,CAAC,EAAE;QAC/B,OAAO,eAAe,CAAC;KACxB;IACD,IAAI,OAAO,CAAC,eAAe,CAAC,EAAE;QAC5B,OAAO,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;YAClC,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACjC,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG;oBAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG;oBACzB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG;oBAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAC1B,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;KACH;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","file":"get-custom-merge-cell-func.js","sourcesContent":["import { isArray, isFunction } from '@visactor/vutils';\nimport type { CustomMergeCell } from '../../ts-types';\n\nexport function getCustomMergeCellFunc(customMergeCell?: CustomMergeCell) {\n if (isFunction(customMergeCell)) {\n return customMergeCell;\n }\n if (isArray(customMergeCell)) {\n return (col: number, row: number) => {\n return customMergeCell.find(item => {\n return (\n item.range.start.col <= col &&\n item.range.end.col >= col &&\n item.range.start.row <= row &&\n item.range.end.row >= row\n );\n });\n };\n }\n return undefined;\n}\n"]}
package/es/core.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { BaseTable } from './core/BaseTable';
2
+ import type { TABLE_EVENT_TYPE as EVENT_TYPE } from './core/TABLE_EVENT_TYPE';
3
+ export { BaseTable, EVENT_TYPE };
package/es/core.js ADDED
@@ -0,0 +1,4 @@
1
+ import { BaseTable } from "./core/BaseTable";
2
+
3
+ export { BaseTable };
4
+ //# sourceMappingURL=core.js.map
package/es/core.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAc,CAAC","file":"core.js","sourcesContent":["import { BaseTable } from './core/BaseTable';\nimport type { TABLE_EVENT_TYPE as EVENT_TYPE } from './core/TABLE_EVENT_TYPE';\n\nexport { BaseTable, EVENT_TYPE };\n"]}
@@ -0,0 +1,36 @@
1
+ import { type FieldData, type FieldDef, type IListTableDataConfig, type IPagination, type MaybePromiseOrUndefined } from '../ts-types';
2
+ import type { BaseTableAPI } from '../ts-types/base-table';
3
+ import type { ColumnsDefine } from '../ts-types/list-table/layout-map/api';
4
+ import type { DataSourceParam } from './DataSource';
5
+ import { DataSource } from './DataSource';
6
+ export declare class CachedDataSource extends DataSource {
7
+ private _recordCache;
8
+ private _fieldCache;
9
+ groupAggregator: any;
10
+ private _isGrouped;
11
+ static get EVENT_TYPE(): typeof DataSource.EVENT_TYPE;
12
+ static ofArray(array: any[], dataConfig?: IListTableDataConfig, pagination?: IPagination, columns?: ColumnsDefine, rowHierarchyType?: 'grid' | 'tree', hierarchyExpandLevel?: number): CachedDataSource;
13
+ constructor(opt?: DataSourceParam, dataConfig?: IListTableDataConfig, pagination?: IPagination, columns?: ColumnsDefine, rowHierarchyType?: 'grid' | 'tree', hierarchyExpandLevel?: number);
14
+ protected getOriginalRecord(index: number | number[]): MaybePromiseOrUndefined;
15
+ protected getRawRecord(index: number | number[]): MaybePromiseOrUndefined;
16
+ protected getOriginalField<F extends FieldDef>(index: number, field: F, col?: number, row?: number, table?: BaseTableAPI): FieldData;
17
+ clearCache(): void;
18
+ protected fieldPromiseCallBack<F extends FieldDef>(index: number, field: F, value: MaybePromiseOrUndefined): void;
19
+ protected recordPromiseCallBack(index: number, record: MaybePromiseOrUndefined): void;
20
+ get records(): any[];
21
+ release(): void;
22
+ _generateFieldAggragations(): void;
23
+ processRecords(records: any[]): any;
24
+ getGroupLength(): number;
25
+ updateGroup(): void;
26
+ getOriginRecordIndexForGroup(recordIndex: number | number[]): number;
27
+ addRecordsForGroup(recordArr: any[], recordIndex?: number | number[]): void;
28
+ deleteRecordsForGroup(recordIndexs: (number | number[])[]): void;
29
+ updateRecordsForGroup(records: any[], recordIndexs: (number | number[])[]): void;
30
+ addRecordsForTree(recordArr: any[], recordIndex?: number | number[]): void;
31
+ deleteRecordsForTree(recordIndexs: (number | number[])[]): void;
32
+ updateRecordsForTree(records: any[], recordIndexs: (number | number[])[]): void;
33
+ adjustBeforeChangedRecordsMap(insertIndex: number | number[], insertCount: number, type?: 'add' | 'delete'): void;
34
+ cacheBeforeChangedRecord(dataIndex: number | number[], table?: BaseTableAPI): void;
35
+ getGroupSeriesNumber(showIndex: number): number;
36
+ }
@@ -0,0 +1,249 @@
1
+ import { cloneDeep, isArray, isNumber, isValid } from "@visactor/vutils";
2
+
3
+ import { AggregationType } from "../ts-types";
4
+
5
+ import { DataSource, getValue, getValueFromDeepArray, sortRecordIndexs } from "./DataSource";
6
+
7
+ import get from "lodash/get";
8
+
9
+ function _setFieldCache(fCache, index, field, value) {
10
+ (fCache[index] || (fCache[index] = new Map)).set(field, value);
11
+ }
12
+
13
+ export class CachedDataSource extends DataSource {
14
+ static get EVENT_TYPE() {
15
+ return DataSource.EVENT_TYPE;
16
+ }
17
+ static ofArray(array, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
18
+ return new CachedDataSource({
19
+ get: index => array[index],
20
+ length: array.length,
21
+ records: array
22
+ }, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel);
23
+ }
24
+ constructor(opt, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel) {
25
+ let _isGrouped;
26
+ isArray(null == dataConfig ? void 0 : dataConfig.groupByRules) && (rowHierarchyType = "tree",
27
+ _isGrouped = !0), super(opt, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel),
28
+ this._isGrouped = _isGrouped, this._recordCache = [], this._fieldCache = {};
29
+ }
30
+ getOriginalRecord(index) {
31
+ return isNumber(index) && this._recordCache && this._recordCache[index] ? this._recordCache[index] : super.getOriginalRecord(index);
32
+ }
33
+ getRawRecord(index) {
34
+ var _a, _b, _c, _d;
35
+ let originRecordIndex, data;
36
+ if (this._isGrouped) {
37
+ if (originRecordIndex = this.getOriginRecordIndexForGroup(index), isValid(originRecordIndex) && (null === (_a = this.beforeChangedRecordsMap) || void 0 === _a ? void 0 : _a.has(originRecordIndex.toString()))) return null === (_b = this.beforeChangedRecordsMap) || void 0 === _b ? void 0 : _b.get(originRecordIndex.toString());
38
+ } else if (null === (_c = this.beforeChangedRecordsMap) || void 0 === _c ? void 0 : _c.has(index.toString())) return null === (_d = this.beforeChangedRecordsMap) || void 0 === _d ? void 0 : _d.get(index.toString());
39
+ return isNumber(index) && this._recordCache && this._recordCache[index] ? this._recordCache[index] : (data = this.dataSourceObj.records ? Array.isArray(index) ? getValueFromDeepArray(this.records, index) : this.records[index] : this._get(index),
40
+ getValue(data, (val => {
41
+ this.recordPromiseCallBack(index, val);
42
+ })));
43
+ }
44
+ getOriginalField(index, field, col, row, table) {
45
+ const rowCache = this._fieldCache && this._fieldCache[index];
46
+ if (rowCache) {
47
+ const cache = rowCache.get(field);
48
+ if (cache) return cache;
49
+ }
50
+ return super.getOriginalField(index, field, col, row, table);
51
+ }
52
+ clearCache() {
53
+ this._recordCache && (this._recordCache = []), this._fieldCache && (this._fieldCache = {});
54
+ }
55
+ fieldPromiseCallBack(index, field, value) {
56
+ _setFieldCache(this._fieldCache, index, field, value);
57
+ }
58
+ recordPromiseCallBack(index, record) {
59
+ this._recordCache && (this._recordCache[index] = record);
60
+ }
61
+ get records() {
62
+ return Array.isArray(this._recordCache) && this._recordCache.length > 0 ? this._recordCache : super.records;
63
+ }
64
+ release() {
65
+ var _a;
66
+ null === (_a = super.release) || void 0 === _a || _a.call(this), this._recordCache = null,
67
+ this._fieldCache = null;
68
+ }
69
+ _generateFieldAggragations() {
70
+ var _a;
71
+ if (super._generateFieldAggragations(), isArray(null === (_a = this.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules)) {
72
+ const groupByKeys = this.dataConfig.groupByRules;
73
+ this.groupAggregator = new this.registedAggregators[AggregationType.CUSTOM]({
74
+ field: "",
75
+ aggregationFun: (values, records, field) => {
76
+ const groupMap = new Map, groupResult = [];
77
+ for (let i = 0; i < records.length; i++) dealWithGroup(records[i], groupResult, groupMap, groupByKeys, 0);
78
+ return groupResult;
79
+ }
80
+ }), this.fieldAggregators.push(this.groupAggregator);
81
+ }
82
+ }
83
+ processRecords(records) {
84
+ var _a;
85
+ const result = super.processRecords(records), groupResult = null === (_a = this.groupAggregator) || void 0 === _a ? void 0 : _a.value();
86
+ return groupResult || result;
87
+ }
88
+ getGroupLength() {
89
+ var _a, _b, _c;
90
+ return null !== (_c = null === (_b = null === (_a = this.dataConfig) || void 0 === _a ? void 0 : _a.groupByRules) || void 0 === _b ? void 0 : _b.length) && void 0 !== _c ? _c : 0;
91
+ }
92
+ updateGroup() {
93
+ var _a, _b, _c;
94
+ this.clearCache();
95
+ const oldSource = this.source;
96
+ this._source = this.processRecords(null !== (_b = null === (_a = this.dataSourceObj) || void 0 === _a ? void 0 : _a.records) && void 0 !== _b ? _b : this.dataSourceObj),
97
+ oldSource && syncGroupCollapseState(oldSource, this.source), this.sourceLength = (null === (_c = this.source) || void 0 === _c ? void 0 : _c.length) || 0,
98
+ this.sortedIndexMap.clear(), this.currentIndexedData = Array.from({
99
+ length: this.sourceLength
100
+ }, ((_, i) => i)), this.userPagination || (this.pagination.perPageCount = this.sourceLength,
101
+ this.pagination.totalCount = this.sourceLength), this.initTreeHierarchyState(),
102
+ this.updatePagerData();
103
+ }
104
+ getOriginRecordIndexForGroup(recordIndex) {
105
+ const targetRecord = this.getOriginalRecord(recordIndex);
106
+ if (isValid(targetRecord) && !(targetRecord.children && targetRecord.children.length > 0)) for (let i = 0; i < this.dataSourceObj.records.length; i++) if (this.dataSourceObj.records[i] === targetRecord) return i;
107
+ }
108
+ addRecordsForGroup(recordArr, recordIndex) {
109
+ if (!isArray(recordArr) || 0 === recordArr.length) return;
110
+ let originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);
111
+ (void 0 === originRecordIndex || originRecordIndex > this.dataSourceObj.records) && (originRecordIndex = this.dataSourceObj.records.length),
112
+ this.dataSourceObj.records.splice(originRecordIndex, 0, ...recordArr), this.adjustBeforeChangedRecordsMap(originRecordIndex, recordArr.length),
113
+ this.updateGroup();
114
+ }
115
+ deleteRecordsForGroup(recordIndexs) {
116
+ if (!isArray(recordIndexs) || 0 === recordIndexs.length) return;
117
+ const recordIndexsMaxToMin = sortRecordIndexs(recordIndexs, -1);
118
+ for (let index = 0; index < recordIndexsMaxToMin.length; index++) {
119
+ const recordIndex = recordIndexsMaxToMin[index];
120
+ if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) continue;
121
+ const originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);
122
+ this.beforeChangedRecordsMap.delete(originRecordIndex.toString()), this.dataSourceObj.records.splice(originRecordIndex, 1),
123
+ this.sourceLength -= 1, this.adjustBeforeChangedRecordsMap(originRecordIndex, 1, "delete");
124
+ }
125
+ this.updateGroup();
126
+ }
127
+ updateRecordsForGroup(records, recordIndexs) {
128
+ for (let index = 0; index < recordIndexs.length; index++) {
129
+ const recordIndex = recordIndexs[index];
130
+ if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) continue;
131
+ const originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);
132
+ this.beforeChangedRecordsMap.delete(originRecordIndex.toString()), this.dataSourceObj.records[originRecordIndex] = records[index];
133
+ }
134
+ this.updateGroup();
135
+ }
136
+ addRecordsForTree(recordArr, recordIndex) {
137
+ if (isArray(recordArr) && 0 !== recordArr.length) {
138
+ if (this.adjustBeforeChangedRecordsMap(recordIndex, recordArr.length), isNumber(recordIndex)) this.dataSourceObj.records.splice(recordIndex, 0, ...recordArr); else {
139
+ const index = recordIndex.pop(), parentRecord = this.getOriginalRecord(recordIndex);
140
+ parentRecord.children ? parentRecord.children.splice(index, 0, ...recordArr) : parentRecord.children = recordArr;
141
+ }
142
+ this.initTreeHierarchyState(), this.updatePagerData();
143
+ }
144
+ }
145
+ deleteRecordsForTree(recordIndexs) {
146
+ if (!isArray(recordIndexs) || 0 === recordIndexs.length) return;
147
+ const recordIndexsMaxToMin = sortRecordIndexs(recordIndexs, -1);
148
+ for (let index = 0; index < recordIndexsMaxToMin.length; index++) {
149
+ const recordIndex = recordIndexsMaxToMin[index];
150
+ if (!isNumber(recordIndex) || !(recordIndex >= this.sourceLength || recordIndex < 0)) {
151
+ if (this.beforeChangedRecordsMap.delete(recordIndex.toString()), isNumber(recordIndex)) this.dataSourceObj.records.splice(recordIndex, 1); else {
152
+ const index = recordIndex.pop();
153
+ this.getOriginalRecord(recordIndex).children.splice(index, 1);
154
+ }
155
+ this.adjustBeforeChangedRecordsMap(recordIndex, 1, "delete");
156
+ }
157
+ }
158
+ this.initTreeHierarchyState(), this.updatePagerData();
159
+ }
160
+ updateRecordsForTree(records, recordIndexs) {
161
+ for (let index = 0; index < recordIndexs.length; index++) {
162
+ const recordIndex = recordIndexs[index], record = records[index];
163
+ if (!isNumber(recordIndex) || !(recordIndex >= this.sourceLength || recordIndex < 0)) if (this.beforeChangedRecordsMap.delete(recordIndex.toString()),
164
+ isNumber(recordIndex)) this.dataSourceObj.records.splice(recordIndex, 1, record); else {
165
+ const index = recordIndex.pop();
166
+ this.getOriginalRecord(recordIndex).children.splice(index, 1, record);
167
+ }
168
+ }
169
+ this.initTreeHierarchyState(), this.updatePagerData();
170
+ }
171
+ adjustBeforeChangedRecordsMap(insertIndex, insertCount, type = "add") {
172
+ if ("tree" === this.rowHierarchyType) {
173
+ let insertIndexArr;
174
+ insertIndexArr = isNumber(insertIndex) ? [ insertIndex ] : insertIndex;
175
+ const targetResult = [];
176
+ this.beforeChangedRecordsMap.forEach(((value, key) => {
177
+ var _a, _b;
178
+ const keyArray = key.split(","), length = Math.max(keyArray.length, insertIndexArr.length);
179
+ for (let i = 0; i < length; i++) {
180
+ const current = null !== (_a = insertIndexArr[i]) && void 0 !== _a ? _a : -1, keyIndex = null !== (_b = Number(keyArray[i])) && void 0 !== _b ? _b : -1;
181
+ if (current < keyIndex || current === keyIndex && i === keyArray.length - 1 && i === insertIndexArr.length - 1) return keyArray[i] = (keyIndex + ("add" === type ? insertCount : -insertCount)).toString(),
182
+ void targetResult.push({
183
+ originKey: key,
184
+ targetKey: keyArray.toString(),
185
+ value: value
186
+ });
187
+ }
188
+ })), targetResult.forEach((({originKey: originKey, targetKey: targetKey, value: value}) => {
189
+ this.beforeChangedRecordsMap.delete(originKey), this.beforeChangedRecordsMap.set(targetKey, value);
190
+ }));
191
+ } else super.adjustBeforeChangedRecordsMap(insertIndex, insertCount, type);
192
+ }
193
+ cacheBeforeChangedRecord(dataIndex, table) {
194
+ var _a;
195
+ const originRecord = this.getOriginalRecord(dataIndex);
196
+ table.options.groupBy && (dataIndex = this.getOriginRecordIndexForGroup(dataIndex)),
197
+ this.beforeChangedRecordsMap.has(dataIndex.toString()) || this.beforeChangedRecordsMap.set(dataIndex.toString(), null !== (_a = cloneDeep(originRecord, void 0, [ "vtable_gantt_linkedFrom", "vtable_gantt_linkedTo" ])) && void 0 !== _a ? _a : {});
198
+ }
199
+ getGroupSeriesNumber(showIndex) {
200
+ const recordIndex = this.dataSource.currentIndexedData[showIndex], parentRecordIndexLength = recordIndex.length - 1;
201
+ let recordIndexLength = recordIndex.length, i = 1;
202
+ for (;recordIndexLength > parentRecordIndexLength; i++) {
203
+ const index = this.dataSource.currentIndexedData[showIndex - i];
204
+ recordIndexLength = isNumber(index) ? 1 : index.length;
205
+ }
206
+ return i - 1;
207
+ }
208
+ }
209
+
210
+ function dealWithGroup(record, children, map, groupByKeys, level) {
211
+ const groupByKey = groupByKeys[level];
212
+ if (!isValid(groupByKey)) return void children.push(record);
213
+ const value = get(record, groupByKey);
214
+ if (void 0 !== value) {
215
+ if (map.has(value)) {
216
+ const index = map.get(value);
217
+ return dealWithGroup(record, children[index].children, children[index].map, groupByKeys, level + 1);
218
+ }
219
+ return map.set(value, children.length), children.push({
220
+ vtableMerge: !0,
221
+ vtableMergeName: value,
222
+ children: [],
223
+ map: new Map
224
+ }), dealWithGroup(record, children[children.length - 1].children, children[children.length - 1].map, groupByKeys, level + 1);
225
+ }
226
+ }
227
+
228
+ function syncGroupCollapseState(oldSource, newSource, oldGroupMap, newGroupMap) {
229
+ if (!oldGroupMap) {
230
+ oldGroupMap = new Map;
231
+ for (let i = 0; i < oldSource.length; i++) {
232
+ const record = oldSource[i];
233
+ record.vtableMerge && oldGroupMap.set(record.vtableMergeName, i);
234
+ }
235
+ }
236
+ if (!newGroupMap) {
237
+ newGroupMap = new Map;
238
+ for (let i = 0; i < newSource.length; i++) {
239
+ const record = newSource[i];
240
+ record.vtableMerge && newGroupMap.set(record.vtableMergeName, i);
241
+ }
242
+ }
243
+ for (let i = 0; i < oldSource.length; i++) {
244
+ const oldRecord = oldSource[i], newRecord = newSource[newGroupMap.get(oldRecord.vtableMergeName)];
245
+ isValid(newRecord) && (newRecord.hierarchyState = oldSource[i].hierarchyState),
246
+ isArray(oldRecord.children) && isArray(newRecord.children) && 0 !== oldRecord.map.size && 0 !== newRecord.map.size && syncGroupCollapseState(oldRecord.children, newRecord.children, oldRecord.map, newRecord.map);
247
+ }
248
+ }
249
+ //# sourceMappingURL=CachedDataSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/data/CachedDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EACL,eAAe,EAQhB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,GAAG,MAAM,YAAY,CAAC;AAG7B,SAAS,cAAc,CACrB,MAA+C,EAC/C,KAAa,EACb,KAAe,EAEf,KAAU;IAEV,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;IAC9D,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7B,CAAC;AAOD,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAa9C,MAAM,KAAK,UAAU;QACnB,OAAO,UAAU,CAAC,UAAU,CAAC;IAC/B,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,KAAY,EACZ,UAAiC,EACjC,UAAwB,EACxB,OAAuB,EACvB,gBAAkC,EAClC,oBAA6B;QAE7B,OAAO,IAAI,gBAAgB,CACzB;YACE,GAAG,EAAE,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GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;QACxE,IAAI,OAAO,CAAC,SAAS,CAAC,EAAE;YACtB,SAAS,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;SACxD;QACD,IACE,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3B,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3B,SAAS,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC;YACxB,SAAS,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,EACxB;YACA,sBAAsB,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;SAC9F;KACF;AACH,CAAC","file":"CachedDataSource.js","sourcesContent":["import { cloneDeep, isArray, isNumber, isValid } from '@visactor/vutils';\nimport type { ListTableConstructorOptions } from '../ts-types';\nimport {\n AggregationType,\n HierarchyState,\n type FieldData,\n type FieldDef,\n type IListTableDataConfig,\n type IPagination,\n type MaybePromise,\n type MaybePromiseOrUndefined\n} from '../ts-types';\nimport type { BaseTableAPI } from '../ts-types/base-table';\nimport type { ColumnData, ColumnsDefine } from '../ts-types/list-table/layout-map/api';\nimport type { DataSourceParam } from './DataSource';\nimport { DataSource, getValue, getValueFromDeepArray, sortRecordIndexs } from './DataSource';\nimport get from 'lodash/get';\n\n/** @private */\nfunction _setFieldCache(\n fCache: { [index: number]: Map<FieldDef, any> },\n index: number,\n field: FieldDef,\n\n value: any\n): void {\n const recCache = fCache[index] || (fCache[index] = new Map());\n recCache.set(field, value);\n}\n/**\n * table data source for caching Promise data\n *\n * @classdesc VTable.data.CachedDataSource\n * @memberof VTable.data\n */\nexport class CachedDataSource extends DataSource {\n /**\n * record cache 当用户定义的CachedDataSource.get为promise的时候 可以用rCache缓存已获取数据条目\n */\n private _recordCache: any[];\n /**\n * field cache 当用户定义field为promise的时候 可以用fCache缓存已获取值\n */\n private _fieldCache: { [index: number]: Map<FieldDef, any> };\n\n groupAggregator: any;\n private _isGrouped: boolean;\n\n static get EVENT_TYPE(): typeof DataSource.EVENT_TYPE {\n return DataSource.EVENT_TYPE;\n }\n static ofArray(\n array: any[],\n dataConfig?: IListTableDataConfig,\n pagination?: IPagination,\n columns?: ColumnsDefine,\n rowHierarchyType?: 'grid' | 'tree',\n hierarchyExpandLevel?: number\n ): CachedDataSource {\n return new CachedDataSource(\n {\n get: (index: number): any => {\n // if (Array.isArray(index)) {\n // return getValueFromDeepArray(array, index);\n // }\n return array[index];\n },\n length: array.length,\n records: array\n },\n dataConfig,\n pagination,\n columns,\n rowHierarchyType,\n hierarchyExpandLevel\n );\n }\n\n // _originalRecords: any[];\n constructor(\n opt?: DataSourceParam,\n dataConfig?: IListTableDataConfig,\n pagination?: IPagination,\n columns?: ColumnsDefine,\n rowHierarchyType?: 'grid' | 'tree',\n hierarchyExpandLevel?: number\n ) {\n let _isGrouped;\n if (isArray(dataConfig?.groupByRules)) {\n rowHierarchyType = 'tree';\n _isGrouped = true;\n }\n super(opt, dataConfig, pagination, columns, rowHierarchyType, hierarchyExpandLevel);\n this._isGrouped = _isGrouped;\n this._recordCache = [];\n this._fieldCache = {};\n }\n protected getOriginalRecord(index: number | number[]): MaybePromiseOrUndefined {\n if (isNumber(index) && this._recordCache && this._recordCache[index]) {\n return this._recordCache[index];\n }\n return super.getOriginalRecord(index);\n }\n protected getRawRecord(index: number | number[]): MaybePromiseOrUndefined {\n let originRecordIndex;\n if (this._isGrouped) {\n // in group mode, record with children is title, do not return record\n originRecordIndex = this.getOriginRecordIndexForGroup(index);\n if (isValid(originRecordIndex) && this.beforeChangedRecordsMap?.has(originRecordIndex.toString())) {\n return this.beforeChangedRecordsMap?.get(originRecordIndex.toString());\n }\n } else {\n if (this.beforeChangedRecordsMap?.has(index.toString())) {\n return this.beforeChangedRecordsMap?.get(index.toString());\n }\n }\n if (isNumber(index) && this._recordCache && this._recordCache[index]) {\n return this._recordCache[index];\n }\n // return super.getRawRecord(index);\n\n let data;\n if (!this.dataSourceObj.records) {\n data = (this as any)._get(index);\n } else {\n if (Array.isArray(index)) {\n data = getValueFromDeepArray(this.records, index);\n } else {\n data = this.records[index];\n }\n }\n return getValue(data, (val: MaybePromiseOrUndefined) => {\n this.recordPromiseCallBack(index as number, val);\n });\n }\n protected getOriginalField<F extends FieldDef>(\n index: number,\n field: F,\n col?: number,\n row?: number,\n table?: BaseTableAPI\n ): FieldData {\n const rowCache = this._fieldCache && this._fieldCache[index];\n if (rowCache) {\n const cache = rowCache.get(field);\n if (cache) {\n return cache;\n }\n }\n return super.getOriginalField(index, field, col, row, table);\n }\n\n clearCache(): void {\n if (this._recordCache) {\n this._recordCache = [];\n }\n if (this._fieldCache) {\n this._fieldCache = {};\n }\n }\n\n protected fieldPromiseCallBack<F extends FieldDef>(index: number, field: F, value: MaybePromiseOrUndefined): void {\n _setFieldCache(this._fieldCache, index, field, value);\n }\n protected recordPromiseCallBack(index: number, record: MaybePromiseOrUndefined): void {\n this._recordCache && (this._recordCache[index] = record);\n }\n get records(): any[] {\n return Array.isArray(this._recordCache) && this._recordCache.length > 0 ? this._recordCache : super.records;\n }\n\n release(): void {\n super.release?.();\n this._recordCache = null;\n this._fieldCache = null;\n }\n\n _generateFieldAggragations() {\n super._generateFieldAggragations();\n // groupby aggragations\n if (isArray(this.dataConfig?.groupByRules)) {\n // const groupByKey = this.dataConfig.groupByRules[0];\n const groupByKeys = this.dataConfig.groupByRules;\n this.groupAggregator = new this.registedAggregators[AggregationType.CUSTOM]({\n field: '',\n aggregationFun: (values: any, records: any, field: any) => {\n const groupMap = new Map();\n const groupResult = [] as any[];\n for (let i = 0; i < records.length; i++) {\n dealWithGroup(records[i], groupResult, groupMap, groupByKeys, 0);\n }\n return groupResult;\n }\n });\n this.fieldAggregators.push(this.groupAggregator);\n }\n }\n\n processRecords(records: any[]) {\n const result = super.processRecords(records);\n const groupResult = this.groupAggregator?.value();\n if (groupResult) {\n // this._originalRecords = result;\n return groupResult;\n }\n return result;\n }\n\n getGroupLength() {\n return this.dataConfig?.groupByRules?.length ?? 0;\n }\n\n updateGroup() {\n this.clearCache();\n\n const oldSource = this.source;\n (this as any)._source = this.processRecords(this.dataSourceObj?.records ?? this.dataSourceObj);\n if (oldSource) {\n syncGroupCollapseState(oldSource, this.source);\n }\n\n // syncGroupCollapseState(this.source, newSource.source);\n this.sourceLength = this.source?.length || 0;\n this.sortedIndexMap.clear();\n this.currentIndexedData = Array.from({ length: this.sourceLength }, (_, i) => i);\n if (!this.userPagination) {\n this.pagination.perPageCount = this.sourceLength;\n this.pagination.totalCount = this.sourceLength;\n }\n\n this.initTreeHierarchyState();\n this.updatePagerData();\n }\n\n getOriginRecordIndexForGroup(recordIndex: number | number[]) {\n const targetRecord = this.getOriginalRecord(recordIndex);\n if (!isValid(targetRecord)) {\n return undefined;\n }\n if (targetRecord.children && targetRecord.children.length > 0) {\n return undefined;\n }\n for (let i = 0; i < this.dataSourceObj.records.length; i++) {\n if (this.dataSourceObj.records[i] === targetRecord) {\n return i;\n }\n }\n return undefined;\n }\n\n addRecordsForGroup(recordArr: any[], recordIndex?: number | number[]) {\n if (!isArray(recordArr) || recordArr.length === 0) {\n return;\n }\n let originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);\n\n if (originRecordIndex === undefined || originRecordIndex > this.dataSourceObj.records) {\n originRecordIndex = this.dataSourceObj.records.length;\n }\n this.dataSourceObj.records.splice(originRecordIndex, 0, ...recordArr);\n\n this.adjustBeforeChangedRecordsMap(originRecordIndex, recordArr.length);\n\n this.updateGroup();\n }\n\n deleteRecordsForGroup(recordIndexs: (number | number[])[]) {\n if (!isArray(recordIndexs) || recordIndexs.length === 0) {\n return;\n }\n const recordIndexsMaxToMin = sortRecordIndexs(recordIndexs, -1);\n for (let index = 0; index < recordIndexsMaxToMin.length; index++) {\n const recordIndex = recordIndexsMaxToMin[index];\n if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) {\n continue;\n }\n const originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);\n\n this.beforeChangedRecordsMap.delete(originRecordIndex.toString());\n this.dataSourceObj.records.splice(originRecordIndex, 1);\n this.sourceLength -= 1;\n\n this.adjustBeforeChangedRecordsMap(originRecordIndex, 1, 'delete');\n }\n\n this.updateGroup();\n }\n\n updateRecordsForGroup(records: any[], recordIndexs: (number | number[])[]) {\n for (let index = 0; index < recordIndexs.length; index++) {\n const recordIndex = recordIndexs[index];\n if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) {\n continue;\n }\n const originRecordIndex = this.getOriginRecordIndexForGroup(recordIndex);\n this.beforeChangedRecordsMap.delete(originRecordIndex.toString());\n this.dataSourceObj.records[originRecordIndex] = records[index];\n }\n\n this.updateGroup();\n }\n\n addRecordsForTree(recordArr: any[], recordIndex?: number | number[]) {\n if (!isArray(recordArr) || recordArr.length === 0) {\n return;\n }\n\n this.adjustBeforeChangedRecordsMap(recordIndex, recordArr.length);\n\n if (isNumber(recordIndex)) {\n this.dataSourceObj.records.splice(recordIndex, 0, ...recordArr);\n } else {\n const index = recordIndex.pop();\n const parentRecord = this.getOriginalRecord(recordIndex);\n if (parentRecord.children) {\n parentRecord.children.splice(index, 0, ...recordArr);\n } else {\n parentRecord.children = recordArr;\n }\n }\n\n this.initTreeHierarchyState();\n this.updatePagerData();\n }\n\n deleteRecordsForTree(recordIndexs: (number | number[])[]) {\n if (!isArray(recordIndexs) || recordIndexs.length === 0) {\n return;\n }\n const recordIndexsMaxToMin = sortRecordIndexs(recordIndexs, -1);\n for (let index = 0; index < recordIndexsMaxToMin.length; index++) {\n const recordIndex = recordIndexsMaxToMin[index];\n if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) {\n continue;\n }\n this.beforeChangedRecordsMap.delete(recordIndex.toString());\n\n if (isNumber(recordIndex)) {\n this.dataSourceObj.records.splice(recordIndex, 1);\n } else {\n const index = recordIndex.pop();\n const parentRecord = this.getOriginalRecord(recordIndex);\n // delete parentRecord.children[index];\n parentRecord.children.splice(index, 1);\n }\n\n this.adjustBeforeChangedRecordsMap(recordIndex, 1, 'delete');\n }\n\n this.initTreeHierarchyState();\n this.updatePagerData();\n }\n\n updateRecordsForTree(records: any[], recordIndexs: (number | number[])[]) {\n for (let index = 0; index < recordIndexs.length; index++) {\n const recordIndex = recordIndexs[index];\n const record = records[index];\n if (isNumber(recordIndex) && (recordIndex >= this.sourceLength || recordIndex < 0)) {\n continue;\n }\n this.beforeChangedRecordsMap.delete(recordIndex.toString());\n\n if (isNumber(recordIndex)) {\n this.dataSourceObj.records.splice(recordIndex, 1, record);\n } else {\n const index = recordIndex.pop();\n const parentRecord = this.getOriginalRecord(recordIndex);\n parentRecord.children.splice(index, 1, record);\n }\n }\n\n this.initTreeHierarchyState();\n this.updatePagerData();\n }\n\n adjustBeforeChangedRecordsMap(insertIndex: number | number[], insertCount: number, type: 'add' | 'delete' = 'add') {\n if (this.rowHierarchyType === 'tree') {\n let insertIndexArr: number[];\n if (isNumber(insertIndex)) {\n insertIndexArr = [insertIndex];\n } else {\n insertIndexArr = insertIndex;\n }\n\n const targetResult: { originKey: string; targetKey: string; value: any }[] = [];\n this.beforeChangedRecordsMap.forEach((value, key) => {\n const keyArray = key.split(',');\n const length = Math.max(keyArray.length, insertIndexArr.length);\n for (let i = 0; i < length; i++) {\n const current = insertIndexArr[i] ?? -1;\n const keyIndex = Number(keyArray[i]) ?? -1;\n if (\n current < keyIndex ||\n (current === keyIndex && i === keyArray.length - 1 && i === insertIndexArr.length - 1)\n ) {\n keyArray[i] = (keyIndex + (type === 'add' ? insertCount : -insertCount)).toString();\n targetResult.push({\n originKey: key,\n targetKey: keyArray.toString(),\n value\n });\n return;\n }\n }\n });\n targetResult.forEach(({ originKey, targetKey, value }) => {\n this.beforeChangedRecordsMap.delete(originKey);\n this.beforeChangedRecordsMap.set(targetKey, value);\n });\n } else {\n super.adjustBeforeChangedRecordsMap(insertIndex as number, insertCount, type);\n }\n }\n\n cacheBeforeChangedRecord(dataIndex: number | number[], table?: BaseTableAPI) {\n const originRecord = this.getOriginalRecord(dataIndex);\n if ((table.options as ListTableConstructorOptions).groupBy) {\n dataIndex = this.getOriginRecordIndexForGroup(dataIndex);\n }\n if (!this.beforeChangedRecordsMap.has(dataIndex.toString())) {\n this.beforeChangedRecordsMap.set(\n dataIndex.toString(),\n cloneDeep(originRecord, undefined, ['vtable_gantt_linkedFrom', 'vtable_gantt_linkedTo']) ?? {}\n );\n }\n }\n\n getGroupSeriesNumber(showIndex: number) {\n const recordIndex = this.dataSource.currentIndexedData[showIndex] as number[];\n const parentRecordIndexLength = recordIndex.length - 1;\n\n let recordIndexLength = recordIndex.length;\n let i = 1;\n for (; recordIndexLength > parentRecordIndexLength; i++) {\n const index = this.dataSource.currentIndexedData[showIndex - i];\n recordIndexLength = isNumber(index) ? 1 : (index as number[]).length;\n }\n return i - 1;\n }\n}\n\nfunction dealWithGroup(record: any, children: any[], map: Map<number, any>, groupByKeys: string[], level: number): any {\n const groupByKey = groupByKeys[level];\n if (!isValid(groupByKey)) {\n children.push(record);\n return;\n }\n const value = get(record, groupByKey);\n if (value !== undefined) {\n if (map.has(value)) {\n const index = map.get(value);\n // children[index].children.push(record);\n return dealWithGroup(record, children[index].children, children[index].map, groupByKeys, level + 1);\n }\n map.set(value, children.length);\n children.push({\n vtableMerge: true,\n vtableMergeName: value,\n children: [] as any,\n map: new Map()\n });\n return dealWithGroup(\n record,\n children[children.length - 1].children,\n children[children.length - 1].map,\n groupByKeys,\n level + 1\n );\n }\n}\n\nfunction syncGroupCollapseState(\n oldSource: any,\n newSource: any,\n oldGroupMap?: Map<string, number>,\n newGroupMap?: Map<string, number>\n) {\n if (!oldGroupMap) {\n oldGroupMap = new Map();\n for (let i = 0; i < oldSource.length; i++) {\n const record = oldSource[i];\n if (record.vtableMerge) {\n oldGroupMap.set(record.vtableMergeName, i);\n }\n }\n }\n\n if (!newGroupMap) {\n newGroupMap = new Map();\n for (let i = 0; i < newSource.length; i++) {\n const record = newSource[i];\n if (record.vtableMerge) {\n newGroupMap.set(record.vtableMergeName, i);\n }\n }\n }\n\n for (let i = 0; i < oldSource.length; i++) {\n const oldRecord = oldSource[i];\n const newRecord = newSource[newGroupMap.get(oldRecord.vtableMergeName)];\n if (isValid(newRecord)) {\n newRecord.hierarchyState = oldSource[i].hierarchyState;\n }\n if (\n isArray(oldRecord.children) &&\n isArray(newRecord.children) &&\n oldRecord.map.size !== 0 &&\n newRecord.map.size !== 0\n ) {\n syncGroupCollapseState(oldRecord.children, newRecord.children, oldRecord.map, newRecord.map);\n }\n }\n}\n"]}