@adaptabletools/adaptable 13.1.1 → 14.0.0-canary.1

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 (382) hide show
  1. package/README.md +1 -1
  2. package/base.css +7 -2
  3. package/base.css.map +1 -1
  4. package/bundle.cjs.js +180 -177
  5. package/index.css +11 -2
  6. package/index.css.map +1 -1
  7. package/package.json +2 -2
  8. package/publishTimestamp.d.ts +1 -1
  9. package/publishTimestamp.js +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
  11. package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -9
  13. package/src/AdaptableOptions/AlertOptions.d.ts +6 -1
  14. package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +8 -3
  18. package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +6 -4
  19. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
  20. package/src/Api/ActionApi.d.ts +14 -3
  21. package/src/Api/AdaptableApi.d.ts +0 -6
  22. package/src/Api/AlertApi.d.ts +127 -92
  23. package/src/Api/BulkUpdateApi.d.ts +9 -2
  24. package/src/Api/CalculatedColumnApi.d.ts +26 -21
  25. package/src/Api/CellSummaryApi.d.ts +15 -8
  26. package/src/Api/ChartingApi.d.ts +9 -2
  27. package/src/Api/ColumnApi.d.ts +153 -115
  28. package/src/Api/ConfigApi.d.ts +18 -18
  29. package/src/Api/CustomSortApi.d.ts +36 -7
  30. package/src/Api/DashboardApi.d.ts +12 -5
  31. package/src/Api/DataChangeHistoryApi.d.ts +8 -1
  32. package/src/Api/DataSetApi.d.ts +13 -3
  33. package/src/Api/EventApi.d.ts +2 -2
  34. package/src/Api/ExportApi.d.ts +30 -13
  35. package/src/Api/FilterApi.d.ts +74 -62
  36. package/src/Api/FlashingCellApi.d.ts +25 -9
  37. package/src/Api/FormatColumnApi.d.ts +76 -95
  38. package/src/Api/FreeTextColumnApi.d.ts +53 -21
  39. package/src/Api/GridApi.d.ts +57 -22
  40. package/src/Api/Implementation/ActionApiImpl.d.ts +9 -3
  41. package/src/Api/Implementation/ActionApiImpl.js +23 -11
  42. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  43. package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
  44. package/src/Api/Implementation/AlertApiImpl.d.ts +57 -28
  45. package/src/Api/Implementation/AlertApiImpl.js +179 -197
  46. package/src/Api/Implementation/ApiBase.d.ts +43 -2
  47. package/src/Api/Implementation/ApiBase.js +129 -5
  48. package/src/Api/Implementation/ApplicationApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
  50. package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -1
  51. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +7 -2
  52. package/src/Api/Implementation/CalculatedColumnApiImpl.js +28 -37
  53. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -0
  54. package/src/Api/Implementation/CellSummaryApiImpl.js +6 -1
  55. package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -2
  56. package/src/Api/Implementation/ChartingApiImpl.js +10 -4
  57. package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -6
  58. package/src/Api/Implementation/ColumnApiImpl.js +184 -195
  59. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  60. package/src/Api/Implementation/ConfigApiImpl.js +1 -1
  61. package/src/Api/Implementation/CustomSortApiImpl.d.ts +16 -1
  62. package/src/Api/Implementation/CustomSortApiImpl.js +33 -7
  63. package/src/Api/Implementation/DashboardApiImpl.d.ts +6 -1
  64. package/src/Api/Implementation/DashboardApiImpl.js +11 -12
  65. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  66. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
  67. package/src/Api/Implementation/DataSetApiImpl.d.ts +6 -0
  68. package/src/Api/Implementation/DataSetApiImpl.js +17 -8
  69. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ExportApiImpl.d.ts +9 -1
  71. package/src/Api/Implementation/ExportApiImpl.js +34 -68
  72. package/src/Api/Implementation/FilterApiImpl.d.ts +10 -1
  73. package/src/Api/Implementation/FilterApiImpl.js +61 -157
  74. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -0
  75. package/src/Api/Implementation/FlashingCellApiImpl.js +23 -26
  76. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +20 -15
  77. package/src/Api/Implementation/FormatColumnApiImpl.js +62 -153
  78. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +13 -5
  79. package/src/Api/Implementation/FreeTextColumnApiImpl.js +42 -27
  80. package/src/Api/Implementation/GridApiImpl.d.ts +15 -1
  81. package/src/Api/Implementation/GridApiImpl.js +117 -61
  82. package/src/Api/Implementation/LayoutApiImpl.d.ts +8 -7
  83. package/src/Api/Implementation/LayoutApiImpl.js +29 -112
  84. package/src/Api/Implementation/PluginsApiImpl.d.ts +1 -1
  85. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -1
  86. package/src/Api/Implementation/PlusMinusApiImpl.js +5 -0
  87. package/src/Api/Implementation/PredicateApiImpl.d.ts +8 -5
  88. package/src/Api/Implementation/PredicateApiImpl.js +33 -98
  89. package/src/Api/Implementation/QueryApiImpl.d.ts +7 -2
  90. package/src/Api/Implementation/QueryApiImpl.js +22 -44
  91. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -0
  92. package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
  93. package/src/Api/Implementation/QuickSearchApiImpl.d.ts +1 -0
  94. package/src/Api/Implementation/QuickSearchApiImpl.js +5 -0
  95. package/src/Api/Implementation/ScheduleApiImpl.d.ts +27 -0
  96. package/src/Api/Implementation/ScheduleApiImpl.js +86 -17
  97. package/src/Api/Implementation/ScopeApiImpl.js +9 -7
  98. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +2 -0
  99. package/src/Api/Implementation/SettingsPanelApiImpl.js +9 -0
  100. package/src/Api/Implementation/ShortcutApiImpl.d.ts +8 -1
  101. package/src/Api/Implementation/ShortcutApiImpl.js +25 -4
  102. package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -0
  103. package/src/Api/Implementation/SmartEditApiImpl.js +5 -0
  104. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +14 -11
  105. package/src/Api/Implementation/StyledColumnApiImpl.js +40 -185
  106. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +6 -1
  107. package/src/Api/Implementation/SystemStatusApiImpl.js +19 -12
  108. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +6 -5
  109. package/src/Api/Implementation/TeamSharingApiImpl.js +15 -25
  110. package/src/Api/Implementation/ThemeApiImpl.d.ts +5 -1
  111. package/src/Api/Implementation/ThemeApiImpl.js +23 -4
  112. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
  113. package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -4
  114. package/src/Api/Internal/ActionInternalApi.d.ts +23 -0
  115. package/src/Api/Internal/ActionInternalApi.js +198 -0
  116. package/src/Api/{Implementation/InternalApiImpl.d.ts → Internal/AdaptableInternalApi.d.ts} +7 -57
  117. package/src/Api/{Implementation/InternalApiImpl.js → Internal/AdaptableInternalApi.js} +28 -306
  118. package/src/Api/Internal/AlertInternalApi.d.ts +148 -0
  119. package/src/Api/Internal/AlertInternalApi.js +484 -0
  120. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +24 -0
  121. package/src/Api/Internal/CalculatedColumnInternalApi.js +57 -0
  122. package/src/Api/Internal/ColumnInternalApi.d.ts +33 -0
  123. package/src/Api/Internal/ColumnInternalApi.js +67 -0
  124. package/src/Api/Internal/CustomSortInternalApi.d.ts +6 -0
  125. package/src/Api/Internal/CustomSortInternalApi.js +11 -0
  126. package/src/Api/Internal/DashboardInternalApi.d.ts +8 -0
  127. package/src/Api/Internal/DashboardInternalApi.js +26 -0
  128. package/src/Api/Internal/DataSetInternalApi.d.ts +9 -0
  129. package/src/Api/Internal/DataSetInternalApi.js +20 -0
  130. package/src/Api/Internal/ExportInternalApi.d.ts +11 -0
  131. package/src/Api/Internal/ExportInternalApi.js +73 -0
  132. package/src/Api/Internal/FilterInternalApi.d.ts +58 -0
  133. package/src/Api/Internal/FilterInternalApi.js +194 -0
  134. package/src/Api/Internal/FlashingCellInternalApi.d.ts +12 -0
  135. package/src/Api/Internal/FlashingCellInternalApi.js +56 -0
  136. package/src/Api/Internal/FormatColumnInternalApi.d.ts +109 -0
  137. package/src/Api/Internal/FormatColumnInternalApi.js +225 -0
  138. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +15 -0
  139. package/src/Api/Internal/FreeTextColumnInternalApi.js +44 -0
  140. package/src/Api/Internal/GridInternalApi.d.ts +82 -0
  141. package/src/Api/Internal/GridInternalApi.js +252 -0
  142. package/src/Api/Internal/LayoutInternalApi.d.ts +48 -0
  143. package/src/Api/Internal/LayoutInternalApi.js +163 -0
  144. package/src/Api/Internal/PredicateInternalApi.d.ts +37 -0
  145. package/src/Api/Internal/PredicateInternalApi.js +140 -0
  146. package/src/Api/Internal/QueryInternalApi.d.ts +17 -0
  147. package/src/Api/Internal/QueryInternalApi.js +57 -0
  148. package/src/Api/Internal/QueryLanguageInternalApi.d.ts +11 -0
  149. package/src/Api/Internal/QueryLanguageInternalApi.js +34 -0
  150. package/src/Api/Internal/StyledColumnInternalApi.d.ts +59 -0
  151. package/src/Api/Internal/StyledColumnInternalApi.js +249 -0
  152. package/src/Api/Internal/SystemStatusInternalApi.d.ts +11 -0
  153. package/src/Api/Internal/SystemStatusInternalApi.js +27 -0
  154. package/src/Api/Internal/TeamSharingInternalApi.d.ts +20 -0
  155. package/src/Api/Internal/TeamSharingInternalApi.js +66 -0
  156. package/src/Api/LayoutApi.d.ts +28 -44
  157. package/src/Api/PlusMinusApi.d.ts +9 -2
  158. package/src/Api/PredicateApi.d.ts +26 -10
  159. package/src/Api/QueryApi.d.ts +23 -18
  160. package/src/Api/QuickSearchApi.d.ts +5 -1
  161. package/src/Api/ScheduleApi.d.ts +97 -16
  162. package/src/Api/SettingsPanelApi.d.ts +12 -1
  163. package/src/Api/ShortcutApi.d.ts +28 -7
  164. package/src/Api/SmartEditApi.d.ts +8 -1
  165. package/src/Api/StyledColumnApi.d.ts +34 -54
  166. package/src/Api/SystemStatusApi.d.ts +12 -6
  167. package/src/Api/TeamSharingApi.d.ts +4 -17
  168. package/src/Api/ThemeApi.d.ts +25 -6
  169. package/src/Api/UserInterfaceApi.d.ts +13 -2
  170. package/src/PredefinedConfig/AlertState.d.ts +1 -1
  171. package/src/PredefinedConfig/Common/AdaptableColumn.js +4 -0
  172. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +0 -5
  173. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +10 -0
  174. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  175. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +22 -1
  176. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -0
  177. package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -3
  178. package/src/PredefinedConfig/Common/FDC3Context.d.ts +0 -5
  179. package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
  180. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  181. package/src/PredefinedConfig/StyledColumnState.d.ts +9 -0
  182. package/src/PredefinedConfig/SystemState.d.ts +5 -0
  183. package/src/Redux/ActionsReducers/GridRedux.d.ts +18 -0
  184. package/src/Redux/ActionsReducers/GridRedux.js +65 -2
  185. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  186. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  187. package/src/Redux/Store/AdaptableStore.js +34 -26
  188. package/src/Strategy/AdaptableModuleBase.js +6 -6
  189. package/src/Strategy/AlertModule.d.ts +1 -6
  190. package/src/Strategy/AlertModule.js +37 -92
  191. package/src/Strategy/BulkUpdateModule.js +3 -3
  192. package/src/Strategy/CalculatedColumnModule.js +6 -6
  193. package/src/Strategy/ChartingModule.js +1 -1
  194. package/src/Strategy/CustomSortModule.js +4 -4
  195. package/src/Strategy/DashboardModule.js +2 -2
  196. package/src/Strategy/DataSetModule.js +1 -1
  197. package/src/Strategy/ExportModule.js +4 -4
  198. package/src/Strategy/FilterModule.js +7 -6
  199. package/src/Strategy/FlashingCellModule.d.ts +2 -0
  200. package/src/Strategy/FlashingCellModule.js +21 -5
  201. package/src/Strategy/FormatColumnModule.d.ts +1 -0
  202. package/src/Strategy/FormatColumnModule.js +29 -3
  203. package/src/Strategy/FreeTextColumnModule.js +3 -3
  204. package/src/Strategy/LayoutModule.js +18 -18
  205. package/src/Strategy/PlusMinusModule.js +2 -2
  206. package/src/Strategy/QueryModule.js +3 -3
  207. package/src/Strategy/ScheduleModule.js +10 -12
  208. package/src/Strategy/ShortcutModule.js +5 -5
  209. package/src/Strategy/SmartEditModule.js +3 -3
  210. package/src/Strategy/StyledColumnModule.js +9 -7
  211. package/src/Strategy/TeamSharingModule.js +3 -3
  212. package/src/Strategy/ThemeModule.js +1 -1
  213. package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -1
  214. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
  215. package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -1
  216. package/src/Strategy/Utilities/getRuleViewItems.d.ts +1 -1
  217. package/src/Strategy/Utilities/getRuleViewItems.js +4 -3
  218. package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
  219. package/src/Strategy/Utilities/updateSingleToMultiplePredicates.d.ts +5 -0
  220. package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +12 -0
  221. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -3
  222. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +8 -0
  223. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -0
  224. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +73 -78
  225. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +3 -1
  226. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +9 -5
  227. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +12 -3
  228. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  229. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +133 -28
  230. package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
  231. package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
  232. package/src/Utilities/Helpers/FormatHelper.js +13 -10
  233. package/src/Utilities/ObjectFactory.js +8 -6
  234. package/src/Utilities/Services/CalculatedColumnExpressionService.js +1 -1
  235. package/src/Utilities/Services/ChartingService.js +2 -2
  236. package/src/Utilities/Services/DataService.js +1 -1
  237. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +2 -1
  238. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -5
  239. package/src/Utilities/Services/ModuleService.js +1 -1
  240. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  241. package/src/Utilities/Services/ReportService.js +3 -3
  242. package/src/Utilities/Services/RowEditService.d.ts +0 -19
  243. package/src/Utilities/Services/RowEditService.js +4 -161
  244. package/src/Utilities/Services/TeamSharingService.js +3 -3
  245. package/src/Utilities/Services/ValidationService.js +9 -7
  246. package/src/Utilities/logDeprecation.d.ts +3 -0
  247. package/src/Utilities/logDeprecation.js +30 -0
  248. package/src/View/AdaptablePopover/index.d.ts +2 -0
  249. package/src/View/AdaptablePopover/index.js +6 -2
  250. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +4 -2
  251. package/src/View/Alert/AlertEntityRow.js +1 -1
  252. package/src/View/Alert/AlertStatusSubPanel.js +1 -1
  253. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -2
  254. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
  255. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
  256. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  257. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -2
  258. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  259. package/src/View/Alert/Wizard/isValidAlertRules.js +4 -3
  260. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
  261. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
  262. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +25 -4
  263. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  264. package/src/View/Components/Charting/ChartingViewPanel.d.ts +2 -2
  265. package/src/View/Components/Charting/ChartingViewPanel.js +17 -3
  266. package/src/View/Components/Charting/ChartingWizard/ChartingWizard.js +2 -2
  267. package/src/View/Components/Charting/ChartingWizard/SettingsSection.js +1 -1
  268. package/src/View/Components/Charting/DeleteChartButton.d.ts +7 -0
  269. package/src/View/Components/Charting/DeleteChartButton.js +12 -0
  270. package/src/View/Components/Charting/EditChartButton.d.ts +8 -0
  271. package/src/View/Components/Charting/EditChartButton.js +21 -0
  272. package/src/View/Components/EntityRulesEditor/PredicatesEditor.d.ts +16 -0
  273. package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +86 -0
  274. package/src/View/Components/EntityRulesEditor/Utilities.d.ts +6 -0
  275. package/src/View/Components/EntityRulesEditor/Utilities.js +21 -0
  276. package/src/View/Components/EntityRulesEditor/index.d.ts +4 -9
  277. package/src/View/Components/EntityRulesEditor/index.js +16 -90
  278. package/src/View/Components/ExpressionWizard.js +1 -1
  279. package/src/View/Components/ExternalRenderer.js +3 -1
  280. package/src/View/Components/FilterForm/FilterForm.js +3 -3
  281. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -5
  282. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +5 -6
  283. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  284. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
  285. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  286. package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +2 -12
  287. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +46 -39
  288. package/src/View/Components/PredicateEditor/PredicateEditor.js +5 -5
  289. package/src/View/Components/ScopeComponent.js +3 -3
  290. package/src/View/Components/Selectors/ColumnValueSelector.js +1 -1
  291. package/src/View/Components/StyleComponent.js +42 -14
  292. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  293. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  294. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
  295. package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
  296. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  297. package/src/View/Dashboard/Dashboard.js +1 -1
  298. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  299. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -1
  300. package/src/View/DataSet/DataSetSelector.js +1 -1
  301. package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
  302. package/src/View/DataSet/DataSetViewPanel.js +1 -1
  303. package/src/View/Export/ExportSelector.js +2 -2
  304. package/src/View/Export/ExportViewPanel.js +2 -2
  305. package/src/View/Export/ReportExportDropdown.js +1 -1
  306. package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
  307. package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
  308. package/src/View/Filter/FilterSummary.js +1 -1
  309. package/src/View/Filter/FilterViewPanel.js +1 -1
  310. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
  311. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -2
  312. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -3
  313. package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
  314. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +11 -5
  315. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -2
  316. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +8 -6
  317. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -4
  318. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +5 -19
  319. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  320. package/src/View/GridInfo/GridInfoPopup.js +6 -6
  321. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  322. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
  323. package/src/View/Layout/LayoutViewPanel.js +1 -1
  324. package/src/View/Layout/PivotDetailsPopoup.js +1 -1
  325. package/src/View/Layout/SaveLayoutButton.js +1 -1
  326. package/src/View/Layout/Wizard/LayoutWizard.js +2 -2
  327. package/src/View/Layout/Wizard/sections/AggregationsSection.js +4 -4
  328. package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
  329. package/src/View/Layout/Wizard/sections/FilterSection.js +2 -2
  330. package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
  331. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
  332. package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
  333. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
  334. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  335. package/src/View/Query/ExpandedQueryPopup.js +1 -1
  336. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  337. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -2
  338. package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
  339. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
  340. package/src/View/StatusBar/StatusBarPanel.js +1 -1
  341. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -2
  342. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +9 -0
  343. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
  344. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.d.ts +5 -0
  345. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +26 -0
  346. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.d.ts +5 -0
  347. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +23 -0
  348. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +8 -0
  349. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +25 -0
  350. package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.d.ts → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts} +2 -2
  351. package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.js → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js} +21 -19
  352. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.d.ts +1 -0
  353. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -0
  354. package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
  355. package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
  356. package/src/agGrid/ActionColumnRenderer.js +1 -1
  357. package/src/agGrid/Adaptable.d.ts +5 -3
  358. package/src/agGrid/Adaptable.js +106 -121
  359. package/src/agGrid/FilterWrapper.js +3 -3
  360. package/src/agGrid/FloatingFilterWrapper.js +3 -3
  361. package/src/agGrid/PercentBarRenderer.js +6 -6
  362. package/src/agGrid/agGridHelper.js +3 -3
  363. package/src/agGrid/agGridMenuHelper.js +3 -3
  364. package/src/agGrid/weightedAverage.js +2 -2
  365. package/src/components/ExpressionEditor/BaseEditorInput.js +92 -7
  366. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -1
  367. package/src/components/OverlayTrigger/index.js +6 -2
  368. package/src/components/OverlayTrigger/utils.d.ts +1 -1
  369. package/src/components/OverlayTrigger/utils.js +4 -4
  370. package/src/components/icons/index.js +2 -0
  371. package/src/components/icons/open-in-new.d.ts +3 -0
  372. package/src/components/icons/open-in-new.js +7 -0
  373. package/src/env.js +1 -3
  374. package/src/metamodel/adaptable.metamodel.d.ts +30 -10
  375. package/src/metamodel/adaptable.metamodel.js +1 -1
  376. package/src/parser/src/parser.js +644 -382
  377. package/src/parser/src/types.d.ts +9 -0
  378. package/src/types.d.ts +3 -3
  379. package/version.d.ts +1 -1
  380. package/version.js +1 -1
  381. package/src/Api/InternalApi.d.ts +0 -155
  382. package/src/Api/InternalApi.js +0 -2
@@ -42,6 +42,11 @@ export interface NumberFormatterOptions extends BaseFormatterOptions {
42
42
  * Suffix to use after the number
43
43
  */
44
44
  Suffix?: string;
45
+ /**
46
+ * Replaces the value. Usefull when in combination with a Condition
47
+ * e.g. replace null/undefiend with '-'
48
+ */
49
+ Content?: string | number;
45
50
  /**
46
51
  * Multiplier to use on the number
47
52
  */
@@ -84,4 +89,9 @@ export interface StringFormatterOptions extends BaseFormatterOptions {
84
89
  * Suffix to use after the cell text
85
90
  */
86
91
  Suffix?: string;
92
+ /**
93
+ * Replaces the value. Usefull when in combination with a Condition
94
+ * e.g. replace null/undefiend with 'N/A'
95
+ */
96
+ Content?: string;
87
97
  }
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
51
51
  /**
52
52
  * All AdapTable internal icon names
53
53
  */
54
- export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
54
+ export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'open-in-new' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
@@ -1,4 +1,5 @@
1
1
  import { TypeUuid } from '../Uuid';
2
+ import { AdaptableScope } from './AdaptableScope';
2
3
  /**
3
4
  * Base interface which all other Adaptable State-related objects extend
4
5
  */
@@ -21,6 +22,26 @@ export interface AdaptableObject {
21
22
  Tags?: AdaptableObjectTag[];
22
23
  }
23
24
  /**
24
- * AdaptableObjectTag Object Tague - currently supporting only plain string values, but open for future extensions, if ever needed.
25
+ * AdaptableObjectTag Object Tag - currently supporting only plain string values, but open for future extensions, if ever needed.
25
26
  */
26
27
  export declare type AdaptableObjectTag = string;
28
+ /**
29
+ * Lookup criteria for finding specific AdaptableObjects. All given criteria will be composed with an AND operator.
30
+ */
31
+ export interface AdaptableObjectLookupCriteria {
32
+ /**
33
+ * AdaptableScope
34
+ */
35
+ scope?: AdaptableScope;
36
+ /**
37
+ * AdaptableObjectTag
38
+ */
39
+ tag?: AdaptableObjectTag;
40
+ /**
41
+ * Technical IDs of Adaptable Objects
42
+ */
43
+ ids?: AdaptableObject['Uuid'][];
44
+ }
45
+ export interface AdaptableObjectWithScope extends AdaptableObject {
46
+ Scope: AdaptableScope;
47
+ }
@@ -112,6 +112,9 @@ export declare const SystemFilterPredicateIds: string[];
112
112
  export declare const SystemAlertPredicateIds: string[];
113
113
  export declare const SystemFormatColumnPredicateIds: string[];
114
114
  export declare const SystemFlashingCellPredicateIds: string[];
115
+ /**
116
+ * Column Filter Definition for a specific Column
117
+ */
115
118
  export interface ColumnFilterDef {
116
119
  dataType: AdaptableColumnDataType;
117
120
  predicate: AdaptablePredicateDef;
@@ -553,7 +553,9 @@ exports.SystemPredicateDefs = [
553
553
  moduleScope: ['alert'],
554
554
  handler: ({ value, column, api, node }) => {
555
555
  return (column === null || column === void 0 ? void 0 : column.isPrimaryKey)
556
- ? api.columnApi.getDistinctRawValuesForColumn(column.columnId, node).includes(value)
556
+ ? api.gridApi.internalApi
557
+ .getDistinctRawValuesForColumn(column.columnId, node)
558
+ .includes(value)
557
559
  : false;
558
560
  },
559
561
  },
@@ -564,7 +566,7 @@ exports.SystemPredicateDefs = [
564
566
  moduleScope: ['alert'],
565
567
  handler: ({ value, api, column, node }) => {
566
568
  const distinctValues = column
567
- ? api.columnApi.getDistinctRawValuesForColumn(column.columnId, node)
569
+ ? api.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
568
570
  : [];
569
571
  return !distinctValues.includes(value);
570
572
  },
@@ -576,7 +578,7 @@ exports.SystemPredicateDefs = [
576
578
  moduleScope: ['alert'],
577
579
  handler: ({ value, api, column, node }) => {
578
580
  const distinctValues = column
579
- ? api.columnApi.getDistinctRawValuesForColumn(column.columnId, node)
581
+ ? api.gridApi.internalApi.getDistinctRawValuesForColumn(column.columnId, node)
580
582
  : [];
581
583
  return distinctValues.includes(value);
582
584
  },
@@ -25,11 +25,6 @@ export interface FDC3Context {
25
25
  id?: {
26
26
  [key: string]: string | undefined;
27
27
  };
28
- /**
29
- * @internal
30
- * Custom properties and metadata. This can be extended in specific context object.
31
- */
32
- [key: string]: unknown;
33
28
  }
34
29
  /**
35
30
  * FDC3 Context to define a financial Instrument
@@ -12,7 +12,7 @@ export interface FlashingCellDefinitionPredicate extends AdaptablePredicate {
12
12
  * The Flashing Cell Rule - either an AdaptablePredicate or an AdaptableQuery
13
13
  */
14
14
  export declare type FlashingCellRule = XOR<{
15
- Predicate: FlashingCellDefinitionPredicate;
15
+ Predicates: FlashingCellDefinitionPredicate[];
16
16
  }, AdaptableBooleanQuery>;
17
17
  /**
18
18
  * Predefined Configuration for Flashing Cell module
@@ -54,7 +54,7 @@ export interface FormatColumn extends SuspendableObject {
54
54
  * The Format Column Rule - can be either a Predicate or a BooleanExpression
55
55
  */
56
56
  export declare type FormatColumnRule = XOR<{
57
- Predicate: FormatColumnPredicate;
57
+ Predicates: FormatColumnPredicate[];
58
58
  }, AdaptableBooleanQuery>;
59
59
  export interface FormatColumnPredicate extends AdaptablePredicate {
60
60
  PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
@@ -30,6 +30,9 @@ export interface StyledColumn extends SuspendableObject {
30
30
  * Renders a Checkbox in a boolean column
31
31
  */
32
32
  CheckBoxStyle?: boolean;
33
+ /**
34
+ * Displays a Sparkline Chart in the column
35
+ */
33
36
  SparkLineStyle?: SparkLineStyle;
34
37
  /**
35
38
  * Includes the Styled Column in Grouped Rows
@@ -125,6 +128,12 @@ export declare type CellTextOption = 'CellValue' | 'PercentageValue';
125
128
  * Whether the Range is Number or Percent based
126
129
  */
127
130
  export declare type RangeValueType = 'Number' | 'Percentage';
131
+ /**
132
+ * Style to show for a Sparkline Column
133
+ */
128
134
  export declare type SparkLineStyle = {
135
+ /**
136
+ * AG Grid Sparkline Options
137
+ */
129
138
  options?: SparklineOptions;
130
139
  };
@@ -87,6 +87,11 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
87
87
  Layout: {
88
88
  previousGroupedColumns: Record<string, Record<string, number>>;
89
89
  };
90
+ /**
91
+ * Equivalent of `GeneralOptions.disableDeleteConfirmation`
92
+ * It will suppress the deletion confirmation dialog in the current session.
93
+ */
94
+ DisableDeleteConfirmation: boolean;
90
95
  }
91
96
  export interface ProgressIndicator {
92
97
  active: boolean;
@@ -86,6 +86,10 @@ export declare const LAYOUT_DRAFT_COLUMN_FILTER_EDIT = "LAYOUT_DRAFT_COLUMN_FILT
86
86
  export declare const LAYOUT_DRAFT_COLUMN_FILTER_SET = "LAYOUT_DRAFT_COLUMN_FILTER_SET";
87
87
  export declare const LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = "LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL";
88
88
  export declare const LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = "LAYOUT_DRAFT_COLUMN_FILTER_CLEAR";
89
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = "LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND";
90
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = "LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL";
91
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = "LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND";
92
+ export declare const LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = "LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL";
89
93
  export interface GridDataChangedAction extends Redux.Action {
90
94
  cellDataChangedInfo: CellDataChangedInfo;
91
95
  }
@@ -174,6 +178,16 @@ export interface LayoutDraftColumnFilterClearAction extends Redux.Action {
174
178
  }
175
179
  export interface LayoutDraftColumnFilterClearAllAction extends Redux.Action {
176
180
  }
181
+ export interface LayoutDraftColumnFilterSuspendAction extends Redux.Action {
182
+ columnFilter: ColumnFilter;
183
+ }
184
+ export interface LayoutDraftColumnFilterSuspendAllAction extends Redux.Action {
185
+ }
186
+ export interface LayoutDraftColumnFilterUnsuspendAction extends Redux.Action {
187
+ columnFilter: ColumnFilter;
188
+ }
189
+ export interface LayoutDraftColumnFilterUnsuspendAllAction extends Redux.Action {
190
+ }
177
191
  export declare const GridSetColumns: (Columns: AdaptableColumn[]) => GridSetColumnsAction;
178
192
  export declare const GridAddColumn: (Column: AdaptableColumn) => GridAddColumnAction;
179
193
  export declare const GridAddColumns: (Columns: AdaptableColumn[]) => GridAddColumnsAction;
@@ -198,4 +212,8 @@ export declare const LayoutDraftColumnFilterEdit: (columnFilter: ColumnFilter) =
198
212
  export declare const LayoutDraftColumnFilterSet: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterSetAction;
199
213
  export declare const LayoutDraftColumnFilterClear: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterClearAction;
200
214
  export declare const LayoutDraftColumnFilterClearAll: () => LayoutDraftColumnFilterClearAllAction;
215
+ export declare const LayoutDraftColumnFilterSuspend: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterSuspendAction;
216
+ export declare const LayoutDraftColumnFilterSuspendAll: () => LayoutDraftColumnFilterSuspendAllAction;
217
+ export declare const LayoutDraftColumnFilterUnsuspend: (columnFilter: ColumnFilter) => LayoutDraftColumnFilterUnsuspendAction;
218
+ export declare const LayoutDraftColumnFilterUnsuspendAll: () => LayoutDraftColumnFilterUnsuspendAllAction;
201
219
  export declare const GridReducer: Redux.Reducer<GridState>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GridReducer = exports.LayoutDraftColumnFilterClearAll = exports.LayoutDraftColumnFilterClear = exports.LayoutDraftColumnFilterSet = exports.LayoutDraftColumnFilterEdit = exports.LayoutDraftColumnFilterAdd = exports.LayoutUpdateCurrentDraft = exports.SetModuleButtonMenuItems = exports.SetSettingPanelModuleMenuItems = exports.SetTreeModeOff = exports.SetTreeModeOn = exports.SetPivotModeOff = exports.SetPivotModeOn = exports.GridRefreshCells = exports.GridSetCellSummary = exports.GridCreateCellSummary = exports.GridSetSelectedRows = exports.GridSetSelectedCells = exports.GridClearSort = exports.GridSetSort = exports.GridEditColumn = exports.GridRemoveColumn = exports.GridAddColumns = exports.GridAddColumn = exports.GridSetColumns = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_EDIT = exports.LAYOUT_DRAFT_COLUMN_FILTER_ADD = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.GRID_SET_TREE_MODE_OFF = exports.GRID_SET_TREE_MODE_ON = exports.GRID_SET_PIVOT_MODE_OFF = exports.GRID_SET_PIVOT_MODE_ON = exports.GRID_SET_MODULE_BUTTON_MENUITEMS = exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS = exports.GRID_REFRESH_CELLS = exports.GRID_SET_CELLS_SUMMARY = exports.GRID_CREATE_CELLS_SUMMARY = exports.GRID_SET_SELECTED_ROWS = exports.GRID_SET_SELECTED_CELLS = exports.GRID_CLEAR_SORT = exports.GRID_SET_SORT = exports.GRID_EDIT_COLUMN = exports.GRID_REMOVE_COLUMN = exports.GRID_ADD_COLUMNS = exports.GRID_ADD_COLUMN = exports.GRID_SET_COLUMNS = void 0;
3
+ exports.LayoutDraftColumnFilterSet = exports.LayoutDraftColumnFilterEdit = exports.LayoutDraftColumnFilterAdd = exports.LayoutUpdateCurrentDraft = exports.SetModuleButtonMenuItems = exports.SetSettingPanelModuleMenuItems = exports.SetTreeModeOff = exports.SetTreeModeOn = exports.SetPivotModeOff = exports.SetPivotModeOn = exports.GridRefreshCells = exports.GridSetCellSummary = exports.GridCreateCellSummary = exports.GridSetSelectedRows = exports.GridSetSelectedCells = exports.GridClearSort = exports.GridSetSort = exports.GridEditColumn = exports.GridRemoveColumn = exports.GridAddColumns = exports.GridAddColumn = exports.GridSetColumns = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_DRAFT_COLUMN_FILTER_SET = exports.LAYOUT_DRAFT_COLUMN_FILTER_EDIT = exports.LAYOUT_DRAFT_COLUMN_FILTER_ADD = exports.LAYOUT_UPDATE_CURRENT_DRAFT = exports.GRID_SET_TREE_MODE_OFF = exports.GRID_SET_TREE_MODE_ON = exports.GRID_SET_PIVOT_MODE_OFF = exports.GRID_SET_PIVOT_MODE_ON = exports.GRID_SET_MODULE_BUTTON_MENUITEMS = exports.GRID_SET_MODULE_DROPDOWN_MENUITEMS = exports.GRID_REFRESH_CELLS = exports.GRID_SET_CELLS_SUMMARY = exports.GRID_CREATE_CELLS_SUMMARY = exports.GRID_SET_SELECTED_ROWS = exports.GRID_SET_SELECTED_CELLS = exports.GRID_CLEAR_SORT = exports.GRID_SET_SORT = exports.GRID_EDIT_COLUMN = exports.GRID_REMOVE_COLUMN = exports.GRID_ADD_COLUMNS = exports.GRID_ADD_COLUMN = exports.GRID_SET_COLUMNS = void 0;
4
+ exports.GridReducer = exports.LayoutDraftColumnFilterUnsuspendAll = exports.LayoutDraftColumnFilterUnsuspend = exports.LayoutDraftColumnFilterSuspendAll = exports.LayoutDraftColumnFilterSuspend = exports.LayoutDraftColumnFilterClearAll = exports.LayoutDraftColumnFilterClear = void 0;
4
5
  const tslib_1 = require("tslib");
5
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
7
  const LayoutRedux_1 = require("./LayoutRedux");
@@ -83,6 +84,10 @@ exports.LAYOUT_DRAFT_COLUMN_FILTER_EDIT = 'LAYOUT_DRAFT_COLUMN_FILTER_EDIT';
83
84
  exports.LAYOUT_DRAFT_COLUMN_FILTER_SET = 'LAYOUT_DRAFT_COLUMN_FILTER_SET';
84
85
  exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL = 'LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL';
85
86
  exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR = 'LAYOUT_DRAFT_COLUMN_FILTER_CLEAR';
87
+ exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND = 'LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND';
88
+ exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL = 'LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL';
89
+ exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND = 'LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND';
90
+ exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL = 'LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL';
86
91
  const GridSetColumns = (Columns) => ({
87
92
  type: exports.GRID_SET_COLUMNS,
88
93
  columns: Columns,
@@ -197,6 +202,24 @@ const LayoutDraftColumnFilterClearAll = () => ({
197
202
  type: exports.LAYOUT_DRAFT_COLUMN_FILTER_CLEAR_ALL,
198
203
  });
199
204
  exports.LayoutDraftColumnFilterClearAll = LayoutDraftColumnFilterClearAll;
205
+ const LayoutDraftColumnFilterSuspend = (columnFilter) => ({
206
+ type: exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND,
207
+ columnFilter,
208
+ });
209
+ exports.LayoutDraftColumnFilterSuspend = LayoutDraftColumnFilterSuspend;
210
+ const LayoutDraftColumnFilterSuspendAll = () => ({
211
+ type: exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL,
212
+ });
213
+ exports.LayoutDraftColumnFilterSuspendAll = LayoutDraftColumnFilterSuspendAll;
214
+ const LayoutDraftColumnFilterUnsuspend = (columnFilter) => ({
215
+ type: exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND,
216
+ columnFilter,
217
+ });
218
+ exports.LayoutDraftColumnFilterUnsuspend = LayoutDraftColumnFilterUnsuspend;
219
+ const LayoutDraftColumnFilterUnsuspendAll = () => ({
220
+ type: exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL,
221
+ });
222
+ exports.LayoutDraftColumnFilterUnsuspendAll = LayoutDraftColumnFilterUnsuspendAll;
200
223
  const initialState = {
201
224
  Columns: GeneralConstants_1.EMPTY_ARRAY,
202
225
  CurrentLayout: null,
@@ -210,7 +233,7 @@ const initialState = {
210
233
  IsGridInTreeMode: false,
211
234
  };
212
235
  const GridReducer = (state = initialState, action) => {
213
- var _a, _b, _c, _d;
236
+ var _a, _b, _c, _d, _e, _f, _g, _h;
214
237
  switch (action.type) {
215
238
  case exports.GRID_SET_COLUMNS:
216
239
  return Object.assign({}, state, {
@@ -331,6 +354,46 @@ const GridReducer = (state = initialState, action) => {
331
354
  });
332
355
  }
333
356
  }
357
+ case exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND: {
358
+ const currentDraftLayout = state.CurrentLayout;
359
+ if (currentDraftLayout) {
360
+ const columnFilterAction = action
361
+ .columnFilter;
362
+ let columnFilters = ((_e = currentDraftLayout.ColumnFilters) !== null && _e !== void 0 ? _e : []).map((abObject) => abObject.Uuid === columnFilterAction.Uuid ? Object.assign(Object.assign({}, abObject), { IsSuspended: true }) : abObject);
363
+ return Object.assign({}, state, {
364
+ CurrentLayout: Object.assign(Object.assign({}, currentDraftLayout), { ColumnFilters: columnFilters }),
365
+ });
366
+ }
367
+ }
368
+ case exports.LAYOUT_DRAFT_COLUMN_FILTER_SUSPEND_ALL: {
369
+ const currentDraftLayout = state.CurrentLayout;
370
+ if (currentDraftLayout) {
371
+ let columnFilters = ((_f = currentDraftLayout.ColumnFilters) !== null && _f !== void 0 ? _f : []).map((abObject) => (Object.assign(Object.assign({}, abObject), { IsSuspended: true })));
372
+ return Object.assign({}, state, {
373
+ CurrentLayout: Object.assign(Object.assign({}, currentDraftLayout), { ColumnFilters: columnFilters }),
374
+ });
375
+ }
376
+ }
377
+ case exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND: {
378
+ const currentDraftLayout = state.CurrentLayout;
379
+ if (currentDraftLayout) {
380
+ const columnFilterAction = action
381
+ .columnFilter;
382
+ let columnFilters = ((_g = currentDraftLayout.ColumnFilters) !== null && _g !== void 0 ? _g : []).map((abObject) => abObject.Uuid === columnFilterAction.Uuid ? Object.assign(Object.assign({}, abObject), { IsSuspended: false }) : abObject);
383
+ return Object.assign({}, state, {
384
+ CurrentLayout: Object.assign(Object.assign({}, currentDraftLayout), { ColumnFilters: columnFilters }),
385
+ });
386
+ }
387
+ }
388
+ case exports.LAYOUT_DRAFT_COLUMN_FILTER_UNSUSPEND_ALL: {
389
+ const currentDraftLayout = state.CurrentLayout;
390
+ if (currentDraftLayout) {
391
+ let columnFilters = ((_h = currentDraftLayout.ColumnFilters) !== null && _h !== void 0 ? _h : []).map((abObject) => (Object.assign(Object.assign({}, abObject), { IsSuspended: false })));
392
+ return Object.assign({}, state, {
393
+ CurrentLayout: Object.assign(Object.assign({}, currentDraftLayout), { ColumnFilters: columnFilters }),
394
+ });
395
+ }
396
+ }
334
397
  case LayoutRedux_1.LAYOUT_SELECT: {
335
398
  return Object.assign({}, state, {
336
399
  CurrentLayout: null,
@@ -64,6 +64,7 @@ export declare const SYSTEM_SETTINGS_PANEL_SET = "SYSTEM_SETTINGS_PANEL_SET";
64
64
  export declare const SYSTEM_QUICK_FILTER_BAR_SHOW = "SYSTEM_QUICK_FILTER_BAR_SHOW";
65
65
  export declare const SYSTEM_QUICK_FILTER_BAR_HIDE = "SYSTEM_QUICK_FILTER_BAR_HIDE";
66
66
  export declare const SYSTEM_FILTER_FORM_HIDE = "SYSTEM_FILTER_FORM_HIDE";
67
+ export declare const SYSTEM_DISABLE_DELETE_CONFIRMATION = "SYSTEM_DISABLE_DELETE_CONFIRMATION";
67
68
  export declare const SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = "SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS";
68
69
  export declare const DASHBOARD_REFRESH = "DASHBOARD_REFRESH";
69
70
  export declare const SYSTEM_DATA_SET_SELECT = "SYSTEM_DATA_SET_SELECT";
@@ -210,6 +211,8 @@ export interface SystemDataChangeHistorySuspendAction extends Redux.Action {
210
211
  }
211
212
  export interface SystemDataChangeHistoryResumeAction extends Redux.Action {
212
213
  }
214
+ export interface SystemDisableDeleteConfirmation extends Redux.Action {
215
+ }
213
216
  export interface SystemDashboardRefreshAction extends Redux.Action {
214
217
  }
215
218
  export interface SystemSettingsPanelSetAction extends Redux.Action {
@@ -288,5 +291,7 @@ export declare const SystemDataSetSelect: (dataSet: DataSet) => SystemDataSetSel
288
291
  export declare const SystemChartingSetCurrentChartModels: (chartModels: ChartModel[]) => SystemChartingSetCurrentChartModelsAction;
289
292
  export declare const SystemChartingCurrentChartModelsSelector: (state: SystemState) => ChartModel[];
290
293
  export declare const SystemSetPreviousGroupedColumnsIndex: (layoutId: string, columnId: string, columnIndex: number) => SystemSetPreviousGroupedColumnIndexAction;
294
+ export declare const SystemDisableDeleteConfirmation: () => SystemDisableDeleteConfirmation;
295
+ export declare const SystemDisableDeleteConfirmationSelector: (state: SystemState) => boolean;
291
296
  export declare const SystemPreviousGroupedColumnsSelector: (state: SystemState) => Record<string, Record<string, number>>;
292
297
  export declare const SystemReducer: Redux.Reducer<SystemState>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
- exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = void 0;
5
- exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = void 0;
3
+ exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
+ exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = void 0;
5
+ exports.SystemReducer = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
8
8
  const Helper_1 = require("../../Utilities/Helpers/Helper");
@@ -74,6 +74,8 @@ exports.SYSTEM_SETTINGS_PANEL_SET = 'SYSTEM_SETTINGS_PANEL_SET';
74
74
  exports.SYSTEM_QUICK_FILTER_BAR_SHOW = 'SYSTEM_QUICK_FILTER_BAR_SHOW';
75
75
  exports.SYSTEM_QUICK_FILTER_BAR_HIDE = 'SYSTEM_QUICK_FILTER_BAR_HIDE';
76
76
  exports.SYSTEM_FILTER_FORM_HIDE = 'SYSTEM_FILTER_FORM_HIDE';
77
+ // Delete warning
78
+ exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = 'SYSTEM_DISABLE_DELETE_CONFIRMATION';
77
79
  // Layout
78
80
  exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = 'SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS';
79
81
  exports.DASHBOARD_REFRESH = 'DASHBOARD_REFRESH';
@@ -332,6 +334,14 @@ const SystemSetPreviousGroupedColumnsIndex = (layoutId, columnId, columnIndex) =
332
334
  columnIndex,
333
335
  });
334
336
  exports.SystemSetPreviousGroupedColumnsIndex = SystemSetPreviousGroupedColumnsIndex;
337
+ const SystemDisableDeleteConfirmation = () => ({
338
+ type: exports.SYSTEM_DISABLE_DELETE_CONFIRMATION,
339
+ });
340
+ exports.SystemDisableDeleteConfirmation = SystemDisableDeleteConfirmation;
341
+ const SystemDisableDeleteConfirmationSelector = (state) => {
342
+ return state.DisableDeleteConfirmation;
343
+ };
344
+ exports.SystemDisableDeleteConfirmationSelector = SystemDisableDeleteConfirmationSelector;
335
345
  const SystemPreviousGroupedColumnsSelector = (state) => {
336
346
  return state.Layout.previousGroupedColumns;
337
347
  };
@@ -377,6 +387,7 @@ const initialState = {
377
387
  Layout: {
378
388
  previousGroupedColumns: {},
379
389
  },
390
+ DisableDeleteConfirmation: false,
380
391
  };
381
392
  const SystemReducer = (state = initialState, action) => {
382
393
  let alerts;
@@ -694,6 +705,9 @@ const SystemReducer = (state = initialState, action) => {
694
705
  };
695
706
  return Object.assign(Object.assign({}, state), { Layout: Object.assign(Object.assign({}, state.Layout), { previousGroupedColumns }) });
696
707
  }
708
+ case exports.SYSTEM_DISABLE_DELETE_CONFIRMATION: {
709
+ return Object.assign(Object.assign({}, state), { DisableDeleteConfirmation: true });
710
+ }
697
711
  default:
698
712
  return state;
699
713
  }
@@ -294,7 +294,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
294
294
  case QueryRedux.NAMED_QUERY_DELETE: {
295
295
  const actionTyped = action;
296
296
  // check if Named Query is not referenced elsewhere
297
- const namedQueryReferences = adaptable.api.queryApi.getNamedQueryModuleReferences(actionTyped.namedQuery.Name);
297
+ const namedQueryReferences = adaptable.api.queryApi.internalApi.getNamedQueryModuleReferences(actionTyped.namedQuery.Name);
298
298
  if (namedQueryReferences.length) {
299
299
  middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
300
300
  alertType: 'generic',
@@ -316,7 +316,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
316
316
  .Query.NamedQueries.find((namedQuery) => namedQuery.Uuid === editedNamedQuery.Uuid)) === null || _a === void 0 ? void 0 : _a.Name) !== null && _b !== void 0 ? _b : '';
317
317
  if (editedNamedQuery.Name !== previousNamedQueryName) {
318
318
  // if query is referenced elsewhere we cannot allow the name change, as it would turn the referents invalid
319
- const namedQueryReferences = adaptable.api.queryApi.getNamedQueryModuleReferences(previousNamedQueryName);
319
+ const namedQueryReferences = adaptable.api.queryApi.internalApi.getNamedQueryModuleReferences(previousNamedQueryName);
320
320
  if (namedQueryReferences.length) {
321
321
  middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
322
322
  alertType: 'generic',
@@ -338,8 +338,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
338
338
  case QueryRedux.QUERY_RUN: {
339
339
  let ret = next(action);
340
340
  setTimeout(() => adaptable.applyGridFiltering(), 5);
341
- adaptable.api.gridApi.fireSearchChangedEvent('CurrentQuery');
342
- adaptable.api.queryApi.fireQueryRunEvent();
341
+ adaptable.api.queryApi.internalApi.fireQueryRunEvent();
343
342
  return ret;
344
343
  }
345
344
  /*******************
@@ -365,7 +364,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
365
364
  *******************/
366
365
  case AlertRedux.ALERT_READY: {
367
366
  // create observable alerts at grid startup
368
- const reactiveAlertDefinitions = adaptable.api.alertApi.getActiveReactiveAlertDefinitions();
367
+ const reactiveAlertDefinitions = adaptable.api.alertApi.internalApi.getActiveReactiveAlertDefinitions();
369
368
  reactiveAlertDefinitions.forEach((reactiveAlertDefinition) => adaptable.api.internalApi
370
369
  .getAlertService()
371
370
  .createReactiveAlert(reactiveAlertDefinition));
@@ -571,7 +570,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
571
570
  case CalculatedColumnRedux.CALCULATED_COLUMN_READY: {
572
571
  // create aggregated scalar columns at grid startup
573
572
  const aggregatedCalculatedColumns = adaptable.api.calculatedColumnApi
574
- .getAllCalculatedColumn()
573
+ .getCalculatedColumns()
575
574
  .filter((calculatedColumn) => { var _a; return (_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.AggregatedScalarExpression; });
576
575
  aggregatedCalculatedColumns.forEach((calculatedColumn) => {
577
576
  adaptable.api.internalApi
@@ -609,7 +608,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
609
608
  case CalculatedColumnRedux.CALCULATED_COLUMN_DELETE: {
610
609
  const actionTyped = action;
611
610
  // check if CalculatedColumn is not referenced elsewhere
612
- const calculatedColumnReferences = adaptable.api.calculatedColumnApi.getCalculatedColumnModuleReferences(actionTyped.calculatedColumn);
611
+ const calculatedColumnReferences = adaptable.api.calculatedColumnApi.internalApi.getCalculatedColumnModuleReferences(actionTyped.calculatedColumn);
613
612
  if (calculatedColumnReferences.length) {
614
613
  middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
615
614
  alertType: 'generic',
@@ -633,7 +632,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
633
632
  case FreeTextColumnRedux.FREE_TEXT_COLUMN_DELETE: {
634
633
  const actionTyped = action;
635
634
  // check if FreeTextColumn is not referenced elsewhere
636
- const freeTextColumnReferences = adaptable.api.freeTextColumnApi.getFreeTextColumnModuleReferences(actionTyped.freeTextColumn);
635
+ const freeTextColumnReferences = adaptable.api.freeTextColumnApi.internalApi.getFreeTextColumnModuleReferences(actionTyped.freeTextColumn);
637
636
  if (freeTextColumnReferences.length) {
638
637
  middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
639
638
  alertType: 'generic',
@@ -731,7 +730,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
731
730
  case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
732
731
  let returnAction;
733
732
  // needs to be called before 'next' so previous and next column filters are known
734
- const shouldTriggerGridFiltering = adaptable.api.filterApi.shouldNewColumnFilterTriggerGridFiltering(action);
733
+ const shouldTriggerGridFiltering = adaptable.api.filterApi.internalApi.shouldNewColumnFilterTriggerGridFiltering(action);
735
734
  if ((_g = adaptable.adaptableOptions.layoutOptions) === null || _g === void 0 ? void 0 : _g.autoSaveLayouts) {
736
735
  returnAction = next(action);
737
736
  }
@@ -758,6 +757,18 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
758
757
  case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
759
758
  draftLayoutAction = GridRedux.LayoutDraftColumnFilterClearAll();
760
759
  break;
760
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND:
761
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterSuspend(action.columnFilter);
762
+ break;
763
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL:
764
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterSuspendAll();
765
+ break;
766
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND:
767
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterUnsuspend(action.columnFilter);
768
+ break;
769
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL:
770
+ draftLayoutAction = GridRedux.LayoutDraftColumnFilterUnsuspendAll();
771
+ break;
761
772
  }
762
773
  returnAction = next(draftLayoutAction);
763
774
  }
@@ -766,9 +777,8 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
766
777
  adaptable.applyGridFiltering();
767
778
  }
768
779
  }, 5);
769
- adaptable.api.gridApi.fireSearchChangedEvent('Filter');
770
- adaptable.api.filterApi.fireFilterAppliedEvent();
771
- adaptable.api.layoutApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
780
+ adaptable.api.filterApi.internalApi.fireFilterAppliedEvent();
781
+ adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
772
782
  return returnAction;
773
783
  }
774
784
  /*******************
@@ -781,7 +791,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
781
791
  case SystemRedux.SYSTEM_DATA_SET_SELECT: {
782
792
  let returnAction = next(action);
783
793
  const dataSet = adaptable.api.dataSetApi.getCurrentDataSet();
784
- adaptable.api.dataSetApi.fireDataSetSelectedEvent(dataSet);
794
+ adaptable.api.dataSetApi.internalApi.fireDataSetSelectedEvent(dataSet);
785
795
  requestAnimationFrame(() => {
786
796
  if (dataSet.form) {
787
797
  middlewareAPI.dispatch((0, PopupRedux_1.PopupShowForm)({
@@ -862,7 +872,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
862
872
  const oldDashboardState = middlewareAPI.getState().Dashboard;
863
873
  let returnAction = next(action);
864
874
  const newDashboardState = middlewareAPI.getState().Dashboard;
865
- adaptable.api.dashboardApi.fireDashboardChangedEvent(action.type, oldDashboardState, newDashboardState);
875
+ adaptable.api.dashboardApi.internalApi.fireDashboardChangedEvent(action.type, oldDashboardState, newDashboardState);
866
876
  return returnAction;
867
877
  }
868
878
  /*******************
@@ -879,11 +889,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
879
889
  const previousLayout = adaptable.api.layoutApi.getCurrentLayout();
880
890
  let returnAction = next(action);
881
891
  const newLayoutState = middlewareAPI.getState().Layout;
882
- adaptable.api.layoutApi.fireLayoutChangedEvent(action.type, oldLayoutState, newLayoutState);
892
+ adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, oldLayoutState, newLayoutState);
883
893
  const oldFilters = (_h = oldLayoutState.Layouts.find((l) => l.Name == oldLayoutState.CurrentLayout)) === null || _h === void 0 ? void 0 : _h.ColumnFilters;
884
894
  const newFilters = (_j = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout)) === null || _j === void 0 ? void 0 : _j.ColumnFilters;
885
895
  // Tell Grid to apply filtering if filters have been changed in a loaded Layout
886
- if (adaptable.api.filterApi.areColumnFiltersDifferent(oldFilters, newFilters)) {
896
+ if (adaptable.api.filterApi.internalApi.areColumnFiltersDifferent(oldFilters, newFilters)) {
887
897
  adaptable.applyGridFiltering();
888
898
  }
889
899
  if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
@@ -920,7 +930,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
920
930
  previousLayout !== savingLayout &&
921
931
  // objects may have changed, but have the same contents
922
932
  // this prevents pivot layout from infinite set-layout
923
- !adaptable.api.layoutApi.areLayoutsEqual(previousLayout, savingLayout)) {
933
+ !adaptable.api.layoutApi.internalApi.areLayoutsEqual(previousLayout, savingLayout)) {
924
934
  adaptable.setLayout(savingLayout);
925
935
  }
926
936
  }
@@ -1005,7 +1015,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1005
1015
  case SmartEditRedux.SMART_EDIT_APPLY: {
1006
1016
  let returnAction = next(action);
1007
1017
  const actionTyped = action;
1008
- adaptable.api.internalApi.setGridCells(actionTyped.gridCells);
1018
+ adaptable.api.gridApi.internalApi.setGridCells(actionTyped.gridCells);
1009
1019
  return returnAction;
1010
1020
  }
1011
1021
  /*******************
@@ -1056,7 +1066,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1056
1066
  case BulkUpdateRedux.BULK_UPDATE_APPLY: {
1057
1067
  let returnAction = next(action);
1058
1068
  const actionTyped = action;
1059
- adaptable.api.internalApi.setGridCells(actionTyped.gridCells);
1069
+ adaptable.api.gridApi.internalApi.setGridCells(actionTyped.gridCells);
1060
1070
  return returnAction;
1061
1071
  }
1062
1072
  /*******************
@@ -1083,7 +1093,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1083
1093
  case PlusMinusRedux.PLUS_MINUS_APPLY: {
1084
1094
  let returnAction = next(action);
1085
1095
  const actionTyped = action;
1086
- adaptable.api.internalApi.setGridCells(actionTyped.gridCells);
1096
+ adaptable.api.gridApi.internalApi.setGridCells(actionTyped.gridCells);
1087
1097
  return returnAction;
1088
1098
  }
1089
1099
  /*******************
@@ -1309,7 +1319,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1309
1319
  middlewareAPI.dispatch(TeamSharingRedux.TeamSharingLinkItem(...activeSharedEntities));
1310
1320
  }
1311
1321
  // mark the import process as ended after (we assume that) the import is finished
1312
- adaptable.api.internalApi
1322
+ adaptable.api.teamSharingApi.internalApi
1313
1323
  .waitForTeamSharingImportEnd()
1314
1324
  .then(() => middlewareAPI.dispatch(TeamSharingRedux.TeamSharingCommitImport()))
1315
1325
  .catch(() => middlewareAPI.dispatch(TeamSharingRedux.TeamSharingCommitImport()));
@@ -1414,14 +1424,12 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1414
1424
  }
1415
1425
  case GridRedux.GRID_SET_SORT: {
1416
1426
  let ret = next(action);
1417
- adaptable.api.gridApi.fireSearchChangedEvent('Sort');
1418
- adaptable.api.gridApi.fireGridSortedEvent();
1427
+ adaptable.api.gridApi.internalApi.fireGridSortedEvent();
1419
1428
  return ret;
1420
1429
  }
1421
1430
  case GridRedux.GRID_CLEAR_SORT: {
1422
1431
  let ret = next(action);
1423
- adaptable.api.gridApi.fireSearchChangedEvent('Sort');
1424
- adaptable.api.gridApi.fireGridSortedEvent();
1432
+ adaptable.api.gridApi.internalApi.fireGridSortedEvent();
1425
1433
  return ret;
1426
1434
  }
1427
1435
  /*******************
@@ -1468,7 +1476,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1468
1476
  // make sure we have the grid columns in state, before we do any layout work
1469
1477
  adaptable.updateColumnsIntoStore();
1470
1478
  const layoutState = middlewareAPI.getState().Layout;
1471
- const defaultLayout = adaptable.api.layoutApi.createDefaultLayoutIfNeeded();
1479
+ const defaultLayout = adaptable.api.layoutApi.internalApi.createDefaultLayoutIfNeeded();
1472
1480
  let currentLayout = (layoutState === null || layoutState === void 0 ? void 0 : layoutState.CurrentLayout) || (defaultLayout === null || defaultLayout === void 0 ? void 0 : defaultLayout.Name);
1473
1481
  if (!adaptable.api.layoutApi.getLayoutByName(currentLayout)) {
1474
1482
  currentLayout = defaultLayout ? defaultLayout.Name : layoutState.Layouts[0].Name;