@adaptabletools/adaptable 24.0.1 → 24.0.3

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 (331) hide show
  1. package/devtools.d.ts +506 -5
  2. package/devtools.js +11 -1
  3. package/index.css +15 -5
  4. package/package.json +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
  6. package/src/AdaptableOptions/DataImportOptions.d.ts +1 -1
  7. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  8. package/src/AdaptableState/Common/AdaptableFormat.d.ts +2 -10
  9. package/src/AdaptableState/Common/RowSummary.d.ts +2 -0
  10. package/src/AdaptableState/LayoutState.d.ts +1 -1
  11. package/src/Api/Implementation/AlertApiImpl.js +2 -0
  12. package/src/Api/Internal/CalculatedColumnInternalApi.js +25 -3
  13. package/src/Api/Internal/ExportInternalApi.d.ts +2 -0
  14. package/src/Api/Internal/ExportInternalApi.js +39 -3
  15. package/src/Api/Internal/FormatColumnInternalApi.d.ts +3 -2
  16. package/src/Api/Internal/FormatColumnInternalApi.js +15 -7
  17. package/src/Api/Internal/LayoutInternalApi.d.ts +11 -1
  18. package/src/Api/Internal/LayoutInternalApi.js +34 -3
  19. package/src/Api/Internal/NoteInternalApi.d.ts +12 -0
  20. package/src/Api/Internal/NoteInternalApi.js +11 -0
  21. package/src/EnvVars.d.ts +1 -0
  22. package/src/EnvVars.js +1 -0
  23. package/src/Redux/Store/AdaptableStore.js +4 -7
  24. package/src/Strategy/FlashingCellModule.js +2 -0
  25. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -0
  26. package/src/Utilities/Services/CalculatedColumnExpressionService.js +15 -0
  27. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +7 -0
  28. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +17 -1
  29. package/src/Utilities/Services/QueryLanguageService.d.ts +11 -1
  30. package/src/Utilities/Services/QueryLanguageService.js +47 -2
  31. package/src/Utilities/Services/RowSummaryService.d.ts +2 -0
  32. package/src/Utilities/Services/RowSummaryService.js +6 -1
  33. package/src/Utilities/license/instanceLicense.d.ts +12 -0
  34. package/src/Utilities/license/instanceLicense.js +10 -0
  35. package/src/Utilities/license/licenseStatus.d.ts +26 -0
  36. package/src/Utilities/license/licenseStatus.js +72 -0
  37. package/src/View/Components/CellPopup/index.js +15 -10
  38. package/src/View/GridInfo/GridInfoPopup.js +6 -1
  39. package/src/View/Layout/TransposedPopup.js +1 -0
  40. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +3 -5
  41. package/src/View/Layout/Wizard/sections/AggregationsSection.js +10 -24
  42. package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -1
  43. package/src/View/ObjectItemViews/Layout/aggregationSummaryHelpers.d.ts +5 -1
  44. package/src/View/ObjectItemViews/Layout/aggregationSummaryHelpers.js +6 -3
  45. package/src/agGrid/AdaptableAgGrid.d.ts +7 -3
  46. package/src/agGrid/AdaptableAgGrid.js +144 -78
  47. package/src/agGrid/AdaptableFilterHandler.d.ts +2 -0
  48. package/src/agGrid/AdaptableFilterHandler.js +34 -0
  49. package/src/agGrid/AgGridAdapter.d.ts +9 -0
  50. package/src/agGrid/AgGridAdapter.js +23 -12
  51. package/src/agGrid/AgGridColumnAdapter.d.ts +2 -0
  52. package/src/agGrid/AgGridColumnAdapter.js +124 -78
  53. package/src/agGrid/AgGridExportAdapter.d.ts +5 -0
  54. package/src/agGrid/AgGridExportAdapter.js +31 -0
  55. package/src/agGrid/AgGridMenuAdapter.js +1 -1
  56. package/src/agGrid/applyGlobalGridOptions.d.ts +9 -0
  57. package/src/agGrid/applyGlobalGridOptions.js +36 -0
  58. package/src/agGrid/cellRenderers/BadgeRenderer.js +22 -0
  59. package/src/agGrid/columnMinMaxCache.d.ts +33 -0
  60. package/src/agGrid/columnMinMaxCache.js +50 -0
  61. package/src/devTools/PerfStore.d.ts +218 -0
  62. package/src/devTools/PerfStore.js +717 -0
  63. package/src/devTools/index.d.ts +33 -0
  64. package/src/devTools/index.js +132 -56
  65. package/src/devTools/logBuffer.d.ts +17 -0
  66. package/src/devTools/logBuffer.js +33 -0
  67. package/src/devTools/memoryInfo.d.ts +15 -0
  68. package/src/devTools/memoryInfo.js +229 -0
  69. package/src/devTools/memoryRoots.d.ts +41 -0
  70. package/src/devTools/memoryRoots.js +136 -0
  71. package/src/devTools/perfContext.d.ts +5 -0
  72. package/src/devTools/perfContext.js +155 -0
  73. package/src/devTools/perfInstrumentation.d.ts +13 -0
  74. package/src/devTools/perfInstrumentation.js +78 -0
  75. package/src/env.js +2 -2
  76. package/src/layout-manager/src/LayoutManagerModel.d.ts +3 -1
  77. package/src/layout-manager/src/expandAllRowGroups.d.ts +6 -0
  78. package/src/layout-manager/src/expandAllRowGroups.js +13 -0
  79. package/src/layout-manager/src/index.js +18 -10
  80. package/src/setupDevTools.js +560 -106
  81. package/tsconfig.esm.tsbuildinfo +1 -1
  82. package/vendor/aql/api/QueryLanguageApi.d.ts +2 -1
  83. package/vendor/aql/api/QueryLanguageApi.d.ts.map +1 -1
  84. package/vendor/aql/api/QueryLanguageApi.js +28 -108
  85. package/vendor/aql/api/QueryLanguageApi.js.map +1 -1
  86. package/vendor/aql/contract/index.js +0 -34
  87. package/vendor/aql/contract/index.js.map +1 -1
  88. package/vendor/aql/corpus/corpusExpressions.js +0 -13
  89. package/vendor/aql/corpus/corpusExpressions.js.map +1 -1
  90. package/vendor/aql/corpus/corpusFixture.js +0 -7
  91. package/vendor/aql/corpus/corpusFixture.js.map +1 -1
  92. package/vendor/aql/draft/index.js +0 -4
  93. package/vendor/aql/draft/index.js.map +1 -1
  94. package/vendor/aql/evaluate.js +0 -22
  95. package/vendor/aql/evaluate.js.map +1 -1
  96. package/vendor/aql/evaluator/ExpressionEvaluationError.js +0 -4
  97. package/vendor/aql/evaluator/ExpressionEvaluationError.js.map +1 -1
  98. package/vendor/aql/evaluator/ExpressionNaError.js +0 -4
  99. package/vendor/aql/evaluator/ExpressionNaError.js.map +1 -1
  100. package/vendor/aql/evaluator/evaluateNode.js +0 -23
  101. package/vendor/aql/evaluator/evaluateNode.js.map +1 -1
  102. package/vendor/aql/functions/dateUtils.js +0 -63
  103. package/vendor/aql/functions/dateUtils.js.map +1 -1
  104. package/vendor/aql/functions/numberUtils.js +0 -12
  105. package/vendor/aql/functions/numberUtils.js.map +1 -1
  106. package/vendor/aql/functions/operatorFunctions.js +0 -13
  107. package/vendor/aql/functions/operatorFunctions.js.map +1 -1
  108. package/vendor/aql/functions/scalar/functions/AND.js +0 -5
  109. package/vendor/aql/functions/scalar/functions/AND.js.map +1 -1
  110. package/vendor/aql/functions/scalar/functions/ANY_CHANGE.js +0 -4
  111. package/vendor/aql/functions/scalar/functions/ANY_CHANGE.js.map +1 -1
  112. package/vendor/aql/functions/scalar/functions/ANY_CONTAINS.js +0 -4
  113. package/vendor/aql/functions/scalar/functions/ANY_CONTAINS.js.map +1 -1
  114. package/vendor/aql/functions/scalar/functions/AVG.js +0 -1
  115. package/vendor/aql/functions/scalar/functions/AVG.js.map +1 -1
  116. package/vendor/aql/functions/scalar/functions/CASE.js +2 -2
  117. package/vendor/aql/functions/scalar/functions/CASE.js.map +1 -1
  118. package/vendor/aql/functions/scalar/functions/COL.js +0 -2
  119. package/vendor/aql/functions/scalar/functions/COL.js.map +1 -1
  120. package/vendor/aql/functions/scalar/functions/CONTAINS.js +0 -3
  121. package/vendor/aql/functions/scalar/functions/CONTAINS.js.map +1 -1
  122. package/vendor/aql/functions/scalar/functions/DATE.js +0 -2
  123. package/vendor/aql/functions/scalar/functions/DATE.js.map +1 -1
  124. package/vendor/aql/functions/scalar/functions/ENDS_WITH.js +0 -1
  125. package/vendor/aql/functions/scalar/functions/ENDS_WITH.js.map +1 -1
  126. package/vendor/aql/functions/scalar/functions/EQ.js +0 -5
  127. package/vendor/aql/functions/scalar/functions/EQ.js.map +1 -1
  128. package/vendor/aql/functions/scalar/functions/GT.js +0 -3
  129. package/vendor/aql/functions/scalar/functions/GT.js.map +1 -1
  130. package/vendor/aql/functions/scalar/functions/GTE.js +0 -3
  131. package/vendor/aql/functions/scalar/functions/GTE.js.map +1 -1
  132. package/vendor/aql/functions/scalar/functions/IF.js +0 -5
  133. package/vendor/aql/functions/scalar/functions/IF.js.map +1 -1
  134. package/vendor/aql/functions/scalar/functions/IFERROR.js +0 -4
  135. package/vendor/aql/functions/scalar/functions/IFERROR.js.map +1 -1
  136. package/vendor/aql/functions/scalar/functions/IFNA.js +0 -5
  137. package/vendor/aql/functions/scalar/functions/IFNA.js.map +1 -1
  138. package/vendor/aql/functions/scalar/functions/IN.d.ts.map +1 -1
  139. package/vendor/aql/functions/scalar/functions/IN.js +54 -11
  140. package/vendor/aql/functions/scalar/functions/IN.js.map +1 -1
  141. package/vendor/aql/functions/scalar/functions/IS_BLANK.js +0 -1
  142. package/vendor/aql/functions/scalar/functions/IS_BLANK.js.map +1 -1
  143. package/vendor/aql/functions/scalar/functions/IS_DIFFERENT_DAY.js +0 -1
  144. package/vendor/aql/functions/scalar/functions/IS_DIFFERENT_DAY.js.map +1 -1
  145. package/vendor/aql/functions/scalar/functions/IS_NOT_BLANK.js +0 -1
  146. package/vendor/aql/functions/scalar/functions/IS_NOT_BLANK.js.map +1 -1
  147. package/vendor/aql/functions/scalar/functions/LT.js +0 -3
  148. package/vendor/aql/functions/scalar/functions/LT.js.map +1 -1
  149. package/vendor/aql/functions/scalar/functions/LTE.js +0 -3
  150. package/vendor/aql/functions/scalar/functions/LTE.js.map +1 -1
  151. package/vendor/aql/functions/scalar/functions/NA.js +0 -3
  152. package/vendor/aql/functions/scalar/functions/NA.js.map +1 -1
  153. package/vendor/aql/functions/scalar/functions/NOT_CONTAINS.js +0 -1
  154. package/vendor/aql/functions/scalar/functions/NOT_CONTAINS.js.map +1 -1
  155. package/vendor/aql/functions/scalar/functions/NOT_IN.js +0 -3
  156. package/vendor/aql/functions/scalar/functions/NOT_IN.js.map +1 -1
  157. package/vendor/aql/functions/scalar/functions/OR.js +0 -4
  158. package/vendor/aql/functions/scalar/functions/OR.js.map +1 -1
  159. package/vendor/aql/functions/scalar/functions/PRODUCT.js +0 -6
  160. package/vendor/aql/functions/scalar/functions/PRODUCT.js.map +1 -1
  161. package/vendor/aql/functions/scalar/functions/QUERY.js +0 -1
  162. package/vendor/aql/functions/scalar/functions/QUERY.js.map +1 -1
  163. package/vendor/aql/functions/scalar/functions/REGEX.js +0 -1
  164. package/vendor/aql/functions/scalar/functions/REGEX.js.map +1 -1
  165. package/vendor/aql/functions/scalar/functions/SCOPE.js +0 -4
  166. package/vendor/aql/functions/scalar/functions/SCOPE.js.map +1 -1
  167. package/vendor/aql/functions/scalar/functions/STARTS_WITH.js +0 -1
  168. package/vendor/aql/functions/scalar/functions/STARTS_WITH.js.map +1 -1
  169. package/vendor/aql/functions/scalar/functions/SUB.js +0 -1
  170. package/vendor/aql/functions/scalar/functions/SUB.js.map +1 -1
  171. package/vendor/aql/functions/scalar/functions/SUM.js +0 -5
  172. package/vendor/aql/functions/scalar/functions/SUM.js.map +1 -1
  173. package/vendor/aql/functions/scalar/helpers.js +0 -3
  174. package/vendor/aql/functions/scalar/helpers.js.map +1 -1
  175. package/vendor/aql/functions/shared/FIELD.js +0 -3
  176. package/vendor/aql/functions/shared/FIELD.js.map +1 -1
  177. package/vendor/aql/functions/shared/VAR.js +0 -4
  178. package/vendor/aql/functions/shared/VAR.js.map +1 -1
  179. package/vendor/aql/functions/shared/index.js +0 -9
  180. package/vendor/aql/functions/shared/index.js.map +1 -1
  181. package/vendor/aql/functions/stringUtils.js +0 -25
  182. package/vendor/aql/functions/stringUtils.js.map +1 -1
  183. package/vendor/aql/functions/utils.js +0 -20
  184. package/vendor/aql/functions/utils.js.map +1 -1
  185. package/vendor/aql/host/access.js +0 -2
  186. package/vendor/aql/host/access.js.map +1 -1
  187. package/vendor/aql/host/createHostExpressionContext.js +0 -25
  188. package/vendor/aql/host/createHostExpressionContext.js.map +1 -1
  189. package/vendor/aql/host/createObjectDataHost.js +0 -9
  190. package/vendor/aql/host/createObjectDataHost.js.map +1 -1
  191. package/vendor/aql/index.js +0 -2
  192. package/vendor/aql/index.js.map +1 -1
  193. package/vendor/aql/normalize/canonicalize.js +0 -7
  194. package/vendor/aql/normalize/canonicalize.js.map +1 -1
  195. package/vendor/aql/normalize/migrateExpression.js +0 -8
  196. package/vendor/aql/normalize/migrateExpression.js.map +1 -1
  197. package/vendor/aql/normalize/names.js +0 -72
  198. package/vendor/aql/normalize/names.js.map +1 -1
  199. package/vendor/aql/normalize/normalizeAst.js +0 -102
  200. package/vendor/aql/normalize/normalizeAst.js.map +1 -1
  201. package/vendor/aql/normalize/print.js +0 -35
  202. package/vendor/aql/normalize/print.js.map +1 -1
  203. package/vendor/aql/operator/primitiveSlots.js +0 -4
  204. package/vendor/aql/operator/primitiveSlots.js.map +1 -1
  205. package/vendor/aql/operator/resolve.js +0 -18
  206. package/vendor/aql/operator/resolve.js.map +1 -1
  207. package/vendor/aql/parser/parser.js +4 -125
  208. package/vendor/aql/parser/parser.js.map +1 -1
  209. package/vendor/aql/plan/catalogue.js +0 -35
  210. package/vendor/aql/plan/catalogue.js.map +1 -1
  211. package/vendor/aql/plan/compile.js +0 -68
  212. package/vendor/aql/plan/compile.js.map +1 -1
  213. package/vendor/aql/plan/deepMap.js +0 -16
  214. package/vendor/aql/plan/deepMap.js.map +1 -1
  215. package/vendor/aql/plan/execute.js +0 -91
  216. package/vendor/aql/plan/execute.js.map +1 -1
  217. package/vendor/aql/plan/magnitudeLiteral.js +0 -29
  218. package/vendor/aql/plan/magnitudeLiteral.js.map +1 -1
  219. package/vendor/aql/plan/observable.js +0 -31
  220. package/vendor/aql/plan/observable.js.map +1 -1
  221. package/vendor/aql/plan/observableFixture.js +0 -3
  222. package/vendor/aql/plan/observableFixture.js.map +1 -1
  223. package/vendor/aql/plan/operators.js +0 -35
  224. package/vendor/aql/plan/operators.js.map +1 -1
  225. package/vendor/aql/plan/outer.js +0 -16
  226. package/vendor/aql/plan/outer.js.map +1 -1
  227. package/vendor/aql/predicate/mapExpressionToQlPredicate.js +1 -46
  228. package/vendor/aql/predicate/mapExpressionToQlPredicate.js.map +1 -1
  229. package/vendor/aql/predicate/mapQlPredicateToExpression.js +0 -13
  230. package/vendor/aql/predicate/mapQlPredicateToExpression.js.map +1 -1
  231. package/vendor/aql/store/computedValueStore.js +0 -35
  232. package/vendor/aql/store/computedValueStore.js.map +1 -1
  233. package/vendor/aql/store/history/clock.js +0 -1
  234. package/vendor/aql/store/history/clock.js.map +1 -1
  235. package/vendor/aql/store/history/historyStore.js +0 -14
  236. package/vendor/aql/store/history/historyStore.js.map +1 -1
  237. package/vendor/aql/store/history/monotonicDeque.js +0 -9
  238. package/vendor/aql/store/history/monotonicDeque.js.map +1 -1
  239. package/vendor/aql/store/history/operators.js +0 -13
  240. package/vendor/aql/store/history/operators.js.map +1 -1
  241. package/vendor/aql/store/history/ringBuffer.js +0 -12
  242. package/vendor/aql/store/history/ringBuffer.js.map +1 -1
  243. package/vendor/aql/store/history/rowSeries.js +0 -17
  244. package/vendor/aql/store/history/rowSeries.js.map +1 -1
  245. package/vendor/aql/store/history/types.js +0 -18
  246. package/vendor/aql/store/history/types.js.map +1 -1
  247. package/vendor/aql/tokenizer/tokenizer.js +0 -3
  248. package/vendor/aql/tokenizer/tokenizer.js.map +1 -1
  249. package/vendor/aql/types.js +0 -27
  250. package/vendor/aql/types.js.map +1 -1
  251. package/vendor/aql/utils/astUtils.js +0 -1
  252. package/vendor/aql/utils/astUtils.js.map +1 -1
  253. package/vendor/aql/utils/dependencyCycle.js +0 -5
  254. package/vendor/aql/utils/dependencyCycle.js.map +1 -1
  255. package/vendor/aql/validation/classifyExpression.js +0 -4
  256. package/vendor/aql/validation/classifyExpression.js.map +1 -1
  257. package/vendor/aql/validation/functionMetadata.js +0 -31
  258. package/vendor/aql/validation/functionMetadata.js.map +1 -1
  259. package/vendor/aql/validation/validateAqlExpression.js +2 -81
  260. package/vendor/aql/validation/validateAqlExpression.js.map +1 -1
  261. package/vendor/aql/validation/validateExpressionTypes.js +0 -64
  262. package/vendor/aql/validation/validateExpressionTypes.js.map +1 -1
  263. package/vendor/components/Button/index.js +0 -6
  264. package/vendor/components/Button/index.js.map +1 -1
  265. package/vendor/components/ColorField/index.js +0 -18
  266. package/vendor/components/ColorField/index.js.map +1 -1
  267. package/vendor/components/ColorPicker/colorPickerTab.js +0 -6
  268. package/vendor/components/ColorPicker/colorPickerTab.js.map +1 -1
  269. package/vendor/components/ColorPicker/index.js +1 -66
  270. package/vendor/components/ColorPicker/index.js.map +1 -1
  271. package/vendor/components/ColorPicker/themeColors.js +0 -55
  272. package/vendor/components/ColorPicker/themeColors.js.map +1 -1
  273. package/vendor/components/Combobox/VirtualizedList.js +0 -5
  274. package/vendor/components/Combobox/VirtualizedList.js.map +1 -1
  275. package/vendor/components/Combobox/comboboxUtils.js +0 -5
  276. package/vendor/components/Combobox/comboboxUtils.js.map +1 -1
  277. package/vendor/components/Combobox/index.js +7 -106
  278. package/vendor/components/Combobox/index.js.map +1 -1
  279. package/vendor/components/Combobox/useScrollNearEnd.js +0 -6
  280. package/vendor/components/Combobox/useScrollNearEnd.js.map +1 -1
  281. package/vendor/components/DropdownButton/index.js +0 -5
  282. package/vendor/components/DropdownButton/index.js.map +1 -1
  283. package/vendor/components/NumberInput/index.js +0 -10
  284. package/vendor/components/NumberInput/index.js.map +1 -1
  285. package/vendor/components/Radio/index.d.ts.map +1 -1
  286. package/vendor/components/Radio/index.js +1 -1
  287. package/vendor/components/Radio/index.js.map +1 -1
  288. package/vendor/components/Resizable/index.d.ts +14 -9
  289. package/vendor/components/Resizable/index.d.ts.map +1 -1
  290. package/vendor/components/Resizable/index.js +26 -26
  291. package/vendor/components/Resizable/index.js.map +1 -1
  292. package/vendor/components/Resizable/resizableUtils.d.ts +24 -13
  293. package/vendor/components/Resizable/resizableUtils.d.ts.map +1 -1
  294. package/vendor/components/Resizable/resizableUtils.js +13 -27
  295. package/vendor/components/Resizable/resizableUtils.js.map +1 -1
  296. package/vendor/components/SearchInput/index.js +0 -5
  297. package/vendor/components/SearchInput/index.js.map +1 -1
  298. package/vendor/components/Tree/TreeDropdown/index.js +3 -139
  299. package/vendor/components/Tree/TreeDropdown/index.js.map +1 -1
  300. package/vendor/components/Tree/treeUtils.js +0 -4
  301. package/vendor/components/Tree/treeUtils.js.map +1 -1
  302. package/vendor/components/index.css +12 -5
  303. package/vendor/components/index.js +0 -5
  304. package/vendor/components/index.js.map +1 -1
  305. package/vendor/components/lib/useProperty.js +0 -18
  306. package/vendor/components/lib/useProperty.js.map +1 -1
  307. package/vendor/components/twMerge.js +0 -2
  308. package/vendor/components/twMerge.js.map +1 -1
  309. package/vendor/components/twUtils.js +3 -12
  310. package/vendor/components/twUtils.js.map +1 -1
  311. package/vendor/components/ui/alert-dialog.js +0 -4
  312. package/vendor/components/ui/alert-dialog.js.map +1 -1
  313. package/vendor/components/ui/calendar.js +1 -9
  314. package/vendor/components/ui/calendar.js.map +1 -1
  315. package/vendor/components/ui/combobox.js +3 -39
  316. package/vendor/components/ui/combobox.js.map +1 -1
  317. package/vendor/components/ui/dialog.js +0 -4
  318. package/vendor/components/ui/dialog.js.map +1 -1
  319. package/vendor/components/ui/input-group.js +3 -12
  320. package/vendor/components/ui/input-group.js.map +1 -1
  321. package/vendor/components/ui/input.js +1 -1
  322. package/vendor/components/ui/input.js.map +1 -1
  323. package/vendor/components/ui/select.js +1 -1
  324. package/vendor/components/ui/select.js.map +1 -1
  325. package/vendor/components/ui/tabs.js +0 -3
  326. package/vendor/components/ui/tabs.js.map +1 -1
  327. package/vendor/components/ui/textarea.js +1 -1
  328. package/vendor/components/ui/textarea.js.map +1 -1
  329. package/vendor/components/ui/tooltip.d.ts.map +1 -1
  330. package/vendor/components/ui/tooltip.js +3 -1
  331. package/vendor/components/ui/tooltip.js.map +1 -1
package/devtools.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import type { VisibleSettingsPanelNavigationGroup, VisibleSettingsPanelNavigationItem } from './src/Utilities/Helpers/SettingsPanelHelper';
2
2
  import type { AdaptableApi, AdaptableColumnDataType, AdaptableModule, AdaptablePersistentState, AdaptableState } from './types';
3
+ import type { LicenseStatus } from './src/Utilities/license/licenseStatus';
4
+ /**
5
+ * What the instance's licence key means (not present, invalid, or trial / commercial with
6
+ * its end date). DevTools never receives the key itself.
7
+ */
8
+ export type DevToolsLicenseStatus = LicenseStatus;
3
9
  /**
4
10
  * One AdapTable instance as reported by `window.__ADAPTABLE_DEVTOOLS__.listInstances()`.
5
11
  */
@@ -49,6 +55,11 @@ export type DevToolsObjectRow = {
49
55
  */
50
56
  export type DevToolsScopedObject = {
51
57
  module: string;
58
+ /**
59
+ * Why the object applies to the column: `Column Id`, `All Columns`,
60
+ * `Data Type: number` or `Column Type: price`.
61
+ */
62
+ matchedBy: string;
52
63
  rows: DevToolsObjectRow[];
53
64
  };
54
65
  /**
@@ -60,6 +71,10 @@ export type DevToolsColumnDetail = {
60
71
  columns: DevToolsColumnOption[];
61
72
  summary: DevToolsColumnSummaryRow[];
62
73
  scopedObjects: DevToolsScopedObject[];
74
+ /** Friendly names of the modules searched for `scopedObjects` */
75
+ checkedModules: string[];
76
+ /** Friendly names of the modules not searched because Entitlements hide them */
77
+ hiddenModules: string[];
63
78
  };
64
79
  export type DevToolsColumnInfo = {
65
80
  /** AdapTable column id (AG Grid `colId`) */
@@ -91,7 +106,7 @@ export type DevToolsGridInfo = {
91
106
  userName?: string;
92
107
  primaryKey?: string;
93
108
  isAutogeneratedPrimaryKey: boolean;
94
- licenseKey?: string;
109
+ license: DevToolsLicenseStatus;
95
110
  layout: {
96
111
  name: string;
97
112
  type: 'Table' | 'Pivot';
@@ -141,6 +156,374 @@ export type DevToolsActionEntry = {
141
156
  timestamp: number;
142
157
  actionName: string;
143
158
  };
159
+ /** A name/value pair attached to a timing (shown in the Performance panel tooltip). */
160
+ export type DevToolsPerfDetail = {
161
+ name: string;
162
+ value: string | number | boolean;
163
+ };
164
+ /**
165
+ * One timed AdapTable operation: initialisation phases, Layout changes, column-model refreshes
166
+ * and Redux actions. Initialisation is always kept; the other operations only while a
167
+ * Performance recording runs. The same entries appear as Chrome Performance panel tracks during a
168
+ * recording, and all the time when profile tracks are enabled.
169
+ */
170
+ export type DevToolsPerfMeasure = {
171
+ /** Increases by one for every measure of the instance; use it to fetch only new entries */
172
+ seq: number;
173
+ /** Epoch milliseconds when the operation started */
174
+ timestamp: number;
175
+ /** Milliseconds */
176
+ duration: number;
177
+ /** e.g. `Initialisation`, `Runtime`, `Layout Manager`, `Redux` */
178
+ track: string;
179
+ label: string;
180
+ details?: DevToolsPerfDetail[];
181
+ tooltip?: string;
182
+ };
183
+ /** Aggregated timings for one track + label. */
184
+ export type DevToolsPerfLabelStats = {
185
+ track: string;
186
+ label: string;
187
+ count: number;
188
+ totalMs: number;
189
+ avgMs: number;
190
+ maxMs: number;
191
+ /** 95th percentile over the most recent 200 entries */
192
+ p95Ms: number;
193
+ lastMs: number;
194
+ lastTimestamp: number;
195
+ };
196
+ /** A script that ran during a long animation frame. */
197
+ export type DevToolsLongFrameScript = {
198
+ invoker?: string;
199
+ invokerType?: string;
200
+ sourceURL?: string;
201
+ sourceFunctionName?: string;
202
+ /** Milliseconds */
203
+ duration: number;
204
+ };
205
+ /**
206
+ * A frame that took longer than 50ms to produce (Chrome `long-animation-frame` entries).
207
+ * Recorded while a Performance recording is running.
208
+ */
209
+ export type DevToolsLongFrame = {
210
+ seq: number;
211
+ /** Epoch milliseconds */
212
+ timestamp: number;
213
+ duration: number;
214
+ /** The part of the frame that blocked user input (ms) */
215
+ blockingDuration: number;
216
+ scripts: DevToolsLongFrameScript[];
217
+ /** AdapTable operations that overlapped the frame, e.g. `Runtime: Refresh cells (42ms)` */
218
+ adaptableOperations: string[];
219
+ };
220
+ /** Whole-page JS heap, as Chrome reports it in `performance.memory`. */
221
+ export type DevToolsHeapSample = {
222
+ timestamp: number;
223
+ usedJSHeapSize: number;
224
+ totalJSHeapSize: number;
225
+ jsHeapSizeLimit: number;
226
+ };
227
+ /** What a hot-path entry measures. */
228
+ export type DevToolsHotPathKind = 'cellStyle' | 'cellClass' | 'valueFormatter' | 'comparator' | 'quickFilterText'
229
+ /** Building an IN filter's list of values (with their counts), per column */
230
+ | 'inFilterValues' | 'expression' | 'calculatedColumn' | 'columnFilter' | 'gridFilter' | 'filterPass' | 'dataChange' | 'alert' | 'flashingCell' | 'badge';
231
+ /**
232
+ * Cumulative cost of one per-cell or per-row operation during a recording, attributed to
233
+ * the AdapTable object (Format Column, Alert, Calculated Column, ...) that caused it when known.
234
+ */
235
+ export type DevToolsHotPathStat = {
236
+ key: string;
237
+ kind: DevToolsHotPathKind;
238
+ module?: AdaptableModule;
239
+ objectId?: string;
240
+ objectName?: string;
241
+ columnId?: string;
242
+ /** Expression text, for expression evaluations */
243
+ expression?: string;
244
+ count: number;
245
+ totalMs: number;
246
+ maxMs: number;
247
+ };
248
+ /** Data change activity during a recording. */
249
+ export type DevToolsTickingStats = {
250
+ /** Seconds covered by the counters */
251
+ durationSec: number;
252
+ cellChanges: number;
253
+ /** Row transactions applied through the Adaptable API (add, update, delete) */
254
+ rowTransactions: number;
255
+ flashes: number;
256
+ alertsFired: number;
257
+ /** Full re-filters AdapTable triggered because a filtered column changed */
258
+ refiltersFromDataChange: number;
259
+ /** Per-second rates over the last 5 seconds */
260
+ recent: {
261
+ cellChangesPerSec: number;
262
+ refiltersPerSec: number;
263
+ flashesPerSec: number;
264
+ };
265
+ };
266
+ /** Response of `get-perf-data`; ring-buffer entries are only those newer than the cursor passed in. */
267
+ export type DevToolsPerfData = {
268
+ adaptableId: string;
269
+ /**
270
+ * A recording runs: operations, long frames, memory (`memory`) and, with `recordingHotPaths`,
271
+ * per-cell and per-row costs and data change rates
272
+ */
273
+ recording: boolean;
274
+ recordingStartedAt?: number;
275
+ recordingStoppedAt?: number;
276
+ /** The current or last recording includes Hot Paths */
277
+ recordingHotPaths?: boolean;
278
+ /** The current or last recording was started by Record and reload, at page load */
279
+ recordingOnLoad?: boolean;
280
+ /**
281
+ * Why the last recording stopped, when it did not stop on request: one started from the
282
+ * DevTools panel stops by itself a few seconds after DevTools is closed
283
+ */
284
+ recordingStopReason?: 'devtools-closed';
285
+ /**
286
+ * While a recording runs: whether it stops by itself a few seconds after DevTools closes.
287
+ * `false` when it was asked to keep recording, or was started from the in-page API or the
288
+ * in-page DevTools UI.
289
+ */
290
+ recordingStopsWithDevTools?: boolean;
291
+ /** The memory part of the current or last recording */
292
+ memory?: DevToolsPerfMemory;
293
+ /**
294
+ * Every long frame of the current or last recording. `longFrames` lists only the newest 200,
295
+ * and `measures` the newest 500 operations (`labelStats` counts them all).
296
+ */
297
+ longFrameTotals?: {
298
+ count: number;
299
+ slowestMs: number;
300
+ };
301
+ /**
302
+ * Whether AdapTable's structures are tagged for a heap snapshot (DevTools asks for it while the
303
+ * Memory tab is open); `structures` is how many are tagged
304
+ */
305
+ memoryTagging?: {
306
+ tagging: boolean;
307
+ until?: number;
308
+ structures?: number;
309
+ };
310
+ /**
311
+ * `localStorage.adaptableProfileTracks` (or the `Adaptable:<id>:perf` debug channel) is on:
312
+ * operations are written as Chrome Performance panel tracks all the time, not only during a
313
+ * recording
314
+ */
315
+ profileTracksEnabled: boolean;
316
+ supports: {
317
+ longAnimationFrame: boolean;
318
+ memory: boolean;
319
+ };
320
+ measures: DevToolsPerfMeasure[];
321
+ labelStats: DevToolsPerfLabelStats[];
322
+ longFrames: DevToolsLongFrame[];
323
+ hotPaths: DevToolsHotPathStat[];
324
+ ticking?: DevToolsTickingStats;
325
+ cursor: DevToolsPerfCursor;
326
+ };
327
+ /**
328
+ * What the caller already has: the last `seq` per ring buffer, and when the heap series and the
329
+ * inventory last changed (`cursor.heap` / `cursor.inventory` of the previous response).
330
+ */
331
+ export type DevToolsPerfCursor = {
332
+ measures: number;
333
+ longFrames: number;
334
+ heap: number;
335
+ inventory: number;
336
+ };
337
+ /**
338
+ * The memory a recording samples: the whole page's JS heap for the whole run, and the size of
339
+ * AdapTable's structures (the memory inventory, see `getMemoryInfo()`).
340
+ */
341
+ export type DevToolsPerfMemory = {
342
+ /** Width of each heap point, in ms: 2000 at first, doubled whenever a long recording fills the series */
343
+ intervalMs: number;
344
+ /**
345
+ * The whole heap series (Chrome only). Left out when it has nothing newer than the cursor
346
+ * passed in: the caller keeps the series it has.
347
+ */
348
+ heap?: DevToolsMemoryRecordingPoint[];
349
+ /**
350
+ * AdapTable's structures, read at the start, about every 30 s (less often when reading them
351
+ * is slow) and at the stop; the first sample is the baseline. Left out like `heap`.
352
+ */
353
+ inventory?: DevToolsMemoryInventorySample[];
354
+ /** What reading the inventory cost: DevTools' own work during the recording */
355
+ inventoryReads: {
356
+ count: number;
357
+ totalMs: number;
358
+ maxMs: number;
359
+ };
360
+ };
361
+ export type DevToolsPerfFindingSeverity = 'info' | 'warning' | 'critical';
362
+ /**
363
+ * One Performance Advisor finding: a configuration that is known to cost performance.
364
+ */
365
+ export type DevToolsPerfFinding = {
366
+ /** Stable rule id, e.g. `quick-search-filter-without-cache` */
367
+ ruleId: string;
368
+ severity: DevToolsPerfFindingSeverity;
369
+ title: string;
370
+ /** Why this costs performance, with the numbers found */
371
+ message: string;
372
+ /** What to change */
373
+ fix: string;
374
+ /** Settings Panel module to open for the fix */
375
+ module?: AdaptableModule;
376
+ /** Affected objects (names or column ids) */
377
+ objects?: string[];
378
+ /** Docs page (slug) and anchor */
379
+ docs?: string;
380
+ };
381
+ export type DevToolsPerfContextExpression = {
382
+ module: AdaptableModule;
383
+ objectName: string;
384
+ expression: string;
385
+ valid: boolean;
386
+ };
387
+ export type DevToolsPerfContextFormatColumn = {
388
+ name: string;
389
+ scopeAll: boolean;
390
+ hasRule: boolean;
391
+ columnIds: string[];
392
+ };
393
+ export type DevToolsPerfContextCalculatedColumn = {
394
+ columnId: string;
395
+ name: string;
396
+ kind: 'scalar' | 'aggregated';
397
+ /** Other Calculated Columns referenced by the expression */
398
+ referencedCalculatedColumnIds: string[];
399
+ };
400
+ export type DevToolsPerfContextAlert = {
401
+ name: string;
402
+ type: string | null;
403
+ };
404
+ /**
405
+ * Everything the Performance Advisor rules look at, read once from the live grid. The page sends
406
+ * it to DevTools, which runs the rules: they are not part of AdapTable.
407
+ */
408
+ export type DevToolsPerfContext = {
409
+ rowModelType: string;
410
+ rowCount: number;
411
+ columnCount: number;
412
+ visibleColumnCount: number;
413
+ primaryKey?: string;
414
+ isAutogeneratedPrimaryKey: boolean;
415
+ hasRowGroups: boolean;
416
+ gridOptions: {
417
+ cacheQuickFilter: boolean;
418
+ valueCache: boolean;
419
+ };
420
+ quickSearch: {
421
+ filterGridAfterQuickSearch: boolean;
422
+ };
423
+ dataChangeHistory: {
424
+ available: boolean;
425
+ mode: 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
426
+ activeByDefault: boolean;
427
+ maxDataChangesInStore?: number;
428
+ entries: number;
429
+ };
430
+ expressionOptions: {
431
+ maxHistoryPerCell?: number;
432
+ maxTimeframeSize?: number;
433
+ };
434
+ formatColumns: DevToolsPerfContextFormatColumn[];
435
+ calculatedColumns: DevToolsPerfContextCalculatedColumn[];
436
+ /** Column ids that have a Badge Styled Column */
437
+ badgeColumnIds: {
438
+ name: string;
439
+ columnId: string;
440
+ }[];
441
+ /** Column ids in scope of an active Flashing Cell definition */
442
+ flashingColumnIds: string[];
443
+ alerts: DevToolsPerfContextAlert[];
444
+ expressions: DevToolsPerfContextExpression[];
445
+ observableHistoryEntries?: number;
446
+ /**
447
+ * The expression engine's cache of prepared row evaluators: `size` and `limit` now, and how
448
+ * many evaluators it had to drop so far because it was full
449
+ */
450
+ expressionCache?: {
451
+ size: number;
452
+ limit: number;
453
+ evictions: number;
454
+ };
455
+ /** Data change counters of the last (or running) DevTools recording */
456
+ ticking?: DevToolsTickingStats;
457
+ /** The Hot Paths results of the last (or running) recording */
458
+ hotPaths: DevToolsHotPathStat[];
459
+ };
460
+ /** Response of `get-perf-context` / `getPerformanceContext()` */
461
+ export type DevToolsPerfContextResult = {
462
+ adaptableId: string;
463
+ generatedAt: number;
464
+ adaptableVersion: string;
465
+ agGridVersion: string;
466
+ context: DevToolsPerfContext;
467
+ };
468
+ /** Facts the advisor rules used, reported with the findings. */
469
+ export type DevToolsPerfReportContext = {
470
+ rowModelType: string;
471
+ rowCount: number;
472
+ columnCount: number;
473
+ primaryKey?: string;
474
+ isAutogeneratedPrimaryKey: boolean;
475
+ activeExpressionCount: number;
476
+ };
477
+ export type DevToolsPerfReport = {
478
+ adaptableId: string;
479
+ generatedAt: number;
480
+ adaptableVersion: string;
481
+ agGridVersion: string;
482
+ context: DevToolsPerfReportContext;
483
+ findings: DevToolsPerfFinding[];
484
+ };
485
+ /** Size and item count of one structure AdapTable keeps in memory. */
486
+ export type DevToolsMemoryItem = {
487
+ key: string;
488
+ label: string;
489
+ group: 'State' | 'Runtime' | 'Caches' | 'DevTools';
490
+ /** Number of entries, when the structure is a collection */
491
+ count?: number;
492
+ /** Approximate size: JSON length in bytes (not the retained heap size) */
493
+ approxBytes?: number;
494
+ /** Configured limit, when there is one */
495
+ limit?: number;
496
+ note?: string;
497
+ };
498
+ export type DevToolsMemoryInfo = {
499
+ adaptableId: string;
500
+ timestamp: number;
501
+ items: DevToolsMemoryItem[];
502
+ /** Whole-page JS heap, Chrome only */
503
+ heap?: DevToolsHeapSample;
504
+ };
505
+ /**
506
+ * One point of a recording's heap series. Points start 2 s wide; when a long recording
507
+ * fills the series, neighbouring points are merged and the width doubles.
508
+ */
509
+ export type DevToolsMemoryRecordingPoint = {
510
+ /** Start of the point's interval */
511
+ timestamp: number;
512
+ /** Last sample in the interval */
513
+ usedJSHeapSize: number;
514
+ /** Lowest sample in the interval: the heap after garbage collection */
515
+ usedMin: number;
516
+ usedMax: number;
517
+ totalJSHeapSize: number;
518
+ };
519
+ /** `count` and `approxBytes` of every memory inventory item, by item `key` */
520
+ export type DevToolsMemoryInventorySample = {
521
+ timestamp: number;
522
+ items: Record<string, {
523
+ count?: number;
524
+ approxBytes?: number;
525
+ }>;
526
+ };
144
527
  /**
145
528
  * In-page API exposed as `window.__ADAPTABLE_DEVTOOLS__` as soon as AdapTable
146
529
  * loads in a browser.
@@ -180,7 +563,8 @@ export interface AdaptableDevToolsGlobal {
180
563
  /** Columns AdapTable knows about, with data types and visibility */
181
564
  getColumns(adaptableId?: string): DevToolsColumnInfo[];
182
565
  /**
183
- * Read-only Column Info for one column: summary plus the objects scoped to it.
566
+ * Read-only Column Info for one column: summary plus the objects that apply to it,
567
+ * each with the part of its Scope that matched, and the modules searched or hidden.
184
568
  * Omit `columnId` to use the first column. Does not include distinct cell values.
185
569
  */
186
570
  getColumnInfo(adaptableId?: string, columnId?: string): DevToolsColumnDetail;
@@ -210,6 +594,51 @@ export interface AdaptableDevToolsGlobal {
210
594
  setLogging(pattern: string | null): string | null;
211
595
  /** Toggles `localStorage.adaptableProfileTracks` (Chrome Performance panel tracks) */
212
596
  enableProfiling(enabled?: boolean): void;
597
+ /**
598
+ * Starts a recording: operation timings, long animation frames, memory (the JS heap every 2 s
599
+ * and the size of AdapTable's structures about every 30 s) and, unless `hotPaths` is `false`,
600
+ * per-cell and per-row costs attributed to AdapTable objects and data change rates (Hot Paths
601
+ * add overhead while they run). Operations are also written as Chrome Performance panel tracks.
602
+ * It runs until stopped. Read it with `getPerfData()`.
603
+ */
604
+ startPerfRecording(adaptableId?: string, options?: {
605
+ hotPaths?: boolean;
606
+ }): void;
607
+ /** Stops the recording; the results stay available until the next start */
608
+ stopPerfRecording(adaptableId?: string): void;
609
+ /**
610
+ * Reloads the page and records from its start (start-up included), for every instance that
611
+ * starts in the new page load. Read once, at load; ignored after 30 s. Stop it with
612
+ * `stopPerfRecording()`.
613
+ */
614
+ recordPerfAfterReload(options?: {
615
+ hotPaths?: boolean;
616
+ }): void;
617
+ /**
618
+ * Timings and recording results, memory included. Pass the `cursor` of the previous call to
619
+ * get only what is new.
620
+ */
621
+ getPerfData(adaptableId?: string, cursor?: DevToolsPerfCursor): DevToolsPerfData;
622
+ /**
623
+ * The facts the DevTools Performance Advisor checks: row model and counts, the active Format
624
+ * Columns, Calculated Columns, Alerts, Flashing Cells, Badges and Expressions, the options that
625
+ * matter for performance, and the Hot Paths results of the last recording. The Advisor's rules run in DevTools
626
+ * (see the Performance docs for the list)
627
+ */
628
+ getPerformanceContext(adaptableId?: string): DevToolsPerfContextResult;
629
+ /**
630
+ * Approximate size of the structures AdapTable keeps in memory, read now. A recording samples
631
+ * the same (see `getPerfData().memory`).
632
+ */
633
+ getMemoryInfo(adaptableId?: string): DevToolsMemoryInfo;
634
+ /**
635
+ * Tags AdapTable's main structures with weak references on
636
+ * `globalThis.__ADAPTABLE_MEMORY_ROOTS__` and keeps the tags current for 5 minutes. A heap
637
+ * snapshot taken meanwhile (Chrome Memory panel) can then be broken down by structure in the
638
+ * DevTools Memory tab. Weak references change no retained size. Returns `false` when the
639
+ * browser has no `WeakRef`.
640
+ */
641
+ tagMemoryRoots(adaptableId?: string): boolean;
213
642
  /** The live `AdaptableApi` of an instance (not serializable; for in-page use) */
214
643
  getApi(adaptableId?: string): AdaptableApi;
215
644
  }
@@ -238,7 +667,53 @@ export type DevToolsHostPageMessagePayload = {
238
667
  adaptableId: string;
239
668
  [key: string]: any;
240
669
  };
241
- export type DevToolsHostPageMessageType = 'mount' | 'update' | 'unmount' | 'log' | 'state-change' | 'column-info';
670
+ export type DevToolsHostPageMessageType = 'mount' | 'update' | 'unmount' | 'log' | 'state-change' | 'column-info' | DevToolsHostPageLiveMessageType;
671
+ /**
672
+ * Responses the extension forwards straight to the panel without storing them
673
+ * (they are requested by the panel and only meaningful while it is open).
674
+ */
675
+ export type DevToolsHostPageLiveMessageType = 'perf-data' | 'perf-context' | 'memory-info';
676
+ export declare const DEVTOOLS_LIVE_MESSAGE_TYPES: readonly DevToolsHostPageLiveMessageType[];
677
+ /**
678
+ * The open AdapTable panel sends a `heartbeat` every second: after this long without one, the page
679
+ * treats the panel as closed. (The content script sends `register` every second too; the page
680
+ * treats the extension as gone after 90 s without one.)
681
+ */
682
+ export declare const DEVTOOLS_HEARTBEAT_TIMEOUT_MS = 4000;
683
+ /**
684
+ * Version of the messages between AdapTable and DevTools. Sent by the extension in `register`
685
+ * (`{ protocol }`) and by AdapTable in `mount` (`devtools.protocol`). A `register` without it comes
686
+ * from an older extension, a `mount` without it from an older AdapTable: both sides then keep the
687
+ * behaviour of that older version (see `design_docs/tooling/devtools_recording.md`).
688
+ */
689
+ export declare const DEVTOOLS_PROTOCOL_VERSION = 2;
690
+ /**
691
+ * What the page's AdapTable supports, so DevTools can tell an older version from a newer one
692
+ * without comparing version numbers:
693
+ * - `perf-recording`: one Performance recording (`set-perf-recording` with `hotPaths`)
694
+ * - `record-on-load`: Record and reload (`record-and-reload`)
695
+ */
696
+ export type DevToolsPageFeature = 'perf-recording' | 'record-on-load';
697
+ export declare const DEVTOOLS_PAGE_FEATURES: readonly DevToolsPageFeature[];
698
+ /**
699
+ * Sent in `mount` and in every `state-change`; a `state-change` without State carries it alone
700
+ * when the recording of the instance starts or stops
701
+ */
702
+ export type DevToolsPageInfo = {
703
+ protocol: number;
704
+ features: DevToolsPageFeature[];
705
+ /**
706
+ * The State timeline is paused: the page sends no State copies while the recording of this
707
+ * instance runs (they would be part of what it measures). When it resumes,
708
+ * the page sends the State if it changed meanwhile.
709
+ */
710
+ stateTimelinePaused?: boolean;
711
+ /**
712
+ * A Performance recording runs for this instance. Sent again whenever a recording starts or
713
+ * stops, so the panel shows it without asking for the performance data.
714
+ */
715
+ perfRecording?: boolean;
716
+ };
242
717
  export type DevToolsGridRuntime = {
243
718
  allRowsCount: number;
244
719
  visibleRowsCount: number;
@@ -250,12 +725,14 @@ export type DevToolsMountPayload = {
250
725
  adaptableId: string;
251
726
  adaptableVersion: string;
252
727
  agGridVersion: string;
253
- licenseKey?: string;
728
+ license?: DevToolsLicenseStatus;
254
729
  userName?: string;
255
730
  primaryKey?: string;
256
731
  /** Grouped modules visible in the Settings Panel sidebar for this instance. */
257
732
  settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
258
733
  appThemeVars?: DevToolsThemeVars;
734
+ /** Missing for AdapTable versions before DevTools protocol 2 */
735
+ devtools?: DevToolsPageInfo;
259
736
  themeVariant?: DevToolsThemeVariant;
260
737
  };
261
738
  /** Whether the current AdapTable theme is light or dark. */
@@ -301,8 +778,14 @@ export type DevToolsHostPageMessage = {
301
778
  adaptableId: string;
302
779
  state: any;
303
780
  actionName?: string;
781
+ /**
782
+ * Sent again after the extension (re)connected rather than because of a change:
783
+ * the extension skips the snapshot when the state equals the latest one
784
+ */
785
+ replay?: boolean;
786
+ devtools?: DevToolsPageInfo;
304
787
  gridRuntime?: DevToolsGridRuntime;
305
- licenseKey?: string;
788
+ license?: DevToolsLicenseStatus;
306
789
  userName?: string;
307
790
  primaryKey?: string;
308
791
  settingsPanelNavigation?: DevToolsSettingsPanelNavigationGroup[];
@@ -314,5 +797,23 @@ export type DevToolsHostPageMessage = {
314
797
  adaptableId: string;
315
798
  columnInfo: DevToolsColumnDetail;
316
799
  };
800
+ } | {
801
+ type: Extract<DevToolsHostPageMessageType, 'perf-data'>;
802
+ payload: {
803
+ adaptableId: string;
804
+ perfData: DevToolsPerfData;
805
+ };
806
+ } | {
807
+ type: Extract<DevToolsHostPageMessageType, 'perf-context'>;
808
+ payload: {
809
+ adaptableId: string;
810
+ perfContext: DevToolsPerfContextResult;
811
+ };
812
+ } | {
813
+ type: Extract<DevToolsHostPageMessageType, 'memory-info'>;
814
+ payload: {
815
+ adaptableId: string;
816
+ memoryInfo: DevToolsMemoryInfo;
817
+ };
317
818
  } | DevToolsHostPageLogMessage);
318
819
  export type DevToolsHookFn = (adaptableId: string, options: null | DevToolsFnOptions) => void;
package/devtools.js CHANGED
@@ -1 +1,11 @@
1
- export {};
1
+ export const DEVTOOLS_LIVE_MESSAGE_TYPES = [
2
+ 'perf-data',
3
+ 'perf-context',
4
+ 'memory-info',
5
+ ];
6
+ export const DEVTOOLS_HEARTBEAT_TIMEOUT_MS = 4000;
7
+ export const DEVTOOLS_PROTOCOL_VERSION = 2;
8
+ export const DEVTOOLS_PAGE_FEATURES = [
9
+ 'perf-recording',
10
+ 'record-on-load',
11
+ ];
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.3.4 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer adaptable.reset, adaptable.components, adaptable.utilities, adaptable.theming;
4
4
  @property --tw-animation-delay {
@@ -2835,8 +2835,8 @@
2835
2835
  .twa\:file\:text-foreground::file-selector-button {
2836
2836
  color: var(--ab-color-foreground);
2837
2837
  }
2838
- .twa\:placeholder\:text-muted-foreground::placeholder {
2839
- color: var(--ab-color-muted-foreground);
2838
+ .twa\:placeholder\:text-input-placeholder::placeholder {
2839
+ color: var(--ab-color-input-placeholder);
2840
2840
  }
2841
2841
  .twa\:before\:pointer-events-none::before {
2842
2842
  content: var(--tw-content);
@@ -3727,8 +3727,8 @@
3727
3727
  .twa\:data-open\:slide-in-from-bottom-2[data-open] {
3728
3728
  --tw-enter-translate-y: calc(2*var(--spacing));
3729
3729
  }
3730
- .twa\:data-placeholder\:text-muted-foreground[data-placeholder] {
3731
- color: var(--ab-color-muted-foreground);
3730
+ .twa\:data-placeholder\:text-input-placeholder[data-placeholder] {
3731
+ color: var(--ab-color-input-placeholder);
3732
3732
  }
3733
3733
  .twa\:data-popup-open\:bg-accent[data-popup-open] {
3734
3734
  background-color: var(--ab-color-accent);
@@ -6279,6 +6279,14 @@
6279
6279
  }
6280
6280
  :root {
6281
6281
  --ab-color-input-foreground: var(--ab-color-inputcolor, var(--ab-color-primary-foreground));
6282
+ --ab-color-input-placeholder: var(--ab-color-input-foreground);
6283
+ }
6284
+ @supports (color: color-mix(in lab, red, red)) {
6285
+ :root {
6286
+ --ab-color-input-placeholder: color-mix(in srgb, var(--ab-color-input-foreground) 50%, transparent);
6287
+ }
6288
+ }
6289
+ :root {
6282
6290
  --ab-color-warn: #eb9316;
6283
6291
  --ab-color-info: #17a2b8;
6284
6292
  --ab-color-success: #419641;
@@ -9403,6 +9411,8 @@
9403
9411
  border: 0;
9404
9412
  background: none;
9405
9413
  font-weight: 400;
9414
+ flex-shrink: 0;
9415
+ white-space: nowrap;
9406
9416
  border-right: var(--ab-cmp-adaptable-statusbar__border);
9407
9417
  }
9408
9418
  .ab-StatusBar__SubPanel:last-child {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "24.0.1",
3
+ "version": "24.0.3",
4
4
  "description": "Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -337,6 +337,11 @@ export interface IAdaptable {
337
337
  * migrate (when enabled), then normalise.
338
338
  */
339
339
  buildPostLoadHook(gridOptions: NormalizeAdaptableStateOptions): (state: Partial<AdaptablePersistentState>) => Partial<AdaptablePersistentState>;
340
- refreshLayout(): void;
340
+ /**
341
+ * @param config.columnsChanged only Columns (e.g. Calculated or FreeText Columns) changed, not the filters
342
+ */
343
+ refreshLayout(config?: {
344
+ columnsChanged?: boolean;
345
+ }): void;
341
346
  }
342
347
  export type NormalizeAdaptableStateOptions = Pick<GridOptions, 'rowModelType' | 'treeData' | 'columnDefs' | 'autoGroupColumnDef' | 'defaultColDef' | 'pivotMode'>;
@@ -73,7 +73,7 @@ export interface DataImportValidationError {
73
73
  */
74
74
  columnId: string;
75
75
  /**
76
- * The validatoin error text
76
+ * The validation error text
77
77
  */
78
78
  error: string;
79
79
  }