@adaptabletools/adaptable 16.0.0-canary.1 → 16.0.0-canary.3

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 (169) hide show
  1. package/base.css +31 -31
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +155 -155
  4. package/index.css +39 -39
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -1
  10. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  13. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  14. package/src/AdaptableOptions/FormatColumnOptions.d.ts +51 -0
  15. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
  16. package/src/AdaptableOptions/{SearchOptions.d.ts → QuickSearchOptions.d.ts} +3 -3
  17. package/src/AdaptableOptions/QuickSearchOptions.js +2 -0
  18. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  19. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +8 -41
  20. package/src/Api/ColumnApi.d.ts +18 -7
  21. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  22. package/src/Api/EventApi.d.ts +19 -6
  23. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  24. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  25. package/src/Api/Events/ScheduleTriggered.js +2 -0
  26. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  27. package/src/Api/Implementation/ApiBase.d.ts +3 -2
  28. package/src/Api/Implementation/ApiBase.js +5 -2
  29. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  30. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  31. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  32. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  33. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  34. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  35. package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
  36. package/src/Api/Implementation/OptionsApiImpl.js +5 -2
  37. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  38. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  39. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  40. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  41. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  42. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  43. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  44. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  45. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  46. package/src/Api/Internal/AlertInternalApi.js +7 -2
  47. package/src/Api/Internal/FilterInternalApi.js +8 -4
  48. package/src/Api/Internal/FormatColumnInternalApi.js +12 -14
  49. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  50. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  51. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  52. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  53. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  54. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  55. package/src/Api/OptionsApi.d.ts +7 -3
  56. package/src/Api/PredicateApi.d.ts +5 -5
  57. package/src/Api/StyledColumnApi.d.ts +0 -14
  58. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  59. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  60. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  61. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  62. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  63. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  64. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  65. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  66. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  67. package/src/Redux/Store/AdaptableStore.js +2 -3
  68. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  69. package/src/Strategy/FlashingCellModule.js +6 -2
  70. package/src/Strategy/Interface/IModule.d.ts +2 -2
  71. package/src/Strategy/ScheduleModule.js +3 -2
  72. package/src/Strategy/StyledColumnModule.js +24 -15
  73. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  74. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +7 -3
  75. package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
  76. package/src/Utilities/MenuItem.d.ts +4 -4
  77. package/src/Utilities/Services/MetamodelService.js +5 -1
  78. package/src/Utilities/Services/ModuleService.js +1 -1
  79. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  80. package/src/Utilities/Services/RowEditService.js +1 -1
  81. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  82. package/src/Utilities/Services/TeamSharingService.js +60 -3
  83. package/src/Utilities/Services/ValidationService.js +6 -2
  84. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +6 -0
  85. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -0
  86. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
  87. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +1 -1
  88. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +6 -6
  89. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +32 -23
  90. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +3 -3
  91. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +5 -5
  92. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
  93. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
  94. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +3 -3
  95. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +11 -11
  96. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +3 -3
  97. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +11 -21
  98. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +3 -3
  99. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +6 -7
  100. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +3 -3
  101. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
  102. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +4 -1
  103. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -4
  104. package/src/View/AdaptableWizardView/Wizard.d.ts +4 -1
  105. package/src/View/AdaptableWizardView/Wizard.js +11 -10
  106. package/src/View/Charting/useChartingElements.js +1 -1
  107. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  108. package/src/View/Components/AdaptableButton/index.js +18 -0
  109. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  110. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  111. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  112. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  113. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  114. package/src/{components → View/Components}/Badge/index.js +1 -1
  115. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  116. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  117. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  118. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  119. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  120. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  121. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  122. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  123. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  124. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  125. package/src/View/Dashboard/Dashboard.js +4 -4
  126. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  127. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  128. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  129. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  130. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  131. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  132. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  133. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  134. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +1 -1
  135. package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
  136. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  137. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  138. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  139. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  140. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  141. package/src/View/UIHelper.d.ts +2 -2
  142. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  143. package/src/agGrid/ActionColumnRenderer.js +20 -5
  144. package/src/agGrid/Adaptable.d.ts +5 -2
  145. package/src/agGrid/Adaptable.js +61 -25
  146. package/src/agGrid/BadgeRenderer.js +19 -20
  147. package/src/agGrid/CheckboxRenderer.js +1 -1
  148. package/src/agGrid/agGridHelper.js +4 -2
  149. package/src/agGrid/agGridMenuHelper.js +11 -4
  150. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  151. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  152. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  153. package/src/components/Icon/index.d.ts +11 -0
  154. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  155. package/src/components/IconSelector/IconSelector.js +3 -3
  156. package/src/components/SimpleButton/index.js +10 -10
  157. package/src/components/Toggle/Toggle.d.ts +2 -2
  158. package/src/components/Toggle/Toggle.js +2 -2
  159. package/src/components/icons/index.d.ts +4 -4
  160. package/src/components/icons/index.js +6 -6
  161. package/src/metamodel/adaptable.metamodel.d.ts +125 -57
  162. package/src/metamodel/adaptable.metamodel.js +1 -1
  163. package/src/types.d.ts +9 -6
  164. package/version.d.ts +1 -1
  165. package/version.js +1 -1
  166. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  167. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  168. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
  169. /package/src/AdaptableOptions/{SearchOptions.js → FormatColumnOptions.js} +0 -0
@@ -5,44 +5,34 @@ const React = tslib_1.__importStar(require("react"));
5
5
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
6
6
  const CheckBox_1 = require("../../../components/CheckBox");
7
7
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
8
- const DefaultAdaptableOptions_1 = require("../../../Utilities/Defaults/DefaultAdaptableOptions");
9
8
  const rebass_1 = require("rebass");
10
9
  const GridOptionsForm = (props) => {
11
10
  var _a;
12
- let abOptions = props.adaptableOptions;
13
- const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions._gridOptions), abOptions._gridOptions);
11
+ let { gridOptions } = props;
14
12
  return (React.createElement(rebass_1.Box, { p: 2 },
15
13
  React.createElement(HelpBlock_1.default, null, "Grid Options"),
16
14
  React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
17
15
  React.createElement(FormLayout_1.FormRow, { label: "Enable Range Selection" },
18
16
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.enableRangeSelection, onChange: (enableRangeSelection) => {
19
- abOptions = Object.assign({}, abOptions);
20
- abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
21
- abOptions._gridOptions.enableRangeSelection = enableRangeSelection;
22
- props.onChangeadAptableOptions(abOptions);
17
+ gridOptions = Object.assign(Object.assign({}, gridOptions), { enableRangeSelection: enableRangeSelection });
18
+ props.onChangedGridOptions(gridOptions);
23
19
  } })),
24
20
  React.createElement(FormLayout_1.FormRow, { label: "Show Quick Filter" },
25
21
  React.createElement(CheckBox_1.CheckBox, { checked: (_a = gridOptions.defaultColDef) === null || _a === void 0 ? void 0 : _a.floatingFilter, onChange: (floatingFilter) => {
26
- abOptions = Object.assign({}, abOptions);
27
- abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
28
- abOptions._gridOptions.defaultColDef = {
29
- floatingFilter,
30
- };
31
- props.onChangeadAptableOptions(abOptions);
22
+ gridOptions = Object.assign(Object.assign({}, gridOptions), { defaultColDef: {
23
+ floatingFilter,
24
+ } });
25
+ props.onChangedGridOptions(gridOptions);
32
26
  } })),
33
27
  React.createElement(FormLayout_1.FormRow, { label: "Suppress Column Virtualisation" },
34
28
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressColumnVirtualisation, onChange: (suppressColumnVirtualisation) => {
35
- abOptions = Object.assign({}, abOptions);
36
- abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
37
- abOptions._gridOptions.suppressColumnVirtualisation = suppressColumnVirtualisation;
38
- props.onChangeadAptableOptions(abOptions);
29
+ gridOptions = Object.assign(Object.assign({}, gridOptions), { suppressColumnVirtualisation: suppressColumnVirtualisation });
30
+ props.onChangedGridOptions(gridOptions);
39
31
  } })),
40
32
  React.createElement(FormLayout_1.FormRow, { label: "Show Column Menu Button" },
41
33
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressMenuHide, onChange: (suppressMenuHide) => {
42
- abOptions = Object.assign({}, abOptions);
43
- abOptions._gridOptions = Object.assign({}, abOptions._gridOptions);
44
- abOptions._gridOptions.suppressMenuHide = suppressMenuHide;
45
- props.onChangeadAptableOptions(abOptions);
34
+ gridOptions = Object.assign(Object.assign({}, gridOptions), { suppressMenuHide: suppressMenuHide });
35
+ props.onChangedGridOptions(gridOptions);
46
36
  } })))));
47
37
  };
48
38
  exports.default = GridOptionsForm;
@@ -1,6 +1,6 @@
1
+ import { GridOptions } from '@ag-grid-community/core';
1
2
  import * as React from 'react';
2
- import { AdaptableOptions } from '../../../../../types';
3
3
  export declare const UIOptionsSidebarForm: React.FunctionComponent<{
4
- abOptions: AdaptableOptions;
5
- onChange: (abOptions: AdaptableOptions) => void;
4
+ gridOptions: GridOptions;
5
+ onChange: (gridOptions: GridOptions) => void;
6
6
  }>;
@@ -38,9 +38,8 @@ const isSidebarChecked = (sideBar, panelName) => {
38
38
  };
39
39
  const UIOptionsSidebarForm = (props) => {
40
40
  var _a;
41
- const { abOptions, onChange } = props;
42
- const { _gridOptions } = props.abOptions;
43
- const sideBar = prepareSidebarDef(_gridOptions.sideBar);
41
+ const { gridOptions, onChange } = props;
42
+ const sideBar = prepareSidebarDef(gridOptions.sideBar);
44
43
  const renderSidebarCheckbox = (sidebarName) => {
45
44
  return (React.createElement(CheckBox_1.CheckBox, { mr: 3, key: sidebarName, checked: isSidebarChecked(sideBar, sidebarName), onChange: (check) => handleToolpanelsChange(sidebarName, check) }, StringExtensions_1.default.Humanize(sidebarName)));
46
45
  };
@@ -60,13 +59,13 @@ const UIOptionsSidebarForm = (props) => {
60
59
  if (newPanels.length === 0) {
61
60
  hiddenByDefault = true;
62
61
  }
63
- const newAbOptions = Object.assign(Object.assign({}, abOptions), { _gridOptions: Object.assign(Object.assign({}, abOptions._gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { toolPanels: newPanels, hiddenByDefault }) }) });
64
- props.onChange(newAbOptions);
62
+ const newGridOptions = Object.assign(Object.assign({}, gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { toolPanels: newPanels, hiddenByDefault }) });
63
+ props.onChange(newGridOptions);
65
64
  };
66
65
  let sidebarPosition = (_a = sideBar === null || sideBar === void 0 ? void 0 : sideBar.position) !== null && _a !== void 0 ? _a : 'right';
67
66
  const handleSidebarPositionChange = (position) => {
68
- const newAbOptions = Object.assign(Object.assign({}, abOptions), { gridOptions: Object.assign(Object.assign({}, abOptions._gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { position }) }) });
69
- props.onChange(newAbOptions);
67
+ const newGridOptions = Object.assign(Object.assign({}, gridOptions), { sideBar: Object.assign(Object.assign({}, sideBar), { position }) });
68
+ props.onChange(newGridOptions);
70
69
  };
71
70
  return (React.createElement(rebass_1.Box, null,
72
71
  React.createElement(HelpBlock_1.default, null, "Tool Panels"),
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { AdaptableOptions } from '../../../../types';
2
+ import { GridOptions } from '@ag-grid-community/core';
3
3
  export declare const UIOptionsStatusbarForm: React.FunctionComponent<{
4
- abOptions: AdaptableOptions;
5
- onChange: (abOptions: AdaptableOptions) => void;
4
+ gridOptions: GridOptions;
5
+ onChange: (gridOptions: GridOptions) => void;
6
6
  }>;
@@ -13,7 +13,7 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../../../components
13
13
  const FormBox_1 = require("../Components/FormBox");
14
14
  const UIOptionsStatusbarForm = (props) => {
15
15
  var _a, _b, _c, _d;
16
- const allPanels = (_c = (_b = (_a = props.abOptions._gridOptions) === null || _a === void 0 ? void 0 : _a.statusBar) === null || _b === void 0 ? void 0 : _b.statusPanels) !== null && _c !== void 0 ? _c : [];
16
+ const allPanels = (_c = (_b = (_a = props.gridOptions) === null || _a === void 0 ? void 0 : _a.statusBar) === null || _b === void 0 ? void 0 : _b.statusPanels) !== null && _c !== void 0 ? _c : [];
17
17
  const panelIdtoPanel = (panelsIds, align) => panelsIds.map((panelId) => {
18
18
  const previousItem = allPanels.find((panel) => panel.key === panelId || panel.statusPanel === panelId);
19
19
  if (previousItem) {
@@ -35,7 +35,7 @@ const UIOptionsStatusbarForm = (props) => {
35
35
  const centerPanels = panelIdtoPanel(tabs[1].Items, 'center');
36
36
  const rightPanels = panelIdtoPanel(tabs[2].Items, 'right');
37
37
  const newStatusbarPanels = [...leftPanels, ...centerPanels, ...rightPanels];
38
- props.onChange(Object.assign(Object.assign({}, props.abOptions), { _gridOptions: Object.assign(Object.assign({}, props.abOptions._gridOptions), { statusBar: Object.assign(Object.assign({}, props.abOptions._gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }) }));
38
+ props.onChange(Object.assign(Object.assign({}, props.gridOptions), { statusBar: Object.assign(Object.assign({}, props.gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }));
39
39
  };
40
40
  const disabled = false;
41
41
  const panelToTabItemId = (panel) => { var _a; return (_a = panel.key) !== null && _a !== void 0 ? _a : panel.statusPanel; };
@@ -78,7 +78,7 @@ const UIOptionsStatusbarForm = (props) => {
78
78
  const newStatusbarPanels = [...allPanels, newAdaptablePanel];
79
79
  setAdaptablePanelTitle('');
80
80
  setAdaptablePanelAlign('left');
81
- props.onChange(Object.assign(Object.assign({}, props.abOptions), { _gridOptions: Object.assign(Object.assign({}, props.abOptions._gridOptions), { statusBar: Object.assign(Object.assign({}, props.abOptions._gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }) }));
81
+ props.onChange(Object.assign(Object.assign({}, props.gridOptions), { statusBar: Object.assign(Object.assign({}, props.gridOptions.statusBar), { statusPanels: newStatusbarPanels }) }));
82
82
  };
83
83
  return (React.createElement(rebass_1.Box, null,
84
84
  React.createElement(HelpBlock_1.default, null, "Status Bar"),
@@ -1,8 +1,11 @@
1
+ import { GridOptions } from '@ag-grid-community/core';
1
2
  import * as React from 'react';
2
3
  import { AdaptableOptions } from '../../../../types';
3
4
  interface UIElementsOptionsProps {
4
5
  adaptableOptions: AdaptableOptions;
5
- onChangeadAptableOptions: (adaptableOptions: AdaptableOptions) => void;
6
+ gridOptions: GridOptions;
7
+ onChangedAdaptableOptions: (adaptableOptions: AdaptableOptions) => void;
8
+ onChangedGridOptions: (gridOptions: GridOptions) => void;
6
9
  }
7
10
  export declare const UIElementsForm: React.FunctionComponent<UIElementsOptionsProps>;
8
11
  export {};
@@ -9,18 +9,17 @@ const UIOptionsActionColumnsForm_1 = require("./UIOptionsActionColumnsForm");
9
9
  const UIOptionsSidebarForm_1 = require("./UIOptionsSidebarForm");
10
10
  const UIOptionsStatusbarForm_1 = require("./UIOptionsStatusbarForm");
11
11
  const UIElementsForm = (props) => {
12
- let abOptions = props.adaptableOptions;
13
12
  return (React.createElement(rebass_1.Box, { p: 2 },
14
13
  React.createElement(Tabs_1.Tabs, null,
15
14
  React.createElement(Tabs_1.Tabs.Tab, null, "Tool Panel"),
16
15
  React.createElement(Tabs_1.Tabs.Tab, null, "Status Bar"),
17
16
  React.createElement(Tabs_1.Tabs.Tab, null, "Action Rows"),
18
17
  React.createElement(Tabs_1.Tabs.Content, null,
19
- React.createElement(UIOptionsSidebarForm_1.UIOptionsSidebarForm, { abOptions: abOptions, onChange: props.onChangeadAptableOptions })),
18
+ React.createElement(UIOptionsSidebarForm_1.UIOptionsSidebarForm, { gridOptions: props.gridOptions, onChange: props.onChangedGridOptions })),
20
19
  React.createElement(Tabs_1.Tabs.Content, null,
21
- React.createElement(UIOptionsStatusbarForm_1.UIOptionsStatusbarForm, { abOptions: abOptions, onChange: props.onChangeadAptableOptions })),
20
+ React.createElement(UIOptionsStatusbarForm_1.UIOptionsStatusbarForm, { gridOptions: props.gridOptions, onChange: props.onChangedGridOptions })),
22
21
  ' ',
23
22
  React.createElement(Tabs_1.Tabs.Content, null,
24
- React.createElement(UIOptionsActionColumnsForm_1.UIOptionsActionColumnsForm, { abOptions: abOptions, onChange: props.onChangeadAptableOptions })))));
23
+ React.createElement(UIOptionsActionColumnsForm_1.UIOptionsActionColumnsForm, { abOptions: props.adaptableOptions, onChange: props.onChangedAdaptableOptions })))));
25
24
  };
26
25
  exports.UIElementsForm = UIElementsForm;
@@ -1,11 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { Reducer, ReactNode } from 'react';
3
+ import { GridOptions } from '@ag-grid-community/core';
3
4
  import { AdaptableOptions } from '../../types';
4
5
  import { ConfigurationWizardProps } from './AdaptableConfigurationDialog/ConfigurationWizard';
5
6
  export interface AdaptableWizardViewProps {
6
7
  adaptableOptions?: Omit<AdaptableOptions, 'primaryKey'> & {
7
8
  primaryKey?: string;
8
9
  };
10
+ gridOptions?: GridOptions;
9
11
  /**
10
12
  * Default true.
11
13
  */
@@ -16,7 +18,7 @@ export interface AdaptableWizardViewProps {
16
18
  * This mode skips over interpreting data to figure-out columns.
17
19
  */
18
20
  skipToWizard?: boolean;
19
- onInit: (adaptableOptions: AdaptableOptions) => any;
21
+ onInit: (adaptableOptions: AdaptableOptions, gridOptions: GridOptions) => any;
20
22
  fileContentsToJSON?: (str: string) => Promise<any> | any;
21
23
  readFile?: (file: File) => Promise<any>;
22
24
  fileAccept?: string;
@@ -39,6 +41,7 @@ interface WizardState {
39
41
  dropped: boolean;
40
42
  error: any;
41
43
  adaptableOptions: AdaptableOptions;
44
+ gridOptions: GridOptions;
42
45
  }
43
46
  /**
44
47
  * The wizard in a few modes:
@@ -14,7 +14,7 @@ exports.initialState = {
14
14
  };
15
15
  const reducer = (state, action) => {
16
16
  if (action.type === 'DROPPED') {
17
- return Object.assign(Object.assign({}, state), { adaptableOptions: action.payload, dropped: true, error: null });
17
+ return Object.assign(Object.assign({}, state), { adaptableOptions: action.payload.adaptableOptions, gridOptions: action.payload.gridOptions, dropped: true, error: null });
18
18
  }
19
19
  if (action.type === 'ERROR') {
20
20
  return Object.assign(Object.assign({}, state), { dropped: false, error: action.payload });
@@ -37,11 +37,10 @@ exports.reducer = reducer;
37
37
  */
38
38
  const Wizard = (props) => {
39
39
  var _a;
40
- const [state, dispatch] = (0, react_1.useReducer)(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions }));
40
+ const [state, dispatch] = (0, react_1.useReducer)(exports.reducer, Object.assign(Object.assign({}, exports.initialState), { adaptableOptions: props.adaptableOptions, gridOptions: props.gridOptions }));
41
41
  const [droppableKey, setDroppableKey] = (0, react_1.useState)(Date.now());
42
42
  const [isDataLoading, setIsDataLoading] = (0, react_1.useState)(false);
43
43
  const handleDataSource = (array, file) => {
44
- var _a;
45
44
  const dataSourceInfo = (props.prepareData || helper_1.prepareDataSource)(array, file);
46
45
  try {
47
46
  (0, Utils_1.validDataSource)(dataSourceInfo);
@@ -52,10 +51,9 @@ const Wizard = (props) => {
52
51
  payload: `Invalid adaptable configuration - ${err}`,
53
52
  });
54
53
  }
55
- const gridOptions = (0, helper_1.prepareGridOptions)(dataSourceInfo, (_a = props.adaptableOptions) === null || _a === void 0 ? void 0 : _a._gridOptions);
54
+ const gridOptions = (0, helper_1.prepareGridOptions)(dataSourceInfo, props.gridOptions);
56
55
  const adaptableOptions = Object.assign({}, props.adaptableOptions);
57
56
  adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
58
- adaptableOptions._gridOptions = gridOptions;
59
57
  if (dataSourceInfo.primaryKey) {
60
58
  adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
61
59
  }
@@ -63,24 +61,27 @@ const Wizard = (props) => {
63
61
  if (shouldShowWizard) {
64
62
  dispatch({
65
63
  type: 'DROPPED',
66
- payload: adaptableOptions,
64
+ payload: { adaptableOptions, gridOptions },
67
65
  });
68
66
  }
69
67
  else {
70
- props.onInit(adaptableOptions);
68
+ props.onInit(adaptableOptions, gridOptions);
71
69
  }
72
70
  };
73
71
  let wizard;
74
72
  if (props.skipToWizard || state.dropped) {
75
- wizard = (React.createElement(AdaptableConfigurationDialog_1.default, { startSections: props.startSections, adaptableOptions: state.adaptableOptions, onCancel: () => {
73
+ wizard = (React.createElement(AdaptableConfigurationDialog_1.default, { startSections: props.startSections, adaptableConfig: {
74
+ adaptableOptions: state.adaptableOptions,
75
+ gridOptions: state.gridOptions,
76
+ }, onCancel: () => {
76
77
  // change the file droppable component key
77
78
  // so it's remounted and it's in the initial state
78
79
  setDroppableKey(Date.now());
79
80
  dispatch({
80
81
  type: 'CANCEL',
81
82
  });
82
- }, onFinish: (adaptableOptions) => {
83
- props.onInit(adaptableOptions);
83
+ }, onFinish: (adaptableConfig) => {
84
+ props.onInit(adaptableConfig.adaptableOptions, adaptableConfig.gridOptions);
84
85
  } }));
85
86
  }
86
87
  (0, react_1.useEffect)(() => {
@@ -77,7 +77,7 @@ const useChartingElements = ({ elementType, accessLevel, size = 'normal', }) =>
77
77
  }
78
78
  const chartSelector = (React.createElement(DropdownButton_1.default, { style: style, width: "100%", columns: ['label'], className: `ab-${elementType}__Chart__select`, items: options, disabled: !hasCharts }, content));
79
79
  const containerSelector = Boolean(chartContainers === null || chartContainers === void 0 ? void 0 : chartContainers.length) && (React.createElement(DropdownButton_1.default, { style: style, width: "100%", columns: ['label'], items: containerOptions, disabled: !isSelectedChart }, (selectedContainer === null || selectedContainer === void 0 ? void 0 : selectedContainer.name) || chartingOptions.agGridContainerName || GeneralConstants_1.AG_GRID_CHART_WINDOW));
80
- const chartButton = (React.createElement(SimpleButton_1.default, { style: style, mr: 1, onClick: () => (isOpen ? closeChart() : showChart(selectedContainer)), disabled: !Boolean(selectedChart), variant: 'text', tone: 'neutral', icon: isOpen ? 'visibility-off' : 'visibility', tooltip: isOpen ? 'Hide Chart' : 'Show Chart' }));
80
+ const chartButton = (React.createElement(SimpleButton_1.default, { style: style, mr: 1, onClick: () => (isOpen ? closeChart() : showChart(selectedContainer)), disabled: !Boolean(selectedChart), variant: 'text', tone: 'neutral', icon: isOpen ? 'visibility-off' : 'visibility-on', tooltip: isOpen ? 'Hide Chart' : 'Show Chart' }));
81
81
  const deleteButton = (React.createElement(DeleteChartButton_1.DeleteChartButton, { iconSize: iconSize, chart: selectedChart, accessLevel: chartAccessLevel }));
82
82
  const editButton = (React.createElement(EditChartButton_1.EditChartButton, { iconSize: iconSize, chart: selectedChart, accessLevel: chartAccessLevel, isOpen: isOpen }));
83
83
  return {
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { SimpleButtonProps } from '../../../components/SimpleButton';
3
+ export declare const AdaptableButtonComponent: React.FunctionComponent<SimpleButtonProps>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptableButtonComponent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Icon_1 = require("../../../components/Icon");
7
+ const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
8
+ const AdaptableContext_1 = require("../../AdaptableContext");
9
+ // This component is connected to adaptable and know about custom icons
10
+ const AdaptableButtonComponent = (props) => {
11
+ let icon = props.icon;
12
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
13
+ if ((0, Icon_1.isAdaptableSystemIcon)(icon)) {
14
+ icon = adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(icon);
15
+ }
16
+ return React.createElement(SimpleButton_1.default, Object.assign({}, props, { icon: icon }));
17
+ };
18
+ exports.AdaptableButtonComponent = AdaptableButtonComponent;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { IconComponentProps } from '../../../components/Icon';
3
+ /**
4
+ * This is a connected componnet.
5
+ * It needs to be used only inside adaptable context.
6
+ */
7
+ export declare const AdaptableIconComponent: React.FunctionComponent<IconComponentProps>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptableIconComponent = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Icon_1 = require("../../../components/Icon");
7
+ const useCustomIcon_1 = require("./useCustomIcon");
8
+ /**
9
+ * This is a connected componnet.
10
+ * It needs to be used only inside adaptable context.
11
+ */
12
+ const AdaptableIconComponent = (props) => {
13
+ const icon = (0, useCustomIcon_1.useCustomIcon)(props.icon);
14
+ return React.createElement(Icon_1.IconComponent, Object.assign({}, props, { icon: icon }));
15
+ };
16
+ exports.AdaptableIconComponent = AdaptableIconComponent;
@@ -0,0 +1,2 @@
1
+ import { AdaptableIcon } from '../../../types';
2
+ export declare const useCustomIcon: (icon: AdaptableIcon) => AdaptableIcon;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCustomIcon = void 0;
4
+ const AdaptableContext_1 = require("../../AdaptableContext");
5
+ const useCustomIcon = (icon) => {
6
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
7
+ if (!icon) {
8
+ return icon;
9
+ }
10
+ return adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(icon);
11
+ };
12
+ exports.useCustomIcon = useCustomIcon;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AdaptableIcon, AdaptableStyle } from '../../types';
2
+ import { AdaptableIcon, AdaptableStyle } from '../../../types';
3
3
  export interface BadgeProps {
4
4
  adaptableStyle: AdaptableStyle;
5
5
  icon?: AdaptableIcon;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Badge = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
6
+ const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
7
7
  const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
8
8
  const Badge = (props) => {
9
9
  const { iconPosition = 'start', icon: iconProps } = props;
@@ -125,7 +125,7 @@ class FilterFormComponent extends React.Component {
125
125
  const filterOptions = this.props.api.optionsApi.getFilterOptions();
126
126
  const predicateDefs = this.props.api.filterApi
127
127
  .getFilterPredicateDefsForColumn(this.props.currentColumn)
128
- .filter((predicate) => !predicate.onlyQuickFilter);
128
+ .filter((predicate) => predicate.id !== 'BooleanToggle');
129
129
  let uiSelectedColumnValues = ((_b = (_a = this.state.editedColumnFilter) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === 'Values'
130
130
  ? this.state.editedColumnFilter.Predicate.Inputs
131
131
  : [];
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const ListGroupItem_1 = tslib_1.__importDefault(require("../../../components/List/ListGroupItem"));
7
7
  const ListGroup_1 = tslib_1.__importDefault(require("../../../components/List/ListGroup"));
8
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
8
+ const Icon_1 = require("../../../components/Icon");
9
9
  class ListBoxMenu extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -14,7 +14,7 @@ class ListBoxMenu extends React.Component {
14
14
  render() {
15
15
  let menuItems = this.props.MenuItems.map((menuItem, index) => {
16
16
  return (React.createElement(ListGroupItem_1.default, { key: index, onClick: () => this.onClick(menuItem) },
17
- menuItem.icon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon }),
17
+ menuItem.icon && React.createElement(Icon_1.IconComponent, { icon: menuItem.icon }),
18
18
  menuItem.label));
19
19
  });
20
20
  return (React.createElement("div", { style: divStyle },
@@ -16,8 +16,9 @@ const AdaptableInput_1 = tslib_1.__importDefault(require("../AdaptableInput"));
16
16
  const renderWithAdaptableContext_1 = require("../../renderWithAdaptableContext");
17
17
  const CheckBox_1 = require("../../../components/CheckBox");
18
18
  const getDefaultColumnFilterPredicate_1 = require("./getDefaultColumnFilterPredicate");
19
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
19
+ const Icon_1 = require("../../../components/Icon");
20
20
  const QuickFilterValues_1 = require("./QuickFilterValues");
21
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
21
22
  class QuickFilterFormComponent extends React.Component {
22
23
  constructor(props) {
23
24
  super(props);
@@ -113,7 +114,7 @@ class QuickFilterFormComponent extends React.Component {
113
114
  if ('text' in predicateDef.icon) {
114
115
  return React.createElement("span", null, predicateDef.icon.text);
115
116
  }
116
- if ((0, AdaptableIconComponent_1.isAdaptableIcon)(predicateDef.icon)) {
117
+ if ((0, Icon_1.isAdaptableIcon)(predicateDef.icon)) {
117
118
  return React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: predicateDef.icon });
118
119
  }
119
120
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { PanelProps } from '../../../components/Panel';
3
3
  import { BoxProps } from 'rebass';
4
- import { AdaptableInternalIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
4
+ import { AdaptableSystemIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
5
5
  export interface PanelWithButtonProps extends PanelProps {
6
6
  buttonContent?: React.ReactNode;
7
7
  buttonClick?: () => void;
@@ -11,7 +11,7 @@ export interface PanelWithButtonProps extends PanelProps {
11
11
  headerProps?: BoxProps & {
12
12
  'data-name': string;
13
13
  };
14
- glyphicon?: AdaptableInternalIconName;
14
+ glyphicon?: AdaptableSystemIconName;
15
15
  buttonDisabled?: boolean;
16
16
  buttonStyle?: string;
17
17
  borderRadius?: string;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { PanelProps } from '../../../components/Panel';
3
3
  import { BoxProps } from 'rebass';
4
- import { AdaptableInternalIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
4
+ import { AdaptableSystemIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
5
5
  export interface PanelWithImageProps extends PanelProps {
6
- glyphicon?: AdaptableInternalIconName;
7
- icon?: AdaptableInternalIconName;
6
+ glyphicon?: AdaptableSystemIconName;
7
+ icon?: AdaptableSystemIconName;
8
8
  infoLink?: string;
9
9
  infoLinkDisabled?: boolean;
10
10
  borderRadius?: string;
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
7
  const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
8
8
  const useGlobalEvent_1 = require("../../../../components/utils/useGlobalEvent");
9
- const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
9
+ const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
10
10
  const Navigation = (props) => {
11
11
  const dispatch = (0, react_redux_1.useDispatch)();
12
12
  const handleKeyPress = React.useCallback((event) => {
@@ -4,9 +4,8 @@ exports.TopBar = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const icons_1 = require("../../../../components/icons");
8
7
  const AdaptableContext_1 = require("../../../AdaptableContext");
9
- const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
8
+ const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
10
9
  const TopBar = (props) => {
11
10
  var _a;
12
11
  const baseClassName = 'ab-Adaptable-Popup__TopBar';
@@ -15,7 +14,7 @@ const TopBar = (props) => {
15
14
  let icon = React.createElement(React.Fragment, null);
16
15
  const iconClassName = `${baseClassName}__Icon`;
17
16
  if (props.icon === 'ConfigurationIcon') {
18
- icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
17
+ icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { iconClassName: iconClassName, icon: { name: 'settings' } });
19
18
  }
20
19
  else if (props.icon === 'ApplicationIcon' && applicationIcon) {
21
20
  icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: applicationIcon, iconClassName: iconClassName });
@@ -10,7 +10,7 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
10
10
  const AdaptableFormComponent_1 = require("../../../components/AdaptableFormComponent");
11
11
  const react_1 = require("react");
12
12
  const AdaptableContext_1 = require("../../AdaptableContext");
13
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
13
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
14
14
  const AdaptablePopupAlert = (props) => {
15
15
  var _a;
16
16
  const messageType = props.adaptableAlert.alertDefinition.MessageType || 'Error';
@@ -4,13 +4,13 @@ exports.PredicateEditor = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
7
+ const Icon_1 = require("../../../components/Icon");
8
8
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
9
9
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
10
- const icons_1 = require("../../../components/icons");
11
10
  const Tag_1 = require("../../../components/Tag");
12
11
  const AdaptableInput_1 = tslib_1.__importDefault(require("../AdaptableInput"));
13
12
  const PermittedValuesSelector_1 = require("../PermittedValuesSelector");
13
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
14
14
  const isValuesPredicateDef = (colDef) => colDef && ['Values', 'ExcludeValues'].includes(colDef.id);
15
15
  const PredicateEditor = (props) => {
16
16
  var _a, _b, _c;
@@ -40,8 +40,8 @@ const PredicateEditor = (props) => {
40
40
  const currentPredicateDef = (_b = props === null || props === void 0 ? void 0 : props.predicateDefs) === null || _b === void 0 ? void 0 : _b.find((item) => { var _a; return item.id === ((_a = props.predicate) === null || _a === void 0 ? void 0 : _a.PredicateId); });
41
41
  let icon = null;
42
42
  if (currentPredicateDef) {
43
- if ((0, AdaptableIconComponent_1.isAdaptableInternalIcon)(currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
44
- icon = React.createElement(icons_1.Icon, { name: currentPredicateDef.icon.name });
43
+ if ((0, Icon_1.isAdaptableSystemIcon)(currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
44
+ icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: currentPredicateDef.icon });
45
45
  }
46
46
  else if ((currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon) && 'text' in (currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
47
47
  icon = React.createElement("span", null, currentPredicateDef.icon.text);
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_1 = require("react");
7
7
  const PanelDashboard_1 = require("../Components/Panels/PanelDashboard");
8
- const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
9
8
  const AdaptableContext_1 = require("../AdaptableContext");
9
+ const AdaptableButton_1 = require("../Components/AdaptableButton");
10
10
  const CustomToolbarWrapper = (props) => {
11
11
  let contentsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__contents';
12
12
  let buttonsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__buttons';
@@ -97,7 +97,7 @@ const CustomToolbarWrapper = (props) => {
97
97
  const disabled = button.disabled && button.disabled(button, dashboardContext);
98
98
  let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
99
99
  let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
100
- return (React.createElement(SimpleButton_1.default, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: (buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || '', onClick: () => {
100
+ return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: (buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || '', onClick: () => {
101
101
  button.onClick ? button.onClick(button, dashboardContext) : null;
102
102
  setTimeout(() => {
103
103
  // mutate state to force a re-rendering
@@ -10,7 +10,6 @@ const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
10
10
  const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
11
11
  const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
12
12
  const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
13
- const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
14
13
  const rebass_1 = require("rebass");
15
14
  const Dashboard_1 = require("../../components/Dashboard");
16
15
  const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
@@ -20,7 +19,8 @@ const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
20
19
  const ModuleToolbarWrapper_1 = require("./ModuleToolbarWrapper");
21
20
  const CustomToolbarWrapper_1 = require("./CustomToolbarWrapper");
22
21
  const CustomDashboardButton_1 = require("./CustomDashboardButton");
23
- const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
22
+ const AdaptableIconComponent_1 = require("../Components/AdaptableIconComponent");
23
+ const AdaptableButton_1 = require("../Components/AdaptableButton");
24
24
  const DashboardComponent = (props) => {
25
25
  const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
26
26
  const dashboardAccessLevel = props.api.internalApi
@@ -80,7 +80,7 @@ const DashboardComponent = (props) => {
80
80
  var _a, _b, _c;
81
81
  let menuItem = props.GridState.ModuleButtonMenuItems.find((y) => y.isVisible && y.module == x);
82
82
  if (menuItem) {
83
- return (React.createElement(SimpleButton_1.default, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
83
+ return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
84
84
  ? Object.assign(Object.assign({}, UIHelper_1.default.getStyleForMessageType((_c = (_b = props.api.systemStatusApi.getCurrentSystemStatusMessageInfo()) === null || _b === void 0 ? void 0 : _b.statusType) !== null && _c !== void 0 ? _c : 'Success')), { border: 0 }) : {} }));
85
85
  }
86
86
  });
@@ -99,7 +99,7 @@ const DashboardComponent = (props) => {
99
99
  };
100
100
  const renderQuickSearch = () => {
101
101
  return (React.createElement(rebass_1.Box, { ml: 2 },
102
- React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getSearchOptions().quickSearchPlaceholder, className: "ab-DashboardToolbar__QuickSearch__text", value: searchText, OnTextChange: search, style: { width: 'auto' }, inputStyle: { width: '7rem' } })));
102
+ React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: "ab-DashboardToolbar__QuickSearch__text", value: searchText, OnTextChange: search, style: { width: 'auto' }, inputStyle: { width: '7rem' } })));
103
103
  };
104
104
  let instanceName = props.api.internalApi.getToolbarTitle();
105
105
  let dashboardOptions = props.api.optionsApi.getDashboardOptions();
@@ -12,5 +12,6 @@ export interface DataChangeHistoryGridProps {
12
12
  agGridContainerId: string;
13
13
  changeHistoryLog: Record<string, CellDataChangedInfo>;
14
14
  onUndoChange: (changeKey: string) => void;
15
+ onClearRow: (changeKey: string) => void;
15
16
  }
16
17
  export declare const DataChangeHistoryGrid: (props: DataChangeHistoryGridProps) => JSX.Element;