@adaptabletools/adaptable 17.0.0-canary.1 → 17.0.0-canary.11

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 (1253) hide show
  1. package/agGrid.js +32 -26
  2. package/base.css +1242 -1192
  3. package/base.css.map +1 -1
  4. package/bundle.cjs.js +689 -0
  5. package/index.css +2027 -6
  6. package/index.css.map +1 -1
  7. package/package.json +3 -8
  8. package/publishTimestamp.d.ts +2 -0
  9. package/publishTimestamp.js +3 -0
  10. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +2 -1
  11. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  12. package/src/AdaptableInterfaces/IAdaptable.js +2 -1
  13. package/src/AdaptableOptions/ActionColumnOptions.js +2 -1
  14. package/src/AdaptableOptions/ActionRowOptions.js +2 -1
  15. package/src/AdaptableOptions/AdaptableFrameworkComponent.js +2 -1
  16. package/src/AdaptableOptions/AdaptableOptions.js +2 -1
  17. package/src/AdaptableOptions/AdaptablePlugin.js +5 -1
  18. package/src/AdaptableOptions/AlertOptions.js +2 -1
  19. package/src/AdaptableOptions/CalendarOptions.js +2 -1
  20. package/src/AdaptableOptions/CellSummaryOptions.js +2 -1
  21. package/src/AdaptableOptions/ChartingOptions.js +2 -1
  22. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +8 -8
  23. package/src/AdaptableOptions/ColumnFilterOptions.js +2 -1
  24. package/src/AdaptableOptions/ColumnOptions.js +2 -1
  25. package/src/AdaptableOptions/ContainerOptions.js +2 -1
  26. package/src/AdaptableOptions/CustomSortOptions.js +2 -1
  27. package/src/AdaptableOptions/DashboardOptions.js +2 -1
  28. package/src/AdaptableOptions/DataChangeHistoryOptions.js +2 -1
  29. package/src/AdaptableOptions/DataImportOptions.js +2 -1
  30. package/src/AdaptableOptions/DataSetOptions.js +2 -1
  31. package/src/AdaptableOptions/DateInputOptions.js +2 -1
  32. package/src/AdaptableOptions/EditOptions.d.ts +6 -6
  33. package/src/AdaptableOptions/EditOptions.js +2 -1
  34. package/src/AdaptableOptions/EntitlementOptions.js +2 -1
  35. package/src/AdaptableOptions/ExportOptions.js +2 -1
  36. package/src/AdaptableOptions/ExpressionOptions.js +2 -1
  37. package/src/AdaptableOptions/Fdc3Options.js +5 -2
  38. package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -1
  39. package/src/AdaptableOptions/FlashingCellOptions.js +2 -1
  40. package/src/AdaptableOptions/FormatColumnOptions.js +2 -1
  41. package/src/AdaptableOptions/Glue42PluginOptions.js +2 -1
  42. package/src/AdaptableOptions/Glue42WebPluginOptions.js +2 -1
  43. package/src/AdaptableOptions/GridFilterOptions.d.ts +8 -3
  44. package/src/AdaptableOptions/GridFilterOptions.js +2 -1
  45. package/src/AdaptableOptions/GroupingOptions.js +2 -1
  46. package/src/AdaptableOptions/IPushPullPluginOptions.js +2 -1
  47. package/src/AdaptableOptions/LayoutOptions.js +2 -1
  48. package/src/AdaptableOptions/MasterDetailPluginOptions.js +2 -1
  49. package/src/AdaptableOptions/MenuOptions.js +7 -3
  50. package/src/AdaptableOptions/NotesOptions.js +2 -1
  51. package/src/AdaptableOptions/NotificationsOptions.js +2 -1
  52. package/src/AdaptableOptions/OpenFinPluginOptions.js +2 -1
  53. package/src/AdaptableOptions/PredicateOptions.js +2 -1
  54. package/src/AdaptableOptions/QuickSearchOptions.js +2 -1
  55. package/src/AdaptableOptions/SettingsPanelOptions.js +2 -1
  56. package/src/AdaptableOptions/StateOptions.js +2 -1
  57. package/src/AdaptableOptions/TeamSharingOptions.js +2 -1
  58. package/src/AdaptableOptions/ToolPanelOptions.js +2 -1
  59. package/src/AdaptableOptions/UserInterfaceOptions.js +2 -1
  60. package/src/Api/ActionColumnApi.js +2 -1
  61. package/src/Api/ActionRowApi.js +2 -1
  62. package/src/Api/AdaptableApi.js +2 -1
  63. package/src/Api/AlertApi.js +2 -1
  64. package/src/Api/ApplicationApi.js +2 -1
  65. package/src/Api/BulkUpdateApi.js +2 -1
  66. package/src/Api/CalculatedColumnApi.js +2 -1
  67. package/src/Api/CalendarApi.js +2 -1
  68. package/src/Api/CellSummaryApi.js +2 -1
  69. package/src/Api/ChartingApi.js +2 -1
  70. package/src/Api/ColumnApi.js +2 -1
  71. package/src/Api/ColumnFilterApi.js +2 -1
  72. package/src/Api/ConfigApi.js +2 -1
  73. package/src/Api/CustomSortApi.js +2 -1
  74. package/src/Api/DashboardApi.js +2 -1
  75. package/src/Api/DataChangeHistoryApi.js +2 -1
  76. package/src/Api/DataImportApi.js +2 -1
  77. package/src/Api/DataSetApi.js +2 -1
  78. package/src/Api/EntitlementApi.js +2 -1
  79. package/src/Api/EventApi.d.ts +19 -8
  80. package/src/Api/EventApi.js +2 -1
  81. package/src/Api/Events/ActionRowSubmitted.js +2 -1
  82. package/src/Api/Events/AdaptableReady.js +2 -1
  83. package/src/Api/Events/AdaptableSearchState.js +2 -1
  84. package/src/Api/Events/AdaptableStateChanged.js +2 -1
  85. package/src/Api/Events/AdaptableStateReloaded.js +2 -1
  86. package/src/Api/Events/AlertFired.js +2 -1
  87. package/src/Api/Events/BaseEventInfo.js +2 -1
  88. package/src/Api/Events/CellChanged.js +2 -1
  89. package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
  90. package/src/Api/Events/CellSelectionChanged.js +2 -0
  91. package/src/Api/Events/ChartChanged.js +2 -1
  92. package/src/Api/Events/ColumnFilterApplied.js +2 -1
  93. package/src/Api/Events/CustomToolbarConfigured.js +2 -1
  94. package/src/Api/Events/DashboardChanged.js +2 -1
  95. package/src/Api/Events/DataImported.js +2 -1
  96. package/src/Api/Events/DataSetSelected.js +2 -1
  97. package/src/Api/Events/Fdc3MessageInfo.js +2 -1
  98. package/src/Api/Events/FlashingCellDisplayed.js +2 -1
  99. package/src/Api/Events/GridDataChanged.js +2 -1
  100. package/src/Api/Events/GridFilterApplied.js +2 -1
  101. package/src/Api/Events/GridSorted.js +2 -1
  102. package/src/Api/Events/LayoutChanged.js +2 -1
  103. package/src/Api/Events/LiveDataChanged.js +2 -1
  104. package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
  105. package/src/Api/Events/RowSelectionChanged.js +2 -0
  106. package/src/Api/Events/ScheduleTriggered.js +2 -1
  107. package/src/Api/Events/SystemStatusMessageDisplayed.js +2 -1
  108. package/src/Api/Events/TeamSharingEntityChanged.js +2 -1
  109. package/src/Api/Events/ThemeChanged.js +2 -1
  110. package/src/Api/Events/ThemeEdited.js +2 -1
  111. package/src/Api/ExportApi.js +2 -1
  112. package/src/Api/ExpressionApi.js +2 -1
  113. package/src/Api/Fdc3Api.js +2 -1
  114. package/src/Api/FinsembleApi.js +2 -1
  115. package/src/Api/FlashingCellApi.js +2 -1
  116. package/src/Api/FormatColumnApi.js +2 -1
  117. package/src/Api/FreeTextColumnApi.js +2 -1
  118. package/src/Api/Glue42Api.js +2 -1
  119. package/src/Api/Glue42WebApi.js +2 -1
  120. package/src/Api/GridApi.js +2 -1
  121. package/src/Api/GridFilterApi.d.ts +2 -2
  122. package/src/Api/GridFilterApi.js +2 -1
  123. package/src/Api/IPushPullApi.js +2 -1
  124. package/src/Api/Implementation/ActionColumnApiImpl.js +6 -2
  125. package/src/Api/Implementation/ActionRowApiImpl.js +12 -8
  126. package/src/Api/Implementation/AdaptableApiImpl.js +101 -97
  127. package/src/Api/Implementation/AlertApiImpl.js +23 -18
  128. package/src/Api/Implementation/ApiBase.js +10 -5
  129. package/src/Api/Implementation/ApplicationApiImpl.js +8 -3
  130. package/src/Api/Implementation/BulkUpdateApiImpl.js +10 -5
  131. package/src/Api/Implementation/CalculatedColumnApiImpl.js +11 -6
  132. package/src/Api/Implementation/CalendarApiImpl.js +6 -2
  133. package/src/Api/Implementation/CellSummaryApiImpl.js +22 -17
  134. package/src/Api/Implementation/ChartingApiImpl.js +18 -13
  135. package/src/Api/Implementation/ColumnApiImpl.js +16 -11
  136. package/src/Api/Implementation/ColumnFilterApiImpl.js +14 -9
  137. package/src/Api/Implementation/ConfigApiImpl.js +34 -29
  138. package/src/Api/Implementation/CustomSortApiImpl.js +11 -6
  139. package/src/Api/Implementation/DashboardApiImpl.js +14 -9
  140. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +15 -10
  141. package/src/Api/Implementation/DataImportApiImpl.js +8 -4
  142. package/src/Api/Implementation/DataSetApiImpl.js +11 -6
  143. package/src/Api/Implementation/EntitlementApiImpl.js +6 -2
  144. package/src/Api/Implementation/EventApiImpl.js +9 -4
  145. package/src/Api/Implementation/ExportApiImpl.js +17 -12
  146. package/src/Api/Implementation/ExpressionApiImpl.js +10 -5
  147. package/src/Api/Implementation/Fdc3ApiImpl.js +12 -8
  148. package/src/Api/Implementation/FlashingCellApiImpl.js +11 -6
  149. package/src/Api/Implementation/FormatColumnApiImpl.js +11 -6
  150. package/src/Api/Implementation/FreeTextColumnApiImpl.js +14 -9
  151. package/src/Api/Implementation/GridApiImpl.js +23 -18
  152. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  153. package/src/Api/Implementation/GridFilterApiImpl.js +15 -10
  154. package/src/Api/Implementation/LayoutApiImpl.js +30 -25
  155. package/src/Api/Implementation/NamedQueryApiImpl.js +13 -8
  156. package/src/Api/Implementation/NotesApiImpl.js +9 -4
  157. package/src/Api/Implementation/OptionsApiImpl.js +6 -2
  158. package/src/Api/Implementation/PluginsApiImpl.js +8 -3
  159. package/src/Api/Implementation/PlusMinusApiImpl.js +9 -4
  160. package/src/Api/Implementation/PredicateApiImpl.js +17 -12
  161. package/src/Api/Implementation/QuickSearchApiImpl.js +10 -5
  162. package/src/Api/Implementation/ScheduleApiImpl.js +11 -6
  163. package/src/Api/Implementation/ScopeApiImpl.js +13 -8
  164. package/src/Api/Implementation/SettingsPanelApiImpl.js +8 -3
  165. package/src/Api/Implementation/ShortcutApiImpl.js +9 -4
  166. package/src/Api/Implementation/SmartEditApiImpl.js +10 -5
  167. package/src/Api/Implementation/StatusBarApiImpl.js +9 -5
  168. package/src/Api/Implementation/StyledColumnApiImpl.js +11 -6
  169. package/src/Api/Implementation/SystemStatusApiImpl.js +21 -16
  170. package/src/Api/Implementation/TeamSharingApiImpl.js +17 -12
  171. package/src/Api/Implementation/ThemeApiImpl.js +15 -10
  172. package/src/Api/Implementation/ToolPanelApiImpl.js +11 -6
  173. package/src/Api/Implementation/UserInterfaceApiImpl.js +20 -15
  174. package/src/Api/Internal/ActionRowInternalApi.js +6 -2
  175. package/src/Api/Internal/AdaptableInternalApi.js +26 -21
  176. package/src/Api/Internal/AlertInternalApi.js +25 -20
  177. package/src/Api/Internal/CalculatedColumnInternalApi.js +6 -2
  178. package/src/Api/Internal/ChartingInternalApi.js +12 -8
  179. package/src/Api/Internal/ColumnFilterInternalApi.js +13 -8
  180. package/src/Api/Internal/ColumnInternalApi.js +8 -4
  181. package/src/Api/Internal/CustomSortInternalApi.js +6 -2
  182. package/src/Api/Internal/DashboardInternalApi.js +11 -6
  183. package/src/Api/Internal/DataImportInternalApi.js +10 -5
  184. package/src/Api/Internal/DataSetInternalApi.js +6 -2
  185. package/src/Api/Internal/ExportInternalApi.js +6 -2
  186. package/src/Api/Internal/ExpressionnternalApi.js +6 -2
  187. package/src/Api/Internal/Fdc3InternalApi.js +28 -24
  188. package/src/Api/Internal/FlashingCellInternalApi.js +12 -7
  189. package/src/Api/Internal/FormatColumnInternalApi.js +22 -17
  190. package/src/Api/Internal/FreeTextColumnInternalApi.js +6 -2
  191. package/src/Api/Internal/GridFilterInternalApi.js +6 -2
  192. package/src/Api/Internal/GridInternalApi.js +18 -13
  193. package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
  194. package/src/Api/Internal/LayoutInternalApi.js +28 -23
  195. package/src/Api/Internal/NamedQueryInternalApi.js +8 -3
  196. package/src/Api/Internal/PredicateInternalApi.js +6 -2
  197. package/src/Api/Internal/ScheduleInternalApi.js +6 -2
  198. package/src/Api/Internal/StyledColumnInternalApi.js +10 -5
  199. package/src/Api/Internal/SystemStatusInternalApi.js +8 -3
  200. package/src/Api/Internal/TeamSharingInternalApi.js +6 -2
  201. package/src/Api/Internal/ThemeInternalApi.js +9 -5
  202. package/src/Api/Internal/UserInterfaceInternalApi.js +6 -2
  203. package/src/Api/LayoutApi.js +2 -1
  204. package/src/Api/NamedQueryApi.js +2 -1
  205. package/src/Api/NotesAPi.js +2 -1
  206. package/src/Api/OpenFinApi.js +2 -1
  207. package/src/Api/OptionsApi.js +2 -1
  208. package/src/Api/PluginsApi.js +2 -1
  209. package/src/Api/PlusMinusApi.js +2 -1
  210. package/src/Api/PredicateApi.js +2 -1
  211. package/src/Api/QuickSearchApi.js +2 -1
  212. package/src/Api/ScheduleApi.js +2 -1
  213. package/src/Api/ScopeApi.js +2 -1
  214. package/src/Api/SettingsPanelApi.js +2 -1
  215. package/src/Api/ShortcutApi.js +2 -1
  216. package/src/Api/SmartEditApi.js +2 -1
  217. package/src/Api/StatusBarApi.js +2 -1
  218. package/src/Api/StyledColumnApi.js +2 -1
  219. package/src/Api/SystemStatusApi.js +2 -1
  220. package/src/Api/TeamSharingApi.js +2 -1
  221. package/src/Api/ThemeApi.js +2 -1
  222. package/src/Api/ToolPanelApi.js +2 -1
  223. package/src/Api/UserInterfaceApi.js +2 -1
  224. package/src/PredefinedConfig/AdaptableState.js +2 -1
  225. package/src/PredefinedConfig/AlertState.js +2 -1
  226. package/src/PredefinedConfig/ApplicationState.js +2 -1
  227. package/src/PredefinedConfig/CalculatedColumnState.js +2 -1
  228. package/src/PredefinedConfig/ChartingState.js +7 -2
  229. package/src/PredefinedConfig/Common/AdaptableAlert.js +7 -2
  230. package/src/PredefinedConfig/Common/AdaptableButton.js +2 -1
  231. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -1
  232. package/src/PredefinedConfig/Common/AdaptableComparerFunction.js +2 -1
  233. package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -1
  234. package/src/PredefinedConfig/Common/AdaptableForm.js +5 -1
  235. package/src/PredefinedConfig/Common/AdaptableFormat.js +2 -1
  236. package/src/PredefinedConfig/Common/AdaptableIcon.js +2 -1
  237. package/src/PredefinedConfig/Common/AdaptableMessageType.js +2 -1
  238. package/src/PredefinedConfig/Common/AdaptableObject.js +2 -1
  239. package/src/PredefinedConfig/Common/AdaptablePredicate.js +56 -52
  240. package/src/PredefinedConfig/Common/AdaptableQuery.js +5 -1
  241. package/src/PredefinedConfig/Common/AdaptableScope.js +2 -1
  242. package/src/PredefinedConfig/Common/AdaptableStyle.js +2 -1
  243. package/src/PredefinedConfig/Common/AggregationColumns.js +4 -1
  244. package/src/PredefinedConfig/Common/AlternativeModuleName.js +2 -1
  245. package/src/PredefinedConfig/Common/BaseContext.js +2 -1
  246. package/src/PredefinedConfig/Common/ButtonStyle.js +2 -1
  247. package/src/PredefinedConfig/Common/CellDataChangedInfo.js +2 -1
  248. package/src/PredefinedConfig/Common/CellHighlightInfo.js +2 -1
  249. package/src/PredefinedConfig/Common/CellSummary.js +2 -1
  250. package/src/PredefinedConfig/Common/ColumnFilter.js +2 -1
  251. package/src/PredefinedConfig/Common/ColumnSort.js +2 -1
  252. package/src/PredefinedConfig/Common/DataChangedScope.js +2 -1
  253. package/src/PredefinedConfig/Common/DataUpdateConfig.js +2 -1
  254. package/src/PredefinedConfig/Common/Entitlement.js +2 -1
  255. package/src/PredefinedConfig/Common/Enums.js +29 -26
  256. package/src/PredefinedConfig/Common/Fdc3Context.js +35 -32
  257. package/src/PredefinedConfig/Common/Fdc3Intent.js +67 -64
  258. package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +2 -1
  259. package/src/PredefinedConfig/Common/FormContext.js +2 -1
  260. package/src/PredefinedConfig/Common/GridFilter.js +2 -1
  261. package/src/PredefinedConfig/Common/Menu.js +2 -1
  262. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -1
  263. package/src/PredefinedConfig/Common/RowsHighlightInfo.js +2 -1
  264. package/src/PredefinedConfig/Common/Schedule.js +2 -1
  265. package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -1
  266. package/src/PredefinedConfig/Common/SuspendableObject.js +2 -1
  267. package/src/PredefinedConfig/Common/SystemStatusMessageInfo.js +2 -1
  268. package/src/PredefinedConfig/Common/Types.js +9 -5
  269. package/src/PredefinedConfig/ConfigState.js +2 -1
  270. package/src/PredefinedConfig/CustomSortState.js +2 -1
  271. package/src/PredefinedConfig/DashboardState.js +2 -1
  272. package/src/PredefinedConfig/ExportState.js +2 -1
  273. package/src/PredefinedConfig/FlashingCellState.js +2 -1
  274. package/src/PredefinedConfig/FormatColumnState.js +2 -1
  275. package/src/PredefinedConfig/FreeTextColumnState.js +2 -1
  276. package/src/PredefinedConfig/Glue42State.js +2 -1
  277. package/src/PredefinedConfig/GridState.js +2 -1
  278. package/src/PredefinedConfig/IPushPullState.js +2 -1
  279. package/src/PredefinedConfig/InternalState.js +2 -1
  280. package/src/PredefinedConfig/LayoutState.js +2 -1
  281. package/src/PredefinedConfig/NamedQueryState.js +2 -1
  282. package/src/PredefinedConfig/NotesState.js +2 -1
  283. package/src/PredefinedConfig/OpenFinState.js +2 -1
  284. package/src/PredefinedConfig/PlusMinusState.js +2 -1
  285. package/src/PredefinedConfig/PopupState.js +2 -1
  286. package/src/PredefinedConfig/PredefinedConfig.js +2 -1
  287. package/src/PredefinedConfig/QueryState.js +2 -1
  288. package/src/PredefinedConfig/QuickSearchState.js +2 -1
  289. package/src/PredefinedConfig/ScheduleState.js +2 -1
  290. package/src/PredefinedConfig/Selection/GridCell.js +2 -1
  291. package/src/PredefinedConfig/Selection/GridCellRange.js +2 -1
  292. package/src/PredefinedConfig/Selection/GridRow.js +2 -1
  293. package/src/PredefinedConfig/Selection/SelectedCellInfo.js +2 -1
  294. package/src/PredefinedConfig/Selection/SelectedRowInfo.js +2 -1
  295. package/src/PredefinedConfig/ShortcutState.js +2 -1
  296. package/src/PredefinedConfig/StatusBarState.js +4 -1
  297. package/src/PredefinedConfig/StyledColumnState.js +2 -1
  298. package/src/PredefinedConfig/SystemState.js +2 -1
  299. package/src/PredefinedConfig/TeamSharingState.js +7 -2
  300. package/src/PredefinedConfig/ThemeState.js +2 -1
  301. package/src/PredefinedConfig/ToolPanelState.js +2 -1
  302. package/src/PredefinedConfig/Uuid.js +6 -2
  303. package/src/Redux/ActionsReducers/AlertRedux.js +59 -45
  304. package/src/Redux/ActionsReducers/ApplicationRedux.js +22 -15
  305. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +15 -9
  306. package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +29 -20
  307. package/src/Redux/ActionsReducers/CellSummaryRedux.js +7 -3
  308. package/src/Redux/ActionsReducers/ChartingRedux.js +55 -41
  309. package/src/Redux/ActionsReducers/CustomSortRedux.js +54 -41
  310. package/src/Redux/ActionsReducers/DashboardRedux.js +66 -50
  311. package/src/Redux/ActionsReducers/ExportRedux.js +43 -33
  312. package/src/Redux/ActionsReducers/FlashingCellRedux.js +57 -43
  313. package/src/Redux/ActionsReducers/FormatColumnRedux.js +70 -54
  314. package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +34 -24
  315. package/src/Redux/ActionsReducers/GridRedux.js +160 -125
  316. package/src/Redux/ActionsReducers/LayoutRedux.js +115 -89
  317. package/src/Redux/ActionsReducers/NamedQueryRedux.js +35 -25
  318. package/src/Redux/ActionsReducers/NotesRedux.js +31 -21
  319. package/src/Redux/ActionsReducers/PluginsRedux.js +53 -48
  320. package/src/Redux/ActionsReducers/PlusMinusRedux.js +59 -45
  321. package/src/Redux/ActionsReducers/PopupRedux.js +84 -64
  322. package/src/Redux/ActionsReducers/QueryRedux.js +13 -8
  323. package/src/Redux/ActionsReducers/QuickSearchRedux.js +23 -16
  324. package/src/Redux/ActionsReducers/ScheduleRedux.js +222 -179
  325. package/src/Redux/ActionsReducers/ShortcutRedux.js +54 -41
  326. package/src/Redux/ActionsReducers/SmartEditRedux.js +15 -9
  327. package/src/Redux/ActionsReducers/StatusBarRedux.js +19 -12
  328. package/src/Redux/ActionsReducers/StyledColumnRedux.js +54 -41
  329. package/src/Redux/ActionsReducers/SystemRedux.js +324 -254
  330. package/src/Redux/ActionsReducers/SystemStatusRedux.js +11 -6
  331. package/src/Redux/ActionsReducers/TeamSharingRedux.js +55 -40
  332. package/src/Redux/ActionsReducers/ThemeRedux.js +43 -32
  333. package/src/Redux/ActionsReducers/ToolPanelRedux.js +39 -28
  334. package/src/Redux/ActionsReducers/utils.js +9 -3
  335. package/src/Redux/DeadRedux.js +38 -25
  336. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +20 -15
  337. package/src/Redux/Store/AdaptableReduxMerger.js +30 -21
  338. package/src/Redux/Store/AdaptableStore.js +108 -101
  339. package/src/Redux/Store/Interface/IAdaptableStore.js +2 -1
  340. package/src/Redux/Store/Interface/IStorageEngine.js +2 -1
  341. package/src/Strategy/AdaptableModuleBase.js +13 -8
  342. package/src/Strategy/AlertModule.js +40 -35
  343. package/src/Strategy/BulkUpdateModule.js +22 -17
  344. package/src/Strategy/CalculatedColumnModule.js +21 -16
  345. package/src/Strategy/CellSummaryModule.js +22 -17
  346. package/src/Strategy/ChartingModule.js +20 -15
  347. package/src/Strategy/ColumnFilterModule.js +16 -11
  348. package/src/Strategy/ColumnInfoModule.js +8 -3
  349. package/src/Strategy/CustomSortModule.js +17 -12
  350. package/src/Strategy/DashboardModule.js +9 -4
  351. package/src/Strategy/DataChangeHistoryModule.js +15 -10
  352. package/src/Strategy/DataImportModule.js +8 -3
  353. package/src/Strategy/DataSetModule.js +16 -11
  354. package/src/Strategy/ExportModule.js +60 -55
  355. package/src/Strategy/Fdc3Module.js +8 -3
  356. package/src/Strategy/FlashingCellModule.js +33 -28
  357. package/src/Strategy/FormatColumnModule.js +32 -27
  358. package/src/Strategy/FreeTextColumnModule.js +13 -8
  359. package/src/Strategy/GridFilterModule.js +14 -9
  360. package/src/Strategy/GridInfoModule.js +8 -3
  361. package/src/Strategy/Interface/IBulkUpdateModule.js +2 -1
  362. package/src/Strategy/Interface/ICellSummaryModule.js +2 -1
  363. package/src/Strategy/Interface/IExportModule.js +2 -1
  364. package/src/Strategy/Interface/IModule.js +2 -1
  365. package/src/Strategy/Interface/IModuleActionReturn.js +2 -1
  366. package/src/Strategy/Interface/IPlusMinusModule.js +2 -1
  367. package/src/Strategy/Interface/IScheduleModule.js +2 -1
  368. package/src/Strategy/Interface/IShortcutModule.js +2 -1
  369. package/src/Strategy/Interface/ISmartEditModule.js +2 -1
  370. package/src/Strategy/LayoutModule.js +36 -35
  371. package/src/Strategy/NamedQueryModule.js +17 -12
  372. package/src/Strategy/NotesModule.js +9 -4
  373. package/src/Strategy/PlusMinusModule.js +26 -21
  374. package/src/Strategy/QuickSearchModule.js +10 -5
  375. package/src/Strategy/ScheduleModule.js +45 -40
  376. package/src/Strategy/SettingsPanelModule.js +9 -4
  377. package/src/Strategy/ShortcutModule.js +26 -21
  378. package/src/Strategy/SmartEditModule.js +27 -22
  379. package/src/Strategy/StateManagementModule.js +8 -3
  380. package/src/Strategy/StatusBarModule.js +8 -3
  381. package/src/Strategy/StyledColumnModule.js +22 -17
  382. package/src/Strategy/SystemStatusModule.js +10 -5
  383. package/src/Strategy/TeamSharingModule.js +37 -32
  384. package/src/Strategy/ThemeModule.js +10 -13
  385. package/src/Strategy/ToolPanelModule.js +13 -8
  386. package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +9 -5
  387. package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +11 -6
  388. package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +8 -4
  389. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +5 -1
  390. package/src/Strategy/Utilities/CustomSort/getCustomSortSortOrderViewItems.js +5 -1
  391. package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +5 -1
  392. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
  393. package/src/Strategy/Utilities/FlashingCell/getFlashingCellDurationViewItems.js +5 -1
  394. package/src/Strategy/Utilities/FlashingCell/getFlashingCellStyleViewItems.js +7 -3
  395. package/src/Strategy/Utilities/FlashingCell/getFlashingTargetViewItems.js +5 -1
  396. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +5 -1
  397. package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +10 -5
  398. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +8 -3
  399. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +5 -1
  400. package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +5 -1
  401. package/src/Strategy/Utilities/getExpressionViewItems.js +5 -1
  402. package/src/Strategy/Utilities/getObjectTagsViewItems.js +12 -7
  403. package/src/Strategy/Utilities/getRuleViewItems.js +5 -1
  404. package/src/Strategy/Utilities/getScopeViewItems.js +5 -1
  405. package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +5 -1
  406. package/src/Utilities/Cancelable.js +2 -1
  407. package/src/Utilities/Constants/ConfigConstants.js +12 -9
  408. package/src/Utilities/Constants/DocumentationLinkConstants.js +17 -14
  409. package/src/Utilities/Constants/GeneralConstants.js +74 -70
  410. package/src/Utilities/Constants/ModuleConstants.js +119 -115
  411. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +30 -26
  412. package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -2
  413. package/src/Utilities/Emitter.js +5 -3
  414. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +24 -20
  415. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +54 -51
  416. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +42 -31
  417. package/src/Utilities/ExpressionFunctions/dateUtils.js +7 -2
  418. package/src/Utilities/ExpressionFunctions/deepMap.js +5 -1
  419. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +57 -39
  420. package/src/Utilities/ExpressionFunctions/groupingMap.js +7 -3
  421. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +70 -66
  422. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +7 -3
  423. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +56 -52
  424. package/src/Utilities/Extensions/ArrayExtensions.js +73 -39
  425. package/src/Utilities/Extensions/EnumExtensions.js +21 -14
  426. package/src/Utilities/Extensions/NumberExtensions.js +9 -4
  427. package/src/Utilities/Extensions/ObjectExtensions.js +9 -3
  428. package/src/Utilities/Extensions/StringExtensions.js +46 -23
  429. package/src/Utilities/Extensions/TypeExtensions.js +5 -1
  430. package/src/Utilities/Helpers/AdaptableHelper.js +70 -59
  431. package/src/Utilities/Helpers/DateHelper.js +28 -18
  432. package/src/Utilities/Helpers/FormatHelper.js +18 -10
  433. package/src/Utilities/Helpers/Helper.js +50 -28
  434. package/src/Utilities/Helpers/PreviewHelper.js +15 -8
  435. package/src/Utilities/Helpers/StyleHelper.js +20 -11
  436. package/src/Utilities/Interface/AdaptableToolPanelContext.js +2 -1
  437. package/src/Utilities/Interface/ColumnFilterProps.js +2 -1
  438. package/src/Utilities/Interface/IPPStyle.js +2 -1
  439. package/src/Utilities/Interface/KeyValuePair.js +2 -1
  440. package/src/Utilities/Interface/MessagePopups.js +2 -1
  441. package/src/Utilities/Interface/Preview.js +2 -1
  442. package/src/Utilities/MenuItem.js +11 -4
  443. package/src/Utilities/ObjectFactory.js +167 -124
  444. package/src/Utilities/Services/AggregatedScalarLiveValue.js +7 -3
  445. package/src/Utilities/Services/AlertService.js +16 -11
  446. package/src/Utilities/Services/CalculatedColumnExpressionService.js +13 -9
  447. package/src/Utilities/Services/ChartingService.js +15 -10
  448. package/src/Utilities/Services/DataService.js +13 -8
  449. package/src/Utilities/Services/EntitlementService.js +5 -1
  450. package/src/Utilities/Services/Fdc3Service.js +11 -7
  451. package/src/Utilities/Services/Interface/IAdaptableService.js +2 -1
  452. package/src/Utilities/Services/Interface/IAlertService.js +8 -3
  453. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.js +2 -1
  454. package/src/Utilities/Services/Interface/IChartingService.js +2 -1
  455. package/src/Utilities/Services/Interface/IDataService.js +2 -1
  456. package/src/Utilities/Services/Interface/IEntitlementService.js +2 -1
  457. package/src/Utilities/Services/Interface/ILicenseService.js +2 -1
  458. package/src/Utilities/Services/Interface/IMetamodelService.js +2 -1
  459. package/src/Utilities/Services/Interface/IModuleService.js +2 -1
  460. package/src/Utilities/Services/Interface/IQueryLanguageService.js +2 -1
  461. package/src/Utilities/Services/Interface/IReportService.js +2 -1
  462. package/src/Utilities/Services/Interface/IRowEditService.js +2 -1
  463. package/src/Utilities/Services/Interface/ITeamSharingService.js +2 -1
  464. package/src/Utilities/Services/Interface/IThemeService.js +2 -1
  465. package/src/Utilities/Services/Interface/IValidationService.js +2 -1
  466. package/src/Utilities/Services/LicenseService/index.js +1 -181
  467. package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +5 -1
  468. package/src/Utilities/Services/MetamodelService.js +17 -12
  469. package/src/Utilities/Services/ModuleService.js +14 -9
  470. package/src/Utilities/Services/QueryLanguageService.js +29 -24
  471. package/src/Utilities/Services/ReportService.js +53 -48
  472. package/src/Utilities/Services/RowEditService.js +5 -1
  473. package/src/Utilities/Services/TeamSharingService.js +11 -6
  474. package/src/Utilities/Services/ThemeService.js +5 -1
  475. package/src/Utilities/Services/ValidationService.js +25 -20
  476. package/src/Utilities/getScrollbarSize.js +3 -1
  477. package/src/Utilities/isAdaptableObject.js +5 -1
  478. package/src/Utilities/isMacLike.js +5 -1
  479. package/src/Utilities/license/LicenseDetails.js +2 -1
  480. package/src/Utilities/license/decode.js +1 -65
  481. package/src/Utilities/license/hashing.js +1 -43
  482. package/src/Utilities/logDeprecation.js +9 -3
  483. package/src/Utilities/reorder.js +5 -1
  484. package/src/Utilities/runIfNotResolvedIn.js +5 -1
  485. package/src/Utilities/sortWithOrder.js +5 -1
  486. package/src/Utilities/waitForCondition.js +5 -1
  487. package/src/Utilities/waitForTimeout.js +5 -1
  488. package/src/View/AdaptableContext.js +8 -3
  489. package/src/View/AdaptablePopover/index.js +22 -17
  490. package/src/View/AdaptableView.js +35 -30
  491. package/src/View/AdaptableViewFactory.js +71 -67
  492. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -1
  493. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +30 -25
  494. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +44 -42
  495. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -4
  496. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +26 -21
  497. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +9 -4
  498. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +29 -26
  499. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +2 -1
  500. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +20 -17
  501. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +13 -8
  502. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +21 -16
  503. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +29 -24
  504. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +23 -18
  505. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -2
  506. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +5 -3
  507. package/src/View/AdaptableWizardView/Utils.js +5 -1
  508. package/src/View/AdaptableWizardView/Wizard.js +26 -20
  509. package/src/View/AdaptableWizardView/helper.js +10 -4
  510. package/src/View/AdaptableWizardView/index.js +10 -7
  511. package/src/View/Alert/ActiveAlertsPanel.js +14 -9
  512. package/src/View/Alert/ActiveAlertsPanelItemLabel.js +15 -10
  513. package/src/View/Alert/AlertEmptyView.js +9 -4
  514. package/src/View/Alert/AlertEntityRow.js +18 -13
  515. package/src/View/Alert/AlertStatusSubPanel.js +18 -13
  516. package/src/View/Alert/AlertViewPanel.js +20 -16
  517. package/src/View/Alert/AlertsPanel.js +27 -22
  518. package/src/View/Alert/Utilities/getAlertButtonStyle.js +11 -6
  519. package/src/View/Alert/Utilities/getAlertType.d.ts +1 -0
  520. package/src/View/Alert/Utilities/getAlertType.js +18 -5
  521. package/src/View/Alert/Utilities/getAvailablePredicates.js +6 -2
  522. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +18 -8
  523. package/src/View/Alert/Utilities/mapAlertDefinition.js +5 -1
  524. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +51 -48
  525. package/src/View/Alert/Wizard/AlertButtonsEditor.js +40 -35
  526. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +37 -31
  527. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +33 -27
  528. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +38 -28
  529. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +14 -9
  530. package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +19 -14
  531. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +26 -19
  532. package/src/View/Alert/Wizard/AlertWizard.js +65 -60
  533. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +19 -14
  534. package/src/View/Alert/Wizard/isValidAlertRules.js +7 -3
  535. package/src/View/BulkUpdate/BulkUpdatePopup.js +37 -33
  536. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +31 -27
  537. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +22 -17
  538. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +5 -1
  539. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +43 -36
  540. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -21
  541. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +40 -33
  542. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +18 -13
  543. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +54 -49
  544. package/src/View/CalculatedColumn/utils.js +5 -1
  545. package/src/View/CellSummary/CellSummaryDetails.js +11 -6
  546. package/src/View/CellSummary/CellSummaryPopover.js +9 -4
  547. package/src/View/CellSummary/CellSummaryPopup.js +12 -8
  548. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +12 -11
  549. package/src/View/CellSummary/CellSummaryStatusPanel.js +16 -11
  550. package/src/View/CellSummary/CellSummaryViewPanel.js +26 -22
  551. package/src/View/Charting/ChartingStatusBarPopover.js +17 -12
  552. package/src/View/Charting/ChartingViewPanel.js +18 -13
  553. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +23 -18
  554. package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +14 -9
  555. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +22 -16
  556. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -1
  557. package/src/View/Charting/ChartingWizard/ChartingWizard.js +14 -10
  558. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +18 -13
  559. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +14 -8
  560. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -1
  561. package/src/View/Charting/ChartingWizard/index.js +4 -1
  562. package/src/View/Charting/DeleteChartButton.js +11 -6
  563. package/src/View/Charting/EditChartButton.js +13 -8
  564. package/src/View/Charting/ShowChartButton.js +26 -21
  565. package/src/View/Charting/useAgChartState.js +12 -7
  566. package/src/View/Charting/useChartingElements.js +36 -33
  567. package/src/View/Charting/useExternalChartState.js +12 -7
  568. package/src/View/ColumnInfo/ColumnInfo.js +38 -33
  569. package/src/View/ColumnInfo/ColumnInfoPopup.js +13 -8
  570. package/src/View/Components/AdaptableButton/index.js +13 -8
  571. package/src/View/Components/AdaptableDateInput/index.js +15 -13
  572. package/src/View/Components/AdaptableIconComponent/index.js +11 -6
  573. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +7 -3
  574. package/src/View/Components/AdaptableIconSelector/index.js +11 -6
  575. package/src/View/Components/AdaptableInput/index.js +11 -8
  576. package/src/View/Components/AdaptableObjectCollection/index.js +11 -6
  577. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +33 -27
  578. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +47 -40
  579. package/src/View/Components/AdaptableObjectList/index.js +5 -1
  580. package/src/View/Components/AdaptableObjectRow/index.js +12 -7
  581. package/src/View/Components/Badge/index.js +11 -6
  582. package/src/View/Components/Buttons/ButtonApply.js +9 -4
  583. package/src/View/Components/Buttons/ButtonBase/index.js +10 -5
  584. package/src/View/Components/Buttons/ButtonClear.js +9 -4
  585. package/src/View/Components/Buttons/ButtonClone.js +9 -4
  586. package/src/View/Components/Buttons/ButtonClose.js +9 -4
  587. package/src/View/Components/Buttons/ButtonConfigure.js +9 -4
  588. package/src/View/Components/Buttons/ButtonDelete.js +11 -8
  589. package/src/View/Components/Buttons/ButtonEdit.js +9 -4
  590. package/src/View/Components/Buttons/ButtonExpand.js +9 -4
  591. package/src/View/Components/Buttons/ButtonExport.js +9 -4
  592. package/src/View/Components/Buttons/ButtonFunction.js +9 -4
  593. package/src/View/Components/Buttons/ButtonGeneral.js +9 -4
  594. package/src/View/Components/Buttons/ButtonInfo.js +9 -4
  595. package/src/View/Components/Buttons/ButtonInvalid.js +9 -4
  596. package/src/View/Components/Buttons/ButtonLogin.js +9 -4
  597. package/src/View/Components/Buttons/ButtonLogout.js +9 -4
  598. package/src/View/Components/Buttons/ButtonMaximise.js +9 -4
  599. package/src/View/Components/Buttons/ButtonMinimise.js +9 -4
  600. package/src/View/Components/Buttons/ButtonNew.js +9 -4
  601. package/src/View/Components/Buttons/ButtonNewPage.js +9 -4
  602. package/src/View/Components/Buttons/ButtonOpen.js +9 -4
  603. package/src/View/Components/Buttons/ButtonPause.js +9 -4
  604. package/src/View/Components/Buttons/ButtonPlay.js +10 -5
  605. package/src/View/Components/Buttons/ButtonPreviewDelete.js +7 -4
  606. package/src/View/Components/Buttons/ButtonSave.js +9 -4
  607. package/src/View/Components/Buttons/ButtonSchedule.js +9 -4
  608. package/src/View/Components/Buttons/ButtonShare.js +12 -8
  609. package/src/View/Components/Buttons/ButtonShow.js +9 -4
  610. package/src/View/Components/Buttons/ButtonShowChart.js +9 -4
  611. package/src/View/Components/Buttons/ButtonStop.js +9 -4
  612. package/src/View/Components/Buttons/ButtonUndo.js +9 -4
  613. package/src/View/Components/Buttons/ButtonUnsuspend.js +9 -4
  614. package/src/View/Components/Buttons/EntityListActionButtons.js +19 -14
  615. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +8 -4
  616. package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -1
  617. package/src/View/Components/CellPopup/index.js +14 -10
  618. package/src/View/Components/ColumnSelector/index.js +12 -7
  619. package/src/View/Components/EntityRowItem.js +7 -2
  620. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +23 -18
  621. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +32 -27
  622. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +5 -1
  623. package/src/View/Components/EntityRulesEditor/Utilities.js +5 -1
  624. package/src/View/Components/EntityRulesEditor/index.js +42 -45
  625. package/src/View/Components/ExpressionWizard.js +22 -17
  626. package/src/View/Components/ExternalRenderer.js +10 -6
  627. package/src/View/Components/FilterForm/FilterForm.js +63 -51
  628. package/src/View/Components/FilterForm/ListBoxFilterForm.js +36 -33
  629. package/src/View/Components/FilterForm/ListBoxMenu.js +13 -8
  630. package/src/View/Components/FilterForm/QuickFilterForm.js +49 -43
  631. package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
  632. package/src/View/Components/FilterForm/QuickFilterValues.js +32 -26
  633. package/src/View/Components/FilterForm/Waiting.js +14 -10
  634. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +5 -1
  635. package/src/View/Components/Forms/AdaptableFormControlTextClear.js +14 -10
  636. package/src/View/Components/ListBox/DualListBoxEditor.js +58 -53
  637. package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +15 -10
  638. package/src/View/Components/ModuleProfile.js +9 -4
  639. package/src/View/Components/ModuleSummary/ModuleDetail.js +11 -6
  640. package/src/View/Components/ModuleSummary/ModuleHeader.js +13 -8
  641. package/src/View/Components/ModuleSummary/SummaryRowItem.js +9 -4
  642. package/src/View/Components/ModuleValueSelector/index.js +19 -15
  643. package/src/View/Components/NewScopeComponent.js +52 -45
  644. package/src/View/Components/Panels/FilterFormPanel.js +27 -22
  645. package/src/View/Components/Panels/PanelDashboard/index.js +9 -4
  646. package/src/View/Components/Panels/PanelFooter.js +13 -8
  647. package/src/View/Components/Panels/PanelToolPanel/index.js +20 -16
  648. package/src/View/Components/Panels/PanelWithButton.js +21 -16
  649. package/src/View/Components/Panels/PanelWithImage.js +20 -16
  650. package/src/View/Components/Panels/PanelWithRow.js +12 -7
  651. package/src/View/Components/Panels/PanelWithTwoButtons.js +12 -7
  652. package/src/View/Components/Panels/ToolPanelSettingsPanel.js +11 -6
  653. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +20 -15
  654. package/src/View/Components/PermittedValuesSelector/index.js +5 -1
  655. package/src/View/Components/Popups/AdaptableLoadingScreen.js +11 -6
  656. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +31 -26
  657. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +12 -7
  658. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +25 -21
  659. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +29 -24
  660. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -4
  661. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +16 -11
  662. package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +8 -3
  663. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +17 -12
  664. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +17 -12
  665. package/src/View/Components/Popups/AdaptablePopup/index.js +5 -1
  666. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +15 -10
  667. package/src/View/Components/Popups/AdaptablePopupAlert.js +27 -22
  668. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +30 -25
  669. package/src/View/Components/Popups/AdaptablePopupPrompt.js +23 -18
  670. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +31 -26
  671. package/src/View/Components/Popups/AdaptableToaster.js +18 -13
  672. package/src/View/Components/Popups/FormPopups/FormPopups.js +25 -19
  673. package/src/View/Components/Popups/Utilities.js +17 -10
  674. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +27 -23
  675. package/src/View/Components/Popups/WindowPopups/windowFactory.js +16 -13
  676. package/src/View/Components/PredicateEditor/PredicateEditor.js +26 -21
  677. package/src/View/Components/PreviewResultsPanel.js +18 -13
  678. package/src/View/Components/RangesComponent.js +56 -51
  679. package/src/View/Components/ScopeComponent.js +28 -23
  680. package/src/View/Components/Selectors/ColumnSelector.js +11 -6
  681. package/src/View/Components/Selectors/ColumnSelectorOld.js +18 -13
  682. package/src/View/Components/Selectors/ColumnValueSelector.js +20 -15
  683. package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
  684. package/src/View/Components/Selectors/PermittedValuesSelector.js +37 -10
  685. package/src/View/Components/SharedProps/BaseProps.js +2 -1
  686. package/src/View/Components/SharedProps/ConfigEntityRowProps.js +2 -1
  687. package/src/View/Components/SharedProps/EditableConfigEntityState.js +5 -2
  688. package/src/View/Components/SharedProps/ModuleSummaryProps.js +2 -1
  689. package/src/View/Components/SharedProps/ModuleViewPopupProps.js +2 -1
  690. package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +2 -1
  691. package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +2 -1
  692. package/src/View/Components/SharedProps/ViewPanelProps.js +2 -1
  693. package/src/View/Components/SharedProps/WizardScopeState.js +2 -1
  694. package/src/View/Components/StyleComponent.js +69 -64
  695. package/src/View/Components/StyleVisualItem.js +14 -9
  696. package/src/View/Components/TagValueSelector/index.js +15 -9
  697. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +44 -39
  698. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +18 -13
  699. package/src/View/Components/ToolPanel/ToolPanelPopup.js +28 -24
  700. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +21 -16
  701. package/src/View/Components/ValueSelector/index.js +53 -47
  702. package/src/View/Components/WizardSummaryPage.js +12 -7
  703. package/src/View/Components/WizardSummaryRow.js +11 -6
  704. package/src/View/CustomSort/CustomSortSummary.js +37 -32
  705. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +24 -17
  706. package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +9 -4
  707. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +36 -29
  708. package/src/View/CustomSort/Wizard/CustomSortWizard.js +36 -31
  709. package/src/View/Dashboard/CustomDashboardButton.js +12 -7
  710. package/src/View/Dashboard/CustomToolbar.js +25 -19
  711. package/src/View/Dashboard/Dashboard.js +42 -38
  712. package/src/View/Dashboard/DashboardPopup.js +33 -29
  713. package/src/View/Dashboard/DashboardToolbarFactory.js +18 -13
  714. package/src/View/Dashboard/DashboardViewPanel.js +14 -10
  715. package/src/View/Dashboard/ModuleToolbarWrapper.js +13 -8
  716. package/src/View/Dashboard/PinnedDashboard.js +17 -12
  717. package/src/View/Dashboard/PinnedToolbarsSelector.js +16 -11
  718. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +20 -15
  719. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +38 -34
  720. package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -4
  721. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +41 -36
  722. package/src/View/DataChangeHistory/buildActionColumnButton.js +5 -1
  723. package/src/View/DataImport/DataImportPopup.js +17 -12
  724. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +30 -25
  725. package/src/View/DataImport/DataImportWizard/index.js +4 -1
  726. package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +34 -29
  727. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +26 -21
  728. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +23 -18
  729. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +10 -5
  730. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +22 -17
  731. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +11 -6
  732. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -1
  733. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +23 -18
  734. package/src/View/DataImport/systemFileHandlers.js +9 -5
  735. package/src/View/DataSet/DataSetSelector.js +11 -6
  736. package/src/View/DataSet/DataSetStatusPanelPopover.js +11 -6
  737. package/src/View/DataSet/DataSetViewPanel.js +16 -12
  738. package/src/View/Export/ExportSelector.js +27 -24
  739. package/src/View/Export/ExportTablePopup.js +12 -7
  740. package/src/View/Export/ExportViewPanel.d.ts +4 -4
  741. package/src/View/Export/ExportViewPanel.js +45 -46
  742. package/src/View/Export/ReportExportDropdown.js +21 -16
  743. package/src/View/Export/Wizard/NewReportWizard.js +37 -32
  744. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +19 -14
  745. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +35 -28
  746. package/src/View/Export/Wizard/ReportNameWizardSection.js +28 -21
  747. package/src/View/Export/Wizard/ReportRowTypeWizard.js +19 -14
  748. package/src/View/Export/Wizard/ReportRowsWizardSection.js +37 -30
  749. package/src/View/Export/Wizard/ReportScopeWizard.js +14 -9
  750. package/src/View/Export/Wizard/ReportSettingsWizard.js +23 -18
  751. package/src/View/Export/Wizard/ReportSummaryWizard.js +9 -4
  752. package/src/View/Export/constants.js +5 -2
  753. package/src/View/Filter/ActiveFiltersPanel.js +12 -7
  754. package/src/View/Filter/FilterStatusBarSubPanelPopover.js +9 -4
  755. package/src/View/Filter/FilterSummary.js +23 -18
  756. package/src/View/Filter/FilterViewPanel.js +24 -20
  757. package/src/View/FlashingCell/FlashingCellStyle.js +14 -10
  758. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +20 -14
  759. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +13 -8
  760. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +42 -36
  761. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +34 -28
  762. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +49 -44
  763. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +7 -3
  764. package/src/View/FormatColumn/FormatColumnSummary.js +32 -27
  765. package/src/View/FormatColumn/MoveFormatColumn.js +15 -10
  766. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +161 -153
  767. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +11 -6
  768. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +16 -10
  769. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +36 -30
  770. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +25 -17
  771. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +53 -48
  772. package/src/View/FormatColumn/Wizard/constants.js +4 -1
  773. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +32 -27
  774. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +59 -52
  775. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +31 -26
  776. package/src/View/GridFilter/GridFilterExpressionEditor.js +35 -30
  777. package/src/View/GridFilter/GridFilterPopup.js +41 -34
  778. package/src/View/GridFilter/GridFilterStatusbar.js +10 -5
  779. package/src/View/GridFilter/GridFilterViewPanel.js +40 -34
  780. package/src/View/GridFilter/GridFilterWindowPopup.js +9 -4
  781. package/src/View/GridFilter/NamedQuerySelector.js +37 -31
  782. package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +2 -0
  783. package/src/View/GridFilter/useGridFilterExpressionEditor.js +37 -24
  784. package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +12 -26
  785. package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +16 -11
  786. package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +25 -20
  787. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +37 -32
  788. package/src/View/GridInfo/GridInfoPopup/index.js +4 -1
  789. package/src/View/KeyHint.js +9 -4
  790. package/src/View/Layout/EditCurrentLayoutButton.js +11 -6
  791. package/src/View/Layout/LayoutCloneButton.js +11 -6
  792. package/src/View/Layout/LayoutRadioSelector.js +11 -6
  793. package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +1 -1
  794. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +20 -10
  795. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  796. package/src/View/Layout/LayoutViewPanel.js +30 -26
  797. package/src/View/Layout/PivotDetailsPopoup.js +12 -7
  798. package/src/View/Layout/SaveLayoutButton.js +17 -12
  799. package/src/View/Layout/Wizard/Components/ColumnLabels.js +15 -11
  800. package/src/View/Layout/Wizard/LayoutWizard.js +56 -51
  801. package/src/View/Layout/Wizard/sections/AggregationsSection.js +44 -37
  802. package/src/View/Layout/Wizard/sections/ColumnsSection.js +68 -62
  803. package/src/View/Layout/Wizard/sections/FilterSection.js +37 -30
  804. package/src/View/Layout/Wizard/sections/GridFilterSection.js +33 -26
  805. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +27 -21
  806. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +33 -27
  807. package/src/View/Layout/Wizard/sections/SettingsSection.js +35 -29
  808. package/src/View/Layout/Wizard/sections/SortSection.js +32 -26
  809. package/src/View/Layout/Wizard/sections/Utilities.js +5 -1
  810. package/src/View/License/LicenseWatermark.js +1 -61
  811. package/src/View/License/index.js +5 -1
  812. package/src/View/NamedQuery/EditCurrentQueryButton.js +12 -7
  813. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +24 -17
  814. package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +28 -21
  815. package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +33 -28
  816. package/src/View/Notes/NotesListing.js +19 -14
  817. package/src/View/Notes/NotesPopup.js +24 -19
  818. package/src/View/PlusMinus/PlusMinusSummary.js +31 -26
  819. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +18 -12
  820. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +11 -6
  821. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +39 -32
  822. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +31 -26
  823. package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +18 -13
  824. package/src/View/QuickSearch/QuickSearchInput.js +18 -13
  825. package/src/View/QuickSearch/QuickSearchPopup.js +30 -26
  826. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +15 -10
  827. package/src/View/QuickSearch/QuickSearchViewPanel.js +9 -4
  828. package/src/View/QuickSearch/useQuickSearchDebounced.js +12 -7
  829. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +13 -8
  830. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +32 -26
  831. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +18 -13
  832. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +29 -24
  833. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +18 -13
  834. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +29 -24
  835. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +22 -17
  836. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +20 -14
  837. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +25 -20
  838. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +9 -3
  839. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +22 -17
  840. package/src/View/Schedule/Wizard/ScheduleWizard.js +52 -47
  841. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +11 -6
  842. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +50 -43
  843. package/src/View/Shortcut/Wizard/ShortcutWizard.js +37 -32
  844. package/src/View/Shortcut/shortcutKeys.js +4 -1
  845. package/src/View/Shortcut/shortcutOperations.js +9 -6
  846. package/src/View/SmartEdit/SmartEditPopup.js +30 -26
  847. package/src/View/SmartEdit/SmartEditViewPanel.js +34 -30
  848. package/src/View/SpecialColumnSettingsWizardStep.js +40 -35
  849. package/src/View/StateManagement/StateManagementPopup.js +27 -22
  850. package/src/View/StateManagement/StateManagementViewPanel.js +19 -14
  851. package/src/View/StateManagement/components/ClearButton.js +9 -4
  852. package/src/View/StateManagement/components/ExportDropdown.js +12 -7
  853. package/src/View/StateManagement/components/LoadButton.js +11 -6
  854. package/src/View/StateManagement/handleExportState.js +9 -4
  855. package/src/View/StatusBar/AdaptableStatusBar.js +19 -14
  856. package/src/View/StatusBar/StatusBarPanel.js +16 -12
  857. package/src/View/StatusBar/StatusBarPopup.js +19 -14
  858. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +60 -61
  859. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +142 -137
  860. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +49 -44
  861. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +24 -17
  862. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +27 -21
  863. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +14 -9
  864. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +12 -7
  865. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +12 -7
  866. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +19 -14
  867. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +56 -49
  868. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -1
  869. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +29 -23
  870. package/src/View/SystemStatus/SystemStatusEntityRow.js +17 -12
  871. package/src/View/SystemStatus/SystemStatusPopup.js +22 -18
  872. package/src/View/SystemStatus/SystemStatusStatusBarContent.js +13 -8
  873. package/src/View/SystemStatus/SystemStatusViewPanel.js +12 -8
  874. package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +9 -4
  875. package/src/View/TeamSharing/SharedEntityDependencies.js +18 -12
  876. package/src/View/TeamSharing/SharedEntityObjectView.js +30 -23
  877. package/src/View/TeamSharing/TeamSharingApplyButton.js +11 -6
  878. package/src/View/Theme/ThemeEditor.js +32 -27
  879. package/src/View/Theme/ThemeEditorWindow.js +13 -8
  880. package/src/View/Theme/ThemeField.js +23 -18
  881. package/src/View/Theme/ThemePopup.js +28 -39
  882. package/src/View/Theme/ThemeSelector.d.ts +5 -0
  883. package/src/View/Theme/ThemeSelector.js +34 -0
  884. package/src/View/Theme/ThemeStatusbar.d.ts +2 -0
  885. package/src/View/Theme/ThemeStatusbar.js +14 -0
  886. package/src/View/Theme/ThemeViewPanel.d.ts +2 -13
  887. package/src/View/Theme/ThemeViewPanel.js +14 -56
  888. package/src/View/Theme/VariantSelector.js +13 -8
  889. package/src/View/UIHelper.js +152 -120
  890. package/src/View/UIInterfaces.js +2 -1
  891. package/src/View/Wizard/AdaptableWizard.js +30 -24
  892. package/src/View/Wizard/Interface/IAdaptableWizard.js +2 -1
  893. package/src/View/Wizard/ObjectTagsWizardSection.js +20 -14
  894. package/src/View/Wizard/OnePageAdaptableWizard.js +42 -32
  895. package/src/View/Wizard/OnePageWizards.js +59 -50
  896. package/src/View/Wizard/TypeRadio.js +12 -7
  897. package/src/View/Wizard/WizardLegend.js +11 -6
  898. package/src/View/Wizard/useKeyboardNavigation.js +9 -4
  899. package/src/View/renderWithAdaptableContext.js +14 -9
  900. package/src/agGrid/ActionColumnRenderer.js +15 -9
  901. package/src/agGrid/Adaptable.d.ts +9 -6
  902. package/src/agGrid/Adaptable.js +264 -273
  903. package/src/agGrid/AdaptableLogger.js +5 -1
  904. package/src/agGrid/BadgeRenderer.js +11 -6
  905. package/src/agGrid/CheckboxRenderer.js +7 -2
  906. package/src/agGrid/ColumnSetupInfo.js +2 -1
  907. package/src/agGrid/FilterWrapper.js +14 -9
  908. package/src/agGrid/FloatingFilterWrapper.js +13 -8
  909. package/src/agGrid/PercentBarRenderer.js +10 -5
  910. package/src/agGrid/agGridHelper.d.ts +2 -1
  911. package/src/agGrid/agGridHelper.js +117 -102
  912. package/src/agGrid/agGridMenuHelper.js +35 -30
  913. package/src/agGrid/attachAddaptableColumnTypes.js +8 -4
  914. package/src/agGrid/createAgStatusPanelComponent.js +10 -5
  915. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +16 -12
  916. package/src/agGrid/editors/AdaptableDateEditor/index.js +24 -19
  917. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +10 -6
  918. package/src/agGrid/editors/AdaptableNumberEditor/index.js +21 -16
  919. package/src/agGrid/index.js +11 -6
  920. package/src/agGrid/weightedAverage.js +17 -10
  921. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +31 -25
  922. package/src/components/AdaptableFormComponent/index.js +4 -1
  923. package/src/components/CheckBox/index.js +17 -13
  924. package/src/components/CodeBlock/index.js +11 -6
  925. package/src/components/ColorPicker/ColorPicker.js +18 -15
  926. package/src/components/ColorPicker/index.js +4 -1
  927. package/src/components/ContainerProps.js +2 -1
  928. package/src/components/Dashboard/Dashboard.js +22 -17
  929. package/src/components/Dashboard/DashboardManager.js +7 -4
  930. package/src/components/Dashboard/DashboardTab.js +5 -1
  931. package/src/components/Dashboard/DashboardToolbar.js +14 -9
  932. package/src/components/Dashboard/index.js +6 -3
  933. package/src/components/Datepicker/Caption.js +20 -15
  934. package/src/components/Datepicker/CaptionLabel.js +21 -16
  935. package/src/components/Datepicker/DatepickerContext.js +9 -4
  936. package/src/components/Datepicker/index.js +42 -39
  937. package/src/components/Dialog/index.js +32 -29
  938. package/src/components/Dialog/useIsOpen.js +6 -3
  939. package/src/components/DragAndDropContext/DragAndDropContext.js +6 -2
  940. package/src/components/DragAndDropContext/ModuleManager.js +18 -13
  941. package/src/components/DragAndDropContext/TabList.js +27 -19
  942. package/src/components/DragAndDropContext/UnusedPanel.js +15 -10
  943. package/src/components/DragAndDropContext/types.js +2 -1
  944. package/src/components/Drawer/index.js +7 -2
  945. package/src/components/Dropdown/Arrows.js +8 -5
  946. package/src/components/Dropdown/index.js +20 -18
  947. package/src/components/DropdownButton/DropdownButtonItem.js +2 -1
  948. package/src/components/DropdownButton/index.js +26 -23
  949. package/src/components/DropdownButton/renderItem.js +7 -4
  950. package/src/components/DropdownButton/useExpanded.js +12 -9
  951. package/src/components/EllipsisContainer/index.js +21 -17
  952. package/src/components/EmptyContent/index.js +10 -8
  953. package/src/components/ErrorBox/index.js +10 -6
  954. package/src/components/ExpressionEditor/BaseEditorInput.js +60 -55
  955. package/src/components/ExpressionEditor/EditorButton.js +10 -8
  956. package/src/components/ExpressionEditor/EditorContext.js +8 -4
  957. package/src/components/ExpressionEditor/EditorInput.js +25 -22
  958. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +27 -24
  959. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +15 -10
  960. package/src/components/ExpressionEditor/NamedQueryContext.js +8 -4
  961. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +42 -36
  962. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
  963. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +60 -41
  964. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +71 -54
  965. package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +5 -1
  966. package/src/components/ExpressionEditor/QueryBuilder/index.js +4 -1
  967. package/src/components/ExpressionEditor/QueryBuilder/utils.js +27 -18
  968. package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +4 -1
  969. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +4 -1
  970. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +4 -1
  971. package/src/components/ExpressionEditor/editorButtonsObservable.js +4 -1
  972. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +4 -1
  973. package/src/components/ExpressionEditor/editorButtonsSearch.js +4 -1
  974. package/src/components/ExpressionEditor/index.js +99 -97
  975. package/src/components/FieldWrap/index.js +8 -5
  976. package/src/components/FileDroppable/FileDroppableState.js +2 -1
  977. package/src/components/FileDroppable/index.js +33 -29
  978. package/src/components/FileDroppable/reducer.js +6 -3
  979. package/src/components/FlexWithFooter.js +11 -9
  980. package/src/components/FormLayout/index.js +17 -13
  981. package/src/components/HelpBlock/index.js +10 -6
  982. package/src/components/Icon/index.js +29 -20
  983. package/src/components/IconSelector/IconSelector.js +32 -27
  984. package/src/components/IconSelector/index.js +4 -1
  985. package/src/components/InfiniteTable/index.js +10 -6
  986. package/src/components/Input/NumberInput.js +9 -4
  987. package/src/components/Input/index.js +11 -8
  988. package/src/components/InputGroup/InputGroup.d.ts +7 -0
  989. package/src/components/InputGroup/InputGroup.js +12 -0
  990. package/src/components/InputGroup/index.d.ts +1 -0
  991. package/src/components/InputGroup/index.js +4 -0
  992. package/src/components/List/GridList/index.js +10 -7
  993. package/src/components/List/ListGroup/index.js +9 -7
  994. package/src/components/List/ListGroupItem/index.js +10 -8
  995. package/src/components/Loader/Loader.js +10 -4
  996. package/src/components/Loader/index.js +7 -2
  997. package/src/components/Logo/index.js +7 -2
  998. package/src/components/Modal/Backdrop.js +17 -12
  999. package/src/components/Modal/index.js +23 -19
  1000. package/src/components/NotifyResize/index.js +7 -4
  1001. package/src/components/OverlayTrigger/Overlay.js +23 -19
  1002. package/src/components/OverlayTrigger/index.js +53 -43
  1003. package/src/components/OverlayTrigger/useAgGridClassName.js +7 -5
  1004. package/src/components/OverlayTrigger/utils.js +9 -3
  1005. package/src/components/Panel/index.js +15 -12
  1006. package/src/components/PopupWithFooter.js +11 -8
  1007. package/src/components/ProgressIndicator/ProgressIndicator.js +17 -12
  1008. package/src/components/Radio/index.js +20 -15
  1009. package/src/components/ResizeObserver/getResizeObserverObject.js +5 -1
  1010. package/src/components/ResizeObserver/index.js +24 -17
  1011. package/src/components/Select/Select.d.ts +1 -1
  1012. package/src/components/Select/Select.js +65 -32
  1013. package/src/components/Select/index.js +4 -1
  1014. package/src/components/SelectList.js +9 -4
  1015. package/src/components/SelectableList/index.js +13 -8
  1016. package/src/components/SimpleButton/index.js +22 -19
  1017. package/src/components/SizedContainer/index.js +11 -9
  1018. package/src/components/StylePreview.js +11 -6
  1019. package/src/components/Table/index.js +7 -4
  1020. package/src/components/Tabs/index.js +34 -28
  1021. package/src/components/Tag/Tag.js +9 -5
  1022. package/src/components/Tag/index.js +5 -1
  1023. package/src/components/Textarea/index.js +11 -8
  1024. package/src/components/Toastify/index.js +10 -1
  1025. package/src/components/Toggle/Toggle.js +12 -8
  1026. package/src/components/Toggle/ToggleGroup.js +9 -4
  1027. package/src/components/Toggle/index.js +5 -2
  1028. package/src/components/ToggleButton/index.js +11 -6
  1029. package/src/components/Tooltip/index.js +7 -4
  1030. package/src/components/WarningBox/index.js +11 -6
  1031. package/src/components/WindowModal/WindowModal.js +17 -12
  1032. package/src/components/WindowModal/index.js +4 -1
  1033. package/src/components/WindowModal/useStacking.js +9 -4
  1034. package/src/components/WizardPanel/index.js +8 -5
  1035. package/src/components/icons/DefaultIcon.js +12 -8
  1036. package/src/components/icons/add-row.js +6 -3
  1037. package/src/components/icons/alert.js +6 -3
  1038. package/src/components/icons/align-center.js +6 -3
  1039. package/src/components/icons/align-justify.js +6 -3
  1040. package/src/components/icons/align-left.js +6 -3
  1041. package/src/components/icons/align-right.js +6 -3
  1042. package/src/components/icons/analysis.js +6 -3
  1043. package/src/components/icons/application.js +6 -3
  1044. package/src/components/icons/arrow-down-long.js +6 -3
  1045. package/src/components/icons/arrow-down.js +6 -3
  1046. package/src/components/icons/arrow-expand.js +6 -3
  1047. package/src/components/icons/arrow-left.js +6 -3
  1048. package/src/components/icons/arrow-right.js +6 -3
  1049. package/src/components/icons/arrow-up-long.js +6 -3
  1050. package/src/components/icons/arrow-up.js +6 -3
  1051. package/src/components/icons/attach-file.js +6 -3
  1052. package/src/components/icons/badge.js +6 -3
  1053. package/src/components/icons/blanks.js +6 -3
  1054. package/src/components/icons/bold.js +6 -3
  1055. package/src/components/icons/boolean-list.js +6 -3
  1056. package/src/components/icons/brush.js +6 -3
  1057. package/src/components/icons/build.js +6 -3
  1058. package/src/components/icons/bulk-update.js +6 -3
  1059. package/src/components/icons/calculated-column.js +6 -3
  1060. package/src/components/icons/calendar.js +6 -3
  1061. package/src/components/icons/call.js +6 -3
  1062. package/src/components/icons/campaign.js +6 -3
  1063. package/src/components/icons/case-lower.js +6 -3
  1064. package/src/components/icons/case-sentence.js +6 -3
  1065. package/src/components/icons/case-upper.js +6 -3
  1066. package/src/components/icons/cell-summary.js +6 -3
  1067. package/src/components/icons/cell-validation.js +6 -3
  1068. package/src/components/icons/chart.js +6 -3
  1069. package/src/components/icons/chat.js +6 -3
  1070. package/src/components/icons/check-box-outline.js +6 -3
  1071. package/src/components/icons/check-box.js +6 -3
  1072. package/src/components/icons/check-circle.js +6 -3
  1073. package/src/components/icons/check.js +6 -3
  1074. package/src/components/icons/clone.js +6 -3
  1075. package/src/components/icons/close.js +6 -3
  1076. package/src/components/icons/cloud-upload.js +6 -3
  1077. package/src/components/icons/collapse.js +6 -3
  1078. package/src/components/icons/column-add.js +6 -3
  1079. package/src/components/icons/column-chooser.js +6 -3
  1080. package/src/components/icons/column-filter.js +6 -3
  1081. package/src/components/icons/column-info.js +6 -3
  1082. package/src/components/icons/comment.js +6 -3
  1083. package/src/components/icons/contact.js +6 -3
  1084. package/src/components/icons/contains.js +6 -3
  1085. package/src/components/icons/custom-sort.js +6 -3
  1086. package/src/components/icons/dashboard.js +6 -3
  1087. package/src/components/icons/data-set.js +6 -3
  1088. package/src/components/icons/date-range.js +6 -3
  1089. package/src/components/icons/delete.js +6 -3
  1090. package/src/components/icons/division.js +6 -3
  1091. package/src/components/icons/dock.js +6 -3
  1092. package/src/components/icons/dollar.js +6 -3
  1093. package/src/components/icons/drag.js +6 -3
  1094. package/src/components/icons/edit.js +6 -3
  1095. package/src/components/icons/ends-with.js +6 -3
  1096. package/src/components/icons/equal.js +6 -3
  1097. package/src/components/icons/equation.js +6 -3
  1098. package/src/components/icons/error.js +6 -3
  1099. package/src/components/icons/expand.js +6 -3
  1100. package/src/components/icons/exponent.js +6 -3
  1101. package/src/components/icons/export.js +6 -3
  1102. package/src/components/icons/fast-backward.js +6 -3
  1103. package/src/components/icons/fast-forward.js +6 -3
  1104. package/src/components/icons/fdc3.js +6 -3
  1105. package/src/components/icons/filter.js +6 -3
  1106. package/src/components/icons/flashing-cell.js +6 -3
  1107. package/src/components/icons/folder-open.js +6 -3
  1108. package/src/components/icons/folder-shared.js +6 -3
  1109. package/src/components/icons/folder.js +6 -3
  1110. package/src/components/icons/format-column.js +6 -3
  1111. package/src/components/icons/freetext-column.js +6 -3
  1112. package/src/components/icons/function.js +6 -3
  1113. package/src/components/icons/gradient-column.js +6 -3
  1114. package/src/components/icons/gradient.js +6 -3
  1115. package/src/components/icons/greater-than-or-equal.js +6 -3
  1116. package/src/components/icons/greater-than.js +6 -3
  1117. package/src/components/icons/grid-filter.js +6 -3
  1118. package/src/components/icons/hide-column.js +6 -3
  1119. package/src/components/icons/history.js +6 -3
  1120. package/src/components/icons/home.js +6 -3
  1121. package/src/components/icons/import-export.js +6 -3
  1122. package/src/components/icons/import.js +6 -3
  1123. package/src/components/icons/index.js +326 -321
  1124. package/src/components/icons/info.js +6 -3
  1125. package/src/components/icons/instrument.js +6 -3
  1126. package/src/components/icons/interactions.js +6 -3
  1127. package/src/components/icons/invalid.js +6 -3
  1128. package/src/components/icons/ipushpull.js +6 -3
  1129. package/src/components/icons/italic.js +6 -3
  1130. package/src/components/icons/justify.js +6 -3
  1131. package/src/components/icons/layout.js +6 -3
  1132. package/src/components/icons/less-than-or-equal.js +6 -3
  1133. package/src/components/icons/less-than.js +6 -3
  1134. package/src/components/icons/list.js +6 -3
  1135. package/src/components/icons/login.js +6 -3
  1136. package/src/components/icons/logout copy.js +6 -3
  1137. package/src/components/icons/logout.js +6 -3
  1138. package/src/components/icons/mail.js +6 -3
  1139. package/src/components/icons/menu.js +6 -3
  1140. package/src/components/icons/minus.js +6 -3
  1141. package/src/components/icons/money.js +6 -3
  1142. package/src/components/icons/multiplication.js +6 -3
  1143. package/src/components/icons/newpage.js +6 -3
  1144. package/src/components/icons/news.js +6 -3
  1145. package/src/components/icons/non-blanks.js +6 -3
  1146. package/src/components/icons/not-contains.js +6 -3
  1147. package/src/components/icons/not-equal.js +6 -3
  1148. package/src/components/icons/note.js +6 -3
  1149. package/src/components/icons/open-in-new.js +6 -3
  1150. package/src/components/icons/order.js +6 -3
  1151. package/src/components/icons/organisation.js +6 -3
  1152. package/src/components/icons/overline.js +6 -3
  1153. package/src/components/icons/pause.js +6 -3
  1154. package/src/components/icons/percent-bar.js +6 -3
  1155. package/src/components/icons/percent.js +6 -3
  1156. package/src/components/icons/person.js +6 -3
  1157. package/src/components/icons/pie-chart.js +6 -3
  1158. package/src/components/icons/play.js +6 -3
  1159. package/src/components/icons/plus-minus.js +6 -3
  1160. package/src/components/icons/plus.js +6 -3
  1161. package/src/components/icons/query.js +6 -3
  1162. package/src/components/icons/quick-search.js +6 -3
  1163. package/src/components/icons/quote.js +6 -3
  1164. package/src/components/icons/refresh.js +6 -3
  1165. package/src/components/icons/regex.js +6 -3
  1166. package/src/components/icons/reminder.js +6 -3
  1167. package/src/components/icons/resume.js +6 -3
  1168. package/src/components/icons/save.js +6 -3
  1169. package/src/components/icons/schedule.js +6 -3
  1170. package/src/components/icons/science.js +6 -3
  1171. package/src/components/icons/settings.js +6 -3
  1172. package/src/components/icons/shortcut.js +6 -3
  1173. package/src/components/icons/show-column.js +6 -3
  1174. package/src/components/icons/smart-edit.js +6 -3
  1175. package/src/components/icons/sort-asc.js +6 -3
  1176. package/src/components/icons/sort-desc.js +6 -3
  1177. package/src/components/icons/spark-line.js +6 -3
  1178. package/src/components/icons/starts-with.js +6 -3
  1179. package/src/components/icons/state-management.js +6 -3
  1180. package/src/components/icons/statusbar.js +6 -3
  1181. package/src/components/icons/stop.js +6 -3
  1182. package/src/components/icons/strikethrough.js +6 -3
  1183. package/src/components/icons/system-status.js +6 -3
  1184. package/src/components/icons/tab-unselected.js +6 -3
  1185. package/src/components/icons/table-arrow-right.js +6 -3
  1186. package/src/components/icons/team-share.js +6 -3
  1187. package/src/components/icons/theme.js +6 -3
  1188. package/src/components/icons/tool-panel.js +6 -3
  1189. package/src/components/icons/track-changes.js +6 -3
  1190. package/src/components/icons/triangle-down.js +6 -3
  1191. package/src/components/icons/triangle-up.js +6 -3
  1192. package/src/components/icons/unchecked.js +6 -3
  1193. package/src/components/icons/underline.js +6 -3
  1194. package/src/components/icons/undo.js +6 -3
  1195. package/src/components/icons/updated-row.js +6 -3
  1196. package/src/components/icons/upload.js +6 -3
  1197. package/src/components/icons/user-filter.js +6 -3
  1198. package/src/components/icons/visibility-off.js +6 -3
  1199. package/src/components/icons/visibility.js +6 -3
  1200. package/src/components/icons/warning.js +6 -3
  1201. package/src/components/utils/batchUpdate.js +5 -3
  1202. package/src/components/utils/captureTabNavigation/getFocusableChildren.js +3 -1
  1203. package/src/components/utils/captureTabNavigation/index.js +6 -3
  1204. package/src/components/utils/contains.js +4 -1
  1205. package/src/components/utils/getAvailableSizeInfo.js +3 -1
  1206. package/src/components/utils/join.js +3 -1
  1207. package/src/components/utils/selectParent/index.js +6 -3
  1208. package/src/components/utils/selectParent/matches.js +2 -1
  1209. package/src/components/utils/useAutoFocus.js +8 -5
  1210. package/src/components/utils/useContainerScrollObserver/index.js +13 -9
  1211. package/src/components/utils/useDraggable.js +10 -7
  1212. package/src/components/utils/useGlobalEvent.js +7 -2
  1213. package/src/components/utils/useLatest.js +8 -4
  1214. package/src/components/utils/usePrevious.js +6 -4
  1215. package/src/components/utils/usePropState.js +6 -3
  1216. package/src/components/utils/useProperty.js +6 -4
  1217. package/src/components/utils/useRerender.js +8 -4
  1218. package/src/components/utils/useSelectionRange.js +9 -5
  1219. package/src/components/utils/useTheme.js +5 -2
  1220. package/src/components/utils/uuid.js +6 -2
  1221. package/src/env.js +3 -1
  1222. package/src/metamodel/adaptable-metamodel-model.js +2 -1
  1223. package/src/metamodel/adaptable.metamodel.d.ts +35 -28
  1224. package/src/metamodel/adaptable.metamodel.js +1 -9435
  1225. package/src/parser/src/ExpressionEvaluationError.js +5 -1
  1226. package/src/parser/src/evaluator.js +7 -3
  1227. package/src/parser/src/index.js +18 -9
  1228. package/src/parser/src/predicate/index.js +5 -2
  1229. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +19 -13
  1230. package/src/parser/src/predicate/mapQlPredicateToExpression.js +23 -6
  1231. package/src/parser/src/predicate/types.d.ts +1 -1
  1232. package/src/parser/src/predicate/types.js +5 -1
  1233. package/src/parser/src/tokenizer.js +8 -3
  1234. package/src/parser/src/types.d.ts +1 -1
  1235. package/src/parser/src/types.js +5 -1
  1236. package/src/parser/src/utils.js +9 -3
  1237. package/src/renderReactRoot.js +22 -2
  1238. package/src/theme.js +3 -1
  1239. package/src/themes/index.js +7 -4
  1240. package/src/types.d.ts +4 -3
  1241. package/src/types.js +5 -1
  1242. package/themes/dark.css +1 -1
  1243. package/themes/dark.css.map +1 -1
  1244. package/themes/light.css +1 -1
  1245. package/themes/light.css.map +1 -1
  1246. package/types.js +4 -1
  1247. package/version.d.ts +2 -0
  1248. package/version.js +3 -0
  1249. package/src/Api/Events/SelectionChanged.d.ts +0 -16
  1250. package/src/Api/Events/SelectionChanged.js +0 -1
  1251. package/src/View/Theme/ThemeStatusPanelPopover.d.ts +0 -2
  1252. package/src/View/Theme/ThemeStatusPanelPopover.js +0 -20
  1253. package/tsconfig.esm.tsbuildinfo +0 -1
@@ -1,52 +1,53 @@
1
- import * as React from 'react';
2
- import { useState, useRef } from 'react';
3
- import { Box, Flex, Text } from 'rebass';
4
- import { CheckBox } from '../CheckBox';
5
- import FormLayout, { FormRow } from '../FormLayout';
6
- import HelpBlock from '../HelpBlock';
7
- import Input from '../Input';
8
- import EditorButton from './EditorButton';
9
- import AdaptableInput from '../../View/Components/AdaptableInput';
10
- import Radio from '../Radio';
11
- import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
12
- import EditorInputWithWhereClause from './EditorInputWithWhereClause';
13
- import EditorInput from './EditorInput';
14
- import { ExpressionEditorContext } from './EditorContext';
15
- import { ExpressionFunctionDocumentation } from './ExpressionFunctionDocumentation';
16
- import { AggregatedBooleanQueryDocsLink, AggregatedScalarQueryDocsLink, BooleanQueryDocsLink, CumulativeAggregatedScalarQueryDocsLink, ObservableQueryDocsLink, QuantileAggregatedScalarQueryDocsLink, ScalarQueryDocsLink, } from '../../Utilities/Constants/DocumentationLinkConstants';
17
- import StringExtensions from '../../Utilities/Extensions/StringExtensions';
18
- import { ButtonInfo } from '../../View/Components/Buttons/ButtonInfo';
19
- import { CodeBlock } from '../CodeBlock';
20
- import { useNamedQueryContext } from './NamedQueryContext';
21
- import { NamedQueryModuleId } from '../../Utilities/Constants/ModuleConstants';
22
- import { isValueValidDate } from '../../Utilities/Helpers/DateHelper';
23
- import { AdaptableFormControlTextClear } from '../../View/Components/Forms/AdaptableFormControlTextClear';
24
- import { Tabs } from '../Tabs';
25
- import { QueryBuilder } from './QueryBuilder';
26
- export function ExpressionEditor(props) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExpressionEditor = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const react_1 = require("react");
7
+ const rebass_1 = require("rebass");
8
+ const CheckBox_1 = require("../CheckBox");
9
+ const FormLayout_1 = tslib_1.__importStar(require("../FormLayout"));
10
+ const HelpBlock_1 = tslib_1.__importDefault(require("../HelpBlock"));
11
+ const Input_1 = tslib_1.__importDefault(require("../Input"));
12
+ const EditorButton_1 = tslib_1.__importDefault(require("./EditorButton"));
13
+ const AdaptableInput_1 = tslib_1.__importDefault(require("../../View/Components/AdaptableInput"));
14
+ const Radio_1 = tslib_1.__importDefault(require("../Radio"));
15
+ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
16
+ const EditorInputWithWhereClause_1 = tslib_1.__importDefault(require("./EditorInputWithWhereClause"));
17
+ const EditorInput_1 = tslib_1.__importDefault(require("./EditorInput"));
18
+ const EditorContext_1 = require("./EditorContext");
19
+ const ExpressionFunctionDocumentation_1 = require("./ExpressionFunctionDocumentation");
20
+ const DocumentationLinkConstants_1 = require("../../Utilities/Constants/DocumentationLinkConstants");
21
+ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
22
+ const ButtonInfo_1 = require("../../View/Components/Buttons/ButtonInfo");
23
+ const CodeBlock_1 = require("../CodeBlock");
24
+ const NamedQueryContext_1 = require("./NamedQueryContext");
25
+ const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
26
+ const DateHelper_1 = require("../../Utilities/Helpers/DateHelper");
27
+ const AdaptableFormControlTextClear_1 = require("../../View/Components/Forms/AdaptableFormControlTextClear");
28
+ const Tabs_1 = require("../Tabs");
29
+ const QueryBuilder_1 = require("./QueryBuilder");
30
+ function ExpressionEditor(props) {
27
31
  var _a, _b, _c;
28
32
  const { type, module } = props;
29
- const [data, setData] = useState(props.initialData);
30
- const [showColumnIds, setShowColumnIds] = useState(false);
31
- const [showNamedQueries, setShowNamedQueries] = useState(false);
33
+ const [data, setData] = (0, react_1.useState)(props.initialData);
34
+ const [showColumnIds, setShowColumnIds] = (0, react_1.useState)(false);
35
+ const [showNamedQueries, setShowNamedQueries] = (0, react_1.useState)(false);
32
36
  const baseClassName = `ab-ExpressionEditor`;
33
- const [selectedFunction, setSelectedFunction] = useState(null);
34
- const [expressionText, setExpressionText] = useState(props.value);
35
- const { namedQuery, setNamedQuery } = useNamedQueryContext();
36
- const textAreaRef = useRef(null);
37
+ const [selectedFunction, setSelectedFunction] = (0, react_1.useState)(null);
38
+ const [expressionText, setExpressionText] = (0, react_1.useState)(props.value);
39
+ const { namedQuery, setNamedQuery } = (0, NamedQueryContext_1.useNamedQueryContext)();
40
+ const textAreaRef = (0, react_1.useRef)(null);
37
41
  const allowSaveNamedQuery = (_a = props.allowSaveNamedQuery) !== null && _a !== void 0 ? _a : type === 'boolean';
38
- const editorInput = type === 'observable' || type === 'aggregatedBoolean' ? (React.createElement(EditorInputWithWhereClause, { type: type, module: module, value: props.value, onChange: (value) => {
42
+ const editorInput = type === 'observable' || type === 'aggregatedBoolean' ? (React.createElement(EditorInputWithWhereClause_1.default, { type: type, module: module, value: props.value, onChange: (value) => {
39
43
  setExpressionText(value);
40
44
  props.onChange(value);
41
45
  }, testData: data, api: props.api })) : (
42
46
  // 'boolean','scalar','aggregatedScalar'/'cumulativeAggregatedScalar'/'quantileAggregatedScalar'
43
- (React.createElement(
44
- EditorInput,
45
- { type: type, module: module, value: props.value, onChange: (value) => {
46
- setExpressionText(value);
47
- props.onChange(value);
48
- }, testData: data, isFullExpression: props.isFullExpression, api: props.api }
49
- )));
47
+ React.createElement(EditorInput_1.default, { type: type, module: module, value: props.value, onChange: (value) => {
48
+ setExpressionText(value);
49
+ props.onChange(value);
50
+ }, testData: data, isFullExpression: props.isFullExpression, api: props.api }));
50
51
  // currently only boolean and scalar expressions support nested calculated columns (calc cols which reference other calc cols)
51
52
  const queryableColumns = type === 'scalar' || type === 'boolean' || type === 'aggregatedScalar'
52
53
  ? props.columns
@@ -62,21 +63,21 @@ export function ExpressionEditor(props) {
62
63
  };
63
64
  const getColDateValue = (column) => {
64
65
  const colValue = getColValue(column);
65
- return colValue && isValueValidDate(colValue)
66
+ return colValue && (0, DateHelper_1.isValueValidDate)(colValue)
66
67
  ? new Date(colValue).toISOString().substr(0, 10)
67
68
  : '';
68
69
  };
69
70
  const [searchInputValue, setSearchInputValue] = React.useState('');
70
71
  const dataTableEditor = (React.createElement(React.Fragment, null,
71
- React.createElement(Flex, { className: `${baseClassName}__columns-list`, flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
72
- React.createElement(CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
72
+ React.createElement(rebass_1.Flex, { className: `${baseClassName}__columns-list`, flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
73
+ React.createElement(CheckBox_1.CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
73
74
  float: 'right',
74
75
  margin: 0,
75
76
  paddingTop: 'var(--ab-space-1)',
76
77
  paddingBottom: 'var(--ab-space-1)',
77
78
  } }, 'Show Column IDs'),
78
- React.createElement(AdaptableFormControlTextClear, { value: searchInputValue, OnTextChange: setSearchInputValue, placeholder: "Filter columns...", style: { flex: 1, marginBottom: 3 } })),
79
- React.createElement(FormLayout, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-space-1)", gridRowGap: "var(--ab-space-1)", sizes: ['auto', '100px'], style: { alignItems: 'stretch' } }, queryableColumns
79
+ React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { value: searchInputValue, OnTextChange: setSearchInputValue, placeholder: "Filter columns...", style: { flex: 1, marginBottom: 3 } })),
80
+ React.createElement(FormLayout_1.default, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-space-1)", gridRowGap: "var(--ab-space-1)", sizes: ['auto', '100px'], style: { alignItems: 'stretch' } }, queryableColumns
80
81
  .filter((column) => {
81
82
  if (!searchInputValue) {
82
83
  return true;
@@ -84,34 +85,34 @@ export function ExpressionEditor(props) {
84
85
  return (column.columnId.includes(searchInputValue) ||
85
86
  column.friendlyName.includes(searchInputValue));
86
87
  })
87
- .map((column) => (React.createElement(FormRow, { key: column.columnId, label: React.createElement(EditorButton, { width: "100%", height: "100%", style: {
88
+ .map((column) => (React.createElement(FormLayout_1.FormRow, { key: column.columnId, label: React.createElement(EditorButton_1.default, { width: "100%", height: "100%", style: {
88
89
  background: 'var(--ab-color-primary)',
89
90
  cursor: 'grab',
90
91
  marginRight: 'var(--ab-space-1)',
91
92
  }, data: `[${column.columnId}]`, "data-name": "column", icon: "drag" },
92
- React.createElement(Flex, { flexDirection: "column", alignItems: "start" }, showColumnIds ? `[${column.columnId}]` : column.friendlyName)) }, column.dataType === 'Number' ? (React.createElement(Input, { type: "number", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, Number(e.target.value))), width: "100%", disabled: column.readOnly })) : column.dataType === 'String' ? (React.createElement(Input, { type: "text", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, e.target.value)), width: "100%", disabled: column.readOnly })) : column.dataType === 'Date' ? (React.createElement(AdaptableInput, { type: "date", "data-name": "column-input", "data-value": column.columnId, value: getColDateValue(column), onChange: (e) => {
93
+ React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start" }, showColumnIds ? `[${column.columnId}]` : column.friendlyName)) }, column.dataType === 'Number' ? (React.createElement(Input_1.default, { type: "number", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, Number(e.target.value))), width: "100%", disabled: column.readOnly })) : column.dataType === 'String' ? (React.createElement(Input_1.default, { type: "text", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, e.target.value)), width: "100%", disabled: column.readOnly })) : column.dataType === 'Date' ? (React.createElement(AdaptableInput_1.default, { type: "date", "data-name": "column-input", "data-value": column.columnId, value: getColDateValue(column), onChange: (e) => {
93
94
  setData(updateColValue(data, column, new Date(e.target.value)));
94
- }, style: { width: '100%' }, disabled: column.readOnly })) : column.dataType === 'Boolean' ? (React.createElement(CheckBox, { "data-name": "column-input", "data-value": column.columnId, checked: getColValue(column), onChange: (checked) => setData(updateColValue(data, column, checked)), disabled: column.readOnly })) : null))))));
95
- const namedQueries = (React.createElement(Flex, { flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
96
- React.createElement(CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
95
+ }, style: { width: '100%' }, disabled: column.readOnly })) : column.dataType === 'Boolean' ? (React.createElement(CheckBox_1.CheckBox, { "data-name": "column-input", "data-value": column.columnId, checked: getColValue(column), onChange: (checked) => setData(updateColValue(data, column, checked)), disabled: column.readOnly })) : null))))));
96
+ const namedQueries = (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
97
+ React.createElement(CheckBox_1.CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
97
98
  float: 'right',
98
99
  margin: 0,
99
100
  paddingTop: 'var(--ab-space-1)',
100
101
  paddingBottom: 'var(--ab-space-1)',
101
102
  } }, 'Show Column IDs'),
102
- props.namedQueries.map((namedQuery) => (React.createElement(Flex, { key: namedQuery.Uuid, flexDirection: "column", alignItems: "start", style: {
103
+ props.namedQueries.map((namedQuery) => (React.createElement(rebass_1.Flex, { key: namedQuery.Uuid, flexDirection: "column", alignItems: "start", style: {
103
104
  padding: 3,
104
105
  marginTop: 'var(--ab-space-2)',
105
106
  marginBottom: 'var(--ab-space-2)',
106
107
  width: '100%',
107
108
  }, backgroundColor: "primarylight" },
108
109
  ' ',
109
- React.createElement(EditorButton, { width: "100%", height: "100%", style: {
110
+ React.createElement(EditorButton_1.default, { width: "100%", height: "100%", style: {
110
111
  background: 'var(--ab-color-primary)',
111
112
  cursor: 'grab',
112
113
  }, data: `QUERY("${namedQuery.Name}")`, "data-name": "column", icon: "drag" },
113
- React.createElement(Flex, { flexDirection: "column", alignItems: "start" }, namedQuery.Name)),
114
- React.createElement(Flex, { alignItems: "start", style: {
114
+ React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start" }, namedQuery.Name)),
115
+ React.createElement(rebass_1.Flex, { alignItems: "start", style: {
115
116
  padding: 5,
116
117
  } }, showColumnIds
117
118
  ? namedQuery.BooleanExpression
@@ -123,9 +124,9 @@ export function ExpressionEditor(props) {
123
124
  const saveAsNamedQueryElement = allowSaveNamedQuery &&
124
125
  props.api.internalApi
125
126
  .getModuleService()
126
- .getModuleById(NamedQueryModuleId)
127
- .isModuleEditable() && (React.createElement(Flex, { flexDirection: "row", mb: 2, fontSize: 3 },
128
- React.createElement(CheckBox, { checked: !!namedQuery, onChange: (checked) => {
127
+ .getModuleById(ModuleConstants_1.NamedQueryModuleId)
128
+ .isModuleEditable() && (React.createElement(rebass_1.Flex, { flexDirection: "row", mb: 2, fontSize: 3 },
129
+ React.createElement(CheckBox_1.CheckBox, { checked: !!namedQuery, onChange: (checked) => {
129
130
  if (checked) {
130
131
  setNamedQuery({
131
132
  Name: '',
@@ -136,38 +137,38 @@ export function ExpressionEditor(props) {
136
137
  setNamedQuery(false);
137
138
  }
138
139
  }, mr: 2, style: { alignItems: 'center' } }, "Save as new Named Query"),
139
- namedQuery ? (React.createElement(AdaptableInput, { style: { flex: 1 }, onChange: (event) => {
140
+ namedQuery ? (React.createElement(AdaptableInput_1.default, { style: { flex: 1 }, onChange: (event) => {
140
141
  const { target: { value }, } = event;
141
142
  setNamedQuery({
142
143
  Name: value,
143
144
  BooleanExpression: expressionText,
144
145
  });
145
146
  } })) : null));
146
- const editorElement = (React.createElement(Flex, { className: baseClassName, flex: 1, "data-name": "expression-editor-wrapper", pl: 2, style: props.style },
147
- React.createElement(Flex, { flex: 1, style: { minHeight: 0 }, flexDirection: "column", onFocus: (event) => {
147
+ const editorElement = (React.createElement(rebass_1.Flex, { className: baseClassName, flex: 1, "data-name": "expression-editor-wrapper", pl: 2, style: props.style },
148
+ React.createElement(rebass_1.Flex, { flex: 1, style: { minHeight: 0 }, flexDirection: "column", onFocus: (event) => {
148
149
  if (event.target.tagName === 'TEXTAREA') {
149
150
  textAreaRef.current = event.target;
150
151
  }
151
152
  } },
152
- React.createElement(Flex, { flex: 1, flexDirection: "row", "data-name": "expression-editor", fontSize: 2, style: { minHeight: 0 } },
153
- React.createElement(Flex, { flex: 1, paddingRight: 2, style: { overflow: 'auto' }, "data-name": "expression-builder", flexDirection: "column" },
153
+ React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "row", "data-name": "expression-editor", fontSize: 2, style: { minHeight: 0 } },
154
+ React.createElement(rebass_1.Flex, { flex: 1, paddingRight: 2, style: { overflow: 'auto' }, "data-name": "expression-builder", flexDirection: "column" },
154
155
  editorInput,
155
- StringExtensions.IsNotNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && (React.createElement(ExpressionFunctionDocumentation, { expressionFunction: selectedFunction })),
156
+ StringExtensions_1.default.IsNotNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && (React.createElement(ExpressionFunctionDocumentation_1.ExpressionFunctionDocumentation, { expressionFunction: selectedFunction })),
156
157
  /* displayed for advanced queries (observable&Aggregation) to give the users a starting point */
157
- StringExtensions.IsNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && renderQueryHints(type),
158
- showDocumentationLinks && (React.createElement(HelpBlock, { "data-name": "query-documentation", mt: 2, mb: 2, fontSize: 3 },
159
- React.createElement(ButtonInfo, { mr: 2, onClick: () => window.open(queryDocumentationLink, '_blank') }),
158
+ StringExtensions_1.default.IsNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && renderQueryHints(type),
159
+ showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation", mt: 2, mb: 2, fontSize: 3 },
160
+ React.createElement(ButtonInfo_1.ButtonInfo, { mr: 2, onClick: () => window.open(queryDocumentationLink, '_blank') }),
160
161
  "See ",
161
- StringExtensions.CapitaliseFirstLetter(type),
162
+ StringExtensions_1.default.CapitaliseFirstLetter(type),
162
163
  " Query documentation for more details and examples")),
163
- React.createElement(Box, { flex: 1 }),
164
+ React.createElement(rebass_1.Box, { flex: 1 }),
164
165
  showNamedQueryStuff && saveAsNamedQueryElement),
165
- React.createElement(Box, { className: `${baseClassName}__column-picker`, "data-name": "expression-column-picker", pb: 2, paddingLeft: 2, pr: 2 },
166
- ArrayExtensions.IsNotNullOrEmpty(props.namedQueries) && (React.createElement(Flex, { flexDirection: "row", alignItems: "start", p: 1, mt: 2, backgroundColor: "primarylight" },
167
- React.createElement(Radio, { checked: !showNamedQueries, onChange: (checked) => setShowNamedQueries(!checked), style: { marginRight: 10 } }, "Columns"),
168
- React.createElement(Radio, { checked: showNamedQueries, onChange: (checked) => setShowNamedQueries(checked), style: { marginLeft: 10, whiteSpace: 'nowrap' } }, "Named Queries"))),
166
+ React.createElement(rebass_1.Box, { className: `${baseClassName}__column-picker`, "data-name": "expression-column-picker", pb: 2, paddingLeft: 2, pr: 2 },
167
+ ArrayExtensions_1.default.IsNotNullOrEmpty(props.namedQueries) && (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "start", p: 1, mt: 2, backgroundColor: "primarylight" },
168
+ React.createElement(Radio_1.default, { checked: !showNamedQueries, onChange: (checked) => setShowNamedQueries(!checked), style: { marginRight: 10 } }, "Columns"),
169
+ React.createElement(Radio_1.default, { checked: showNamedQueries, onChange: (checked) => setShowNamedQueries(checked), style: { marginLeft: 10, whiteSpace: 'nowrap' } }, "Named Queries"))),
169
170
  showNamedQueries ? React.createElement("div", null, namedQueries) : React.createElement("div", null, dataTableEditor))))));
170
- const queryBuilderElement = (React.createElement(QueryBuilder, { module: module, query: expressionText, onChange: (query) => {
171
+ const queryBuilderElement = (React.createElement(QueryBuilder_1.QueryBuilder, { module: module, query: expressionText, onChange: (query) => {
171
172
  setExpressionText(query);
172
173
  props.onChange(query);
173
174
  }, getColumns: (type) => {
@@ -194,31 +195,32 @@ export function ExpressionEditor(props) {
194
195
  } }));
195
196
  const showQueryBuilder = (_b = props.showQueryBuilder) !== null && _b !== void 0 ? _b : false;
196
197
  const showExpressionEditor = (_c = props.showExpressionEditor) !== null && _c !== void 0 ? _c : true;
197
- return (React.createElement(ExpressionEditorContext.Provider, { value: {
198
+ return (React.createElement(EditorContext_1.ExpressionEditorContext.Provider, { value: {
198
199
  selectedFunction,
199
200
  setSelectedFunction,
200
201
  textAreaRef,
201
202
  } }, (() => {
202
203
  switch (true) {
203
204
  case showQueryBuilder && showExpressionEditor:
204
- return (React.createElement(Tabs, { mb: 2, p: 2, minHeight: 0, flex: 1 },
205
- React.createElement(Tabs.Tab, { value: "editor" }, "Expression Editor"),
206
- React.createElement(Tabs.Tab, { value: "ui" }, "Query Builder"),
207
- React.createElement(Tabs.Content, null, editorElement),
208
- React.createElement(Tabs.Content, null,
209
- React.createElement(Flex, { flexDirection: "column", height: "100%" },
205
+ return (React.createElement(Tabs_1.Tabs, { mb: 2, p: 2, minHeight: 0, flex: 1 },
206
+ React.createElement(Tabs_1.Tabs.Tab, { value: "editor" }, "Expression Editor"),
207
+ React.createElement(Tabs_1.Tabs.Tab, { value: "ui" }, "Query Builder"),
208
+ React.createElement(Tabs_1.Tabs.Content, null, editorElement),
209
+ React.createElement(Tabs_1.Tabs.Content, null,
210
+ React.createElement(rebass_1.Flex, { flexDirection: "column", height: "100%" },
210
211
  queryBuilderElement,
211
- React.createElement(Box, { flex: 1 }),
212
+ React.createElement(rebass_1.Box, { flex: 1 }),
212
213
  showNamedQueryStuff && saveAsNamedQueryElement))));
213
214
  case showQueryBuilder:
214
- return (React.createElement(Flex, { flexDirection: "column", p: 2, height: "100%" }, queryBuilderElement));
215
+ return (React.createElement(rebass_1.Flex, { flexDirection: "column", p: 2, height: "100%" }, queryBuilderElement));
215
216
  case showExpressionEditor:
216
- return (React.createElement(Flex, { flexDirection: "column", p: 2, height: "100%" }, editorElement));
217
+ return (React.createElement(rebass_1.Flex, { flexDirection: "column", p: 2, height: "100%" }, editorElement));
217
218
  default:
218
219
  return null;
219
220
  }
220
221
  })()));
221
222
  }
223
+ exports.ExpressionEditor = ExpressionEditor;
222
224
  const renderQueryHints = (type) => {
223
225
  const examples = [];
224
226
  if (type === 'observable') {
@@ -259,29 +261,29 @@ const renderQueryHints = (type) => {
259
261
  description: "The cumulative sum of all 'PnL' columns in the order given by the 'TradeDate' column",
260
262
  });
261
263
  }
262
- return examples.length ? (React.createElement(Box, { "data-name": "expression-hints", my: 2, p: 2, style: {
264
+ return examples.length ? (React.createElement(rebass_1.Box, { "data-name": "expression-hints", my: 2, p: 2, style: {
263
265
  background: 'var(--ab-color-primary)',
264
266
  borderRadius: 'var(--ab__border-radius)',
265
267
  } },
266
- React.createElement(Box, null,
267
- React.createElement(Text, { marginBottom: 2 },
268
+ React.createElement(rebass_1.Box, null,
269
+ React.createElement(rebass_1.Text, { marginBottom: 2 },
268
270
  React.createElement("b", null, "Examples"),
269
271
  " (click on each to see its explanation):"),
270
272
  examples.map((example, index) => (React.createElement("details", { key: index, style: { marginBottom: 'var(--ab-space-2)' } },
271
- React.createElement(Flex, { style: {
273
+ React.createElement(rebass_1.Flex, { style: {
272
274
  borderRadius: 'var(--ab__border-radius)',
273
275
  }, marginRight: 2, marginBottom: 1, color: 'text-on-secondary', fontSize: 'var( --ab-font-size-2)', alignItems: "center", as: "summary" },
274
- React.createElement(CodeBlock, null,
276
+ React.createElement(CodeBlock_1.CodeBlock, null,
275
277
  " ",
276
278
  example.code)),
277
- React.createElement(Text, { fontSize: 2, marginLeft: 3, style: { fontStyle: 'italic' } }, example.description))))))) : null;
279
+ React.createElement(rebass_1.Text, { fontSize: 2, marginLeft: 3, style: { fontStyle: 'italic' } }, example.description))))))) : null;
278
280
  };
279
281
  const queryDocumentationLinks = {
280
- boolean: BooleanQueryDocsLink,
281
- scalar: ScalarQueryDocsLink,
282
- observable: ObservableQueryDocsLink,
283
- aggregatedBoolean: AggregatedBooleanQueryDocsLink,
284
- aggregatedScalar: AggregatedScalarQueryDocsLink,
285
- cumulativeAggregatedScalar: CumulativeAggregatedScalarQueryDocsLink,
286
- quantileAggregatedScalar: QuantileAggregatedScalarQueryDocsLink,
282
+ boolean: DocumentationLinkConstants_1.BooleanQueryDocsLink,
283
+ scalar: DocumentationLinkConstants_1.ScalarQueryDocsLink,
284
+ observable: DocumentationLinkConstants_1.ObservableQueryDocsLink,
285
+ aggregatedBoolean: DocumentationLinkConstants_1.AggregatedBooleanQueryDocsLink,
286
+ aggregatedScalar: DocumentationLinkConstants_1.AggregatedScalarQueryDocsLink,
287
+ cumulativeAggregatedScalar: DocumentationLinkConstants_1.CumulativeAggregatedScalarQueryDocsLink,
288
+ quantileAggregatedScalar: DocumentationLinkConstants_1.QuantileAggregatedScalarQueryDocsLink,
287
289
  };
@@ -1,11 +1,14 @@
1
- import * as React from 'react';
2
- import { Flex } from 'rebass';
3
- import join from '../utils/join';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const rebass_1 = require("rebass");
6
+ const join_1 = tslib_1.__importDefault(require("../utils/join"));
4
7
  const FieldWrap = (props) => {
5
- return React.createElement(Flex, Object.assign({}, props, { className: join(props.className, 'ab-FieldWrap') }));
8
+ return React.createElement(rebass_1.Flex, Object.assign({}, props, { className: (0, join_1.default)(props.className, 'ab-FieldWrap') }));
6
9
  };
7
10
  FieldWrap.defaultProps = {
8
11
  flexDirection: 'row',
9
12
  alignItems: 'center',
10
13
  };
11
- export default FieldWrap;
14
+ exports.default = FieldWrap;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,16 @@
1
- import { __rest } from "tslib";
2
- import * as React from 'react';
3
- import { Flex, Box } from 'rebass';
4
- import { useReducer, useRef } from 'react';
5
- import join from '../../components/utils/join';
6
- import contains from '../../components/utils/contains';
7
- import SimpleButton from '../SimpleButton';
8
- import { Icon } from '../icons';
9
- import HelpBlock from '../HelpBlock';
10
- import reducer, { ActionTypes } from './reducer';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readJSONFile = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const rebass_1 = require("rebass");
7
+ const react_1 = require("react");
8
+ const join_1 = tslib_1.__importDefault(require("../../components/utils/join"));
9
+ const contains_1 = tslib_1.__importDefault(require("../../components/utils/contains"));
10
+ const SimpleButton_1 = tslib_1.__importDefault(require("../SimpleButton"));
11
+ const icons_1 = require("../icons");
12
+ const HelpBlock_1 = tslib_1.__importDefault(require("../HelpBlock"));
13
+ const reducer_1 = tslib_1.__importStar(require("./reducer"));
11
14
  const initialState = {
12
15
  dragOver: false,
13
16
  message: null,
@@ -16,7 +19,7 @@ const preventEventPropagation = (e) => {
16
19
  e.preventDefault();
17
20
  e.stopPropagation();
18
21
  };
19
- export const readJSONFile = async (file, toJSON) => {
22
+ const readJSONFile = async (file, toJSON) => {
20
23
  const reader = new FileReader();
21
24
  return new Promise((resolve, reject) => {
22
25
  reader.onload = function (e) {
@@ -35,23 +38,24 @@ export const readJSONFile = async (file, toJSON) => {
35
38
  reader.readAsText(file);
36
39
  });
37
40
  };
41
+ exports.readJSONFile = readJSONFile;
38
42
  const FileDroppable = (props) => {
39
43
  var _a;
40
- const { onDropSuccess, message, fileAccept = '.json', helpText = 'AdapTable No Code Version', defaultText = 'Click here to select a JSON file to load or drag it here', dragOverText = 'Drop file here to start Adaptable Wizard', icon = React.createElement(Icon, { name: "paperclip", size: 48 }), value } = props, domProps = __rest(props, ["onDropSuccess", "message", "fileAccept", "helpText", "defaultText", "dragOverText", "icon", "value"]);
41
- const [state, dispatch] = useReducer(reducer, initialState);
44
+ const { onDropSuccess, message, fileAccept = '.json', helpText = 'AdapTable No Code Version', defaultText = 'Click here to select a JSON file to load or drag it here', dragOverText = 'Drop file here to start Adaptable Wizard', icon = React.createElement(icons_1.Icon, { name: "paperclip", size: 48 }), value } = props, domProps = tslib_1.__rest(props, ["onDropSuccess", "message", "fileAccept", "helpText", "defaultText", "dragOverText", "icon", "value"]);
45
+ const [state, dispatch] = (0, react_1.useReducer)(reducer_1.default, initialState);
42
46
  const onDragEnter = (e) => {
43
47
  dispatch({
44
- type: ActionTypes.DRAG_OVER,
48
+ type: reducer_1.ActionTypes.DRAG_OVER,
45
49
  });
46
50
  };
47
51
  const onDragLeave = (event) => {
48
52
  preventEventPropagation(event);
49
53
  if (domRef.current != event.target &&
50
- contains(domRef.current, event.target)) {
54
+ (0, contains_1.default)(domRef.current, event.target)) {
51
55
  return;
52
56
  }
53
57
  dispatch({
54
- type: ActionTypes.DRAG_OUT,
58
+ type: reducer_1.ActionTypes.DRAG_OUT,
55
59
  });
56
60
  };
57
61
  const onDrop = async (e) => {
@@ -69,11 +73,11 @@ const FileDroppable = (props) => {
69
73
  if (file) {
70
74
  let json;
71
75
  try {
72
- json = await (props.readFile || readJSONFile)(file, props.toJSON);
76
+ json = await (props.readFile || exports.readJSONFile)(file, props.toJSON);
73
77
  dispatch({
74
- type: ActionTypes.DROP_SUCCES,
78
+ type: reducer_1.ActionTypes.DROP_SUCCES,
75
79
  payload: {
76
- message: (React.createElement(Box, null, props.loadingText === undefined ? 'Initializing adaptable...' : props.loadingText)),
80
+ message: (React.createElement(rebass_1.Box, null, props.loadingText === undefined ? 'Initializing adaptable...' : props.loadingText)),
77
81
  },
78
82
  });
79
83
  requestAnimationFrame(() => {
@@ -86,17 +90,17 @@ const FileDroppable = (props) => {
86
90
  }
87
91
  catch (err) {
88
92
  dispatch({
89
- type: ActionTypes.SET_INVALID_FILE,
93
+ type: reducer_1.ActionTypes.SET_INVALID_FILE,
90
94
  payload: {
91
- message: React.createElement(Box, null, 'The file is not a valid JSON file! Please try again!'),
95
+ message: React.createElement(rebass_1.Box, null, 'The file is not a valid JSON file! Please try again!'),
92
96
  },
93
97
  });
94
98
  }
95
99
  }
96
100
  };
97
- const domRef = useRef();
101
+ const domRef = (0, react_1.useRef)();
98
102
  let form = (React.createElement("form", { onSubmit: preventEventPropagation },
99
- React.createElement(SimpleButton, { style: { cursor: 'pointer' }, variant: "outlined" },
103
+ React.createElement(SimpleButton_1.default, { style: { cursor: 'pointer' }, variant: "outlined" },
100
104
  React.createElement("div", null, state.dragOver ? dragOverText : defaultText),
101
105
  React.createElement("input", { type: "file", onChange: onDrop, accept: fileAccept, value: (_a = props === null || props === void 0 ? void 0 : props.file) === null || _a === void 0 ? void 0 : _a.name, style: {
102
106
  opacity: 0,
@@ -111,15 +115,15 @@ const FileDroppable = (props) => {
111
115
  zIndex: 1,
112
116
  } }))));
113
117
  const msg = message || state.message;
114
- return (React.createElement(Flex, Object.assign({}, domProps, { flexDirection: "column", className: join(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: preventEventPropagation, ref: domRef }),
118
+ return (React.createElement(rebass_1.Flex, Object.assign({}, domProps, { flexDirection: "column", className: (0, join_1.default)(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: preventEventPropagation, ref: domRef }),
115
119
  props.children,
116
- helpText || icon ? (React.createElement(Flex, { flexDirection: "column" },
117
- helpText ? (React.createElement(Flex, { flexDirection: "column", alignItems: "center", margin: 2 },
118
- React.createElement(HelpBlock, null,
120
+ helpText || icon ? (React.createElement(rebass_1.Flex, { flexDirection: "column" },
121
+ helpText ? (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "center", margin: 2 },
122
+ React.createElement(HelpBlock_1.default, null,
119
123
  React.createElement("b", null, helpText)))) : null,
120
- icon ? (React.createElement(Flex, { flexDirection: "column", alignItems: "center", margin: 2 }, icon)) : null)) : null,
124
+ icon ? (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "center", margin: 2 }, icon)) : null)) : null,
121
125
  msg,
122
126
  form));
123
127
  };
124
128
  FileDroppable.defaultProps = {};
125
- export default FileDroppable;
129
+ exports.default = FileDroppable;
@@ -1,10 +1,13 @@
1
- export var ActionTypes;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionTypes = void 0;
4
+ var ActionTypes;
2
5
  (function (ActionTypes) {
3
6
  ActionTypes["DRAG_OVER"] = "DRAG_OVER";
4
7
  ActionTypes["DRAG_OUT"] = "DRAG_OUT";
5
8
  ActionTypes["SET_INVALID_FILE"] = "SET_INVALID_FILE";
6
9
  ActionTypes["DROP_SUCCES"] = "DROP_SUCCES";
7
- })(ActionTypes || (ActionTypes = {}));
10
+ })(ActionTypes = exports.ActionTypes || (exports.ActionTypes = {}));
8
11
  const reducer = (state, action) => {
9
12
  if (action.type === ActionTypes.DRAG_OVER) {
10
13
  return Object.assign(Object.assign({}, state), { dragOver: true });
@@ -20,4 +23,4 @@ const reducer = (state, action) => {
20
23
  }
21
24
  return state;
22
25
  };
23
- export default reducer;
26
+ exports.default = reducer;
@@ -1,6 +1,8 @@
1
- import { __rest } from "tslib";
2
- import * as React from 'react';
3
- import { Flex } from 'rebass';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const rebass_1 = require("rebass");
4
6
  const defaultStyle = {
5
7
  height: '100%',
6
8
  maxHeight: '90vh',
@@ -8,10 +10,10 @@ const defaultStyle = {
8
10
  maxWidth: 800,
9
11
  };
10
12
  const FlexWithFooter = (props) => {
11
- const { footer, footerProps, children, style } = props, domProps = __rest(props, ["footer", "footerProps", "children", "style"]);
12
- return (React.createElement(Flex, Object.assign({ flexDirection: "column" }, domProps, { style: Object.assign(Object.assign({}, defaultStyle), style) }),
13
- React.createElement(Flex, { flexDirection: "column", padding: 0, flex: 1 },
14
- React.createElement(Flex, { flexDirection: "column", flex: 1 }, children)),
15
- footer ? (React.createElement(Flex, Object.assign({ padding: 2, backgroundColor: "primary" }, footerProps), footer)) : null));
13
+ const { footer, footerProps, children, style } = props, domProps = tslib_1.__rest(props, ["footer", "footerProps", "children", "style"]);
14
+ return (React.createElement(rebass_1.Flex, Object.assign({ flexDirection: "column" }, domProps, { style: Object.assign(Object.assign({}, defaultStyle), style) }),
15
+ React.createElement(rebass_1.Flex, { flexDirection: "column", padding: 0, flex: 1 },
16
+ React.createElement(rebass_1.Flex, { flexDirection: "column", flex: 1 }, children)),
17
+ footer ? (React.createElement(rebass_1.Flex, Object.assign({ padding: 2, backgroundColor: "primary" }, footerProps), footer)) : null));
16
18
  };
17
- export default FlexWithFooter;
19
+ exports.default = FlexWithFooter;
@@ -1,10 +1,13 @@
1
- import { __rest } from "tslib";
2
- import * as React from 'react';
3
- import { Box } from 'rebass';
4
- import { createContext, useContext } from 'react';
5
- import merge from 'lodash/merge';
6
- import join from '../utils/join';
7
- const FormLayoutContext = createContext(null);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormRow = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const rebass_1 = require("rebass");
7
+ const react_1 = require("react");
8
+ const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
9
+ const join_1 = tslib_1.__importDefault(require("../utils/join"));
10
+ const FormLayoutContext = (0, react_1.createContext)(null);
8
11
  const defaultColumns = {
9
12
  label: {
10
13
  className: 'ab-FormLayout_column--label',
@@ -15,7 +18,7 @@ const defaultColumns = {
15
18
  };
16
19
  const PLACEHOLDER = React.createElement("div", null);
17
20
  const FormLayout = (props) => {
18
- let { placeholder = PLACEHOLDER, columns = ['label', 'children'], defaultComponent = Box, sizes = ['auto', '1fr'], gridColumnGap = 'var(--ab-space-2)', gridRowGap = 'var(--ab-space-2)', style, childrenToColumns = true } = props, boxProps = __rest(props, ["placeholder", "columns", "defaultComponent", "sizes", "gridColumnGap", "gridRowGap", "style", "childrenToColumns"]);
21
+ let { placeholder = PLACEHOLDER, columns = ['label', 'children'], defaultComponent = rebass_1.Box, sizes = ['auto', '1fr'], gridColumnGap = 'var(--ab-space-2)', gridRowGap = 'var(--ab-space-2)', style, childrenToColumns = true } = props, boxProps = tslib_1.__rest(props, ["placeholder", "columns", "defaultComponent", "sizes", "gridColumnGap", "gridRowGap", "style", "childrenToColumns"]);
19
22
  columns = columns.map((c) => {
20
23
  if (typeof c === 'string' || typeof c === 'number') {
21
24
  c = {
@@ -23,7 +26,7 @@ const FormLayout = (props) => {
23
26
  };
24
27
  }
25
28
  if (defaultColumns[c.name]) {
26
- c = merge({}, defaultColumns[c.name], c);
29
+ c = (0, merge_1.default)({}, defaultColumns[c.name], c);
27
30
  }
28
31
  c.component = c.component === undefined ? defaultComponent : c.component;
29
32
  return c;
@@ -50,10 +53,10 @@ const FormLayout = (props) => {
50
53
  currentRow: 0,
51
54
  childrenToColumns,
52
55
  } },
53
- React.createElement(Box, Object.assign({}, boxProps, { className: join(boxProps.className, 'ab-FormLayout'), style: Object.assign(Object.assign({}, style), formStyle) }))));
56
+ React.createElement(rebass_1.Box, Object.assign({}, boxProps, { className: (0, join_1.default)(boxProps.className, 'ab-FormLayout'), style: Object.assign(Object.assign({}, style), formStyle) }))));
54
57
  };
55
- export const FormRow = (props) => {
56
- const ctx = useContext(FormLayoutContext);
58
+ const FormRow = (props) => {
59
+ const ctx = (0, react_1.useContext)(FormLayoutContext);
57
60
  const { columns, placeholder, childrenToColumns } = ctx;
58
61
  const rowIndex = ctx.currentRow;
59
62
  ctx.currentRow++;
@@ -76,4 +79,5 @@ export const FormRow = (props) => {
76
79
  });
77
80
  return React.createElement(React.Fragment, null, columnValues);
78
81
  };
79
- export default FormLayout;
82
+ exports.FormRow = FormRow;
83
+ exports.default = FormLayout;