@adaptabletools/adaptable 17.0.0-canary.0 → 17.0.0-canary.2

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 (399) hide show
  1. package/base.css +1203 -1207
  2. package/base.css.map +1 -1
  3. package/index.css +28 -1989
  4. package/index.css.map +1 -1
  5. package/package.json +9 -110
  6. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +2 -2
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +16 -11
  8. package/src/AdaptableOptions/ActionRowOptions.d.ts +25 -3
  9. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -3
  10. package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
  11. package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
  12. package/src/AdaptableOptions/AlertOptions.d.ts +2 -2
  13. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +110 -91
  14. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/DateInputOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/EditOptions.d.ts +2 -2
  17. package/src/AdaptableOptions/ExportOptions.d.ts +3 -3
  18. package/src/AdaptableOptions/ExpressionOptions.d.ts +2 -2
  19. package/src/AdaptableOptions/Fdc3Options.d.ts +10 -4
  20. package/src/AdaptableOptions/GridFilterOptions.d.ts +18 -0
  21. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  22. package/src/AdaptableOptions/MenuOptions.d.ts +10 -4
  23. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -1
  24. package/src/AdaptableOptions/QuickSearchOptions.d.ts +4 -4
  25. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -16
  26. package/src/Api/ColumnApi.d.ts +4 -0
  27. package/src/Api/ColumnFilterApi.d.ts +2 -5
  28. package/src/Api/DashboardApi.d.ts +0 -11
  29. package/src/Api/EventApi.d.ts +2 -30
  30. package/src/Api/Events/ActionRowSubmitted.d.ts +1 -5
  31. package/src/Api/Events/AdaptableSearchState.d.ts +2 -7
  32. package/src/Api/Events/Fdc3MessageInfo.d.ts +1 -1
  33. package/src/Api/Events/GridFilterApplied.d.ts +2 -1
  34. package/src/Api/ExportApi.d.ts +0 -4
  35. package/src/Api/GridFilterApi.d.ts +26 -8
  36. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  37. package/src/Api/Implementation/ColumnApiImpl.js +4 -0
  38. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
  39. package/src/Api/Implementation/ColumnFilterApiImpl.js +3 -3
  40. package/src/Api/Implementation/ConfigApiImpl.js +1 -2
  41. package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -2
  42. package/src/Api/Implementation/DashboardApiImpl.js +0 -14
  43. package/src/Api/Implementation/ExportApiImpl.d.ts +0 -1
  44. package/src/Api/Implementation/ExportApiImpl.js +0 -3
  45. package/src/Api/Implementation/GridApiImpl.js +2 -2
  46. package/src/Api/Implementation/GridFilterApiImpl.d.ts +6 -1
  47. package/src/Api/Implementation/GridFilterApiImpl.js +22 -3
  48. package/src/Api/Implementation/NamedQueryApiImpl.d.ts +2 -5
  49. package/src/Api/Implementation/NamedQueryApiImpl.js +2 -2
  50. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
  51. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  52. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
  53. package/src/Api/Internal/ActionRowInternalApi.d.ts +1 -0
  54. package/src/Api/Internal/ActionRowInternalApi.js +17 -3
  55. package/src/Api/Internal/AlertInternalApi.d.ts +1 -7
  56. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -2
  57. package/src/Api/Internal/ColumnFilterInternalApi.js +9 -9
  58. package/src/Api/Internal/ColumnInternalApi.d.ts +0 -10
  59. package/src/Api/Internal/ColumnInternalApi.js +0 -28
  60. package/src/Api/Internal/Fdc3InternalApi.d.ts +2 -2
  61. package/src/Api/Internal/FormatColumnInternalApi.js +6 -6
  62. package/src/Api/Internal/GridFilterInternalApi.d.ts +1 -1
  63. package/src/Api/Internal/GridFilterInternalApi.js +5 -5
  64. package/src/Api/Internal/GridInternalApi.js +31 -9
  65. package/src/Api/Internal/LayoutInternalApi.js +8 -0
  66. package/src/Api/Internal/PredicateInternalApi.js +3 -3
  67. package/src/Api/Internal/StyledColumnInternalApi.d.ts +0 -3
  68. package/src/Api/Internal/StyledColumnInternalApi.js +0 -27
  69. package/src/Api/NamedQueryApi.d.ts +6 -5
  70. package/src/Api/OptionsApi.d.ts +5 -1
  71. package/src/PredefinedConfig/AlertState.d.ts +6 -6
  72. package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
  73. package/src/PredefinedConfig/ChartingState.d.ts +4 -1
  74. package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +2 -2
  75. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  76. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
  77. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +2 -2
  78. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -1
  79. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +2 -2
  80. package/src/PredefinedConfig/Common/AdaptableMessageType.d.ts +1 -1
  81. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +1 -1
  82. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -3
  83. package/src/PredefinedConfig/Common/AdaptablePredicate.js +45 -58
  84. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +1 -1
  85. package/src/PredefinedConfig/Common/AdaptableScope.d.ts +5 -5
  86. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -1
  87. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
  88. package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
  89. package/src/PredefinedConfig/Common/Fdc3Context.d.ts +133 -37
  90. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
  91. package/src/PredefinedConfig/Common/Schedule.d.ts +2 -2
  92. package/src/PredefinedConfig/Common/Types.d.ts +15 -15
  93. package/src/PredefinedConfig/ExportState.d.ts +4 -4
  94. package/src/PredefinedConfig/FlashingCellState.d.ts +4 -4
  95. package/src/PredefinedConfig/FormatColumnState.d.ts +4 -27
  96. package/src/PredefinedConfig/NotesState.d.ts +2 -2
  97. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -5
  98. package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
  99. package/src/PredefinedConfig/StyledColumnState.d.ts +8 -13
  100. package/src/PredefinedConfig/SystemState.d.ts +3 -3
  101. package/src/PredefinedConfig/TeamSharingState.d.ts +3 -3
  102. package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
  103. package/src/PredefinedConfig/Uuid.d.ts +1 -1
  104. package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -1
  105. package/src/Redux/ActionsReducers/GridRedux.js +18 -0
  106. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +37 -16
  107. package/src/Redux/ActionsReducers/LayoutRedux.js +69 -16
  108. package/src/Redux/Store/AdaptableReduxMerger.d.ts +1 -1
  109. package/src/Redux/Store/AdaptableStore.d.ts +2 -2
  110. package/src/Redux/Store/AdaptableStore.js +46 -19
  111. package/src/Strategy/AdaptableModuleBase.d.ts +0 -1
  112. package/src/Strategy/AdaptableModuleBase.js +0 -30
  113. package/src/Strategy/AlertModule.js +1 -1
  114. package/src/Strategy/ChartingModule.js +8 -5
  115. package/src/Strategy/ColumnFilterModule.d.ts +2 -0
  116. package/src/Strategy/ColumnFilterModule.js +78 -40
  117. package/src/Strategy/CustomSortModule.js +1 -1
  118. package/src/Strategy/FlashingCellModule.js +1 -1
  119. package/src/Strategy/Interface/IModule.d.ts +3 -3
  120. package/src/Strategy/LayoutModule.js +5 -0
  121. package/src/Strategy/StyledColumnModule.js +2 -53
  122. package/src/Utilities/Constants/GeneralConstants.d.ts +3 -0
  123. package/src/Utilities/Constants/GeneralConstants.js +3 -0
  124. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +31 -23
  125. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
  126. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  127. package/src/Utilities/Emitter.d.ts +2 -2
  128. package/src/Utilities/Emitter.js +2 -2
  129. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -3
  130. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
  131. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
  132. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +55 -5
  133. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  134. package/src/Utilities/ExpressionFunctions/dateUtils.js +9 -0
  135. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +3 -3
  136. package/src/Utilities/ExpressionFunctions/deepMap.js +7 -7
  137. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +1 -1
  138. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +7 -7
  139. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -1
  140. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +7 -7
  141. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  142. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +11 -1
  143. package/src/Utilities/Extensions/TypeExtensions.d.ts +8 -8
  144. package/src/Utilities/Helpers/AdaptableHelper.js +4 -0
  145. package/src/Utilities/ObjectFactory.js +1 -1
  146. package/src/Utilities/Services/EntitlementService.d.ts +0 -1
  147. package/src/Utilities/Services/EntitlementService.js +0 -8
  148. package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -3
  149. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +0 -6
  150. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -1
  151. package/src/Utilities/Services/LicenseService/index.js +181 -1
  152. package/src/Utilities/Services/MetamodelService.js +1 -1
  153. package/src/Utilities/Services/ModuleService.js +1 -1
  154. package/src/Utilities/license/LicenseDetails.d.ts +1 -1
  155. package/src/Utilities/license/decode.js +65 -1
  156. package/src/Utilities/license/hashing.js +43 -1
  157. package/src/Utilities/logDeprecation.d.ts +5 -3
  158. package/src/View/AdaptablePopover/index.d.ts +1 -0
  159. package/src/View/AdaptablePopover/index.js +1 -1
  160. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +1 -1
  161. package/src/View/Alert/AlertEmptyView.js +1 -1
  162. package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -1
  163. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -1
  164. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +20 -4
  165. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  166. package/src/View/Alert/Wizard/AlertButtonsEditor.js +21 -24
  167. package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
  168. package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
  169. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +1 -1
  170. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
  171. package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +1 -1
  172. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
  173. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
  174. package/src/View/Alert/Wizard/AlertWizard.js +1 -1
  175. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  176. package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -9
  177. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
  178. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +1 -1
  179. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
  180. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -1
  181. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -18
  182. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +1 -1
  183. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
  184. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
  185. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +5 -1
  186. package/src/View/CellSummary/CellSummaryViewPanel.js +5 -5
  187. package/src/View/ColumnInfo/ColumnInfo.js +7 -8
  188. package/src/View/Components/AdaptableDateInput/index.d.ts +2 -2
  189. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  190. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +2 -2
  191. package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -1
  192. package/src/View/Components/Buttons/ButtonOpen.d.ts +5 -0
  193. package/src/View/Components/Buttons/ButtonOpen.js +7 -0
  194. package/src/View/Components/Buttons/ButtonUnsuspend.d.ts +8 -0
  195. package/src/View/Components/Buttons/ButtonUnsuspend.js +17 -0
  196. package/src/View/Components/CellPopup/index.d.ts +1 -1
  197. package/src/View/Components/ColumnSelector/index.d.ts +1 -1
  198. package/src/View/Components/EntityRulesEditor/index.d.ts +2 -2
  199. package/src/View/Components/EntityRulesEditor/index.js +11 -3
  200. package/src/View/Components/ExternalRenderer.d.ts +1 -1
  201. package/src/View/Components/FilterForm/FilterForm.js +24 -24
  202. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -3
  203. package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
  204. package/src/View/Components/FilterForm/QuickFilterValues.js +2 -2
  205. package/src/View/Components/FilterForm/Waiting.d.ts +1 -1
  206. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  207. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -1
  208. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
  209. package/src/View/Components/PredicateEditor/PredicateEditor.js +10 -10
  210. package/src/View/Components/RangesComponent.js +11 -8
  211. package/src/View/Components/Selectors/ColumnSelector.d.ts +12 -17
  212. package/src/View/Components/Selectors/ColumnSelector.js +23 -42
  213. package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +18 -0
  214. package/src/View/Components/Selectors/ColumnSelectorOld.js +46 -0
  215. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +4 -23
  216. package/src/View/Components/Selectors/ColumnValueSelector.js +34 -126
  217. package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +13 -0
  218. package/src/View/Components/Selectors/PermittedValuesSelector.js +46 -0
  219. package/src/View/Components/StyleComponent.d.ts +2 -3
  220. package/src/View/Components/StyleComponent.js +37 -40
  221. package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -2
  222. package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +1 -1
  223. package/src/View/Components/ValueSelector/index.d.ts +2 -2
  224. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +1 -1
  225. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +1 -1
  226. package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
  227. package/src/View/Dashboard/DashboardPopup.js +4 -4
  228. package/src/View/Dashboard/DashboardToolbarFactory.js +0 -1
  229. package/src/View/Dashboard/PinnedDashboard.js +6 -3
  230. package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -1
  231. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -1
  232. package/src/View/DataImport/DataImportPopup.js +1 -1
  233. package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +1 -1
  234. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +1 -1
  235. package/src/View/DataSet/DataSetViewPanel.js +3 -2
  236. package/src/View/Export/ExportViewPanel.js +12 -9
  237. package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +1 -1
  238. package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +1 -1
  239. package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +1 -1
  240. package/src/View/Filter/FilterViewPanel.js +1 -1
  241. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -1
  242. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
  243. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
  244. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +1 -1
  245. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +1 -1
  246. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +8 -8
  247. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  248. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
  249. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +10 -9
  250. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +1 -1
  251. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +1 -1
  252. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +1 -1
  253. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
  254. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -1
  255. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  256. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -17
  257. package/src/View/GridFilter/GridFilterExpressionEditor.js +62 -9
  258. package/src/View/GridFilter/GridFilterPopup.js +36 -6
  259. package/src/View/GridFilter/GridFilterStatusbar.js +0 -1
  260. package/src/View/GridFilter/GridFilterViewPanel.d.ts +2 -26
  261. package/src/View/GridFilter/GridFilterViewPanel.js +49 -150
  262. package/src/View/GridFilter/NamedQuerySelector.d.ts +16 -0
  263. package/src/View/GridFilter/NamedQuerySelector.js +50 -0
  264. package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +24 -0
  265. package/src/View/GridFilter/useGridFilterExpressionEditor.js +123 -0
  266. package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.d.ts +4 -0
  267. package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +27 -0
  268. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +5 -3
  269. package/src/View/Layout/LayoutViewPanel.js +4 -3
  270. package/src/View/Layout/SaveLayoutButton.js +2 -1
  271. package/src/View/Layout/Wizard/LayoutWizard.js +10 -0
  272. package/src/View/Layout/Wizard/sections/FilterSection.js +15 -17
  273. package/src/View/Layout/Wizard/sections/GridFilterSection.d.ts +9 -0
  274. package/src/View/Layout/Wizard/sections/GridFilterSection.js +37 -0
  275. package/src/View/License/LicenseWatermark.js +61 -1
  276. package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
  277. package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +1 -1
  278. package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +2 -2
  279. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  280. package/src/View/QuickSearch/useQuickSearchDebounced.d.ts +1 -1
  281. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -2
  282. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +1 -1
  283. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +6 -5
  284. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -7
  285. package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -3
  286. package/src/View/SmartEdit/SmartEditViewPanel.js +7 -5
  287. package/src/View/SpecialColumnSettingsWizardStep.js +4 -1
  288. package/src/View/StateManagement/StateManagementPopup.js +6 -6
  289. package/src/View/StatusBar/StatusBarPopup.js +1 -1
  290. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +16 -8
  291. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +20 -23
  292. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +2 -3
  293. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +1 -1
  294. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +7 -5
  295. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +1 -1
  296. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +4 -4
  297. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +0 -8
  298. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +2 -9
  299. package/src/View/SystemStatus/SystemStatusViewPanel.js +1 -1
  300. package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -1
  301. package/src/View/Theme/ThemeEditor.d.ts +1 -1
  302. package/src/View/Theme/ThemeViewPanel.js +4 -3
  303. package/src/View/UIHelper.d.ts +1 -1
  304. package/src/View/Wizard/ObjectTagsWizardSection.d.ts +1 -1
  305. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
  306. package/src/View/Wizard/OnePageWizards.d.ts +2 -2
  307. package/src/agGrid/Adaptable.d.ts +20 -17
  308. package/src/agGrid/Adaptable.js +193 -190
  309. package/src/agGrid/AdaptableLogger.js +15 -15
  310. package/src/agGrid/CheckboxRenderer.d.ts +5 -0
  311. package/src/agGrid/CheckboxRenderer.js +5 -1
  312. package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
  313. package/src/agGrid/agGridHelper.d.ts +0 -1
  314. package/src/agGrid/agGridHelper.js +16 -14
  315. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +2 -2
  316. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.d.ts +2 -2
  317. package/src/components/CheckBox/index.d.ts +1 -1
  318. package/src/components/ColorPicker/ColorPicker.d.ts +2 -2
  319. package/src/components/ColorPicker/ColorPicker.js +1 -1
  320. package/src/components/ContainerProps.d.ts +2 -2
  321. package/src/components/Dashboard/Dashboard.d.ts +2 -2
  322. package/src/components/Dashboard/DashboardTab.d.ts +1 -1
  323. package/src/components/Dashboard/DashboardToolbar.d.ts +1 -1
  324. package/src/components/Datepicker/index.d.ts +2 -2
  325. package/src/components/Dialog/index.d.ts +2 -2
  326. package/src/components/Dropdown/index.d.ts +2 -2
  327. package/src/components/DropdownButton/DropdownButtonItem.d.ts +1 -1
  328. package/src/components/DropdownButton/index.d.ts +1 -1
  329. package/src/components/DropdownButton/renderItem.d.ts +1 -1
  330. package/src/components/DropdownButton/useExpanded.d.ts +1 -1
  331. package/src/components/EllipsisContainer/index.d.ts +1 -1
  332. package/src/components/EmptyContent/index.d.ts +1 -1
  333. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
  334. package/src/components/ExpressionEditor/NamedQueryContext.d.ts +1 -1
  335. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +45 -15
  336. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +7 -2
  337. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +48 -33
  338. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.d.ts +1 -1
  339. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +6 -6
  340. package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +2 -0
  341. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +2 -1
  342. package/src/components/ExpressionEditor/QueryBuilder/utils.js +30 -0
  343. package/src/components/ExpressionEditor/index.d.ts +2 -1
  344. package/src/components/ExpressionEditor/index.js +81 -59
  345. package/src/components/FormLayout/index.d.ts +4 -4
  346. package/src/components/Input/NumberInput.d.ts +1 -1
  347. package/src/components/Input/index.d.ts +2 -2
  348. package/src/components/List/ListGroupItem/index.d.ts +2 -2
  349. package/src/components/Modal/Backdrop.d.ts +2 -2
  350. package/src/components/OverlayTrigger/index.d.ts +1 -1
  351. package/src/components/Panel/index.d.ts +1 -1
  352. package/src/components/Radio/index.d.ts +1 -1
  353. package/src/components/ResizeObserver/index.d.ts +1 -1
  354. package/src/components/Select/Select.d.ts +30 -0
  355. package/src/components/Select/Select.js +128 -0
  356. package/src/components/Select/index.d.ts +1 -0
  357. package/src/components/Select/index.js +1 -0
  358. package/src/components/SelectableList/index.d.ts +1 -1
  359. package/src/components/Tabs/index.d.ts +3 -3
  360. package/src/components/Textarea/index.d.ts +1 -1
  361. package/src/components/Toggle/Toggle.d.ts +1 -1
  362. package/src/components/WarningBox/index.d.ts +4 -0
  363. package/src/components/WarningBox/index.js +7 -0
  364. package/src/components/WindowModal/WindowModal.d.ts +2 -2
  365. package/src/components/icons/DefaultIcon.d.ts +1 -1
  366. package/src/components/icons/index.js +2 -0
  367. package/src/components/icons/resume.d.ts +3 -0
  368. package/src/components/icons/resume.js +4 -0
  369. package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
  370. package/src/components/utils/uuid.d.ts +1 -1
  371. package/src/metamodel/adaptable-metamodel-model.d.ts +2 -2
  372. package/src/metamodel/adaptable.metamodel.d.ts +330 -27
  373. package/src/metamodel/adaptable.metamodel.js +9435 -1
  374. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  375. package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -0
  376. package/src/parser/src/predicate/types.d.ts +2 -2
  377. package/src/parser/src/types.d.ts +23 -11
  378. package/src/renderReactRoot.d.ts +2 -4
  379. package/src/renderReactRoot.js +5 -46
  380. package/src/types.d.ts +6 -6
  381. package/themes/dark.css +1 -1
  382. package/themes/dark.css.map +1 -1
  383. package/themes/light.css +1 -1
  384. package/themes/light.css.map +1 -1
  385. package/tsconfig.esm.tsbuildinfo +1 -0
  386. package/publishTimestamp.d.ts +0 -2
  387. package/publishTimestamp.js +0 -1
  388. package/src/AdaptableOptions/FilterOptions.d.ts +0 -216
  389. package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -6
  390. package/src/AdaptableOptions/FinancePluginOptions.js +0 -1
  391. package/src/Api/Events/ChexboxColumnClicked.d.ts +0 -24
  392. package/src/Api/Events/ChexboxColumnClicked.js +0 -1
  393. package/src/Api/Events/QueryRun.d.ts +0 -15
  394. package/src/Api/Events/QueryRun.js +0 -1
  395. package/src/PredefinedConfig/ConditionalStyleState.d.ts +0 -41
  396. package/src/PredefinedConfig/ConditionalStyleState.js +0 -1
  397. package/version.d.ts +0 -2
  398. package/version.js +0 -1
  399. /package/src/AdaptableOptions/{FilterOptions.js → GridFilterOptions.js} +0 -0
@@ -83,6 +83,7 @@ export const LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = 'LAYOUT_DRAFT_COLUMN_FILTER_SU
83
83
  export const LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = 'LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL';
84
84
  export const LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = 'LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND';
85
85
  export const LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = 'LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL';
86
+ export const LAYOUT_DRAFT_GRID_FILTER_SET = 'LAYOUT_DRAFT_GRID_FILTER_SET';
86
87
  export const GridSetColumns = (Columns) => ({
87
88
  type: GRID_SET_COLUMNS,
88
89
  columns: Columns,
@@ -187,6 +188,10 @@ export const LayoutDraftColumnFilterUnsuspend = (columnFilter) => ({
187
188
  export const LayoutDraftColumnFilterUnsuspendAll = () => ({
188
189
  type: LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL,
189
190
  });
191
+ export const LayoutDraftGridFilterSet = (gridFilter) => ({
192
+ type: LAYOUT_DRAFT_GRID_FILTER_SET,
193
+ gridFilter,
194
+ });
190
195
  const initialState = {
191
196
  Columns: EMPTY_ARRAY,
192
197
  CurrentLayout: null,
@@ -361,6 +366,19 @@ export const GridReducer = (state = initialState, action) => {
361
366
  });
362
367
  }
363
368
  }
369
+ case LAYOUT_DRAFT_GRID_FILTER_SET: {
370
+ const currentDraftLayout = state.CurrentLayout;
371
+ if (currentDraftLayout) {
372
+ const gridFilter = action.gridFilter;
373
+ const CurrentLayout = Object.assign(Object.assign({}, currentDraftLayout), { GridFilter: gridFilter });
374
+ if (!gridFilter) {
375
+ delete CurrentLayout.GridFilter;
376
+ }
377
+ return Object.assign({}, state, {
378
+ CurrentLayout,
379
+ });
380
+ }
381
+ }
364
382
  case LAYOUT_SELECT: {
365
383
  return Object.assign({}, state, {
366
384
  CurrentLayout: null,
@@ -2,6 +2,14 @@ import * as Redux from 'redux';
2
2
  import { AdaptableState } from '../../../types';
3
3
  import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
4
4
  import { ColumnFilter } from '../../types';
5
+ /**
6
+ * @ReduxAction A new caption / header has been set for a Column in the Layout
7
+ */
8
+ export declare const LAYOUT_SET_COLUMN_CAPTION = "LAYOUT_SET_COLUMN_CAPTION";
9
+ /**
10
+ * @ReduxAction Layout Module is ready
11
+ */
12
+ export declare const LAYOUT_READY = "LAYOUT_READY";
5
13
  /**
6
14
  * @ReduxAction A Layout has been added
7
15
  */
@@ -47,21 +55,37 @@ export declare const LAYOUT_COLUMN_FILTER_CLEAR_ALL = "LAYOUT_COLUMN_FILTER_CLEA
47
55
  */
48
56
  export declare const LAYOUT_COLUMN_FILTER_CLEAR = "LAYOUT_COLUMN_FILTER_CLEAR";
49
57
  /**
50
- * @ReduxAction Filter is suspended
58
+ * @ReduxAction Column Filter is suspended
51
59
  */
52
60
  export declare const LAYOUT_COLUMN_FILTER_SUSPEND = "LAYOUT_COLUMN_FILTER_SUSPEND";
53
61
  /**
54
- * @ReduxAction Filter is un-suspended, or activated
62
+ * @ReduxAction Column Filter is un-suspended, or activated
55
63
  */
56
64
  export declare const LAYOUT_COLUMN_FILTER_UNSUSPEND = "LAYOUT_COLUMN_FILTER_UNSUSPEND";
57
65
  /**
58
- * @ReduxAction Filter is suspended
66
+ * @ReduxAction All Column Filters are suspended
59
67
  */
60
68
  export declare const LAYOUT_COLUMN_FILTER_SUSPEND_ALL = "LAYOUT_COLUMN_FILTER_SUSPEND_ALL";
61
69
  /**
62
- * @ReduxAction Filter is un-suspended, or activated
70
+ * @ReduxAction All Column Filters are un-suspended, or activated
63
71
  */
64
72
  export declare const LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = "LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL";
73
+ /**
74
+ * @ReduxAction Grid Filter is un-suspended, or activated
75
+ */
76
+ export declare const LAYOUT_GRID_FILTER_SUSPEND = "LAYOUT_GRID_FILTER_SUSPEND";
77
+ /**
78
+ * @ReduxAction Grid Filter is un-suspended, or activated
79
+ */
80
+ export declare const LAYOUT_GRID_FILTER_UNSUSPEND = "LAYOUT_GRID_FILTER_UNSUSPEND";
81
+ /**
82
+ * @ReduxAction Edit Grid filter
83
+ */
84
+ export declare const LAYOUT_GRID_FILTER_SET = "LAYOUT_GRID_FILTER_SET";
85
+ /**
86
+ * @ReduxAction The Grid Filter has been cleared
87
+ */
88
+ export declare const LAYOUT_GRID_FILTER_CLEAR = "LAYOUT_GRID_FILTER_CLEAR";
65
89
  export interface LayoutColumnFilterAction extends Redux.Action {
66
90
  columnFilter: ColumnFilter;
67
91
  }
@@ -83,6 +107,12 @@ export interface LayoutColumnFilterUnSuspendAction extends LayoutColumnFilterAct
83
107
  }
84
108
  export interface LayoutColumnFilterUnSuspendAllAction extends Redux.Action {
85
109
  }
110
+ export interface LayoutGridFilterSuspendAction extends Redux.Action {
111
+ }
112
+ export interface LayoutGridFilterUnSuspendAction extends Redux.Action {
113
+ }
114
+ export interface LayoutGridFilterClearAction extends Redux.Action {
115
+ }
86
116
  export declare const LayoutColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutColumnFilterAddAction;
87
117
  export declare const LayoutColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutColumnFilterEditAction;
88
118
  export declare const LayoutColumnFilterSet: (columnFilter: ColumnFilter) => LayoutColumnFilterSetAction;
@@ -92,22 +122,13 @@ export declare const LayoutColumnFilterSuspend: (columnFilter: ColumnFilter) =>
92
122
  export declare const LayoutColumnFilterUnSuspend: (columnFilter: ColumnFilter) => LayoutColumnFilterUnSuspendAction;
93
123
  export declare const LayoutColumnFilterSuspendAll: () => LayoutColumnFilterSuspendAllAction;
94
124
  export declare const LayoutColumnFilterUnSuspendAll: () => LayoutColumnFilterUnSuspendAllAction;
95
- /**
96
- * @ReduxAction Edit Grid filter
97
- */
98
- export declare const LAYOUT_GRID_FILTER_SET = "LAYOUT_GRID_FILTER_SET";
99
125
  export interface LayoutGridFilterSetAction extends Redux.Action {
100
126
  gridFilter?: string;
101
127
  }
102
128
  export declare const LayoutGridFilterSet: (gridFilter?: string) => LayoutGridFilterSetAction;
103
- /**
104
- * @ReduxAction A new caption / header has been set for a Column in the Layout
105
- */
106
- export declare const LAYOUT_SET_COLUMN_CAPTION = "LAYOUT_SET_COLUMN_CAPTION";
107
- /**
108
- * @ReduxAction Layout Module is ready
109
- */
110
- export declare const LAYOUT_READY = "LAYOUT_READY";
129
+ export declare const LayoutGridFilterSuspend: () => LayoutGridFilterSuspendAction;
130
+ export declare const LayoutGridFilterUnSuspend: () => LayoutGridFilterUnSuspendAction;
131
+ export declare const LayoutGridFilterClear: () => LayoutGridFilterClearAction;
111
132
  export interface LayoutAction extends Redux.Action {
112
133
  layout: Layout;
113
134
  }
@@ -1,5 +1,13 @@
1
1
  import { EMPTY_ARRAY, EMPTY_STRING } from '../../Utilities/Constants/GeneralConstants';
2
2
  import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
3
+ /**
4
+ * @ReduxAction A new caption / header has been set for a Column in the Layout
5
+ */
6
+ export const LAYOUT_SET_COLUMN_CAPTION = 'LAYOUT_SET_COLUMN_CAPTION';
7
+ /**
8
+ * @ReduxAction Layout Module is ready
9
+ */
10
+ export const LAYOUT_READY = 'LAYOUT_READY';
3
11
  /**
4
12
  * @ReduxAction A Layout has been added
5
13
  */
@@ -45,21 +53,37 @@ export const LAYOUT_COLUMN_FILTER_CLEAR_ALL = 'LAYOUT_COLUMN_FILTER_CLEAR_ALL';
45
53
  */
46
54
  export const LAYOUT_COLUMN_FILTER_CLEAR = 'LAYOUT_COLUMN_FILTER_CLEAR';
47
55
  /**
48
- * @ReduxAction Filter is suspended
56
+ * @ReduxAction Column Filter is suspended
49
57
  */
50
58
  export const LAYOUT_COLUMN_FILTER_SUSPEND = 'LAYOUT_COLUMN_FILTER_SUSPEND';
51
59
  /**
52
- * @ReduxAction Filter is un-suspended, or activated
60
+ * @ReduxAction Column Filter is un-suspended, or activated
53
61
  */
54
62
  export const LAYOUT_COLUMN_FILTER_UNSUSPEND = 'LAYOUT_COLUMN_FILTER_UNSUSPEND';
55
63
  /**
56
- * @ReduxAction Filter is suspended
64
+ * @ReduxAction All Column Filters are suspended
57
65
  */
58
66
  export const LAYOUT_COLUMN_FILTER_SUSPEND_ALL = 'LAYOUT_COLUMN_FILTER_SUSPEND_ALL';
59
67
  /**
60
- * @ReduxAction Filter is un-suspended, or activated
68
+ * @ReduxAction All Column Filters are un-suspended, or activated
61
69
  */
62
70
  export const LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = 'LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL';
71
+ /**
72
+ * @ReduxAction Grid Filter is un-suspended, or activated
73
+ */
74
+ export const LAYOUT_GRID_FILTER_SUSPEND = 'LAYOUT_GRID_FILTER_SUSPEND';
75
+ /**
76
+ * @ReduxAction Grid Filter is un-suspended, or activated
77
+ */
78
+ export const LAYOUT_GRID_FILTER_UNSUSPEND = 'LAYOUT_GRID_FILTER_UNSUSPEND';
79
+ /**
80
+ * @ReduxAction Edit Grid filter
81
+ */
82
+ export const LAYOUT_GRID_FILTER_SET = 'LAYOUT_GRID_FILTER_SET';
83
+ /**
84
+ * @ReduxAction The Grid Filter has been cleared
85
+ */
86
+ export const LAYOUT_GRID_FILTER_CLEAR = 'LAYOUT_GRID_FILTER_CLEAR';
63
87
  // Column Filter Methods
64
88
  export const LayoutColumnFilterAdd = (columnFilter) => ({
65
89
  type: LAYOUT_COLUMN_FILTER_ADD,
@@ -94,22 +118,19 @@ export const LayoutColumnFilterSuspendAll = () => ({
94
118
  export const LayoutColumnFilterUnSuspendAll = () => ({
95
119
  type: LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL,
96
120
  });
97
- /**
98
- * @ReduxAction Edit Grid filter
99
- */
100
- export const LAYOUT_GRID_FILTER_SET = 'LAYOUT_GRID_FILTER_SET';
101
121
  export const LayoutGridFilterSet = (gridFilter) => ({
102
122
  type: LAYOUT_GRID_FILTER_SET,
103
123
  gridFilter,
104
124
  });
105
- /**
106
- * @ReduxAction A new caption / header has been set for a Column in the Layout
107
- */
108
- export const LAYOUT_SET_COLUMN_CAPTION = 'LAYOUT_SET_COLUMN_CAPTION';
109
- /**
110
- * @ReduxAction Layout Module is ready
111
- */
112
- export const LAYOUT_READY = 'LAYOUT_READY';
125
+ export const LayoutGridFilterSuspend = () => ({
126
+ type: LAYOUT_GRID_FILTER_SUSPEND,
127
+ });
128
+ export const LayoutGridFilterUnSuspend = () => ({
129
+ type: LAYOUT_GRID_FILTER_UNSUSPEND,
130
+ });
131
+ export const LayoutGridFilterClear = () => ({
132
+ type: LAYOUT_GRID_FILTER_CLEAR,
133
+ });
113
134
  export const LayoutAdd = (layout) => ({
114
135
  type: LAYOUT_ADD,
115
136
  layout,
@@ -330,6 +351,38 @@ export const LayoutReducer = (state = initialState, action) => {
330
351
  return layout;
331
352
  }) });
332
353
  }
354
+ case LAYOUT_GRID_FILTER_SUSPEND: {
355
+ const Layouts = state.Layouts.map((layout) => {
356
+ if (layout.Name === currentLayout.Name) {
357
+ return Object.assign(Object.assign({}, layout), { GridFilter: Object.assign(Object.assign({}, layout.GridFilter), { IsSuspended: true }) });
358
+ }
359
+ return layout;
360
+ });
361
+ return Object.assign(Object.assign({}, state), { Layouts });
362
+ }
363
+ case LAYOUT_GRID_FILTER_UNSUSPEND: {
364
+ const Layouts = state.Layouts.map((layout) => {
365
+ if (layout.Name === currentLayout.Name) {
366
+ return Object.assign(Object.assign({}, layout), { GridFilter: Object.assign(Object.assign({}, layout.GridFilter), { IsSuspended: false }) });
367
+ }
368
+ return layout;
369
+ });
370
+ return Object.assign(Object.assign({}, state), { Layouts });
371
+ }
372
+ case LAYOUT_GRID_FILTER_CLEAR: {
373
+ const Layouts = state.Layouts.map((layout) => {
374
+ let gridFilter = currentLayout.GridFilter;
375
+ if (gridFilter) {
376
+ gridFilter.IsSuspended = false;
377
+ gridFilter.Expression = '';
378
+ }
379
+ if (layout.Name === currentLayout.Name) {
380
+ return Object.assign(Object.assign({}, layout), { gridFilter });
381
+ }
382
+ return layout;
383
+ });
384
+ return Object.assign(Object.assign({}, state), { Layouts });
385
+ }
333
386
  default:
334
387
  return state;
335
388
  }
@@ -4,7 +4,7 @@ export declare function AddStateSource(stateObject: any, source: 'Config' | 'Use
4
4
  export declare function ProcessKeepUserDefinedRevision(configState: any, currentUserState: any): any;
5
5
  export declare function MergeStateFunction(oldState: any, newState: any): any;
6
6
  export declare function MergeState(oldState: any, newState: any): any;
7
- declare type TypeReducer = (state: AdaptableState, action: {
7
+ type TypeReducer = (state: AdaptableState, action: {
8
8
  type: string;
9
9
  State?: {
10
10
  [s: string]: ConfigState;
@@ -4,8 +4,8 @@ import { IAdaptableStore } from './Interface/IAdaptableStore';
4
4
  import { ConfigState } from '../../PredefinedConfig/ConfigState';
5
5
  import { AdaptableState } from '../../PredefinedConfig/AdaptableState';
6
6
  import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
7
- declare type EmitterCallback = (data?: any) => any;
8
- declare type EmitterAnyCallback = (eventName: string, data?: any) => any;
7
+ type EmitterCallback = (data?: any) => any;
8
+ type EmitterAnyCallback = (eventName: string, data?: any) => any;
9
9
  export declare const INIT_STATE = "INIT_STATE";
10
10
  export declare const LOAD_STATE = "LOAD_STATE";
11
11
  export interface ResetUserDataAction extends Redux.Action {
@@ -269,10 +269,10 @@ export class AdaptableStore {
269
269
  // this is the main function for dealing with Redux Actions which require additional functionality to be triggered.
270
270
  // Please document each use case where we have to use the Store rather than a module or a popup screen
271
271
  // This should ideally be the ONLY place where we LISTEN to store changes
272
- const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
272
+ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
273
273
  return function (next) {
274
274
  return function (action) {
275
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
275
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
276
276
  switch (action.type) {
277
277
  /*******************
278
278
  * NAMED QUERY ACTIONS
@@ -693,10 +693,10 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
693
693
  const actionTyped = action;
694
694
  const searchText = actionTyped.quickSearchText;
695
695
  if (StringExtensions.IsNotNullOrEmpty(searchText)) {
696
- adaptable.setAgQuickSearch(searchText);
696
+ adaptable.setAgGridQuickSearch(searchText);
697
697
  }
698
698
  else {
699
- adaptable.setAgQuickSearch('');
699
+ adaptable.setAgGridQuickSearch('');
700
700
  }
701
701
  }
702
702
  return returnAction;
@@ -718,7 +718,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
718
718
  }
719
719
  /**
720
720
  * Use Case: Column Filters have changed
721
- * Action: Apply grid filtering and fire associated events
721
+ * Action: Apply Column Filtering and fire associated events
722
722
  */
723
723
  case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
724
724
  case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
@@ -731,7 +731,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
731
731
  case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
732
732
  let returnAction;
733
733
  // needs to be called before 'next' so previous and next column filters are known
734
- const shouldTriggerGridFiltering = adaptable.api.columnFilterApi.internalApi.shouldNewColumnFilterTriggerGridFiltering(action);
734
+ const shouldTriggerColumnFiltering = adaptable.api.columnFilterApi.internalApi.shouldNewColumnFilterTriggerColumnFiltering(action);
735
735
  const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
736
736
  if (((_g = adaptable.adaptableOptions.layoutOptions) === null || _g === void 0 ? void 0 : _g.autoSaveLayouts) &&
737
737
  !currentLayout.IsReadOnly) {
@@ -773,11 +773,12 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
773
773
  draftLayoutAction = GridRedux.LayoutDraftColumnFilterUnsuspendAll();
774
774
  break;
775
775
  }
776
+ // GRID FILTER
776
777
  returnAction = next(draftLayoutAction);
777
778
  }
778
779
  setTimeout(() => {
779
- if (shouldTriggerGridFiltering) {
780
- adaptable.applyGridFiltering();
780
+ if (shouldTriggerColumnFiltering) {
781
+ adaptable.applyColumnFiltering();
781
782
  }
782
783
  }, 5);
783
784
  adaptable.api.columnFilterApi.internalApi.fireColumnFilterAppliedEvent();
@@ -786,13 +787,39 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
786
787
  }
787
788
  /**
788
789
  * Use Case: Grid Filter has changed
789
- * Action: Filter the Grid
790
+ * Action: Apply Grid Filtering and fire associated events
790
791
  */
791
- case LayoutRedux.LAYOUT_GRID_FILTER_SET: {
792
- let ret = next(action);
792
+ case LayoutRedux.LAYOUT_GRID_FILTER_SET:
793
+ case LayoutRedux.LAYOUT_GRID_FILTER_CLEAR:
794
+ case LayoutRedux.LAYOUT_GRID_FILTER_SUSPEND:
795
+ case LayoutRedux.LAYOUT_GRID_FILTER_UNSUSPEND: {
793
796
  setTimeout(() => adaptable.applyGridFiltering(), 5);
794
- adaptable.api.gridFilterApi.internalApi.fireGridFilterApplied();
795
- return ret;
797
+ adaptable.api.gridFilterApi.internalApi.fireGridFilterAppliedEvent();
798
+ adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
799
+ const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
800
+ let returnAction;
801
+ if (((_h = adaptable.adaptableOptions.layoutOptions) === null || _h === void 0 ? void 0 : _h.autoSaveLayouts) &&
802
+ !currentLayout.IsReadOnly) {
803
+ returnAction = action;
804
+ }
805
+ else {
806
+ // save in draft
807
+ switch (action.type) {
808
+ case LayoutRedux.LAYOUT_GRID_FILTER_SET:
809
+ returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { Expression: action.gridFilter }));
810
+ break;
811
+ case LayoutRedux.LAYOUT_GRID_FILTER_CLEAR:
812
+ returnAction = GridRedux.LayoutDraftGridFilterSet(null);
813
+ break;
814
+ case LayoutRedux.LAYOUT_GRID_FILTER_SUSPEND:
815
+ returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { IsSuspended: true }));
816
+ break;
817
+ case LayoutRedux.LAYOUT_GRID_FILTER_UNSUSPEND:
818
+ returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { IsSuspended: false }));
819
+ break;
820
+ }
821
+ }
822
+ return next(returnAction);
796
823
  }
797
824
  /*******************
798
825
  * DATA SOURCE ACTIONS
@@ -931,11 +958,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
931
958
  let returnAction = next(action);
932
959
  const newLayoutState = middlewareAPI.getState().Layout;
933
960
  adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, oldLayoutState, newLayoutState);
934
- const oldFilters = (_h = oldLayoutState.Layouts.find((l) => l.Name == oldLayoutState.CurrentLayout)) === null || _h === void 0 ? void 0 : _h.ColumnFilters;
935
- const newFilters = (_j = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout)) === null || _j === void 0 ? void 0 : _j.ColumnFilters;
961
+ const oldFilters = (_j = oldLayoutState.Layouts.find((l) => l.Name == oldLayoutState.CurrentLayout)) === null || _j === void 0 ? void 0 : _j.ColumnFilters;
962
+ const newFilters = (_k = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout)) === null || _k === void 0 ? void 0 : _k.ColumnFilters;
936
963
  // Tell Grid to apply filtering if filters have been changed in a loaded Layout
937
964
  if (adaptable.api.columnFilterApi.internalApi.areColumnFiltersDifferent(oldFilters, newFilters)) {
938
- adaptable.applyGridFiltering();
965
+ adaptable.applyColumnFiltering();
939
966
  }
940
967
  if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
941
968
  returnAction.type == LayoutRedux.LAYOUT_DELETE ||
@@ -949,7 +976,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
949
976
  // tell grid the layout has been selected
950
977
  adaptable.setLayout(currentLayout);
951
978
  }
952
- if (!((_k = adaptable.adaptableOptions.layoutOptions) === null || _k === void 0 ? void 0 : _k.autoSaveLayouts)) {
979
+ if (!((_l = adaptable.adaptableOptions.layoutOptions) === null || _l === void 0 ? void 0 : _l.autoSaveLayouts)) {
953
980
  middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
954
981
  }
955
982
  }
@@ -957,7 +984,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
957
984
  returnAction.type == LayoutRedux.LAYOUT_SAVE) {
958
985
  const actionTyped = action;
959
986
  // if autosave is false
960
- if (!((_l = adaptable.adaptableOptions.layoutOptions) === null || _l === void 0 ? void 0 : _l.autoSaveLayouts)) {
987
+ if (!((_m = adaptable.adaptableOptions.layoutOptions) === null || _m === void 0 ? void 0 : _m.autoSaveLayouts)) {
961
988
  // and the current layout is saved, make sure we also update the draft
962
989
  if (actionTyped.layout.Name === newLayoutState.CurrentLayout) {
963
990
  middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(actionTyped.layout));
@@ -1594,4 +1621,4 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1594
1621
  }
1595
1622
  };
1596
1623
  };
1597
- };
1624
+ });
@@ -50,7 +50,6 @@ export declare abstract class AdaptableModuleBase implements IModule {
50
50
  createColumnMenuItemClickFunction(Label: string, Icon: AdaptableSystemIconName, ClickFunction: () => void): MenuItemDoClickFunction;
51
51
  createColumnMenuItemReduxAction(Label: string, Icon: AdaptableSystemIconName, Action: Action): MenuItemDoReduxAction;
52
52
  createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: AdaptableSystemIconName, PopupParams?: ModuleParams): MenuItemShowPopup;
53
- canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'filter' | 'quickfilter' | 'numeric'): boolean;
54
53
  getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
55
54
  getModuleNamedQueryReferences(): string[];
56
55
  getModuleCalculatedColumnReferences(): CalculatedColumn[];
@@ -1,4 +1,3 @@
1
- import { StringExtensions } from '../Utilities/Extensions/StringExtensions';
2
1
  import { MenuItemShowPopup, MenuItemDoReduxAction, MenuItemDoClickFunction, } from '../Utilities/MenuItem';
3
2
  import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
4
3
  /**
@@ -117,35 +116,6 @@ export class AdaptableModuleBase {
117
116
  createColumnMenuItemShowPopup(Label, ComponentName, Icon, PopupParams) {
118
117
  return new MenuItemShowPopup(Label, this.moduleInfo.ModuleName, ComponentName, Icon, true, PopupParams);
119
118
  }
120
- canCreateColumnMenuItem(column, minimumAccessLevel, functionType) {
121
- if (!this.hasRequiredAccessLevel(minimumAccessLevel)) {
122
- return false;
123
- }
124
- if (!column) {
125
- return false;
126
- }
127
- if (StringExtensions.IsNotNullOrEmpty(functionType)) {
128
- if (functionType == 'sort' && !column.isSparkline) {
129
- return column.sortable;
130
- }
131
- else if (functionType == 'editable') {
132
- return !column.readOnly;
133
- }
134
- else if (functionType == 'style') {
135
- return !column.isSparkline;
136
- }
137
- else if (functionType == 'numeric') {
138
- return column.dataType == 'Number';
139
- }
140
- else if (functionType == 'filter') {
141
- return column.filterable;
142
- }
143
- else if (functionType == 'quickfilter') {
144
- return this.api.columnApi.internalApi.usesAdaptableQuickFilter(column.columnId);
145
- }
146
- }
147
- return true;
148
- }
149
119
  getTeamSharingAction() {
150
120
  return undefined;
151
121
  }
@@ -40,7 +40,7 @@ export class AlertModule extends AdaptableModuleBase {
40
40
  });
41
41
  this.api.eventApi.on('GridDataChanged', (gridDataChangedInfo) => {
42
42
  if (gridDataChangedInfo.rowTrigger === 'Edit') {
43
- // changed row alerts should be handled by standard 'Any' ('AnyChange') Predicate
43
+ // changed row alerts should be handled by standard 'AnyChange' Predicate
44
44
  return;
45
45
  }
46
46
  this.handleGridDataChanged(gridDataChangedInfo);
@@ -22,6 +22,7 @@ export class ChartingModule extends AdaptableModuleBase {
22
22
  }
23
23
  if (!('Name' in newChartDefinition)) {
24
24
  // default to chartId
25
+ // @ts-ignore possible because First iteration had no 'Name' and model was under 'model' key (lowercase)
25
26
  newChartDefinition.Name = newChartDefinition.Model.chartId;
26
27
  }
27
28
  return newChartDefinition;
@@ -87,15 +88,17 @@ export class ChartingModule extends AdaptableModuleBase {
87
88
  `Row end index: ${chart.Model.cellRange.rowEndIndex}`,
88
89
  chart.Model.cellRange.columnStart &&
89
90
  `Column start: ${typeof chart.Model.cellRange.columnStart === 'string'
90
- ? chart.Model.cellRange.columnStart
91
- : chart.Model.cellRange.columnStart.getColId()}`,
91
+ ? this.api.columnApi.getFriendlyNameForColumnId(chart.Model.cellRange.columnStart)
92
+ : this.api.columnApi.getFriendlyNameForColumnId(chart.Model.cellRange.columnStart.getColId())}`,
92
93
  chart.Model.cellRange.columnEnd &&
93
94
  `Column start: ${typeof chart.Model.cellRange.columnEnd === 'string'
94
- ? chart.Model.cellRange.columnEnd
95
- : chart.Model.cellRange.columnEnd.getColId()}`,
95
+ ? this.api.columnApi.getFriendlyNameForColumnId(chart.Model.cellRange.columnEnd)
96
+ : this.api.columnApi.getFriendlyNameForColumnId(chart.Model.cellRange.columnEnd.getColId())}`,
96
97
  ((_a = chart.Model.cellRange.columns) === null || _a === void 0 ? void 0 : _a.length) &&
97
98
  `Columns ${chart.Model.cellRange.columns
98
- .map((column) => (typeof column === 'string' ? column : column.getColId()))
99
+ .map((column) => typeof column === 'string'
100
+ ? this.api.columnApi.getFriendlyNameForColumnId(column)
101
+ : this.api.columnApi.getFriendlyNameForColumnId(column.getColId()))
99
102
  .join(', ')}`,
100
103
  ].filter(Boolean),
101
104
  },
@@ -8,6 +8,7 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
8
8
  import { ColumnFilter } from '../types';
9
9
  export declare class ColumnFilterModule extends AdaptableModuleBase implements IModule {
10
10
  constructor(api: AdaptableApi);
11
+ setModuleEntitlement(): void;
11
12
  getModuleAdaptableObjects(): AdaptableObject[];
12
13
  getExplicitlyReferencedColumnIds(columnFilter: ColumnFilter): string[];
13
14
  hasNamedQueryReferences(): boolean;
@@ -15,6 +16,7 @@ export declare class ColumnFilterModule extends AdaptableModuleBase implements I
15
16
  handleAdaptableReady(): void;
16
17
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
17
18
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
19
+ private getExistingColumnFilter;
18
20
  getTeamSharingAction(): TeamSharingImportInfo<ColumnFilter>;
19
21
  toViewCompact(filter: ColumnFilter): AdaptableObjectCompactView;
20
22
  toView(filter: ColumnFilter): AdaptableObjectView;