@adaptabletools/adaptable 10.0.2 → 10.0.4-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/base.css +84 -32
  4. package/bundle.cjs.js +350 -0
  5. package/index.css +100 -34
  6. package/package.json +1 -5
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +24 -12
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
  13. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
  15. package/src/AdaptableOptions/EditOptions.d.ts +2 -3
  16. package/src/AdaptableOptions/FilterOptions.d.ts +22 -15
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
  18. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +108 -6
  23. package/src/Api/AdaptableApi.d.ts +12 -12
  24. package/src/Api/AlertApi.d.ts +1 -1
  25. package/src/Api/CalculatedColumnApi.d.ts +15 -0
  26. package/src/Api/ColumnApi.d.ts +49 -5
  27. package/src/Api/ConfigApi.d.ts +8 -0
  28. package/src/Api/EventApi.d.ts +1 -1
  29. package/src/Api/Events/AdaptableReady.d.ts +5 -8
  30. package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
  31. package/src/Api/Events/AlertFired.d.ts +2 -1
  32. package/src/Api/Events/BaseEventInfo.d.ts +10 -0
  33. package/src/{Utilities/Interface/ProgressIndicator.js → Api/Events/BaseEventInfo.js} +0 -0
  34. package/src/Api/Events/CellChanged.d.ts +2 -1
  35. package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
  36. package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
  37. package/src/Api/Events/DashboardChanged.d.ts +2 -1
  38. package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
  39. package/src/Api/Events/GridDataChanged.d.ts +2 -1
  40. package/src/Api/Events/LayoutChanged.d.ts +2 -1
  41. package/src/Api/Events/LiveDataChanged.d.ts +2 -1
  42. package/src/Api/Events/SearchChanged.d.ts +2 -1
  43. package/src/Api/Events/SelectionChanged.d.ts +2 -1
  44. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
  45. package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
  46. package/src/Api/Events/ThemeChanged.d.ts +2 -1
  47. package/src/Api/GridApi.d.ts +44 -18
  48. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/AlertApiImpl.js +22 -15
  50. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
  51. package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
  52. package/src/Api/Implementation/ColumnApiImpl.d.ts +12 -3
  53. package/src/Api/Implementation/ColumnApiImpl.js +79 -44
  54. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  55. package/src/Api/Implementation/ConfigApiImpl.js +28 -41
  56. package/src/Api/Implementation/DashboardApiImpl.js +2 -1
  57. package/src/Api/Implementation/ExportApiImpl.js +4 -4
  58. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
  59. package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -3
  60. package/src/Api/Implementation/GridApiImpl.d.ts +11 -2
  61. package/src/Api/Implementation/GridApiImpl.js +30 -13
  62. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -2
  63. package/src/Api/Implementation/InternalApiImpl.js +21 -5
  64. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  65. package/src/Api/Implementation/LayoutApiImpl.js +19 -3
  66. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
  67. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  68. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  69. package/src/Api/Implementation/ScopeApiImpl.js +11 -11
  70. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
  71. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  72. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  73. package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
  74. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +15 -11
  75. package/src/Api/Implementation/UserInterfaceApiImpl.js +73 -91
  76. package/src/Api/InternalApi.d.ts +4 -2
  77. package/src/Api/LayoutApi.d.ts +7 -0
  78. package/src/Api/PluginsApi.d.ts +1 -7
  79. package/src/Api/TeamSharingApi.d.ts +1 -1
  80. package/src/Api/ThemeApi.d.ts +2 -2
  81. package/src/Api/UserInterfaceApi.d.ts +19 -9
  82. package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
  83. package/src/PredefinedConfig/AlertState.d.ts +5 -1
  84. package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
  85. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -38
  86. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
  87. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
  88. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
  89. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  90. package/src/PredefinedConfig/Common/AdaptablePredicate.js +19 -18
  91. package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
  92. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
  93. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
  94. package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
  95. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
  96. package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -0
  97. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  98. package/src/PredefinedConfig/Common/Types.js +9 -7
  99. package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
  100. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  101. package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
  102. package/src/PredefinedConfig/ExportState.d.ts +3 -3
  103. package/src/PredefinedConfig/FilterState.d.ts +3 -3
  104. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  105. package/src/PredefinedConfig/FreeTextColumnState.d.ts +11 -1
  106. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  107. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
  108. package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
  109. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  110. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
  111. package/src/PredefinedConfig/Selection/GridRow.d.ts +12 -4
  112. package/src/PredefinedConfig/SystemState.d.ts +4 -1
  113. package/src/PredefinedConfig/ThemeState.d.ts +5 -1
  114. package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
  115. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
  116. package/src/Redux/ActionsReducers/GridRedux.js +2 -2
  117. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
  118. package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
  119. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  120. package/src/Redux/DeadRedux.d.ts +4 -8
  121. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
  122. package/src/Redux/Store/AdaptableStore.d.ts +3 -3
  123. package/src/Redux/Store/AdaptableStore.js +25 -16
  124. package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
  125. package/src/Strategy/AdaptableModuleBase.js +8 -8
  126. package/src/Strategy/AlertModule.d.ts +2 -2
  127. package/src/Strategy/AlertModule.js +13 -105
  128. package/src/Strategy/BulkUpdateModule.d.ts +2 -2
  129. package/src/Strategy/BulkUpdateModule.js +7 -7
  130. package/src/Strategy/CalculatedColumnModule.js +1 -1
  131. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  132. package/src/Strategy/CellSummaryModule.js +3 -3
  133. package/src/Strategy/ConditionalStyleModule.js +3 -3
  134. package/src/Strategy/CustomSortModule.js +2 -2
  135. package/src/Strategy/DashboardModule.d.ts +2 -2
  136. package/src/Strategy/DataChangeHistoryModule.js +2 -2
  137. package/src/Strategy/ExportModule.d.ts +2 -4
  138. package/src/Strategy/ExportModule.js +59 -62
  139. package/src/Strategy/FilterModule.d.ts +2 -2
  140. package/src/Strategy/FilterModule.js +4 -4
  141. package/src/Strategy/FormatColumnModule.js +6 -6
  142. package/src/Strategy/FreeTextColumnModule.js +1 -1
  143. package/src/Strategy/GridInfoModule.d.ts +2 -2
  144. package/src/Strategy/Interface/IModule.d.ts +2 -2
  145. package/src/Strategy/LayoutModule.d.ts +2 -2
  146. package/src/Strategy/LayoutModule.js +22 -9
  147. package/src/Strategy/PlusMinusModule.js +8 -9
  148. package/src/Strategy/SmartEditModule.d.ts +2 -2
  149. package/src/Strategy/SmartEditModule.js +8 -9
  150. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  151. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  152. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  153. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  154. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  155. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -7
  156. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
  157. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  158. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
  159. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  160. package/src/Utilities/Helpers/DateHelper.d.ts +2 -2
  161. package/src/Utilities/Helpers/DateHelper.js +30 -20
  162. package/src/Utilities/Helpers/PreviewHelper.js +2 -2
  163. package/src/Utilities/Interface/Preview.d.ts +2 -1
  164. package/src/Utilities/ObjectFactory.d.ts +1 -1
  165. package/src/Utilities/ObjectFactory.js +14 -2
  166. package/src/Utilities/Services/DataService.js +5 -5
  167. package/src/Utilities/Services/LicenseService.js +16 -2
  168. package/src/Utilities/Services/ReportService.js +13 -12
  169. package/src/Utilities/Services/ValidationService.js +4 -5
  170. package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
  171. package/src/Utilities/runIfNotResolvedIn.js +23 -0
  172. package/src/View/AdaptableView.js +1 -1
  173. package/src/View/AdaptableViewFactory.d.ts +2 -1
  174. package/src/View/AdaptableViewFactory.js +2 -0
  175. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
  176. package/src/View/Alert/AlertPopup.js +1 -1
  177. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +19 -5
  178. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  179. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
  180. package/src/View/BulkUpdate/BulkUpdatePopup.js +6 -4
  181. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
  182. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
  183. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
  184. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  185. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  186. package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
  187. package/src/View/Components/ColumnSelector/index.js +2 -2
  188. package/src/View/Components/FilterForm/FilterForm.d.ts +3 -51
  189. package/src/View/Components/FilterForm/FilterForm.js +57 -38
  190. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  191. package/src/View/Components/FilterForm/ListBoxFilterForm.js +18 -9
  192. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
  193. package/src/View/Components/FilterForm/QuickFilterForm.js +74 -35
  194. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
  195. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
  196. package/src/View/Components/NewScopeComponent.js +1 -1
  197. package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
  198. package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
  199. package/src/View/Components/Popups/AdaptablePopup.d.ts +1 -1
  200. package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
  201. package/src/View/Components/PreviewResultsPanel.js +1 -1
  202. package/src/View/Components/RangesComponent.js +2 -2
  203. package/src/View/Components/Selectors/ColumnSelector.js +5 -5
  204. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +10 -2
  205. package/src/View/Components/Selectors/ColumnValueSelector.js +47 -15
  206. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
  207. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  208. package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
  209. package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
  210. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  211. package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
  212. package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
  213. package/src/View/CustomSort/CustomSortPopup.js +2 -2
  214. package/src/View/CustomSort/CustomSortSummary.js +3 -3
  215. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
  216. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
  217. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  218. package/src/View/Dashboard/Dashboard.js +2 -3
  219. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
  220. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
  221. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
  222. package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
  223. package/src/View/Export/ExportViewPanel.js +6 -6
  224. package/src/View/Filter/FilterSummary.js +2 -2
  225. package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
  226. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  227. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  228. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +4 -2
  229. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +5 -3
  230. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
  231. package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
  232. package/src/View/GridInfo/GridInfoPopup.js +4 -1
  233. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  234. package/src/View/Layout/LayoutViewPanel.js +2 -2
  235. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
  236. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
  237. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
  238. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
  239. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
  240. package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
  241. package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
  242. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  243. package/src/View/Query/QueryViewPanel.js +3 -3
  244. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
  245. package/src/View/Schedule/SchedulePopup.js +3 -3
  246. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  247. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  248. package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
  249. package/src/View/StateManagement/StateManagementPopup.js +21 -114
  250. package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
  251. package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
  252. package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
  253. package/src/View/StateManagement/components/ClearButton.js +9 -0
  254. package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
  255. package/src/View/StateManagement/components/ExportDropdown.js +43 -0
  256. package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
  257. package/src/View/StateManagement/components/LoadButton.js +38 -0
  258. package/src/View/StateManagement/handleExportState.d.ts +1 -0
  259. package/src/View/StateManagement/handleExportState.js +22 -0
  260. package/src/View/Theme/ThemeViewPanel.js +1 -1
  261. package/src/View/UIHelper.d.ts +2 -0
  262. package/src/View/UIHelper.js +10 -1
  263. package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
  264. package/src/agGrid/ActionColumnRenderer.js +21 -4
  265. package/src/agGrid/Adaptable.d.ts +28 -11
  266. package/src/agGrid/Adaptable.js +326 -168
  267. package/src/agGrid/agGridHelper.d.ts +4 -4
  268. package/src/agGrid/agGridHelper.js +46 -46
  269. package/src/agGrid/agGridMenuHelper.d.ts +15 -13
  270. package/src/agGrid/agGridMenuHelper.js +55 -47
  271. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
  272. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
  273. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
  274. package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
  275. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
  276. package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
  277. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
  278. package/src/components/Dashboard/Dashboard.js +1 -1
  279. package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
  280. package/src/components/Datepicker/index.js +9 -5
  281. package/src/components/DropdownButton/index.js +1 -1
  282. package/src/components/ExpressionEditor/index.js +7 -7
  283. package/src/components/Loader/Loader.d.ts +7 -0
  284. package/src/components/Loader/Loader.js +13 -0
  285. package/src/components/Loader/index.d.ts +2 -0
  286. package/src/components/Loader/index.js +7 -0
  287. package/src/components/Modal/index.d.ts +1 -1
  288. package/src/components/OverlayTrigger/index.js +3 -3
  289. package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
  290. package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
  291. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -0
  292. package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
  293. package/src/components/icons/index.js +2 -0
  294. package/src/components/icons/upload.d.ts +3 -0
  295. package/src/components/icons/upload.js +8 -0
  296. package/src/metamodel/adaptable.metamodel.d.ts +176 -52
  297. package/src/metamodel/adaptable.metamodel.js +659 -366
  298. package/src/types.d.ts +5 -4
  299. package/version.d.ts +1 -1
  300. package/version.js +1 -1
  301. package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
  302. package/src/PredefinedConfig/DeprecatedState.js +0 -5
  303. package/src/Utilities/Interface/ProgressIndicator.d.ts +0 -4
  304. package/src/View/Export/ProgressIndicator.d.ts +0 -6
  305. package/src/View/Export/ProgressIndicator.js +0 -25
  306. package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
package/index.css CHANGED
@@ -1941,6 +1941,21 @@ template {
1941
1941
  --ab-cmp-datepicker__font-family: var(--ab__font-family);
1942
1942
  --ab-cmp-datepicker__cell-size: 30px; }
1943
1943
 
1944
+ :root {
1945
+ --ab-cmp-loader__background: var(--ab-color-primarydark);
1946
+ --ab-cmp-loader__border: var(--ab-color-text-on-primary);
1947
+ --ab-cmp-loader__font-size: var(--ab-font-size-2); }
1948
+
1949
+ :root {
1950
+ --ab-cmp-progress-indicator__delay: 1s;
1951
+ --ab-cmp-progress-indicator__z-index: 9999;
1952
+ --ab-cmp-progress-indicator__font-size: var(--ab-font-size-4);
1953
+ --ab-cmp-progress-indicator__font-style: italic;
1954
+ --ab-cmp-progress-indicator__font-family: var(--ab__font-family);
1955
+ --ab-cmp-progress-indicator__padding: var(--ab-space-3);
1956
+ --ab-cmp-progress-indicator__background: var(--ab-color-primary);
1957
+ --ab-cmp-progress-indicator__color: var(--ab-color-text-on-primary); }
1958
+
1944
1959
  :root {
1945
1960
  --ab-cmp-wizard__padding: var(--ab-space-5);
1946
1961
  --ab-cmp-wizard__margin: var(--ab-space-1);
@@ -2072,6 +2087,9 @@ template {
2072
2087
  --ab-cmp-toolpanel__color: var(--ab-dashboard__color);
2073
2088
  --ab-cmp-toolpanel__font-family: var(--ab__font-family); }
2074
2089
 
2090
+ :root {
2091
+ --ab-cmp-custom-sort-wizard-loader__font-size: var(--ab-font-size-4); }
2092
+
2075
2093
  .ab-Radio-input:focus + svg rect {
2076
2094
  stroke: var(--ab-color-accent);
2077
2095
  stroke-width: 2; }
@@ -2914,9 +2932,15 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
2914
2932
  .ab-Dashboard .ab-Input {
2915
2933
  border: none; }
2916
2934
 
2935
+ .ab-Dashboard .ab-DashboardToolbar__Export__wrap {
2936
+ white-space: nowrap; }
2937
+
2917
2938
  .ab-Dashboard .ab-DashboardToolbar__QuickSearch__text .ab-Input {
2918
2939
  padding: var(--ab-space-1); }
2919
2940
 
2941
+ .ab-Dashboard .ab-StateManagement__Clear-Button, .ab-Dashboard .ab-StateManagement__Load-Button, .ab-Dashboard .ab-StateManagement__Export-Dropdown {
2942
+ margin-left: var(--ab-space-1); }
2943
+
2920
2944
  .ab-GridList {
2921
2945
  --at-grid__background: transparent; }
2922
2946
 
@@ -3053,6 +3077,63 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
3053
3077
  .ab-ToggleButton__input:disabled + .ab-ToggleButton__slider {
3054
3078
  opacity: 0.5; }
3055
3079
 
3080
+ .ab-Loader {
3081
+ font-size: var(--ab-cmp-loader__font-size);
3082
+ margin-top: 8px;
3083
+ font-style: italic; }
3084
+
3085
+ .ab-Loader__text, .ab-Loader__Spinner {
3086
+ vertical-align: middle; }
3087
+
3088
+ .ab-Loader .ab-Loader__Spinner {
3089
+ margin-right: 5px; }
3090
+
3091
+ .ab-Loader__Spinner {
3092
+ display: inline-block;
3093
+ border-radius: 50%;
3094
+ border: 2px solid var(--ab-cmp-loader__background);
3095
+ border-top: 2px solid var(--ab-cmp-loader__border);
3096
+ width: 10px;
3097
+ height: 10px;
3098
+ bottom: 0;
3099
+ animation: spin 1.5s linear infinite; }
3100
+
3101
+ @keyframes spin {
3102
+ 0% {
3103
+ transform: rotate(0deg); }
3104
+ 100% {
3105
+ transform: rotate(360deg); } }
3106
+
3107
+ .ab-progress-indicator-wrapper {
3108
+ align-items: center;
3109
+ display: flex;
3110
+ justify-content: center;
3111
+ position: fixed;
3112
+ top: 0;
3113
+ left: 0;
3114
+ height: 0;
3115
+ width: 0;
3116
+ z-index: var(--ab-cmp-progress-indicator__z-index);
3117
+ opacity: 0;
3118
+ transition-delay: var(--ab-cmp-progress-indicator__delay);
3119
+ transition-property: opacity;
3120
+ transition-duration: 0.3s; }
3121
+
3122
+ .ab-progress-indicator-wrapper--visible {
3123
+ opacity: 1; }
3124
+
3125
+ .ab-progress-indicator-wrapper .ab-progress-indicator-body {
3126
+ padding: var(--ab-cmp-progress-indicator__padding);
3127
+ background: var(--ab-cmp-progress-indicator__background);
3128
+ color: var(--ab-cmp-progress-indicator__color);
3129
+ border-style: none;
3130
+ border-width: 0px;
3131
+ border-radius: var(--ab__border-radius);
3132
+ box-shadow: var(--ab-focus__box-shadow);
3133
+ font-size: var(--ab-cmp-progress-indicator__font-size);
3134
+ font-style: var(--ab-cmp-progress-indicator__font-style);
3135
+ font-family: var(--ab-cmp-progress-indicator__font-family); }
3136
+
3056
3137
  .ab-ObjectCollection__list > * {
3057
3138
  background: var(--ab-cmp-listgroupitem__background);
3058
3139
  color: var(--ab-cmp-listgroupitem__color); }
@@ -3082,19 +3163,19 @@ input[type="number"].ab-Input:hover::-webkit-inner-spin-button:active {
3082
3163
  .ab-ListBoxFilterForm .ab-GridList .AT-VirtualScrollContainer {
3083
3164
  overflow-x: hidden; }
3084
3165
 
3085
- .ag-theme-balham-dark .ab-ListBoxFilterForm--vendor-style,
3086
- .ag-theme-balham .ab-ListBoxFilterForm--vendor-style {
3166
+ .ag-theme-balham-dark .ab-ListBoxFilterForm--aggrid-style,
3167
+ .ag-theme-balham .ab-ListBoxFilterForm--aggrid-style {
3087
3168
  --ab-cmp-dropdown__border-radius: 0;
3088
3169
  --ab-cmp-input__border-radius: 0;
3089
3170
  --ab-cmp-input__padding: 0;
3090
3171
  --ab-cmp-dropdown__padding: 3px;
3091
3172
  --ab-focus__box-shadow: 0 0 3px 0px var(--ab-color-accent); }
3092
3173
 
3093
- .ag-theme-balham-dark .ab-ListBoxFilterForm--vendor-style .ab-FieldWrap,
3094
- .ag-theme-balham .ab-ListBoxFilterForm--vendor-style .ab-FieldWrap {
3174
+ .ag-theme-balham-dark .ab-ListBoxFilterForm--aggrid-style .ab-FieldWrap,
3175
+ .ag-theme-balham .ab-ListBoxFilterForm--aggrid-style .ab-FieldWrap {
3095
3176
  border-radius: 0; }
3096
3177
 
3097
- html.ab--theme-dark .ab-ListBoxFilterForm--vendor-style {
3178
+ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3098
3179
  --ab-color-inputborder: white;
3099
3180
  --ab-cmp-dropdown__border: 1px solid white; }
3100
3181
 
@@ -3174,7 +3255,8 @@ html.ab--theme-dark .ab-ListBoxFilterForm--vendor-style {
3174
3255
  margin-right: var(--ab-space-2); }
3175
3256
 
3176
3257
  .ab-ToolPanel {
3177
- min-width: calc(var(--ab-cmp-toolpanel__width) - 1px);
3258
+ flex: 1 1 0;
3259
+ min-width: 0;
3178
3260
  color: var(--ab-cmp-toolpanel__color);
3179
3261
  font-family: var(--ab-cmp-toolpanel__font-family); }
3180
3262
 
@@ -3191,6 +3273,16 @@ html.ab--theme-dark .ab-ListBoxFilterForm--vendor-style {
3191
3273
  flex-wrap: wrap;
3192
3274
  grid-gap: var(--ab-cmp-toolpanel-header__grid-gap); }
3193
3275
 
3276
+ .ab-ToolPanel .ab-StateManagement__Clear-Button, .ab-ToolPanel .ab-StateManagement__Load-Button {
3277
+ justify-content: center;
3278
+ flex: 1; }
3279
+
3280
+ .ab-ToolPanel .ab-StateManagement__Clear-Button, .ab-ToolPanel .ab-StateManagement__Load-Button, .ab-ToolPanel .ab-StateManagement__Export-Dropdown {
3281
+ margin-bottom: var(--ab-space-1); }
3282
+
3283
+ .ab-CustomSortWizard__SortOrder .ab-Loader__text {
3284
+ font-size: var(--ab-cmp-custom-sort-wizard-loader__font-size); }
3285
+
3194
3286
  .ab-alert--error {
3195
3287
  background: var(--ab-color-error); }
3196
3288
 
@@ -3346,34 +3438,8 @@ html.ab--theme-dark .ab-ListBoxFilterForm--vendor-style {
3346
3438
  .ag-details-row .ag-details-grid {
3347
3439
  flex: 1; }
3348
3440
 
3349
- div.ab-progress-indicator-wrapper {
3350
- align-items: center;
3351
- display: flex;
3352
- height: 100vh;
3353
- justify-content: center;
3354
- left: 0;
3355
- position: fixed;
3356
- top: 0;
3357
- width: 100%;
3358
- z-index: 9999;
3359
- opacity: 0;
3360
- transition-delay: 0.5s;
3361
- transition-property: opacity;
3362
- transition-duration: 0.3s; }
3363
-
3364
- div.ab-progress-indicator-wrapper--visible {
3365
- opacity: 1; }
3366
-
3367
- div.ab-progress-indicator-wrapper .ab-progress-indicator-text {
3368
- padding: var(--ab-space-3);
3369
- background: var(--ab-color-primary);
3370
- color: var(--ab-color-text-on-primary);
3371
- border-style: none;
3372
- border-width: 0px;
3373
- border-radius: var(--ab__border-radius);
3374
- box-shadow: var(--ab-focus__box-shadow);
3375
- font-size: var(--ab-font-size-3);
3376
- font-family: var(--ab__font-family); }
3441
+ .ab-wait-for-progress-indicator.ab-Grid {
3442
+ pointer-events: none; }
3377
3443
 
3378
3444
  html.ab--theme-light {
3379
3445
  --ab-theme-loaded: light; }
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "10.0.2",
3
+ "version": "10.0.4-canary.2",
4
4
  "description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
7
7
  "dependencies": {
8
8
  "@infinite-table/infinite-react": "0.0.1-canary.11",
9
- "@types/react": ">=16.8.0",
10
- "@types/tinycolor2": "^1.4.2",
11
- "babel-polyfill": "^6.26.0",
12
- "babel-runtime": "^6.26.0",
13
9
  "date-fns": "2.22.1",
14
10
  "debug": "^4.3.1",
15
11
  "isomorphic-fetch": "^2.2.1",
@@ -1,2 +1,2 @@
1
- declare const _default: 1636016021593;
1
+ declare const _default: 1641596554967;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1636016021593;
3
+ exports.default = 1641596554967;
@@ -36,7 +36,7 @@ export interface AdaptableNoCodeWizardOptions {
36
36
  * userName: 'Demo User',
37
37
  * predefinedConfig: demoConfig,
38
38
  *
39
- * // note we don't need any vendorGrid info, since that's set by the wizard, when
39
+ * // note we don't need any agGrid info, since that's set by the wizard, when
40
40
  * // the user configured the columns
41
41
  * };
42
42
  *
@@ -1,4 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/all-modules';
1
+ import { Column, RowNode } from '@ag-grid-community/all-modules';
2
2
  import { AdaptableApi } from '../Api/AdaptableApi';
3
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
@@ -18,7 +18,7 @@ import { IDataService } from '../Utilities/Services/Interface/IDataService';
18
18
  import { IReportService } from '../Utilities/Services/Interface/IReportService';
19
19
  import { IValidationService } from '../Utilities/Services/Interface/IValidationService';
20
20
  import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
21
- import { MenuContext } from '../PredefinedConfig/Common/Menu';
21
+ import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
22
22
  import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
23
23
  import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
24
24
  import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
@@ -39,9 +39,7 @@ export interface IAdaptable {
39
39
  adaptableStore: IAdaptableStore;
40
40
  modules: IModuleCollection;
41
41
  /**
42
- * Whether the vendor grid has its own column menu that we need to use (e.g. AG Grid Enterprise) or doesnt in which case we build one (e.g. hypergrid)
43
- *
44
- * Note: if AG Grid is using community or menu is not added then this should be true.
42
+ * If using AG Grid community (which has no menu)
45
43
  */
46
44
  embedColumnMenu: boolean;
47
45
  /**
@@ -50,6 +48,10 @@ export interface IAdaptable {
50
48
  * Avoid unnecessary store calls and rendering
51
49
  */
52
50
  isInitialised: boolean;
51
+ /**
52
+ * Set to true when adaptable is destroyed.
53
+ */
54
+ isDestroyed: boolean;
53
55
  /**
54
56
  * Adaptable contains a number of 'Services' which are created at Startup
55
57
  *
@@ -89,7 +91,7 @@ export interface IAdaptable {
89
91
  }) => void): () => void;
90
92
  _on(eventName: 'CreateAdaptableContextMenuItems', callback: (param: {
91
93
  items: AdaptableMenuItem[];
92
- menuContext: MenuContext;
94
+ menuContext: ContextMenuContext;
93
95
  }) => void): () => void;
94
96
  _emit(eventName: 'CellEditorKeyDown', data: {
95
97
  keyDownEvent: KeyboardEvent;
@@ -114,7 +116,10 @@ export interface IAdaptable {
114
116
  jumpToRow(rowNode: RowNode): void;
115
117
  jumpToColumn(columnId: string): void;
116
118
  jumpToCell(columnId: string, rowNode: RowNode): void;
119
+ getAgGridContainerElement(): HTMLElement | null;
117
120
  setDataSource(dataSource: any): void;
121
+ getGridData(): any[];
122
+ getFilteredData(): any[];
118
123
  loadDataSource(dataSource: any): void;
119
124
  updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): void;
120
125
  addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): void;
@@ -136,12 +141,17 @@ export interface IAdaptable {
136
141
  [key: string]: boolean;
137
142
  }): any[];
138
143
  getDistinctValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: RowNode): GridCell[];
144
+ getDistinctFilterValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, filter: string, skipRowNode?: RowNode): Promise<{
145
+ gridCells: GridCell[];
146
+ suppressClientSideFilter?: boolean;
147
+ }>;
148
+ getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: RowNode): Promise<GridCell[]>;
149
+ getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?: RowNode): Promise<GridCell[]>;
139
150
  getDisplayValue(id: any, columnId: string): string;
140
151
  getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
141
152
  getRawValueFromRowNode(rowNode: RowNode, columnId: string): any;
142
153
  getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): string | undefined;
143
- getFormattedValueFromRawValue(rawValue: any, columnId: string): string | undefined;
144
- getDisplayValueFromRawValue(columnId: string, rawValue: any, skipCellRenderers?: boolean): string | undefined;
154
+ getDisplayValueFromRawValue(columnId: string, rawValue: any): string | undefined;
145
155
  getDataRowFromRowNode(rowNode: RowNode): any;
146
156
  getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
147
157
  getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
@@ -164,7 +174,7 @@ export interface IAdaptable {
164
174
  selectCells(columnIds: string[], startNode: RowNode, endNode: RowNode): void;
165
175
  getFirstGroupedColumn(): AdaptableColumn | undefined;
166
176
  isRowNodeVisible(rowNode: RowNode): boolean;
167
- getVendorColumnType(columnId: string): string | string[];
177
+ getAgGridColumnType(columnId: string): string | string[];
168
178
  getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: RowNode, nodeB?: RowNode, isInverted?: boolean) => number | undefined;
169
179
  setColumnSort(columnSorts: ColumnSort[]): void;
170
180
  clearColumnSort(): void;
@@ -189,8 +199,8 @@ export interface IAdaptable {
189
199
  showQuickFilter(): void;
190
200
  hideQuickFilter(): void;
191
201
  isQuickFilterAvailable(): boolean;
192
- getVendorGridLightThemeName(): string;
193
- getVendorGridCurrentThemeName(): string;
202
+ getAgGridLightThemeName(): string;
203
+ getAgGridCurrentThemeName(): string;
194
204
  applyAdaptableTheme(theme: AdaptableTheme | string): void;
195
205
  /**
196
206
  * called when you want to destroy the instance & cleanup resources
@@ -205,10 +215,12 @@ export interface IAdaptable {
205
215
  closeAllRowGroups(): void;
206
216
  expandRowGroupsForValues(columnValues: any[]): void;
207
217
  getExpandRowGroupsKeys(): any[];
218
+ getAdaptableContainerElement(): HTMLElement | null;
219
+ getAgGridContainerElement(): HTMLElement | null;
208
220
  buildStandaloneColumnHeader(adaptableColumn: AdaptableColumn): AdaptableMenuItem[];
209
221
  setupColumns(): void;
210
222
  updateColDefsForSpecialColumns({ skipSetupColumns }?: {
211
223
  skipSetupColumns?: boolean;
212
224
  }): void;
213
- getVendorGridColumnFieldForColumn(abColumn: AdaptableColumn): string;
225
+ getAgGridColumnForAdaptableColumn(abColumn: AdaptableColumn): Column;
214
226
  }
@@ -19,7 +19,7 @@ import { FilterOptions } from './FilterOptions';
19
19
  import { QueryLanguageOptions } from './QueryLanguageOptions';
20
20
  import { DataChangeHistoryOptions } from './DataChangeHistoryOptions';
21
21
  /**
22
- * Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides Vendor Grid, Predefined Config and other information required to ensure a full, rich user experience
22
+ * Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience
23
23
  */
24
24
  export interface AdaptableOptions {
25
25
  /**
@@ -69,7 +69,7 @@ export interface AdaptableOptions {
69
69
  */
70
70
  userName?: string;
71
71
  /**
72
- * Underlying vendor grid or grid object which AdapTable interacts with. Note: if using React or Angular Wrapper, no need to populate this property (as `gridOptions` is a separate prop and AdapTable wires up everything)
72
+ * The AG Grid object which AdapTable interacts with. Note: if using React or Angular Wrapper, no need to populate this property (as `gridOptions` is a separate prop and AdapTable wires up everything)
73
73
  *
74
74
  * @defaultValue n/a (Mandatory)
75
75
  */
@@ -81,7 +81,7 @@ export interface AdaptableOptions {
81
81
  */
82
82
  notificationsOptions?: NotificationsOptions;
83
83
  /**
84
- * Options for setting the 'Div' elements in which AdapTable, the underlying grid, popups and charts are placed
84
+ * Options for setting the 'Div' elements in which AdapTable, AG Grid, popups and charts are placed
85
85
  */
86
86
  containerOptions?: ContainerOptions;
87
87
  /**
@@ -10,20 +10,19 @@ export interface ContainerOptions {
10
10
  */
11
11
  adaptableContainer?: string | HTMLElement;
12
12
  /**
13
- * Div containing underlying vendor grid- string Id or HTMLElement
13
+ * Div containing AG Grid instance - string Id or HTMLElement
14
14
  *
15
15
  * @defaultValue "grid"
16
16
  * @gridInfoItem
17
17
  */
18
- vendorContainer?: string | HTMLElement;
18
+ agGridContainer?: string | HTMLElement;
19
19
  /**
20
- * Useful when the vendor grid is instantiated separately (eg: by vendor wrappers like React and Angular flavors).
21
- * This is how long AdapTable waits for the vendor grid before giving up connecting to it.
20
+ * how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by React or Angular Wrappers)
22
21
  *
23
22
  * @defaultValue 60s
24
23
  * @gridInfoItem
25
24
  */
26
- vendorContainerWaitTimeout?: number;
25
+ agGridContainerWaitTimeout?: number;
27
26
  /**
28
27
  * Name of div where modals appear (if null, will be centre of page)
29
28
  *
@@ -16,5 +16,5 @@ export interface DataChangeHistoryOptions {
16
16
  * @defaultValue undefined (all data changes are logged)
17
17
  * @gridInfoItem
18
18
  */
19
- filterDataChange?: (dataChangeInfo: DataChangedInfo) => boolean;
19
+ showDataChange?: (dataChangeInfo: DataChangedInfo) => boolean;
20
20
  }
@@ -44,10 +44,14 @@ export interface DateInputOptions {
44
44
  * Datepicker buttons which are displayed in the overlay footer
45
45
  */
46
46
  export declare type DatepickerButton =
47
+ /**
48
+ * Clears the datepicker value
49
+ */
50
+ 'clear'
47
51
  /**
48
52
  * Closes the datepicker overlay
49
53
  */
50
- 'close'
54
+ | 'close'
51
55
  /**
52
56
  * Selects the current date
53
57
  */
@@ -1,6 +1,5 @@
1
1
  import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
2
2
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
3
- import { RowNode } from '@ag-grid-community/all-modules';
4
3
  /**
5
4
  * Options related to Editing in Adaptable.
6
5
  *
@@ -19,9 +18,9 @@ export interface EditOptions {
19
18
  */
20
19
  displayServerValidationMessages?: boolean;
21
20
  /**
22
- * Function which returns true if given cell is editable
21
+ * Function which checks if given Grid Cell is editable
23
22
  */
24
- isCellEditable?: (gridCell: GridCell, rowNode: RowNode) => boolean;
23
+ isCellEditable?: (gridCell: GridCell) => boolean;
25
24
  }
26
25
  /**
27
26
  * Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
@@ -6,13 +6,13 @@ import { SystemFilterPredicateIds } from '../PredefinedConfig/FilterState';
6
6
  */
7
7
  export interface FilterOptions {
8
8
  /**
9
- * Sets whether to display Dropdown in Quick Filter Bar for given Column
9
+ * Hides the Dropdown in Quick Filter Bar for a given Column
10
10
  *
11
11
  * @defaultValue undefined
12
12
  */
13
13
  hideQuickFilterDropdown?: (column: AdaptableColumn) => boolean;
14
14
  /**
15
- * Sets whether to display the Input in Quick Filter Bar for given Column
15
+ * Hides the Input in Quick Filter Bar for a given Column
16
16
  *
17
17
  * @defaultValue undefined
18
18
  */
@@ -32,20 +32,20 @@ export interface FilterOptions {
32
32
  */
33
33
  indicateFilteredColumns?: boolean;
34
34
  /**
35
- * Uses Adaptable's Filter Form in Column header menu for all columns if 'true' (the default) or those listed; otherwise vendor grid one will be used
35
+ * Uses Adaptable's Filter Form in Column header menu for all columns if 'true' (the default) or those listed, in preference to AG Grid's Filter Form
36
36
  *
37
37
  * @defaultValue true
38
38
  */
39
39
  useAdaptableFilterForm?: boolean | string[];
40
40
  /**
41
- * Styles Adaptable Filter Form to match styling of current vendor grid
41
+ * Styles Adaptable Filter Form to match AG Grid's current styling
42
42
  *
43
43
  * @defaultValue true
44
44
  * @gridInfoItem
45
45
  */
46
- useVendorFilterFormStyle?: boolean;
46
+ useAgGridFilterFormStyle?: boolean;
47
47
  /**
48
- * Use Adaptable's Quick Filter for all columns if 'true' (the default) or those listed; otherwise vendor grid one will be used
48
+ * Use Adaptable's Quick Filter for all columns if 'true' (the default) or those listed, in preference to AG Grid's Floating Filter
49
49
  *
50
50
  * @defaultValue true
51
51
  * @gridInfoItem
@@ -58,6 +58,13 @@ export interface FilterOptions {
58
58
  * @gridInfoItem
59
59
  */
60
60
  quickFilterTrigger?: 'mouseenter' | 'click';
61
+ /**
62
+ * Whether to open Quick Filter Values dropdown with mouse hover or click
63
+ *
64
+ * @defaultValue 'mouseenter'
65
+ * @gridInfoItem
66
+ */
67
+ quickFilterValuesTrigger?: 'mouseenter' | 'click';
61
68
  /**
62
69
  * When to re-filter grid after user edits data: 'Always', 'Never' or 'Throttle' (which requires a 'ThrottleDelay')
63
70
  *
@@ -71,7 +78,7 @@ export interface FilterOptions {
71
78
  */
72
79
  filterActionOnExternalDataChange?: FilterActionOnDataChange;
73
80
  /**
74
- * Apply selected filters in Filter Form as soon as they are clicked; if false an Apply Filter button is displayed
81
+ * Apply selected filters (in Filter Form or Quick Filter Bar) as soon as they are clicked; if false an Apply Filter button is displayed
75
82
  *
76
83
  * @defaultValue true
77
84
  * @gridInfoItem
@@ -92,26 +99,26 @@ export interface FilterOptions {
92
99
  */
93
100
  sortColumnValuesInFilter?: boolean;
94
101
  /**
95
- * Default filter type for numeric Columns in Quick Filter
102
+ * Default filter type for numeric Columns
96
103
  *
97
104
  * @defaultValue Equals
98
105
  * @gridInfoItem
99
106
  */
100
- defaultNumericColumnFilter?: 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals';
107
+ defaultNumericColumnFilter?: 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals' | ((column: AdaptableColumn) => 'GreaterThan' | 'LessThan' | 'Equals' | 'NotEquals');
101
108
  /**
102
- * Default filter type for string Columns in Quick Filter
109
+ * Default filter type for string Columns
103
110
  *
104
111
  * @defaultValue Contains
105
112
  * @gridInfoItem
106
113
  */
107
- defaultStringColumnFilter?: 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex';
114
+ defaultStringColumnFilter?: 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | ((column: AdaptableColumn) => 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex');
108
115
  /**
109
- * Default filter type for date Columns in Quick Filter
116
+ * Default filter type for date Columns
110
117
  *
111
118
  * @defaultValue On
112
119
  * @gridInfoItem
113
120
  */
114
- defaultDateColumnFilter?: 'After' | 'Before' | 'On' | 'NotOn';
121
+ defaultDateColumnFilter?: 'After' | 'Before' | 'On' | 'NotOn' | ((column: AdaptableColumn) => 'After' | 'Before' | 'On' | 'NotOn');
115
122
  /**
116
123
  * Whether to open the Filter Form on the Values or Predicates tab
117
124
  *
@@ -120,14 +127,14 @@ export interface FilterOptions {
120
127
  */
121
128
  defaultFilterFormTab?: 'Values' | 'Predicates';
122
129
  /**
123
- * Allows filtering on Calculated, Action & FreeText columns
130
+ * Allows filtering on Calculated & FreeText columns
124
131
  *
125
132
  * @defaultValue true
126
133
  * @gridInfoItem
127
134
  */
128
135
  enableFilterOnSpecialColumns?: boolean;
129
136
  /**
130
- * Which Adaptable System Filter Predicates are available; provide empty array for none or leave unset for all
137
+ * Which Adaptable System Filter Predicates are available
131
138
  */
132
139
  systemFilters?: SystemFilterPredicateIds;
133
140
  }
@@ -1,8 +1,9 @@
1
+ import { AdaptableScope } from '../../types';
1
2
  import { AdaptableComparerFunction } from '../PredefinedConfig/Common/AdaptableComparerFunction';
2
3
  import { AlternativeModuleName } from '../PredefinedConfig/Common/AlternativeModuleName';
3
4
  import { CellSummaryOperation } from '../PredefinedConfig/Common/CellSummary';
4
5
  /**
5
- * General options for configuring AdapTable including managing Primary Keys.
6
+ * General options for configuring AdapTable including managing Primary Keys
6
7
  */
7
8
  export interface GeneralOptions {
8
9
  /**
@@ -84,7 +85,7 @@ export interface ColumnValuesComparer {
84
85
  /**
85
86
  * Column for which to compare values
86
87
  */
87
- columnId: string;
88
+ scope: AdaptableScope;
88
89
  /**
89
90
  * Comparer function to use
90
91
  */
@@ -32,7 +32,7 @@ export interface LayoutOptions {
32
32
  */
33
33
  autoSizeColumnsInPivotLayout?: boolean;
34
34
  /**
35
- * Whether a "Default Layout" will be created in addition to Layouts in Config (if none there, Default Layout is always created)
35
+ * Whether a "Default Layout" will be created in addition to Layouts provided in Config
36
36
  *
37
37
  * @defaultValue false
38
38
  * @gridInfoItem
@@ -1,4 +1,4 @@
1
- import { AdaptableMenuItem, MenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
1
+ import { AdaptableMenuItem, ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
2
2
  /**
3
3
  * Options for managing menus in AdapTable
4
4
  */
@@ -9,14 +9,14 @@ export interface MenuOptions {
9
9
  * @defaultValue true
10
10
  * @gridInfoItem
11
11
  */
12
- showAdaptableContextMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: MenuContext) => boolean);
12
+ showAdaptableContextMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: ContextMenuContext) => boolean);
13
13
  /**
14
14
  * Show Adaptable Column Menu (or specific items); can be boolean value or function invoked for each menu item
15
15
  *
16
16
  * @defaultValue true
17
17
  * @gridInfoItem
18
18
  */
19
- showAdaptableColumnMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: MenuContext) => boolean);
19
+ showAdaptableColumnMenu?: boolean | ((menuItem: AdaptableMenuItem, menuContext: ColumnMenuContext) => boolean);
20
20
  /**
21
21
  * Adds 'Ungroup' Column Menu item to a row grouped column
22
22
  *
@@ -25,25 +25,25 @@ export interface MenuOptions {
25
25
  */
26
26
  showUngroupColumnMenuItem?: boolean;
27
27
  /**
28
- * Order in which Vendor, AdapTable and User Menu items will appear in Column Menu
28
+ * Order in which AG Grid, AdapTable and User Menu items will appear in Column Menu
29
29
  *
30
- * @defaultValue 'vendor', 'adaptable', 'user'
30
+ * @defaultValue 'aggrid', 'adaptable', 'user'
31
31
  * @gridInfoItem
32
32
  */
33
- columnMenuOrder?: ('vendor' | 'adaptable' | 'user')[];
33
+ columnMenuOrder?: ('aggrid' | 'adaptable' | 'user')[];
34
34
  /**
35
- * Order in which Vendor, AdapTable and User Menu items will appear in Context Menu
35
+ * Order in which AG grid, AdapTable and User Menu items will appear in Context Menu
36
36
  *
37
- * @defaultValue 'vendor', 'adaptable', 'user'
37
+ * @defaultValue 'aggrid', 'adaptable', 'user'
38
38
  * @gridInfoItem
39
39
  */
40
- contextMenuOrder?: ('vendor' | 'adaptable' | 'user')[];
40
+ contextMenuOrder?: ('aggrid' | 'adaptable' | 'user')[];
41
41
  /**
42
42
  * A collection of UserMenuItem objects to be added to the Column Header Menu (the one that appears as a dropdown in each Column Header).
43
43
  */
44
- columnMenuItems?: UserMenuItem[];
44
+ columnMenuItems?: UserMenuItem<ColumnMenuContext>[];
45
45
  /**
46
46
  * A collection of UserMenuItem objects to be added to the Context Menu (the one that appears when you right-click on a cell, or cells, in the Grid).
47
47
  */
48
- contextMenuItems?: UserMenuItem[];
48
+ contextMenuItems?: UserMenuItem<ContextMenuContext>[];
49
49
  }