@adaptabletools/adaptable-cjs 23.0.0-canary.8 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/index.css +42 -53
  2. package/package.json +1 -1
  3. package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.js +2 -3
  4. package/src/AdaptableState/Common/Enums.d.ts +0 -12
  5. package/src/AdaptableState/Common/Enums.js +1 -16
  6. package/src/{Utilities → AdaptableState/Common}/MenuItem.d.ts +4 -4
  7. package/src/{Utilities → AdaptableState/Common}/MenuItem.js +1 -1
  8. package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +5 -5
  9. package/src/AdaptableState/StyledColumns/Common/{BarChartCellText.d.ts → BarStyleProperties.d.ts} +34 -10
  10. package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +2 -2
  11. package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +2 -2
  12. package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +5 -5
  13. package/src/Api/Implementation/AlertApiImpl.js +1 -1
  14. package/src/Api/Implementation/ChartingApiImpl.js +5 -5
  15. package/src/Api/Implementation/ExportApiImpl.js +1 -1
  16. package/src/Api/Implementation/LayoutHelpers.js +2 -3
  17. package/src/Api/Implementation/QuickSearchApiImpl.js +4 -4
  18. package/src/Api/Implementation/ThemeApiImpl.js +2 -2
  19. package/src/Api/Internal/ActionColumnInternalApi.js +2 -2
  20. package/src/Api/Internal/AlertInternalApi.js +1 -1
  21. package/src/Api/Internal/ChartingInternalApi.js +2 -2
  22. package/src/Api/Internal/ColumnInternalApi.js +2 -2
  23. package/src/Api/Internal/EventInternalApi.js +3 -4
  24. package/src/Api/Internal/ExportInternalApi.js +2 -2
  25. package/src/Api/Internal/FormatColumnInternalApi.js +4 -4
  26. package/src/Api/Internal/GridInternalApi.js +1 -1
  27. package/src/Api/Internal/StyledColumnInternalApi.js +6 -6
  28. package/src/Redux/ActionsReducers/ExportRedux.js +1 -1
  29. package/src/Redux/ActionsReducers/InternalRedux.js +1 -1
  30. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +2 -3
  31. package/src/Redux/Store/AdaptableReduxMerger.js +7 -9
  32. package/src/Redux/Store/AdaptableStore.js +5 -5
  33. package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
  34. package/src/Strategy/AdaptableModuleBase.js +1 -1
  35. package/src/Strategy/AlertModule.d.ts +1 -1
  36. package/src/Strategy/AlertModule.js +2 -2
  37. package/src/Strategy/BulkUpdateModule.d.ts +1 -1
  38. package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
  39. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  40. package/src/Strategy/ChartingModule.d.ts +1 -1
  41. package/src/Strategy/ChartingModule.js +4 -4
  42. package/src/Strategy/ColumnInfoModule.d.ts +2 -2
  43. package/src/Strategy/CommentModule.d.ts +1 -1
  44. package/src/Strategy/CustomSortModule.d.ts +1 -1
  45. package/src/Strategy/ExportModule.js +2 -2
  46. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  47. package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
  48. package/src/Strategy/GridInfoModule.d.ts +2 -2
  49. package/src/Strategy/LayoutModule.js +2 -2
  50. package/src/Strategy/NoteModule.d.ts +1 -1
  51. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  52. package/src/Strategy/PlusMinusModule.js +8 -8
  53. package/src/Strategy/SettingsPanelModule.d.ts +2 -2
  54. package/src/Strategy/SmartEditModule.d.ts +1 -1
  55. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  56. package/src/Strategy/TeamSharingModule.js +4 -4
  57. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +2 -3
  58. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  59. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  60. package/src/Utilities/Extensions/ArrayExtensions.d.ts +32 -0
  61. package/src/Utilities/Extensions/ArrayExtensions.js +54 -1
  62. package/src/Utilities/Extensions/NumberExtensions.d.ts +21 -0
  63. package/src/Utilities/Extensions/NumberExtensions.js +78 -0
  64. package/src/Utilities/Extensions/ObjectExtensions.d.ts +44 -0
  65. package/src/Utilities/Extensions/ObjectExtensions.js +277 -0
  66. package/src/Utilities/Extensions/StringExtensions.d.ts +26 -0
  67. package/src/Utilities/Extensions/StringExtensions.js +49 -3
  68. package/src/Utilities/Helpers/AdaptableHelper.js +7 -7
  69. package/src/Utilities/Helpers/{alertFormHelper.js → AlertHelper.js} +1 -1
  70. package/src/Utilities/Helpers/DateHelper.js +2 -2
  71. package/src/Utilities/Helpers/{FormatHelper.js → DisplayFormatHelper.js} +5 -5
  72. package/src/Utilities/Helpers/Helper.d.ts +0 -6
  73. package/src/Utilities/Helpers/Helper.js +0 -38
  74. package/src/Utilities/Helpers/{QuickSearchStyleHelper.js → QuickSearchHelper.js} +2 -3
  75. package/src/Utilities/Helpers/{ScheduleHelper.d.ts → Scheduling/ScheduleHelper.d.ts} +1 -1
  76. package/src/Utilities/Helpers/{ScheduleHelper.js → Scheduling/ScheduleHelper.js} +1 -1
  77. package/src/Utilities/Helpers/{ScheduleJobManager.d.ts → Scheduling/ScheduleJobManager.d.ts} +1 -1
  78. package/src/Utilities/Helpers/{ScheduleJobRunner.d.ts → Scheduling/ScheduleJobRunner.d.ts} +1 -1
  79. package/src/Utilities/Helpers/{ScheduledAlertHelper.d.ts → Scheduling/ScheduledAlertHelper.d.ts} +1 -1
  80. package/src/Utilities/Helpers/{ScheduledAlertHelper.js → Scheduling/ScheduledAlertHelper.js} +4 -4
  81. package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.d.ts → Scheduling/ScheduledJobsMiddlewareHelper.d.ts} +1 -1
  82. package/src/Utilities/Helpers/{ScheduledJobsMiddlewareHelper.js → Scheduling/ScheduledJobsMiddlewareHelper.js} +1 -1
  83. package/src/Utilities/Helpers/{ScheduledReportHelper.d.ts → Scheduling/ScheduledReportHelper.d.ts} +1 -1
  84. package/src/Utilities/Helpers/{ScheduledReportHelper.js → Scheduling/ScheduledReportHelper.js} +1 -1
  85. package/src/Utilities/Helpers/SettingsPanelHelper.d.ts +5 -0
  86. package/src/Utilities/{Defaults/DefaultSettingsPanel.js → Helpers/SettingsPanelHelper.js} +16 -1
  87. package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.d.ts +63 -0
  88. package/src/Utilities/Helpers/{barChartCellText.js → StyledColumns/BarStylesHelper.js} +48 -47
  89. package/src/Utilities/Helpers/{StyledColumnGradientHelper.d.ts → StyledColumns/GradientStyleHelper.d.ts} +4 -4
  90. package/src/Utilities/Helpers/{StyledColumnGradientHelper.js → StyledColumns/GradientStyleHelper.js} +9 -9
  91. package/src/Utilities/Helpers/{IconStylePresets.d.ts → StyledColumns/IconStyleHelper.d.ts} +6 -1
  92. package/src/Utilities/Helpers/{IconStylePresets.js → StyledColumns/IconStyleHelper.js} +16 -0
  93. package/src/Utilities/Helpers/{percentBarPreviewHelper.d.ts → StyledColumns/PercentBarStyleHelper.d.ts} +2 -2
  94. package/src/Utilities/Helpers/{percentBarPreviewHelper.js → StyledColumns/PercentBarStyleHelper.js} +11 -12
  95. package/src/Utilities/Helpers/{SparklineOptionsHelper.js → StyledColumns/SparklineStyleHelper.js} +1 -1
  96. package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.d.ts +52 -0
  97. package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +124 -0
  98. package/src/Utilities/Helpers/TimingHelper.d.ts +34 -0
  99. package/src/Utilities/{utils/debounce.js → Helpers/TimingHelper.js} +25 -9
  100. package/src/Utilities/ObjectFactory.js +1 -1
  101. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -0
  102. package/src/Utilities/Services/CalculatedColumnExpressionService.js +118 -2
  103. package/src/Utilities/Services/LicenseService/index.js +1 -1
  104. package/src/Utilities/Services/RowSummaryService.d.ts +1 -1
  105. package/src/Utilities/Services/RowSummaryService.js +6 -6
  106. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
  107. package/src/View/Alert/Utilities/getAlertType.js +1 -1
  108. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +1 -1
  109. package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -1
  110. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
  111. package/src/View/Alert/Wizard/AlertButtonsEditor.js +3 -3
  112. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +3 -3
  113. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +1 -1
  114. package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +1 -1
  115. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
  116. package/src/View/Alert/Wizard/AlertWizard.js +1 -1
  117. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  118. package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +2 -2
  119. package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
  120. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
  121. package/src/View/Comments/CommentsEditor.js +2 -2
  122. package/src/View/Comments/CommentsPopup.js +2 -2
  123. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -6
  124. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +1 -1
  125. package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +1 -1
  126. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -2
  127. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -2
  128. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +2 -2
  129. package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +2 -2
  130. package/src/View/Components/Forms/AdaptableFormControlTextClear.js +2 -1
  131. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
  132. package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
  133. package/src/View/Components/Popups/Utilities.js +5 -5
  134. package/src/View/Components/RangesComponent.d.ts +3 -3
  135. package/src/View/Components/RangesComponent.js +5 -9
  136. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -3
  137. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -3
  138. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +5 -2
  139. package/src/View/Dashboard/CustomDashboardButton.js +2 -3
  140. package/src/View/Dashboard/Dashboard.js +2 -2
  141. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +2 -2
  142. package/src/View/DataChangeHistory/DataChangeHistoryTable.js +2 -2
  143. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -2
  144. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
  145. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +13 -13
  146. package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +4 -4
  147. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +2 -2
  148. package/src/View/Layout/LayoutCloneButton.js +2 -1
  149. package/src/View/Layout/LayoutViewPanel.js +2 -2
  150. package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
  151. package/src/View/Note/NoteEditor.js +2 -2
  152. package/src/View/Note/NotePopup.js +2 -2
  153. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +7 -7
  154. package/src/View/QuickSearch/QuickSearchPopup.js +4 -4
  155. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
  156. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  157. package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
  158. package/src/View/StatusBar/StatusBarPopup.js +4 -0
  159. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -3
  160. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
  161. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +31 -2
  162. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +17 -22
  163. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +9 -10
  164. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +5 -6
  165. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +14 -17
  166. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +1 -1
  167. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +14 -14
  168. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextLayoutEditor.d.ts → BarStyleCellTextLayoutEditor.d.ts} +4 -4
  169. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextLayoutEditor.js +37 -0
  170. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.d.ts → BarStyleCellTextPreview.d.ts} +6 -6
  171. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/{BarChartCellTextPreview.js → BarStyleCellTextPreview.js} +9 -9
  172. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -2
  173. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +7 -9
  174. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +0 -3
  175. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +5 -6
  176. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +0 -3
  177. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +8 -11
  178. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.d.ts +0 -3
  179. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnGradientPreview.js +5 -8
  180. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.d.ts +0 -3
  181. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +1 -4
  182. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.d.ts +0 -3
  183. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +20 -21
  184. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.d.ts +0 -3
  185. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +8 -11
  186. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +0 -3
  187. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +4 -5
  188. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.d.ts +0 -3
  189. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +3 -6
  190. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +12 -17
  191. package/src/View/UIHelper.js +1 -1
  192. package/src/View/Wizard/CollapsibleWizardCard.js +1 -1
  193. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +7 -0
  194. package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
  195. package/src/View/Wizard/OnePageWizards.d.ts +8 -0
  196. package/src/View/Wizard/OnePageWizards.js +5 -3
  197. package/src/agGrid/AdaptableAgGrid.js +11 -11
  198. package/src/agGrid/AgGridColumnAdapter.js +30 -29
  199. package/src/agGrid/AgGridExportAdapter.js +3 -3
  200. package/src/agGrid/AgGridMenuAdapter.js +129 -4
  201. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -2
  202. package/src/agGrid/cellRenderers/BulletChartRenderer.js +8 -8
  203. package/src/agGrid/cellRenderers/IconRenderer.js +7 -8
  204. package/src/agGrid/cellRenderers/PercentBarRenderer.js +9 -9
  205. package/src/agGrid/cellRenderers/RangeBarRenderer.js +10 -11
  206. package/src/agGrid/cellRenderers/RatingRenderer.js +6 -6
  207. package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
  208. package/src/components/ColorPicker/ColorPicker.js +2 -2
  209. package/src/components/Datepicker/index.js +2 -2
  210. package/src/components/DragAndDropContext/ModuleManager.js +5 -2
  211. package/src/components/DragAndDropContext/types.d.ts +7 -0
  212. package/src/components/FormLayout/index.js +2 -2
  213. package/src/components/OverlayTrigger/index.js +2 -2
  214. package/src/env.js +2 -2
  215. package/src/layout-manager/src/isLayoutEqual.js +4 -5
  216. package/src/metamodel/adaptable.metamodel.d.ts +41 -8
  217. package/src/metamodel/adaptable.metamodel.js +1 -1
  218. package/src/migration/VersionUpgrade23.js +2 -2
  219. package/src/types.d.ts +3 -3
  220. package/tsconfig.cjs.tsbuildinfo +1 -1
  221. package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +0 -7
  222. package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +0 -24
  223. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +0 -3
  224. package/src/Utilities/Helpers/barChartCellText.d.ts +0 -63
  225. package/src/Utilities/Helpers/iconStyledColumnColumnSupport.d.ts +0 -5
  226. package/src/Utilities/Helpers/iconStyledColumnColumnSupport.js +0 -18
  227. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.d.ts +0 -3
  228. package/src/Utilities/Helpers/resolveSettingsPanelNavigation.js +0 -19
  229. package/src/Utilities/Helpers/styledColumnRowKindSupport.d.ts +0 -25
  230. package/src/Utilities/Helpers/styledColumnRowKindSupport.js +0 -70
  231. package/src/Utilities/Services/CalculatedColumnSyntheticChange.d.ts +0 -4
  232. package/src/Utilities/Services/CalculatedColumnSyntheticChange.js +0 -120
  233. package/src/Utilities/utils/chunk.d.ts +0 -6
  234. package/src/Utilities/utils/chunk.js +0 -20
  235. package/src/Utilities/utils/clamp.d.ts +0 -5
  236. package/src/Utilities/utils/clamp.js +0 -10
  237. package/src/Utilities/utils/cloneDeepWith.d.ts +0 -9
  238. package/src/Utilities/utils/cloneDeepWith.js +0 -70
  239. package/src/Utilities/utils/debounce.d.ts +0 -20
  240. package/src/Utilities/utils/flatten.d.ts +0 -5
  241. package/src/Utilities/utils/flatten.js +0 -10
  242. package/src/Utilities/utils/flattenDeep.d.ts +0 -5
  243. package/src/Utilities/utils/flattenDeep.js +0 -10
  244. package/src/Utilities/utils/get.d.ts +0 -6
  245. package/src/Utilities/utils/get.js +0 -38
  246. package/src/Utilities/utils/index.d.ts +0 -22
  247. package/src/Utilities/utils/index.js +0 -48
  248. package/src/Utilities/utils/isArray.d.ts +0 -6
  249. package/src/Utilities/utils/isArray.js +0 -8
  250. package/src/Utilities/utils/isEqual.d.ts +0 -5
  251. package/src/Utilities/utils/isEqual.js +0 -127
  252. package/src/Utilities/utils/isObject.d.ts +0 -6
  253. package/src/Utilities/utils/isObject.js +0 -12
  254. package/src/Utilities/utils/isPlainObject.d.ts +0 -6
  255. package/src/Utilities/utils/isPlainObject.js +0 -20
  256. package/src/Utilities/utils/kebabCase.d.ts +0 -5
  257. package/src/Utilities/utils/kebabCase.js +0 -12
  258. package/src/Utilities/utils/merge.d.ts +0 -11
  259. package/src/Utilities/utils/merge.js +0 -44
  260. package/src/Utilities/utils/mergeWith.d.ts +0 -7
  261. package/src/Utilities/utils/mergeWith.js +0 -50
  262. package/src/Utilities/utils/orderBy.d.ts +0 -8
  263. package/src/Utilities/utils/orderBy.js +0 -33
  264. package/src/Utilities/utils/parseInt.d.ts +0 -6
  265. package/src/Utilities/utils/parseInt.js +0 -12
  266. package/src/Utilities/utils/sentenceCase.d.ts +0 -6
  267. package/src/Utilities/utils/sentenceCase.js +0 -19
  268. package/src/Utilities/utils/startCase.d.ts +0 -5
  269. package/src/Utilities/utils/startCase.js +0 -15
  270. package/src/Utilities/utils/throttle.d.ts +0 -17
  271. package/src/Utilities/utils/throttle.js +0 -23
  272. package/src/Utilities/utils/toNumber.d.ts +0 -5
  273. package/src/Utilities/utils/toNumber.js +0 -42
  274. package/src/Utilities/utils/uniq.d.ts +0 -7
  275. package/src/Utilities/utils/uniq.js +0 -12
  276. package/src/Utilities/utils/uniqBy.d.ts +0 -8
  277. package/src/Utilities/utils/uniqBy.js +0 -25
  278. package/src/Utilities/utils/words.d.ts +0 -7
  279. package/src/Utilities/utils/words.js +0 -13
  280. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +0 -40
  281. package/src/agGrid/buildValueAggregationMenuItem.d.ts +0 -19
  282. package/src/agGrid/buildValueAggregationMenuItem.js +0 -114
  283. package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.d.ts +0 -30
  284. package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.js +0 -58
  285. package/src/agGrid/createAgGridIcon.d.ts +0 -10
  286. package/src/agGrid/createAgGridIcon.js +0 -19
  287. /package/src/{Utilities → AdaptableState/Aggregations}/only.d.ts +0 -0
  288. /package/src/{Utilities → AdaptableState/Aggregations}/only.js +0 -0
  289. /package/src/{Utilities → AdaptableState/Aggregations}/weightedAverage.d.ts +0 -0
  290. /package/src/AdaptableState/StyledColumns/Common/{BarChartMarker.js → BarStyleProperties.js} +0 -0
  291. /package/src/Utilities/Helpers/{ActionColumnWidthHelper.d.ts → ActionColumnHelper.d.ts} +0 -0
  292. /package/src/Utilities/Helpers/{ActionColumnWidthHelper.js → ActionColumnHelper.js} +0 -0
  293. /package/src/Utilities/Helpers/{alertFormHelper.d.ts → AlertHelper.d.ts} +0 -0
  294. /package/src/Utilities/Helpers/{chartingHelper.d.ts → ChartHelper.d.ts} +0 -0
  295. /package/src/Utilities/Helpers/{chartingHelper.js → ChartHelper.js} +0 -0
  296. /package/src/Utilities/Helpers/{FormatHelper.d.ts → DisplayFormatHelper.d.ts} +0 -0
  297. /package/src/Utilities/Helpers/{plusMinusTriggerKeys.d.ts → PlusMinusHelper.d.ts} +0 -0
  298. /package/src/Utilities/Helpers/{plusMinusTriggerKeys.js → PlusMinusHelper.js} +0 -0
  299. /package/src/Utilities/Helpers/{QuickSearchStyleHelper.d.ts → QuickSearchHelper.d.ts} +0 -0
  300. /package/src/Utilities/Helpers/{ScheduleJobManager.js → Scheduling/ScheduleJobManager.js} +0 -0
  301. /package/src/Utilities/Helpers/{ScheduleJobRunner.js → Scheduling/ScheduleJobRunner.js} +0 -0
  302. /package/src/Utilities/Helpers/{SparklineOptionsHelper.d.ts → StyledColumns/SparklineStyleHelper.d.ts} +0 -0
  303. /package/src/Utilities/Helpers/{ThemeHelpers.d.ts → ThemeHelper.d.ts} +0 -0
  304. /package/src/Utilities/Helpers/{ThemeHelpers.js → ThemeHelper.js} +0 -0
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const react_redux_1 = require("react-redux");
8
- const isEqual_1 = tslib_1.__importDefault(require("../../../../Utilities/utils/isEqual"));
8
+ const ObjectExtensions_1 = require("../../../../Utilities/Extensions/ObjectExtensions");
9
9
  const InternalRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/InternalRedux"));
10
10
  const AdaptableContext_1 = require("../../../AdaptableContext");
11
11
  const PreviewChartSection = (props) => {
@@ -26,7 +26,7 @@ const PreviewChartSection = (props) => {
26
26
  }, [divRef]);
27
27
  React.useEffect(() => {
28
28
  const model = currentChartModels.find((model) => model.chartId == localChartId);
29
- if (model && !(0, isEqual_1.default)(model, props.chartDefinition.Model)) {
29
+ if (model && !(0, ObjectExtensions_1.isEqual)(model, props.chartDefinition.Model)) {
30
30
  props.onChange({
31
31
  ...props.chartDefinition,
32
32
  Model: model,
@@ -5,13 +5,13 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const CheckBox_1 = require("../../../../components/CheckBox");
7
7
  const NewSelect_1 = require("../../../../components/NewSelect");
8
- const chartingHelper_1 = require("../../../../Utilities/Helpers/chartingHelper");
8
+ const ChartHelper_1 = require("../../../../Utilities/Helpers/ChartHelper");
9
9
  const Flex_1 = require("../../../../components/Flex");
10
10
  const Card_1 = require("../../../../components/Card");
11
11
  const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
12
12
  const PreviewChartSection_1 = require("./PreviewChartSection");
13
13
  const isSettingsValid = (chartDefinition, api) => {
14
- return (0, chartingHelper_1.validateChartName)(api, chartDefinition.Name, chartDefinition.Uuid);
14
+ return (0, ChartHelper_1.validateChartName)(api, chartDefinition.Name, chartDefinition.Uuid);
15
15
  };
16
16
  exports.isSettingsValid = isSettingsValid;
17
17
  const AGG_FUNCS = ['sum', 'min', 'max', 'count', 'avg', 'first', 'last'];
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SettingsSection = exports.isSettingsValid = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const chartingHelper_1 = require("../../../../Utilities/Helpers/chartingHelper");
6
+ const ChartHelper_1 = require("../../../../Utilities/Helpers/ChartHelper");
7
7
  const Flex_1 = require("../../../../components/Flex");
8
8
  const Card_1 = require("../../../../components/Card");
9
9
  const Input_1 = tslib_1.__importDefault(require("../../../../components/Input"));
10
10
  const PreviewChartSection_1 = require("./PreviewChartSection");
11
11
  const isSettingsValid = (chartDefinition, api) => {
12
- return (0, chartingHelper_1.validateChartName)(api, chartDefinition.Name, chartDefinition.Uuid);
12
+ return (0, ChartHelper_1.validateChartName)(api, chartDefinition.Name, chartDefinition.Uuid);
13
13
  };
14
14
  exports.isSettingsValid = isSettingsValid;
15
15
  const SettingsSection = (props) => {
@@ -12,7 +12,7 @@ const CommentsRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/
12
12
  const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
13
13
  const AdaptableContext_1 = require("../AdaptableContext");
14
14
  const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
15
- const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
15
+ const DisplayFormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/DisplayFormatHelper"));
16
16
  const Flex_1 = require("../../components/Flex");
17
17
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
18
18
  // Edit Mode
@@ -55,7 +55,7 @@ const CommentsEditor = (props) => {
55
55
  return null;
56
56
  }
57
57
  const formatDate = (date, format) => {
58
- return FormatHelper_1.default.DateFormatter(date, { Pattern: format });
58
+ return DisplayFormatHelper_1.default.DateFormatter(date, { Pattern: format });
59
59
  };
60
60
  return ((0, jsx_runtime_1.jsxs)(Panel_1.default, { color: "var(--ab-color-primary-foreground)", onClick: () => props.enableEditMode(), className: "ab-CommentPopup twa:min-w-[250px]", onKeyDown: (event) => {
61
61
  if (event.key === 'Escape') {
@@ -10,7 +10,7 @@ const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
10
10
  const AdaptableContext_1 = require("../AdaptableContext");
11
11
  const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
12
12
  const AdaptableButton_1 = require("../Components/AdaptableButton");
13
- const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
13
+ const DisplayFormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/DisplayFormatHelper"));
14
14
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
15
  const Flex_1 = require("../../components/Flex");
16
16
  const tableDOMProps = {
@@ -34,7 +34,7 @@ const CellComments = (props) => {
34
34
  const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Comment') ===
35
35
  GeneralConstants_1.ACCESS_LEVEL_READ_ONLY;
36
36
  const formatDate = (date, format) => {
37
- return FormatHelper_1.default.DateFormatter(date, { Pattern: format });
37
+ return DisplayFormatHelper_1.default.DateFormatter(date, { Pattern: format });
38
38
  };
39
39
  const columnsMap = React.useMemo(() => {
40
40
  const columns = {
@@ -15,10 +15,9 @@ const ButtonEdit_1 = require("../Buttons/ButtonEdit");
15
15
  const ButtonShare_1 = require("../Buttons/ButtonShare");
16
16
  const SuspendToggleButton_1 = require("../Buttons/SuspendToggleButton/SuspendToggleButton");
17
17
  const Flex_1 = require("../../../components/Flex");
18
- const twMerge_1 = require("../../../twMerge");
19
18
  const Tag_1 = require("../../../components/Tag/Tag");
20
19
  const objectListActionButtonStyles_1 = require("./objectListActionButtonStyles");
21
- const ICON_SIZE = 26;
20
+ const ICON_SIZE = 24;
22
21
  const LIST_BASE_CLASS_NAME = 'ab-Adaptable-Object-List';
23
22
  const ITEM_BASE_CLASS_NAME = `${LIST_BASE_CLASS_NAME}__Item`;
24
23
  const AdaptableObjectListItemView = (props) => {
@@ -28,8 +27,7 @@ const AdaptableObjectListItemView = (props) => {
28
27
  disabled: props.deleteDisabled,
29
28
  tooltip: props.deleteTooltip ?? 'Delete',
30
29
  iconSize: ICON_SIZE,
31
- ConfirmationMsg: props.deleteConfirmationMsg ??
32
- `Are you sure you want to delete this ${props.entityType}?`,
30
+ ConfirmationMsg: props.deleteConfirmationMsg ?? `Are you sure you want to delete this ${props.entityType}?`,
33
31
  ConfirmationTitle: `Delete ${props.entityType}`,
34
32
  ConfirmAction: props.deleteAction,
35
33
  accessLevel: props.accessLevel,
@@ -40,8 +38,8 @@ const AdaptableObjectListItemView = (props) => {
40
38
  dispatch(props.deleteAction);
41
39
  };
42
40
  }
43
- const deleteActionButton = ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { ...deleteActionProps, className: (0, twMerge_1.twMerge)((0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), deleteActionProps.className) }));
44
- return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", className: (0, twMerge_1.twMerge)(baseClassName, 'twa:rounded-standard', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:flex-1 ${baseClassName}__rows twa:gap-2 twa:flex twa:flex-col`, children: props.items.filter?.(Boolean)?.map((tag, index) => {
41
+ const deleteActionButton = ((0, jsx_runtime_1.jsx)(ButtonDelete_1.ButtonDelete, { ...deleteActionProps, className: (0, utils_1.cn)((0, objectListActionButtonStyles_1.objectListActionButtonClassName)('delete'), deleteActionProps.className) }));
42
+ return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", className: (0, utils_1.cn)(baseClassName, 'twa:rounded-standard', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: `twa:flex-1 ${baseClassName}__rows twa:gap-2 twa:flex twa:flex-col`, children: props.items.filter?.(Boolean)?.map((tag, index) => {
45
43
  const labelElement = typeof tag.label === 'function'
46
44
  ? React.createElement(tag.label, { key: index, data: props.abObject })
47
45
  : tag.label ?? tag.name;
@@ -1,2 +1,2 @@
1
- export type ObjectListActionKind = 'edit' | 'suspend' | 'delete' | 'share';
1
+ export type ObjectListActionKind = 'edit' | 'suspend' | 'delete' | 'share' | 'clone';
2
2
  export declare const objectListActionButtonClassName: (kind: ObjectListActionKind, className?: string) => string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.objectListActionButtonClassName = void 0;
4
4
  const utils_1 = require("../../../lib/utils");
5
- const objectListActionButtonClassName = (kind, className) => (0, utils_1.cn)('ab-ObjectListActionButton', `ab-ObjectListActionButton--${kind}`, className);
5
+ const objectListActionButtonClassName = (kind, className) => (0, utils_1.cn)('ab-ObjectListActionButton', `ab-ObjectListActionButton--${kind}`, 'twa:shadow-sm', className);
6
6
  exports.objectListActionButtonClassName = objectListActionButtonClassName;
@@ -7,7 +7,7 @@ const React = tslib_1.__importStar(require("react"));
7
7
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../../components/SimpleButton"));
8
8
  const GeneralConstants_1 = require("../../../../Utilities/Constants/GeneralConstants");
9
9
  const utils_1 = require("../../../../lib/utils");
10
- exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className, iconSize = 26, }) => {
10
+ exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSuspend, style, disabled, accessLevel, className, iconSize = 24, }) => {
11
11
  const preparedDisabled = (accessLevel && accessLevel === GeneralConstants_1.ACCESS_LEVEL_READ_ONLY) || disabled;
12
12
  const isSuspended = suspendableObject.IsSuspended;
13
13
  const handleClick = React.useCallback(() => {
@@ -18,5 +18,5 @@ exports.SuspendToggleButton = React.memo(({ suspendableObject, onUnSuspend, onSu
18
18
  onSuspend(suspendableObject);
19
19
  }
20
20
  }, [isSuspended, onSuspend, onUnSuspend, suspendableObject]);
21
- return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { className: (0, utils_1.cn)('ab-SuspendButton', isSuspended && 'twa:opacity-60', className), "data-name": isSuspended ? 'resume' : 'suspend', disabled: preparedDisabled, style: style, variant: "text", tone: "neutral", iconSize: iconSize, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', accessLevel: accessLevel, onClick: handleClick }));
21
+ return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { className: (0, utils_1.cn)('ab-SuspendButton', className), "data-name": isSuspended ? 'resume' : 'suspend', disabled: preparedDisabled, style: style, variant: "text", tone: "neutral", iconSize: iconSize, icon: isSuspended ? 'resume' : 'pause', tooltip: isSuspended ? 'Resume' : 'Suspend', accessLevel: accessLevel, onClick: handleClick }));
22
22
  });
@@ -9,10 +9,10 @@ const AdaptableInput_1 = tslib_1.__importDefault(require("../../AdaptableInput")
9
9
  const AdaptableDateInlineInput_1 = require("../../AdaptableInput/AdaptableDateInlineInput");
10
10
  const PermittedValuesSelector_1 = require("../../Selectors/PermittedValuesSelector");
11
11
  const AdaptableContext_1 = require("../../../AdaptableContext");
12
- const debounce_1 = tslib_1.__importDefault(require("../../../../Utilities/utils/debounce"));
12
+ const TimingHelper_1 = require("../../../../Utilities/Helpers/TimingHelper");
13
13
  const react_1 = require("react");
14
14
  function debounceOrImmediate(fn, time) {
15
- return time && time > 0 ? (0, debounce_1.default)(fn, time) : fn;
15
+ return time && time > 0 ? (0, TimingHelper_1.debounce)(fn, time) : fn;
16
16
  }
17
17
  const ColumnFilterInput = (props) => {
18
18
  const { type, value, onChange: onChangeProp, onClear: onClearProp, disabled, onKeyDown, filterType, usePrimitiveInputs = true, columnId, } = props;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ColumnFilterInputList = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const debounce_1 = tslib_1.__importDefault(require("../../../../Utilities/utils/debounce"));
6
+ const TimingHelper_1 = require("../../../../Utilities/Helpers/TimingHelper");
7
7
  const React = tslib_1.__importStar(require("react"));
8
8
  const utils_1 = require("../../../../components/ExpressionEditor/QueryBuilder/utils");
9
9
  const Panel_1 = tslib_1.__importDefault(require("../../../../components/Panel"));
@@ -22,7 +22,7 @@ const ColumnFilterInputList = (props) => {
22
22
  const matchingInputs = predicateDef
23
23
  ? (0, utils_1.getOperatorMatchingInputs)(fnTypeInput, predicateDef?.inputs, true)
24
24
  : [];
25
- const debouncedPredicateChange = React.useCallback((0, debounce_1.default)((predicate) => {
25
+ const debouncedPredicateChange = React.useCallback((0, TimingHelper_1.debounce)((predicate) => {
26
26
  props.onPredicateChange(predicate);
27
27
  }, 300), [props.predicate, props.columnId]);
28
28
  if (['date[]', 'number[]', 'text[]'].includes(matchingInputs[0])) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FloatingFilterInputList = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const debounce_1 = tslib_1.__importDefault(require("../../../../Utilities/utils/debounce"));
6
+ const TimingHelper_1 = require("../../../../Utilities/Helpers/TimingHelper");
7
7
  const React = tslib_1.__importStar(require("react"));
8
8
  const utils_1 = require("../../../../components/ExpressionEditor/QueryBuilder/utils");
9
9
  const adaptableQlUtils_1 = require("../../../../Utilities/adaptableQlUtils");
@@ -22,7 +22,7 @@ const FloatingFilterInputList = (props) => {
22
22
  const matchingInputs = predicateDef
23
23
  ? (0, utils_1.getOperatorMatchingInputs)(fnTypeInput, predicateDef?.inputs, true)
24
24
  : [];
25
- const debouncedPredicateChange = React.useCallback((0, debounce_1.default)((predicate) => {
25
+ const debouncedPredicateChange = React.useCallback((0, TimingHelper_1.debounce)((predicate) => {
26
26
  props.onPredicateChange(predicate);
27
27
  }, 300), [props.predicate, props.columnId]);
28
28
  if (['date[]', 'number[]', 'text[]'].includes(matchingInputs[0])) {
@@ -9,12 +9,13 @@ const FieldWrap_1 = tslib_1.__importDefault(require("../../../components/FieldWr
9
9
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
10
10
  const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
11
11
  const twMerge_1 = require("../../../twMerge");
12
+ const utils_1 = require("../../../lib/utils");
12
13
  exports.AdaptableFormControlTextClear = React.forwardRef((props, ref) => {
13
14
  let closeButtonTooltip = props.value ? 'Clear' : null;
14
15
  const inputRef = React.useRef(null);
15
16
  const { focusOnClear = true } = props;
16
17
  const clearDisabled = StringExtensions_1.StringExtensions.IsNullOrEmpty(props.value.toString());
17
- return ((0, jsx_runtime_1.jsxs)(FieldWrap_1.default, { onClick: props.onClick, className: (0, twMerge_1.twMerge)('twa:bg-input-background twa:text-input-foreground twa:overflow-visible twa:w-full twa:rounded-input', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Input_1.default, { "aria-label": props['aria-label'], autoFocus: props.autoFocus, style: props.inputStyle, className: props.inputClassName, ref: (r) => {
18
+ return ((0, jsx_runtime_1.jsxs)(FieldWrap_1.default, { onClick: props.onClick, className: (0, twMerge_1.twMerge)('twa:bg-input-background twa:text-input-foreground twa:overflow-visible twa:w-full twa:rounded-input', props.className), style: props.style, children: [(0, jsx_runtime_1.jsx)(Input_1.default, { "aria-label": props['aria-label'], autoFocus: props.autoFocus, style: props.inputStyle, className: (0, utils_1.cn)('twa:min-w-0 twa:flex-1', props.inputClassName), ref: (r) => {
18
19
  inputRef.current = r;
19
20
  if (!ref) {
20
21
  return;
@@ -7,14 +7,14 @@ const react_redux_1 = require("react-redux");
7
7
  const AdaptableContext_1 = require("../../../AdaptableContext");
8
8
  const PopupRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/PopupRedux"));
9
9
  const GeneralConstants_1 = require("../../../../Utilities/Constants/GeneralConstants");
10
- const resolveSettingsPanelNavigation_1 = require("../../../../Utilities/Helpers/resolveSettingsPanelNavigation");
10
+ const SettingsPanelHelper_1 = require("../../../../Utilities/Helpers/SettingsPanelHelper");
11
11
  const settingsPanelNavigationTypes_1 = require("./settingsPanelNavigationTypes");
12
12
  const useMenuItems = () => {
13
13
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
14
14
  const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
15
15
  const allMenuItems = (0, react_redux_1.useSelector)((state) => state?.Internal?.SettingsPanelModuleEntries);
16
16
  return React.useMemo(() => {
17
- const navigation = (0, resolveSettingsPanelNavigation_1.resolveSettingsPanelNavigation)(adaptable.api, settingsPanelOptions);
17
+ const navigation = (0, SettingsPanelHelper_1.resolveSettingsPanelNavigation)(adaptable.api, settingsPanelOptions);
18
18
  const visibleItems = allMenuItems.filter((item) => item.category !== 'General' &&
19
19
  item.category !== 'CustomSettingsPanel' &&
20
20
  item.category !== 'Group' &&
@@ -7,7 +7,7 @@ const React = tslib_1.__importStar(require("react"));
7
7
  const PanelWithImage_1 = require("../Panels/PanelWithImage");
8
8
  const UIHelper_1 = require("../../UIHelper");
9
9
  const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
10
- const alertFormHelper_1 = require("../../../Utilities/Helpers/alertFormHelper");
10
+ const AlertHelper_1 = require("../../../Utilities/Helpers/AlertHelper");
11
11
  const AdaptableFormComponent_1 = require("../../../components/AdaptableFormComponent");
12
12
  const react_1 = require("react");
13
13
  const AdaptableContext_1 = require("../../AdaptableContext");
@@ -35,7 +35,7 @@ const AdaptablePopupAlert = (props) => {
35
35
  formData: formData,
36
36
  };
37
37
  }, [JSON.stringify(formData), props.adaptableAlert]);
38
- const alertForm = React.useMemo(() => (0, alertFormHelper_1.resolveAlertFormForDefinition)(props.adaptableAlert.alertDefinition, defaultForm), [props.adaptableAlert.alertDefinition, defaultForm]);
38
+ const alertForm = React.useMemo(() => (0, AlertHelper_1.resolveAlertFormForDefinition)(props.adaptableAlert.alertDefinition, defaultForm), [props.adaptableAlert.alertDefinition, defaultForm]);
39
39
  const adaptableForm = React.useMemo(() => {
40
40
  if (api.isDestroyed()) {
41
41
  return null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getWindowPopupSize = exports.getSettingsPanelSize = exports.getActionPanelSize = exports.getMiddlePosition = void 0;
4
- const Helper_1 = require("../../../Utilities/Helpers/Helper");
4
+ const NumberExtensions_1 = require("../../../Utilities/Extensions/NumberExtensions");
5
5
  const getMiddlePosition = (size) => {
6
6
  const height = window.innerHeight;
7
7
  const width = window.innerWidth;
@@ -15,8 +15,8 @@ const getActionPanelSize = () => {
15
15
  const height = window.innerHeight;
16
16
  const width = window.innerWidth;
17
17
  return {
18
- height: (0, Helper_1.clamp)(600, 0, height * 0.9),
19
- width: (0, Helper_1.clamp)(800, 0, width * 0.9),
18
+ height: (0, NumberExtensions_1.clamp)(600, 0, height * 0.9),
19
+ width: (0, NumberExtensions_1.clamp)(800, 0, width * 0.9),
20
20
  };
21
21
  };
22
22
  exports.getActionPanelSize = getActionPanelSize;
@@ -24,8 +24,8 @@ const getSettingsPanelSize = () => {
24
24
  const height = window.innerHeight;
25
25
  const width = window.innerWidth;
26
26
  return {
27
- height: (0, Helper_1.clamp)(height * 0.9, 0, 800),
28
- width: (0, Helper_1.clamp)(width * 0.9, 0, 800),
27
+ height: (0, NumberExtensions_1.clamp)(height * 0.9, 0, 800),
28
+ width: (0, NumberExtensions_1.clamp)(width * 0.9, 0, 800),
29
29
  };
30
30
  };
31
31
  exports.getSettingsPanelSize = getSettingsPanelSize;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { AdaptableApi } from '../../Api/AdaptableApi';
3
3
  import { CellColorRange, ColumnComparison, NumericStyledColumn } from '../../AdaptableState/StyledColumns/Common/NumericStyledColumn';
4
- import { GradientZeroCentredColors } from '../../AdaptableState/StyledColumns/GradientStyle';
4
+ import { ZeroCentredColors } from '../../AdaptableState/StyledColumns/GradientStyle';
5
5
  import { ColumnScope } from '../../AdaptableState/Common/ColumnScope';
6
6
  export interface RangesComponentProps extends React.ClassAttributes<RangesComponent> {
7
7
  ranges: CellColorRange[];
@@ -35,8 +35,8 @@ export interface RangesComponentProps extends React.ClassAttributes<RangesCompon
35
35
  * `onApplyZeroCentred` and optional `zeroCentred` for the current colours.
36
36
  */
37
37
  showZeroCentredTab?: boolean;
38
- zeroCentred?: GradientZeroCentredColors;
39
- onApplyZeroCentred?: (zc: GradientZeroCentredColors) => void;
38
+ zeroCentred?: ZeroCentredColors;
39
+ onApplyZeroCentred?: (zc: ZeroCentredColors) => void;
40
40
  /**
41
41
  * When true, render a per-range "Reverse Gradient" toggle. Only meaningful
42
42
  * for Gradient Style (the renderer flips the alpha ramp within the band so
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const ColorPicker_1 = require("../../components/ColorPicker");
8
- const clamp_1 = tslib_1.__importDefault(require("../../Utilities/utils/clamp"));
8
+ const NumberExtensions_1 = require("../../Utilities/Extensions/NumberExtensions");
9
9
  const CheckBox_1 = require("../../components/CheckBox");
10
10
  const FormLayout_1 = tslib_1.__importStar(require("../../components/FormLayout"));
11
11
  const NumberInput_1 = require("../../components/Input/NumberInput");
@@ -114,13 +114,9 @@ class RangesComponent extends React.Component {
114
114
  ].join(' ');
115
115
  const renderRangesContent = () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isRangeValueTypeNumber ? ((0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { className: "twa:my-2 twa:text-3", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: "Define value bands from low to high, each with its own colour." }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: ["Tick ", (0, jsx_runtime_1.jsx)("strong", { children: "Use column min" }), " or ", (0, jsx_runtime_1.jsx)("strong", { children: "Use column max" }), " to anchor the first and last band to the column's actual lowest and highest values."] })] })) : ((0, jsx_runtime_1.jsxs)(HelpBlock_1.default, { className: "twa:my-2 twa:text-3", children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { children: "Define bands as percentages (0\u2013100) of the column's value range." }), (0, jsx_runtime_1.jsxs)(Flex_1.Box, { children: [(0, jsx_runtime_1.jsx)("strong", { children: "0%" }), " is the column's lowest value and ", (0, jsx_runtime_1.jsx)("strong", { children: "100%" }), " its highest; each band gets its own colour."] })] })), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:grid twa:items-end twa:gap-x-2 twa:gap-y-3 twa:mb-3 twa:w-fit", style: { gridTemplateColumns: rangeGridTemplateColumns }, children: this.props.ranges?.map((range, index, list) => ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:contents", "data-name": "percent-bar-range", children: [(0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === 0 && ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { onClick: () => this.setRangeColMin(range), checked: range.Min === 'Col-Min', className: "twa:mt-0 twa:mb-1 twa:text-3", disabled: this.props.disabled, children: "Use column min" })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { disabled: this.props.disabled ||
116
116
  range.Min === 'Col-Min' ||
117
- (index === 0 && !isRangeValueTypeNumber), value: range.Min === 'Col-Min'
118
- ? this.props.minMaxRangeValues?.min ?? ''
119
- : range.Min, onChange: (value) => {
117
+ (index === 0 && !isRangeValueTypeNumber), value: range.Min === 'Col-Min' ? this.props.minMaxRangeValues?.min ?? '' : range.Min, onChange: (value) => {
120
118
  this.changeRangeMin(index, value);
121
- } })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === list.length - 1 && ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:mt-0 twa:mb-1 twa:text-3", onClick: () => this.setRangeColMax(range), checked: range.Max === 'Col-Max', disabled: this.props.disabled, children: "Use column max" })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { value: range.Max === 'Col-Max'
122
- ? this.props.minMaxRangeValues?.max ?? ''
123
- : range.Max, disabled: this.props.disabled ||
119
+ } })] }), (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: "column", children: [isRangeValueTypeNumber && index === list.length - 1 && ((0, jsx_runtime_1.jsx)(CheckBox_1.CheckBox, { className: "twa:mt-0 twa:mb-1 twa:text-3", onClick: () => this.setRangeColMax(range), checked: range.Max === 'Col-Max', disabled: this.props.disabled, children: "Use column max" })), (0, jsx_runtime_1.jsx)(NumberInput_1.NumberInput, { value: range.Max === 'Col-Max' ? this.props.minMaxRangeValues?.max ?? '' : range.Max, disabled: this.props.disabled ||
124
120
  range.Max === 'Col-Max' ||
125
121
  (index === list.length - 1 && !isRangeValueTypeNumber), onChange: (value) => {
126
122
  this.changeRangeMax(index, value);
@@ -227,7 +223,7 @@ class RangesComponent extends React.Component {
227
223
  const { ranges } = this.props;
228
224
  let newMin = Number(value);
229
225
  if (this.props.rangeValueType === 'Percentage') {
230
- newMin = (0, clamp_1.default)(newMin, 0, 100);
226
+ newMin = (0, NumberExtensions_1.clamp)(newMin, 0, 100);
231
227
  }
232
228
  ranges[index].Min = newMin;
233
229
  if (ranges[index - 1]) {
@@ -239,7 +235,7 @@ class RangesComponent extends React.Component {
239
235
  const { ranges } = this.props;
240
236
  let newMax = Number(value);
241
237
  if (this.props.rangeValueType === 'Percentage') {
242
- newMax = (0, clamp_1.default)(newMax, 0, 100);
238
+ newMax = (0, NumberExtensions_1.clamp)(newMax, 0, 100);
243
239
  }
244
240
  ranges[index].Max = newMax;
245
241
  if (ranges[index + 1]) {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAdaptableToolPanelAgGridComponent = exports.ConnectedAdaptableToolPanel = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const kebabCase_1 = tslib_1.__importDefault(require("../../../Utilities/utils/kebabCase"));
6
+ const StringExtensions_1 = require("../../../Utilities/Extensions/StringExtensions");
7
7
  const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstants");
8
8
  const ToolPanelRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ToolPanelRedux"));
9
9
  const react_redux_1 = require("react-redux");
@@ -133,7 +133,7 @@ const AdaptableToolPanelComponent = (props) => {
133
133
  toolPanelButtons.push(moduleButtons.map((x) => {
134
134
  let menuItem = props.MainMenuItems.find((y) => y.isVisible && y.category == x);
135
135
  if (menuItem) {
136
- return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { "data-name": menuItem.category, icon: menuItem.icon, tone: "none", variant: "text", className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(menuItem.label)}`, tooltip: menuItem.label, onClick: () => props.onClick(menuItem.reduxAction), accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL }, menuItem.label));
136
+ return ((0, jsx_runtime_1.jsx)(SimpleButton_1.default, { "data-name": menuItem.category, icon: menuItem.icon, tone: "none", variant: "text", className: `ab-ToolPanel__Home__${(0, StringExtensions_1.kebabCase)(menuItem.label)}`, tooltip: menuItem.label, onClick: () => props.onClick(menuItem.reduxAction), accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL }, menuItem.label));
137
137
  }
138
138
  }));
139
139
  }
@@ -146,7 +146,7 @@ const AdaptableToolPanelComponent = (props) => {
146
146
  toolPanelState: props.api.toolPanelApi.getToolPanelState(),
147
147
  };
148
148
  const buttonLabel = props.api.internalApi.getLabelForButton(button, toolPanelContext) ?? '';
149
- return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: toolPanelContext, api: props.api, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.toolPanel, rerenderOnClick: false, className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(buttonLabel)}` }, buttonLabel || button.Uuid));
149
+ return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: toolPanelContext, api: props.api, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.toolPanel, rerenderOnClick: false, className: `ab-ToolPanel__Home__${(0, StringExtensions_1.kebabCase)(buttonLabel)}` }, buttonLabel || button.Uuid));
150
150
  });
151
151
  };
152
152
  const onSetToolPanelVisibility = (name, checked) => {
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomToolPanelContent = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const jsx_runtime_1 = require("react/jsx-runtime");
6
5
  const react_1 = require("react");
7
6
  const AdaptableContext_1 = require("../../AdaptableContext");
8
7
  const AdaptableButton_1 = require("../AdaptableButton");
9
- const kebabCase_1 = tslib_1.__importDefault(require("../../../Utilities/utils/kebabCase"));
8
+ const StringExtensions_1 = require("../../../Utilities/Extensions/StringExtensions");
10
9
  const CustomToolPanelContent = (props) => {
11
10
  const { customToolPanel } = props;
12
11
  const { api } = (0, AdaptableContext_1.useAdaptable)();
@@ -48,7 +47,7 @@ const CustomToolPanelContent = (props) => {
48
47
  customToolPanel: customToolPanel,
49
48
  };
50
49
  const buttonLabel = api.internalApi.getLabelForButton(button, toolPanelContext) ?? '';
51
- return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: toolPanelContext, api: api, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.customToolPanel, rerenderOnClick: false, className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(buttonLabel)}` }, buttonLabel || button.Uuid));
50
+ return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: toolPanelContext, api: api, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.customToolPanel, rerenderOnClick: false, className: `ab-ToolPanel__Home__${(0, StringExtensions_1.kebabCase)(buttonLabel)}` }, buttonLabel || button.Uuid));
52
51
  }) }))] }));
53
52
  };
54
53
  exports.CustomToolPanelContent = CustomToolPanelContent;
@@ -18,8 +18,11 @@ var ToolPanelConfigView;
18
18
  })(ToolPanelConfigView || (exports.ToolPanelConfigView = ToolPanelConfigView = {}));
19
19
  const ToolPanelPopupSections = (props) => {
20
20
  const { api } = (0, AdaptableContext_1.useAdaptable)();
21
- const initialExpandedId = props.initialTab === ToolPanelConfigView.Buttons ? 'module-buttons' : 'tool-panels';
22
- const { bindCard, hasExpandedCard, expandedFillsSpace } = (0, CollapsibleWizardCard_1.useWizardCardAccordion)(initialExpandedId);
21
+ // Start with both cards collapsed so the user sees the popup's full
22
+ // summary at a glance and explicitly chooses which to edit. `initialTab`
23
+ // is still accepted on the props for backwards compatibility but no
24
+ // longer pre-expands a card.
25
+ const { bindCard, hasExpandedCard, expandedFillsSpace } = (0, CollapsibleWizardCard_1.useWizardCardAccordion)(null);
23
26
  const selectedModuleButtons = [];
24
27
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(props.ToolPanelState.ModuleButtons)) {
25
28
  props.ToolPanelState.ModuleButtons.forEach((module) => {
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomDashboardButton = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const kebabCase_1 = tslib_1.__importDefault(require("../../Utilities/utils/kebabCase"));
5
+ const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
7
6
  const AdaptableButton_1 = require("../Components/AdaptableButton");
8
7
  const CustomDashboardButton = (props) => {
9
8
  const { button } = props;
@@ -12,6 +11,6 @@ const CustomDashboardButton = (props) => {
12
11
  dashboardState: props.api.dashboardApi.getDashboardState(),
13
12
  };
14
13
  const buttonLabel = props.api.internalApi.getLabelForButton(button, dashboardContext) ?? '';
15
- return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: dashboardContext, api: props.api, accessLevel: props.accessLevel, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.dashboard, buttonKey: buttonLabel, ariaLabel: buttonLabel, className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(buttonLabel)}` }));
14
+ return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonView, { button: button, context: dashboardContext, api: props.api, accessLevel: props.accessLevel, defaults: AdaptableButton_1.ADAPTABLE_BUTTON_SURFACE_DEFAULTS.dashboard, buttonKey: buttonLabel, ariaLabel: buttonLabel, className: `ab-DashboardToolbar__Home__${(0, StringExtensions_1.kebabCase)(buttonLabel)}` }));
16
15
  };
17
16
  exports.CustomDashboardButton = CustomDashboardButton;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Dashboard = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const kebabCase_1 = tslib_1.__importDefault(require("../../Utilities/utils/kebabCase"));
6
+ const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
7
7
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
8
8
  const react_redux_1 = require("react-redux");
9
9
  const Dashboard_1 = require("../../components/Dashboard");
@@ -65,7 +65,7 @@ const DashboardComponent = (props) => {
65
65
  shortcuts = shortcutsArray.map((x, index) => {
66
66
  let menuItem = props.InternalState.Dashboard.DashboardModuleButtons.find((y) => y.isVisible && y.category == x);
67
67
  if (menuItem) {
68
- return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonComponent, { "data-name": `dashboard-module-button-${menuItem.category ?? 'custom-' + index}`, "aria-label": menuItem.label, variant: menuItem.category === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.category === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, style: menuItem.category === 'SystemStatus'
68
+ return ((0, jsx_runtime_1.jsx)(AdaptableButton_1.AdaptableButtonComponent, { "data-name": `dashboard-module-button-${menuItem.category ?? 'custom-' + index}`, "aria-label": menuItem.label, variant: menuItem.category === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.category === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, StringExtensions_1.kebabCase)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == GeneralConstants_1.ACCESS_LEVEL_READ_ONLY, onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: GeneralConstants_1.ACCESS_LEVEL_FULL, style: menuItem.category === 'SystemStatus'
69
69
  ? {
70
70
  ...UIHelper_1.default.getStyleForMessageType(props.api.systemStatusApi.getCurrentSystemStatusMessageInfo()?.statusType ??
71
71
  'Success'),
@@ -11,7 +11,7 @@ const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
11
11
  const ButtonPlay_1 = require("../Components/Buttons/ButtonPlay");
12
12
  const ButtonPause_1 = require("../Components/Buttons/ButtonPause");
13
13
  const ButtonStop_1 = require("../Components/Buttons/ButtonStop");
14
- const FormatHelper_1 = require("../../Utilities/Helpers/FormatHelper");
14
+ const DisplayFormatHelper_1 = require("../../Utilities/Helpers/DisplayFormatHelper");
15
15
  const Flex_1 = require("../../components/Flex");
16
16
  class DataChangeHistoryPopupComponent extends React.Component {
17
17
  render() {
@@ -21,7 +21,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
21
21
  const suspended = changeHistoryMode === 'SUSPENDED';
22
22
  const buttonPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--button-panel twa:gap-1 twa:p-2", children: [disabled && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-activate", "data-name": 'data-change-history--button-activate', variant: 'raised', tone: 'accent', tooltip: '', onClick: () => onChangeHistoryEnable(), children: "Activate" })), suspended && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { className: "ab-DataChangeHistoryPopup--button-resume", "data-name": 'data-change-history--button-resume', variant: 'outlined', tooltip: 'Resume tracking data changes', onClick: () => onChangeHistoryResume(), children: "Resume" })), enabled && ((0, jsx_runtime_1.jsx)(ButtonPause_1.ButtonPause, { className: "ab-DataChangeHistoryPopup--button-suspend", "data-name": 'data-change-history--button-suspend', variant: 'outlined', tooltip: 'Suspend tracking data changes', onClick: () => onChangeHistorySuspend(), children: "Suspend" })), (enabled || suspended) && ((0, jsx_runtime_1.jsx)(ButtonStop_1.ButtonStop, { className: "ab-DataChangeHistoryPopup--button-deactivate", "data-name": 'data-change-history--button-deactivate', variant: 'outlined', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable(), children: "Deactivate" }))] }));
23
23
  const dateFormat = `${this.props.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
24
- const statusPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--status-panel twa:gap-1", alignItems: 'center', children: [enabled && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-active twa:text-success twa:font-bold", children: "Active" }), !!activationTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat }), ")"] }))] })), suspended && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-suspended twa:text-warn twa:font-bold", children: "Suspended" }), !!suspensionTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, FormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat }), ")"] }))] })), disabled && (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-disabled twa:text-2" })] }));
24
+ const statusPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPopup--status-panel twa:gap-1", alignItems: 'center', children: [enabled && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-active twa:text-success twa:font-bold", children: "Active" }), !!activationTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, DisplayFormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat }), ")"] }))] })), suspended && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-suspended twa:text-warn twa:font-bold", children: "Suspended" }), !!suspensionTime && ((0, jsx_runtime_1.jsxs)(Flex_1.Box, { className: "twa:text-2 twa:italic", children: ["(since ", (0, DisplayFormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat }), ")"] }))] })), disabled && (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPopup--status-disabled twa:text-2" })] }));
25
25
  const handleChangeUndo = (changeKey) => {
26
26
  const changeToBeUndone = changeHistoryLog[changeKey];
27
27
  if (changeToBeUndone) {
@@ -7,7 +7,7 @@ const React = tslib_1.__importStar(require("react"));
7
7
  const InfiniteTable_1 = require("../../components/InfiniteTable");
8
8
  const Flex_1 = require("../../components/Flex");
9
9
  const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
10
- const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
10
+ const DisplayFormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/DisplayFormatHelper"));
11
11
  const AdaptableContext_1 = require("../AdaptableContext");
12
12
  const AdaptableButtonView_1 = require("../Components/AdaptableButton/AdaptableButtonView");
13
13
  const buildActionColumnButton_1 = require("./buildActionColumnButton");
@@ -61,7 +61,7 @@ const DataChangeHistoryTable = (props) => {
61
61
  valueGetter: (params) => {
62
62
  const changedAt = (0, dataChangeHistoryHelpers_1.getChangeHistoryRowChangeInfo)(params.data)?.changedAt;
63
63
  return changedAt != null
64
- ? FormatHelper_1.default.DateFormatter(changedAt, { Pattern: dateFormat })
64
+ ? DisplayFormatHelper_1.default.DateFormatter(changedAt, { Pattern: dateFormat })
65
65
  : '';
66
66
  },
67
67
  },
@@ -9,7 +9,7 @@ const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
9
9
  const ButtonPlay_1 = require("../Components/Buttons/ButtonPlay");
10
10
  const ButtonPause_1 = require("../Components/Buttons/ButtonPause");
11
11
  const ButtonStop_1 = require("../Components/Buttons/ButtonStop");
12
- const FormatHelper_1 = require("../../Utilities/Helpers/FormatHelper");
12
+ const DisplayFormatHelper_1 = require("../../Utilities/Helpers/DisplayFormatHelper");
13
13
  const Tooltip_1 = tslib_1.__importDefault(require("../../components/Tooltip"));
14
14
  const AdaptableContext_1 = require("../AdaptableContext");
15
15
  const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
@@ -36,7 +36,7 @@ const DataChangeHistoryViewPanelControl = (props) => {
36
36
  const buttonsPaddingY = props.buttonsPaddingY ?? 2;
37
37
  const buttonPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPanel--button-panel", style: { gap: gap, paddingBlock: buttonsPaddingY }, children: [disabled && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { "aria-label": "Enable Data Change History", className: "ab-DataChangeHistoryPanel--button-activate", "data-name": 'data-change-history--button-activate', tooltip: '', onClick: () => onChangeHistoryEnable() })), suspended && ((0, jsx_runtime_1.jsx)(ButtonPlay_1.ButtonPlay, { "aria-label": "Resume Data Change History", className: "ab-DataChangeHistoryPanel--button-resume", "data-name": 'data-change-history--button-resume', tooltip: 'Resume tracking data changes', onClick: () => onChangeHistoryResume() })), enabled && ((0, jsx_runtime_1.jsx)(ButtonPause_1.ButtonPause, { "aria-label": "Suspend Data Change History", className: "ab-DataChangeHistoryPanel--button-suspend", "data-name": 'data-change-history--button-suspend', tooltip: 'Suspend tracking data changes', onClick: () => onChangeHistorySuspend() })), (enabled || suspended) && ((0, jsx_runtime_1.jsx)(ButtonStop_1.ButtonStop, { "aria-label": "Deactivate Data Change History", className: "ab-DataChangeHistoryPanel--button-deactivate", "data-name": 'data-change-history--button-deactivate', tooltip: 'Deactivate data change tracking', onClick: () => onChangeHistoryDisable() }))] }));
38
38
  const dateFormat = `${adaptable.api.optionsApi.getUserInterfaceOptions().dateInputOptions.dateFormat} HH:mm:ss`;
39
- const statusPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPanel--status-panel", alignItems: 'center', style: { gap: gap }, children: [enabled && ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { label: !!activationTime && `since ${(0, FormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat })}`, children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-active twa:text-2 twa:text-success", children: "Active" }) })), suspended && ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { label: !!suspensionTime && `since ${(0, FormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat })}`, children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-suspended twa:text-2 twa:text-warn", children: "Suspended" }) })), disabled && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-disabled twa:text-2", children: "Activate Data Tracking" }))] }));
39
+ const statusPanel = ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { className: "ab-DataChangeHistoryPanel--status-panel", alignItems: 'center', style: { gap: gap }, children: [enabled && ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { label: !!activationTime && `since ${(0, DisplayFormatHelper_1.DateFormatter)(activationTime, { Pattern: dateFormat })}`, children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-active twa:text-2 twa:text-success", children: "Active" }) })), suspended && ((0, jsx_runtime_1.jsx)(Tooltip_1.default, { label: !!suspensionTime && `since ${(0, DisplayFormatHelper_1.DateFormatter)(suspensionTime, { Pattern: dateFormat })}`, children: (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-suspended twa:text-2 twa:text-warn", children: "Suspended" }) })), disabled && ((0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "ab-DataChangeHistoryPanel--status-disabled twa:text-2", children: "Activate Data Tracking" }))] }));
40
40
  return ((0, jsx_runtime_1.jsxs)(Flex_1.Flex, { flexDirection: 'row', children: [buttonPanel, statusPanel, (0, jsx_runtime_1.jsx)(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2", children: (0, jsx_runtime_1.jsxs)(SimpleButton_1.default, { onClick: handleOpenPopup, variant: "text", children: [(0, jsx_runtime_1.jsx)(icons_1.Icon, { name: "open-in-new" }), (0, jsx_runtime_1.jsx)(Flex_1.Box, { className: "twa:ml-1", children: "Show" })] }) })] }));
41
41
  };
42
42
  exports.DataChangeHistoryViewPanelControl = DataChangeHistoryViewPanelControl;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataPreview = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
- const flatten_1 = tslib_1.__importDefault(require("../../../../Utilities/utils/flatten"));
6
+ const ArrayExtensions_1 = require("../../../../Utilities/Extensions/ArrayExtensions");
7
7
  const React = tslib_1.__importStar(require("react"));
8
8
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/HelpBlock"));
9
9
  const icons_1 = require("../../../../components/icons");
@@ -129,7 +129,7 @@ const DataPreview = (props) => {
129
129
  };
130
130
  return ((0, jsx_runtime_1.jsx)(InfiniteTable_1.DataSource, { data: props.data, primaryKey: primaryKey, onDataMutations: (params) => {
131
131
  const newRowData = [...props.data];
132
- const mutationsList = (0, flatten_1.default)(Array.from(params.mutations.values()));
132
+ const mutationsList = (0, ArrayExtensions_1.flatten)(Array.from(params.mutations.values()));
133
133
  if (!mutationsList.length) {
134
134
  return;
135
135
  }