@adaptabletools/adaptable 16.0.0-canary.2 → 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 (135) 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 +3 -1
  10. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  11. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  12. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  13. package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
  14. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
  15. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  17. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +15 -5
  18. package/src/Api/ColumnApi.d.ts +18 -7
  19. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  20. package/src/Api/EventApi.d.ts +19 -6
  21. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  22. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  23. package/src/Api/Events/ScheduleTriggered.js +2 -0
  24. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  25. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  26. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  27. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  28. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  29. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  30. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  31. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  32. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  33. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  34. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  35. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  36. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  37. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  38. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  39. package/src/Api/Internal/AdaptableInternalApi.js +2 -2
  40. package/src/Api/Internal/AlertInternalApi.js +7 -2
  41. package/src/Api/Internal/FilterInternalApi.js +8 -4
  42. package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
  43. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  44. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  45. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  46. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  47. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  48. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  49. package/src/Api/OptionsApi.d.ts +1 -1
  50. package/src/Api/PredicateApi.d.ts +5 -5
  51. package/src/Api/StyledColumnApi.d.ts +0 -14
  52. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  53. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  54. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  55. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  56. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  57. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  58. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  59. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  60. package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
  61. package/src/Redux/Store/AdaptableStore.js +1 -2
  62. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  63. package/src/Strategy/FlashingCellModule.js +6 -2
  64. package/src/Strategy/Interface/IModule.d.ts +2 -2
  65. package/src/Strategy/ScheduleModule.js +3 -2
  66. package/src/Strategy/StyledColumnModule.js +24 -15
  67. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  68. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -2
  69. package/src/Utilities/MenuItem.d.ts +4 -4
  70. package/src/Utilities/Services/MetamodelService.js +5 -1
  71. package/src/Utilities/Services/ModuleService.js +1 -1
  72. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  73. package/src/Utilities/Services/RowEditService.js +1 -1
  74. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  75. package/src/Utilities/Services/TeamSharingService.js +60 -3
  76. package/src/Utilities/Services/ValidationService.js +6 -2
  77. package/src/View/Charting/useChartingElements.js +1 -1
  78. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  79. package/src/View/Components/AdaptableButton/index.js +18 -0
  80. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  81. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  82. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  83. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  84. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  85. package/src/{components → View/Components}/Badge/index.js +1 -1
  86. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  87. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  88. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  89. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  90. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  91. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  92. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  93. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  94. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  95. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  96. package/src/View/Dashboard/Dashboard.js +3 -3
  97. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  98. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  99. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  100. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  101. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  102. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  103. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  104. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  105. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  106. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  107. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  108. package/src/View/UIHelper.d.ts +2 -2
  109. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  110. package/src/agGrid/ActionColumnRenderer.js +20 -5
  111. package/src/agGrid/Adaptable.d.ts +5 -2
  112. package/src/agGrid/Adaptable.js +61 -25
  113. package/src/agGrid/BadgeRenderer.js +19 -20
  114. package/src/agGrid/CheckboxRenderer.js +1 -1
  115. package/src/agGrid/agGridHelper.js +2 -0
  116. package/src/agGrid/agGridMenuHelper.js +11 -4
  117. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  118. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  119. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  120. package/src/components/Icon/index.d.ts +11 -0
  121. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  122. package/src/components/IconSelector/IconSelector.js +3 -3
  123. package/src/components/SimpleButton/index.js +10 -10
  124. package/src/components/Toggle/Toggle.d.ts +2 -2
  125. package/src/components/Toggle/Toggle.js +2 -2
  126. package/src/components/icons/index.d.ts +4 -4
  127. package/src/components/icons/index.js +6 -6
  128. package/src/metamodel/adaptable.metamodel.d.ts +72 -31
  129. package/src/metamodel/adaptable.metamodel.js +1 -1
  130. package/src/types.d.ts +6 -5
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  134. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  135. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
@@ -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
  });
@@ -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;
@@ -9,7 +9,7 @@ const usePrevious_1 = tslib_1.__importDefault(require("../../components/utils/us
9
9
  const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
10
10
  const buildActionColumnButton_1 = require("./buildActionColumnButton");
11
11
  const DataChangeHistoryGrid = (props) => {
12
- const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange } = props;
12
+ const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange, onClearRow } = props;
13
13
  const mainAdaptableInstance = (0, AdaptableContext_1.useAdaptable)();
14
14
  const [_adaptableApi, setAdaptableApi] = (0, react_1.useState)(null);
15
15
  const adaptableApiRef = (0, react_1.useRef)(null);
@@ -22,14 +22,15 @@ const DataChangeHistoryGrid = (props) => {
22
22
  (0, react_1.useEffect)(() => {
23
23
  const initializeAdaptableGrid = async () => {
24
24
  const gridOptions = buildGridOptions(mainAdaptableInstance, changeHistoryLog);
25
- const adaptableOptions = buildAdaptableOptions(mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange);
26
- const agGridOptions = {
25
+ const adaptableOptions = buildAdaptableOptions(mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange, onClearRow);
26
+ const modules = mainAdaptableInstance.getAgGridRegisteredModules();
27
+ const agGridConfig = {
27
28
  gridOptions,
28
- modules: mainAdaptableInstance.getAgGridRegisteredModules(),
29
+ modules: modules,
29
30
  };
30
31
  // to avoid direct dependency to Adaptable.ts and thus creating a circular dependency;
31
32
  const adaptableInitFn = Object.getPrototypeOf(mainAdaptableInstance).constructor.init;
32
- const dataChangeHistoryAdaptableApi = await adaptableInitFn(adaptableOptions, agGridOptions);
33
+ const dataChangeHistoryAdaptableApi = await adaptableInitFn(adaptableOptions, agGridConfig);
33
34
  setAdaptableApi(dataChangeHistoryAdaptableApi);
34
35
  };
35
36
  initializeAdaptableGrid();
@@ -76,7 +77,7 @@ const DataChangeHistoryGrid = (props) => {
76
77
  return React.createElement(React.Fragment, null);
77
78
  };
78
79
  exports.DataChangeHistoryGrid = DataChangeHistoryGrid;
79
- const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange) => {
80
+ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange, onClearRow) => {
80
81
  var _a, _b, _c;
81
82
  const mainAdaptableOptions = mainAdaptableInstance.adaptableOptions;
82
83
  const mainAdaptableTheme = mainAdaptableInstance.api.themeApi.getCurrentTheme();
@@ -85,7 +86,12 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
85
86
  const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
86
87
  changeKey && onUndoChange(changeKey);
87
88
  };
88
- const actionColumnButton = (0, buildActionColumnButton_1.buildActionColumnButton)((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, mainAdaptableInstance.api, undoRowNode);
89
+ const clearRow = (rowNode) => {
90
+ const rowData = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data;
91
+ const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
92
+ changeKey && onClearRow(changeKey);
93
+ };
94
+ const actionColumnButton = (0, buildActionColumnButton_1.buildActionColumnButton)((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, mainAdaptableInstance.api, undoRowNode, clearRow);
89
95
  let actionColumnOptions = undefined;
90
96
  if (actionColumnButton) {
91
97
  actionColumnOptions = {
@@ -52,6 +52,12 @@ class DataChangeHistoryPopupComponent extends React.Component {
52
52
  this.props.api.dataChangeHistoryApi.undoDataChangeHistoryEntry(changeToBeUndone);
53
53
  }
54
54
  };
55
+ const handleClearRow = (changeKey) => {
56
+ const changeToBeUndone = this.props.changeHistoryLog[changeKey];
57
+ if (changeToBeUndone) {
58
+ this.props.api.dataChangeHistoryApi.clearDataChangeHistoryEntry(changeToBeUndone);
59
+ }
60
+ };
55
61
  const currentAgGridTheme = this.props.api.themeApi.getAgGridCurrentThemeName();
56
62
  return (React.createElement(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
57
63
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup", flexDirection: "column", style: { height: '100%' } },
@@ -65,7 +71,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
65
71
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup--grid", "data-name": 'data-change-history--grid', flex: 1, alignSelf: 'stretch', flexDirection: 'column' },
66
72
  React.createElement("div", { id: adaptableContainerId }),
67
73
  React.createElement("div", { id: agGridContainerId, className: currentAgGridTheme, style: { height: '100%' } }),
68
- React.createElement(DataChangeHistoryGrid_1.DataChangeHistoryGrid, { adaptableContainerId: adaptableContainerId, agGridContainerId: agGridContainerId, changeHistoryLog: this.props.changeHistoryLog, onUndoChange: handleChangeUndo })))));
74
+ React.createElement(DataChangeHistoryGrid_1.DataChangeHistoryGrid, { adaptableContainerId: adaptableContainerId, agGridContainerId: agGridContainerId, changeHistoryLog: this.props.changeHistoryLog, onUndoChange: handleChangeUndo, onClearRow: handleClearRow })))));
69
75
  }
70
76
  }
71
77
  function mapStateToProps(state, ownProps) {
@@ -1,3 +1,3 @@
1
1
  import { IRowNode } from '@ag-grid-community/core';
2
2
  import { ActionColumnContext, AdaptableApi, AdaptableButton, DataChangeHistoryOptions } from '../../types';
3
- export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, parentAdapTableApi: AdaptableApi, undoRowNode: (rowNode: IRowNode) => void) => AdaptableButton<ActionColumnContext<any>>[];
3
+ export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, parentAdapTableApi: AdaptableApi, undoRowNode: (rowNode: IRowNode) => void, clearRow: (rowNode: IRowNode) => void) => AdaptableButton<ActionColumnContext<any>>[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildActionColumnButton = void 0;
4
- const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
4
+ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode, clearRow) => {
5
5
  let changeHistoryButtons = options.changeHistoryButton;
6
6
  if (!changeHistoryButtons ||
7
7
  (Array.isArray(changeHistoryButtons) && changeHistoryButtons.length === 0)) {
@@ -25,9 +25,13 @@ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
25
25
  undoRowNode(rowNode);
26
26
  }
27
27
  };
28
+ const onClearRow = (context) => {
29
+ const rowNode = context.rowNode;
30
+ clearRow(rowNode);
31
+ };
28
32
  const buildContext = (context) => {
29
33
  const dataChangedInfo = context.rowNode.data.changeInfo;
30
- return Object.assign(Object.assign({}, context), { isGroupNode: isGroupNode(context), undoDataChange: () => onUndo(context), dataChangedInfo,
34
+ return Object.assign(Object.assign({}, context), { isGroupNode: isGroupNode(context), undoDataChange: () => onUndo(context), clearRow: () => onClearRow(context), dataChangedInfo,
31
35
  parentAdapTableApi });
32
36
  };
33
37
  return changeHistoryButtons.map((actionColumnOption) => ({
@@ -59,6 +63,9 @@ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
59
63
  if (actionColumnOption.action === 'undo') {
60
64
  onUndo(buildContext(context));
61
65
  }
66
+ if (actionColumnOption.action === 'clear') {
67
+ onClearRow(buildContext(context));
68
+ }
62
69
  if (typeof actionColumnOption.onClick === 'function') {
63
70
  actionColumnOption.onClick(button, buildContext(context));
64
71
  }
@@ -40,7 +40,7 @@ const FormatColumnSettingsWizardSection = (props) => {
40
40
  props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows }));
41
41
  };
42
42
  return (React.createElement(Tabs_1.Tabs, null,
43
- React.createElement(Tabs_1.Tabs.Tab, null, "Format"),
43
+ React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
44
44
  React.createElement(Tabs_1.Tabs.Content, null,
45
45
  React.createElement(rebass_1.Flex, { flexDirection: "row" },
46
46
  React.createElement(FormLayout_1.default, null,
@@ -39,13 +39,13 @@ const ScheduleSettingsReminder = (props) => {
39
39
  React.createElement(Tabs_1.Tabs.Content, null,
40
40
  React.createElement(FormLayout_1.default, null,
41
41
  React.createElement(FormLayout_1.FormRow, { label: "Header" },
42
- React.createElement(Input_1.default, { "data-name": "header", width: 300, onChange: handleHeaderChange, placeholder: "Enter Reminder Header (optional)", type: "string", value: (_a = props.reminderSchedule) === null || _a === void 0 ? void 0 : _a.Header })),
42
+ React.createElement(Input_1.default, { "data-name": "header", width: 300, onChange: handleHeaderChange, placeholder: "Enter Reminder Header", type: "string", value: (_a = props.reminderSchedule) === null || _a === void 0 ? void 0 : _a.Header })),
43
43
  React.createElement(FormLayout_1.FormRow, { label: "Message" },
44
44
  React.createElement(Input_1.default, { "data-name": "message", width: 300, onChange: handleMessageChange, placeholder: "Enter Reminder Message", type: "string", value: (_b = props.reminderSchedule) === null || _b === void 0 ? void 0 : _b.Message })),
45
45
  React.createElement(FormLayout_1.FormRow, { label: "Type" },
46
46
  React.createElement(DropdownButton_1.default, { "data-name": "message-type", style: { width: 300 }, columns: ['label'], placeholder: "Select Option", items: messageTypes }, ((_c = props.reminderSchedule) === null || _c === void 0 ? void 0 : _c.MessageType) || 'Select Option')),
47
47
  React.createElement(FormLayout_1.FormRow, { label: "" },
48
- React.createElement(CheckBox_1.CheckBox, { "data-name": "display-notification", checked: (_d = props.reminderSchedule) === null || _d === void 0 ? void 0 : _d.DisplayNotification, onChange: handleDisplayNotificationChange }, "Show the Reminder as an Alert")),
48
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "display-notification", checked: (_d = props.reminderSchedule) === null || _d === void 0 ? void 0 : _d.DisplayNotification, onChange: handleDisplayNotificationChange }, "Show the Reminder as a Notification")),
49
49
  React.createElement(FormLayout_1.FormRow, { label: "" },
50
50
  React.createElement(CheckBox_1.CheckBox, { "data-name": "display-system-status", checked: (_e = props.reminderSchedule) === null || _e === void 0 ? void 0 : _e.DisplaySystemStatusMessage, onChange: handleDisplaySystemStatusChange }, "Display a System Status Message")))))));
51
51
  };
@@ -4,8 +4,6 @@ exports.StyledColumnBadgeSection = exports.renderBadgeSummary = 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");
8
- const Badge_1 = require("../../../components/Badge");
9
7
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
10
8
  const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
11
9
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
@@ -19,6 +17,8 @@ const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEdi
19
17
  const StyleComponent_1 = require("../../Components/StyleComponent");
20
18
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
21
19
  const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
20
+ const Badge_1 = require("../../Components/Badge");
21
+ const AdaptableIconComponent_1 = require("../../Components/AdaptableIconComponent");
22
22
  const BadgeEditor = (props) => {
23
23
  var _a, _b;
24
24
  const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
@@ -33,11 +33,7 @@ const StyledColumnWizardColumnSection = (props) => {
33
33
  sortableColumns = api.columnApi.getBooleanColumns();
34
34
  }
35
35
  else if (data.SparkLineStyle) {
36
- sortableColumns = [
37
- ...api.columnApi.getNumberArrayColumns(),
38
- ...api.columnApi.getTupleNumberArrayColumns(),
39
- ...api.columnApi.getObjectNumberArrayColumns(),
40
- ];
36
+ sortableColumns = api.columnApi.getNumericArrayColumns();
41
37
  }
42
38
  else if (data.BadgeStyle) {
43
39
  sortableColumns = [...api.columnApi.getNumericColumns(), ...api.columnApi.getStringColumns()];
@@ -4,9 +4,9 @@ exports.StyledColumnBadgePreview = 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 Badge_1 = require("../../../../../components/Badge");
8
7
  const Tag_1 = require("../../../../../components/Tag");
9
8
  const AdaptableContext_1 = require("../../../../AdaptableContext");
9
+ const Badge_1 = require("../../../../Components/Badge");
10
10
  const StyledColumnBadgePreview = ({ data }) => {
11
11
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
12
12
  const badgeStyle = data.BadgeStyle;
@@ -21,15 +21,8 @@ const StyledColumnBadgePreview = ({ data }) => {
21
21
  const predicateStr = badge.Predicate
22
22
  ? adaptable.api.predicateApi.predicateToString(badge.Predicate)
23
23
  : 'No Predicate';
24
- let icon = badge.Icon;
25
- const customIcon = badge.Icon &&
26
- 'name' in badge.Icon &&
27
- adaptable.api.userInterfaceApi.getCustomIconDefinition(badge.Icon.name);
28
- if (customIcon) {
29
- icon = customIcon;
30
- }
31
24
  return (React.createElement(rebass_1.Box, { mb: 1, key: index },
32
- React.createElement(Badge_1.Badge, { icon: icon, adaptableStyle: badge.Style, iconPosition: badge.IconPosition }, value),
25
+ React.createElement(Badge_1.Badge, { icon: badge.Icon, adaptableStyle: badge.Style, iconPosition: badge.IconPosition }, value),
33
26
  React.createElement(Tag_1.Tag, { ml: 2 }, predicateStr)));
34
27
  })));
35
28
  };
@@ -74,7 +74,6 @@ const StyledColumnWizardTypeSection = (props) => {
74
74
  React.createElement(Tabs_1.Tabs.Content, null,
75
75
  React.createElement(TypeRadio_1.TypeRadio, { text: "Gradient", description: "Colour each cell in the column using a gradient value (Numeric Columns)", checked: Boolean(data.GradientStyle), onClick: () => handleTypeChange('gradient') }),
76
76
  React.createElement(TypeRadio_1.TypeRadio, { text: "Percent Bar", description: "Display a coloured bar where the width is based on the cell (Numeric Columns)", checked: Boolean(data.PercentBarStyle), onClick: () => handleTypeChange('percent') }),
77
- React.createElement(TypeRadio_1.TypeRadio, { text: "Check Box", description: "Display a checkbox (Boolean Columns)", checked: Boolean(data.CheckBoxStyle), onClick: () => handleTypeChange('checkbox') }),
78
77
  adaptable.api.styledColumnApi.canDisplaySparklines() && (React.createElement(TypeRadio_1.TypeRadio, { text: "Sparkline", description: "Render the column as a Sparkline (Numeric Array Columns)", checked: Boolean(data.SparkLineStyle), onClick: () => handleTypeChange('sparkline') })),
79
78
  React.createElement(TypeRadio_1.TypeRadio, { text: "Badge", description: "Display the column's values as Badges (All Columns)", checked: Boolean(data.BadgeStyle), onClick: () => handleTypeChange('badge') })))));
80
79
  };
@@ -3,7 +3,7 @@ import { EditableConfigEntityState } from './Components/SharedProps/EditableConf
3
3
  import { StatusColour } from '../PredefinedConfig/Common/Enums';
4
4
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
5
5
  import { Schedule, Weekday } from '../PredefinedConfig/Common/Schedule';
6
- import { AdaptableColumnDataType, AdaptableInternalIconName, AdaptableOptions } from '../types';
6
+ import { AdaptableColumnDataType, AdaptableSystemIconName, AdaptableOptions } from '../types';
7
7
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
8
8
  import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
9
9
  export declare const BLACK: string;
@@ -36,7 +36,7 @@ export declare function IsEmptyStyle(style: AdaptableStyle): boolean;
36
36
  export declare function IsNotEmptyStyle(style: AdaptableStyle): boolean;
37
37
  export declare function getMessageTypeByStatusColour(statusColour: StatusColour): AdaptableMessageType;
38
38
  export declare function getButtonToneByMessageType(messageType: AdaptableMessageType): 'success' | 'error' | 'neutral' | 'none' | 'warning' | 'info' | 'accent';
39
- export declare function getGlyphByMessageType(messageType: AdaptableMessageType): AdaptableInternalIconName;
39
+ export declare function getGlyphByMessageType(messageType: AdaptableMessageType): AdaptableSystemIconName;
40
40
  export declare function getColorByMessageType(messageType: AdaptableMessageType): string;
41
41
  export declare function getStyleForStatusColour(statusColour: StatusColour): CSSProperties;
42
42
  export declare function getStyleForMessageType(messageType: AdaptableMessageType): CSSProperties;
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
3
- import { ActionColumn } from '../types';
4
3
  interface ActionColumnCellRendererParams extends ICellRendererParams {
5
- actionColumn?: ActionColumn;
6
4
  }
7
5
  export declare const ReactActionColumnRenderer: (props: ActionColumnCellRendererParams) => JSX.Element;
8
6
  export declare class ActionColumnRenderer implements ICellRendererComp {
@@ -6,6 +6,8 @@ const SimpleButton_1 = tslib_1.__importDefault(require("../components/SimpleButt
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const uuid_1 = require("../components/utils/uuid");
8
8
  const useRerender_1 = require("../components/utils/useRerender");
9
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
10
+ const renderWithAdaptableContext_1 = require("../View/renderWithAdaptableContext");
9
11
  function getActionButtonsAndActionColumn(adaptable, actionColumn, colId) {
10
12
  var _a;
11
13
  const actionCol = actionColumn
@@ -27,7 +29,8 @@ function getActionButtonsAndActionColumn(adaptable, actionColumn, colId) {
27
29
  actionColumn: actionCol,
28
30
  };
29
31
  }
30
- const renderActionButtons = (buttons, adaptableApi, context, rerender) => {
32
+ const ActionButtons = (props) => {
33
+ const { buttons, adaptableApi, context, rerender } = props;
31
34
  return (React.createElement(React.Fragment, null, buttons.map((button, index) => {
32
35
  var _a, _b;
33
36
  if (button.hidden && button.hidden(button, context)) {
@@ -57,7 +60,10 @@ const renderActionButtons = (buttons, adaptableApi, context, rerender) => {
57
60
  const ReactActionColumnRenderer = (props) => {
58
61
  const rerender = (0, useRerender_1.useRerender)();
59
62
  const adaptable = props.api.__adaptable;
60
- const { actionButtons, actionColumn } = getActionButtonsAndActionColumn(adaptable, props.actionColumn, props.colDef.colId);
63
+ const { actionButtons, actionColumn } = getActionButtonsAndActionColumn(adaptable, {
64
+ columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
65
+ actionColumnButton: adaptable.getActionRowButtonDefs(),
66
+ }, props.colDef.colId);
61
67
  if (!actionColumn || !actionButtons.length) {
62
68
  return null;
63
69
  }
@@ -75,14 +81,18 @@ const ReactActionColumnRenderer = (props) => {
75
81
  adaptableId: adaptable.adaptableOptions.adaptableId,
76
82
  data: props.data,
77
83
  };
78
- return (React.createElement("div", { className: "ab-ActionColumn" }, renderActionButtons(actionButtons, adaptable.api, buttonContext, rerender)));
84
+ return (React.createElement("div", { className: "ab-ActionColumn" },
85
+ React.createElement(ActionButtons, { buttons: actionButtons, adaptableApi: adaptable.api, context: buttonContext, rerender: rerender })));
79
86
  };
80
87
  exports.ReactActionColumnRenderer = ReactActionColumnRenderer;
81
88
  class ActionColumnRenderer {
82
89
  // gets called once before the renderer is used
83
90
  init(params) {
84
91
  const adaptable = params.api.__adaptable;
85
- const { actionButtons, actionColumn } = getActionButtonsAndActionColumn(adaptable, params.actionColumn, params.colDef.colId);
92
+ const { actionButtons, actionColumn } = getActionButtonsAndActionColumn(adaptable, {
93
+ columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
94
+ actionColumnButton: adaptable.getActionRowButtonDefs(),
95
+ }, params.colDef.colId);
86
96
  if (!actionColumn || !actionButtons.length) {
87
97
  return;
88
98
  }
@@ -106,7 +116,12 @@ class ActionColumnRenderer {
106
116
  };
107
117
  const eGui = this.eGui;
108
118
  const doRender = () => {
109
- this.unmountReactRoot = adaptable.renderReactRoot(renderActionButtons(actionButtons, adaptable.api, buttonContext, doRender), eGui);
119
+ this.unmountReactRoot = adaptable.renderReactRoot((0, renderWithAdaptableContext_1.renderWithAdaptableContext)(ActionButtons({
120
+ buttons: actionButtons,
121
+ context: buttonContext,
122
+ rerender: doRender,
123
+ adaptableApi: adaptable.api,
124
+ }), adaptable), eGui);
110
125
  };
111
126
  this.render = doRender;
112
127
  doRender();
@@ -18,7 +18,7 @@ import { SelectedRowInfo } from '../PredefinedConfig/Selection/SelectedRowInfo';
18
18
  import { AdaptableTheme } from '../PredefinedConfig/ThemeState';
19
19
  import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
20
20
  import { IModuleCollection } from '../Strategy/Interface/IModule';
21
- import { ChartDefinition } from '../types';
21
+ import { ActionColumnContext, AdaptableButton, ChartDefinition } from '../types';
22
22
  import { EmitterCallback } from '../Utilities/Emitter';
23
23
  import { IPPStyle } from '../Utilities/Interface/IPPStyle';
24
24
  import { LicenseService } from '../Utilities/Services/LicenseService';
@@ -277,7 +277,8 @@ export declare class Adaptable implements IAdaptable {
277
277
  private getColDefsForSpecialColumns;
278
278
  getColDefsForFreeTextColumns(): ColDef<any, any>[];
279
279
  setupColumnValueGetter({ col }: ColumnSetupInfo): void;
280
- private getColDefsForRowEditColumns;
280
+ getActionRowButtonDefs(): AdaptableButton<ActionColumnContext<any>>[];
281
+ private getColDefsForActionRowColumns;
281
282
  getColDefsForActionColumns(): ColDef<any, any>[];
282
283
  updateColDefsForSpecialColumns(): void;
283
284
  private getColDefsForCalculatedColumns;
@@ -327,6 +328,7 @@ export declare class Adaptable implements IAdaptable {
327
328
  private applyCurrentTheme;
328
329
  private applyFinalRendering;
329
330
  isAgGridModulePresent(moduleName: ModuleNames): boolean;
331
+ private getAllAgGridRegisteredModules;
330
332
  getAgGridRegisteredModules(): Module[];
331
333
  private getAgGridRegisteredModuleNames;
332
334
  private onRowDataChanged;
@@ -416,6 +418,7 @@ export declare class Adaptable implements IAdaptable {
416
418
  initLicenseService(): LicenseService;
417
419
  showCharts(chartsDefinitions: ChartDefinition[], chartContainer?: HTMLElement): ChartRef[];
418
420
  showChart(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
421
+ updateChart(chart: ChartDefinition): void;
419
422
  getChartRef(chartId: string): ChartRef;
420
423
  getChartModels(): import("@ag-grid-community/core").ChartModel[];
421
424
  getRowModelType(): import("@ag-grid-community/core").RowModelType;