@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
@@ -3,6 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.diff = exports.deepClone = void 0;
4
4
  exports.setInPath = setInPath;
5
5
  exports.isObjectEmpty = isObjectEmpty;
6
+ exports.isObject = isObject;
7
+ exports.isPlainObject = isPlainObject;
8
+ exports.isEqual = isEqual;
9
+ exports.cloneDeepWith = cloneDeepWith;
10
+ exports.merge = merge;
11
+ exports.mergeWith = mergeWith;
6
12
  /**
7
13
  * Returns a new object with the property updated.
8
14
  * The property is identified by the path.
@@ -41,3 +47,274 @@ const diff = (obj1, obj2) => {
41
47
  return changed;
42
48
  };
43
49
  exports.diff = diff;
50
+ /**
51
+ * Checks if `value` is the language type of Object.
52
+ * (e.g. arrays, functions, objects, regexes, new Number(0), and new String(''))
53
+ * Drop-in replacement for lodash/isObject.
54
+ */
55
+ function isObject(value) {
56
+ const type = typeof value;
57
+ return value != null && (type === 'object' || type === 'function');
58
+ }
59
+ /**
60
+ * Checks if `value` is a plain object, that is, an object created by the
61
+ * Object constructor or one with a [[Prototype]] of null.
62
+ * Drop-in replacement for lodash/isPlainObject.
63
+ */
64
+ function isPlainObject(value) {
65
+ if (value === null || value === undefined || typeof value !== 'object') {
66
+ return false;
67
+ }
68
+ const proto = Object.getPrototypeOf(value);
69
+ if (proto === null) {
70
+ return true;
71
+ }
72
+ return proto === Object.prototype;
73
+ }
74
+ /**
75
+ * Performs a deep comparison between two values to determine if they are equivalent.
76
+ * Drop-in replacement for lodash/isEqual.
77
+ */
78
+ function isEqual(value, other) {
79
+ return _baseIsEqual(value, other, new Map());
80
+ }
81
+ function _baseIsEqual(a, b, seen) {
82
+ if (a === b) {
83
+ return true;
84
+ }
85
+ if (a !== a && b !== b) {
86
+ return true;
87
+ }
88
+ if (a == null || b == null) {
89
+ return false;
90
+ }
91
+ const typeA = typeof a;
92
+ const typeB = typeof b;
93
+ if (typeA !== typeB) {
94
+ return false;
95
+ }
96
+ if (typeA !== 'object') {
97
+ return false;
98
+ }
99
+ if (a instanceof Date && b instanceof Date) {
100
+ return a.getTime() === b.getTime();
101
+ }
102
+ if (a instanceof RegExp && b instanceof RegExp) {
103
+ return a.source === b.source && a.flags === b.flags;
104
+ }
105
+ if (a instanceof Date !== b instanceof Date) {
106
+ return false;
107
+ }
108
+ if (a instanceof RegExp !== b instanceof RegExp) {
109
+ return false;
110
+ }
111
+ if (seen.has(a)) {
112
+ return seen.get(a) === b;
113
+ }
114
+ seen.set(a, b);
115
+ if (Array.isArray(a)) {
116
+ if (!Array.isArray(b) || a.length !== b.length) {
117
+ return false;
118
+ }
119
+ for (let i = 0; i < a.length; i++) {
120
+ if (!_baseIsEqual(a[i], b[i], seen)) {
121
+ return false;
122
+ }
123
+ }
124
+ return true;
125
+ }
126
+ if (Array.isArray(b)) {
127
+ return false;
128
+ }
129
+ if (a instanceof Map && b instanceof Map) {
130
+ if (a.size !== b.size) {
131
+ return false;
132
+ }
133
+ for (const [key, val] of a) {
134
+ if (!b.has(key) || !_baseIsEqual(val, b.get(key), seen)) {
135
+ return false;
136
+ }
137
+ }
138
+ return true;
139
+ }
140
+ // Unordered deep comparison for Sets, matching lodash behaviour
141
+ if (a instanceof Set && b instanceof Set) {
142
+ if (a.size !== b.size) {
143
+ return false;
144
+ }
145
+ for (const valA of a) {
146
+ let found = false;
147
+ for (const valB of b) {
148
+ if (_baseIsEqual(valA, valB, new Map(seen))) {
149
+ found = true;
150
+ break;
151
+ }
152
+ }
153
+ if (!found) {
154
+ return false;
155
+ }
156
+ }
157
+ return true;
158
+ }
159
+ if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
160
+ const viewA = a;
161
+ const viewB = b;
162
+ if (viewA.length !== viewB.length) {
163
+ return false;
164
+ }
165
+ for (let i = 0; i < viewA.length; i++) {
166
+ if (viewA[i] !== viewB[i]) {
167
+ return false;
168
+ }
169
+ }
170
+ return true;
171
+ }
172
+ const keysA = Object.keys(a);
173
+ const keysB = Object.keys(b);
174
+ if (keysA.length !== keysB.length) {
175
+ return false;
176
+ }
177
+ for (const key of keysA) {
178
+ if (!Object.prototype.hasOwnProperty.call(b, key)) {
179
+ return false;
180
+ }
181
+ if (!_baseIsEqual(a[key], b[key], seen)) {
182
+ return false;
183
+ }
184
+ }
185
+ return true;
186
+ }
187
+ /**
188
+ * Like `cloneDeep` except that it accepts a customizer which is invoked to
189
+ * produce the cloned value. If the customizer returns `undefined`, cloning is
190
+ * handled by the method instead.
191
+ * Drop-in replacement for lodash/cloneDeepWith.
192
+ */
193
+ function cloneDeepWith(value, customizer) {
194
+ return _baseCloneDeep(value, customizer, new Map());
195
+ }
196
+ function _baseCloneDeep(value, customizer, seen) {
197
+ const customResult = customizer(value);
198
+ if (customResult !== undefined) {
199
+ return customResult;
200
+ }
201
+ if (value === null || typeof value !== 'object') {
202
+ return value;
203
+ }
204
+ if (seen.has(value)) {
205
+ return seen.get(value);
206
+ }
207
+ if (value instanceof Date) {
208
+ return new Date(value.getTime());
209
+ }
210
+ if (value instanceof RegExp) {
211
+ return new RegExp(value.source, value.flags);
212
+ }
213
+ if (value instanceof Map) {
214
+ const cloned = new Map();
215
+ seen.set(value, cloned);
216
+ value.forEach((v, k) => {
217
+ cloned.set(_baseCloneDeep(k, customizer, seen), _baseCloneDeep(v, customizer, seen));
218
+ });
219
+ return cloned;
220
+ }
221
+ if (value instanceof Set) {
222
+ const cloned = new Set();
223
+ seen.set(value, cloned);
224
+ value.forEach((v) => {
225
+ cloned.add(_baseCloneDeep(v, customizer, seen));
226
+ });
227
+ return cloned;
228
+ }
229
+ if (Array.isArray(value)) {
230
+ const cloned = [];
231
+ seen.set(value, cloned);
232
+ for (let i = 0; i < value.length; i++) {
233
+ cloned[i] = _baseCloneDeep(value[i], customizer, seen);
234
+ }
235
+ return cloned;
236
+ }
237
+ const cloned = Object.create(Object.getPrototypeOf(value));
238
+ seen.set(value, cloned);
239
+ const keys = Object.keys(value);
240
+ for (const key of keys) {
241
+ cloned[key] = _baseCloneDeep(value[key], customizer, seen);
242
+ }
243
+ return cloned;
244
+ }
245
+ function _baseMerge(target, source) {
246
+ if (source == null) {
247
+ return target;
248
+ }
249
+ const keys = Object.keys(source);
250
+ for (const key of keys) {
251
+ const srcValue = source[key];
252
+ const tgtValue = target[key];
253
+ if (Array.isArray(srcValue)) {
254
+ if (!Array.isArray(tgtValue)) {
255
+ target[key] = [];
256
+ }
257
+ _baseMerge(target[key], srcValue);
258
+ }
259
+ else if (isPlainObject(srcValue)) {
260
+ if (!isPlainObject(tgtValue)) {
261
+ target[key] = {};
262
+ }
263
+ _baseMerge(target[key], srcValue);
264
+ }
265
+ else if (srcValue !== undefined) {
266
+ target[key] = srcValue;
267
+ }
268
+ }
269
+ return target;
270
+ }
271
+ function merge(target, ...sources) {
272
+ for (const source of sources) {
273
+ _baseMerge(target, source);
274
+ }
275
+ return target;
276
+ }
277
+ function _baseMergeWith(target, source, customizer) {
278
+ if (source == null) {
279
+ return target;
280
+ }
281
+ const keys = Object.keys(source);
282
+ for (const key of keys) {
283
+ const srcValue = source[key];
284
+ const tgtValue = target[key];
285
+ const customResult = customizer(tgtValue, srcValue, key, target, source);
286
+ if (customResult !== undefined) {
287
+ target[key] = customResult;
288
+ }
289
+ else if (Array.isArray(srcValue)) {
290
+ if (!Array.isArray(tgtValue)) {
291
+ target[key] = [];
292
+ }
293
+ _baseMergeWith(target[key], srcValue, customizer);
294
+ }
295
+ else if (isPlainObject(srcValue)) {
296
+ if (!isPlainObject(tgtValue)) {
297
+ target[key] = {};
298
+ }
299
+ _baseMergeWith(target[key], srcValue, customizer);
300
+ }
301
+ else if (srcValue !== undefined) {
302
+ target[key] = srcValue;
303
+ }
304
+ }
305
+ return target;
306
+ }
307
+ /**
308
+ * Like `merge` except that it accepts a customizer which is invoked to produce
309
+ * the merged values of the destination and source properties. If the customizer
310
+ * returns `undefined`, merging is handled by the method instead.
311
+ * Drop-in replacement for lodash/mergeWith.
312
+ */
313
+ function mergeWith(target, ...args) {
314
+ const customizer = args[args.length - 1];
315
+ const sources = args.slice(0, -1);
316
+ for (const source of sources) {
317
+ _baseMergeWith(target, source, customizer);
318
+ }
319
+ return target;
320
+ }
@@ -18,6 +18,28 @@ export declare function ReplaceEmptySpacesWithUnderscore(str?: string): string;
18
18
  export declare function IsNumeric(str: string): boolean;
19
19
  export declare function UnescapeHtmlEntities(str: string): string;
20
20
  export declare function ReplaceAllOccurencesExceptLastOne(str: string, searchTerm: string, replacement: string): string;
21
+ /**
22
+ * Splits a string into words: handles camelCase, PascalCase, UPPER_CASE,
23
+ * UPPER_SNAKE_CASE, snake_case, kebab-case, spaces, and dot.notation.
24
+ * Shared helper used by `kebabCase`, `startCase`, and `sentenceCase`.
25
+ */
26
+ export declare function words(str: string): string[];
27
+ /**
28
+ * Converts string to kebab-case.
29
+ * Drop-in replacement for lodash/kebabCase.
30
+ */
31
+ export declare function kebabCase(string: string): string;
32
+ /**
33
+ * Converts string to Start Case.
34
+ * Drop-in replacement for lodash/startCase.
35
+ */
36
+ export declare function startCase(string: string): string;
37
+ /**
38
+ * Converts string to Sentence case.
39
+ * Splits on camelCase, PascalCase, dots, underscores, hyphens, and non-alphanumeric characters.
40
+ * Drop-in replacement for the sentence-case package.
41
+ */
42
+ export declare function sentenceCase(input: string): string;
21
43
  export declare const StringExtensions: {
22
44
  IsNull: typeof IsNull;
23
45
  IsNotNull: typeof IsNotNull;
@@ -39,5 +61,9 @@ export declare const StringExtensions: {
39
61
  IsNumeric: typeof IsNumeric;
40
62
  UnescapeHtmlEntities: typeof UnescapeHtmlEntities;
41
63
  ReplaceAllOccurencesExceptLastOne: typeof ReplaceAllOccurencesExceptLastOne;
64
+ words: typeof words;
65
+ kebabCase: typeof kebabCase;
66
+ startCase: typeof startCase;
67
+ sentenceCase: typeof sentenceCase;
42
68
  };
43
69
  export default StringExtensions;
@@ -21,8 +21,10 @@ exports.ReplaceEmptySpacesWithUnderscore = ReplaceEmptySpacesWithUnderscore;
21
21
  exports.IsNumeric = IsNumeric;
22
22
  exports.UnescapeHtmlEntities = UnescapeHtmlEntities;
23
23
  exports.ReplaceAllOccurencesExceptLastOne = ReplaceAllOccurencesExceptLastOne;
24
- const tslib_1 = require("tslib");
25
- const startCase_1 = tslib_1.__importDefault(require("../utils/startCase"));
24
+ exports.words = words;
25
+ exports.kebabCase = kebabCase;
26
+ exports.startCase = startCase;
27
+ exports.sentenceCase = sentenceCase;
26
28
  function IsNull(stringToCheck) {
27
29
  return stringToCheck == null || stringToCheck == undefined;
28
30
  }
@@ -87,7 +89,7 @@ function CapitaliseFirstLetter(str) {
87
89
  return `${str.charAt(0).toUpperCase()}${str.substring(1)}`;
88
90
  }
89
91
  function Humanize(str) {
90
- return (0, startCase_1.default)(str);
92
+ return startCase(str);
91
93
  }
92
94
  function ReplaceEmptySpacesWithUnderscore(str = '') {
93
95
  return str.replace(/ /g, '_');
@@ -131,6 +133,46 @@ function ReplaceAllOccurencesExceptLastOne(str, searchTerm, replacement) {
131
133
  // Recombine the modified first part with the untouched second part
132
134
  return replacedPart + partAfterLast;
133
135
  }
136
+ /**
137
+ * Splits a string into words: handles camelCase, PascalCase, UPPER_CASE,
138
+ * UPPER_SNAKE_CASE, snake_case, kebab-case, spaces, and dot.notation.
139
+ * Shared helper used by `kebabCase`, `startCase`, and `sentenceCase`.
140
+ */
141
+ function words(str) {
142
+ const matches = str.match(/[A-Z]?[a-z]+|[A-Z]+(?=[A-Z][a-z]|\d|$|[^a-zA-Z0-9])|[A-Z]|[0-9]+/g);
143
+ return matches || [];
144
+ }
145
+ function _capitalizeWord(word) {
146
+ return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
147
+ }
148
+ /**
149
+ * Converts string to kebab-case.
150
+ * Drop-in replacement for lodash/kebabCase.
151
+ */
152
+ function kebabCase(string) {
153
+ return words(string).map((w) => w.toLowerCase()).join('-');
154
+ }
155
+ /**
156
+ * Converts string to Start Case.
157
+ * Drop-in replacement for lodash/startCase.
158
+ */
159
+ function startCase(string) {
160
+ return words(string).map(_capitalizeWord).join(' ');
161
+ }
162
+ /**
163
+ * Converts string to Sentence case.
164
+ * Splits on camelCase, PascalCase, dots, underscores, hyphens, and non-alphanumeric characters.
165
+ * Drop-in replacement for the sentence-case package.
166
+ */
167
+ function sentenceCase(input) {
168
+ const parts = words(input);
169
+ if (parts.length === 0) {
170
+ return '';
171
+ }
172
+ return parts
173
+ .map((w, i) => (i === 0 ? w.charAt(0).toUpperCase() + w.slice(1).toLowerCase() : w.toLowerCase()))
174
+ .join(' ');
175
+ }
134
176
  exports.StringExtensions = {
135
177
  IsNull,
136
178
  IsNotNull,
@@ -152,5 +194,9 @@ exports.StringExtensions = {
152
194
  IsNumeric,
153
195
  UnescapeHtmlEntities,
154
196
  ReplaceAllOccurencesExceptLastOne,
197
+ words,
198
+ kebabCase,
199
+ startCase,
200
+ sentenceCase,
155
201
  };
156
202
  exports.default = exports.StringExtensions;
@@ -9,8 +9,8 @@ exports.removeAdaptableObjectPrimitivesInline = removeAdaptableObjectPrimitivesI
9
9
  exports.removeAdaptableObjectPrimitives = removeAdaptableObjectPrimitives;
10
10
  exports.isAdaptableObject = isAdaptableObject;
11
11
  const tslib_1 = require("tslib");
12
- const cloneDeepWith_1 = tslib_1.__importDefault(require("../utils/cloneDeepWith"));
13
- const isPlainObject_1 = tslib_1.__importDefault(require("../utils/isPlainObject"));
12
+ const ObjectExtensions_1 = require("../Extensions/ObjectExtensions");
13
+ const ObjectExtensions_2 = require("../Extensions/ObjectExtensions");
14
14
  const Uuid_1 = require("../../AdaptableState/Uuid");
15
15
  const GeneralConstants_1 = require("../Constants/GeneralConstants");
16
16
  const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
@@ -27,19 +27,19 @@ function addUuidsToInitialState(initialState) {
27
27
  const objectsToEnrich = new Set();
28
28
  for (const moduleKey in initialState) {
29
29
  const moduleState = initialState[moduleKey];
30
- if ((0, isPlainObject_1.default)(moduleState)) {
30
+ if ((0, ObjectExtensions_2.isPlainObject)(moduleState)) {
31
31
  objectsToEnrich.add(moduleState);
32
32
  for (const key in moduleState) {
33
33
  const value = moduleState[key];
34
34
  if (Array.isArray(value)) {
35
35
  for (const item of value) {
36
- if ((0, isPlainObject_1.default)(item)) {
36
+ if ((0, ObjectExtensions_2.isPlainObject)(item)) {
37
37
  objectsToEnrich.add(item);
38
38
  // ColumnFilters are nested inside Layouts but need Uuid
39
39
  // for identification (suspend/unsuspend, edit vs add, etc.)
40
40
  if (Array.isArray(item.ColumnFilters)) {
41
41
  for (const filter of item.ColumnFilters) {
42
- if ((0, isPlainObject_1.default)(filter)) {
42
+ if ((0, ObjectExtensions_2.isPlainObject)(filter)) {
43
43
  objectsToEnrich.add(filter);
44
44
  }
45
45
  }
@@ -51,7 +51,7 @@ function addUuidsToInitialState(initialState) {
51
51
  }
52
52
  }
53
53
  const customizer = (value) => {
54
- if ((0, isPlainObject_1.default)(value) && objectsToEnrich.has(value)) {
54
+ if ((0, ObjectExtensions_2.isPlainObject)(value) && objectsToEnrich.has(value)) {
55
55
  if (value.Uuid == null || value.Uuid == undefined) {
56
56
  value.Uuid = (0, Uuid_1.createUuid)();
57
57
  }
@@ -60,7 +60,7 @@ function addUuidsToInitialState(initialState) {
60
60
  }
61
61
  }
62
62
  };
63
- return (0, cloneDeepWith_1.default)(initialState, customizer);
63
+ return (0, ObjectExtensions_1.cloneDeepWith)(initialState, customizer);
64
64
  }
65
65
  function getAccessLevelForObject(adaptableObject, moduleAccessLevel) {
66
66
  // we always return the Module Access Level unless the following condition is met:
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveAlertFormForDefinition = resolveAlertFormForDefinition;
4
- const ScheduledAlertHelper_1 = require("./ScheduledAlertHelper");
4
+ const ScheduledAlertHelper_1 = require("./Scheduling/ScheduledAlertHelper");
5
5
  function resolveAlertFormForDefinition(alert, defaultForm) {
6
6
  if ((0, ScheduledAlertHelper_1.isScheduledAlertDefinition)(alert)) {
7
7
  if (!alert.AlertProperties?.DisplayNotification) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseDateValue = exports.parseToISO = exports.dateToISO = exports.isValueValidDate = exports.isValidDate = void 0;
4
4
  const date_fns_1 = require("date-fns");
5
- const FormatHelper_1 = require("./FormatHelper");
5
+ const DisplayFormatHelper_1 = require("./DisplayFormatHelper");
6
6
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
7
7
  const isValidDate = (date) => {
8
8
  return date instanceof Date && !isNaN(date.getTime());
@@ -22,7 +22,7 @@ const isValueValidDate = (data) => {
22
22
  };
23
23
  exports.isValueValidDate = isValueValidDate;
24
24
  const dateToISO = (date) => {
25
- return (0, FormatHelper_1.DateFormatter)(date, { Pattern: 'yyyy-MM-dd' });
25
+ return (0, DisplayFormatHelper_1.DateFormatter)(date, { Pattern: 'yyyy-MM-dd' });
26
26
  };
27
27
  exports.dateToISO = dateToISO;
28
28
  const parseToISO = (date, dateFormat) => {
@@ -6,10 +6,10 @@ exports.StringFormatter = StringFormatter;
6
6
  const tslib_1 = require("tslib");
7
7
  // TODO inspect why the following is erroring on angular build
8
8
  const date_fns_1 = require("date-fns");
9
- const sentenceCase_1 = tslib_1.__importDefault(require("../utils/sentenceCase"));
9
+ const StringExtensions_1 = require("../Extensions/StringExtensions");
10
10
  const GeneralConstants_1 = require("../Constants/GeneralConstants");
11
11
  const Helper_1 = tslib_1.__importDefault(require("./Helper"));
12
- const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
12
+ const StringExtensions_2 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
13
13
  const getInputFractionDigitCount = (input) => {
14
14
  const fraction = String(input).split('.')[1];
15
15
  return fraction ? fraction.replace(/0+$/, '').length : 0;
@@ -128,7 +128,7 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
128
128
  }
129
129
  else {
130
130
  // otherwise don't replace the last instance
131
- s = StringExtensions_1.default.ReplaceAllOccurencesExceptLastOne(s, ',', options.IntegerSeparator);
131
+ s = StringExtensions_2.default.ReplaceAllOccurencesExceptLastOne(s, ',', options.IntegerSeparator);
132
132
  }
133
133
  }
134
134
  }
@@ -187,7 +187,7 @@ function StringFormatter(input, options = {}, rowNode, column, api) {
187
187
  else {
188
188
  preparedInput = normalisedTextInput;
189
189
  }
190
- if (StringExtensions_1.default.IsNullOrEmptyOrWhiteSpace(preparedInput)) {
190
+ if (StringExtensions_2.default.IsNullOrEmptyOrWhiteSpace(preparedInput)) {
191
191
  return undefined;
192
192
  }
193
193
  if (options.Empty) {
@@ -208,7 +208,7 @@ function StringFormatter(input, options = {}, rowNode, column, api) {
208
208
  s = s.toUpperCase();
209
209
  }
210
210
  else if (options.Case == 'Sentence') {
211
- s = (0, sentenceCase_1.default)(s);
211
+ s = (0, StringExtensions_1.sentenceCase)(s);
212
212
  }
213
213
  }
214
214
  if (options.Trim !== undefined && options.Trim == true) {
@@ -10,9 +10,6 @@ export declare function copyToClipboard(text: string): Promise<boolean>;
10
10
  export declare function returnItemCount(items: any[], itemName: string): string;
11
11
  export declare function isInputNullOrEmpty(itemToCheck: any): boolean;
12
12
  export declare function isInputNotNullOrEmpty(itemToCheck: any): boolean;
13
- export declare function roundNumber(numberToRound: any, decimalPlaces: number): number;
14
- export declare function roundNumberTo4dp(numberToRound: any): number;
15
- export declare function clamp(value: any, boundOne: number, boundTwo: number): number;
16
13
  export declare function extractColsFromText(text: string): string[];
17
14
  export declare function replaceAll(text: string, toReplace: string, replaceWith: string): string;
18
15
  export declare function extractContextKeysFromText(text: string): string[];
@@ -28,9 +25,6 @@ export declare const Helper: {
28
25
  returnItemCount: typeof returnItemCount;
29
26
  isInputNullOrEmpty: typeof isInputNullOrEmpty;
30
27
  isInputNotNullOrEmpty: typeof isInputNotNullOrEmpty;
31
- roundNumber: typeof roundNumber;
32
- roundNumberTo4dp: typeof roundNumberTo4dp;
33
- clamp: typeof clamp;
34
28
  extractColsFromText: typeof extractColsFromText;
35
29
  replaceAll: typeof replaceAll;
36
30
  extractContextKeysFromText: typeof extractContextKeysFromText;
@@ -12,9 +12,6 @@ exports.copyToClipboard = copyToClipboard;
12
12
  exports.returnItemCount = returnItemCount;
13
13
  exports.isInputNullOrEmpty = isInputNullOrEmpty;
14
14
  exports.isInputNotNullOrEmpty = isInputNotNullOrEmpty;
15
- exports.roundNumber = roundNumber;
16
- exports.roundNumberTo4dp = roundNumberTo4dp;
17
- exports.clamp = clamp;
18
15
  exports.extractColsFromText = extractColsFromText;
19
16
  exports.replaceAll = replaceAll;
20
17
  exports.extractContextKeysFromText = extractContextKeysFromText;
@@ -161,38 +158,6 @@ function isInputNullOrEmpty(itemToCheck) {
161
158
  function isInputNotNullOrEmpty(itemToCheck) {
162
159
  return !isInputNullOrEmpty(itemToCheck);
163
160
  }
164
- function roundNumber(numberToRound, decimalPlaces) {
165
- switch (decimalPlaces) {
166
- case 1:
167
- return Math.round(numberToRound * 10) / 10;
168
- case 2:
169
- return Math.round(numberToRound * 100) / 100;
170
- case 3:
171
- return Math.round(numberToRound * 1000) / 1000;
172
- case 4:
173
- return Math.round(numberToRound * 10000) / 10000;
174
- case 5:
175
- return Math.round(numberToRound * 100000) / 100000;
176
- case 6:
177
- return Math.round(numberToRound * 1000000) / 1000000;
178
- }
179
- }
180
- function roundNumberTo4dp(numberToRound) {
181
- return roundNumber(numberToRound, 4);
182
- }
183
- // putting this here to remove lodash clamp which seems to cause an issue
184
- function clamp(value, boundOne, boundTwo) {
185
- if (!boundTwo) {
186
- return Math.max(value, boundOne) === boundOne ? value : boundOne;
187
- }
188
- else if (Math.min(value, boundOne) === value) {
189
- return boundOne;
190
- }
191
- else if (Math.max(value, boundTwo) === value) {
192
- return boundTwo;
193
- }
194
- return value;
195
- }
196
161
  function extractColsFromText(text) {
197
162
  // rowData.columnName => columnName
198
163
  const regex = /\[rowData\.(.*?)\]/g;
@@ -233,9 +198,6 @@ exports.Helper = {
233
198
  returnItemCount,
234
199
  isInputNullOrEmpty,
235
200
  isInputNotNullOrEmpty,
236
- roundNumber,
237
- roundNumberTo4dp,
238
- clamp,
239
201
  extractColsFromText,
240
202
  replaceAll,
241
203
  extractContextKeysFromText,
@@ -5,10 +5,9 @@ exports.resolveQuickSearchTextMatchStyle = resolveQuickSearchTextMatchStyle;
5
5
  exports.resolveQuickSearchCellMatchStyle = resolveQuickSearchCellMatchStyle;
6
6
  exports.resolveQuickSearchCurrentTextMatchStyle = resolveQuickSearchCurrentTextMatchStyle;
7
7
  exports.applyQuickSearchFindCssVars = applyQuickSearchFindCssVars;
8
- const tslib_1 = require("tslib");
9
8
  const QuickSearchRedux_1 = require("../../Redux/ActionsReducers/QuickSearchRedux");
10
9
  const StyleHelper_1 = require("./StyleHelper");
11
- const kebabCase_1 = tslib_1.__importDefault(require("../utils/kebabCase"));
10
+ const StringExtensions_1 = require("../Extensions/StringExtensions");
12
11
  const QUICK_SEARCH_FIND_CSS_KEYS = [
13
12
  'backgroundColor',
14
13
  'color',
@@ -79,6 +78,6 @@ function applyQuickSearchFindCssVars(container, quickSearchState) {
79
78
  }
80
79
  function applyQuickSearchFindCssVarsForPrefix(container, prefix, css) {
81
80
  QUICK_SEARCH_FIND_CSS_KEYS.forEach((key) => {
82
- container.style.setProperty(`--ab-qs-${prefix}-${(0, kebabCase_1.default)(key)}`, css[key] ?? '');
81
+ container.style.setProperty(`--ab-qs-${prefix}-${(0, StringExtensions_1.kebabCase)(key)}`, css[key] ?? '');
83
82
  });
84
83
  }
@@ -1,4 +1,4 @@
1
- import { Schedule, Weekday } from '../../AdaptableState/Common/Schedule';
1
+ import { Schedule, Weekday } from '../../../AdaptableState/Common/Schedule';
2
2
  export type ScheduleRecurrencePreset = 'daily' | 'weekdays' | 'selectedDays' | 'monthly' | 'custom';
3
3
  export declare function buildCronExpression(preset: ScheduleRecurrencePreset, hour: number, minute: number, options?: {
4
4
  days?: Weekday[];
@@ -11,7 +11,7 @@ exports.getScheduleDescription = getScheduleDescription;
11
11
  exports.isValidCronExpression = isValidCronExpression;
12
12
  const tslib_1 = require("tslib");
13
13
  const cron_parser_1 = require("cron-parser");
14
- const StringExtensions_1 = tslib_1.__importDefault(require("../Extensions/StringExtensions"));
14
+ const StringExtensions_1 = tslib_1.__importDefault(require("../../Extensions/StringExtensions"));
15
15
  const WEEKDAY_TO_CRON = {
16
16
  Sunday: 0,
17
17
  Monday: 1,
@@ -1,4 +1,4 @@
1
- import { Schedule } from '../../AdaptableState/Common/Schedule';
1
+ import { Schedule } from '../../../AdaptableState/Common/Schedule';
2
2
  export interface ScheduleJobManagerConfig<T> {
3
3
  getActiveItems: () => T[];
4
4
  getSchedule: (item: T) => Schedule | undefined;
@@ -1,4 +1,4 @@
1
- import { Schedule } from '../../AdaptableState/Common/Schedule';
1
+ import { Schedule } from '../../../AdaptableState/Common/Schedule';
2
2
  export interface ScheduleJob {
3
3
  cancel: () => void;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { AlertButtonForm, AlertDefinition, RuleAlertProperties, RuleBasedAlertDefinition, ScheduledAlertDefinition } from '../../AdaptableState/AlertState';
1
+ import { AlertButtonForm, AlertDefinition, RuleAlertProperties, RuleBasedAlertDefinition, ScheduledAlertDefinition } from '../../../AdaptableState/AlertState';
2
2
  export declare function isScheduledAlertDefinition(alert: AlertDefinition | undefined | null): alert is ScheduledAlertDefinition;
3
3
  export declare function isRuleBasedAlertDefinition(alert: AlertDefinition | undefined | null): alert is RuleBasedAlertDefinition;
4
4
  export declare function getRuleAlertProperties(alert: AlertDefinition | undefined | null): RuleAlertProperties | undefined;